Let .
The derivative of cosine is negative sine:
Then, apply the chain rule. Multiply by :
Apply the power rule: goes to
The result of the chain rule is:
The answer is:
/1\ sin|-| \x/ ------ 2 x
/ /1\\ | cos|-|| | /1\ \x/| -|2*sin|-| + ------| \ \x/ x / --------------------- 3 x
/1\ /1\ sin|-| 6*cos|-| /1\ \x/ \x/ 6*sin|-| - ------ + -------- \x/ 2 x x ---------------------------- 4 x