---
title: Amplitude, frequency, period and phase
heading: Three numbers describe any sine wave
eyebrow: A2 · Lesson 18 · Amplitude, frequency, period and phase
xp: 40
---

::: hook
A tuning fork, the hum of a transformer and the voltage at a wall outlet are all sine waves. They differ in only three ways: how big, how fast and when. Turn the three knobs and listen to what each one does.

::: play
- Press Listen, then move A. The wave gets taller and the tone gets louder.
- Move f. The peaks crowd together and the pitch rises. The marker shows one period, $T$.
- Move φ. The wave slides sideways. Can you hear any difference?
:::
:::

```sim plot
view: graph
x: t = 0..10m s
y: v = -1.2..1.2 V
slider: A = 0..1 step 0.05 = 0.8 V
slider: f = 100..1000 step 10 = 300 Hz
slider: phi = -180..180 step 15 = 0 °
plot: A*cos(2*pi*f*t + phi°) | samples: 2000 | label: v(t)
marker: x = 1/f | label: T
readout: period T = 1/f s
readout: ω in rad/s = 2*pi*f
readout: peak to peak = 2*A V
sound: A*cos(2*pi*f*t + phi°)
```

::: predict
## You change φ from 0° to 90° while listening. What do you hear?

- [ ] The pitch goes up
- [ ] The tone gets quieter
- [x] No difference
- [ ] A click every quarter second

::: reveal
No difference. Phase says where the wave is at $t = 0$, and your ear has no idea when $t = 0$ was. A single tone sounds the same at any phase. Phase only matters when two signals are compared, which is most of what AC circuits are about: a voltage and a current, an input and an output.
:::
:::

::: nameit
## The general sinusoid

$$v(t) = A\cos(2\pi f t + \varphi) = A\cos(\omega t + \varphi)$$

- **$A$, the amplitude**, is the peak value. The wave swings from $-A$ to $A$, so its **peak-to-peak** value is $2A$.
- **$f$, the frequency**, is how many cycles happen each second, in hertz (Hz). One cycle takes the **period** $T = 1/f$. The **angular frequency** is $\omega = 2\pi f$ in radians per second, the turning rate of the circle the wave comes from.
- **$\varphi$, the phase**, is the angle of that circle at $t = 0$. A positive $\varphi$ moves the wave earlier, to the left, by the time $\varphi/\omega$. As a share of a period, a phase of $\varphi$ is a shift of $\varphi/360°$ of a cycle.

**RMS.** Meters and wall outlets quote a sinusoid's root-mean-square value, the steady voltage that would heat a resistor equally. For a sine wave,

$$V_\text{rms} = \frac{A}{\sqrt2} \approx 0.707\,A$$

so a 120 V outlet has an amplitude of $120\sqrt2 \approx 170$ V. (The square root of two comes from averaging $\cos^2$ over a cycle, which you'll do in A5.)

**What you hear.** Pitch follows frequency, on a log scale: each doubling is an octave, and people hear from about 20 Hz to 20 kHz when young. Loudness follows amplitude. Phase, on its own, you can't hear at all.
:::

::: example
## Read off everything you can from $v(t) = 170\cos(377t - 30°)$ volts.

::: solution
1. **Amplitude.** It's 170 V, and so 120 V RMS:
   $$\frac{170}{\sqrt{2}} = 120$$
2. **Frequency and period.** The angular frequency is 377 rad/s, so
   $$\begin{aligned} f &= \frac{377}{2\pi} \\ &= 60\ \text{Hz} \end{aligned}$$
   and $T = 16.7$ ms.
3. **Phase.** It's −30°, so the wave lags a plain cosine by 30°, which is
   $$\frac{30}{360} \times 16.7\ \text{ms} = 1.39\ \text{ms}$$

**Answer:** a 170 V amplitude (120 V RMS), 377 rad/s or 60 Hz with a 16.7 ms period, and a 30° lag, 1.39 ms. This is US mains, shifted.
:::
:::

::: example
## A scope shows a sine wave with a 4 ms period and a 2.5 V peak. It crosses zero going up at $t$ = 0.5 ms. Write it as a formula.

::: solution
1. **Frequency.**
   $$\begin{aligned} f &= \frac{1}{4\ \text{ms}} \\ &= 250\ \text{Hz} \end{aligned}$$
2. **Delay.** A sine that crosses zero going up at $t = 0.5$ ms is a sine delayed by 0.5 ms:
   $$v(t) = 2.5\sin\big(2\pi \cdot 250\,(t - 0.0005)\big)$$
3. **As a phase.** The delay is $\frac{0.5}{4} = \frac{1}{8}$ of a period, 45°, so this is also
   $$v(t) = 2.5\sin(2\pi \cdot 250\,t - 45°)$$

**Answer:** $v(t) = 2.5\sin\big(2\pi \cdot 250\,(t - 0.0005)\big)$, which is $2.5\sin(2\pi \cdot 250\,t - 45°)$.
:::
:::

::: example
## US mains is 120 V RMS at 60 Hz. Write it as a cosine whose peak comes at $t$ = 2 ms.

::: solution
1. **Peak.**
   $$120\sqrt{2} = 169.7\ \text{V}$$
2. **Angular frequency.**
   $$2\pi \times 60 = 377\ \text{rad/s}$$
3. **Delay the cosine.** A cosine peaks when its argument is zero, so write
   $$v(t) = 169.7\cos(377(t - 0.002))$$
4. **Multiply out the phase.**
   $$\begin{aligned} 377 \times 0.002 &= 0.754\ \text{rad} \\ &= 43.2° \end{aligned}$$
5. **Write it with the phase.**
   $$v(t) = 169.7\cos(377t - 43.2°)\ \text{V}$$
   A delay in time shows up as a lag in phase.

**Answer:** $v(t) = 169.7\cos(377t - 43.2°)$ V.
:::
:::

::: check
kind: parts
given: A = 2..12 int; f = 50 | 60 | 200 | 400 | 1000

## A voltage is $v(t) = \given{A}\cos(2\pi \cdot \given{f}\, t)$ volts, with t in seconds.

::: part
answer: 1/f
unit: s
tolerance: 0.5%

### What is its period?

::: misses
- [f] That's the frequency. The period is how long one cycle takes, its reciprocal.
- [2*pi/f] That's $2\pi/f$. The period is $1/f$; the $2\pi$ belongs to $\omega$.
- [any] The period is $T = 1/f$.
:::
:::

::: part
answer: 2*A
unit: V
tolerance: 0.5%

### What is its peak-to-peak value?

::: misses
- [A] That's the amplitude, from zero to the peak. Peak to peak is twice that.
- [any] It swings from −{A} V to +{A} V.
:::
:::

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

### And its RMS value?

::: misses
- [A*sqrt(2)] For a sine wave the RMS value is smaller than the peak: divide by √2.
- [A/2] It's $A/\sqrt2$, about 0.707 of the peak.
- [any] For a sine wave, $V_\text{rms} = A/\sqrt2$.
:::
:::

::: right
Right. Those are the numbers a scope and a meter would show for it.
:::
:::

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

## A wall outlet is rated {Vrms} RMS. What is the amplitude of its voltage?

::: right
Right. The amplitude is √2 times the RMS value: {answer}.
:::

::: misses
- [Vrms/sqrt(2)] That divides. The peak is bigger than the RMS value, so multiply by √2.
- [2*Vrms] The factor is √2, about 1.41.
- [any] For a sine wave, $A = \sqrt2\, V_\text{rms}$.
:::
:::

::: check
given: phi = 30 | 45 | 60 | 90 | 120; f = 50 | 100 | 250 | 500
answer: phi/360/f*1000
tolerance: 1%

## A {f} Hz sinusoid has a phase of +{phi}°. By how many milliseconds is it ahead of the same wave with zero phase?

::: right
Right. {phi}° is {phi}/360 of a cycle, and a cycle lasts 1/{f} s, so the shift is {answer} ms.
:::

::: misses
- [phi/f*1000] Turn the phase into a share of a cycle first: divide by 360°.
- [phi/360*f] Multiply the share of a cycle by the period, $1/f$, to get a time.
- [phi*pi/180/f*1000] That divides radians by f. Divide by $\omega = 2\pi f$ instead, or use the share of a cycle.
- [any] Not yet. The phase is {phi}/360 of a cycle; multiply that by the period.
:::
:::

::: check
kind: expression
answer: 5*cos(2*pi*50*t)
vars: t = 0..0.04

## Write $v(t)$ for a 50 Hz sinusoid with an amplitude of 5 V that's at its positive peak at $t = 0$.

::: right
Right. A cosine starts at its peak, so the phase is zero: $5\cos(2\pi \cdot 50\, t)$.
:::

::: misses
- [5*sin(2*pi*50*t)] A sine starts at zero. To start at the peak, use a cosine.
- [5*cos(50*t)] Inside the cosine, multiply by $2\pi$ so the angle is in radians: $2\pi \cdot 50\, t$.
- [5*cos(2*pi*t/50)] 50 Hz means 50 cycles per second, so the angle grows as $2\pi \cdot 50\, t$.
- [any] Use $A\cos(2\pi f t + \varphi)$ with the numbers filled in.
:::
:::

::: check
kind: sketch
x: t = 0..20 ms
y: v = -4..4 V
curve: 3*cos(2*pi*0.1*t + pi/2)

## Sketch $v(t) = 3\cos(2\pi \cdot 100\, t + 90°)$ for the first 20 ms.

::: right
Right. A phase of +90° starts the cosine a quarter cycle in, at zero and heading down. At 100 Hz it repeats every 10 ms, so 20 ms holds two cycles.
:::
:::

::: check
kind: parts
given: A = 2 | 5; n = 2 | 3 | 4; w = 10 | 20; t0 = 0.5 | 1

## A scope screen {w} ms wide shows exactly {n} cycles of a sine wave that peaks at {A} V. The wave crosses zero going up {t0} ms after the left edge.

::: part
answer: n/(w*1e-3)
unit: Hz
tolerance: 0.5%

### What is its frequency?

::: misses
- [w*1e-3/n] That's the period.
- [any] {n} cycles in {w} ms.
:::
:::

::: part
answer: A*sin(-2*pi*n/(w*1e-3)*t0*1e-3)
unit: V
tolerance: 0.5%

### What is its value at the left edge of the screen?

::: misses
- [A*sin(2*pi*n/(w*1e-3)*t0*1e-3)] At the left edge the wave hasn't reached its upward zero crossing yet, so it's below zero.
- [any] It's $A\sin(2\pi f(t - t_0))$; put in $t = 0$.
:::
:::

::: part
answer: t0*1e-3 + w*1e-3/n/4
unit: s
tolerance: 0.5%

### When does it first reach its peak, measured from the left edge?

::: misses
- [w*1e-3/n/4] Start counting from the zero crossing at {t0} ms.
- [any] A quarter period after the upward zero crossing.
:::
:::
:::

::: check
kind: derivation
vars: f = 1..1000, dt = 0.0001..0.001

## One sinusoid at frequency $f$ lags another by a time $\Delta t$. Derive the phase difference.

::: step
answer: f*dt

### What fraction of a cycle is $\Delta t$?
:::

::: step
answer: 360*f*dt

### What is the phase difference in degrees?
:::

::: step
answer: 2*pi*f*dt

### And in radians?
:::

::: right
Right. A fixed time delay is a phase shift that grows with frequency: $\varphi = 2\pi f\Delta t$.
:::
:::

::: explain
## Two sine waves have the same amplitude and frequency but different phases. Why might that matter in a circuit, even though they'd sound identical?

::: model
Phase says when each wave reaches its peaks. On its own that's invisible, but when two signals meet it decides how they combine: in phase they add to a bigger wave, half a cycle apart they cancel. In a circuit the current and the voltage are often out of phase, and that difference decides how much power actually flows, so it matters a great deal even though the ear can't hear it.
:::
:::

::: practice

::: check
given: f = 20..20000 sig 2
answer: 1/f
unit: s
tolerance: 0.5%

## What is the period of a {f} Hz tone?

::: misses
- [2*pi/f] That's $2\pi/f$. The period is $1/f$.
- [any] The period is one over the frequency.
:::
:::

::: check
given: T = 0.1..50 sig 2
answer: 1000/T
unit: Hz
tolerance: 0.5%

## A waveform repeats every {T} ms. What is its frequency?

::: misses
- [1/T] The period is in milliseconds: turn it into seconds first.
- [any] The frequency is one over the period, with the period in seconds.
:::
:::

::: check
given: A = 1..400 sig 2 V
answer: A/sqrt(2)
unit: V
tolerance: 0.5%

## A sine wave has an amplitude of {A}. What is its RMS value?

::: misses
- [A*sqrt(2)] The RMS value is smaller than the peak: divide by √2.
- [any] $V_\text{rms} = A/\sqrt2$.
:::
:::

::: check
given: A = 1..50 sig 2 V
answer: 2*A
unit: V
tolerance: 0.5%

## A sine wave has an amplitude of {A}. What does a scope measure peak to peak?

::: misses
- [A] That's the amplitude. Peak to peak runs from the lowest point to the highest.
- [any] It swings from −A to +A.
:::
:::

::: check
given: dt = 0.1..2 sig 2; f = 50 | 100 | 200 | 400
answer: dt/1000*f*360
unit: °
tolerance: 1%

## One sinusoid at {f} Hz runs {dt} ms ahead of another of the same frequency. What is the phase difference in degrees?

::: misses
- [dt*f*360] The time is in milliseconds. Turn it into seconds first.
- [any] Divide the time shift by the period to get a share of a cycle, then multiply by 360°.
:::
:::

::: check
given: f = 50..5000 sig 2
answer: 2*pi*f
unit: rad/s
tolerance: 0.5%

## What is the angular frequency of a {f} Hz sinusoid?

::: misses
- [f/(2*pi)] Multiply by 2π: each cycle is 2π radians.
- [any] $\omega = 2\pi f$.
:::
:::
:::
