Ok, this is pretty complex. Let me start with how I approach the problem.
Write out the force equation, do the cross product, and find the remaining coupled DE's.
Substitute one into the other to find a DE in time. Substitute that solution into the other equation to solve the other variable as a function of time.
I find it easier to just integrate the coupled DE's with respect to the other variable, and get two equations in X, Vx, Z and Vz, instead of going to the 3rd order and doing reduction of order.
I think you made it a lot harder on yourself when you took the exponential functions and said they were equal to four trig functions with four unknowns in front.
you wrote
u=e^{\frac{iqBt}{m}}+e^{\frac{-iqBt}{m}} and then u = \frac{dx}{dt}
If you had integrated from Xo to X, and t0 to t, without doing all the rest of that stuff, it would have been like this:
\int dx=\int e^{\frac{iqBt}{m}}+e^{\frac{-iqBt}{m}} dt
Giving x-x_{0} = \frac{me^{\frac{iqBt}{m}}}{iqB} -\frac{me^{\frac{-iqBt}{m}}}{iqB} using t_{0}=0
Having seen Eulers formula, you should recognize that this is x(t)=\frac{2mSin(\frac{qbt}{m})}{qB}+x_{0} assuming t_{0}=0 and voila! you've got a particular solution with the constants figured out already.
Finally, on the last part where you said you weren't sure about it, I think you're missing the 2nd DE. Either way, when you integrated, you didn't add a constant, and that's no good.
I find it much easier to just do definite integrals on everything, rather than worrying about solving for the constants later on. Plus you can look at your results and start crossing things out which are zeros while substituting in your IV's or BC's without doing any more work.
overall, you managed to get the answer, so props. the good thing about having unknown constants is that if you can figure them out, they will eat up any dropped negatives or simple algebra mistakes you made along the way.
Hope this helps!
austin