Question
Question: Solve \( \int \dfrac{{\sin x}}{{\left( {\sin x - \cos x} \right)}}dx \)...
Solve ∫(sinx−cosx)sinxdx
Solution
Hint : Here first we are rationalizing the denominator by multiplying the numerator and denominator with the denominator’s conjugate. Conjugate of the denominator is (sinx+cosx) . And then we get a result in squares of the terms. So use the below mentioned formulas appropriately and find the integration value.
Formulas used:
1. cos2x−sin2x=cos2x
2. sin2x=2sinxcosx
3. sin2x=21−cos2x
4. ∫tanxdx=log∣secx∣+c
5. ∫secxdx=log∣secx+tanx∣+c
Complete step-by-step answer :
We are given to solve the integration ∫(sinx−cosx)sinxdx
Multiplying the numerator and denominator of the above trigonometric expression by denominator’s conjugate (sinx+cosx) , we get ∫(sinx−cosx)(sinx+cosx)sinx(sinx+cosx)dx
Considering sinx as ‘a’ and cosx as ‘b’, the denominator will be in the form (a−b)(a+b) which is equal to a2−b2
Therefore, the expression becomes ∫(sin2x−cos2x)sinx(sinx+cosx)
Expanding the numerator, we get
⇒∫(sin2x−cos2x)sin2x+sinxcosxdx
The numerator is now a sum of two terms, so the integration can be divided into two smaller integrations
⇒∫(sin2x−cos2x)sin2xdx+∫(sin2x−cos2x)sinxcosxdx
We know that cos2x−sin2x=cos2x and we have sin2x−cos2x in the denominator of the above integrations. So the value of sin2x−cos2x is −cos2x . Therefore the integrations become
⇒∫−cos2xsin2xdx+∫−cos2xsinxcosxdx
And sin2x=21−cos2x
⇒−∫cos2x(21−cos2x)dx−∫cos2xsinxcosxdx=−∫2(cos2x)1−cos2xdx−∫cos2xsinxcosxdx
The value of sin2x=2sinxcosx , this gives the value of sinxcosx=2sin2x
⇒−∫2(cos2x)1−cos2xdx−∫cos2x(2sin2x)dx=−∫2(cos2x)1−cos2xdx−∫2cos2xsin2xdx
Taking 21 common out, we get
⇒21[−∫cos2x1−cos2xdx−∫cos2xsin2xdx]
Expanding the first integration into two, we get
⇒21[−∫cos2x1dx+∫cos2xcos2xdx−∫cos2xsin2xdx]
The inverse of cosine is secant and the ratio of sine and cosine is tangent, then we get
⇒21[−∫sec2xdx+∫1dx−∫tan2xdx]
We know that ∫secxdx=log∣secx+tanx∣+c and ∫tanxdx=log∣secx∣+c , but here we have 2x in the place of x.
Therefore, we get
⇒21[−(2log∣sec2x+tan2x∣)+x−2log∣sec2x∣+c]
Sending 21 inside, we get
⇒−(4log∣sec2x+tan2x∣)+2x−4log∣sec2x∣+c
Therefore, the value of ∫(sinx−cosx)sinxdx is −(4log∣sec2x+tan2x∣)+2x−4log∣sec2x∣+c
So, the correct answer is “−(4log∣sec2x+tan2x∣)+2x−4log∣sec2x∣+c ”.
Note : ‘c’ is known as the integration constant and the sum of constants is always a constant. So we can write only one ‘c’ for the whole integration. And lastly we have divided the integration results by 2 because, when any trigonometric function has an angle like ‘nx’, the result must be divided by n. Here the angle is 2x, so we have divided by 2. Conjugate of an expression will have a different sign from the original.