Let .
Apply the power rule: goes to
Then, apply the chain rule. Multiply by :
Rewrite the function to be differentiated:
Apply the quotient rule, which is:
and .
To find :
Let .
The derivative of sine is cosine:
Then, apply the chain rule. Multiply by :
Differentiate term by term:
Apply the power rule: goes to
The derivative of the constant is zero.
The result is:
The result of the chain rule is:
To find :
Let .
The derivative of cosine is negative sine:
Then, apply the chain rule. Multiply by :
Differentiate term by term:
Apply the power rule: goes to
The derivative of the constant is zero.
The result is:
The result of the chain rule is:
Now plug in to the quotient rule:
The result of the chain rule is:
Now simplify:
The answer is:
3 / 2/ 4 \\ / 4 \ 8*x *\1 + tan \x - 2//*tan\x - 2/
2 / 2/ 4\\ / / 4\ 4 / 2/ 4\\ 4 2/ 4\\ 8*x *\1 + tan \-2 + x //*\3*tan\-2 + x / + 4*x *\1 + tan \-2 + x // + 8*x *tan \-2 + x //
/ 2/ 4\\ / / 4\ 4 / 2/ 4\\ 8 3/ 4\ 4 2/ 4\ 8 / 2/ 4\\ / 4\\ 16*x*\1 + tan \-2 + x //*\3*tan\-2 + x / + 18*x *\1 + tan \-2 + x // + 32*x *tan \-2 + x / + 36*x *tan \-2 + x / + 64*x *\1 + tan \-2 + x //*tan\-2 + x //