Question
Question: Differentiate the given trigonometric expression. \(\dfrac{{\sin x - x\cos x}}{{x\sin x + \cos x}}...
Differentiate the given trigonometric expression.
xsinx+cosxsinx−xcosx
Solution
Hint: To solve the above question, we will have to use the product rules and quotient rules of differentiation. According to product rule of differentiation, we have:
dxd(f(x).g(x))=g(x)[dxdf(x)]+f(x)[dxdg(x)]
The quotient rule of differentiation says that:
dxd(g(x)f(x))=(g(x))2g(x)[dxdf(x)]−f(x)[dxdg(x)]
Complete step-by-step solution -
The function given in question for which we have to find derivative is in the form of g(x)f(x) where f(x)=sinx−xcosx and g(x)=xsinx+cosx. To differentiate a function of the form g(x)f(x), we will use quotient rule of differentiation says that the derivative of the function g(x)f(x) is calculated as shown below:
dxd(g(x)f(x))=(g(x))2g(x)[dxdf(x)]−f(x)[dxdg(x)]
In our question, we have to find the differentiation of xsinx+cosxsinx−xcosx. In our case, f(x)=sinx−xcosxand g(x)=xsinx+cosx. Therefore, after applying quotient rule of differentiation, we get:
dxd(xsinx+cosxsinx−xcosx)=(xsinx+cosx)2(xsinx+cosx)dxd[sinx−xcosx]−(sinx−xcosx)[dxd(xsinx+cosx)]…………………....(i)
Let sinx−xcosx=P and xsinx+cosx=q. Now first we will find the derivative of P with respect to x. Now according to sum rule of differentiation, we have,
dxdP=dxd(sinx−xcosx)=dxd(sinx)−dxd(xcosx) …………….……(ii)
Now, we know that dxd(sinx)=cosx. We will calculate the value of dxd(xcosx) with the help of quotient rule:
dxd(f(x).g(x))=g(x).dxdf(x)+f(x).dxdg(x)
In our case, f(x)=x and g(x)=cosx. So we have:
dxd(xcosx)=cosx.dxd(x)+x.dxd(cosx)
Now, because dxdx=1 and dxdcosx=−sinx
dxd(xcosx)=cosx.1+x(−sinx)
⇒dxd(xcosx)=cosx−xsinx
Now we will put the respective values into (ii). After doing this:
⇒dxd(sinx−xcosx)=cosx−(cosx−xsinx)
⇒dxd(sinx−xcosx)=xsinx ……….……(iii)
Now ,we will find the derivative of q with respect to x.
According to sum rule, we have:
dxdq=dxd(xsinx+cosx)=dxd(xsinx)+dxdcosx ……………….……(iv)
Know we know that dxd(cosx)=−sinx. The derivative of xsinxcan be calculated with the help of quotient rule:
⇒dxd(xsinx)=sinx.dxd(x)+x.dxd(sinx)
Now, because dxdx=1 and dxd(sinx)=cosx
⇒dxd(xsinx)=sinx.1+x.cosx
⇒dxd(xsinx)=sinx+xcosx
Now, we will put the respective values into (iv)
⇒dxd(xsinx+cosx)=sinx+xcosx−sinx
⇒dxd(xsinx+cosx)=xcosx ……...……(v)
Now, we will put the values of derivatives from (iii) and (v) into (i)
⇒dxd[xsinx+cosxsinx−xcosx]=(xsinx+cosx)2(xsinx+cosx)(xsinx)−(sinx−xcosx)(xcosx)
⇒dxd(qP)=(xsinx+cosx)2x2sin2x+xcosxsinx−xcosxsinx+x2cos2x
⇒dxd(qP)=(xsinx+cosx)2x2(sin2+cos2x)
⇒dxd(qP)=(xsinx+cosx)2x2
⇒dxd(xsinx+cosxsinx−xcosx)=(xsinx+cosxx)2
Note: Here we need to keep in mind that the derivative which we have found above is not valid when the denominator is zero. Thus when xsinx+cosx=0 the differentiation does not exist.