Ekuation

curve type

Lissajous Figure Generator

Generate Lissajous figures by plotting x = A·sin(at + d) and y = B·sin(bt). Visualize frequency ratios used in oscilloscope calibration.

Back to Parametric Equation Plotter

Curve color

About the Parametric Equation Plotter

A parametric equation defines a curve by expressing both x and y coordinates as separate functions of an independent parameter t. Instead of writing y = f(x), you write:

  • x=f(t)x = f(t) — horizontal position as a function of tt
  • y=g(t)y = g(t) — vertical position as a function of tt

As t varies over its domain [t_min, t_max], the point (x(t), y(t)) traces out a curve in the plane. This representation is more powerful than y = f(x) because it can describe curves that loop back on themselves, spirals, and closed shapes.

How to Use

  1. Enter the x(t) expression — any mathematical expression using variable t, such as cos(t), t - sin(t), or 3*sin(2*t).
  2. Enter the y(t) expression in the same way, for example sin(t) or 1 - cos(t).
  3. Set the t range — the interval over which the parameter is evaluated. Use 0 to 6.283 (approximately 2π) for most closed curves.
  4. Click a Quick Preset to instantly load a famous parametric curve.
  5. The graph updates live as you type. Use the toolbar buttons to zoom, pan, reset the view, take a screenshot, or enter fullscreen mode.

Supported functions: sin, cos, tan, sqrt, abs, log, exp, and all standard mathjs expressions. Use pi and e as constants.

Methodology and Formulas

Arc Length

The arc length of a parametric curve from t = a to t = b is computed by integrating the speed:

L=ab(dxdt)2+(dydt)2dtL = \int_a^b \sqrt{\left(\frac{dx}{dt}\right)^2 + \left(\frac{dy}{dt}\right)^2} \, dt

This calculator approximates the integral using the midpoint rule with 500 subintervals and central finite differences to compute derivatives.

Enclosed Area

For a closed curve (where the start and end points coincide), the enclosed area is computed using Green's theorem:

A=aby(t)x(t)dtA = \left| \int_a^b y(t) \cdot x'(t) \, dt \right|

The absolute value ensures a positive result regardless of the direction of traversal.

Closedness Detection

A curve is classified as closed if the distance between the start point (x(tMin), y(tMin)) and end point (x(tMax), y(tMax)) is less than 0.1% of the magnitude of each coordinate.

Real-World Examples

Example 1 — Unit Circle

The unit circle is the simplest closed parametric curve. Setting x(t) = cos(t) and y(t) = sin(t) with t from 0 to 2π traces the circle of radius 1 centered at the origin.

  • Arc length: 2π ≈ 6.2832 (the circumference of the unit circle)
  • Enclosed area: π ≈ 3.1416 (the area of the unit circle)

Example 2 — Cycloid (Brachistochrone)

The cycloid is the curve traced by a point on the rim of a rolling circle of radius 1. With x(t) = t − sin(t) and y(t) = 1 − cos(t), t from 0 to 4π (two full arches):

  • Arc length per arch: 8 (exactly 8 radii)
  • Area under one arch: 3π ≈ 9.4248 (three times the generating circle area)

The cycloid is famously the brachistochrone — the curve of fastest descent under gravity between two points, discovered by Johann Bernoulli in 1696.

Example 3 — Lissajous Figures

Lissajous figures arise when x(t)=Asin(at+δ)x(t) = A\sin(at + \delta) and y(t)=Bsin(bt)y(t) = B\sin(bt). The ratio a:ba:bdetermines the number of loops. For a = 3, b = 2 with t from 0 to 2π:

  • x(t) = sin(3t), y(t) = sin(2t)
  • The curve has 3 horizontal lobes and 2 vertical lobes
  • Arc length: approximately 11.65

Lissajous figures appear on oscilloscopes when two perpendicular sinusoidal signals are applied to the x and y axes. They are used to measure frequency ratios and phase differences in electronics.

Example 4 — Astroid

The astroid (four-cusped hypocycloid) uses x(t) = cos³(t) and y(t) = sin³(t), t from 0 to 2π:

  • Arc length: 6 (exactly 6 radii of the circumscribed circle)
  • Enclosed area: 3π/8 ≈ 1.1781

Example 5 — Projectile Motion

A projectile launched at angle 45°45° with initial speed v0=10v_0 = 10 m/s (ignoring air resistance) follows:

  • x(t) = 10·cos(45°)·t = 7.071·t
  • y(t) = 10·sin(45°)·t − 0.5·9.81·t² = 7.071·t − 4.905·t²
  • In the plotter: x(t) = 7.071*t, y(t) = 7.071*t - 4.905*t^2, t from 0 to 1.443
  • Range: approximately 10.19 m
  • Maximum height: 2.55 m at t = 0.72 s

Domain Knowledge

Why Use Parametric Equations?

Parametric equations are superior to explicit equations (y = f(x)) when:

  • The curve is not a function (fails the vertical line test)
  • The curve loops back on itself (like a circle or figure-eight)
  • The direction and speed of traversal matter (e.g., animation, physics)
  • The curve has cusps or self-intersections

Common Misconceptions

  • t is not always time: The parameter t is a mathematical abstraction. It happens to represent time in physics problems but is just a number in others.
  • Parameterization is not unique: The same curve can be parameterized many ways. The circle x = cos(t), y = sin(t) and x = cos(2t), y = sin(2t) trace the same set of points but at different speeds.
  • Direction matters for area: Counter-clockwise traversal gives a positive area by Green's theorem. Clockwise gives a negative result. This plotter reports the absolute value.

Historical Context

Jules-Antoine Lissajous (1822–1880) studied the curves that now bear his name in the context of vibrating strings and tuning forks. Christiaan Huygens proved in 1659 that the cycloid is the tautochrone (the curve on which a ball reaches the bottom in the same time regardless of starting position). Johann Bernoulli posed the brachistochrone problem in 1696, and five solutions were submitted including Newton's and Leibniz's.

Frequently Asked Questions

What t range should I use?

For periodic curves like circles, ellipses, and Lissajous figures, use 0 to 2π (≈ 6.283). For curves that need more traversal (like spirals or cycloids with multiple arches), extend the range. For non-periodic curves like projectile motion, use the physical time interval.

Why does my curve look jagged?

Jagged appearance typically means the parameter range is too large relative to the complexity of the curve. Try reducing the t range or increasing the sample density (the plotter uses 500 points by default). Very high-frequency oscillations may also cause aliasing.

Why is the arc length calculation approximate?

Exact arc length requires a closed-form integral, which is not always possible. This calculator uses numerical integration (midpoint rule with 500 steps and central finite differences), which gives accuracy to approximately 4 decimal places for smooth curves.

What does "Open Curve" mean?

An open curve's start and end points are different. A closed curve's start and end points coincide (within a small tolerance). Only closed curves have a well-defined enclosed area.

Can I plot multiple curves?

Currently this plotter supports one parametric curve at a time. For plotting multiple functions, use the Graphing Calculator.

Disclaimer

All calculations are performed numerically using finite-difference approximations and midpoint-rule integration with 500 sample points. Results are approximate and may differ from exact analytical values, particularly for highly oscillatory or discontinuous expressions. This tool is intended for educational and exploratory purposes. For publication-quality results, verify with a CAS (computer algebra system) such as Wolfram Alpha or Mathematica.

Related curve-type Variants

Explore more curve-type options

More Math Calculators

Explore the category

Calculator Search

Search and find calculators