Question
Question: How do you find the integral of \(\int{{{\tan }^{n}}xdx}\) if n is an integer?...
How do you find the integral of ∫tannxdx if n is an integer?
Solution
We try to form the integral in its recurring form of power. The power reduces by 2 in every integral. We use the identity for tan2x=sec2x−1. For even and odd value of n the end of the integral differs.
Complete step by step answer:
It’s given that n is an integer. This means n∈Z.
We need to find the value of ∫tannxdx. Let’s assume In=∫tannxdx.
We take the trigonometric identity tan2x=sec2x−1.
We break the power of n in (n−2) and 2.
We get tannx=tann−2x.tan2x. We replace the value of tan2x.
Therefore, tannx=tann−2x(sec2x−1)=tann−2xsec2x−tann−2x.
Therefore, In=∫tannxdx=∫tann−2xsec2xdx−∫tann−2xdx.
Now as In=∫tannxdx, we can say ∫tann−2xdx=In−2.
Now we find the integral value of ∫tann−2xsec2xdx. We take tanx=z.
Differentiating both sides of the equation of tanx=z, we get
dxd(tanx)=dxd(z)⇒sec2x=dxdz⇒sec2xdx=dz
Now we replace the values of the integral ∫tann−2xsec2xdx and get
∫tann−2xsec2xdx=∫(tanx)n−2(sec2xdx)=∫zn−2dz.
We know that the integral of nth power of x is ∫xndx=n+1xn+1+c.
Therefore, ∫zn−2dz=n−2+1zn−2+1+c=n−1zn−1+c.
We replace the value of z and get ∫tann−2xsec2xdx=n−1tann−1x+c.
So, the total integral In=∫tannxdx=∫tann−2xsec2xdx−∫tann−2xdx becomes
In=∫tannxdx=n−1tann−1x−In−2+c
Now we can see the integral power of ratio tan reducing in every integral by 2.
Therefore, the final integral solution is dependent on the value of n.
The next step of the integral is the In−2. Replacing value of (n−2) in the value of n, we get
In−2=∫tann−2xdx=n−3tann−3x−In−4+c.
Now replacing value of In−2 in In, we get In=n−1tann−1x−(n−3tann−3x−In−4)+c=n−1tann−1x−n−3tann−3x+In−4+c.
We can see the sign is changing in rotation as plus then minus and then plus.
So, for value of n being even the integral value is
In=n−1tann−1x−n−3tann−3x+....+tanx+(−1)2nx+c.
For value of n being odd the integral value is
In=n−1tann−1x−n−3tann−3x+....+2tan2x+(−1)2n−1log∣secx∣+c.
Note: The constant in the integral has been kept at c at all the time. We are taking the final constant as c. Changing the constant all the time would have been difficult to operate. Also we need to remember instead of using the final formula we should always use the step by step integral to avoid the confusion of signs.