Question
Question: Evaluate the following integral: \(\int{\dfrac{\left( 1+\tan x \right)}{\left( 1-\tan x \right)}dx}\...
Evaluate the following integral: ∫(1−tanx)(1+tanx)dx
Solution
We know that tan4π=1 and tan(A+B)=1−tanAtanBtanA+tanB. By, using these two identities, we can convert 1−tanx1+tanx=tan(4π+x), and can easily get the result by using the formula ∫tanxdx=log∣secx∣+c. We can also solve this problem by replacing tanx=cosxsinx and using integration by substitution method.
Complete step-by-step solution:
Let us assume the required integral to be I=∫(1−tanx)(1+tanx)dx.
We all know very well that the tangent of angle 4π is unity, that is
tan4π=1.
So, by using the above information, we can write
1−tanx1+tanx=1−tan4πtanxtan4π+tanx...(i)
Also, we know the identity, tan(A+B)=1−tanAtanBtanA+tanB. So, by using the converse of this identity on the right hand side of equation (i), we get
1−tanx1+tanx=tan(4π+x)
Hence, we can write
I=∫tan(4π+x)dx.
We know that the integration of tanx is log∣secx∣, that is,
∫tanxdx=log∣secx∣+c.
So, by using the above formula, we can write the following
I=logsec(4π+x)+c.
Alternatively, we can also solve this problem as shown below.
We know that tanx=cosxsinx. Thus, we can write
1−tanx1+tanx=1−cosxsinx1+cosxsinx
On simplifying the right hand side of this equation, we get
1−tanx1+tanx=cosxcosx−sinxcosxcosx+sinx
And thus, we now have
1−tanx1+tanx=cosx−sinxcosx+sinx
So, we can now write
I=∫cosx−sinxcosx+sinxdx
Let us assume t=cosx−sinx.
By differentiating t, we can write
dt=(−sinx−cosx)dx
⇒dt=−(sinx+cosx)dx
Hence, we can write
I=∫t−1dt
We know the integration identity ∫x1dx=log∣x∣+c. Thus, we have
I=−log∣t∣+k
We can now substitute the value of t back in the above equation. Hence, we get
I=−log∣cosx−sinx∣+k.
Thus, we can express the required answer as I=logsec(4π+x)+c or I=−log∣cosx−sinx∣+k.
Note: We can see here that logsec(4π+x) and −log∣cosx−sinx∣ are not equivalent to each other. But these two are related by a factor of 2. Also, we know that logmn=logm+logn. And since we know that log2 is a constant, these two results are equivalent to each other. So, we must never forget the constant of integration in our results.