Parametric and 3D Graphing

Graph Circles and Ellipses with Parametric Equations

A circle with centre (h, k) and radius r is x = h + r cos t, y = k + r sin t for 0 ≤ t ≤ 2π, traced counterclockwise starting at (h + r, k). An ellipse with centre (h, k), horizontal semi-axis a and vertical semi-axis b is x = h + a cos t, y = k + b sin t. Eliminating t gives the familiar equations (x − h)² + (y − k)² = r² and ((x − h)⁄a)² + ((y − k)⁄b)² = 1.

Circle x = 1 + 2cos t, y = 1 + 2sin t and ellipse x = 4cos t, y = 2sin t drawn with direction arrows.

Check it yourself: every example here can be loaded into the Parametric Graphing Calculator.

Open the Parametric Graphing Calculator

The circle

x = h + r cos t,    y = k + r sin t,    0 ≤ t ≤ 2π
  • Centre (h, k), radius r.
  • Starts at (h + r, k) when t = 0.
  • Moves counterclockwise and closes at t = 2π.

Why it works: (x − h)² + (y − k)² = r²(cos²t + sin²t) = r². Every point is exactly r from the centre.

Try it in the calculator

The ellipse

x = h + a cos t,    y = k + b sin t
  • Centre (h, k).
  • Horizontal semi-axis a, vertical semi-axis b.
  • If a > b it is wider than tall; if a < b, taller than wide; if a = b, a circle.

Eliminating t: ((x − h)⁄a)² + ((y − k)⁄b)² = 1.

Ellipse with centre (1, −1), horizontal semi-axis 3 and vertical semi-axis 2, with the points at t = 0, π/2, π and 3π/2 labelled.
The constants give the centre; the coefficients give the semi-axes.
Text description of this figure

Ellipse with centre (1, −1), horizontal semi-axis 3 and vertical semi-axis 2, with the points at t = 0, π/2, π and 3π/2 labelled.

  1. Centre (h, k) = (1, −1) from the added constants.
  2. a = 3 across, b = 2 up and down.
  3. t = 0 starts at the right end; motion is counterclockwise.

Worked example

Write parametric equations for the ellipse centred at (−2, 3) that is 10 units wide and 4 units tall.

  1. Semi-axes: a = 10⁄2 = 5, b = 4⁄2 = 2.
  2. x = −2 + 5 cos t, y = 3 + 2 sin t, 0 ≤ t ≤ 2π.
  3. Check: t = 0 gives (3, 3), the right end; t = π/2 gives (−2, 5), the top.
Try it in the calculator

Changing direction and starting point

Equations Start (t = 0) Direction
x = cos t, y = sin t (1, 0) counterclockwise
x = cos t, y = −sin t (1, 0) clockwise
x = sin t, y = cos t (0, 1) clockwise
x = cos(2t), y = sin(2t), 0 ≤ t ≤ π (1, 0) counterclockwise, twice as fast

See parameter range and direction for more.

Try it in the calculator

Why the graph must use equal scales

On axes with different units per pixel, a circle looks like an ellipse. The parametric graphing calculator always uses equal scaling so shapes are true.

Common mistakes

  • Subtracting h and k in parametric form: it is x = h + r cos t, not x = r cos t − h.
  • Using the full width as a. a and b are semi-axes — half the width and height.
  • Stopping at t = π and getting half the curve.
  • Swapping a and b so the ellipse is oriented the wrong way.

Questions

Why does t = 0 start on the right?

cos 0 = 1 and sin 0 = 0, so the point is at (h + a, k): the right end of the horizontal axis.

How do I make the circle start at the top?

Swap the functions: x = h + r sin t, y = k + r cos t starts at (h, k + r) and moves clockwise.

Is t the angle at the centre?

For a circle, yes. For an ellipse t is the eccentric angle, which is not quite the angle you would measure from the centre to the point.

Graph your own example with the Parametric Graphing Calculator — free, in your browser.

Try it now

Sources and further reading

Worked examples and figures were produced and checked with the Graphing Calculator Lab engine. See the editorial policy.

Related guides

More in Parametric and 3D Graphing · All guides