Question
Question: Integrate \[\dfrac{1}{1-\cot x}\] with respect to x....
Integrate 1−cotx1 with respect to x.
Solution
In this question, we have to find the value of ∫1−cotx1dx. For this, we will use the following properties
(i)cotx=sinxcosx
(ii)∫x1dx=ln∣x∣+c
(iii)∫1.dx=x
We will first simplify our given function and then apply (ii) and (iii) to evaluate our integral.
Complete step-by-step answer:
We are given our integral as ∫1−cotx1dx. Let us first simplify the given functions. We know that cotx=sinxcosx, so we get
∫1−sinxcosx1dx
Taking LCM, we get,
⇒∫sinxsinx−cosx1dx
⇒∫sinx−cosxsinxdx
Now, multiplying and dividing by 2, we get,
⇒∫2(sinx−cosx)2sinxdx
⇒21∫(sinx−cosx)2sinxdx
⇒21∫sinx−cosxsinx+sinxdx
Adding and subtracting cos x in the numerator, we get,
⇒21∫sinx−cosxsinx+sinx+cosx−cosxdx
Rearranging the terms, we get,
⇒21∫(sinx−cosxsinx−cosx+sinx−cosxsinx+cosx)dx
⇒21∫(1+sinx−cosxsinx+cosx)dx
Separating the integrals, we get,
⇒21∫1.dx+21∫(sinx−cosxsinx+cosx)dx......(i)
Now, let us evaluate the integral separately. Let us assume, I1=∫1.dx and I2=∫(sinx−cosx)(sinx+cosx)dx. Let us evaluate I1 first. So, we have, I1=∫1.dx.
We know that, ∫1.dx=x+c, so we get,
I1=x+c1[c1 is any constant]
Now, let us evaluate I2. We have,
I2=∫(sinx−cosx)(sinx+cosx)dx
Let us put sin x – cos x = t. Taking the derivative with respect to x, we get,
⇒dxd(sinx−cosx)=dxdt
Since, dxdsinx=cosx and dxdcosx=−sinx. So, we get,
⇒cosx−(−sinx)=dxdt
⇒sinx+cosx=dxdt
Cross multiplying we get,
⇒dt=(sinx+cosx)dx
In I2 putting the values, we get,
I2=∫tdt
⇒I2=∫t1dt
We know that, ∫x1dx=ln∣x∣+c.
Hence, we get,
⇒I2=ln∣t∣+c2[c2 is any constant]
Since t was supposed to be sin x – cos x, so,
⇒I2=ln∣sinx−cosx∣+c2
Now putting the values of I1 and I2 in (i), we get,
⇒21(x+c1)+21(ln∣sinx−cosx∣+c2)
⇒2x+2c1+21ln∣sinx−cosx∣+2c2
⇒2x+21ln∣sinx−cosx∣+c[c=2c1+2c2]
Hence,
∫1−cotx1dx=2x+21ln∣sinx−cosx∣+c
Note: The most common mistake that students can make is to forget adding the constant term after evaluating the integral. Take care of the signs while simplifying the fractions. Also, take care of the signs while substituting the values of sin x – cos x. Make sure to take the negative sign with sin x as a derivative of cos x. At the end, we have taken 2c1+2c2 as c because c,c1,c2 are any constants and adding c1,c2 will give any constant which we assumed as c.