step-by-step
$$\frac{d}{dx}\left(\tan^{2}\left(x\right)\cos^{2}\left(x\right)+\cot^{2}\left(x\right)\sin^{2}\left(x\right)\right)$$
ja