Question
Question: How do you integrate \[\int{\dfrac{\sin x}{\sin x-\cos x}dx}\]?...
How do you integrate ∫sinx−cosxsinxdx?
Solution
In the given question, we have been asked to integrate the function. In order to solve the questions, we have to use trigonometric identities to simplify the given integration function and then follow integration formulas or methods to integrate. We have to split the given trigonometric terms by using identities. Perform further integration in the simplified form and hence we get the required solution.
Formula used:
i) Following trigonometric identities are used:
cos2x−sin2x=cos2x
sin2x=2 sinxcosx
sin2x=21−cos2x
ii) Following integration formula are used:
∫tan(x)dx=log∣secx∣+C
∫sec(x)dx=log∣secx+tanx∣+C
∫dx=x+C
Complete step-by-step solution:
We have the given integration function,
⇒∫sinx−cosxsinxdx
Let,
⇒I=∫sinx−cosxsinxdx
Multiplying the numerator and denominator by sinx+cosx, we get
⇒∫sinx−cosx(sinx+cosx)sinx(sinx+cosx)dx
Simplifying the above integrating function, we get
⇒∫(sinx−cosx)(sinx+cosx)sin2x+sinxcosxdx
Putting the identity of a2−b2=(a+b)(a−b) in the denominator, we get
⇒∫sin2x−cos2xsin2x+sinxcosxdx
Split it into two parts, we get
⇒∫sin2x−cos2xsin2xdx+∫sin2x−cos2xsinxcosxdx
Using the identity of trigonometry i.e.
cos2x−sin2x=cos2x
sin2x=2sinxcosx
sin2x=21−cos2x
Applying these identity in the solved integral, we get
⇒−∫2cos2x1−cos2xdx−∫2cos2xsin2xdx
⇒−∫2sec2xdx+∫21dx−∫2tan2xdx
Using,
∫tan(x)dx=log∣secx∣+C
∫sec(x)dx=log∣secx+tanx∣+C
∫dx=x+C
After applying these identities of trigonometry, we get
⇒4log∣sec2x+tan2x∣+2x−4log∣sec2x∣+C
Therefore,
⇒∫sinx−cosxsinxdx=4log∣sec2x+tan2x∣+2x−4log∣sec2x∣+C
Note: In order to solve the given question, we used trigonometric identities to simplify the given function and then split it into two terms. We split the function inside the integral only because the operation between both the functions is addition. If there is a mathematical operation of multiplication, then here we integrate the given function by using the integration by parts. We should remember the trigonometric identities, this would make it easier to solve the question. There are also many other methods for integration. These are integration by substitution and integration by partial fractions. You should always remember all the methods for integration so that we can easily choose which method is suitable for solving the particular type of question. We should do all the calculations carefully and explicitly to avoid making errors.