Question
Question: How do you integrate \(\ln ({x^2} - x + 2)dx\)?...
How do you integrate ln(x2−x+2)dx?
Solution
We are asked to integrate the function ln(x2−x+2)dx, where ln represents the natural logarithm to the base e. Firstly, we make use of methods of integration by parts. The method is given by ∫udv=uv−∫vdu. We take here u=ln(x2−x+2) and dv=1 to solve. Then we make use of some properties of integration to simplify the problem and obtain the solution.
Complete step by step solution:
In this question we need to integrate a function ln(x2−x+2)dx.
Note that logarithm is an inverse of an exponential function. Here lnrepresents the natural logarithm to the base e.
To solve the above problem we use the method of integration by parts.
The method is given by ∫udv=uv−∫vdu …… (1)
Take u=ln(x2−x+2)
Differentiating u we obtain du.
du=x2−x+22x−1
Take dv=1.
Integrate dv to obtain v.
∫dv=∫1dx
⇒v=x.
Now substituting in the equation (1), we get,
∫ln(x2−x+2)⋅1dx=ln(x2−x+2)x−∫xx2−x+22x−1dx
⇒∫ln(x2−x+2)dx=x⋅ln(x2−x+2)−∫x2−x+22x2−xdx …… (2)
Now we simplify the term x2−x+22x2−x.
Express −x as −2x+x, we get,
⇒x2−x+22x2−2x+x
Now add and subtract by 4 in the numerator we get,
⇒x2−x+22x2−2x+4+x−4
Now we split the above term as,
⇒x2−x+22(x2−x+2)+x2−x+2x−4
⇒2+x2−x+2x−4
Now ∫x2−x+22x2−xdx=∫2+x2−x+2x−4dx
⇒∫2dx+∫x2−x+2x−4dx …… (3)
Now we simplify the term x2−x+2x−4
We try to convert it as f(x)f′(x).
x2−x+2x−4=x2−x+221(2x−8)
⇒x2−x+221(2x−1)−27
Now splitting the terms we get,
⇒x2−x+221(2x−1)−27x2−x+21
Substituting this in the equation (3), we get,
⇒∫2dx+∫x2−x+221(2x−1)−27x2−x+21dx
Splitting the integration in the second term we get,
⇒∫2dx+∫x2−x+221(2x−1)dx−∫27x2−x+21dx
Now integrating we get,
⇒2x+21ln(x2−x+2)−27∫x2−x+21dx
Substituting in the equation (2) we get,
∫ln(x2−x+2)dx=x⋅ln(x2−x+2)−∫x2−x+22x2−xdx
⇒xln(x2−x+2)−(2x+21ln(x2−x+2)−27∫x2−x+21dx)
Now combining the like terms we get,
⇒(x−21)ln(x2−x+2)−2x+27∫x2−x+21dx …… (4)
Now we simplify the term ∫x2−x+21dx.
We try to convert the denominator as factors using completing squares.
Consider the quadratic equation x2−x+2.
Add and subtract 41 we get,
⇒x2−x+41+2−41
⇒(x−21)2+47
∴∫x2−x+21dx=∫(x−21)2+471dx …… (5)
Take (x−21)2=47tan2θ
⇒(x−21)=27tanθ …… (6)
⇒θ=arctan72(x−21) …… (7)
Differentiating (6) we get,
⇒dx=27sec2θdθ
Hence the equation (5) becomes,
⇒∫47tan2θ+471⋅27sec2θdθ
⇒27∫47(tan2θ+1)1⋅sec2θdθ
We know the trigonometric identity 1+tan2θ=sec2θ.
⇒27∫47(sec2θ)sec2θdθ
Cancelling the terms and taking out the constant term in the denominator out of integration we get,
⇒27⋅72∫dθ
Note that 7=7×7
⇒27⋅7×72∫dθ
⇒72∫dθ
⇒72θ
Substituting the value θ from the equation (7), θ=arctan72(x−21) we get,
⇒72arctan(72(x−21))
Hence The equation (4) becomes,
⇒(x−21)ln(x2−x+2)−2x+27⋅72arctan(72(x−21))
⇒(x−21)ln(x2−x+2)−2x+7arctan(72x−1)
Hence ∫ln(x2−x+2)dx=(x−21)ln(x2−x+2)−2x+7arctan(72x−1).
Note:
Remember to make use of method of integration of parts which is given by,
∫udv=uv−∫vdu.
It is important to make the right choice of u and v. Students may go wrong in this. We have to make a clever choice so that the equation gets simplified.
Also sometimes the terms will be complicated while integrating. In this situation we make use of a substitution method or any other which gives us the required solution.