Equations involving sin(x) and cos(x)