The Quadratic Formula

Solves the ones that will not factor.

When no pair can be found

Factoring solves x² − 2x − 3 = 0 quickly: the numbers −3 and 1 multiply to −3 and add to −2, so (x − 3)(x + 1) = 0, and x = 3 or x = −1.

Now try x² + 4x + 1 = 0. The only whole-number pairs that multiply to 1 are 1 and 1, with sum 2, and −1 and −1, with sum −2. Neither adds to 4, so the left side does not factor with whole numbers. The equation still has solutions, but they are not whole numbers. The quadratic formula finds the solutions of any quadratic equation, whether it factors or not.

Reading a, b and c

First write the equation in the form ax² + bx + c = 0, with every term on one side and 0 on the other. Then a is the coefficient of x², b is the coefficient of x, and c is the constant term.

Each number keeps its sign. In x² − 2x − 3 = 0, a = 1, b = −2 and c = −3. When x² has no number in front of it, a = 1. When there is no x term, b = 0.

An equation that is not yet in this form must be rearranged first. For 3x² = 5 − 2x, add 2x to both sides and subtract 5 from both sides: 3x² + 2x − 5 = 0. Now a = 3, b = 2 and c = −5.

The formula

The solutions of ax² + bx + c = 0 are x = (−b ± √(b² − 4ac)) / 2a.

The sign ± is read "plus or minus". It stands for two calculations: one where the square root is added to −b, and one where it is subtracted. That is why the formula gives both solutions at once.

The line of the fraction runs under the whole of −b ± √(b² − 4ac). All of it is divided by 2a, not only the square root.

Using it

Solve x² − 2x − 3 = 0 with the formula. Here a = 1, b = −2 and c = −3.

Work out b² − 4ac first, on its own: (−2)² − 4 × 1 × (−3) = 4 + 12 = 16. Its square root is 4. Next, −b is −(−2) = 2, and 2a is 2. So x = (2 ± 4) / 2.

The plus gives (2 + 4) / 2 = 6 / 2 = 3, and the minus gives (2 − 4) / 2 = −2 / 2 = −1. These are 3 and −1, the same solutions that factoring gave.

valueb² − 4ac16root4−b22a2x3, −1

The working for x² − 2x − 3 = 0, one quantity at a time. The last row is x = (2 ± 4) / 2, which is 3 or −1.

The solutions on the graph

Draw the graph of y = x² − 2x − 3 by working out y for each x. The graph of a quadratic is a curve called a parabola. The solutions of x² − 2x − 3 = 0 are the values of x that make y equal to 0, and y is 0 exactly where the curve meets the x-axis. So the curve crosses the x-axis at x = −1 and x = 3.

-13

The curve y = x² − 2x − 3 crosses the x-axis at x = −1 and x = 3, the two solutions.

Solutions with a square root in them

Return to x² + 4x + 1 = 0. Here a = 1, b = 4 and c = 1, so b² − 4ac = 16 − 4 = 12, and x = (−4 ± √12) / 2.

Simplify the radical: √12 = √4 × √3 = 2√3. Then x = (−4 ± 2√3) / 2 = −2 ± √3. The two exact solutions are −2 + √3 and −2 − √3, which are about −0.27 and −3.73.

When a is not 1, 2a is not 2. For 2x² + 3x − 4 = 0, a = 2, b = 3 and c = −4, so b² − 4ac = 9 + 32 = 41 and x = (−3 ± √41) / 4. Since √41 is about 6.403, the solutions are about 0.85 and −2.35.

-3.7-0.3

The curve y = x² + 4x + 1 crosses the x-axis between whole numbers, at −2 − √3 and −2 + √3, which are about −3.7 and −0.3.

When b² − 4ac is negative

For x² + 2x + 5 = 0, b² − 4ac = 4 − 20 = −16. No real number squares to a negative number, so √(−16) is not a real number, and the equation has no real solutions. Its curve never reaches the x-axis. The value of b² − 4ac tells you how many solutions to expect before you finish the working.

The usual mistakes

Dividing only the square root by 2a. In x = (2 ± 4) / 2, the 2 and the 4 are both divided by 2, giving 3 and −1, not 2 ± 2.

Losing a sign. When b = −2, −b is +2, and b² is (−2)² = 4, not −4. When c is negative, −4ac is positive: −4 × 1 × (−3) = +12.

Using only the plus. The ± stands for two calculations, and a quadratic with b² − 4ac above zero has two solutions.

An equation from an area

In an application, the equation has to be written first. A rectangle is 2 cm longer than it is wide, and its area is 10 cm². Let the width be x cm. The length is then (x + 2) cm, and the area gives x(x + 2) = 10. Expand and subtract 10 from both sides: x² + 2x − 10 = 0.

No two whole numbers multiply to −10 and add to 2, so use the formula with a = 1, b = 2 and c = −10. b² − 4ac = 4 + 40 = 44, and √44 = 2√11, so x = (−2 ± 2√11) / 2 = −1 ± √11. That is about 2.32 or −4.32. A width cannot be negative, so the width is about 2.32 cm.

Worked example: A Frame of Constant Width Round a Picture with the Framed Area Known

Question A picture is 30 cm long and 20 cm wide. A frame of the same width all the way round is fitted to it, and the picture and the frame together cover 900 cm2. (a) Find the width of the frame, correct to 2 decimal places. (b) A thin gold line is painted along the outer edge of the frame. How long is the line, to the nearest centimeter?

  1. 1.Let the width of the frame be x cm. The frame adds x cm at both ends of each side, so the outer rectangle is (30 + 2x) cm by (20 + 2x) cm, and (20 + 2x)(30 + 2x) = 900.

    picture30 cm by 20 cm30 + 2x20 + 2xxthe picture and the frame cover 900 cm2(20 + 2x)(30 + 2x)=900
    picture30 by 20 cm30 + 2x20 + 2xxthe picture and the frame cover 900 cm2(20 + 2x)(30 + 2x)=900
    The frame adds x cm at both ends of each side, so (20 + 2x)(30 + 2x) = 900.
  2. 2.Expand: 600 + 40x + 60x + 4x2 = 900, which is 4x2 + 100x + 600 = 900. Subtract 900 from both sides: 4x2 + 100x − 300 = 0. Divide both sides by 4: x2 + 25x − 75 = 0.

    picture30 cm by 20 cm30 + 2x20 + 2xxthe picture and the frame cover 900 cm2(20 + 2x)(30 + 2x)=9004x2+ 100x + 600=900expand the brackets4x2+ 100x − 300=0subtract 900 from both sidesx2+ 25x − 75=0divide both sides by 4
    picture30 by 20 cm30 + 2x20 + 2xxthe picture and the frame cover 900 cm2(20 + 2x)(30 + 2x)=900expand the brackets4x2+ 100x + 600=900subtract 900 from both sides4x2+ 100x − 300=0divide both sides by 4x2+ 25x − 75=0
    Expand, subtract 900 from both sides, then divide both sides by 4: x2 + 25x − 75 = 0.
  3. 3.No two whole numbers have a product of −75 and a sum of 25, so use the quadratic formula x = −b ± √b2 − 4ac2a with a = 1, b = 25 and c = −75. First, b2 − 4ac = 625 + 300 = 925.

    picture30 cm by 20 cm30 + 2x20 + 2xxthe picture and the frame cover 900 cm2(20 + 2x)(30 + 2x)=9004x2+ 100x + 600=900expand the brackets4x2+ 100x − 300=0subtract 900 from both sidesx2+ 25x − 75=0divide both sides by 4a = 1, b = 25, c = −75b2− 4ac = 625 + 300 = 925
    picture30 by 20 cm30 + 2x20 + 2xxthe picture and the frame cover 900 cm2(20 + 2x)(30 + 2x)=900expand the brackets4x2+ 100x + 600=900subtract 900 from both sides4x2+ 100x − 300=0divide both sides by 4x2+ 25x − 75=0a = 1, b = 25, c = −75b2− 4ac = 625 + 300 = 925
    The equation does not factorize with whole numbers, so use the quadratic formula. Here b2 − 4ac = 625 + 300 = 925.
  4. 4.So x = −25 ± √9252, and √925 ≈ 30.414. This gives x ≈ 2.707 or x ≈ −27.707. A width cannot be negative, so the second root is rejected. (a) The frame is 2.71 cm wide, correct to 2 decimal places.

    picture30 cm by 20 cm30 + 2x20 + 2xx = 2.71 cmthe picture and the frame cover 900 cm2(20 + 2x)(30 + 2x)=9004x2+ 100x + 600=900expand the brackets4x2+ 100x − 300=0subtract 900 from both sidesx2+ 25x − 75=0divide both sides by 4x = (−25 ±√925)/2, and√925≈ 30.414x ≈ 2.707 or x ≈ −27.707x ≈ −27.707 is rejected: a width cannot be negativex ≈ 2.71 cm
    picture30 by 20 cm30 + 2x20 + 2xx = 2.71 cmthe picture and the frame cover 900 cm2(20 + 2x)(30 + 2x)=900expand the brackets4x2+ 100x + 600=900subtract 900 from both sides4x2+ 100x − 300=0divide both sides by 4x2+ 25x − 75=0x = (−25 ±√925)/2, and√925≈ 30.414x ≈ 2.707 or x ≈ −27.707x ≈ −27.707 is rejected: a width cannot be negativex ≈ 2.71 cm
    (a) x = −25 ± √9252. The negative root is rejected, so the frame is 2.71 cm wide.
  5. 5.(b) Keep the unrounded width. The outer sides are 30 + 2 × 2.707 = 35.414 cm and 20 + 2 × 2.707 = 25.414 cm, so the line is 2 × (35.414 + 25.414) = 121.656 cm long, which is 122 cm to the nearest centimeter.

    picture30 cm by 20 cm30 + 2x20 + 2xx = 2.71 cmthe picture and the frame cover 900 cm2(20 + 2x)(30 + 2x)=9004x2+ 100x + 600=900expand the brackets4x2+ 100x − 300=0subtract 900 from both sidesx2+ 25x − 75=0divide both sides by 4x ≈ 2.707, so the outer sides are 35.414 cm and 25.414 cm2 × (35.414 + 25.414) = 121.656, which is 122 cm
    picture30 by 20 cm30 + 2x20 + 2xx = 2.71 cmthe picture and the frame cover 900 cm2(20 + 2x)(30 + 2x)=900expand the brackets4x2+ 100x + 600=900subtract 900 from both sides4x2+ 100x − 300=0divide both sides by 4x2+ 25x − 75=0x ≈ 2.707, so the outer sides are 35.414 cm and 25.414 cm2 × (35.414 + 25.414) = 121.656, which is 122 cm
    (b) The outer edge is 2 × (35.414 + 25.414) = 121.656 cm, which is 122 cm to the nearest centimeter.

Answer: (a) 2.71 cm; (b) 122 cm

Common mistakes

  • Writing the outer sides as 30 + x and 20 + x. The frame runs along both ends of each side, so each side grows by 2x.
  • Setting the area of the frame alone equal to 900 cm2. The 900 cm2 is covered by the picture and the frame together, so it is the area of the whole outer rectangle.

More quadratic equations problems, worked step by step →

Practice The Quadratic Formula in the app