How to really solve sin(x^2)=sin(x)