What this calculator does
A hypocycloid is the curve traced by a point on a circle of radius r that rolls without slipping inside a fixed circle of radius R. When R = k r for a whole number k, the point returns to its start after one trip round and the curve is closed, with k cusps on the fixed circle. With 3 cusps it is the deltoid, with 4 the astroid.
Derivation of the formulas
Rolling-circle radius:
$$ r = \frac{R}{k} $$
Area:
$$ A = \pi (k - 1) (k - 2)\, r^2 = \frac{(k - 1) (k - 2)\,\pi R^2}{k^2} $$
Perimeter:
$$ L = 8 (k - 1)\, r = \frac{8 (k - 1) R}{k} $$
Inner radius:
$$ R - 2r $$
Distance between neighbouring cusps:
$$ 2R\sin\frac{\pi}{k} $$
Let the rolling circle's centre turn through the angle t round the centre of the fixed circle; it moves on the circle of radius R − r. No slipping means the arcs that have touched are equal, R t on the fixed circle, so the rolling circle turns by (R − r)t/r relative to the line of centres, in the opposite sense. The point is therefore x = (R − r)cos t + r cos((R − r)t/r), y = (R − r)sin t − r sin((R − r)t/r). One arch, between two cusps, takes t from 0 to 2π/k; its speed is 2(R − r)|sin(R t/(2r))|, which integrates to 8(R − r)r/R = 8(k − 1)r/k per arch, so L = 8(k − 1)r. Green's theorem, A = ½∮(x dy − y dx), evaluates to π(R − r)(R − 2r) = π(k − 1)(k − 2)r². The point of an arch nearest the centre is where the tracing point sits opposite the contact point, R − 2r from the centre.
Solving from what you know
Choose what you know: Radius R of the fixed circle and cusps k; Radius r of the rolling circle and cusps k; Area A and cusps k; Perimeter L and cusps k. The calculator first finds the sizes that define the curve and then computes every other value from the formulas above. Each length is accepted from 0.000001 to 1,000,000,000, each area from 0.000000000001 to 1,000,000,000,000,000,000; anything outside is refused with a sentence that names the range. The number of cusps is a whole number from 3 to 1,000.
Worked example
With the defaults R = 10 and k = 5: r = 2, A = π·4·3·2² = 48π ≈ 150.796447, L = 8·4·2 = 64, the curve comes within 6 of the centre, and neighbouring cusps are about 11.755705 apart.
Results are accurate to at least 9 significant digits for ordinary inputs. When a result depends on the small difference of two nearly equal entries (closer than one part in a million), fewer digits are reliable. They are shown with up to 6 decimal places; a value below 0.000001 or of 10¹⁵ and more is shown as its plain 12-digit number instead. The unit you pick is a label: lengths are shown in that unit and areas in its square.
Frequently asked questions
Why must the number of cusps be a whole number?
Only when R/r is a whole number k does the tracing point come back to where it started after one trip round the fixed circle, so that the curve closes with k cusps. For other ratios the curve goes on round without closing and encloses no single region.
What happens with 2 cusps?
A circle of half the radius rolling inside traces a straight line: a diameter of the fixed circle, gone over twice. It encloses no area, so the calculator starts at 3 cusps.
How accurate are the results?
Results are accurate to at least 9 significant digits for ordinary inputs. When a result depends on the small difference of two nearly equal entries (closer than one part in a million), fewer digits are reliable.
References
J. Dennis Lawrence, A Catalog of Special Plane Curves, Dover Publications, 1972
D. Zwillinger (ed.), CRC Standard Mathematical Tables and Formulas, 33rd edition, CRC Press, 2018