${ x }^{ 2 }(4\sin { x+\log { x\cos { x) }}}$ ?
I tried and got the answer as $8x\cdot \cos { x }$ which is wrong.
${ x }^{ 2 }(4\sin { x+\log { x\cos { x) }}}$ ?
I tried and got the answer as $8x\cdot \cos { x }$ which is wrong.
Use the product rule, which says the derivative of $f(x)g(x)$ is $f'(x)g(x)+f(x)g'(x)$.
Note that the derivative of $x^2(4 \sin x+ \log x \cos x)$ is $$2x (4 \sin x+\log x \cos x)+x^2\left(4 \cos x+ \frac{\cos x}{x}-\log x \sin x\right) $$ I think you can simplify this. This uses that $$\frac{\mathrm{d}}{\mathrm{d}x} \cos x=-\sin x$$$$\frac{\mathrm{d}}{\mathrm{d}x} \sin x=\cos x$$$$\frac{\mathrm{d}}{\mathrm{d}x} \log x=\frac{1}{x}$$ From your answer, I'm guessing you only calculated $2x (4 \sin x)$.