---
title: Sinusoidal sources and RMS
heading: The DC value that heats a resistor the same
eyebrow: C3 · Lesson 2 · Sinusoids and RMS
xp: 40
---

::: hook
A wall socket in the US is called 120 V, yet its voltage swings between +170 V and −170 V and spends half its time negative. The 120 is the **RMS** value: the steady DC voltage that would heat a resistor at the same average rate. Since what most loads care about is power, RMS is how AC voltages and currents are rated, measured and quoted.

::: play
- The curve is a sinusoidal voltage. The second curve is its square, scaled to fit, which is proportional to the power it would deliver to a resistor.
- The dashed line marks the average of the square. Where does it sit relative to the peak of the square?
- The RMS line is the square root of that average. Compare it with the peak voltage.
:::
:::

```sim plot
view: graph
x: t = 0..40 ms
y: v = -400..400 V
slider: Vp = 10..400 step 5 = 170 V
slider: f = 10..100 step 5 = 60 Hz
plot: Vp*cos(2*pi*f*t/1000) | label: v(t)
plot: Vp*cos(2*pi*f*t/1000)^2 | color: ch2 | label: v²/Vp (power shape)
plot: Vp/2 | dashed | color: ch2 | label: its average
plot: Vp/sqrt(2) | dashed | color: ch3 | label: RMS
readout: RMS = Vp/sqrt(2) V
readout: peak to peak = 2*Vp V
readout: power into 100 Ω in W = (Vp/sqrt(2))^2/100
```

::: predict
## A 230 V (RMS) supply is a sinusoid. What is its peak voltage?

- [ ] 230 V
- [ ] 163 V
- [x] 325 V
- [ ] 460 V

::: reveal
325 V. For a sine wave, the peak is $\sqrt2$ times the RMS value: $230 \times 1.414 = 325$ V. Insulation and component ratings have to handle the peak, which is why "250 V" capacitors are a poor choice across a 230 V line.
:::
:::

::: nameit
## RMS

**Definition.** The root of the mean of the square:

$$V_\text{rms} = \sqrt{\frac1T\int_0^Tv(t)^2\,dt}$$

A resistor's power is $v^2/R$ at each instant, so its average power is $V_\text{rms}^2/R$, exactly as if a DC voltage of $V_\text{rms}$ were applied. That's what makes RMS the useful number.

**For a sine wave**, $\cos^2$ averages to ½ over a cycle:

$$V_\text{rms} = \frac{V_p}{\sqrt2} \approx 0.707V_p \qquad P = \frac{V_\text{rms}^2}{R} = \frac{V_p^2}{2R}$$

**Other waveforms:**

| Waveform | RMS |
|---|---|
| sine, peak $V_p$ | $V_p/\sqrt2$ |
| square, $\pm V_p$ | $V_p$ |
| triangle, peak $V_p$ | $V_p/\sqrt3$ |
| DC $V$ | $V$ |

**DC plus AC.** A DC offset and an AC part add in their squares: $V_\text{rms}^2 = V_\text{dc}^2 + V_\text{ac,rms}^2$.

**Other measures.** Peak-to-peak is $2V_p$ for a sine. The average of the rectified sine is $2V_p/\pi$. Cheaper meters measure that average and scale it by 1.11 to show RMS, which is only right for pure sine waves; "true RMS" meters compute the real thing.

**Mains voltages.** 120 V RMS is about 170 V peak and 340 V peak to peak; 230 V RMS is about 325 V peak.
:::

::: example
## A voltage is $v(t) = 170\cos(377t)$ V. What are its RMS value and frequency?

::: solution
1. **RMS value.** For a sine, divide the peak by $\sqrt2$:
   $$\begin{aligned} V_\text{rms} &= \frac{170}{\sqrt2} \\ &= 120\ \text{V} \end{aligned}$$
2. **Frequency.** The 377 is $\omega = 2\pi f$, so
   $$\begin{aligned} f &= \frac{377}{2\pi} \\ &= 60\ \text{Hz} \end{aligned}$$
3. **What it is.** That's North American mains.

**Answer:** 120 V RMS at 60 Hz.
:::
:::

::: example
## Two 50 Hz waveforms peak 1 ms apart. What is their phase difference?

::: solution
1. **Period.** One period is
   $$\begin{aligned} T &= \frac{1}{50\ \text{Hz}} \\ &= 20\ \text{ms} \end{aligned}$$
2. **Fraction of a cycle.** So 1 ms is $\frac{1}{20}$ of a cycle.
3. **Convert to degrees.**
   $$\begin{aligned} \phi &= 360° \times \frac{1}{20} \\ &= 18° \end{aligned}$$

**Answer:** the phase difference is 18°.
:::
:::

::: example
## A sensor's output is 2 V DC plus a 3 V peak sine. What's its RMS value and its crest factor?

::: solution
1. **RMS value.** The DC and the sine are orthogonal, so their mean squares add:
   $$\begin{aligned} V_{rms} &= \sqrt{2^2 + \frac{3^2}{2}} \\ &= \sqrt{8.5} \\ &= 2.92\ \text{V} \end{aligned}$$
2. **Peak.** The peak is 2 + 3 = 5 V.
3. **Crest factor.**
   $$\begin{aligned} \text{CF} &= \frac{5}{2.92} \\ &= 1.71 \end{aligned}$$
   above a pure sine's 1.41.
4. **AC-coupled meter.** It blocks the DC, so it reads only the sine's 2.12 V.
5. **True-RMS meter on DC coupling.** It reads 2.92 V, so knowing which your meter does matters.

**Answer:** 2.92 V RMS, with a crest factor of 1.71.
:::
:::

::: check
given: Vrms = 100 | 120 | 230 | 240
answer: Vrms*sqrt(2)
unit: V
tolerance: 0.5%

## A sinusoidal supply is {Vrms} V RMS. What is its peak voltage?

::: right
Right. $\sqrt2V_\text{rms}$ = {answer}.
:::

::: misses
- [Vrms/sqrt(2)] The peak is larger than the RMS value: multiply by √2.
- [2*Vrms] That's not it: the peak is √2 times the RMS.
- [any] Not yet. $V_p = \sqrt2V_\text{rms}$.
:::
:::

::: check
given: Vp = 5 | 10 | 50 | 170
answer: Vp/sqrt(2)
unit: V
tolerance: 0.5%

## A sine wave peaks at {Vp} V. What is its RMS value?

::: right
Right. $V_p/\sqrt2$ = {answer}.
:::

::: misses
- [Vp*sqrt(2)] RMS is smaller than the peak.
- [Vp/2] For a sine, divide by √2.
- [any] Not yet. $V_\text{rms} = V_p/\sqrt2$.
:::
:::

::: check
given: Vrms = 12 | 120 | 230; R = 10 | 50 | 100
answer: Vrms^2/R
unit: W
tolerance: 0.5%

## A {Vrms} V RMS sine wave drives a {R} Ω resistor. What average power does it dissipate?

::: right
Right. $V_\text{rms}^2/R$ = {answer}.
:::

::: misses
- [2*Vrms^2/R] That uses the peak: RMS already accounts for the averaging.
- [Vrms^2/(2*R)] That treats {Vrms} V as the peak. It's the RMS value.
- [any] Not yet. $P = V_\text{rms}^2/R$.
:::
:::

::: check
given: Vp = 3 | 6 | 9
answer: Vp/sqrt(3)
unit: V
tolerance: 0.5%

## A triangle wave swings between +{Vp} V and −{Vp} V. What is its RMS value?

::: right
Right. $V_p/\sqrt3$ = {answer}.
:::

::: misses
- [Vp/sqrt(2)] That's for a sine. A triangle spends less time near its peaks.
- [Vp] That's for a square wave.
- [any] Not yet. Triangle: $V_p/\sqrt3$.
:::
:::

::: check
given: Vdc = 3 | 5; Vac = 2 | 4
answer: sqrt(Vdc^2 + Vac^2)
unit: V
tolerance: 0.5%

## A signal is {Vdc} V DC plus a sine of {Vac} V RMS. What is its total RMS value?

::: right
Right. They add in their squares: $\sqrt{V_\text{dc}^2 + V_\text{ac}^2}$ = {answer}.
:::

::: misses
- [Vdc + Vac] RMS values of independent parts add as squares.
- [any] Not yet. $\sqrt{V_\text{dc}^2 + V_\text{ac,rms}^2}$.
:::
:::

::: check
kind: parts
given: D = 1 | 2 | 5; A = 1 | 3

## A signal is {D} V DC plus a {A} V peak sine.

::: part
answer: sqrt(D^2 + A^2/2)
unit: V
tolerance: 0.5%

### What's its RMS value?

::: misses
- [sqrt(D^2 + A^2)] The sine's mean square is $A^2/2$.
- [any] $\sqrt{D^2 + A^2/2}$.
:::
:::

::: part
answer: (D + A)/sqrt(D^2 + A^2/2)
tolerance: 0.5%

### What's its crest factor?

::: misses
- [any] Peak over RMS.
:::
:::
:::

::: check
kind: derivation
vars: A = 0.1..100, D = -50..50

## A signal is D plus a sine of peak A.

::: step
answer: sqrt(D^2 + A^2/2)

### What's its RMS value?
:::

::: step
answer: A/sqrt(2)

### What does an AC-coupled RMS meter read?
:::

::: right
Right. AC coupling removes the DC term before squaring.
:::
:::

::: explain
## Why is a sine wave's RMS value its peak divided by √2?

::: model
RMS is the square root of the average of the squared voltage. Squaring $V_p\cos\omega t$ gives $V_p^2\cos^2\omega t$, and $\cos^2$ swings between 0 and 1 symmetrically about ½, so over a whole cycle it averages exactly ½. The average of the square is $V_p^2/2$, and its square root is $V_p/\sqrt2$.
:::
:::

::: practice

::: check
given: Vrms = 10 | 20 | 50
answer: Vrms*sqrt(2)
unit: V
tolerance: 0.5%

## {Vrms} V RMS sine. Peak?

::: misses
- [Vrms/sqrt(2)] Multiply by √2.
- [any] $\sqrt2V_\text{rms}$.
:::
:::

::: check
given: Vp = 2 | 4 | 8
answer: 2*Vp
unit: V
tolerance: 0.5%

## A sine peaks at {Vp} V. Peak to peak?

::: misses
- [any] Twice the peak.
:::
:::

::: check
given: Vp = 1 | 2.5 | 3.3 | 5 | 10 | 12 | 15
answer: Vp
unit: V
tolerance: 0.5%

## A square wave switches between +{Vp} V and −{Vp} V. Its RMS?

::: misses
- [Vp/sqrt(2)] That's for a sine. A square wave sits at its peak all the time.
- [any] $V_p$.
:::
:::
:::
