Question: How to convert "sin(x)+cos(x)" into "sqrt(2)*sin(x+pi/4)"?

As the title, how to convert "sin(x)+cos(x)" and this kinds into "sqrt(2)*sin(x+pi/4)"?

Sum of two sine functions with the same cycle should can be converted into one sine function, with some amplitude gain and phase offset. 

 

Please Wait...