r/DSP•
BAOUBA

Is there an intuitive way to understand this phenomenon with waves?

The RMS of a wave stays constant if you change the phase of the composite sines that make it up only if the sines are non-zero integer multiples of the fundamental. If the wave is made up of non-harmonic overtones then changing the phase of those overtones changes the RMS.

I can't wrap my mind around why this happens. Thanks!

Posted Dec 29, 2019, 10:28 PM UTC · edited

68
ke8ctn•

Sinusoids of infinite duration are orthogonal to one another, so the power of the sum of sinusoids is equal to the sum of the powers of the sinusoids regardless of frequency or phase. However, when you are dealing with sinusoids of finite duration, you will only have perfect orthogonality in certain cases, such as when all components have an integer number of cycles in the time-limited measurement window. In all other cases, there will be some covariance that changes the total observed power, and the nature of the covariance will depend upon the relative phases of the sinusoids.

11
metrozufan•

This is a good observation. I’d suggest looking into Parseval’s theorem if you want to understand better how the math works out, but essentially the RMS of a periodic signal taken over one period is the square root of the sum of the squares of the magnitudes of the Fourier coefficients. Basically phase doesn’t factor into the RMS.

If you look into a proof of Parseval’s theorem I think it will make more sense.

6
grabster•

Is that actually true? How are you calculating the RMS? You need to do it over a time length that has an integer number of periods of every sine wave, which is easier in the first case where you only have harmonics.

3
32BitLongSucks•

It is not true, probably some simulation/windowing effects.

Sine power doesn't depend on phase or frequency and any two different sines are orthogonal. Meaning there are no complicated interaction between two sines and the power just stays the same no mater what phases or frequencies you look at.

4
grabster•

Agree, with the exception that sine waves of the same frequency are only orthogonal if they are 90deg shifted.

Consider adding a sine wave and a sine wave at same freq but with 180 degree phase shift. Complete cancellation, RMS is zero.

3
BAOUBAOP•

I'm just using wolfram alpha

A wave with 2 harmonics:

no phase shift

Phase shift of 1

Phase shift of 2

The RMS stays the same regardless of phase

I made a Desmos graph kind and you can kind of see it as you change n and p

https://www.desmos.com/calculator/lxkwce6clo

1
Metabog•

Well leaving the maths aside that everyone mentioned, intuitively imagine sampling only a part of a sinewave at its peak or through or heavily biased towards it - you'll obviously measure a higher RMS. If you're sampling a finite sine wave you need to make sure you're measuring an integer number of cycles or you'll get the contribution of the residual parts. This will get worse when you add harmonics as they interfere, so basically it's caused by windowing you're probably doing somewhere in your analysis. Wolfram alpha is probably estimating the RMS analytically somehow which is why it turns out the same I guess? If you could measure the RMS of the entire infinte mixture of sine waves you'd get the 0.707 RMS, or at least that's what I always thought.

2
rlbond86•

This is simply untrue. The RMS of a pure sinusoid is always amplitude / sqrt(2).

My guess is that you are somehow estimating the RMS by sampling a finite duration sinusoid. This will only work if an integer number of cycles is used.

1