Solveeit Logo

Question

Question: Differentiate the following function with respect to x. \(\cos \sqrt{x}\) ....

Differentiate the following function with respect to x.
cosx\cos \sqrt{x} .

Explanation

Solution

Hint: In order to crack this problem, we need to know the chain rule of differentiation. It is shown as follows, df(x)dx=dg(h(x))dh(x)×dh(x)dx\dfrac{df\left( x \right)}{dx}=\dfrac{dg\left( h\left( x \right) \right)}{dh\left( x \right)}\times \dfrac{dh\left( x \right)}{dx} . Also, we need to know the individual differentiation formulas for each sun functions like dcosxdx=sinx\dfrac{d\cos x}{dx}=-\sin x and dxdx=12x\dfrac{d\sqrt{x}}{dx}=\dfrac{1}{2\sqrt{x}} .

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)=cosxf\left( x \right)=\cos \sqrt{x} .
The above function is in the form f(x)=g(h(x))f\left( x \right)=g\left( h\left( x \right) \right)
By comparing with the above form we can see that,
h(x)=xh\left( x \right)=\sqrt{x} and g(x)=cosxg\left( \sqrt{x} \right)=\cos \sqrt{x} …………..(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,
df(x)dx=dg(h(x))dh(x)×dh(x)dx................(ii)\dfrac{df\left( x \right)}{dx}=\dfrac{dg\left( h\left( x \right) \right)}{dh\left( x \right)}\times \dfrac{dh\left( x \right)}{dx}................\left( ii \right)
Therefore, from (i) and (ii) substituting the values, we get,
df(x)dx=dcosxdx×dxdx\dfrac{df\left( x \right)}{dx}=\dfrac{d\cos \sqrt{x}}{d\sqrt{x}}\times \dfrac{d\sqrt{x}}{dx}

The differentiation cosx\cos x is dcosxdx=sinx..............(iii)\dfrac{d\cos x}{dx}=-\sin x..............(iii)
And, the differentiation of x\sqrt{x} is dxdx=12x................(iv)\dfrac{d\sqrt{x}}{dx}=\dfrac{1}{2\sqrt{x}}................(iv)
Substituting the values from equation (iii) and (iv) we get,
df(x)dx=sin(x)×12x\dfrac{df\left( x \right)}{dx}=-\sin \left( \sqrt{x} \right)\times \dfrac{1}{2\sqrt{x}}
Simplifying it further we get,
df(x)dx=sinx2x\dfrac{df\left( x \right)}{dx}=\dfrac{-\sin \sqrt{x}}{2\sqrt{x}} .
Hence, this is the required solution.

Note: We need to remember the standard formulas of differentiation such as dcosxdx=sinx\dfrac{d\cos x}{dx}=-\sin x . One more important point not to be missed is there is a negative sign for differentiation of cosx\cos x . This sign can easily be missed. Also, in the formula for chain rule, df(x)dx=dg(h(x))dh(x)×dh(x)dx\dfrac{df\left( x \right)}{dx}=\dfrac{dg\left( h\left( x \right) \right)}{dh\left( x \right)}\times \dfrac{dh\left( x \right)}{dx} , The first time is differentiated with respect to h(x)h\left( x \right) and not only xx .