Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

A polynomial of degree nn

anxn++a1x1+a0=0a_n x^n + \cdots + a_1 x_1 + a_0 = 0

has nn roots, which may be real or complex. Real roots may be distinct or repeated. Complex roots always come in conjugate pairs, a±bia \pm bi, where a is called the real part, ±b\pm b is called the imaginary part, and i=1i = \sqrt{-1} is the imaginary unit.

Quadratic polynomials

Quadratic polynomials can have three types of roots:

Graphically, two real roots occur as two intersections of a parabola with the y-axis. For example, the roots of x21=0x^2 - 1 = 0 occur at x=±1x = \pm 1:

Two Real Solutions

One repeated root occurs as a single point of a parabola (its minimum or maximum) touching the y-axis. For example, the root of (x1)2=0(x-1)^2 = 0 occurs at x=1x = 1:

One Duplicate Solution

Complex roots do not appear as intersections on a graph. For example, the roots of x2+1=0x^2 + 1 = 0 are x=±ix = \pm i:

Complex Solution

There are several strategies that can be used to find roots of quadratic polynomials:

Example: Box optimization

An open-top box will be made from an 8.5" x 11" piece of paper by cutting out a square from each corner and folding the flaps. What size square should be cut to make the biggest box?


The volume of the box that will be obtained by cutting a square of edge length x is:

V(x)=(8.52x)(112x)x=4x339x2+93.5xV(x) = (8.5 - 2x)(11-2x)x = 4x^3 - 39x^2 + 93.5x

The volume will be at an extremum with respect to x if V(x)=0V'(x) = 0:

V(x)=12x278x+93.5=0V'(x) = 12x^2 - 78x + 93.5 = 0

The roots of this quadratic polynomial are:

x=78±(78)241293.5212=1.594.91\begin{align} x &= \frac{78 \pm \sqrt{(-78)^2 - 4 \cdot 12 \cdot -93.5}}{2 \cdot 12} \\ &= 1.59\, 4.91 \end{align}

Only the first root, 1.59", is physical because there is not enough material to remove 4.91" from two corners!

Example: Complex roots

Find the roots of

x210x+34=0x^2 - 10x + 34 = 0

I will use the technique of completing the square:

x210x=34x210x+25=34+25(x5)2=9x5=±9x=5±31x=5±3i\begin{align} x^2 - 10x &= -34 \\ x^2 - 10x + 25 &= -34 + 25 \\ (x - 5)^2 &= -9 \\ x - 5 &= \pm \sqrt{-9} \\ x &= 5 \pm 3\sqrt{-1} \\ x &= 5 \pm 3i \end{align}

Cubic (and higher) polynomials

General formulas for roots of cubic and quartic polynomials are known but complicated. No such formula exists for higher-order polynomials. In these cases, numerical methods are needed!

Skill builder problems

Solve all roots to 3 significant figures.

Solution to Exercise 1
x2+2x+1=0(x+1)2=0x=1\begin{align} x^2 + 2x + 1 &= 0 \\ (x + 1)^2 &= 0 \\ x &= -1 \end{align}
Solution to Exercise 2
x28x=5x28x+16=5+16(x4)2=11x=4±11x0.683,7.32\begin{align} x^2 - 8x &= -5 \\ x^2 - 8x + 16 &= -5 + 16 \\ (x - 4)^2 &= 11 \\ x &= 4 \pm \sqrt{11} \\ x &\approx 0.683,\, 7.32 \end{align}
Solution to Exercise 3
x=7±(7)2421222x=7±49964x=7±474x=74±474ix1.75±1.71i\begin{align} x &= \frac{7 \pm \sqrt{(-7)^2 - 4 \cdot 2 \cdot 12}}{2 \cdot 2} \\ x &= \frac{7 \pm \sqrt{49 - 96}}{4} \\ x &= \frac{7 \pm \sqrt{-47}}{4} \\ x &= \frac{7}{4} \pm \frac{\sqrt{47}}{4}i \\ x &\approx 1.75 \pm 1.71i \end{align}