Question
Question: How do you evaluate the integral \(\int{x{{\tan }^{2}}x}\)?...
How do you evaluate the integral ∫xtan2x?
Solution
In order to solve this question we need to apply here the method of integration by parts. This means to apply ∫udv=uv−∫vdu. For those we will put u=x and dxdv=tan2(x). After this we will use formulas tan2(x)=sec2(x)−1,∫sec2(x)dx=tanx+c1 and ∫1dx=x+c2 to get the right answer.
Complete step by step solution:
Consider the integral function ∫xtan2x.
We will put u=x and dxdv=tan2(x). Now we will differentiate u=x with respect to x. Therefore, we get
u=x⇒dxdu=dxdx⇒dxdu=1
Now we will consider dxdv=tan2(x) and write it as dv=tan2(x)dx. After this we will use integration here. Using differentiation on both the sides of the equation dv=tan2(x)dx we get,
dv=tan2(x)dx⇒∫dv=∫tan2(x)dx
As we know that tan2(x)=sec2(x)−1, therefore we can write,
∫dv=∫tan2(x)dx⇒v=∫(sec2(x)−1)dx⇒v=∫sec2(x)dx−∫1dx
By taking the help of formula ∫sec2(x)dx=tanx+c1 we get v=tanx+c−∫1dx. Also, as ∫1dx=x+c2,
v=tanx+c1−(x+c2)⇒v=tanx+c1−x−c2⇒v=tanx−x+c[∵c=c1−c2]
Now, we will use the formula of integration by parts in which we have ∫udv=uv−∫vdu. After substituting all above terms in this formula we get,