I need help proving this identity. I have tried simplifying it, but can't seem to get it to be true, although I have been told that it is. Can you help / sho all work?
$$\left(1-\cos^2x\right)\left(1+\tan^2x\right)=\tan^2x.$$
Edit: Here is the work I did (including errors):
So I know that $(1-\cos^2 x) = \sin^2x$
Then I changed $\tan^2 x$ to terms of $(\frac{\sin x}{\cos x})^2$.
Giving: $(\sin^2 x) (1+ \frac{\cos^2x}{\sin^2x})$.
From there I multiplied out getting: $\sin^2x + (\sin^2 x+\frac{\cos^2x}{\sin^2x}).$
Then simplifying from there I get $\sin^2x+ \cos^2x$.
L.H.S= $$(1-\cos^2 x)(1+\tan^2 x)$$ $$=\sin^2 x\cdot\sec^2 x$$ $$=\dfrac{\sin^2 x}{\cos^2 x}$$ $$=\tan^2 x=\text{R.H.S.}$$