DigitHelm

Parametric Curve Grapher | x(t) y(t)

Plot parametric curves defined by x(t) and y(t) and download the graph as PNG.

CURVE PRESETS

100 (fast)2000 (smooth)
t = t_mint = t_maxGradient: orange → blue (t progress)
Syntax: Use t as the parameter. Operators: +, -, *, /, ^ (power). Functions: sin, cos, tan, asin, acos, atan, exp, ln, log, sqrt, abs. Constants: pi, e.

What Is the Parametric Curve Grapher | x(t) y(t)?

This parametric curve grapher plots any curve defined by x(t) and y(t) as functions of parameter t. Unlike Cartesian y = f(x) plots, parametric curves can double back, self-intersect, and form closed loops, enabling spirals, roses, hearts, and Lissajous figures.

  • 10 built-in presets: Circle, Ellipse, Lissajous, Spiral, Butterfly, Heart, Rose, Astroid, Hypotrochoid, and Cycloid.
  • Arc length estimation: Numerically approximates total arc length via Euclidean distance sum.
  • Bounding box: Reports exact x and y extents of the plotted curve.
  • Sample count slider: Adjust 100–2000 points for speed vs. smoothness tradeoff.
  • Start/end markers: Green dot = t_min, red dot = t_max, shows curve direction.
  • Download PNG: Save the plotted curve for reports or presentations.

Formula

x = x(t)  ·  y = y(t)  ·  t ∈ [t_min, t_max]
Arc Length ≈ Σ √(Δx² + Δy²)  (numerical approximation of ∫√((dx/dt)²+(dy/dt)²) dt)
Curvex(t)y(t)t range
Circlecos(t)sin(t)[0, 2π]
Heart16·sin³(t)13cos(t)−5cos(2t)−…[0, 2π]
Astroidcos³(t)sin³(t)[0, 2π]
Lissajous 3:4sin(3t)sin(4t)[0, 2π]
Archimedean Spiralt·cos(t)t·sin(t)[0, 6π]

How to Use

  1. 1Select a preset or enter your own x(t) and y(t) expressions using t as the parameter.
  2. 2Set t min and t max for the parameter range.
  3. 3Drag the sample count slider to adjust smoothness (more = smoother but slower).
  4. 4Press Enter or click Plot Curve.
  5. 5Read bounding box and arc length below the plot.
  6. 6Click Download PNG to save. Click Clear to reset.

Example Calculation

Heart curve

x(t) = 16*sin(t)^3 y(t) = 13*cos(t) - 5*cos(2*t) - 2*cos(3*t) - cos(4*t) t ∈ [0, 2π] Arc length ≈ 138.8 units x range: [−16, 16] y range: [−17, 13]

Arc length formula

Exact arc length = ∫_a^b √((dx/dt)² + (dy/dt)²) dt. This calculator approximates it by summing point-to-point Euclidean distances. With 800 samples, accuracy is typically 4+ significant figures.

Understanding Parametric Curve Grapher | x(t) y(t)

What Are Parametric Curves?

In Cartesian graphing, y = f(x) restricts the curve to one y per x. Parametric curves introduce a parameter t, defining x and y independently. As t increases, the point (x(t), y(t)) traces any path, self-intersecting, spiraling, or closed. A circle cannot be a single Cartesian function but is trivially x = cos(t), y = sin(t).

Lissajous Figures

Formed by x = A·sin(at + δ), y = B·sin(bt). The ratio a:b determines shape: 1:1 gives an ellipse, 3:4 gives three vertical loops crossing four horizontal segments. They appear on oscilloscopes when comparing two sinusoidal signals. Integer ratios produce closed shapes; irrational ratios produce never-repeating paths that fill the bounding rectangle over time.

Supported Syntax

ElementSyntaxExample
Parametertcos(t)
Power^cos(t)^3
Constantspi, esin(2*pi*t)
Trigsin, cos, tan, asin, acos, atansin(t)*cos(2*t)
Exponentialexp, ln, logexp(cos(t))
Othersqrt, abs, floor, ceilsqrt(abs(t))

Frequently Asked Questions

What is the t parameter in a parametric curve?

The parameter t traces the path. As t increases, the point (x(t), y(t)) moves along the curve, think of it as time. For a circle, t ∈ [0, 2π] traces the full circumference. For a spiral, t keeps increasing and the point spirals outward.

The range [t_min, t_max] determines which portion is plotted. Closed curves need one full period (e.g. [0, 2π]); open spirals can extend indefinitely.

Why does my curve look jagged or have gaps?

Jaggedness means too few samples, increase the slider to 1000+. Gaps occur when the expression is undefined at some t values (division by zero, log of negative, sqrt of negative). The grapher silently skips these. Narrow the t range to avoid singularities or choose a nearby evaluation point.

How is arc length calculated?

By summing straight-line distances between consecutive points:

L ≈ Σᵢ √((xᵢ−xᵢ₋₁)² + (yᵢ−yᵢ₋₁)²)

This approximates the integral L = ∫√((dx/dt)²+(dy/dt)²) dt. With 800 samples, accuracy is typically 4+ significant figures. Increase to 2000 for higher precision on tightly curved paths.

What is the difference between parametric and Cartesian curves?

Cartesian y = f(x) must pass the vertical line test. Parametric curves have no such restriction:

  • A circle needs two Cartesian equations (top/bottom halves) but one parametric pair.
  • Lissajous figures self-intersect, impossible as a single Cartesian function.
  • Spirals extend in both x and y simultaneously.

How do I plot a rose curve?

Rose curves r = cos(nθ) in parametric form: x = cos(n·t)·cos(t), y = cos(n·t)·sin(t).

3-petal (n=3): t ∈ [0, π] x = cos(3*t)*cos(t) y = cos(3*t)*sin(t) 4-petal (n=2): t ∈ [0, 2π] x = cos(2*t)*cos(t) y = cos(2*t)*sin(t)

Odd n gives n petals; even n gives 2n petals. The 3-petal preset is built in.

Can I plot curves in degrees instead of radians?

The trig functions use radians. To work in degrees, multiply t by π/180:

x = cos(t * pi / 180), t ∈ [0, 360] y = sin(t * pi / 180)

Or keep t in radians with range [0, 6.2832], most parametric formulas are naturally in radians.

What are Lissajous figures and where do they appear?

Formed by x = A·sin(at + δ), y = B·sin(bt). The shape depends on frequency ratio a:b and phase δ:

  • a:b = 1:1, δ = π/2 → circle or ellipse
  • a:b = 1:2 → figure-8
  • a:b = 3:4 → three vertical loops, four horizontal segments
  • Irrational ratios → space-filling, never-repeating path

They appear on oscilloscopes comparing two AC signals, in music visualisers, and coupled oscillator physics.

Related Calculators