Question
Question: Differentiate the following function with respect to x. \(\cos \sqrt{x}\) ....
Differentiate the following function with respect to x.
cosx .
Solution
Hint: In order to crack this problem, we need to know the chain rule of differentiation. It is shown as follows, dxdf(x)=dh(x)dg(h(x))×dxdh(x) . Also, we need to know the individual differentiation formulas for each sun functions like dxdcosx=−sinx and dxdx=2x1 .
Complete step-by-step answer :
We aim to find the differentiation of this function with respect to x.
Let the function be named as f(x)=cosx .
The above function is in the form f(x)=g(h(x))
By comparing with the above form we can see that,
h(x)=x and g(x)=cosx …………..(i)
To find the differentiation we need to use the chain rule of differentiation as the functions cannot be separated as such.
The chain rule states as follows,
dxdf(x)=dh(x)dg(h(x))×dxdh(x)................(ii)
Therefore, from (i) and (ii) substituting the values, we get,
dxdf(x)=dxdcosx×dxdx
The differentiation cosx is dxdcosx=−sinx..............(iii)
And, the differentiation of x is dxdx=2x1................(iv)
Substituting the values from equation (iii) and (iv) we get,
dxdf(x)=−sin(x)×2x1
Simplifying it further we get,
dxdf(x)=2x−sinx .
Hence, this is the required solution.
Note: We need to remember the standard formulas of differentiation such as dxdcosx=−sinx . One more important point not to be missed is there is a negative sign for differentiation of cosx . This sign can easily be missed. Also, in the formula for chain rule, dxdf(x)=dh(x)dg(h(x))×dxdh(x) , The first time is differentiated with respect to h(x) and not only x .