# sin(x) + cos(x)

Here is a fun little exploration involving a simple sum of trigonometric functions.

Consider f(x) = sin(x) + cos(x), graphed below. Surprisingly, it appears as though sin(x) + cos(x) is itself a sine function. And while its period is the same as sin(x), its amplitude has changed and it’s been phase-shifted. Figuring out the exact amplitude and phase shift is fun, and it’s also part of a deeper phenomenon to explore.

Consider the function g(x= a sin(x) + b cos(x). Playing around with the values of a and is a great way to explore the situation. On the way to a complete solution, a nice challenge is to find (and characterize) the values of a and b that make the amplitude of g(x) equal to one. It’s also fun to look for values of a and b that yield integer amplitudes: for example, 5sin(x) + 12cos(x) has amplitude 13, and 4sin(x) + 3cos(x) has amplitude 5.

Ultimately, this exploration leads to a really lovely application of angle sum formulas. Recall that $sin(A + B) = sin(A) cos (B) + sin(B) cos(A)$

If we let Ax, we get $sin(x + B) = sin(x) cos(B) + sin(B) cos(x)$

With a little rewriting, we have $sin(x + B) = cos(B) sin(x) + sin(B) cos(x)$

which looks similar to our original function f(x) = sin(x) + cos(x), except for what’s in front of sin(x) and cos(x). We handle that with a clever choice of B.

Let $B = \frac{\pi}{4}$. Now we have $sin(x + \frac{\pi}{4}) = cos(\frac{\pi}{4})sin(x) + sin(\frac{\pi}{4})cos(x)$ $sin(x + \frac{\pi}{4}) = \frac{\sqrt{2}}{2} sin(x) + \frac{\sqrt{2}}{2}cos(x)$

And a little algebra gets us $sin(x) + cos(x) = \sqrt{2}sin(x + \frac{\pi}{4})$

And so sin(x) + cos(x) really is a sine function! Not only does this transformation explain the amplitude and phase shift of sin(x) + cos(x), it generalizes beautifully.

For example, consider 5sin(x) + 12cos(x). We can rewrite this in the following way. $5sin(x) + 12cos(x) = 13 ( \frac{5}{13} sin(x) + \frac{12}{13} cos(x))$ $5sin(x) + 12cos(x)= 13 ( cos(\beta) sin(x) + sin(\beta) cos(x))$ $5sinx + 12cosx = 13 sin (x + \beta)$

where $\beta = arcsin(\frac{12}{13}) = arccos(\frac{5}{13})$.

There’s quite a lot of trigonometric fun packed into this little sum. And there’s still more to do, like exploring different phase shifts and trying the cosine angle sum formula instead. Enjoy!

Related Posts

Categories: ChallengeTeaching