Skip to content
Solve Quadratic Equations Using the Quadratic Formula

Solve Quadratic Equations Using the Quadratic Formula

By the end of this section, you will be able to: solve quadratic equations using the Quadratic Formula; use the discriminant to predict the number and type of solutions of a quadratic equation; and identify the most appropriate method to use to solve a quadratic equation.

Solve quadratic equations using the Quadratic Formula

When we solved quadratic equations in the last section by completing the square, we took the same steps every time. By the end of the exercise set, you may have been wondering “isn’t there an easier way to do this?” The answer is “yes.” Mathematicians look for patterns when they do things over and over in order to make their work easier. In this section we will derive and use a formula to find the solution of a quadratic equation.

We have already seen how to solve a formula for a specific variable “in general,” so that we would do the algebraic steps only once, and then use the new formula to find the value of the specific variable. Now we will go through the steps of completing the square using the general form of a quadratic equation to solve a quadratic equation for xx.

We start with the standard form of a quadratic equation and solve it for xx by completing the square.

ax2+bx+c=0,a0Isolate the variable terms on one side.ax2+bx=cDivide by a.ax2a+bax=caSimplify.x2+bax=caAdd (12ba)2=b24a2 to both sides.x2+bax+b24a2=ca+b24a2Factor the perfect square.(x+b2a)2=ca+b24a2Write equivalent fractions.(x+b2a)2=b24a24ac4a2Combine to one fraction.(x+b2a)2=b24ac4a2Use the Square Root Property.x+b2a=±b24ac4a2Simplify the radical.x+b2a=±b24ac2aAdd b2a to both sides.x=b2a±b24ac2aCombine the terms on the right side.x=b±b24ac2a \begin{array}{lrcl} & ax^2+bx+c &=& 0,\quad a\ne0 \\[4pt] \text{Isolate the variable terms on one side.} & ax^2+bx &=& -c \\[4pt] \text{Divide by }a. & \tfrac{ax^2}{a}+\tfrac{b}{a}x &=& -\tfrac{c}{a} \\[10pt] \text{Simplify.} & x^2+\tfrac{b}{a}x &=& -\tfrac{c}{a} \\[10pt] \text{Add }\left(\tfrac{1}{2}\cdot\tfrac{b}{a}\right)^2=\tfrac{b^2}{4a^2}\text{ to both sides.} & x^2+\tfrac{b}{a}x+\tfrac{b^2}{4a^2} &=& -\tfrac{c}{a}+\tfrac{b^2}{4a^2} \\[10pt] \text{Factor the perfect square.} & \left(x+\tfrac{b}{2a}\right)^2 &=& -\tfrac{c}{a}+\tfrac{b^2}{4a^2} \\[10pt] \text{Write equivalent fractions.} & \left(x+\tfrac{b}{2a}\right)^2 &=& \tfrac{b^2}{4a^2}-\tfrac{4ac}{4a^2} \\[10pt] \text{Combine to one fraction.} & \left(x+\tfrac{b}{2a}\right)^2 &=& \tfrac{b^2-4ac}{4a^2} \\[10pt] \text{Use the Square Root Property.} & x+\tfrac{b}{2a} &=& \pm\sqrt{\tfrac{b^2-4ac}{4a^2}} \\[10pt] \text{Simplify the radical.} & x+\tfrac{b}{2a} &=& \pm\tfrac{\sqrt{b^2-4ac}}{2a} \\[10pt] \text{Add }-\tfrac{b}{2a}\text{ to both sides.} & x &=& -\tfrac{b}{2a}\pm\tfrac{\sqrt{b^2-4ac}}{2a} \\[10pt] \text{Combine the terms on the right side.} & x &=& \tfrac{-b\pm\sqrt{b^2-4ac}}{2a} \end{array}

Quadratic Formula. The solutions to a quadratic equation of the form ax2+bx+c=0ax^2+bx+c=0, where a0a\ne0, are given by the formula

x=b±b24ac2a. x=\tfrac{-b\pm\sqrt{b^2-4ac}}{2a}.

To use the Quadratic Formula, we substitute the values of aa, bb, and cc from the standard form into the expression on the right side of the formula. Then we simplify the expression. The result is the pair of solutions to the quadratic equation.

Notice the formula is an equation. Make sure you use both sides of the equation.

Example. Solve by using the Quadratic Formula:

2x2+9x5=0. 2x^2+9x-5=0.

The equation is in standard form, so a=2a=2, b=9b=9, and c=5c=-5. Substitute these values in the Quadratic Formula and simplify:

Write the Quadratic Formula.x=b±b24ac2aSubstitute.x=9±9242(5)22Simplify.x=9±1214=9±114Write the two solutions.x=9+114,x=9114Simplify.x=12,x=5 \begin{array}{lrcl} \text{Write the Quadratic Formula.} & x &=& \tfrac{-b\pm\sqrt{b^2-4ac}}{2a} \\[10pt] \text{Substitute.} & x &=& \tfrac{-9\pm\sqrt{9^2-4\cdot2\cdot(-5)}}{2\cdot2} \\[10pt] \text{Simplify.} & x &=& \tfrac{-9\pm\sqrt{121}}{4} \\[10pt] &&=& \tfrac{-9\pm11}{4} \\[10pt] \text{Write the two solutions.} & x &=& \tfrac{-9+11}{4},\quad x=\tfrac{-9-11}{4} \\[10pt] \text{Simplify.} & x &=& \tfrac{1}{2},\quad x=-5 \end{array}

Check the solutions in the original equation:

2(12)2+9(12)5=12+925=0 2(5)2+9(5)5=50455=0  \begin{array}{rcl} 2\left(\tfrac{1}{2}\right)^2+9\left(\tfrac{1}{2}\right)-5 &=& \tfrac{1}{2}+\tfrac{9}{2}-5=0\ \checkmark \\[10pt] 2(-5)^2+9(-5)-5 &=& 50-45-5=0\ \checkmark \end{array}

Solve 3y25y+2=03y^2-5y+2=0 by using the Quadratic Formula. Enter both solutions separated by a comma.

Solve 4z2+2z6=04z^2+2z-6=0 by using the Quadratic Formula. Enter both solutions separated by a comma.

Solve a quadratic equation using the Quadratic Formula.

  1. Write the quadratic equation in standard form, ax2+bx+c=0ax^2+bx+c=0. Identify the values of aa, bb, and cc.
  2. Write the Quadratic Formula. Then substitute in the values of aa, bb, and cc.
  3. Simplify.
  4. Check the solutions.

If you say the formula as you write it in each problem, you’ll have it memorized in no time! And remember, the Quadratic Formula is an EQUATION. Be sure you start with “x=x=.”

Example. Solve by using the Quadratic Formula:

x26x=5. x^2-6x=-5.

Write the equation in standard form by adding 55 to each side. Then x26x+5=0x^2-6x+5=0, so a=1a=1, b=6b=-6, and c=5c=5.

Write the Quadratic Formula.x=b±b24ac2aSubstitute.x=(6)±(6)241521Simplify.x=6±162=6±42Rewrite to show two solutions.x=6+42,x=642Simplify.x=5,x=1 \begin{array}{lrcl} \text{Write the Quadratic Formula.} & x &=& \tfrac{-b\pm\sqrt{b^2-4ac}}{2a} \\[10pt] \text{Substitute.} & x &=& \tfrac{-(-6)\pm\sqrt{(-6)^2-4\cdot1\cdot5}}{2\cdot1} \\[10pt] \text{Simplify.} & x &=& \tfrac{6\pm\sqrt{16}}{2} \\[10pt] &&=& \tfrac{6\pm4}{2} \\[10pt] \text{Rewrite to show two solutions.} & x &=& \tfrac{6+4}{2},\quad x=\tfrac{6-4}{2} \\[10pt] \text{Simplify.} & x &=& 5,\quad x=1 \end{array}

Both values make x26x+5=0x^2-6x+5=0 a true equation.

Solve a22a=15a^2-2a=15 by using the Quadratic Formula. Enter both solutions separated by a comma.

Solve b2+24=10bb^2+24=-10b by using the Quadratic Formula. Enter both solutions separated by a comma.

When we solved quadratic equations by using the Square Root Property, we sometimes got answers that had radicals. That can happen, too, when using the Quadratic Formula. If we get a radical as a solution, the final answer must have the radical in its simplified form.

Example. Solve by using the Quadratic Formula:

2x2+10x+11=0. 2x^2+10x+11=0.

This equation is in standard form, with a=2a=2, b=10b=10, and c=11c=11.

Substitute in the Quadratic Formula.x=10±102421122Simplify.x=10±124Simplify the radical.x=10±234Factor the numerator.x=2(5±3)4Remove common factors.x=5±32 \begin{array}{lrcl} \text{Substitute in the Quadratic Formula.} & x &=& \tfrac{-10\pm\sqrt{10^2-4\cdot2\cdot11}}{2\cdot2} \\[10pt] \text{Simplify.} & x &=& \tfrac{-10\pm\sqrt{12}}{4} \\[10pt] \text{Simplify the radical.} & x &=& \tfrac{-10\pm2\sqrt3}{4} \\[10pt] \text{Factor the numerator.} & x &=& \tfrac{2(-5\pm\sqrt3)}{4} \\[10pt] \text{Remove common factors.} & x &=& \tfrac{-5\pm\sqrt3}{2} \end{array}

Thus

x=5+32,x=532. x=\tfrac{-5+\sqrt3}{2},\qquad x=\tfrac{-5-\sqrt3}{2}.

Check: We leave the check for you!

Solve 3m2+12m+7=03m^2+12m+7=0 by using the Quadratic Formula. Enter both solutions separated by a comma.

Solve 5n2+4n4=05n^2+4n-4=0 by using the Quadratic Formula. Enter both solutions separated by a comma.

When we substitute aa, bb, and cc into the Quadratic Formula and the radicand is negative, the quadratic equation will have imaginary or complex solutions. We will see this in the next example.

Example. Solve by using the Quadratic Formula:

3p2+2p+9=0. 3p^2+2p+9=0.

This equation is in standard form, with a=3a=3, b=2b=2, and c=9c=9.

Substitute in the Quadratic Formula.p=2±2243923Simplify.p=2±1046Use complex numbers.p=2±104i6Simplify the radical.p=2±226i6Remove common factors.p=1±26i3 \begin{array}{lrcl} \text{Substitute in the Quadratic Formula.} & p &=& \tfrac{-2\pm\sqrt{2^2-4\cdot3\cdot9}}{2\cdot3} \\[10pt] \text{Simplify.} & p &=& \tfrac{-2\pm\sqrt{-104}}{6} \\[10pt] \text{Use complex numbers.} & p &=& \tfrac{-2\pm\sqrt{104}\,i}{6} \\[10pt] \text{Simplify the radical.} & p &=& \tfrac{-2\pm2\sqrt{26}\,i}{6} \\[10pt] \text{Remove common factors.} & p &=& \tfrac{-1\pm\sqrt{26}\,i}{3} \end{array}

In standard a+bia+bi form, the two solutions are

p=13+263i,p=13263i. p=-\tfrac{1}{3}+\tfrac{\sqrt{26}}{3}i,\qquad p=-\tfrac{1}{3}-\tfrac{\sqrt{26}}{3}i.

Solve 4a22a+8=04a^2-2a+8=0 by using the Quadratic Formula. Enter both solutions separated by a comma.

Solve 5b2+2b+4=05b^2+2b+4=0 by using the Quadratic Formula. Enter both solutions separated by a comma.

Remember, to use the Quadratic Formula, the equation must be written in standard form, ax2+bx+c=0ax^2+bx+c=0. Sometimes, we will need to do some algebra to get the equation into standard form before we can use the Quadratic Formula.

Example. Solve by using the Quadratic Formula:

x(x+6)+4=0. x(x+6)+4=0.

Distribute to get the equation in standard form, x2+6x+4=0x^2+6x+4=0. Then a=1a=1, b=6b=6, and c=4c=4.

Substitute in the Quadratic Formula.x=6±6241421Simplify.x=6±202Simplify the radical.x=6±252Remove common factors.x=3±5 \begin{array}{lrcl} \text{Substitute in the Quadratic Formula.} & x &=& \tfrac{-6\pm\sqrt{6^2-4\cdot1\cdot4}}{2\cdot1} \\[10pt] \text{Simplify.} & x &=& \tfrac{-6\pm\sqrt{20}}{2} \\[10pt] \text{Simplify the radical.} & x &=& \tfrac{-6\pm2\sqrt5}{2} \\[10pt] \text{Remove common factors.} & x &=& -3\pm\sqrt5 \end{array}

Thus x=3+5x=-3+\sqrt5 or x=35x=-3-\sqrt5. Check: We leave the check for you!

Solve x(x+2)5=0x(x+2)-5=0 by using the Quadratic Formula. Enter both solutions separated by a comma.

Solve 3y(y2)3=03y(y-2)-3=0 by using the Quadratic Formula. Enter both solutions separated by a comma.

When we solved linear equations, if an equation had too many fractions we cleared the fractions by multiplying both sides of the equation by the LCD. This gave us an equivalent equation—without fractions—to solve. We can use the same strategy with quadratic equations.

Example. Solve by using the Quadratic Formula:

12u2+23u=13. \tfrac12u^2+\tfrac23u=\tfrac13.

Our first step is to clear the fractions.

Multiply both sides by the LCD, 6.6(12u2+23u)=6(13)Multiply.3u2+4u=2Write in standard form.3u2+4u2=0Substitute in the Quadratic Formula.u=4±4243(2)23Simplify.u=4±406Simplify the radical.u=4±2106Remove common factors.u=2±103 \begin{array}{lrcl} \text{Multiply both sides by the LCD, }6. & 6\left(\tfrac12u^2+\tfrac23u\right) &=& 6\left(\tfrac13\right) \\[10pt] \text{Multiply.} & 3u^2+4u &=& 2 \\[4pt] \text{Write in standard form.} & 3u^2+4u-2 &=& 0 \\[4pt] \text{Substitute in the Quadratic Formula.} & u &=& \tfrac{-4\pm\sqrt{4^2-4\cdot3\cdot(-2)}}{2\cdot3} \\[10pt] \text{Simplify.} & u &=& \tfrac{-4\pm\sqrt{40}}{6} \\[10pt] \text{Simplify the radical.} & u &=& \tfrac{-4\pm2\sqrt{10}}{6} \\[10pt] \text{Remove common factors.} & u &=& \tfrac{-2\pm\sqrt{10}}{3} \end{array}

Thus u=2+103u=\tfrac{-2+\sqrt{10}}3 or u=2103u=\tfrac{-2-\sqrt{10}}3. Check: We leave the check for you!

Solve 14c213c=112\tfrac14c^2-\tfrac13c=\tfrac1{12} by using the Quadratic Formula. Enter both solutions separated by a comma.

Solve 19d212d=13\tfrac19d^2-\tfrac12d=-\tfrac13 by using the Quadratic Formula. Enter both solutions separated by a comma.

Think about the equation (x3)2=0(x-3)^2=0. We know from the Zero Product Property that this equation has only one solution, x=3x=3.

We will see in the next example how using the Quadratic Formula to solve an equation whose standard form is a perfect square trinomial equal to 00 gives just one solution. Notice that once the radicand is simplified it becomes 00, which leads to only one solution.

Example. Solve by using the Quadratic Formula:

4x220x=25. 4x^2-20x=-25.

Add 2525 to get the equation in standard form, 4x220x+25=04x^2-20x+25=0. Then a=4a=4, b=20b=-20, and c=25c=25.

Substitute in the Quadratic Formula.x=(20)±(20)2442524Simplify.x=20±08Simplify the radical.x=208Simplify the fraction.x=52 \begin{array}{lrcl} \text{Substitute in the Quadratic Formula.} & x &=& \tfrac{-(-20)\pm\sqrt{(-20)^2-4\cdot4\cdot25}}{2\cdot4} \\[10pt] \text{Simplify.} & x &=& \tfrac{20\pm\sqrt0}{8} \\[10pt] \text{Simplify the radical.} & x &=& \tfrac{20}{8} \\[10pt] \text{Simplify the fraction.} & x &=& \tfrac52 \end{array}

Check: We leave the check for you!

Did you recognize that 4x220x+254x^2-20x+25 is a perfect square trinomial? It is equivalent to (2x5)2(2x-5)^2. If you solve 4x220x+25=04x^2-20x+25=0 by factoring and then using the Square Root Property, do you get the same result?

Solve r2+10r+25=0r^2+10r+25=0 by using the Quadratic Formula.

Solve 25t240t=1625t^2-40t=-16 by using the Quadratic Formula.

Use the discriminant to predict the number and type of solutions of a quadratic equation

When we solved the quadratic equations in the previous examples, sometimes we got two real solutions, one real solution, and sometimes two complex solutions. Is there a way to predict the number and type of solutions to a quadratic equation without actually solving the equation?

Yes, the expression under the radical of the Quadratic Formula makes it easy for us to determine the number and type of solutions. This expression is called the discriminant.

Discriminant. In the Quadratic Formula x=b±b24ac2ax=\tfrac{-b\pm\sqrt{b^2-4ac}}{2a}, the quantity b24acb^2-4ac is called the discriminant.

Let’s look at the discriminant of the equations in some of the examples and the number and type of solutions to those quadratic equations.

Quadratic equation (in standard form)Discriminant b24acb^2-4acValue of the discriminantNumber and type of solutions
2x2+9x5=02x^2+9x-5=09242(5)=1219^2-4\cdot2(-5)=121++2 real
4x220x+25=04x^2-20x+25=0(20)24425=0(-20)^2-4\cdot4\cdot25=0001 real
3p2+2p+9=03p^2+2p+9=022439=1042^2-4\cdot3\cdot9=-104-2 complex

Using the discriminant, b24acb^2-4ac, to determine the number and type of solutions of a quadratic equation. For a quadratic equation of the form ax2+bx+c=0ax^2+bx+c=0, a0a\ne0:

  • If b24ac>0b^2-4ac>0, the equation has 2 real solutions.
  • If b24ac=0b^2-4ac=0, the equation has 1 real solution.
  • If b24ac<0b^2-4ac<0, the equation has 2 complex solutions.

Example. Determine the number of solutions to each quadratic equation: (a) 3x2+7x9=03x^2+7x-9=0, (b) 5n2+n+4=05n^2+n+4=0, and (c) 9y26y+1=09y^2-6y+1=0.

To determine the number of solutions of each quadratic equation, we will look at its discriminant.

For (a), a=3a=3, b=7b=7, and c=9c=-9, so b24ac=7243(9)=49+108=157b^2-4ac=7^2-4\cdot3(-9)=49+108=157. Since the discriminant is positive, there are 2 real solutions to the equation.

For (b), a=5a=5, b=1b=1, and c=4c=4, so b24ac=12454=180=79b^2-4ac=1^2-4\cdot5\cdot4=1-80=-79. Since the discriminant is negative, there are 2 complex solutions to the equation.

For (c), a=9a=9, b=6b=-6, and c=1c=1, so b24ac=(6)2491=3636=0b^2-4ac=(-6)^2-4\cdot9\cdot1=36-36=0. Since the discriminant is 00, there is 1 real solution to the equation.

Determine the number and type of solutions to 8m23m+6=08m^2-3m+6=0.

Determine the number and type of solutions to 5z2+6z2=05z^2+6z-2=0.

Determine the number and type of solutions to 9w2+24w+16=09w^2+24w+16=0.

Identify the most appropriate method to use to solve a quadratic equation

We summarize the four methods that we have used to solve quadratic equations below.

Methods for solving quadratic equations

  1. Factoring
  2. Square Root Property
  3. Completing the Square
  4. Quadratic Formula

Given that we have four methods to use to solve a quadratic equation, how do you decide which one to use? Factoring is often the quickest method and so we try it first. If the equation is ax2=kax^2=k or a(xh)2=ka(x-h)^2=k, we use the Square Root Property. For any other equation, it is probably best to use the Quadratic Formula. Remember, you can solve any quadratic equation by using the Quadratic Formula, but that is not always the easiest method.

What about the method of Completing the Square? Most people find that method cumbersome and prefer not to use it. We needed to include it in the list of methods because we completed the square in general to derive the Quadratic Formula. You will also use the process of Completing the Square in other areas of algebra.

Identify the most appropriate method to solve a quadratic equation.

  1. Try Factoring first. If the quadratic factors easily, this method is very quick.
  2. Try the Square Root Property next. If the equation fits the form ax2=kax^2=k or a(xh)2=ka(x-h)^2=k, it can easily be solved by using the Square Root Property.
  3. Use the Quadratic Formula. Any other quadratic equation is best solved by using the Quadratic Formula.

The next example uses this strategy to decide how to solve each quadratic equation.

Example. Identify the most appropriate method to use to solve each quadratic equation: (a) 5z2=175z^2=17, (b) 4x212x+9=04x^2-12x+9=0, and (c) 8u2+6u=118u^2+6u=11.

(a) Since the equation is in the form ax2=kax^2=k, the most appropriate method is to use the Square Root Property.

(b) We recognize that the left side of the equation is a perfect square trinomial, and so factoring will be the most appropriate method.

(c) Put the equation in standard form: 8u2+6u11=08u^2+6u-11=0. While our first thought may be to try factoring, thinking about all the possibilities for the trial and error method leads us to choose the Quadratic Formula as the most appropriate method.

Identify the most appropriate method to solve x2+6x+8=0x^2+6x+8=0.

Identify the most appropriate method to solve (n3)2=16(n-3)^2=16.

Identify the most appropriate method to solve 5p26p=95p^2-6p=9.

Key terms. The Quadratic Formula gives the solutions of ax2+bx+c=0ax^2+bx+c=0, a0a\ne0, as x=b±b24ac2ax=\tfrac{-b\pm\sqrt{b^2-4ac}}{2a}. The discriminant is the quantity b24acb^2-4ac under the radical in the Quadratic Formula.

Adapted from OpenStax Intermediate Algebra 2e, Section 9.3, by Lynn Marecek and Andrea Honeycutt Mathis, © OpenStax, licensed under CC BY-NC-SA 4.0. Access the original for free at openstax.org. Changes: reformatted examples and Try It exercises for interactive web use and accessibility.