Question
Question: How do you find the derivative of \(y=\sin \left( x\cos x \right)\) using the chain rule?...
How do you find the derivative of y=sin(xcosx) using the chain rule?
Solution
We will first see the formula given by the chain rule and its definition. Then we will see the composition of functions in the given function. We will identify this composition of functions with the chain rule. Then we will use the chain rule to find the derivative of the given function. We will also use the product rule for derivatives to find the derivative of one of the functions in the composition.
Complete step-by-step solution:
The chain rule is defined as the rule for computing derivative of a composition of functions. The chain rule is given as,
(f∘g)′=(f′∘g)⋅g′
The given function is y=sin(xcosx). So, we have f(x)=sinx and g(x)=xcosx. Let us find the derivative of the function g(x), We can see that this function is a product of two functions. These two functions are x and cosx. We have the product rule for derivatives which is given as,
dxd(uv)=udxdv+vdxdu
Using this rule, we find the derivative of the function g(x) in the following manner,
dxd(g(x))=dxd(xcosx)∴dxd(g(x))=xdxd(cosx)+cosxdxd(x)
We know that the derivative of the function x is 1 and the derivative of the cosine function is −sinx. Substituting these values in the above equation, we get
dxd(g(x))=x(−sinx)+cosx∴g′(x)=−xsinx+cosx
We know that the derivative of the sine function is cosx. So, using the chain rule, we have the following,
dxdy=dxd(sin(xcosx))⋅dxd(xcosx)
Substituting the values of the derivatives, we get the required derivative as
dxdy=cos(xcosx)⋅(cosx−xsinx)
Note: The chain rule is a very important concept in computing derivatives. We should be familiar with the derivatives of the standard functions for such types of questions. There are multiple rules for derivatives of addition, subtraction, product etc of functions. These rules are useful in computing the derivatives of such functions.