Question
Question: Integrate the following: \(\int{x{{\tan }^{2}}xdx}\)....
Integrate the following: ∫xtan2xdx.
Solution
Hint:Use Integration by parts rule by taking x as first function and tan2x as second function. Use ∫tan2xdx=tanx−x+C. Use ∫tanxdx=ln∣secx∣+C and ∫x=2x2.
Complete step-by-step answer:
Let I =∫xtan2x
Since tan2x=sec2x−1, we have
I=∫x(sec2x−1)dx=∫(xsec2xdx−x)dx
We know that ∫(f(x)+g(x))dx=∫f(x)dx+∫g(x)dx+C
Using the above formula, we get
I=∫xsec2xdx−∫xdx=I1−I2
where I1=∫xsec2xdx and I2=∫xdx
Now we have
I1=∫xsec2xdx
Integrating by parts rule if ∫f(x)dx=u(x) and dxd(g(x))=v(x), then ∫f(x)g(x)dx=g(x)u(x)−∫u(x)v(x)dx
g(x) is called the first function and f(x) is called the second function.
Substituting g(x)=x and f(x) =sec2x, we have
v(x) =dxd(x)=1 and u(x) =∫sec2x=tanx
Hence we have
∫xsec2xdx=xtanx−∫tanxdx
Now, we know that tanx=cosxsinx
Hence, we have
∫xsec2xdx=xtanx−∫cosxsinxdx
In the integral put cosx = t, we have dt=−sinxdx
Hence we have
I1=xtanx+∫tdt
Now we know that ∫xdx=ln∣x∣+C
Hence we have
I1=xtanx+ln∣t∣+C
Replacing the original variable, we get
I1=xtanx+ln∣cosx∣+C
Also I2=∫xdx=2x2
Hence we have
I=xtanx+ln∣cosx∣−2x2+C
Note: Alternatively, we have
∫tan2xdx=∫(sec2x−1)dx=∫sec2xdx−∫dx=tanx−x+C
Now we know that
if ∫f(x)dx=u(x) and dxd(g(x))=v(x), then ∫f(x)g(x)dx=g(x)u(x)−∫u(x)v(x)dx
g(x) is called the first function and f(x) is called the second function.
Substituting g(x) = x and f(x) =tan2x, we get
v(x) =dxd(x)=1 and u(x) = ∫tan2xdx=tanx−x
Hence, by integration by parts rule, we have
∫xtan2x=x(tanx−x)−∫(secx−x)dx
We know that ∫(f(x)+g(x))dx=∫f(x)dx+∫g(x)dx+C
Using the above formula, we get
∫xtan2xdx=x(tanx−x)−∫tanxdx+∫xdx=xtanx−x2+ln∣cosx∣+2x2+C=xtanx+ln∣cosx∣−2x2+C
which is the same as obtained above.
[2] Although there is no general rule in choosing the first and second functions in Integration by parts, the most common order of preference for the first function is given by ILATE rule
I = Inverse trigonometric functions
L = Logarithmic functions
A = Algebraic expressions
T = Trigonometric functions
E = Exponential functions.