Are you solving a differential equation, or is this this just a trigonometry problem? If it's a D.E. then I think your problem is having a general solution of similar form to your particular solution (N.B. if you have a D.E. of the form f(y'', y', y)=f(x), the general solution is when you set...