Article 570JS Adding phase-shifted sine waves

Adding phase-shifted sine waves

by
John
from John D. Cook on (#570JS)

Suppose you have two sinusoidal functions with the same frequency but with different phases and different amplitudes:

f(t) = A sin(t)

and

g(t) = B sin(t + ).

Then their sum is another sine wave with the same frequency

h(t) = C sin(t + ).

Note that this includes cosines as a special case since a cosine is a sine with phase shift = 90.

sum_phase_shifted_sines.png

This post will

  • prove that the sum of sine waves is another sine wave,
  • show how to find its amplitude and phase, and
  • discuss the significance of this result in signal processing.
Finding the amplitude and phase

Note f + g and h both satisfy the second order differential equation

y" = - ^2 y

Therefore if they also satisfy the same initial conditions y(0) and y(0) then they're the same function.

The functions f + g and h are equal at 0 if

B sin() = C sin().

and their derivatives are equal at 0 if

A + B cos() = C cos().

Taking ratios says that

tan() = B sin() / (A + B cos())

or

= arctan( B sin() / (A + B cos()) ).

Once we have , we solve for C and find

C = B sin() / sin().

Special case of sine and cosine

Let's look at the special case of = 90, i.e. adding A sin(t) and B cos(t). Then sin() = 1 and cos() = 0, and the equation for simplifies to

= arctan(B/A).

If an angle has tangent B/A, then it's sine is B / (A^2 + B^2), and so we have

C = (A^2 + B^2).

Linear time invariant (LTI) systems

A linear, time-invariant system can differentiate or integrate signals. It can change their amplitude or phase. And it can add two signals together.

It's easy to see that changing the amplitude or phase of a signal doesn't change its frequency. It's also easy to see that differentiation and integration of sine waves doesn't change their frequency. But it's not as clear that adding two sines with the same frequency doesn't change their frequency. Here we've shown that's the case.

Bode plots are a way to show how an LTI system changes in response to changes in its inputs. These plots show what happens to the amplitude and to the phase. They don't need to show what happens to the frequency because the frequency doesn't change.

More signal processing posts

The post Adding phase-shifted sine waves first appeared on John D. Cook.

I0xR_cPNaKU
External Content
Source RSS or Atom Feed
Feed Location http://feeds.feedburner.com/TheEndeavour?format=xml
Feed Title John D. Cook
Feed Link https://www.johndcook.com/blog
Reply 0 comments