Q:

Please check result of derivative

i am trying calculate this math derivative of . I use chain rule and here is my result:

Can you check this please? I tried wolphramalpha but it give me another result:

What I do wrong?

A:

You are good, they coincide exactly since
$$
\tan x  = \frac{\sin x}{\cos x}
$$

