Please could you explain how sin(x) + cos(x) = sqrt(2)sin(x+45)? I understand how you get sqrt(2) through sin(x)cos(45)+cos(x)sin(45). But I don’t. Understand how you end up with sin(x+45) or sin(x+π/4) depending on how you see it. Thanks a lot

2 Answers
May 13, 2018

#sin x + cos x = sin x + sin (90 - x)#
Use trig identity:
#sin a + sin b = 2sin ((a + b)/2)cos ((a - b)/2)#
In this case:
#sin ((a + b)/2) = sin (45) = sqrt2/2#
#cos ((a - b)/2) = cos (45 - x) = sin (90 - (45 - x)) = sin (x + 45)#
#sin x + cos x = sqrt2sin(x + 45)#

Phase shift.


The sine and cosine are two facets of the same function, and morph into each other when you apply a "phase shift": by the addition formula
A shifted sine is a linear combination of a sine and a cosine. For specific values of the shift, one of the terms vanishes. For example,
Likewise, For #π/4#, the terms get the same amplitude,
#sin(x+π/4)=1/sqrt (2)(sin(x)+cos(x))#.
Rearranging the terms you be your desired answer.