Question
Question: How do you differentiate \[f(x)={{x}^{2}}\cos x\] using product rule?...
How do you differentiate f(x)=x2cosx using product rule?
Solution
The product rule is a rule for differentiating expressions in which one function is multiplied by another function. The rule follows from the limit definition of derivative
and is given by dxdy=udxdv+vdxdu if y=uv where dxdy means derivative of y with respect to x, dxdv means derivative of v with respect to x and dxdu means derivative of u with respect to x. The above formula is applicable only if u and v are differentiable.
Complete step by step answer:
As per the given question, we have to differentiate the given function using the product rule. Here, the given function to be differentiated is f(x)=x2cosx.
Now, let y=f(x) then u=x2 and v=cosx. We know that, according to power rule,
derivative of axn is given by dxd(axn)=(na)xn−1 and the derivative of trigonometric function cosx is dxd(cosx)=−sinx.
The derivative of function u: -
By comparing the function ‘u’ with the function of power rule, we get the coefficient a=2 and power of x, n=1. Then,
⇒dxdu=2x (⇐according to power rule)
The derivative of function v: -
By comparing the function ‘v’ with the trigonometric function, function ‘v’ is the same as the above trigonometric function. Then,
\Rightarrow $$$$\dfrac{d}{dx}(\cos x)=-\sin x (⇐from derivative of logarithmic function)
Now substituting the above derivatives in product rule, we get
\Rightarrow $$$$\dfrac{dy}{dx}=u\dfrac{dv}{dx}+v\dfrac{du}{dx}