Chapter III · Complex numbers

Quadratic equations, and why there are never too many roots

§43 30 min

With complex numbers every real quadratic has exactly two roots, conjugate when not real; and no polynomial of degree nn has more than nn roots.

Why this matters

Complex numbers were built so that z2+1=0z^2 + 1 = 0 would have a solution. This lesson checks that they do more: every quadratic with real coefficients now has two roots, and the familiar formula still finds them. Just as important, they do not overshoot. A quadratic still has no more than two roots, and a polynomial of degree nn no more than nn. Hardy then states (and postpones the proof of) the great fact that the complex numbers are the end of the road: every polynomial equation already has its roots among them.

The idea

Take the real quadratic az2+2bz+c=0az^2 + 2bz + c = 0 with a≠0a \ne 0. (Hardy writes 2b2b so that the formula has no stray factors of 22.) Completing the square,

a(z+ba)2=b2−aca.a\left(z + \frac ba\right)^2 = \frac{b^2 - ac}{a}.

If b2−ac>0b^2 - ac > 0 the right side is positive and we get two real roots; if b2−ac=0b^2 - ac = 0, one (counted twice). If b2−ac<0b^2 - ac < 0 the real line offers nothing, because a real square is never negative. But in the complex numbers (±ik)2=−k2(\pm i k)^2 = -k^2, so the equation is solved by z+b/a=±iac−b2/az + b/a = \pm i\sqrt{ac - b^2}/a. The roots are then −b/a±iac−b2/a-b/a \pm i\sqrt{ac - b^2}/a: they have the same real part, and imaginary parts of opposite sign. They are conjugate.

Watch this happen. Below, a=1a = 1 and the equation is z2+2bz+c=0z^2 + 2bz + c = 0.

Explore Roots leaving the real axis

Try this. Keep bb fixed and push cc slowly to the right. Watch the two real roots on the graph and in the Argand diagram, and note the value of cc at which they meet. Keep going. Then change bb.

Graph of y=x2+2bx+cy = x^2 + 2bx + c
xy
Roots in the Argand diagram
ReIm
  • the parabola
  • the roots
  • Re z = −b (half the sum of the roots)
  • path of the roots as c runs from -3 to 4
z2−z−1=0z^2 - z - 1 = 0; b2−c=1.25b^2 - c = 1.25 > 0: two distinct real roots.
z=0.5±1.12=−0.618, 1.62z = 0.5 \pm 1.12 = -0.618,\ 1.62. Sum of the roots =−2b=1= -2b = 1, product =c=−1= c = -1.
What to notice

While the parabola cuts the axis, the roots are real and move towards each other. They meet at −b-b exactly when c=b2c = b^2 (the parabola just touches the axis), and then they turn through a right angle and leave the real axis together, as a mirror-image pair on the vertical line Re⁡z=−b\operatorname{Re} z = -b. Their sum stays −2b-2b and their product stays cc throughout: the formulas do not care whether the roots are real.

Notice what the picture does not show: the parabola gives no hint of where the complex roots are. Its lowest point is at x=−bx = -b, which is their common real part, but their imaginary part ±c−b2\pm\sqrt{c - b^2} is not visible on the graph at all. The Argand diagram is a genuinely new place to look.

Precise statements

Theorem The real quadratic Hardy: §43

Let a,b,ca, b, c be real with a≠0a \ne 0. The equation az2+2bz+c=0az^2 + 2bz + c = 0 has

  • two distinct real roots −b±b2−aca\dfrac{-b \pm \sqrt{b^2 - ac}}{a} if b2>acb^2 > ac;
  • one real root −b/a-b/a, counted as two equal roots, if b2=acb^2 = ac;
  • two distinct conjugate complex roots −b±iac−b2a\dfrac{-b \pm i\sqrt{ac - b^2}}{a} if b2<acb^2 < ac.

In every case it has no other complex roots.

The last sentence needs a general argument, which works for polynomials of any degree with real or complex coefficients. Write f(z)f(z) for such a polynomial.

Theorem Remainder and factor theorems; at most nn roots Hardy: §43 (1)–(3)
  1. The remainder when f(z)f(z) is divided by z−αz - \alpha is f(α)f(\alpha).
  2. If f(α)=0f(\alpha) = 0 then z−αz - \alpha divides f(z)f(z).
  3. If ff has degree nn and leading coefficient AA, and α1,…,αn\alpha_1, \dots, \alpha_n are roots of f(z)=0f(z) = 0, taken with multiplicity, then f(z)=A(z−α1)(z−α2)⋯(z−αn)f(z) = A(z - \alpha_1)(z - \alpha_2)\cdots(z - \alpha_n).

Consequently an equation of degree nn has at most nn distinct roots.

Theorem Every equation has a root (fundamental theorem of algebra) Hardy: §43; proof in Appendix II

Every polynomial equation of degree n≥1n \ge 1, with real or complex coefficients, has at least one complex root. Hence it has exactly nn roots, counted with multiplicity.

Hardy draws the moral: we enlarged the integers to get 3−73 - 7, the rationals to get 37\frac37, the reals to get 2\sqrt 2, and the complex numbers to get −1\sqrt{-1}. One might fear that equations of higher degree would force yet more kinds of number. They do not. Finally, any identity of school algebra proved only from the rules of addition and multiplication stays true for complex numbers; for example, if α,β\alpha, \beta are the roots of az2+2bz+c=0az^2 + 2bz + c = 0 then α+β=−2b/a\alpha + \beta = -2b/a and αβ=c/a\alpha\beta = c/a.

Proofs

Proof The real quadratic
Strategy

Complete the square. That reduces everything to the equation w2=dw^2 = d for a real dd, and we solve that by looking at the sign of dd.

Complete the square

Dividing by aa and rearranging, az2+2bz+c=0az^2 + 2bz + c = 0 is equivalent to (z+b/a)2=d(z + b/a)^2 = d, where d=(b2−ac)/a2d = (b^2 - ac)/a^2. Put w=z+b/aw = z + b/a; we need all complex ww with w2=dw^2 = d.

Two square roots at most

If w02=dw_0^2 = d then w2−d=w2−w02=(w−w0)(w+w0)w^2 - d = w^2 - w_0^2 = (w - w_0)(w + w_0). By the factor theorem of the last lesson this is 00 only if w=w0w = w_0 or w=−w0w = -w_0. So once we have one square root of dd, the only ones are ±w0\pm w_0.

Find one

If d≥0d \ge 0 take w0=dw_0 = \sqrt d (real). If d<0d < 0 take w0=i−dw_0 = i\sqrt{-d}: then w02=i2(−d)=dw_0^2 = i^2(-d) = d.

Read off the roots

z=−b/a±w0z = -b/a \pm w_0. For d>0d > 0, two real roots; for d=0d = 0, the single root −b/a-b/a; for d<0d < 0, the conjugate pair −b/a±iac−b2/a-b/a \pm i\sqrt{ac - b^2}/a, using −d=ac−b2/∣a∣\sqrt{-d} = \sqrt{ac - b^2}/|a| (the ±\pm absorbs the sign of aa).

Proof At most nn roots
Strategy

Show that every root α\alpha splits off a factor z−αz - \alpha, then use the fact that a product of complex numbers vanishes only when a factor does.

zk−αkz^k - \alpha^k is divisible by z−αz - \alpha

zk−αk=(z−α)(zk−1+zk−2α+⋯+αk−1)z^k - \alpha^k = (z - \alpha)(z^{k-1} + z^{k-2}\alpha + \dots + \alpha^{k-1}); multiply out to check. Only addition and multiplication are used, so it holds for complex numbers.

Remainder theorem

If f(z)=∑kakzkf(z) = \sum_k a_k z^k, then f(z)−f(α)=∑kak(zk−αk)f(z) - f(\alpha) = \sum_k a_k (z^k - \alpha^k), and every term is divisible by z−αz - \alpha. So f(z)=(z−α)q(z)+f(α)f(z) = (z - \alpha)q(z) + f(\alpha) with qq a polynomial of degree n−1n - 1 and the same leading coefficient. This is (1), and (2) follows when f(α)=0f(\alpha) = 0.

Peel off all the roots

If α2≠α1\alpha_2 \ne \alpha_1 is another root, then 0=f(α2)=(α2−α1) q(α2)0 = f(\alpha_2) = (\alpha_2 - \alpha_1)\,q(\alpha_2), so q(α2)=0q(\alpha_2) = 0 by the factor theorem of §40, and (2) applied to qq splits off z−α2z - \alpha_2. (A repeated root is one that is still a root of the quotient, and is split off again.) After nn steps the quotient has degree 00, and it must be the leading coefficient AA. This gives (3).

No further roots

Suppose β\beta is a root distinct from α1,…,αn\alpha_1, \dots, \alpha_n. Then 0=f(β)=A(β−α1)⋯(β−αn)0 = f(\beta) = A(\beta - \alpha_1)\cdots(\beta - \alpha_n), a product of nonzero numbers. By the factor theorem (§40) such a product is not 00. Contradiction.

The factor theorem is doing real work here. In a number system with zero divisors this argument breaks down, and polynomials can indeed have too many roots there. That is why Hardy proved it first.

Worked examples and exercises

Exercise A first complex quadratic ●○○ Hardy: §43

Solve z2−4z+13=0z^2 - 4z + 13 = 0, and check that the sum and product of the roots are 44 and 1313.

Hint
Here 2b=−42b = -4, so b=−2b = -2 and b2−c=4−13=−9b^2 - c = 4 - 13 = -9.

Solution

(z−2)2=4−13=−9(z - 2)^2 = 4 - 13 = -9, so z−2=±3iz - 2 = \pm 3i and z=2±3iz = 2 \pm 3i. Sum: (2+3i)+(2−3i)=4(2 + 3i) + (2 - 3i) = 4. Product: (2+3i)(2−3i)=4+9=13(2 + 3i)(2 - 3i) = 4 + 9 = 13. Both agree with −(−4)-(-4) and 1313.

Exercise ●○○ Hardy: Examples XXI, 4

If the sum and the product of two complex numbers are both real, show that the two numbers are either both real or conjugate.

Hint
Two numbers with sum ss and product pp are the roots of t2−st+p=0t^2 - st + p = 0.

Solution

Let the numbers be z,wz, w with z+w=sz + w = s and zw=pzw = p real. Then (t−z)(t−w)=t2−st+p(t - z)(t - w) = t^2 - st + p, so zz and ww are the two roots of a quadratic with real coefficients (by the factorisation, it has no others). By the theorem on the real quadratic, they are either real (if s2≥4ps^2 \ge 4p) or a conjugate pair (if s2<4ps^2 < 4p).

Exercise A linear equation with complex coefficients ●○○ Hardy: Examples XXI, 13

Let α=a+Ai≠0\alpha = a + Ai \ne 0 and β=b+Bi\beta = b + Bi, with a,A,b,Ba, A, b, B real. Show that αz+β=0\alpha z + \beta = 0 has a real root if and only if aB−bA=0aB - bA = 0.

Hint
Put z=xz = x real and separate real and imaginary parts.

Solution

The only root is z=−β/αz = -\beta/\alpha. It is real exactly when there is a real xx with (a+Ai)x+b+Bi=0(a + Ai)x + b + Bi = 0, that is, ax+b=0ax + b = 0 and Ax+B=0Ax + B = 0. If a≠0a \ne 0 the first gives x=−b/ax = -b/a, and the second then holds iff −Ab/a+B=0-Ab/a + B = 0, i.e. aB−bA=0aB - bA = 0. If a=0a = 0 then A≠0A \ne 0, the second gives x=−B/Ax = -B/A, and the first (b=0b = 0) holds iff aB−bA=−bA=0aB - bA = -bA = 0. Either way the condition is aB−bA=0aB - bA = 0.

Exercise A quadratic with complex coefficients: when is a root real? ●●○ Hardy: Examples XXI, 14

Consider z2+2(b+Bi)z+(c+Ci)=0z^2 + 2(b + Bi)z + (c + Ci) = 0 with b,B,c,Cb, B, c, C real. Show that if it has a real root then C2−4bBC+4cB2=0C^2 - 4bBC + 4cB^2 = 0. Discuss the case B=0B = 0.

Hint
For real xx, the equation splits into x2+2bx+c=0x^2 + 2bx + c = 0 and 2Bx+C=02Bx + C = 0.

Solution

Let xx be a real root. The imaginary part gives 2Bx+C=02Bx + C = 0 and the real part x2+2bx+c=0x^2 + 2bx + c = 0.

If B≠0B \ne 0 then x=−C/(2B)x = -C/(2B), and substituting, C24B2−bCB+c=0\dfrac{C^2}{4B^2} - \dfrac{bC}{B} + c = 0. Multiplying by 4B24B^2 gives C2−4bBC+4cB2=0C^2 - 4bBC + 4cB^2 = 0. Conversely, if this holds, x=−C/(2B)x = -C/(2B) satisfies both equations, so it is a real root.

If B=0B = 0 the second equation forces C=0C = 0, which is what the condition says when B=0B = 0. But then the equation has real coefficients, and it has a real root only if also b2≥cb^2 \ge c. So for B=0B = 0 the condition is necessary but not sufficient.

Exercise When are the roots conjugate? ●●○ Hardy: Examples XXI, 14

Show that the equation of the last exercise can have a pair of conjugate non-real roots only if B=C=0B = C = 0 and b2<cb^2 < c.

Hint
Use the relations between roots and coefficients, which hold for complex numbers too.

Solution

Suppose the roots are p+qip + qi and p−qip - qi with q≠0q \ne 0. Their sum 2p2p equals −2(b+Bi)-2(b + Bi), so B=0B = 0. Their product p2+q2p^2 + q^2 equals c+Cic + Ci, so C=0C = 0. Now the equation is z2+2bz+c=0z^2 + 2bz + c = 0 with real coefficients, and its roots are non-real exactly when b2<cb^2 < c. Conversely, if B=C=0B = C = 0 and b2<cb^2 < c the roots are −b±ic−b2-b \pm i\sqrt{c - b^2}, a conjugate pair. So conjugate roots are a privilege of real equations.

Check yourself

Check yourself Enter a number

The roots of z2+2z+5=0z^2 + 2z + 5 = 0 are p±qip \pm qi with q>0q > 0. What is qq?

Why

(z+1)2=1−5=−4(z + 1)^2 = 1 - 5 = -4, so z=−1±2iz = -1 \pm 2i and q=2q = 2. In Hardy’s notation b=1b = 1, c=5c = 5, and q=c−b2q = \sqrt{c - b^2}.

Check yourself True or false?

If b2<acb^2 < ac, the equation az2+2bz+c=0az^2 + 2bz + c = 0 has no roots.

Why

False: it has no real roots. It has two complex roots, conjugate to each other. “No real roots” and “no roots” were the same statement only before complex numbers were admitted.

Check yourself True or false?

The two roots of any quadratic equation, if not real, are conjugate.

Why

False; that needs real coefficients. For instance z2−(1+i)z+i=(z−1)(z−i)z^2 - (1 + i)z + i = (z - 1)(z - i) has the roots 11 and ii, and z2+2iz−2=0z^2 + 2iz - 2 = 0 has the roots −i±1-i \pm 1, which are not conjugate. The last exercise shows that conjugate non-real roots force the coefficients to be real.

Check yourself Choose one

Which fact is the key to proving that a cubic has at most three roots?

Why

After factorising f(z)=A(z−α1)(z−α2)(z−α3)f(z) = A(z - \alpha_1)(z - \alpha_2)(z - \alpha_3), a fourth root β\beta would make a product of three nonzero numbers vanish, which the factor theorem forbids. The fundamental theorem (third option) gives at least nn roots, which is the opposite inequality.

Hardy’s language

A real number is not a number in the same sense as a rational number, and a complex number is not a number in the same sense as a real number.

— G. H. Hardy, §43

Summary

Summary
  • Completing the square solves every real quadratic in the complex numbers; when b2<acb^2 < ac the roots are the conjugate pair (−b±iac−b2)/a(-b \pm i\sqrt{ac - b^2})/a.
  • As the discriminant changes sign, the two real roots meet and leave the real axis together, symmetric about it, keeping their sum and product.
  • Remainder theorem, factor theorem and the absence of zero divisors give: degree nn means at most nn roots.
  • Every polynomial equation has a complex root (Appendix II), so complex numbers are enough for all of algebra.
  • Identities proved from the rules of arithmetic alone, such as α+β=−2b/a\alpha + \beta = -2b/a, αβ=c/a\alpha\beta = c/a, hold for complex numbers.