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