Trigonometry Examples

Solve for x (1-tan(x)^2)/(1+tan(x)^2)=cos(2x)
I am unable to solve this problem.