Apply the product rule:
; to find :
Apply the power rule: goes to
; to find :
Rewrite the function to be differentiated:
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:
2 2*x*sec(x) + x *sec(x)*tan(x)
/ 2 / 2 \ \ \2 + x *\1 + 2*tan (x)/ + 4*x*tan(x)/*sec(x)
/ / 2 \ 2 / 2 \ \ \6*tan(x) + 6*x*\1 + 2*tan (x)/ + x *\5 + 6*tan (x)/*tan(x)/*sec(x)