Create beautiful mathematical curves like spirograph drawings. Adjust parameters in real-time and explore geometric patterns.
Parametric Equations:
x(θ) = (R - r) cos θ + d cos((R - r)/r θ)
y(θ) = (R - r) sin θ - d sin((R - r)/r θ)
Where: R = fixed circle radius, r = rolling circle radius, d = distance from rolling circle center
Quick Presets:
A hypotrochoid is a curve traced by a point attached to a circle of radius r rolling around the inside of a fixed circle of radius R, where the point is at a distance d from the center of the interior circle.
Parametric Equations:
x(θ) = (R - r) cos θ + d cos((R - r)/r θ)
y(θ) = (R - r) sin θ - d sin((R - r)/r θ)
Where θ is the angle of rotation of the rolling circle around the fixed circle.
Hypocycloid (d = r):
When d = r, the point lies on the circumference of the rolling circle, producing a hypocycloid.
x(θ) = (R - r) cos θ + r cos((R - r)/r θ)
y(θ) = (R - r) sin θ - r sin((R - r)/r θ)
Ellipse (r = R/2, d small):
When r = R/2 and d is small relative to r, the curve approximates an ellipse.
For R = 2r, the equations simplify to:
x(θ) = r cos θ + d cos θ = (r + d) cos θ
y(θ) = r sin θ - d sin θ = (r - d) sin θ
Fixed Circle: The outer circle with radius R remains stationary. The rolling circle moves along its interior circumference.
Rolling Circle: A circle of radius r rolls without slipping along the inside of the fixed circle.
Tracing Point: A point at distance d from the center of the rolling circle traces the hypotrochoid curve.
Calculator Features:
Number of cusps: For hypocycloids (d=r), the number of cusps = R/r
Curve closure: Closed if R/r is rational
Symmetry: Rotational symmetry of order numerator(R/r in simplest form)