
TyphoidHippo
1Trillion K Platinum User
Polarity inversion is exactly what the name suggests, it is a change of electrical polarity; what was a negative voltage is now a positive voltage, and vice versa.
Mathematically and simply put it's
V2 = V1 * -1
where V2 is the voltage after inversion and V1 is the original voltage. In other words, simply take the voltage value at every point in the waveform and multiply it by -1 to get the inverted voltage value.
Phase is a bit more complicated in that, like an angle, it can have a value of anywhere from 1° to 360° (or 0°). This is why the change in phase value is commonly referred to as "phase angle". The math involved includes square roots of tangents and stuff like that, which is probably beyond what's wanted here.
But to simplify for this discission, a "phase inversion" is basically an instantaneous (no time shift) phase change of 180°. This resembles a polarity inversion in that an instantaneous 180° phase change does invert the direction up or down of the wave rests, but there is a technical difference:
A polarity inversion, by definition, inverts or flips the wave around the horizontal axis of 0 volts DC. A phase inversion inverts or flips the wave around whatever the rest voltage of the signal may be (the rest voltage being whatever the DC voltage may be during silence.) Put mathematically, phase inversion can be represented by
V2 = (V1 * -1) + VDC
So you can see that if the rest voltage VDC happens to equal 0 (no DC offset), that phase inversion and polarity inversion will have the same result and will appear to be the same thing. But add any DC offset, and the results will be different by the amount of DC offset in the signal.
G.
I read this whole thread, and the explanation given in this post is the only explanation I can wrap my head around, the rest (that are actually on-topic) just seems like unnecessarily complicated arguing for the sake of "winning" the argument - I'd like to not have my time spent in this thread be a waste, so I'm leaving here assuming this is correct, unless there's a good reason not to.

Also, this:
Problem #4
![]()
The top waveform is the original. The bottom is a copy that has been shifted down the timeline. What is the degree of phase shift caused by that shift in time?
G.
seems to turn the time-shift argument on it's head - does it not?