Question
Question: Solve \(\int {\dfrac{{1 + \tan x}}{{1 - \tan x}}} dx\)...
Solve ∫1−tanx1+tanxdx
Solution
We are asked to integrate a given function, there are many ways to integrate a given function. Here, first we use the trigonometric ratio tanx=cosxsinx in both the numerator and denominator and proceed with the simplification. After simplifying, we use the substitution method of integration to proceed further by taking cosx−sinx=t and further simplification gives the required value.
Complete step-by-step answer:
We are asked to find the value of ∫1−tanx1+tanxdx
Now let I=∫1−tanx1+tanxdx
The function inside the integral symbol is known as the integrand.
And the derivative next to the function defines with respect to which variable we are supposed to integrate.
That is, dx defines that the given function should be integrated with respect to x
Firstly, let's write down the given function
I=∫1−tanx1+tanxdx……… (1)
We know that by trigonometric ratios that tanx=cosxsinx
Substitute tanx=cosxsinx in (1) in both the numerator and denominator
Now we need to take LCM in both the numerator and denominator and proceed to simplify
I=∫cosxcosx−sinxcosxcosx+sinxdx
Now we can see that cosx is the common denominator for both the numerator and denominator. Hence, we can cancel it.
I=∫cosx−sinxcosx+sinxdx ……(2)
Now we can use the substitution method of integration to proceed further
Take cosx−sinx=t
We know that differentiation of cosx is −sinx and differentiation of is cosx
Differentiating this we get,
(−sinx−cosx)dx=dt
Taking minus as common we get
−(sinx+cosx)dx=dt
Multiply by −1 on both sides we get
(sinx+cosx)dx=−dt
Now substitute cosx−sinx=t and (sinx+cosx)dx=−dt in (2)
∫cosx−sinxcosx+sinxdx=∫t−dt
Taking the minus outside the integral we get
I=−∫tdt
Now by using integration formulae, we know that ∫xdx=logx+c
Using this our integral becomes
I=−∫tdt=−logt+c
In rules of logarithm, we know that alogb=logba
Using this we get,
I=logt−1+c
Now substitute cosx−sinx=t
I=log(cosx−sinx)−1+c I=log(cosx−sinx1)+c
We know that I=∫1−tanx1+tanxdx
Therefore, ∫1−tanx1+tanxdx=log(cosx−sinx1)+c
Note: The major mistake many students make is multiplying and dividing the given fraction by the conjugate of its denominator, but it will make the problem more hectic. Same way, many get confused with the trigonometric ratios. The solution for the above problem can also be written as −log(cosx−sinx)+c .This is also the correct answer.