Question
Question: If \(\frac{d}{dx}f(x) = x\cos x + \sin x\) and \(f(0) = 2,\) then \(f(x) =\)...
If dxdf(x)=xcosx+sinx and f(0)=2, then f(x)=
A
xsinx
B
xcosx+sinx+2
C
xsinx+2
D
xcosx+2
Answer
xsinx+2
Explanation
Solution
dxdf(x)=xcosx+sinx⇒f(x)=∫(xcosx+sinx)dx=xsinx+cSince f(0)=2
⇒c=2, ∴f(x)=xsinx+2