---
title: Signals at several frequencies
heading: One phasor per frequency
eyebrow: A3 · Lesson 24 · Signals at several frequencies
xp: 40
---

::: hook
A phasor stands for one sinusoid at one frequency. Real signals mix several: a power supply's output is DC plus a little ripple at 120 Hz, a chord has three notes, and a square wave turns out to be a whole series of sine waves. Phasors at different frequencies can't be added, because they spin at different rates. The fix is to handle each frequency on its own and only combine the results at the end. This lesson is how.

::: play
- The signal is the sum of two cosines: $A_1$ at $f_1$ and $A_2$ at $f_2$.
- With $f_2 \ne f_1$, change the phase $\varphi$ of the second. Does the RMS readout change?
- Now set $f_2 = f_1$ and change $\varphi$ again. What happens to the RMS now?
:::
:::

```sim plot
view: graph
x: t = 0..20 ms
y: v = -4..4 V
slider: A1 = 0..2 step 0.1 = 1.5 V
slider: f1 = 100..500 step 50 = 100 Hz
slider: A2 = 0..2 step 0.1 = 1 V
slider: f2 = 100..1000 step 50 = 300 Hz
slider: phi = -180..180 step 15 = 0 °
plot: A1*cos(2*pi*f1*t/1000) + A2*cos(2*pi*f2*t/1000 + phi°) | label: sum | samples: 1200
plot: A1*cos(2*pi*f1*t/1000) | dashed | color: ch2 | label: tone 1
plot: A2*cos(2*pi*f2*t/1000 + phi°) | dashed | color: ch3 | label: tone 2
readout: RMS, different frequencies = sqrt((A1^2 + A2^2)/2) V | digits: 3
readout: RMS, same frequency = abs(A1 + A2*exp(j*phi*pi/180))/sqrt(2) V | digits: 3
```

::: predict
## A 3 V amplitude tone at 1 kHz and a 4 V amplitude tone at 1.5 kHz are added. What is the RMS of the sum?

- [ ] 5 V
- [x] 3.54 V
- [ ] 4.95 V
- [ ] It depends on their phases

::: reveal
$\sqrt{(3^2 + 4^2)/2} = 3.54$ V, whatever their phases. At different frequencies the two tones drift in and out of step, so over time their product averages to zero and their powers simply add. Only at the same frequency does the phase matter, because then they stay locked together.
:::
:::

::: nameit
## Each frequency on its own

A phasor $V\angle\varphi$ means $\operatorname{Re}\{V e^{j\varphi}e^{j\omega t}\}$, with one particular $\omega$. Two phasors with different $\omega$ spin at different rates, so their sum isn't a fixed arrow, and adding them means nothing. Instead:

1. split the signal into its frequencies;
2. analyze each with phasors and impedances at its own $\omega$;
3. add the resulting **time-domain** signals.

This works for any **linear** circuit (one built from R, L, C and linear sources), by **superposition**: the response to a sum is the sum of the responses. A filter acts on each frequency with its own $H(j\omega_k)$:

$$v_{in} = A_1\cos\omega_1 t + A_2\cos\omega_2 t \quad\Rightarrow\quad v_{out} = A_1|H_1|\cos(\omega_1 t + \angle H_1) + A_2|H_2|\cos(\omega_2 t + \angle H_2)$$

DC is just the frequency 0, where an inductor is a short and a capacitor an open circuit.

## RMS and power add by frequency

Square a sum of sinusoids at different frequencies and the cross terms are products like $\cos\omega_1 t\cos\omega_2 t$, which average to zero over a long time. So the mean squares add:

$$V_{rms} = \sqrt{V_0^2 + V_{1,rms}^2 + V_{2,rms}^2 + \cdots}$$

where $V_0$ is any DC part and each $V_{k,rms} = A_k/\sqrt2$. The power in a resistor adds the same way: each frequency delivers its own power, $V_{k,rms}^2/R$.

At the **same** frequency it's different: add the phasors first (lesson 13), and the result depends on their phase difference.
:::

::: example
## A 5 V supply has 1 V amplitude of ripple at 120 Hz. What is its RMS voltage?

::: solution
1. **RMS of each part.** The DC part is 5 V and the ripple's RMS is
   $$1/\sqrt2 = 0.707\ \text{V}$$
2. **Combine them.**
   $$\begin{aligned} V_{rms} &= \sqrt{5^2 + 0.707^2} \\ &= \sqrt{25.5} \\ &= 5.05\ \text{V} \end{aligned}$$
3. **Compare.** The ripple adds just 1% to the RMS, which is why a little ripple barely changes the power a supply delivers.

**Answer:** the RMS voltage is 5.05 V.
:::
:::

::: example
## A square wave of height ±1 is approximated by its first two sine components, $\frac{4}{\pi}\left(\sin\omega t + \frac{1}{3}\sin 3\omega t\right)$. What fraction of the square wave's power do they carry?

::: solution
1. **Power of the square wave.** The square wave's RMS is 1, so its power (in a 1 Ω resistor) is 1.
2. **Amplitudes of the two components.**
   $$\begin{aligned} 4/\pi &= 1.273 \\ 4/(3\pi) &= 0.424 \end{aligned}$$
3. **Their power.**
   $$\begin{aligned} P &= \frac{1.273^2}{2} + \frac{0.424^2}{2} \\ &= 0.811 + 0.090 \\ &= 0.901 \end{aligned}$$
4. **Where the rest goes.** The other 10% is spread over the higher odd harmonics, which make the corners sharp. A10 explains where these components come from.

**Answer:** the first two components carry 90% of the power.
:::
:::

::: example
## A current $i = 2\cos\omega t + \cos 3\omega t$ A flows through a 10 Ω resistor. What power does it dissipate, and what is the current's RMS value?

::: solution
1. **Add the powers.** Different frequencies don't interact in the average power, so each adds its own:
   $$\begin{aligned} P &= \frac{2^2}{2} \times 10 + \frac{1^2}{2} \times 10 \\ &= 20 + 5 \\ &= 25\ \text{W} \end{aligned}$$
2. **RMS current.** The RMS current is the one that gives the same power:
   $$\begin{aligned} I_\text{rms} &= \sqrt{25/10} \\ &= 1.58\ \text{A} \end{aligned}$$
   which is also $\sqrt{(2^2 + 1^2)/2}$.

**Answer:** it dissipates 25 W, and the current's RMS value is 1.58 A.
:::
:::

::: check
given: V0 = 3.3 | 5 | 12; A = 0.1 | 0.5 | 2
answer: sqrt(V0^2 + A^2/2)
unit: V
tolerance: 0.1%

## A supply puts out {V0} V DC with ripple of {A} V amplitude. What is its RMS voltage?

::: right
Right. $\sqrt{V_0^2 + (A/\sqrt2)^2}$ = {answer}.
:::

::: misses
- [V0 + A/sqrt(2)] RMS values at different frequencies don't add directly; their squares do.
- [V0 + A] That's the peak, not the RMS.
- [any] Not yet. Add the squares of the DC part and the ripple's RMS, then take the root.
:::
:::

::: check
given: A1 = 1 | 2 | 3; A2 = 1 | 4; f1 = 50 | 200; f2 = 150 | 1000
answer: sqrt((A1^2 + A2^2)/2)
unit: V

## Tones of {A1} V amplitude at {f1} Hz and {A2} V amplitude at {f2} Hz are added. What is the RMS of the sum?

::: right
Right. The powers add: $\sqrt{(\given{A1}^2 + \given{A2}^2)/2}$ = {answer}.
:::

::: misses
- [(A1 + A2)/sqrt(2)] That's only right for two tones in step at the same frequency. At different frequencies, add the squares.
- [sqrt(A1^2 + A2^2)] That's the root of the summed squares of the amplitudes. Divide by 2 inside for RMS.
- [any] Not yet. Each tone's RMS is $A/\sqrt2$; add their squares and take the root.
:::
:::

::: check
given: fc = 500 | 1000; A1 = 1 | 2; f1 = 100 | 200; A2 = 1 | 0.5; f2 = 5000 | 10000
answer: A2/sqrt(1 + (f2/fc)^2)
unit: V

## A low-pass with its corner at {fc} Hz gets {A1} V at {f1} Hz plus {A2} V at {f2} Hz. What amplitude of the {f2} Hz tone comes out?

::: right
Right. Each tone gets its own $|H|$: $\given{A2}/\sqrt{1 + (\given{f2}/\given{fc})^2}$ = {answer}.
:::

::: misses
- [(A1 + A2)/sqrt(1 + (f2/fc)^2)] The filter acts on each tone separately. The {f1} Hz tone isn't at {f2} Hz.
- [A2] The filter attenuates it: multiply by $|H|$ at {f2} Hz.
- [any] Not yet. Find $|H|$ at {f2} Hz and multiply.
:::
:::

::: check
given: A1 = 2 | 5; A2 = 1 | 3; R = 8 | 50
answer: (A1^2 + A2^2)/(2*R)
unit: W

## A {R} Ω resistor has {A1} V amplitude at 1 kHz and {A2} V amplitude at 3 kHz across it. What average power does it take?

::: right
Right. Each frequency delivers $A^2/2R$, and they add: {answer}.
:::

::: misses
- [(A1 + A2)^2/(2*R)] At different frequencies the cross term averages to zero: add the powers, not the amplitudes.
- [(A1^2 + A2^2)/R] Each sinusoid's average power is $A^2/2R$.
- [any] Not yet. Find each frequency's power and add.
:::
:::

::: check
kind: choice

## A circuit has a 50 Hz source and a 60 Hz source. Which method is right?

- [ ] Add the two source phasors, then solve the circuit once
- [x] Solve the circuit once at 50 Hz with only the first source, once at 60 Hz with only the second, and add the two time-domain answers
- [ ] Average the frequencies to 55 Hz and solve once
- [ ] Phasors can't be used at all

::: right
Right. That's superposition: each frequency gets its own impedances, and only the time-domain results can be added.
:::

::: misses
- [1] Phasors at different frequencies spin at different rates, so their sum doesn't stay fixed.
- [any] Impedances depend on frequency, so each source needs its own solution.
:::
:::

::: check
given: A1 = 1 | 2; A2 = 1 | 3; p = 60 | 120 | 180
answer: abs(A1 + A2*exp(j*p*pi/180))/sqrt(2)
unit: V
tolerance: 0.5%

## Two tones at the same frequency, {A1} V and {A2} V in amplitude, are {p}° apart. What is the RMS of their sum?

::: right
Right. Same frequency: add the phasors first, then divide the amplitude by $\sqrt2$: {answer}.
:::

::: misses
- [sqrt((A1^2 + A2^2)/2)] That's for different frequencies. At the same frequency the phase matters: add the phasors.
- [any] Not yet. Add $\given{A1}\angle 0°$ and $\given{A2}\angle\given{p}°$, then divide by $\sqrt2$.
:::
:::

::: check
kind: parts
given: V0 = 5 | 12; A1 = 1 | 3; A2 = 0.5 | 2; R = 10 | 50

## A voltage $v = \given{V0} + \given{A1}\cos\omega t + \given{A2}\cos 3\omega t$ V is across a {R} Ω resistor.

::: part
answer: sqrt(V0^2 + (A1^2 + A2^2)/2)
unit: V
tolerance: 0.5%

### What is its RMS value?

::: misses
- [V0 + (A1 + A2)/sqrt(2)] RMS values of different frequencies add as squares.
- [any] Add the mean squares of each part, then take the root.
:::
:::

::: part
answer: (V0^2 + (A1^2 + A2^2)/2)/R
unit: W
tolerance: 0.5%

### What power does the resistor take?

::: misses
- [any] $V_\text{rms}^2/R$.
:::
:::

::: part
answer: V0^2/(V0^2 + (A1^2 + A2^2)/2)
tolerance: 0.5%

### What fraction of that power comes from the DC part?

::: misses
- [any] The DC part's mean square over the total.
:::
:::
:::

::: check
kind: derivation
vars: a = 0.5..5, b = 0.5..5, x = -3..3

## Derive the mean square of $a\cos x + b\cos 3x$ over a cycle.

::: step
answer: a^2*cos(x)^2 + 2*a*b*cos(x)*cos(3*x) + b^2*cos(3*x)^2

### Expand $(a\cos x + b\cos 3x)^2$.
:::

::: step
answer: (a^2 + b^2)/2

### Each $\cos^2$ averages to ½ over a cycle, and the cross term averages to zero. What is the mean square?
:::

::: right
Right. Different frequencies don't interfere on average, so their powers simply add: $(a^2 + b^2)/2$.
:::
:::

::: explain
## Why does the RMS of two tones at different frequencies not depend on their phases, while at the same frequency it does?

::: model
The mean square of a sum is the sum of the mean squares plus twice the average of the cross product. At different frequencies the two tones keep sliding in and out of step, so their product is positive about as often as negative and averages to zero, leaving just the two mean squares, whatever the phases. At the same frequency they stay locked at one phase difference, so the cross product has a steady average that depends on that difference, positive in step and negative out of step.
:::
:::

::: practice

::: check
given: V0 = 1 | 9 | 24; A = 0.2 | 1 | 3
answer: sqrt(V0^2 + A^2/2)
unit: V
tolerance: 0.1%

## What is the RMS of {V0} V DC plus a sinusoid of {A} V amplitude?

::: misses
- [V0 + A/sqrt(2)] Add the squares.
- [any] $\sqrt{V_0^2 + A^2/2}$.
:::
:::

::: check
given: A1 = 2 | 6; A2 = 3 | 5; A3 = 1 | 4
answer: sqrt((A1^2 + A2^2 + A3^2)/2)
unit: V

## Three tones at different frequencies have amplitudes {A1}, {A2} and {A3} V. What is the RMS of their sum?

::: misses
- [(A1 + A2 + A3)/sqrt(2)] Add the squares, not the amplitudes.
- [any] $\sqrt{\sum A_k^2/2}$.
:::
:::

::: check
given: fc = 100 | 1000; A = 1 | 5; f = 2000 | 5000
answer: A/sqrt(1 + (f/fc)^2)
unit: V

## A low-pass with corner {fc} Hz gets a {A} V amplitude tone at {f} Hz along with other tones. What amplitude of that tone comes out?

::: misses
- [A] Multiply by $|H|$ at {f} Hz.
- [any] $A/\sqrt{1 + (f/f_c)^2}$.
:::
:::

::: check
given: V0 = 2 | 5; A = 3 | 4; R = 10 | 100
answer: (V0^2 + A^2/2)/R
unit: W

## {V0} V DC plus {A} V amplitude of AC sits across {R} Ω. What average power does the resistor take?

::: misses
- [(V0 + A)^2/R] Powers add by frequency.
- [(V0^2 + A^2)/R] The AC part's average power is $A^2/2R$.
- [any] $(V_0^2 + A^2/2)/R$.
:::
:::
:::
