Question: Express a*cos(x)+b*sin(x) as c*cos(x+ph)?

Can someone explain how to convert an expression of the form "a*cos(x)+b*sin(x)" to "c*cos(x-ph)"  using the formula c=sqrt(a*a+b*b) and ph=atan2(a,b) ?  I haven't been able to get Maple to do it.

thanks

Please Wait...