ok i Just came out of an exam an wondering if I differentiated part of a question right.

I know

$\displaystyle tan(x)$ differentiates to $\displaystyle sec^2x$

but would $\displaystyle tan(2x)$ differentiate to $\displaystyle 2sec^22x$ or $\displaystyle 2sec^24x$?