Question
Question: Evaluate the given indefinite integral: \(\int{\dfrac{\sin x}{\sin x-\cos x}dx}\)? (a) \(\dfrac{1}...
Evaluate the given indefinite integral: ∫sinx−cosxsinxdx?
(a) 21log(sinx−cosx)+x+c
(b) 21(log(sinx−cosx)+x)+c
(c) 21log(cosx−sinx)+x+c
(d) 21(log(cosx−sinx)+x)+c
Solution
We start solving the problem by assigning the variable for the given indefinite integral. We then make the necessary arrangements to make it as a sum of two integrals. We then solve each integral separately and then add them together at last. We solve the first integral by using the property that ∫adx=ax+C, where C is an arbitrary constant. We then solve the second integral by using the facts that d(sinx)=cosxdx, d(cosx)=−sinxdx and ∫x1dx=logx+C, where C is an arbitrary constant. We then add both the obtained integrals to get the required result.
Complete step-by-step answer:
According to the problem, we are asked to evaluate the given indefinite integral ∫sinx−cosxsinxdx.
Let us assume I=∫sinx−cosxsinxdx.
⇒I=21∫sinx−cosx2sinxdx.
⇒I=21∫sinx−cosx2sinx−cosx+cosxdx.
⇒I=21∫sinx−cosxsinx−cosx+sinx+cosxdx.
⇒I=21∫sinx−cosxsinx−cosxdx+21∫sinx−cosxsinx+cosxdx.
Let us assume ∫sinx−cosxsinx−cosxdx=I1 and ∫sinx−cosxsinx+cosxdx=I2.
⇒I=21I1+21I2 ---(1).
Let us first solve I1, I2 and then substitute the results in equation (1).
Now, let us solve for I1.
So, we have I1=∫sinx−cosxsinx−cosxdx.
⇒I1=∫1dx.
We know that ∫adx=ax+C, where C is an arbitrary constant.
⇒I1=x+c1 ---(2).
Now, let us solve for I2.
So, we have I2=∫sinx−cosxsinx+cosxdx ---(3).
Let us assume sinx−cosx=t ---(4). Let us apply differential on both sides.
So, we get d(sinx−cosx)=dt.
We know that d(a−b)=da−db.
⇒d(sinx)−d(cosx)=dt.
We know that d(sinx)=cosxdx and d(cosx)=−sinxdx.
⇒(cosxdx)−(−sinxdx)=dt.
⇒(cosx+sinx)dx=dt ---(5).
Let us substitute equations (4) and (5) in equation (3).
So, we get I2=∫t1dt.
We know that ∫x1dx=logx+C, where C is an arbitrary constant.
⇒I2=logt+c2.
From equation (4), we have t=sinx−cosx.
⇒I2=log(sinx−cosx)+c2 ---(6).
Let us substitute equation (2) and (6) in equation (1).
So, we get I=21(x+c1)+21(log(sinx−cosx)+c2).
⇒I=21(log(sinx−cosx)+x)+21(c1+c2).
Since c1, c2 are two arbitrary constants, we replace 2c1+c2 with c.
⇒I=21(log(sinx−cosx)+x)+c.
So, we have found the result of indefinite integral ∫sinx−cosxsinxdx as 21(log(sinx−cosx)+x)+c.
So, the correct answer is “Option B”.
Note: We can see that the given problems contain a huge amount of calculation, so we need to perform each step to avoid calculation mistakes. We should not forget to add arbitrary constants while solving problems that consist of indefinite integrals. We can also make use of the formula ∫fsinx+gcosxdsinx+ecosxdx=alog(fsinx+gsinx)+bx+C, where a(dxd(fsinx+gcosx))+b(fsinx+gcosx)=dsinx+ecosx. We can make use of the results cosx=1+tan2(2x)1−tan2(2x) and sinx=1+tan2(2x)2tan(2x) to get the required result.