Question
Question: If f(x) = x.cos(x) then find the value of \(f'(\pi )\). Formula: \(\cos (A + B) = \cos A\cos B - \...
If f(x) = x.cos(x) then find the value of f′(π).
Formula: cos(A+B)=cosAcosB−sinAsinB
Explanation
Solution
Hint- We will be using the differentiation of f(x)=xcosx and here we are differentiating two functions of x with respect to x. Then replace x by π to obtain f′(π) as shown below. Use cosπ=−1 and sinπ=0.
Complete step-by-step answer:
Given that, f(x)=xcosx
Now differentiating with respect to x, we get
⇒f′(x)=dxdf(x)=cosxdxd(x)+xdxd(cosx)
⇒f′(x)=cosx−xsinx
⇒f′(π)=cosπ−πsinπ⇒−1−π.0
⇒f′(π)=−1
Note- Here, the f(x)=xcosx is a product of two functions of x. We have considered f(x)=f1(x).f2(x) where f1(x)=x and f2(x)=cosx. We have used differentiation formula for product of two functions as shown below:
f′(x)=dxdf(x)=f2(x).dxdf1(x)+f1(x).dxdf2(x).