What this calculator does
The lemniscate of Bernoulli is the figure-eight curve (x² + y²)² = a²(x² − y²), where a is the distance from the centre (the crossing point) to the tip of each loop, half the total width. It is the set of points whose distances to the two foci (±c, 0), c = a/√2, have the product c²; in polar coordinates r² = a² cos 2θ.
Derivation of the formulas
Area of both loops:
$$ A = a^2 $$
Perimeter:
$$ L = 2\varpi a,\quad \varpi = 2\int_0^1\frac{dt}{\sqrt{1 - t^4} } = \frac{\pi}{\operatorname{AGM}(1, \sqrt{2})} \approx 2.622057554 $$
Focal distance:
$$ c = \frac{a}{\sqrt{2} } $$
Height of a loop:
$$ h = \frac{a}{\sqrt{2} } $$
From r² = a² cos 2θ, one loop is swept for θ between −π/4 and π/4, so the polar area formula gives ½∫ r² dθ = (a²/2)∫ cos 2θ dθ = a²/2 per loop and a² for both. For the length, write the loop in terms of r: since r⁴ = a⁴cos²2θ, the arc element is ds = a² dr / √(a⁴ − r⁴); from the centre to a tip it integrates to a∫₀¹ dt/√(1 − t⁴) = aϖ/2, and the whole curve has four such quarters: L = 2ϖa. The lemniscate constant ϖ has no elementary closed form; Gauss showed ϖ = π/AGM(1, √2), and the calculator computes it with that arithmetic-geometric mean, an iteration that doubles the correct digits at each step. The highest point of a loop is where y² = a² cos 2θ sin²θ is largest, at sin²θ = 1/4, giving y = a/(2√2), so each loop is a/√2 high.
Solving from what you know
Choose what you know: Half-width a (centre to the tip of a loop); Area A (both loops); Perimeter (arc length) L; Focal distance c (centre to a focus). 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.
Worked example
With the default a = 5: A = 25, each loop encloses 12.5, the perimeter is 10ϖ ≈ 26.220576, the foci are about 3.535534 from the centre, and each loop is about 3.535534 high.
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 is the area exactly a²?
The polar area of one loop is (a²/2)∫ cos 2θ dθ over a quarter turn, which is a²/2 with no π left over, so both loops together enclose exactly a².
What is the lemniscate constant?
ϖ ≈ 2.622057554 is to the lemniscate what π is to the circle: the lemniscate with a = 1 has perimeter 2ϖ. It equals π divided by the arithmetic-geometric mean of 1 and √2.
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