Question
Question: Evaluate the following expression \(\int{\sqrt{\tan x}dx}\)....
Evaluate the following expression ∫tanxdx.
Solution
Hint: In order to solve this question, we will first consider tanx=t2 and then we will simplify it to form an easily integrable form and then we will integrate it to get our answer. While solving this question, we need to remember that ∫x2+a21dx=a1tan−1ax and ∫x2−a21dx=2a1lnx+ax−a, By using these, we can solve this question.
Complete step-by-step answer:
In this question, we have asked to find the integral of tanx. To solve this question, let us consider, I=∫tanxdx and tanx=t. So, we can say d(tanx)=d(t) and we get, 2tanxsec2xdx=dt. Now, we know that sec2x=1+tan2x=1+t4. Therefore, we get, 2t1+t4dx=dt, which can be written as, dx=1+t42tdt. Therefore, we get the integral as,
I=∫1+t42t2dtI=∫1+t4t.2tdt
And we can further write it as,
I=∫1+t4t2+t2dt
Now, we will add and subtract 1 from the numerator. So, we get,
I=∫1+t4t2+1+t2−1dtI=∫(1+t4t2+1+1+t4t2−1)dt
Now, we will take t2 common from both the numerator and the denominator. So, we get,
I=∫t2+t211+t21+t2+t211−t21dt
Now, we will add and subtract 2 from the denominator. So, we get,
I=∫t2+t21+2−21+t21+t2+t21+2−21−t21dt
Now, we know that (a−b)2=a2+b2−2ab and (a+b)2=a2+b2+2ab. So, for a = t and b=t1, we get, (t−t1)2=t2+t21−2 and (t+t1)2=t2+t21+2. Therefore, we can write the first and the second term of the integral as,
I=∫(t−t1)2+21+t21+(t+t1)2−21−t21dt
And, it can be further written as,
I=∫(t−t1)2+21+t21dt+(t+t1)2−21−t21dt
Now, we will consider, ∫(t−t1)2+21+t21dt as A and ∫(t+t1)2−21−t21dt as B. So, we can write I as,
I = A + B……… (i)
Now, we will simplify A and B individually to get the value of I. So, we can write,
A=∫(t−t1)2+21+t21dt and B=∫(t+t1)2−21−t21dt
Now, consider (t−t1)=u and (t+t1)=v. So, we can write, (1+t21)dt=du and (1−t21)dt=dv
Therefore, we can write A and B as,
A=∫u2+(2)21du and B=∫v2+(2)21dv
Now, we know that ∫x2+a21dx=a1tan−1ax. So, for x = u and a=2, we can write,
∫u2+(2)21du=21tan−1(2u). We also know that ∫x2−a21dx=2a1lnx+ax−a. So, for, x = v and a=2, we can write, ∫v2−(2)21dv=221lnv+2v−2
Therefore, we can write A and B as,
A=21tan−1(2u)+c′ and B=221lnv+2v−2+c′′
Now, we will put the values of u and v, that is, u=(t−t1) and v=(t+t1) in A and B. So, we get,
A=21tan−12t−t1+c′ and B=221lnt+t1+2t+t1−2+c′′
Now, we will put the values of A and B in equation (i), so we get,
I=21tan−12t−t1+221lnt+t1+2t+t1−2+c′+c′′
Now, we will put the Values of t, that is, tanx and c = c’+ c’’. So, we get I as,
I=21tan−12tanx−tanx1+221lntanx+tanx1+2tanx+tanx1−2+c
Hence, we can say that integral of tanx is 21tan−12tanx−tanx1+221lntanx+tanx1+2tanx+tanx1−2+c
Note: While solving this question, there are high chances of calculation mistakes as this question contains a lot of calculation. Also, we need to remember a few derivatives like, dxdxn=nxn−1 and dxd(tanx)=sec2x and dxdx=2x1. Also, we have to remember the integrals of x2−a21 and x2+a21 as well. The possibility of mistake here is interchanging the above two integration formulas and getting the wrong answer.