Skip to content
Tutorials Center
My learning

Topics

Lesson 3 of 36 · Getting Started

Why Complex Numbers Exist: A Short History

See why mathematicians were forced to accept square roots of negative numbers: the cubic equation story, with runnable Python for Bombelli's famous example.

Complex numbers were not invented to make life harder. They were forced on mathematicians by a practical problem: solving cubic equations. The surprise is that square roots of negative numbers showed up as intermediate steps even when every final answer was an ordinary real number. This lesson tells that story briefly, and lets you reproduce the key computation.

Quadratics did not need them

For centuries, a quadratic such as x² + 1 = 0 was simply declared to have no solution. Nothing broke: the parabola y = x² + 1 never touches the x-axis, so the equation really has no real root, and saying so is honest geometry.

Cubics are different. Every real cubic must cross the x-axis at least once, so it always has a real root. In the sixteenth century, Italian mathematicians found a formula for those roots. The formula is usually credited to Scipione del Ferro and Niccolò Tartaglia, and was published by Gerolamo Cardano in 1545.

Cardano's formula and the puzzle

For a depressed cubic x³ = px + q (no x² term), the formula says

Text
x = ∛( q/2 + √(q²/4 - p³/27) ) + ∛( q/2 - √(q²/4 - p³/27) )

Now try x³ = 15x + 4. You can see by inspection that x = 4 works: 64 = 60 + 4. But the formula gives q²/4 - p³/27 = 4 - 125 = -121, a negative number under a square root. The formula produces ∛(2 + √-121) + ∛(2 - √-121), which looks meaningless, yet a true real root exists.

Rafael Bombelli, in a book from 1572, resolved the puzzle by treating √-121 = 11i as a number that follows the usual rules. He noticed that (2 + i)³ = 2 + 11i. Check: (2 + i)² = 4 + 4i - 1 = 3 + 4i, then (3 + 4i)(2 + i) = 6 + 3i + 8i + 4i² = 2 + 11i. Therefore ∛(2 + 11i) = 2 + i, similarly ∛(2 - 11i) = 2 - i, and the sum is 4. The imaginary parts cancel and the real root appears.

Python Bombelli's cubic

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

The first print shows -121, the troublesome negative number. The computed x should be 4 with a negligible imaginary part (floating-point rounding), and (2+1j)**3 should show 2 + 11i. The method works because complex arithmetic obeys the same laws as real arithmetic.

The principal cube roots used above happen to pair up correctly for this example. In general, the two cube roots u and v must satisfy u·v = p/3, and a careful implementation picks the right branch. We return to branches when we study the complex logarithm.

From "impossible" to "imaginary" to "complex"

The names tell the history:

  • René Descartes (1637) used the word "imaginary" for such roots, and it was meant as a slight.
  • Leonhard Euler introduced the symbol i for √-1; it spread widely after his work was published in the late 1700s.
  • Caspar Wessel (1797), Jean-Robert Argand (1806) and Carl Friedrich Gauss independently described complex numbers as points in a plane. Gauss popularized the geometric picture and the name "complex number" in the early nineteenth century.
  • William Rowan Hamilton (1837) defined complex numbers as ordered pairs of reals, which removed any remaining mystery.
  • Gauss proved in 1799 that every non-constant polynomial has a complex root, now called the fundamental theorem of algebra.

Once complex numbers had a geometric meaning, they stopped being "impossible" and became a coordinate system for the plane with built-in multiplication.

The fundamental theorem of algebra in action

Because every polynomial of degree n splits into n linear factors over ℂ, we can always write p(z) = a(z - r₁)(z - r₂)…(z - rₙ). Let us test that numerically: find the roots of a degree-5 polynomial, rebuild the polynomial from them and compare the coefficients.

Python Roots and factors

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

You get five roots in total. Complex ones come in conjugate pairs because the coefficients are real. The rebuilt coefficients match the original ones, which is the factorization statement in numerical form.

Check your understanding

Quick check · 4 questions

of 4 answered You scored / 4 · perfect!

  1. 1. Why did mathematicians accept square roots of negative numbers?

    Cardano's cubic formula can pass through square roots of negative numbers even when the final answer is real, as in x³ = 15x + 4.
  2. 2. What is (2 + i)³?

    (2 + i)² = 3 + 4i and (3 + 4i)(2 + i) = 2 + 11i.
  3. 3. Who is credited with the first proof of the fundamental theorem of algebra in 1799?

    Gauss gave a proof in 1799 in his doctoral thesis (earlier attempts had gaps) and later gave more.
  4. 4. How many complex roots does x^5 - 3x^4 + 5x - 2 + 7 have in total, counted with multiplicity?

    The degree is 5 (the x^5 term is present), so there are exactly 5 roots over the complex numbers.

Summary

  • Cubic equations, not quadratics, forced the acceptance of √-1.
  • Bombelli showed that treating √-121 as 11i produces the correct real root 4.
  • Wessel, Argand and Gauss gave complex numbers a geometric meaning as points in a plane; Hamilton defined them as pairs.
  • The fundamental theorem of algebra says every polynomial of degree n has exactly n complex roots.

Next: Plotting Complex Numbers with Python