Cardano’s formula (卡丹公式 / Cardano’s formula) is the closed-form solution for cubic equations, published by Gerolamo Cardano in 1545 in Ars Magna.

Setup. Any cubic can be reduced (by substituting ) to the depressed cubic:

The formula. One root is:

The quantity under the square root, , acts like a discriminant:

  • : one real root, two complex conjugate roots
  • : repeated real roots
  • : three distinct real roots — this is the famous casus irreducibilis, where the formula forces you through complex numbers even though all answers are real. This case is historically what pushed mathematicians to take seriously.

Quick example. , so , : , giving . ✓

Derivation idea (the classic trick). Write . Then , so the equation becomes . Impose ; then and , so are roots of a quadratic — which you can solve. That’s the whole magic: a cubic collapses into a quadratic in .

Fun history note since you like math lore: Cardano actually got the method from Tartaglia under an oath of secrecy, then published it anyway after discovering Scipione del Ferro had solved it earlier — one of math’s messiest priority fights. His student Ferrari then extended the idea to quartics, and Abel–Galois later proved degree ≥ 5 has no such general radical formula.