Skip to main content
Mathematics LibreTexts

16.5.2: The Quadratic Formula

  • Page ID
    73013
  • \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \) \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)\(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\) \(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\)\(\newcommand{\AA}{\unicode[.8,0]{x212B}}\)

    Learning Objectives
    • Write a quadratic equation in standard form and identify the values of \(\ a\), \(\ b\), and \(\ c\) in a standard form quadratic equation.
    • Use the Quadratic Formula to find all real solutions.
    • Use the Quadratic Formula to find all complex solutions.
    • Compute the discriminant and state the number and type of solutions.
    • Solve application problems requiring the use of the Quadratic Formula.

    Introduction

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

    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 \(\ a x^{2}+b x+c=0\).

    Standard Form

    The form \(\ a x^{2}+b x+c=0\) is called the standard form of a quadratic equation. Before solving a quadratic equation using the Quadratic Formula, it's vital that you be sure the equation is in this form. If you don't, you might use the wrong values for \(\ a\), \(\ b\), and \(\ c\), and then the formula will give incorrect solutions.

    Example

    Rewrite the equation \(\ 3 x+2 x^{2}+4=5\) in standard form and identify \(\ a\), \(\ b\), and \(\ c\).

    Solution

    \(\ \begin{array}{l}
    3 x+2 x^{2}+4=5 \\
    3 x+2 x^{2}+4-5=5-5
    \end{array}\)
    First, be sure that the right side of the equation is 0. In this case, all you need to do is subtract 5 from both sides.
    \(\ \begin{array}{l}
    3 x+2 x^{2}-1=0 \\
    2 x^{2}+3 x-1=0
    \end{array}\)
    Simplify, and write the terms with the exponent on the variable in descending order.

    \(\ \begin{array}{lll}
    2 x^{2} \quad + & 3 x\quad- & 1 & =0 \\
    \downarrow & \downarrow & \downarrow \\
    a x^{2} & b x & c
    \end{array}\)

    \(\ a=2, b=3, c=-1\)

    Now that the equation is in standard form, you can read the values of \(\ a\), \(\ b\), and \(\ c\) from the coefficients and constant. Note that since the constant 1 is subtracted, \(\ c\) must be negative.

    \(\ 2 x^{2}+3 x-1=0 ; a=2, b=3, c=-1\)

    Example

    Rewrite the equation \(\ 2(x+3)^{2}-5 x=6\) in standard form and identify \(\ a\), \(\ b\), and \(\ c\).

    Solution

    \(\ \begin{array}{l}
    2(x+3)^{2}-5 x=6 \\
    2(x+3)^{2}-5 x-6=6-6
    \end{array}\)
    First, be sure that the right side of the equation is 0.

    \(\ \begin{array}{l}
    2\left(x^{2}+6 x+9\right)-5 x-6=0 \\
    2 x^{2}+12 x+18-5 x-6=0 \\
    2 x^{2}+12 x-5 x+18-6=0 \\
    2 x^{2}+7 x+12=0
    \end{array}\)

    \(\ \begin{array}{lll}
    2 x^{2}\quad+ & 7 x\quad+ & 12=0 \\
    \downarrow & \downarrow& \downarrow \\
    a & b & c
    \end{array}\)

    \(\ a=2, b=7, c=12\)

    Expand the squared binomial, then simplify by combining like terms.

    Be sure to write the terms with the exponent on the variable in descending order.

    Now that the equation is in standard form, you can read the values of \(\ a\), \(\ b\), and \(\ c\) from the coefficients and constant.

    \(\ 2 x^{2}+7 x+12=0 ; a=2, b=7, c=12\)

    Exercise

    Identify the values of \(\ a\), \(\ b\), and \(\ c\) in the standard form of the equation \(\ 3 x+x^{2}=6\).

    1. \(\ a=3, b=1, c=6\)
    2. \(\ a=1, b=3, c=6\)
    3. \(\ a=1, b=3, c=-6\)
    4. \(\ a=3, b=1, c=-6\)
    Answer
    1. Incorrect. Remember that in standard form, the equation is written in the form \(\ a x^{2}+b x+c=0\). \(\ 3 x+x^{2}=6\) becomes \(\ 3 x+x^{2}-6=0\), so the standard form is \(\ x^{2}+3 x-6=0\). This means the correct answer is \(\ a=1\), \(\ b=3\), and \(\ c=-6\).
    2. Incorrect. You put the terms in the correct order, but the right side must be equal to 0. The \(\ c\) must be on the left side of the equation. \(\ 3 x+x^{2}=6\) becomes \(\ 3 x+x^{2}-6=0\), so the standard form is \(\ x^{2}+3 x-6=0\). This means the correct answer is \(\ a=1\), \(\ b=3\), and \(\ c=-6\).
    3. Correct. \(\ 3 x+x^{2}=6\) becomes \(\ 3 x+x^{2}-6=0\), so the standard form is \(\ x^{2}+3 x-6=0\). This means \(\ a=1\), \(\ b=3\), and \(\ c=-6\).
    4. Incorrect. Remember that in standard form, the equation is written in the form \(\ a x^{2}+b x+c=0\). You correctly found that \(\ 3 x+x^{2}=6\) becomes \(\ 3 x+x^{2}-6=0\). Putting the terms in order gives the standard form \(\ x^{2}+3 x-6=0\). This means the correct answer is \(\ a=1\), \(\ b=3\), and \(\ c=-6\).

    Deriving the Quadratic Formula

    Let's complete the square on the general equation and see exactly how that produces the Quadratic Formula. Recall the process of completing the square.

    • Start with an equation of the form \(\ x^{2}+b x+c=0\).
    • Rewrite the equation so that \(\ x^{2}+b x\) is isolated on one side.
    • Complete the square by adding \(\ \left(\frac{b}{x}\right)^{2}\) to both sides.
    • Rewrite the perfect square trinomial as a square of a binomial.
    • Use the Square Root Property and solve for \(\ x\).

    Can you complete the square on the general quadratic equation \(\ a x^{2}+b x+c=0\)? Try it yourself before you continue to the example below. Hint: Notice that in the general equation, the coefficient of \(\ x^{2}\) is not equal to 1. You can divide the equation by \(\ a\), which makes some of the expressions a bit messy, but if you are careful, everything will work out, and at the end, you’ll have the Quadratic Formula!

    Example

    Complete the square of \(\ a x^{2}+b x+c=0\) to arrive at the Quadratic Formula.

    Solution

    \(\ x^{2}+\frac{b}{a} x+\frac{c}{a}=0\) Divide both sides of the equation by \(\ a\), so that the coefficient of \(\ x^{2}\) is 1.
    \(\ x^{2}+\frac{b}{a} x=-\frac{c}{a}\) Rewrite so the left side is in the form \(\ x^{2}+b x\), (although in this case \(\ bx\) is actually \(\ \frac{b}{a} x\)).
    \(\ x^{2}+\frac{b}{a} x+\left(\frac{b}{2 a}\right)^{2}=-\frac{c}{a}+\left(\frac{b}{2 a}\right)^{2}\) The coefficient on \(\ x\) is \(\ \frac{b}{a}\), so the value to add to both sides is \(\ \left(\frac{b}{2 a}\right)^{2}\).
    \(\ \left(x+\frac{b}{2 a}\right)^{2}=-\frac{c}{a}+\left(\frac{b}{2 a}\right)^{2}\) Write the left side as a binomial squared.
    \(\ \left(x+\frac{b}{2 a}\right)^{2}=-\frac{c}{a}+\frac{b^{2}}{4 a^{2}}\) Evaluate \(\ \left(\frac{b}{2 a}\right)^{2}\) as \(\ \frac{b^{2}}{4 a^{2}}\).
    \(\ \left(x+\frac{b}{2 a}\right)^{2}=-\frac{4 a c}{4 a^{2}}+\frac{b^{2}}{4 a^{2}}\) Write the fractions on the right side using a common denominator.
    \(\ \left(x+\frac{b}{2 a}\right)^{2}=\frac{b^{2}-4 a c}{4 a^{2}}\) Add the fractions on the right.
    \(\ x+\frac{b}{2 a}=\pm \sqrt{\frac{b^{2}-4 a c}{4 a^{2}}}\) Use the Square Root Property. Remember that you want both the positive and negative square roots!
    \(\ x=-\frac{b}{2 a} \pm \sqrt{\frac{b^{2}-4 a c}{4 a^{2}}}\) Subtract \(\ \frac{b}{2 a}\) from both sides to isolate \(\ x\).
    \(\ x=-\frac{b}{2 a} \pm \frac{\sqrt{b^{2}-4 a c}}{2 a}\) The denominator under the radical is a perfect square, so: \(\ \sqrt{\frac{b^{2}-4 a c}{4 a^{2}}}=\frac{\sqrt{b^{2}-4 a c}}{\sqrt{4 a^{2}}}=\frac{\sqrt{b^{2}-4 a c}}{2 a}\)
    \(\ x=\frac{-b \pm \sqrt{b^{2}-4 a c}}{2 a}\) Add the fractions since they have a common denominator.

    There you have it, the Quadratic Formula.

    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, \(\ a x^{2}+b x+c=0\). To use it, follow these steps.

    • Put the equation in standard form first.
    • Identify the coefficients, \(\ a\), \(\ b\), and \(\ c\). Be careful to include negative signs if the \(\ bx\) or \(\ c\) terms are subtracted.
    • Substitute the values for the coefficients into the Quadratic Formula.
    • Simplify as much as possible.
    • Use the \(\ \pm\) 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.
    • Simplify both values to get the possible solutions.

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

    Example

    Use the Quadratic Formula to solve the equation \(\ x^{2}+4 x=5\).

    Solution

    \(\ \begin{array}{r}
    x^{2}+4 x=5 \\
    x^{2}+4 x-5=0
    \end{array}\)

    First, write the equation in standard form.

    \(\ a=1, b=4, c=-5\)

    \(\ \begin{array}{l}
    x^{2}\quad+&4 x\quad-&5=0 \\
    \downarrow&\downarrow&\downarrow\\
    a x^{2}\quad+&b x\quad+&c=0
    \end{array}\)

    \(\ \begin{array}{r}
    x=\frac{-b \pm \sqrt{b^{2}-4 a c}}{2 a} \\
    x=\frac{-4 \pm \sqrt{(4)^{2}-4(1)(-5)}}{2(1)}
    \end{array}\)

    Note that the subtraction sign means the constant \(\ c\) is negative.

    Substitute the values into the Quadratic Formula.

    \(\ x=\frac{-4 \pm \sqrt{16+20}}{2}\) Simplify, being careful to get the signs correct.
    \(\ x=\frac{-4 \pm \sqrt{36}}{2}\) Simplify some more.
    \(\ x=\frac{-4 \pm 6}{2}\) Simplify the radical: \(\ \sqrt{36}=6\).
    \(\ \begin{array}{r}
    x=\frac{-4+6}{2}=\frac{2}{2}=1 \\
    \text { or } \\
    x=\frac{-4-6}{2}=\frac{-10}{2}=-5
    \end{array}\)
    Separate and simplify to find the solutions to the quadratic equation. Note that in one, 6 is added and in the other, 6 is subtracted.

    \(\ x=1 \text { or }-5\)

    You can check these solutions by substituting 1 and -5 into the original equation. The top table shows 1 being substituted into the original equation, and the bottom table shows -5 being substituted into the original equation.

    \(\ x=1\)
    \(\ x^{2}+4 x=5\)
    \(\ (1)^{2}+4(1)=5\)
    \(\ 1+4=5\)
    \(\ 5=5\)
    \(\ x=-5\)
    \(\ x^{2}+4 x=5\)
    \(\ (-5)^{2}+4(-5)=5\)
    \(\ 25-20=5\)
    \(\ 5=5\)

    You get two true statements, so you know that both solutions work: \(\ x=1\) or \(\ -5\). You’ve solved the equation successfully using the Quadratic Formula!

    However, upon looking at \(\ x^{2}+4 x=5\), you may have thought, “I already know how to do this; I can rewrite this equation as \(\ x^{2}+4 x-5=0\), and then factor it as \(\ (x+5)(x-1)=0\), so \(\ x=-5\) or 1.” This is correct, and congratulations if you made this connection!

    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, 4) and that produce a specific product (in this example -5) 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.

    Most of the quadratic equations you've 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 \(\ x^{2}-2 x=6 x-16\).

    Solution

    \(\ \begin{array}{r}
    x^{2}-2 x=6 x-16 \\
    x^{2}-2 x-6 x+16=0 \\
    x^{2}-8 x+16=0
    \end{array}\)
    Subtract \(\ 6x\) from each side and add 16 to both sides to put the equation in standard form.
    \(\ \begin{array}{l}
    x^{2}\quad-&8 x\quad+&16=0 \\
    \downarrow&\downarrow&\downarrow \\
    a x^{2}\quad+&b x\quad+&c=0
    \end{array}\)

    Identify the coefficients \(\ a\), \(\ b\), and \(\ c\). \(\ x^{2}=1 x^{2}\), so \(\ a=1\). Since \(\ 8x\) is subtracted, \(\ b\) is negative.

    \(\ a=1, b=-8, c=16\)

    \(\ \begin{array}{c}
    x=\frac{-b \pm \sqrt{b^{2}-4 a c}}{2 a} \\
    x=\frac{-(-8) \pm \sqrt{(-8)^{2}-4(1)(16)}}{2(1)}
    \end{array}\)
    Substitute the values into the Quadratic Formula.
    \(\ x=\frac{8 \pm \sqrt{64-64}}{2}\) Simplify.
    \(\ x=\frac{8 \pm \sqrt{0}}{2}=\frac{8}{2}=4\) Since the square root of 0 is 0, and both adding and subtracting 0 give the same result, there is only one possible value.

    \(\ x=4\)

    Again, check using the original equation.

    \(\ \begin{aligned}
    x^{2}-2 x &=6 x-16 \\
    (4)^{2}-2(4) &=6(4)-16 \\
    16-8 &=24-16 \\
    8 &=8
    \end{aligned}\)

    Let's try one final example. This one also has a difference in the solution.

    Example

    Use the Quadratic Formula to solve the equation \(\ x^{2}+2 x=-5\).

    Solution

    \(\ \begin{array}{r}
    x^{2}+2 x=-5 \\
    x^{2}+2 x+5=0
    \end{array}\)
    First, write the equation in standard form.
    \(\ \begin{array}{l}
    x^{2}\quad+&2 x\quad+&5=0 \\
    \downarrow&\downarrow&\downarrow \\
    a x^{2}\quad+&b x\quad+&\ c=0
    \end{array}\)
    \(\ a=1, b=2, c=5\)
    \(\ \begin{array}{r}
    x=\frac{-b \pm \sqrt{b^{2}-4 a c}}{2 a} \\
    x=\frac{-2 \pm \sqrt{(2)^{2}-4(1)(5)}}{2(1)}
    \end{array}\)
    Substitute the values into the Quadratic Formula.
    \(\ x=\frac{-2 \pm \sqrt{4-20}}{2}\) Simplify, being careful to get the signs correct.
    \(\ x=\frac{-2 \pm \sqrt{-16}}{2}\) Simplify some more.
    \(\ x=\frac{-2 \pm 4 i}{2}\) Simplify the radical, but notice that the number under the radical symbol is negative! The square root of -16 is imaginary. \(\ \sqrt{-16}=4 i\)
    \(\ \begin{array}{r}
    x=\frac{-2+4 i}{2}=\frac{-1+2 i}{1} \cdot \frac{2}{2}=-1+2 i \\
    \text{or}\\
    x=\frac{-2-4 i}{2}=\frac{-1-2 i}{1} \cdot \frac{2}{2}=-1-2 i
    \end{array}\)
    Separate and simplify to find the solutions to the quadratic equation.

    \(\ x=-1+2 i \text { or }-1-2 i\)

    Check these solutions in the original equation in the tables below. Be careful when expanding the squares and replacing \(\ i^{2}\) with -1.

    \(\ \begin{array}{c}
    x=-1+2 i \\
    x^{2}+2 x=-5 \\
    (-1+2 i)^{2}+2(-1+2 i)=-5 \\
    1-4 i+4 i^{2}-2+4 i=-5 \\
    1-4 i+4(-1)-2+4 i=-5 \\
    1-4-2=-5 \\
    -5=-5
    \end{array}\)

    \(\ \begin{array}{c}
    x=-1-2 i \\
    x^{2}+2 x=-5 \\
    (-1-2 i)^{2}+2(-1-2 i)=-5 \\
    1+4 i+4 i^{2}-2-4 i=-5 \\
    1+4 i+4(-1)-2-4 i=-5 \\
    1-4-2=-5 \\
    -5=-5
    \end{array}\)

    Exercise

    Use the Quadratic Formula to solve the equation \(\ x^{2}-2 x-4=0\).

    1. \(\ x=2\)
    2. \(\ x=11, x=-9\)
    3. \(\ x=2+\sqrt{5}, x=2-\sqrt{5}\)
    4. \(\ x=1+\sqrt{5}, x=1-\sqrt{5}\)
    Answer
    1. Incorrect. You may have incorrectly factored the left side as \(\ (x-2)^{2}\). Since \(\ a=1\), \(\ b=-2\), and \(\ c=-4\), \(\ x=\frac{-(-2) \pm \sqrt{(-2)^{2}-4(1)(-4)}}{2(1)}=\frac{2 \pm \sqrt{4+16}}{2}=\frac{2 \pm \sqrt{20}}{2}=\frac{2 \pm 2 \sqrt{5}}{2}=\frac{2}{2} \pm \frac{2 \sqrt{5}}{2}=1 \pm \sqrt{5}\). The correct answer is \(\ x=1+\sqrt{5}\) or \(\ x=1-\sqrt{5}\).
    2. Incorrect. \(\ x=\frac{-(-2) \pm \sqrt{(-2)^{2}-4(1)(-4)}}{2(1)}=\frac{2 \pm \sqrt{4+16}}{2}=\frac{2 \pm \sqrt{20}}{2}\). If you ignore the square root, this becomes \(\ x=11\) or \(\ x=-9\), so you may have forgotten to take the square root of 20. \(\ x=\frac{2 \pm \sqrt{20}}{2}=\frac{2 \pm 2 \sqrt{5}}{2}=\frac{2}{2} \pm \frac{2 \sqrt{5}}{2}=1 \pm \sqrt{5}\), which means the correct answer is \(\ x=1+\sqrt{5}\) or \(\ x=1-\sqrt{5}\).
    3. Incorrect. Using the formula, \(\ x=\frac{-(-2) \pm \sqrt{(-2)^{2}-4(1)(-4)}}{2(1)}=\frac{2 \pm \sqrt{4+16}}{2}=\frac{2 \pm \sqrt{20}}{2}=\frac{2 \pm 2 \sqrt{5}}{2}\). If you forget that the denominator is under both terms in the numerator, you might get \(\ x=2+\sqrt{5}\) or \(\ x=2-\sqrt{5}\). However, the correct simplification is \(\ x=\frac{2 \pm 2 \sqrt{5}}{2}=\frac{2}{2} \pm \frac{2 \sqrt{5}}{2}=1 \pm \sqrt{5}\), so the answer is \(\ x=1+\sqrt{5}\) or \(\ x=1-\sqrt{5}\).
    4. Correct. Using the formula, \(\ x=\frac{-(-2) \pm \sqrt{(-2)^{2}-4(1)(-4)}}{2(1)}=\frac{2 \pm \sqrt{4+16}}{2}=\frac{2 \pm \sqrt{20}}{2}=\frac{2 \pm 2 \sqrt{5}}{2}=\frac{2}{2} \pm \frac{2 \sqrt{5}}{2}=1 \pm \sqrt{5}\), so \(\ x=1+\sqrt{5}\) or \(\ x=1-\sqrt{5}\).

    The Discriminant

    These examples have shown that a quadratic equation may have two real solutions, one real solution, or two complex solutions.

    In the Quadratic Formula, the expression underneath the radical symbol determines the number and type of solutions the formula will reveal. This expression, \(\ b^{2}-4 a c\), is called the discriminant of the equation \(\ a x^{2}+b x+c=0\).

    Let’s think about how the discriminant affects the evaluation of \(\ \sqrt{b^{2}-4 a c}\), and how it helps to determine the solution set.

    • If \(\ b^{2}-4 a c>0\), then the number underneath the radical will be a positive value. You can always find the square root of a positive, so evaluating the Quadratic Formula will result in two real solutions (one by adding the positive square root, and one by subtracting it).
    • If \(\ b^{2}-4 a c=0\), then you will be taking the square root of 0, which is 0. Since adding and subtracting 0 both give the same result, the \(\ \pm\) portion of the formula doesn't matter. There will be one real solution.
    • If \(\ b^{2}-4 a c<0\), then the number underneath the radical will be a negative value. Since you cannot find the square root of a negative number using real numbers, there are no real solutions. However, you can use imaginary numbers. You will then have two complex solutions, one by adding the imaginary square root and one by subtracting it.
    Example

    Use the discriminant to determine how many and what kind of solutions the quadratic equation \(\ x^{2}-4 x+10=0\) has.

    Solution

    \(\ \begin{array}{r}
    b^{2}-4 a c \\
    (-4)^{2}-4(1)(10)
    \end{array}\)
    Evaluate \(\ b^{2}-4 a c\). First note that \(\ a=1\), \(\ b=-4\), and \(\ c=10\).
    \(\ 16-40=-24\) The result is a negative number. The discriminant is negative, so the quadratic equation has two complex solutions.

    The quadratic equation \(\ x^{2}-4 x+10=0\) has two complex solutions.

    Exercise

    Suppose a quadratic equation has a discriminant that evaluates to zero. Which of the following statements is always true?

    1. The equation has two solutions.
    2. The equation has one solution.
    3. The equation has zero solutions.
    Answer
    1. Incorrect. Since adding and subtracting 0 both give the same result, the \(\ \pm\) portion of the Quadratic Formula doesn't matter. A discriminant of zero means the equation has one solution. The correct answer is “The equation has one solution.”
    2. Correct. A discriminant of zero means the equation has one solution.
    3. Incorrect. When the discriminant is zero, the equation will have one solution. The correct answer is “The equation has one solution.”

    Applying the Quadratic Formula

    Quadratic equations are widely used in science, business, and engineering. Quadratic equations are commonly used in situations where two things are multiplied together and they both depend on the same variable. For example, when working with area, if both dimensions are written in terms of the same variable, you use a quadratic equation. Because the quantity of a product sold often depends on the price, you sometimes use a quadratic equation to represent revenue as a product of the price and the quantity sold. Quadratic equations are also used when gravity is involved, such as the path of a ball or the shape of cables in a suspension bridge.

    A very common and easy-to-understand application is the height of a ball thrown at the ground off a building. Because gravity will make the ball speed up as it falls, a quadratic equation can be used to estimate its height any time before it hits the ground. Note: The equation isn't completely accurate, because friction from the air will slow the ball down a little. For our purposes, this is close enough.

    Example

    A ball is thrown off a building from 200 feet above the ground. Its starting velocity (also called initial velocity) is -10 feet per second. (The negative value means it's heading toward the ground.)

    The equation \(\ h=-16 t^{2}-10 t+200\) can be used to model the height of the ball after \(\ t\) seconds. About how long does it take for the ball to hit the ground?

    Solution

    \(\ \begin{array}{l}
    h=-16 t^{2}-10 t+200 \\
    0=-16 t^{2}-10 t+200 \\
    -16 t^{2}-10 t+200=0
    \end{array}\)

    When the ball hits the ground, the height is 0.

    Substitute 0 for \(\ h\).

    \(\ t=\frac{-(-10) \pm \sqrt{(-10)^{2}-4(-16)(200)}}{2(-16)}\) This equation is difficult to solve by factoring or by completing the square, so solve it by applying the Quadratic Formula, \(\ x=\frac{-b \pm \sqrt{b^{2}-4 a c}}{2 a}\). In this case, the variable is \(\ t\) rather than \(\ x\). \(\ a=-16\), \(\ b=-10\), and \(\ c=200\).
    \(\ \begin{aligned}
    t &=\frac{10 \pm \sqrt{100+12,800}}{-32} \\
    &=\frac{10 \pm \sqrt{12,900}}{-32}
    \end{aligned}\)

    Simplify. Be very careful with the signs.

    Use a calculator to find both roots.

    \(\ t\) is approximately \(\ -3.86\) or \(\ 3.24\). Consider the roots logically. One solution, -3.86, cannot be the time because it is a negative number. The other solution, 3.24 seconds, must be when the ball hits the ground.

    The ball hits the ground approximately 3.24 seconds after being thrown.

    The area problem below does not look like it includes a Quadratic Formula of any type, and the problem seems to be something you have solved many times before by simply multiplying. But in order to solve it, you will need to use a quadratic equation.

    Example

    Bob made a quilt that is 4 feet by 5 feet. He has 10 square feet of fabric he can use to add a border around the quilt. How wide should he make the border to use all the fabric? (The border must be the same width on all four sides.)

    Solution

    Screen Shot 2021-07-15 at 1.03.07 PM.png

    Sketch the problem. Since you don’t know the width of the border, you will let the variable \(\ x\) represent the width.

    In the diagram, the original quilt is indicated by the red rectangle. The border is the area between the red and blue lines.

    Screen Shot 2021-07-15 at 1.03.34 PM.png

    Since each side of the original 4 by 5 quilt has the border of width \(\ x\) added, the length of the quilt with the border will be \(\ 5+2 x\), and the width will be \(\ 4+2 x\).

    (Both dimensions are written in terms of the same variable, and you will multiply them to get an area! This is where you might start to think that a quadratic equation might be used to solve this problem.)

    Area of border = Area of the blue rectangle minus the area of the red rectangle

    Area of border \(\ =(4+2 x)(5+2 x)-(4)(5)\)

    You are only interested in the area of the border strips. Write an expression for the area of the border.
    \(\ 10=(4+2 x)(5+2 x)-20\) There are 10 sq ft of fabric for the border, so set the area of border to be 10.
    \(\ 10=20+8 x+10 x+4 x^{2}-20\) Multiply \(\ (4+2 x)(5+2 x)\).
    \(\ 10=18 x+4 x^{2}\) Simplify.
    \(\ \begin{array}{r}
    0=18 x+4 x^{2}-10 \\
    \text { or } \\
    4 x^{2}+18 x-10=0
    \end{array}\)
    Subtract 10 from both sides so that you have a quadratic equation in standard form and can apply the Quadratic Formula to find the roots of the equation.
    \(\ \begin{aligned}
    2\left(2 x^{2}+9 x-5\right) &=0 \\
    \frac{2\left(2 x^{2}+9 x-5\right)}{2} &=\frac{0}{2} \\
    2 x^{2}+9 x-5 &=0
    \end{aligned}\)
    Factor out the greatest common factor, 2, so that you can work with the simpler equivalent equation, \(\ 2 x^{2}+9 x-5=0\).
    \(\ \begin{array}{r}
    x=\frac{-b \pm \sqrt{b^{2}-4 a c}}{2 a} \\
    x=\frac{-9 \pm \sqrt{9^{2}-4(2)(-5)}}{2(2)}
    \end{array}\)
    Use the Quadratic Formula. In this case, \(\ a=2\), \(\ b=9\), and \(\ c=-5\).
    \(\ x=\frac{-9 \pm \sqrt{121}}{4}=\frac{-9 \pm 11}{4}\) Simplify.
    \(\ \begin{array}{r}
    x=\frac{-9+11}{4}=\frac{2}{4}=\frac{1}{2}=0.5 \\
    \text { or } \\
    x=\frac{-9-11}{4}=-\frac{20}{4}=-5
    \end{array}\)
    Find the solutions, making sure that the \(\ \pm\) is evaluated for both values.
    The width of the border should be 0.5 ft. Ignore the solution \(\ x=-5\), since the width could not be negative.
    Exercise

    A ball is launched upward at 48 feet/second from a platform that is 100 feet high. The equation giving its height \(\ t\) seconds after launch is \(\ h=-16 t^{2}+48 t+100\). The ball will shoot up to 136 feet high, then begin to come back down. About how long will the ball take to get to that maximum height?

    1. 1.5 seconds
    2. 3.6 seconds
    3. 4.4 seconds
    4. This problem cannot be solved.
    Answer
    1. Correct. When the height is 136 feet, the equation becomes \(\ 136=-16 t^{2}+48 t+100\). Subtracting 136 from both sides gives \(\ 0=-16 t^{2}+48 t-36\). Factoring out -4 results in the simpler equation \(\ 0=4 t^{2}-12 t+9\) and using the Quadratic Formula gives \(\ t=\frac{-(-12) \pm \sqrt{(-12)^{2}-4(4)(9)}}{2(4)}\). This simplifies to \(\ t=\frac{12 \pm \sqrt{0}}{8}=1.5\). (Since the discriminant is 0, there is only one solution.) The ball will reach its maximum height in 1.5 seconds.
    2. Incorrect. You probably set up the equation correctly, \(\ 136=-16 t^{2}+48 t+100\). However, you probably either forgot a negative sign for the values of \(\ a\) or \(\ c\), or you incorrectly evaluated \(\ -4 a c\) in the discriminant. Subtracting 136 from both sides of the equation gives \(\ 0=-16 t^{2}+48 t-36\). Factoring out -4 results in the simpler equation \(\ 0=4 t^{2}-12 t+9\), so \(\ a=4\), \(\ b=-12\), and \(\ c=9\). Using the Quadratic Formula gives \(\ t=\frac{-(-12) \pm \sqrt{(-12)^{2}-4(4)(9)}}{2(4)}\). This simplifies to \(\ t=\frac{12 \pm \sqrt{0}}{8}=1.5\). (Since the discriminant is 0, there is only one solution.) The correct answer is 1.5 seconds.
    3. Incorrect. You probably correctly solved the equation \(\ 0=-16 t^{2}+48 t+100\), but you are looking for the time when the height is 136, not 0. The equation to solve is \(\ 136=-16 t^{2}+48 t+100\). Subtracting 136 from both sides gives \(\ 0=-16 t^{2}+48 t-36\). Factoring out -4 results in the simpler equation \(\ 0=4 t^{2}-12 t+9\) and using the Quadratic Formula gives \(\ t=\frac{-(-12) \pm \sqrt{(-12)^{2}-4(4)(9)}}{2(4)}\). This simplifies to \(\ t=\frac{12 \pm \sqrt{0}}{8}=1.5\). (Since the discriminant is 0, there is only one solution.) The correct answer is 1.5 seconds.
    4. Incorrect. This problem can be solved if you substitute 136 in for \(\ h\) in the original equation. This gives you: \(\ 136=-16 t^{2}+48 t+100\). Subtracting 136 from both sides gives \(\ 0=-16 t^{2}+48 t-36\). Factoring out -4 results in the simpler equation \(\ 0=4 t^{2}-12 t+9\) and using the Quadratic Formula gives \(\ t=\frac{-(-12) \pm \sqrt{(-12)^{2}-4(4)(9)}}{2(4)}\). This simplifies to \(\ t=\frac{12 \pm \sqrt{0}}{8}=1.5\). (Since the discriminant is 0, there is only one solution.) The correct answer is 1.5 seconds.

    Summary

    Quadratic equations can appear in different applications. The Quadratic Formula is a useful way to solve these equations, or any other quadratic equation! The Quadratic Formula, \(\ x=\frac{-b \pm \sqrt{b^{2}-4 a c}}{2 a}\), is found by completing the square of the quadratic equation \(\ a x^{2}+b x+c=0\).

    The discriminant of the Quadratic Formula is the quantity under the radical, \(\ b^{2}-4 a c\). It determines the number and the type of solutions that a quadratic equation has. If the discriminant is positive, there are 2 real solutions. If it is 0, there is 1 real solution. If the discriminant is negative, there are 2 complex solutions (but no real solutions).


    This page titled 16.5.2: The Quadratic Formula is shared under a CC BY-NC-SA 4.0 license and was authored, remixed, and/or curated by The NROC Project via source content that was edited to the style and standards of the LibreTexts platform; a detailed edit history is available upon request.