solve sin(2x)+ cos(2x) - tan(x) = 2 sin^2(x)+sin^2(2x) - 2