The Quadratic Formula

Learning Outcomes

  • Write a quadratic equation in standard form and identify the values of [latex]a[/latex], [latex]b[/latex], and [latex]c[/latex] in a standard form quadratic equation.
  • Use the Quadratic Formula to find all real solutions of a quadratic equation

You can solve any quadratic equation by completing the square—rewriting part of the equation as a perfect square trinomial. If you complete the square on the generic equation [latex]ax^{2}+bx+c=0[/latex] and then solve for [latex]x[/latex], you find that [latex]x=\frac{-b\pm \sqrt{{{b}^{2}}-4ac}}{2a}[/latex]. This equation is known as the Quadratic Formula.

x is a fraction with the numerator -b plus or minus the square root of b squared minus 4 times a times c and the denominator is 2 times a

Quadratic formula

 

We can derive the quadratic formula by completing the square. First, assume that the leading coefficient is positive; if it is negative, we can multiply the equation by [latex]-1[/latex] and obtain a positive a. Given [latex]a{x}^{2}+bx+c=0[/latex], [latex]a\ne 0[/latex], we will complete the square as follows:

  1. First, move the constant term to the right side of the equal sign:
    [latex]a{x}^{2}+bx=-c[/latex]
  2. As we want the leading coefficient to equal 1, divide through by a:
    [latex]{x}^{2}+\frac{b}{a}x=-\frac{c}{a}[/latex]
  3. Then, find [latex]\frac{1}{2}[/latex] of the middle term, and add [latex]{\left(\frac{1}{2}\cdot\frac{b}{a}\right)}^{2}=\frac{{b}^{2}}{4{a}^{2}}[/latex] to both sides of the equal sign:
    [latex]{x}^{2}+\frac{b}{a}x+\frac{{b}^{2}}{4{a}^{2}}=\frac{{b}^{2}}{4{a}^{2}}-\frac{c}{a}[/latex]
  4. Next, write the left side as a perfect square. Find the common denominator of the right side and write it as a single fraction:
    [latex]{\left(x+\frac{b}{2a}\right)}^{2}=\frac{{b}^{2}-4ac}{4{a}^{2}}[/latex]
  5. Now, use the square root property, which gives
    [latex]\begin{array}{l}x+\frac{b}{2a}=\pm \sqrt{\frac{{b}^{2}-4ac}{4{a}^{2}}}\hfill \\ x+\frac{b}{2a}=\frac{\pm \sqrt{{b}^{2}-4ac}}{2a}\hfill \end{array}[/latex]
  6. Finally, add [latex]-\frac{b}{2a}[/latex] to both sides of the equation and combine the terms on the right side. Thus,
    [latex]x=\frac{-b\pm \sqrt{{b}^{2}-4ac}}{2a}[/latex]

This formula is very helpful for solving quadratic equations that are difficult or impossible to factor, and using it can be faster than completing the square. The Quadratic Formula can be used to solve any quadratic equation of the form [latex]ax^{2}+bx+c=0[/latex].

Writing a Quadratic Equation in Standard Form

Remember that the form [latex]ax^{2}+bx+c=0[/latex] is called standard form of a quadratic equation. Before solving a quadratic equation using the Quadratic Formula, it is vital that you be sure the equation is in this form. If you do not, you might use the wrong values for a, b, or c, and then the formula will give incorrect solutions.

The following examples show how to ensure that your quadratic equation is in standard form and then correctly identify the values you will be using for a, b, and c in the Quadratic Formula.

Example

Rewrite the equation [latex]3x+2x^{2}+4=5[/latex] in standard form and identify a, b, and c.

Example

Rewrite the equation [latex]2(x+3)^{2}–5x=6[/latex] in standard form and identify a, b, and c.

Try It

 

Solving a Quadratic Equation using the Quadratic Formula

The Quadratic Formula will work with any quadratic equation, but only if the equation is in standard form, [latex]ax^{2}+bx+c=0[/latex]. To use it, follow these steps.

  1. Put the equation in standard form first.
  2. Identify the coefficients, a, b, and c. Be sure to include negative signs if the bx or c terms are subtracted.
  3. Carefully substitute the values noted in step [latex]2[/latex] into the equation. To avoid needless errors, use parentheses around each number input into the formula.
  4. Simplify as much as possible.
  5. Use the [latex]\pm[/latex] in front of the radical to separate the solution into two values: one in which the square root is added and one in which it is subtracted.
  6. Simplify both values to get the possible solutions.

That is a lot of steps. Let us try using the Quadratic Formula to solve a relatively simple equation first; then you will go back and solve it again using another factoring method.

Example

Use the Quadratic Formula to solve the equation [latex]x^{2}+4x=5[/latex].

 

You can check these solutions by substituting [latex]1[/latex] and [latex]−5[/latex] into the original equation.

[latex]\begin{array}{r}x=1\\x^{2}+4x=5\\\left(1\right)^{2}+4\left(1\right)=5\\1+4=5\\5=5\end{array}[/latex] [latex]\begin{array}{r}x=-5\\x^{2}+4x=5\,\,\,\,\,\\\left(-5\right)^{2}+4\left(-5\right)=5\,\,\,\,\,\\25-20=5\,\,\,\,\,\\5=5\,\,\,\,\,\end{array}[/latex]

You get two true statements, so you know that both solutions work: [latex]x=1[/latex] or [latex]-5[/latex]. You have solved the equation successfully using the Quadratic Formula!

Try it

 

Sometimes, it may be easier to solve an equation using conventional factoring methods like finding number pairs that sum to one number (in this example, [latex]4[/latex]) and that produce a specific product (in this example [latex]−5[/latex]) when multiplied. The power of the Quadratic Formula is that it can be used to solve any quadratic equation, even those where finding number combinations will not work.

In our next two video examples, we will see, first, a quadratic equation with two real, rational solutions and, second, a quadratic equation that has irrational solutions and that could not have been solved using factoring.

In the next video example, we show that the quadratic formula is useful when a quadratic equation has two irrational solutions that could not have been obtained by factoring.

Most of the quadratic equations you have looked at have two solutions, like the one above. The following example is a little different.

Example

Use the Quadratic Formula to solve the equation [latex]x^{2}-2x=6x-16[/latex].

Again, check using the original equation.

[latex]\begin{array}{r}x^{2}-2x=6x-16\,\,\,\,\,\\\left(4\right)^{2}-2\left(4\right)=6\left(4\right)-16\\16-8=24-16\,\,\,\,\,\,\\8=8\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\end{array}[/latex]

In the following video we show an example of using the quadratic formula to solve a quadratic equation that has one repeated solution.

In the next example, we will show that some quadratic equations do not have real solutions.  As we simplify with the quadratic formula, we may end up with a negative number under a square root, which, as we know, is not defined for real numbers.

Example

Use the Quadratic Formula to solve the equation [latex]x^2+x=-x-3[/latex]

 

Summary

The Quadratic Formula is a useful way to solve any quadratic equation. The Quadratic Formula, [latex] x=\frac{-b\pm \sqrt{{{b}^{2}}-4ac}}{2a}[/latex], is found by completing the square of the quadratic equation [latex] [/latex]. When you simplify using the quadratic formula and your result is a negative number under a square root, there are no real number solutions to the equation.

Contribute!

Did you have an idea for improving this content? We’d love your input.

Improve this pageLearn More