simplify (1-cos^2(x))/tan^2(x) + 2sin^2(x)