How does 1-cos^2(x)=tan^2(x)

Nevermind those are not equivalent. I realized my mistake