Thanks for the quick reply.. :)
Yeah, you'd be right about the amplitude, I was just going by memory..
I can see you've basically factorised out the sqrt(a^2 + b^2), but this bit I'm not sure on:
How?
And so you mean cosx = b/sqrt(a^2 + b^2) too?
Actually, just read another...