Login
📚 Modeling, Functions, and Graphs
Chapters ▾

6.2 Solving Quadratic Equations

Not every quadratic equation can be solved by factoring or by extraction of roots. For example, the expression x 2 + x 1 cannot be factored, so the equation x 2 + x 1 = 0 cannot be solved by factoring. For other equations, factoring may be difficult. In this section we learn two methods that can be used to solve any quadratic equation.

Squares of Binomials

In Nonlinear Models we used extraction of roots to solve equations of the form

a ( p x + q ) 2 + r = 0

where the left side of the equation includes the square of a binomial, or a perfect square. We can write any quadratic equation in this form by completing the square.

Consider the following squares of binomials.

Square of binomial ( x + p ) 2 p 2 p p 2
1. ( x + 5 ) 2 = x 2 + 10 x + 25 5 2 ( 5 ) = 10 5 2 = 25
2. ( x 3 ) 2 = x 2 6 x + 9 3 2 ( 3 ) = 6 3 2 = 9
3. ( x 12 ) 2 = x 2 24 x + 144 12 2 ( 12 ) = 24 12 2 = 144

In each case, the square of the binomial is a quadratic trinomial,

( x + p ) 2 = x 2 + 2 p x + p 2

Note that the coefficient of the linear term, 2 p , is twice the constant in the binomial, and the constant term of the trinomial, p 2 , is its square.

What is the linear term of ( x + 6 ) 2 ?

_____

12 x

What is the linear term of ( x + 6 ) 2 ?

  1. x 2
  2. 6 x
  3. 12 x
  4. 36

We would like to reverse the process and write a quadratic expression as the square of a binomial. For example, what constant term can we add to

x 2 16 x

to produce a perfect square trinomial? Compare the expression to the formula above:

x 2 + 2 p x + p 2 = ( x + p ) 2 x 2 16 x + ? = ( x + ? ) 2

We see that

2 p = 16 ,      so      p = 1 2 ( 16 ) = 8

and

p 2 = ( 8 ) 2 = 64

We substitute these values for p 2 and p into the equation to find

x 2 16 x + 64 = ( x 8 ) 2

Notice that in the resulting trinomial, the constant term is equal to the square of one-half the coefficient of x . In other words, we can find the constant term by taking one-half the coefficient of x and then squaring the result. Adding a constant term obtained in this way is called completing the square.

Complete the square by adding an appropriate constant; write the result as the square of a binomial.

  1. x 2 18 x + _____ = ( x + _____ ) 2
  2. x 2 + 9 x + _____ = ( x + _____ ) 2

For part (a): p = 1 2 ( 18 ) = _____, p 2 = ______

For part (b): p = 1 2 ( 9 ) = _____, p 2 = ______

  1. x 2 18 x + 81 = ( x 9 ) 2
  2. x 2 + 9 x + 81 4 = ( x + 9 2 ) 2

Complete the square by adding an appropriate constant; write the result as the square of a binomial.

  1. x 2 18 x + = ( x + ) 2
    p = 1 2 ( 18 ) = ,     p 2 =
  2. x 2 + 9 x + = ( x + ) 2
    p = 1 2 ( 9 ) = ,     p 2 =
  1. x 2 18 x + 81 = ( x 9 ) 2
  2. x 2 + 9 x + 81 4 = ( x + 9 2 ) 2

Solving Quadratic Equations by Completing the Square

Now we will use completing the square to solve quadratic equations. First, we will solve equations in which the coefficient of the squared term is 1. Consider the equation

x 2 6 x 7 = 0

and follow the steps to find the solutions.

Step 1

Begin by moving the constant term to the other side of the equation, to get

x 2 6 x + = 7

Step 2

Now complete the square on the left. Because

p = 1 2 ( 6 ) = 3        and        p 2 = ( 3 ) 2 = 9

we add 9 to both sides of our equation to get

x 2 6 x + 9 = 7 + 9

Step 3

The left side of the equation is now the square of a binomial, namely ( x 3 ) 2 . We write the left side in its square form and simplify the right side, which gives us

( x 3 ) 2 = 16

(You can check that this equation is equivalent to the original one; if you expand the left side and collect like terms, you will return to the original equation.)

Step 4

We can now use extraction of roots to find the solutions. Taking square roots of both sides, we get

x 3 = 4 or x 3 = 4 Solve each equation. x = 7 or x = 1

The solutions are 7 and 1 .

We can also solve x 2 6 x 7 = 0 by factoring instead of completing the square. Of course, we get the same solutions by either method. In Example, we will solve an equation that cannot be solved by factoring.

What should we add to x 2 5 x to create a perfect square?

_____

25 4

What should we add to x 2 5 x to create a perfect square?

  1. 25
  2. 25
  3. 25 4
  4. 10
  1. Follow the steps to solve by completing the square: x 2 1 = 3 x .
    1. Write the equation with the constant on the right.
      _____ = _____
    2. Complete the square on the left:
      p = 1 2 ( 3 ) = _____, p 2 = _____
      Add p 2 to both sides.
      _____ = _____
    3. Write the left side as a perfect square; simplify the right side.
      ( _____ ) 2 = _____
    4. Solve by extracting roots.
      Solutions: x = _____
      List all the values that are solutions. Use a comma to separate different solutions.
  2. Find approximations to two decimal places for the solutions.
    Solutions: x = _____
    List all the values that are solutions. Use a comma to separate different solutions.
  3. Graph the parabola y = x 2 3 x 1 in the window

    Xmin = 4.7 Xmax = 4.7 Ymin = 5 Ymax = 5

  1. x = 3 2 ± 13 4
  2. x 0.30 or x 3.30
parabola x-squared minus 3x minus 1
  1. Follow the steps to solve by completing the square: x 2 1 = 3 x .
    1. Write the equation with the constant on the right.
    2. Complete the square on the left:
      p = 1 2 ( 3 ) = ,     p 2 =
      Add p 2 to both sides.
    3. Write the left side as a perfect square; simplify the right side.
    4. Solve by extracting roots.
  2. Find approximations to two decimal places for the solutions.
  3. Graph the parabola y = x 2 3 x 1 in the window

    Xmin = 4.7 Xmax = 4.7 Ymin = 5 Ymax = 5

  1. x = 3 2 ± 13 4
  2. x 0.30 or x 3.30
  3. parabola x-squared minus 3x minus 1

Explain how to tell whether x 2 + b x + c is the square of a binomial.

_____

Explain how to tell whether x 2 + b x + c is the square of a binomial.

The General Case

Our method for completing the square works only if the coefficient of x 2 is 1 . If we want to solve a quadratic equation whose lead coefficient is not 1 , we first divide each term of the equation by the lead coefficient.

What is the first step in solving 3 x 2 6 x = 2 ?

_____

Divide both sides by 3

What is the first step in solving 3 x 2 6 x = 2 ?

  1. Divide 6 by 2.
  2. Get zero on one side.
  3. Divide both sides by 3.
  4. Factor the left side.
  1. Follow the steps to solve by completing the square:

    4 x 2 36 x 65 = 0

    .
    1. Divide each term by 4 . Write the equation with the constant on the right.
      _____ = _____
    2. Complete the square on the left:
      p = 1 2 ( 9 ) = _____, p 2 = _____
      Add p 2 to both sides.
      _____ = _____
    3. Write the left side as a perfect square; simplify the right side.
      ( _____ ) 2 = _____
    4. Solve by extracting roots.
      Solutions: x = _____
      List all the values that are solutions. Use a comma to separate different solutions.
  2. Graph y = 4 x 2 36 x 65 in the window

    Xmin = 9.4 Xmax = 0 Ymin = 10 Ymax = 20

x = 13 2 , x = 5 2

  1. Follow the steps to solve by completing the square:

    4 x 2 36 x 65 = 0

    .
    1. Divide each term by 4 . Write the equation with the constant on the right.
    2. Complete the square on the left:
      p = 1 2 ( 9 ) = ,     p 2 =
      Add p 2 to both sides.
    3. Write the left side as a perfect square; simplify the right side.
    4. Solve by extracting roots.
  2. Graph y = 4 x 2 36 x 65 in the window

    Xmin = 9.4 Xmax = 0 Ymin = 10 Ymax = 20

x = 13 2 , x = 5 2

Here is a summary of the steps for solving quadratic equations by completing the square.

How does creating the square of a binomial help us solve a quadratic equation?

_____

How does creating the square of a binomial help us solve a quadratic equation?

Quadratic Formula

Instead of completing the square every time we solve a new quadratic equation, we can complete the square on the general quadratic equation,

a x 2 + b x + c = 0       a 0

and obtain a formula for the solutions of any quadratic equation.

Does b 2 4 a c = b 4 a c ? Why or why not?

_____

No, x + y x + y .

Does b 2 4 a c = b 4 a c ? Why or why not?

  1. No, it should be b 2 a c .
  2. Yes, we take the square root of each term.
  3. No, we cannot take the square root of a negative number.
  4. No, x + y x + y .

This formula expresses the solutions of a quadratic equation in terms of its coefficients. (The proof of the formula is considered in the Homework problems.) The symbol ± , read "plus or minus," is used to combine the two equations

x = b + b 2 4 a c 2 a         and         x = b b 2 4 a c 2 a

into a single equation.

To solve a quadratic equation using the quadratic formula, all we have to do is substitute the coefficients a , b , and c into the formula.

Use the quadratic formula to solve x 2 3 x = 1 .

Solutions: x = _____

List all the values that are solutions. Use a comma to separate different solutions.

x = 3 ± 13 2

Use the quadratic formula to solve x 2 3 x = 1 .

x = 3 ± 13 2

Note that the solutions to this equation are the same as the solutions we found in Practice 2.

Note that the solutions to this equation are the same as the solutions we found in Practice 2.

How can you decide which of the four methods for solving a quadratic equation you should use?

_____

How can you decide which of the four methods for solving a quadratic equation you should use?

Applications

We have now seen four different algebraic methods for solving quadratic equations:

  1. Factoring
  2. Extraction of roots
  3. Completing the square
  4. Quadratic formula

Factoring and extraction of roots are relatively fast and simple, but they do not work on all quadratic equations. The quadratic formula will work on any quadratic equation.

What is wrong with this statement of the quadratic formula? x = b ± b 2 4 a c 2 a

_____

b should be over 2 a .

What is wrong with this statement of the quadratic formula? x = b ± b 2 4 a c 2 a

  1. Nothing.
  2. We should simplify the radical.
  3. b should be over 2 a .
  4. It should be ± b .

In Height of a Baseball, we considered the height of a baseball, given by the equation

h = 16 t 2 + 64 t + 4

Find two times when the ball is at a height of 20 feet. Give your answers to two decimal places.

Answer: _____ sec

List all the times that are solutions. Use a comma to separate different times.

0.27 sec, 3.73 sec

In Height of a Baseball, we considered the height of a baseball, given by the equation

h = 16 t 2 + 64 t + 4

Find two times when the ball is at a height of 20 feet. Give your answers to two decimal places.

0.27 sec, 3.73 sec

Sometimes it is useful to solve a quadratic equation for one variable in terms of the others.

Solve 2 x 2 + k x + k 2 = 1 for x in terms of k .

Solutions: x = _____

Use a comma to separate different solutions.

x = k ± 8 7 k 2 4

Solve 2 x 2 + k x + k 2 = 1 for x in terms of k .

x = k ± 8 7 k 2 4

Explain in words how to evaluate the quadratic formula.

_____

Explain in words how to evaluate the quadratic formula.

Section Summary

Vocabulary

Look up the definitions of new terms in the Glossary.

  • Quadratic trinomial
  • Complete the square
  • Quadratic formula

CONCEPTS

  1. The square of the binomial ( x + p ) is a quadratic trinomial,

    ( x + p ) 2 = x 2 + 2 p x + p 2

  2. We have four methods for solving quadratic equations: extracting of roots, factoring, completing the square, and using the quadratic formula. The first two methods are faster, but they don't work on all equations. The last two methods work on any quadratic equation.

STUDY QUESTIONS

  1. Name four algebraic methods for solving a quadratic equation.
  2. Give an example of a quadratic trinomial that is the square of a binomial.
  3. What number must be added to x 2 26 x to make it the square of a binomial?
  4. After completing the square, how do we finish solving the quadratic equation?
  5. What is the first step in solving the equation 2 x 2 6 x = 5 by completing the square?

SKILLS

Practice each skill in the Homework problems listed.

  1. Solve quadratic equations by completing the square: #3–24
  2. Solve quadratic equations by using the quadratic formula: #27–36
  3. Solve problems by writing and solving quadratic equations: #37–44
  4. Solve formulas: #45–64

Homework 6.2

For Problems 1–2, complete the square and write the result as the square of a binomial.

  1. x 2 + 8 x
  2. x 2 7 x
  3. x 2 + 3 2 x
  4. x 2 4 5 x
  1. ( x + 4 ) 2
  2. ( x 7 2 ) 2
  3. ( x + 3 4 ) 2
  4. ( x 2 5 ) 2
  1. x 2 14 x
  2. x 2 + 3 x
  3. x 2 5 2 x
  4. x 2 + 2 3 x

For Problems 3-18, solve by completing the square.

x 2 2 x + 1 = 0

1

x 2 + 4 x + 4 = 0

x 2 + 9 x + 20 = 0

4 ,   5

x 2 x 20 = 0

x 2 = 3 3 x

3 2 ± 21 4 = 3 ± 21 2

x 2 = 5 5 x

2 x 2 + 4 x 3 = 0

1 ± 5 2

3 x 2 + 12 x + 2 = 0

3 x 2 + x = 4

4 3 ,   1

4 x 2 + 6 x = 3

4 x 2 3 = 2 x

1 4 ± 13 16 = 1 ± 13 4

2 x 2 5 = 3 x

3 x 2 x 4 = 0

1 , 4 3

2 x 2 x 3 = 0

5 x 2 + 8 x = 4

2 , 2 5

9 x 2 12 x 5 = 0

For Problems 19-24, solve by completing the square. Your answers will involve a , b , or c .

x 2 + 2 x + c = 0

1 ± 1 c

x 2 4 x + c = 0

x 2 + b x + 1 = 0

b 2 ± b 2 4 4 = b ± b 2 4 2

x 2 + b x 4 = 0

a x 2 + 2 x 4 = 0

1 ± 4 a + 1 a

a x 2 4 x + 9 = 0

  1. Write an expression for the area of the square in the figure.
  2. Express the area as a polynomial.
  3. Divide the square into four pieces whose areas are given by the terms of your answer to part (b).
square
  1. A = ( x + y ) 2
  2. A = x 2 + 2 x y + y 2
  3. x 2 , x y , x y , y 2
    square
  1. Write an expression for the area of the shaded region in the figure.
  2. Express the area in factored form.
  3. By making one cut in the shaded region, rearrange the pieces into a rectangle whose area is given by your answer to part (b).
shaded square

For Problems 23-36, solve using the quadratic formula. Round your answers to three decimal places.

x 2 x 1 = 0

1.618 ,   0.618

x 2 + x 1 = 0

y 2 + 2 y = 5

1.449 ,   3.449

y 2 4 y = 4

3 z 2 = 4.2 z + 1.5

1.695 ,   0.295

2 z 2 = 7.5 z 6.3

0 = x 2 5 3 x + 1 3

1.434 ,   0.232

0 = x 2 + 5 2 x 1 2

5.2 z 2 + 176 z + 1218 = 0

5.894 ,   39.740

15 z 2 18 z 2750 = 0

A car traveling at s miles per hour on a dry road surface requires approximately d feet to stop, where d is given by the function

d = f ( s ) = s 2 24 + s 2

  1. Make a table showing the stopping distance, d , for speeds of 10 , 20 , , 100 miles per hour. (Use the Table feature of your calculator.)
  2. Graph the function for d in terms of s . Use your table values to help you choose appropriate window settings.
  3. Write and solve an equation to answer the question: If a car must be able to stop in 50 feet, what is the maximum safe speed it can travel? Verify your answer on your graph.
  1. s 10 20 30 40 50 60 70 80 90 100
    d 9 27 53 87 129 180 239 307 383 467
  2. parabola
  3. s 2 24 + s 2 = 50 ;   29.16 mph

A car traveling at s miles per hour on a wet road surface requires approximately d feet to stop, where d is given by the function

d = f ( s ) = s 2 12 + s 2

  1. Make a table showing the stopping distance, d , for speeds of 10 , 20 , , 100 miles per hour. (Use the Table feature of your calculator.)
  2. Graph the function for d in terms of s . Use your table values to help you choose appropriate window settings.
  3. Insurance investigators at the scene of an accident find skid marks 100 feet long leading up to the point of impact. Write and solve an equation to discover how fast the car was traveling when it put on the brakes. Verify your answer on your graph.

A skydiver jumps out of an airplane at 11 , 000 feet. While she is in free-fall, her altitude in feet t seconds after jumping is given by the function

h = f ( t ) = 16 t 2 16 t + 11 , 000

  1. Make a table of values showing the skydiver's altitude at 5 -second intervals after she jumps from the airplane. (Use the Table feature of your calculator.)
  2. Graph the function. Use your table of values to choose appropriate window settings.
  3. If the skydiver must open her parachute at an altitude of 1000 feet, how long can she free-fall? Write and solve an equation to find the answer.
  4. If the skydiver drops a marker just before she opens her parachute, how long will it take the marker to hit the ground? (Hint: The marker continues to fall according to the equation given above.)
  5. Find points on your graph that correspond to your answers to parts (c) and (d).
  1. t 0 5 10 15 20 25
    h 11 , 000 10 , 520 9240 7160 4280 600
  2. parabola
  3. 16 t 2 16 t + 11 , 000 = 1000 ; 24.5 sec
  4. 1.2 sec

A high diver jumps from the 10 -meter springboard. His height in meters above the water t seconds after leaving the board is given by the function

h = f ( t ) = 4.9 t 2 + 8 t + 10

  1. Make a table of values showing the diver's altitude at 0.25 -second intervals after he jumps from the airplane. (Use the Table feature of your calculator.)
  2. Graph the function. Use your table of values to choose appropriate window settings.
  3. How long is it before the diver passes the board on the way down?
  4. How long is it before the diver hits the water?
  5. Find points on your graph that correspond to your answers to parts (c) and (d).

A dog trainer has 100 meters of chain link fence. She wants to enclose 250 square meters in three pens of equal size, as shown in the figure.

three adjacent pens
  1. Let l and w represent the length and width, respectively, of the entire area. Write an equation about the amount of chain link fence.
  2. Solve your equation for l in terms w .
  3. Write and solve an equation in w for the total area enclosed.
  4. Find the dimensions of each pen.
  1. 2 l + 4 w = 100
  2. l = 50 2 w
  3. w ( 50 2 w ) = 250 ;   w = 6.91 ,   18.09
  4. 12.06 m by 6.91 m, or 4.61 m by 18.09 m

An architect is planning to include a rectangular window topped by a semicircle in his plans for a new house, as shown in the figure. In order to admit enough light, the window should have an area of 120 square feet. The architect wants the rectangular portion of the window to be 2 feet wider than it is tall.

rectangle surmounted by semicircle
  1. Let x stand for the horizontal width of the window. Write expressions for the height of the rectangular portion and for the radius of the semicircular portion.
  2. Write an expression for the total area of the window.
  3. Write and solve an equation to find the width and overall height of the window.

When you look down from a height, say a tall building or a mountain peak, your line of sight is tangent to the Earth at the horizon, as shown in the figure.

tangent to earth
  1. Suppose you are standing on top of the Petronas Tower in Kuala Lumpur, 1483 feet high. How far can you see on a clear day? (You will need to use the Pythagorean theorem and the fact that the radius of the Earth is 3960 miles. Do not forget to convert the height of the Petronas Tower to miles.)
  2. How tall a building should you stand on in order to see 100 miles?
  1. 47.2 mi
  2. 1.26 mi
  1. If the radius of the Earth is 6370 kilometers, how far can you see from an airplane at an altitude of 10 , 000 meters? (Hint: See Problem 43.)
  2. b. How high would the airplane have to be in order for you to see a distance of 10 kilometers?

For Problems 45-52, use the quadratic formula to solve each equation for the indicated variable.

A = 2 w 2 + 4 l w ,     for w

w = 4 l ± 16 l 2 + 8 A 4 = 2 l ± 4 l 2 + 2 A 2

A = π r 2 + π r s ,     for r

h = 4 t 16 t 2 ,     for t

t = 4 ± 16 + 64 h 32 = 1 ± 1 + 4 h 8

P = I E R I 2 ,     for I

s = v t 1 2 a t 2 ,     for t

t = v ± v 2 2 a s a

S = n 2 + n 2 ,     for n

3 x 2 + x y + y 2 = 2 ,     for y

y = x ± 8 11 x 2 2

y 2 3 x y + x 2 = 3 ,     for x

For Problems 53-60, solve for y in terms of x . Use whichever method of solution seems easiest.

x 2 y y 2 = 0

0 ,   x 2

x 2 y 2 y = 0

( 2 y + 3 x ) 2 = 9

3 x ± 3 2

( 3 y 2 x ) 2 = 4

4 x 2 9 y 2 = 36

± 4 x 2 36 3 = ± 2 x 2 9 3

9 x 2 + 4 y 2 = 36

4 x 2 25 y 2 = 0

± 2 x 5

( 2 x 5 y ) 2 = 0

For Problems 61-66, solve the formula for the indicated variable.

V = π ( r 3 ) 2 h ,     for r

3 ± V π h

A = P ( 1 + r ) 2 ,     for r

E = 1 2 m v 2 + m g h ,     for v

± 2 ( E m g h ) m

h = 1 2 g t 2 + d l ,     for t

V = 2 ( s 2 + t 2 ) w ,     for t

± V 2 w s 2

V = π ( r 2 + R 2 ) h ,     for R

What is the sum of the two solutions of the quadratic equation a x 2 + b x + c = 0 ?

The two solutions are given by the quadratic formula.

b a

What is the product of the two solutions of the quadratic equation a x 2 + b x + c = 0 ?

Do not try to multiply the two solutions given by the quadratic formula! Think about the factored form of the equation

In Problems 69 and 70, we prove the quadratic formula.

Complete the square to find the solutions of the equation x 2 + b x + c = 0 . (Your answers will be expressions in b and c .)

b ± b 2 4 c 2

Complete the square to find the solutions of the equation a x 2 + b x + c = 0 . (Your answers will be expressions in a , b , and c .)

Modeling, Functions, and Graphs by Katherine Yoshiwara (yoshiwarabooks.org), GNU Free Documentation License 1.2 or later. Adapted for the XYZ HTML edition with the authors' permission (recorded 2026-07-04). License: GFDL-1.2-or-later.