Apply the product rule:
; to find :
The derivative of sine is cosine:
; to find :
Let .
Apply the power rule: goes to
Then, apply the chain rule. Multiply by :
The derivative of cosine is negative sine:
The result of the chain rule is:
The result is:
Now simplify:
The answer is:
10 8 2 cos (x) - 9*cos (x)*sin (x)
7 / 2 2 \ cos (x)*\- 28*cos (x) + 72*sin (x)/*sin(x)
6 / 4 2 / 2 2 \ 2 2 2 / 2 2 \\ cos (x)*\- cos (x) - 9*sin (x)*\- 25*cos (x) + 56*sin (x)/ + 27*cos (x)*sin (x) + 27*cos (x)*\- cos (x) + 8*sin (x)//