Solveeit Logo

Question

Question: How do you differentiate \[\sin x+\cos y=\sin x\cos y\]?...

How do you differentiate sinx+cosy=sinxcosy\sin x+\cos y=\sin x\cos y?

Explanation

Solution

Differentiation refers to the rate with which a function changes. So change of that function is found using another parameter with which the change is measured. So we will differentiate y terms with respect to x and solve dydx\dfrac{dy}{dx}.
For eg – if we want to differentiate sin x with respect to x, we get,
sinx=ddx(sinx)=cosx\sin x=\dfrac{d}{dx}(\sin x)=\cos x

Complete step by step answer:
According to the question we have to differentiate sinx+cosy=sinxcosy\sin x+\cos y=\sin x\cos y.
Before starting to differentiate, check what is asked in the question whether it is dydx\dfrac{dy}{dx} or dxdy\dfrac{dx}{dy}. At first it might hardly seem any different but it is what makes all the difference.
dydx\dfrac{dy}{dx} means that we have to differentiate yy with respect to xx.
Similarly, dxdy\dfrac{dx}{dy} means that we have to differentiate xx with respect to yy.
So, in the given question we are asked to differentiate yy with respect to xx, that is, dydx\dfrac{dy}{dx}.
Differentiating both sides, we get
ddx(sinx+cosy)=ddx(sinxcosy)\dfrac{d}{dx}(\sin x+\cos y)=\dfrac{d}{dx}(\sin x\cos y)
ddx(sinx)+ddx(cosy)=ddx(sinxcosy)\dfrac{d}{dx}(\sin x)+\dfrac{d}{dx}(\cos y)=\dfrac{d}{dx}(\sin x\cos y)
We know that, derivative of sinx\sin x is cosx\cos x. And the derivative cosy\cos y will be different, cosy\cos y will be first differentiated and since the variable is y, so the differentiation of y will be dydx\dfrac{dy}{dx}.
On the right hand side of the equation, we have sinxcosy\sin x\cos y, so it will undergo differentiation using the product rule.
We get,
cosx+(siny)dydx=sinxddx(cosy)+cosyddx(sinx)\cos x+(-\sin y)\dfrac{dy}{dx}=\sin x\dfrac{d}{dx}(\cos y)+\cos y\dfrac{d}{dx}(\sin x)
cosxsinydydx=sinx(siny)dydx+cosy(cosx)\cos x-\sin y\dfrac{dy}{dx}=\sin x(-\sin y)\dfrac{dy}{dx}+\cos y(\cos x)
Now, we will rearrange the equation to get dydx\dfrac{dy}{dx} on one side and the rest on the other side.
sinx(siny)dydxsinydydx=cosy(cosx)cosx\sin x(\sin y)\dfrac{dy}{dx}-\sin y\dfrac{dy}{dx}=\cos y(\cos x)-\cos x
(sinx(siny)siny)dydx=cosy(cosx)cosx(\sin x(\sin y)-\sin y)\dfrac{dy}{dx}=\cos y(\cos x)-\cos x
dydx=cosy(cosx)cosx(sinx(siny)siny)=cosx(cosy1)siny(sinx1)\Rightarrow \dfrac{dy}{dx}=\dfrac{\cos y(\cos x)-\cos x}{(\sin x(\sin y)-\sin y)}=\dfrac{\cos x(\cos y-1)}{\sin y(\sin x-1)}
Therefore, dydx=cosx(cosy1)siny(sinx1)\dfrac{dy}{dx}=\dfrac{\cos x(\cos y-1)}{\sin y(\sin x-1)}

Note:
While solving the question care should be given to the parameter with which the rate of change of the function is asked else it will result in a wrong answer. The differentiation should be carried out step wise else if a step is missed then the entire answer will go wrong.