Question
Question: Solve the following: \[\int {\dfrac{2}{{(1 - x)(1 + {x^2})}}dx} \]...
Solve the following:
∫(1−x)(1+x2)2dx
Solution
The given problem is an indefinite integral since there are no limit points. We will first decompose the function inside the integral. Then we will integrate the parts one by one. Decomposition of the function helps us to solve the problem easily.
Formula: Differentiation formula that we need to know is xndx=nxn−1. And the integration formulas that we need to know are ∫cf(x)dx=c∫f(x)dx where c is a constant, and ∫x1dx=ln(x).
Complete step by step answer:
It is given that ∫(1−x)(1+x2)2dx.
Using the formula ∫cf(x)dx=c∫f(x)dx let us rewrite the given function.
∫(1−x)(1+x2)2dx=2∫(1−x)(1+x2)1dx
Let f(x)=(1−x)(1+x2)1
Let us first decompose f(x) using partial fraction decomposition.
On decomposing we get f(x)=2(x2+1)x+1−2(x−1)1
Let us substitute it in the integral function.
2∫(1−x)(1+x2)1dx=2∫2(x2+1)x+1−2(x−1)1dx
Let us now split the integral.
=2∫2(x2+1)x+1dx−2∫2(x−1)1dx
Using the formula ∫cf(x)dx=c∫f(x)dx again.
=∫(x2+1)x+1dx−∫(x−1)1dx
Now let us start to integrate the second term.
Let u=x−1. On differentiating this concern, the variable x we get du=dx let us substitute them in the above expression.
=∫x2+1x+1dx−∫u1du
Using the formula ∫x1dx=ln(x) we get
=∫x2+1x+1dx−ln(u)
Let’s re-substitute u=x−1.
=∫x2+1x+1dx−ln(x−1)
Now let us integrate the first function. Let’s split that fraction first.
=∫(x2+1x+x2+11)dx−ln(x−1)
Now let us split the integral.
=∫x2+1xdx+∫x2+11dx−ln(x−1)
Now let us substituteu=x2+1. On differentiating this concern, the variable xwe get xdx=2dulet us substitute them in the above expression.
=∫2u1du+∫x2+11dx−ln(x−1)
Again, using the formula ∫cf(x)dx=c∫f(x)dx we get
=21∫u1du+∫x2+11dx−ln(x−1)
Now let’s integrate it using the formula ∫x1dx=ln(x).
=2ln(u)+∫x2+11dx−ln(x−1)
Now let’s re-substitute u=x2+1.
=2ln(x2+1)+∫x2+11dx−ln(x−1)
Now let’s integrate the second part. Using the formula ∫x2+11dx=tan−1(x)
=2ln(x2+1)+tan−1(x)−ln(x−1)+C, where C is the integration constant
Thus, ∫(1−x)(1+x2)2dx=2ln(x2+1)+tan−1(x)−ln(x−1)+C
Note: There are two types of integral available, they are definite and indefinite. Definite integral will have limit points and indefinite integrals won’t have any limit points. If there is a limit point, we need to substitute it after the integration.