---
title: Parametric and polar curves
heading: Curves drawn by two signals at once
eyebrow: A6 · Lesson 47 · Parametric and polar curves
xp: 40
---

::: hook
Switch an oscilloscope into XY mode and it stops plotting voltage against time. Instead, one signal moves the dot left and right and another moves it up and down. Feed it two sine waves and the dot traces loops, ellipses and knots called Lissajous figures, and before frequency counters existed, engineers compared frequencies and measured phase from these shapes.

::: play
- The dot is at $x = \sin(a\,u + \delta)$, $y = \sin(b\,u)$ as $u$ runs once around. With $a = b = 1$ and $\delta = 0$, what do you see?
- Keep $a = b = 1$ and sweep the phase δ from 0° to 90°. How does the shape change?
- Now try $a = 1$, $b = 2$, then $a = 2$, $b = 3$. Count the lobes touching the top edge and the side edge.
:::
:::

```sim plot
view: complex
range: 1.3
slider: a = 1..5 step 1 = 1
slider: b = 1..5 step 1 = 1
slider: d = 0..180 step 5 = 30 °
curve: sin(a*u + d°) + j*sin(b*u) | over: u = 0..2*pi | label: XY
readout: frequency ratio x : y = a/b
readout: sin δ = sin(d°)
```

::: predict
## Both signals have the same frequency, 90° apart. What does the XY display show?

- [ ] A straight line
- [x] A circle
- [ ] A figure eight
- [ ] Two separate dots

::: reveal
A circle. With $x = \sin(u + 90°) = \cos u$ and $y = \sin u$, the dot is at $(\cos u, \sin u)$: the unit circle from A2. In phase, the dot moves along a diagonal line; in between, an ellipse whose fatness gives the phase. With different frequencies, the figure's lobes give their ratio.
:::
:::

::: nameit
## Curves from a parameter

A **parametric curve** gives both coordinates as functions of a parameter, often time: $\big(x(t), y(t)\big)$. Calculus works on them through the chain rule:

$$\frac{dy}{dx} = \frac{dy/dt}{dx/dt} \qquad\qquad \text{length} = \int\sqrt{\left(\frac{dx}{dt}\right)^2 + \left(\frac{dy}{dt}\right)^2}\,dt$$

The second is Pythagoras on each tiny step. For the circle $(\cos t, \sin t)$ from 0 to $2\pi$ the square root is 1, so the length is $2\pi$, as it should be.

**Reading Lissajous figures:**

- **Frequency ratio:** count where the figure touches the top edge and a side edge. The vertical signal reaches its peak once per cycle, at a different horizontal position each time, so the top-edge touches count its cycles, and likewise the side-edge touches count the horizontal signal's. So $f_x : f_y = n_\text{side} : n_\text{top}$.
- **Phase, for equal frequencies:** the figure is an ellipse. If it crosses the vertical axis at height $y_0$ and reaches height $y_{\max}$, then $\sin\delta = y_0/y_{\max}$. A line means 0° (or 180°), a circle means 90° with equal amplitudes.

**Polar curves** give the distance from the origin as a function of angle, $r(\theta)$, so $x = r\cos\theta$, $y = r\sin\theta$. The area they sweep is a sum of thin wedges, each of area $\tfrac12r^2\,d\theta$:

$$A = \frac12\int r(\theta)^2\,d\theta$$

Antenna radiation patterns are drawn as polar curves: the distance shows how strongly the antenna radiates in each direction.
:::

::: example
## Find the slope of $x = \cos t$, $y = \sin 2t$ at $t = \frac{\pi}{4}$.

::: solution
1. **Differentiate each coordinate.** At $t = \frac{\pi}{4}$:
   $$\begin{aligned} \frac{dy}{dt} &= 2\cos 2t \\ &= 2\cos\frac{\pi}{2} \\ &= 0 \\ \frac{dx}{dt} &= -\sin\frac{\pi}{4} \\ &= -0.707 \end{aligned}$$
2. **Divide.**
   $$\begin{aligned} \frac{dy}{dx} &= \frac{0}{-0.707} \\ &= 0 \end{aligned}$$
   The curve is flat there, at the top of one of its loops.

**Answer:** the slope is 0, at the top of one of the curve's loops.
:::
:::

::: example
## Find the area of the ellipse $x = a\cos t$, $y = b\sin t$.

::: solution
1. **Set up the area.** The area is $\left|\int y\,dx\right|$ over one trip around, with $dx = -a\sin t\,dt$:
   $$\begin{aligned} &\left|\int_0^{2\pi}b\sin t\,(-a\sin t)\,dt\right| \\ &= ab\int_0^{2\pi}\sin^2t\,dt \\ &= \pi ab \end{aligned}$$
2. **Check with a circle.** With $a = b$ this is the circle's $\pi r^2$.

**Answer:** the ellipse's area is $\pi ab$.
:::
:::

::: example
## Find the length of one arch of the cycloid $x = t - \sin t$, $y = 1 - \cos t$.

::: solution
1. **Differentiate.**
   $$\begin{aligned} \dot x &= 1 - \cos t \\ \dot y &= \sin t \end{aligned}$$
2. **Find the speed.** For $0 \le t \le 2\pi$,
   $$\sqrt{2 - 2\cos t} = 2\sin\frac t2$$
3. **Integrate.**
   $$\begin{aligned} L &= \int_0^{2\pi}2\sin\frac t2\,dt \\ &= \left[-4\cos\frac t2\right]_0^{2\pi} \\ &= 8 \end{aligned}$$
   four times the wheel's diameter.

**Answer:** one arch is 8 long, four times the wheel's diameter.
:::
:::

::: check
given: s = 0.2 | 0.3 | 0.5 | 0.7 | 0.9
answer: asin(s)*180/pi
unit: °
tolerance: 0.5%

## Two equal-frequency signals make an ellipse on an XY display. It crosses the vertical axis at {s} of its full height. What is the phase difference, between 0° and 90°?

::: right
Right. $\sin\delta = \given{s}$, so $\delta$ = {answer}.
:::

::: misses
- [acos(s)*180/pi] The ratio is the sine of the phase, not its cosine: at 0° the ellipse squashes to a line through the origin, crossing at 0.
- [s*90] The relationship isn't linear: use $\sin\delta = y_0/y_{\max}$.
- [any] Not yet. Use $\sin\delta = y_0/y_{\max}$.
:::
:::

::: check
given: a = 2..6 int; t0 = 0.2 | 0.5 | 0.8 | 1.1
answer: a*cos(a*t0)/(-sin(t0))
tolerance: 0.5%

## A curve has $x = \cos t$, $y = \sin(\given{a}t)$. What is its slope $dy/dx$ at $t = \given{t0}$?

::: right
Right. $\frac{dy/dt}{dx/dt} = \frac{\given{a}\cos(\given{a}t)}{-\sin t}$ = {answer} there.
:::

::: misses
- [-sin(t0)/(a*cos(a*t0))] That's $dx/dy$. The slope is $dy/dt$ over $dx/dt$.
- [a*cos(a*t0)/sin(t0)] The derivative of $\cos t$ is $-\sin t$.
- [any] Not yet. Divide $dy/dt$ by $dx/dt$.
:::
:::

::: check
given: R = 3..9 int
answer: 2*pi*R
tolerance: 0.5%

## Use the arc-length integral to find the length of $x = \given{R}\cos t$, $y = \given{R}\sin t$ for $t$ from 0 to $2\pi$.

::: right
Right. The integrand is $\sqrt{\given{R}^2\sin^2t + \given{R}^2\cos^2t} = \given{R}$, so the length is $2\pi\given{R}$.
:::

::: misses
- [pi*R^2] That's the area of the circle. Length is the circumference.
- [2*pi] The speed along this curve is {R}, not 1.
- [any] Not yet. Simplify $\sqrt{x'^2 + y'^2}$, then integrate from 0 to 2π.
:::
:::

::: check
kind: choice

## A Lissajous figure touches the top edge 3 times and the side edge 2 times. What is the ratio of the horizontal signal's frequency to the vertical one's?

- [ ] 3 : 2
- [x] 2 : 3
- [ ] 6 : 1
- [ ] 1 : 1

::: right
Right. The top-edge touches count the vertical signal's peaks, 3 per pattern, and the side-edge touches the horizontal signal's, 2 per pattern: $f_x : f_y = 2 : 3$.
:::

::: misses
- [1] That's upside down. Each top-edge touch is a peak of the vertical signal, so 3 top touches means the vertical frequency is the 3.
- [any] Count the touches on each edge: $f_x : f_y = n_\text{side} : n_\text{top}$.
:::
:::

::: check
kind: parts
given: a = 2 | 3; b = 1 | 2; t0 = 0.5 | 1

## A point moves on $x = \given{a}\cos t$, $y = \given{b}\sin t$.

::: part
answer: -b*cos(t0)/(a*sin(t0))
tolerance: 0.5%

### What is the slope $dy/dx$ at $t$ = {t0}?

::: misses
- [b*cos(t0)/(a*sin(t0))] $dx/dt = -a\sin t$ is negative here.
- [any] $\frac{dy/dt}{dx/dt}$.
:::
:::

::: part
answer: sqrt((a*sin(t0))^2 + (b*cos(t0))^2)
tolerance: 0.5%

### How fast is it moving then?

::: misses
- [any] $\sqrt{\dot x^2 + \dot y^2}$.
:::
:::
:::

::: check
kind: derivation
vars: t = 0.1..6

## Find the speed of the cycloid $x = t - \sin t$, $y = 1 - \cos t$.

::: step
answer: 2 - 2*cos(t)

### What is $\dot x^2 + \dot y^2$, simplified?
:::

::: step
answer: 2*sin(t/2)

### Use $1 - \cos t = 2\sin^2\frac t2$ to write the speed (for $0 < t < 2\pi$).
:::

::: right
Right. The speed is $2\sin\frac t2$, zero where the point touches the ground and 2 at the top.
:::
:::

::: explain
## On an XY display, why does a phase difference of 90° between two equal sine waves give a circle?

::: model
With a 90° difference, one signal is at its peak when the other is at zero, so one coordinate is $\cos u$ while the other is $\sin u$. The dot is then at $(\cos u, \sin u)$, which is always at distance $\sqrt{\cos^2u + \sin^2u} = 1$ from the center, so it traces a circle. Any other phase makes the two coordinates partly in step, which squashes the circle into an ellipse, down to a straight line when they're exactly in step.
:::
:::

::: practice

::: check
given: a = 3..9 int
answer: pi*a^2
tolerance: 0.5%

## Use $A = \tfrac12\int r^2 d\theta$ to find the area inside $r = \given{a}$ (a circle), θ from 0 to 2π.

::: misses
- [2*pi*a] That's the circumference. Area uses $r^2$.
- [any] $\tfrac12\int_0^{2\pi}\given{a}^2 d\theta = \pi\given{a}^2$.
:::
:::

::: check
given: a = 1..5 int
answer: 1.5*pi*a^2
tolerance: 0.5%

## The cardioid $r = \given{a}(1 + \cos\theta)$ is the shape of a common microphone's pickup pattern. What area does it enclose? ($\int_0^{2\pi}(1 + \cos\theta)^2 d\theta = 3\pi$.)

::: misses
- [3*pi*a^2] Don't forget the ½ in the area formula.
- [any] $\tfrac12 \given{a}^2 \cdot 3\pi$.
:::
:::

::: check
given: v = 1..9 int; T = 1..5 int
answer: v*T*sqrt(2)
tolerance: 0.5%

## A dot moves with $x = \given{v}t$, $y = \given{v}t$. How far does it travel from $t = 0$ to $t = \given{T}$?

::: misses
- [v*T] It moves diagonally: both coordinates change at rate {v}.
- [2*v*T] Speeds combine by Pythagoras: $\sqrt{v^2 + v^2}$.
- [any] Speed is $\sqrt{x'^2 + y'^2} = \given{v}\sqrt2$; multiply by the time.
:::
:::
:::
