This is “Quadratic Formula”, section 6.2 from the book Advanced Algebra (v. 1.0). For details on it (including licensing), click here.

For more information on the source of this book, or why it is available for free, please see the project's home page. You can browse or download additional books there. To download a .zip file containing this book to use offline, simply click here.

Has this book helped you? Consider passing it on:
Creative Commons supports free culture from music to education. Their licenses helped make this book available to you.
DonorsChoose.org helps people like you help teachers fund their classroom projects, from art supplies to books to calculators.

6.2 Quadratic Formula

Learning Objectives

  1. Solve quadratic equations using the quadratic formula.
  2. Use the determinant to determine the number and type of solutions to a quadratic equation.

The Quadratic Formula

In this section, we will develop a formula that gives the solutions to any quadratic equation in standard form. To do this, we begin with a general quadratic equation in standard form and solve for x by completing the square. Here a, b, and c are real numbers and a0:

ax2+bx+c=0Standardformofaquadraticequation.ax2+bx+ca=0aDividebothsidesbya.x2+bax+ca=0Subtractcafrombothsides.x2+bax=ca

Determine the constant that completes the square: take the coefficient of x, divide it by 2, and then square it.

(b/a2)2=(b2a)2=b24a2

Add this to both sides of the equation to complete the square and then factor.

x2+bax+b24a2=ca+b24a2(x+b2a)(x+b2a)=ca+b24a2(x+b2a)2=4ac4a2+b24a2(x+b2a)2=b24ac4a2

Solve by extracting roots.

(x+b2a)2=b24ac4a2x+b2a=±b24ac4a2x+b2a=±b24ac2ax=b2a±b24ac2ax=b±b24ac2a

This derivation gives us a formula that solves any quadratic equation in standard form. Given ax2+bx+c=0, where a, b, and c are real numbers and a0, the solutions can be calculated using the quadratic formulaThe formula x=b±b24ac2a, which gives the solutions to any quadratic equation in the standard form ax2+bx+c=0, where a, b, and c are real numbers and a0.:

x=b±b24ac2a

Example 1

Solve using the quadratic formula: 2x27x15=0.

Solution:

Begin by identifying the coefficients of each term: a, b, and c.

a=2b=7c=15

Substitute these values into the quadratic formula and then simplify.

x=b±b24ac2a=(7)±(7)24(2)(15)2(2)=7±49+1204=7±1694=7±134

Separate the “plus or minus” into two equations and simplify further.

x=7134orx=7+134x=64x=204x=32x=5

Answer: The solutions are 32 and 5.

The previous example can be solved by factoring as follows:

2x27x15=0(2x+3)(x5)=02x+3=0orx5=02x=3x=5x=32

Of course, if the quadratic expression factors, then it is a best practice to solve the equation by factoring. However, not all quadratic polynomials factor so easily. The quadratic formula provides us with a means to solve all quadratic equations.

Example 2

Solve using the quadratic formula: 3x2+6x2=0.

Solution:

Begin by identifying a, b, and c.

a=3b=6c=2

Substitute these values into the quadratic formula.

x=b±b24ac2a=(6)±(6)24(3)(2)2(3)=6±36+246=6±606

At this point we see that 60=4×15 and thus the fraction can be simplified further.

=6±606=6±4×156=6±2156=2(3±15)63=3±153

It is important to point out that there are two solutions here:

x=3153orx=3+153

We may use ± to write the two solutions in a more compact form.

Answer: The solutions are 3±153.

Sometimes terms are missing. When this is the case, use 0 as the coefficient.

Example 3

Solve using the quadratic formula: x245=0.

Solution:

This equation is equivalent to

1x2+0x45=0

And we can use the following coefficients:

a=1b=0c=45

Substitute these values into the quadratic formula.

x=b±b24ac2a=(0)±(0)24(1)(45)2(1)=0±0+1802=±1802=±36×52=±652=±35

Since the coefficient of x was 0, we could have solved this equation by extracting the roots. As an exercise, solve it using this method and verify that the results are the same.

Answer: The solutions are ±35.

Often solutions to quadratic equations are not real.

Example 4

Solve using the quadratic formula: x24x+29=0.

Solution:

Begin by identifying a, b, and c. Here

a=1b=4c=29

Substitute these values into the quadratic formula and then simplify.

x=b±b24ac2a=(4)±(4)24(1)(29)2(1)=4±161162=4±1002Negativeradicand=4±10i2Twocomplexsolutions=42±10i2=2±5i

Check these solutions by substituting them into the original equation.

Checkx=25i

Checkx=2+5i

x24x+29=0(25i)24(25i)+29=0420i+25i28+20i+29=025i2+25=025(1)+25=025+25=0

x24x+29=0(2+5i)24(2+5i)+29=04+20i+25i2820i+29=025i2+25=025(1)+25=025+25=0

Answer: The solutions are 2±5i.

The equation may not be given in standard form. The general steps for using the quadratic formula are outlined in the following example.

Example 5

Solve: (5x+1)(x1)=x(x+1).

Solution:

Step 1: Write the quadratic equation in standard form, with zero on one side of the equal sign.

(5x+1)(x1)=x(x+1)5x25x+x1=x2+x5x24x1=x2+x4x25x1=0

Step 2: Identify a, b, and c for use in the quadratic formula. Here

a=4b=5c=1

Step 3: Substitute the appropriate values into the quadratic formula and then simplify.

x=b±b24ac2a=(5)±(5)24(4)(1)2(4)=5±25+168=5±418

Answer: The solution is 5±418.

Try this! Solve: (x+3)(x5)=19

Answer: 1±i3

The Discriminant

If given a quadratic equation in standard form, ax2+bx+c=0, where a, b, and c are real numbers and a0, then the solutions can be calculated using the quadratic formula:

x=b±b24ac2a

As we have seen, the solutions can be rational, irrational, or complex. We can determine the number and type of solutions by studying the discriminantThe expression inside the radical of the quadratic formula, b24ac., the expression inside the radical, b24ac. If the value of this expression is negative, then the equation has two complex solutions. If the discriminant is positive, then the equation has two real solutions. And if the discriminant is 0, then the equation has one real solution, a double root.

Example 6

Determine the type and number of solutions: 2x2+x+3=0.

Solution:

We begin by identifying a, b, and c. Here

a=2b=1c=3

Substitute these values into the discriminant and simplify.

b24ac=(1)24(2)(3)=124=23

Since the discriminant is negative, we conclude that there are no real solutions. They are complex.

Answer: Two complex solutions.

If we use the quadratic formula in the previous example, we find that a negative radicand introduces the imaginary unit and we are left with two complex solutions.

x=b±b24ac2a=(1)±232(2)=1±i234=14±234i  Twocomplexsolutions

Note: Irrational and complex solutions of quadratic equations always appear in conjugate pairs.

Example 7

Determine the type and number of solutions: 6x25x1=0.

Solution:

In this example,

a=6b=5c=1

Substitute these values into the discriminant and simplify.

b24ac=(5)24(6)(1)=25+24=49

Since the discriminant is positive, we conclude that the equation has two real solutions. Furthermore, since the discriminant is a perfect square, we obtain two rational solutions.

Answer: Two rational solutions

Because the discriminant is a perfect square, we could solve the previous quadratic equation by factoring or by using the quadratic formula.

Solve by factoring: Solve using the quadratic formula:
6x25x1=0(6x+1)(x1)=06x+1=0orx1=06x=1x=1x=16 x=b±b24ac2a=(5)±492(6)=5±712x=5712orx=5+712x=212x=1212x=16x=1

Given the special condition where the discriminant is 0, we obtain only one solution, a double root.

Example 8

Determine the type and number of solutions: 25x220x+4=0.

Solution:

Here a=25, b=20, and c=4, and we have

b24ac=(20)24(25)(4)=400400=0

Since the discriminant is 0, we conclude that the equation has only one real solution, a double root.

Answer: One rational solution

Since 0 is a perfect square, we can solve the equation above by factoring.

25x220x+4=0(5x2)(5x2)=05x2=0or5x2=05x=25x=2x=25x=25

Here 25 is a solution that occurs twice; it is a double root.

Example 9

Determine the type and number of solutions: x22x4=0.

Solution:

Here a=1, b=2, and c=4, and we have

b24ac=(2)24(1)(4)=4+16=20

Since the discriminant is positive, we can conclude that the equation has two real solutions. Furthermore, since 20 is not a perfect square, both solutions are irrational.

Answer: Two irrational solutions.

If we use the quadratic formula in the previous example, we find that a positive radicand in the quadratic formula leads to two real solutions.

x=b±b24ac2a=(2)±202(1)Positivediscriminant=2±4×52=2±252=2(1±5)21=1±5Twoirrationalsolutions

The two real solutions are 15 and 1+5. Note that these solutions are irrational; we can approximate the values on a calculator.

151.24and1+53.24

In summary, if given any quadratic equation in standard form, ax2+bx+c=0, where a, b, and c are real numbers and a0, then we have the following:

Positive discriminant:b24ac>0TworealsolutionsZero discriminant:b24ac=0OnerealsolutionNegative discriminant:b24ac<0Twocomplexsolutions

Furthermore, if the discriminant is nonnegative and a perfect square, then the solutions to the equation are rational; otherwise they are irrational. As we will see, knowing the number and type of solutions ahead of time helps us determine which method is best for solving a quadratic equation.

Try this! Determine the number and type of solutions: 2x2=x2.

Answer: Two complex solutions.

Key Takeaways

  • We can use the quadratic formula to solve any quadratic equation in standard form.
  • To solve any quadratic equation, we first rewrite it in standard form ax2+bx+c=0, substitute the appropriate coefficients into the quadratic formula, x=b±b24ac2a, and then simplify.
  • We can determine the number and type of solutions to any quadratic equation in standard form using the discriminant, b24ac. If the value of this expression is negative, then the equation has two complex solutions. If the discriminant is positive, then the equation has two real solutions. And if the discriminant is 0, then the equation has one real solution, a double root.
  • We can further classify real solutions into rational or irrational numbers. If the discriminant is a perfect square, the roots are rational and the equation will factor. If the discriminant is not a perfect square, the roots are irrational.

Topic Exercises

    Part A: The Quadratic Formula

      Identify the coefficients, a, b and c, used in the quadratic formula. Do not solve.

    1. x2x+3=0

    2. 5x22x8=0

    3. 4x29=0

    4. x2+3x=0

    5. x2+2x7=0

    6. 2x25x+2=0

    7. px2qx1=0

    8. p2x2x+2q=0

    9. (x5)2=49

    10. (2x+1)2=2x1

      Solve by factoring and then solve using the quadratic formula. Check answers.

    1. x26x16=0

    2. x23x18=0

    3. 2x2+7x4=0

    4. 3x2+5x2=0

    5. 4y29=0

    6. 9y225=0

    7. 5t26t=0

    8. t2+6t=0

    9. x2+9x20=0

    10. 2x23x+5=0

    11. 16y224y+9=0

    12. 4y220y+25=0

      Solve by extracting the roots and then solve using the quadratic formula. Check answers.

    1. x218=0

    2. x212=0

    3. x2+12=0

    4. x2+20=0

    5. 3x2+2=0

    6. 5x2+3=0

    7. (x+2)2+9=0

    8. (x4)2+1=0

    9. (2x+1)22=0

    10. (3x+1)25=0

      Solve using the quadratic formula.

    1. x25x+1=0

    2. x27x+2=0

    3. x2+8x+5=0

    4. x24x+2=0

    5. y22y+10=0

    6. y24y+13=0

    7. 2x210x1=0

    8. 2x24x3=0

    9. 3x2x+2=0

    10. 4x23x+1=0

    11. 5u22u+1=0

    12. 8u220u+13=0

    13. y2+16y62=0

    14. y2+14y46=0

    15. 2t2+4t+3=0

    16. 4t2+8t+1=0

    17. 12y2+5y+32=0

    18. 3y2+12y13=0

    19. 2x212x+14=0

    20. 3x223x+13=0

    21. 1.2x20.5x3.2=0

    22. 0.4x2+2.3x+1.1=0

    23. 2.5x2x+3.6=0

    24. 0.8x2+2.2x6.1=0

    25. 2y2=3(y1)

    26. 3y2=5(2y1)

    27. (t+1)2=2t+7

    28. (2t1)2=734t

    29. (x+5)(x1)=2x+1

    30. (x+7)(x2)=3(x+1)

    31. 2x(x1)=1

    32. x(2x+5)=3x5

    33. 3t(t2)+4=0

    34. 5t(t1)=t4

    35. (2x+3)2=16x+4

    36. (2y+5)212(y+1)=0

      Assume p and q are nonzero integers and use the quadratic formula to solve for x.

    1. px2+x+1=0

    2. x2+px+1=0

    3. x2+xp=0

    4. x2+px+q=0

    5. p2x2+2px+1=0

    6. x22qx+q2=0

      Solve using algebra.

    1. The height in feet reached by a baseball tossed upward at a speed of 48 feet per second from the ground is given by h(t)=16t2+48t, where t represents time in seconds after the ball is tossed. At what time does the baseball reach 24 feet? (Round to the nearest tenth of a second.)

    2. The height in feet of a projectile launched upward at a speed of 32 feet per second from a height of 64 feet is given by h(t)=16t2+32t+64. At what time after launch does the projectile hit the ground? (Round to the nearest tenth of a second.)

    3. The profit in dollars of running an assembly line that produces custom uniforms each day is given by P(t)=40t2+960t4,000 where t represents the number of hours the line is in operation. Determine the number of hours the assembly line should run in order to make a profit of $1,760 per day.

    4. A manufacturing company has determined that the daily revenue R in thousands of dollars is given by R(n)=12n0.6n2 where n represents the number of pallets of product sold. Determine the number of pallets that must be sold in order to maintain revenues at 60 thousand dollars per day.

    5. The area of a rectangle is 10 square inches. If the length is 3 inches more than twice the width, then find the dimensions of the rectangle. (Round to the nearest hundredth of an inch.)

    6. The area of a triangle is 2 square meters. If the base is 2 meters less than the height, then find the base and the height. (Round to the nearest hundredth of a meter.)

    7. To safely use a ladder, the base should be placed about 14 of the ladder’s length away from the wall. If a 32-foot ladder is used safely, then how high against a building does the top of the ladder reach? (Round to the nearest tenth of a foot.)

    8. The length of a rectangle is twice its width. If the diagonal of the rectangle measures 10 centimeters, then find the dimensions of the rectangle. (Round to the nearest tenth of a centimeter.)

    9. Assuming dry road conditions and average reaction times, the safe stopping distance in feet of a certain car is given by d(x)=120x2+x where x represents the speed of the car in miles per hour. Determine the safe speed of the car if you expect to stop in 50 feet. (Round to the nearest mile per hour.)

    10. The width of a rectangular solid is 2.2 centimeters less than its length and the depth measures 10 centimeters.

      Determine the length and width if the total volume of the solid is 268.8 cubic centimeters.

    11. An executive traveled 25 miles in a car and then another 30 miles on a helicopter. If the helicopter was 10 miles per hour less than twice as fast as the car and the total trip took 1 hour, then what was the average speed of the car? (Round to the nearest mile per hour.)

    12. Joe can paint a typical room in 1.5 hours less time than James. If Joe and James can paint 2 rooms working together in an 8-hour shift, then how long does it take James to paint a single room? (Round to the nearest tenth of an hour.)

    Part B: The Discriminant

      Calculate the discriminant and use it to determine the number and type of solutions. Do not solve.

    1. x2x+1=0

    2. x2+2x+3=0

    3. x22x3=0

    4. x25x5=0

    5. 3x21x2=0

    6. 3x21x+2=0

    7. 9y2+2=0

    8. 9y22=0

    9. 2x2+3x=0

    10. 4x25x=0

    11. 12x22x+52=0

    12. 12x2x12=0

    13. x23x+4=0

    14. x25x+3=0

    15. 25t2+30t+9=0

    16. 9t212t+4=0

      Find a nonzero integer p so that the following equations have one real solution. (Hint: If the discriminant is zero, then there will be one real solution.)

    1. px24x1=0

    2. x28x+p=0

    3. x2+px+25=0

    4. x22x+p2=0

    Part C: Discussion Board

    1. When talking about a quadratic equation in standard form ax2+bx+c=0, why is it necessary to state that a0? What would happen if a is equal to zero?

    2. Research and discuss the history of the quadratic formula and solutions to quadratic equations.

    3. Solve mx2+nx+p=0 for x by completing the square.

Answers

  1. a=1; b=1; c=3

  2. a=4; b=0; c=9

  3. a=1; b=2; c=7

  4. a=p; b=q; c=1

  5. a=1; b=10; c=24

  6. −2, 8

  7. 4,12

  8. ±32
  9. 0,65

  10. 4, 5

  11. 34

  12. ±32

  13. ±2i3

  14. ±i63
  15. 2±3i

  16. 1±22
  17. 5±212
  18. 4±11

  19. 1±3i

  20. 5±332
  21. 16±236i
  22. 15±25i
  23. 8±2

  24. 2±102
  25. 5±22

  26. 18±78i
  27. x1.4 or x1.9

  28. x0.2±1.2i

  29. 3±334
  30. ±6

  31. 1±7

  32. 12±12i

  33. 1±33i
  34. 12±i
  35. x=1±14p2p
  36. x=1±1+4p2
  37. x=1p
  38. 0.6 seconds and 2.4 seconds

  39. 12 hours

  40. Length: 6.22 inches; width: 1.61 inches

  41. 31.0 feet

  42. 23 miles per hour

  43. 42 miles per hour

  1. −3; two complex solutions

  2. 16; two rational solutions

  3. 25; two rational solutions

  4. −72; two complex solutions

  5. 9; two rational solutions

  6. −1; two complex solutions

  7. 25; two rational solutions

  8. 0; one rational solution

  9. p=4

  10. p=±10

  1. Answer may vary

  2. Answer may vary