Integral of ln(x^2+1) dx
The solution
Detail solution
-
Use integration by parts:
∫udv=uv−∫vdu
Let u(x)=log(x2+1) and let dv(x)=1.
Then du(x)=x2+12x.
To find v(x):
-
The integral of a constant is the constant times the variable of integration:
∫1dx=x
Now evaluate the sub-integral.
-
The integral of a constant times a function is the constant times the integral of the function:
∫x2+12x2dx=2∫x2+1x2dx
-
Rewrite the integrand:
x2+1x2=1−x2+11
-
Integrate term-by-term:
-
The integral of a constant is the constant times the variable of integration:
∫1dx=x
-
The integral of a constant times a function is the constant times the integral of the function:
∫(−x2+11)dx=−∫x2+11dx
PiecewiseRule(subfunctions=[(ArctanRule(a=1, b=1, c=1, context=1/(x**2 + 1), symbol=x), True), (ArccothRule(a=1, b=1, c=1, context=1/(x**2 + 1), symbol=x), False), (ArctanhRule(a=1, b=1, c=1, context=1/(x**2 + 1), symbol=x), False)], context=1/(x**2 + 1), symbol=x)
So, the result is: −atan(x)
The result is: x−atan(x)
So, the result is: 2x−2atan(x)
-
Now simplify:
xlog(x2+1)−2x+2atan(x)
-
Add the constant of integration:
xlog(x2+1)−2x+2atan(x)+constant
The answer is:
xlog(x2+1)−2x+2atan(x)+constant
The answer (Indefinite)
[src]
/
|
| / 2 \ / 2 \
| log\x + 1/ dx = C - 2*x + 2*atan(x) + x*log\x + 1/
|
/
∫log(x2+1)dx=C+xlog(x2+1)−2x+2atan(x)
The graph
−2+log(2)+2π
=
−2+log(2)+2π
Use the examples entering the upper and lower limits of integration.