Skip to main content

Applied Precalculus MTH 103

Section 3.4 The Quadratic Formula

In the previous section, we saw that finding the horizontal intercepts of a quadratic function from the vertex form \(f(x)=a(x-h)^2+k\) requires setting \(f(x)=0\) and solving. If we wanted to find the horizontal intercepts of a quadratic function given in the standard form \(f(x)=ax^2+bx+c\text{,}\) we could first complete the square to convert to vertex form, and then proceed as before. If this process is done in general; i.e., on \(f(x)=ax^2+bx+c\) (without replacing \(a\text{,}\) \(b\text{,}\) and \(c\) with numbers), we obtain the quadratic formula.

By the way...

Example 3.4.2.

Use the quadratic formula to solve each quadratic equation.
  1. \(\displaystyle x^2 + x - 6 = 0\)
  2. \(\displaystyle -2t^2 - 2t + 7 = 0\)
  3. \(\displaystyle (x + 1)(x - 2) = 4\)
Solution.
  1. Since this quadratic equation is in standard form, \(a=1\text{,}\) \(b=1\text{,}\) and \(c=-6\text{.}\) Now by the quadratic formula
    \begin{align*} x \amp\;=\; \frac{-1 \pm \sqrt{1^2 - 4 \cdot 1 \cdot (-6)}}{2 \cdot 1} \\ \amp\;=\; \frac{-1 \pm \sqrt{25}}{2} \\ \amp\;=\; \frac{-1 \pm 5}{2}. \end{align*}
    So the two solutions are \(x = \frac{-1 - 5}{2} = \frac{-6}{2} = -3\) and \(x = \frac{-1 + 5}{2} = \frac{4}{2} = 2\text{.}\)
  2. Since this quadratic equation is in standard form, \(a=-2\text{,}\) \(b=-2\text{,}\) and \(c=7\text{.}\) Now by the quadratic formula
    \begin{align*} t \amp\;=\; \frac{-(-2) \pm \sqrt{(-2)^2 - 4 \cdot (-2) \cdot 7}}{2 \cdot (-2)} \\ \amp\;=\; \frac{2 \pm \sqrt{60}}{-4} \\ \amp\;=\; \frac{2 \pm \sqrt{4 \cdot 15}}{-4} \\ \amp\;=\; \frac{2 \pm 2\sqrt{15}}{-4} \end{align*}
    So the two solutions are
    \begin{equation*} t = \frac{2 - 2\sqrt{15}}{-4} = \frac{2}{-4} + \frac{2\sqrt{15}}{-4} = -\frac{1}{2} + \frac{\sqrt{15}}{2} \approx 1.4365 \end{equation*}
    and
    \begin{equation*} t = \frac{2 + 2\sqrt{15}}{-4} = \frac{2}{-4} - \frac{2\sqrt{15}}{4} = -\frac{1}{2} - \frac{\sqrt{15}}{2} \approx -2.4365. \end{equation*}
  3. Since this quadratic equation is not in standard form, we must first expand the left-hand side and then get all terms on one side before we are able to proceed:
    \begin{align*} ( x + 1 )( x - 2 ) \amp\;=\; 4 \\ x^2 - 2x + x - 2 \amp\;=\; 4 \\ x^2 - x - 2 \amp\;=\; 4 \\ x^2 - x - 2 \textcolor{blue}{ - 4} \amp\;=\; 4 \textcolor{blue}{ - 4} \\ x^2 - x - 6 \amp\;=\; 0 \end{align*}
    Now that the equation is in standard form, we can see that this is similar to part (a), so the solutions are \(x = -3\) and \(x = 2\text{.}\)

Example 3.4.3.

Find the horizontal intercepts of the quadratic function \(g(x)=-2x^2-8x-3\text{.}\)
Solution.
To find the horizontal intercepts, we set the quadratic function equal to \(0\) and solve for \(x\text{:}\)
\begin{equation*} -2x^2 - 8x - 3 = 0. \end{equation*}
Here \(a = -2\text{,}\) \(b = -8\text{,}\) and \(c = -3\text{,}\) so by the quadratic formula,
\begin{align*} x \amp\;=\; \frac{ -(-8) \pm \sqrt{ (-8)^2 - 4 \cdot (-2) \cdot (-3) } }{ 2 \cdot (-2) }\\ \amp\;=\; \frac{ 8 \pm \sqrt{ 64 - 24 } }{ -4 } \\ \amp\;=\; \frac{ 8 \pm \sqrt{ 40 } }{ -4 } \\ \amp\;=\; \frac{ 8 \pm \sqrt{ 4 \cdot 10 } }{ -4 } \\ \amp\;=\; \frac{ 8 \pm 2\sqrt{10} }{ -4 }. \end{align*}
Simplifying, the two solutions are
\begin{equation*} x = \frac{ 8 - 2\sqrt{10} }{ -4 } = \frac{8}{-4} + \frac{2\sqrt{10}}{-4} = -2 + \frac{ \sqrt{10} }{ 2 } \approx -0.4189 \end{equation*}
and
\begin{equation*} x = \frac{ 8 + 2\sqrt{10} }{ -4 } = \frac{8}{-4} - \frac{2\sqrt{10}}{4} = -2 - \frac{ \sqrt{10} }{ 2 } \approx -3.5811. \end{equation*}
Hence, the horizontal intercepts are \(-2 + \dfrac{ \sqrt{10} }{ 2 }\) and \(-2 - \dfrac{ \sqrt{10} }{ 2 }\text{.}\)

Subsection The Discriminant

How many solutions a quadratic equation in standard form will have is determined entirely by the quantity under the radical in the quadratic formula; we call this quantity the discriminant.

Definition 3.4.4. The Discriminant.

For the quadratic equation in standard form \(ax^2+bx+c=0\text{,}\) the discriminant \(D\) is given by
\begin{equation*} D=b^2-4ac. \end{equation*}

By the way...

Example 3.4.6.

Use the discriminant to determine how many solutions each quadratic equation has.
  1. \(\displaystyle x^2 - 4x + 4 = 0\)
  2. \(\displaystyle -3t^2 + t - 10 = 0\)
  3. \(\displaystyle -2t^2 - 2t + 7 = 0\)
Solution.
  1. Here, \(a = 1\text{,}\) \(b = -4\text{,}\) and \(c = 4\text{,}\) so \(D = (-4)^2 - 4 \cdot 1 \cdot 4 = 0\text{.}\) Hence this quadratic equation has one real solution. By the quadratic formula, that solution is
    \begin{equation*} x = \frac{ -(-4) \pm \sqrt{0} }{ 2 \cdot 1 } = \frac{ 4 }{ 2 } = 2. \end{equation*}
  2. Here, \(a = -3\text{,}\) \(b = 1\text{,}\) and \(c = -10\text{,}\) so \(D = (1)^2 - 4 \cdot (-3) \cdot (-10) = -119\text{.}\) Since \(D \lt 0\text{,}\) this quadratic equation has no real solutions. This can be seen by using the quadratic formula as well, yielding
    \begin{equation*} x = \frac{ -1 \pm \sqrt{ -119 } }{ 2 \cdot (-3) } \end{equation*}
    which is not a real quantity due to the negative number underneath the square root.
  3. Here, \(a = -2\text{,}\) \(b = -2\text{,}\) and \(c = 7\text{,}\) so \(D = (-2)^2 - 4 \cdot (-2) \cdot 7 = 60\text{.}\) Since \(D \gt; 0\text{,}\) this quadratic equation has two distinct real solutions. We found these solutions in part (b) of ExampleΒ 3.4.2; they are \(t = -\frac{1}{2} - \frac{ \sqrt{15} }{2 }\) and \(t = -\frac{1}{2} + \frac{ \sqrt{15} }{2 }\text{.}\)

Subsection Using Horizontal Intercepts to Find the Vertex

In Section 3.1, we noted that the graph of a quadratic function is symmetric about the vertical line passing through the vertex, so the horizontal position of the vertex must be exactly halfway between the horizontal intercepts, or real zeros, of the quadratic function. This was stated in TheoremΒ 3.1.4.
The zeros of a quadratic function \(f(x) = a x^2 + b x + c\) are found by solving the equation \(f(x)=ax^2+bx+c=0\text{.}\) By the quadratic formula, the solutions of this equation and therefore the zeros of the quadratic function are \(x_1=\frac{-b + \sqrt{b^2 - 4ac}}{2a}\) and \(x_2=\frac{-b-\sqrt{b^2 - 4ac} }{ 2a }\text{.}\) As the \(x\)-coordinate of the vertex must be located at the average of \(x_1\) and \(x_2\text{,}\) denoting the \(x\)-coordinate of the vertex by \(h\) results in
\begin{equation*} h=\frac{x_1+x_2}{2}. \end{equation*}
Now
\begin{align*} h \amp\;=\; \left( \frac{ -b + \sqrt{ b^2 - 4 a c } }{ 2a } + \frac{ -b - \sqrt{ b^2 - 4 a c } }{ 2a } \right) \bigg/ 2 \\ \amp\;=\; \left( \frac{ -b }{ 2a } + \cancel{ \frac{ \sqrt{ b^2 - 4 a c } }{ 2a } } + \frac{ -b }{ 2a } - \cancel{ \frac{ \sqrt{ b^2 - 4 a c } }{ 2a } } \right) \bigg/ 2 \\ \amp\;=\; \left( \frac{ -2b }{ 2a } \right) \bigg/ 2 \\ \amp\;=\; -\frac{ b }{ a } \cdot \frac{ 1 }{ 2 } \\ \amp\;=\; -\frac{ b }{ 2a }. \end{align*}

By the way...

Note that the above formula for \(h\) is valid when \(x_1=x_2\text{,}\) (i.e., if the quadratic function has a single horizontal intercept). In this case, the single horizontal intercept must also be the vertex. It is also valid when the quadratic function \(f(x)=ax^2+bx+c\) has no real horizontal intercepts, or, equivalently, no real zeros.

Example 3.4.8.

A baseball is thrown straight up with initial speed \(40\) ft/sec by a player who is \(6\) feet tall. Let \(H(t)\) be the height of the ball above the ground \(t\) seconds later.
  1. Find a formula for \(H(t)\text{.}\)
  2. When does the ball reach its maximum height, and what is its maximum height?
Solution.
  1. We use the formula for the vertical motion of a projectile with initial velocity \(V_0\) and initial height \(H_0\) that was originally presented in Section 3.3:
    \begin{equation*} H(t) = -16 t^2 + V_0 t + H_0. \end{equation*}
    In our example, \(H_0 = 6\) and \(V_0 = 40\text{.}\) Hence
    \begin{equation*} H(t) = -16 t^2 + 40 t + 6. \end{equation*}
    This is a quadratic function in standard form with \(a = -16\text{,}\) \(b = 40\text{,}\) and \(c = 6\text{.}\)
  2. The parabola corresponding to the function \(H(t)\) opens down so \(H(t)\) is at its maximum at the vertex of the parabola. Given \(a = -16\) and \(b = 40\text{,}\) we can calculate \(h\text{,}\) the \(t\)-coordinate of the vertex:
    \begin{equation*} h = -\frac{b}{2a} = -\frac{40}{2 \cdot (-16)} = 1.25. \end{equation*}
    The ball will reach its maximum height at \(t = 1.25\text{;}\) that is, \(1.25\) seconds into the motion. The height of the ball at \(t = 1.25\) is:
    \begin{equation*} H(1.25) = -16 \cdot (1.25)^2 + 40 \cdot 1.25 + 6 = 31. \end{equation*}
    The maximum height of the ball is \(31\) feet. Here is the graph of \(H(t)\text{.}\)
    A short description.
    The graph shows the part of the parabola that is relevant to the motion in our example.

Subsection Factored Form of a Quadratic Function

We have previously established that if we can factor a given quadratic function, we can quickly find its zeros (or, equivalently, horizontal intercepts). For example, the zeros of the function:
\begin{equation*} f(x) = 2(x-1)(x+1.5) \end{equation*}
are \(x = 1\) and \(x = -1.5\text{.}\)
The other way around is also true: if we have real zeros, \(x_1\) and \(x_2\text{,}\) of a given quadratic function \(f(x) = a x^2 + b x + c\text{,}\) we can write the function in factored form:
\begin{equation*} f(x) = a(x - x_1)(x - x_2). \end{equation*}

Definition 3.4.9. Factored Form.

Let \(f(x)=ax^2+bx+c\) be a quadratic function with distinct real zeros \(x_1\) and \(x_2\text{.}\) The factored form of \(f(x)\) is
\begin{equation*} f(x) = a(x - x_1)(x - x_2). \end{equation*}
If \(f(x)\) has a single real zero, then \(x_1\) is called a double root of \(f(x)\) and we use \(x_1 = x_2\) in the formula for factored form defined above.

By the way...

Note: Every quadratic function can be written in standard form and in vertex form. However, not every quadratic function can be written in factored form for real numbers \(x_1\text{,}\) \(x_2\text{.}\) In particular, a quadratic function that has no real zeros, or equivalently no horizontal intercepts, cannot be factored over the real numbers and therefore cannot be written in the factored form we have defined.

Example 3.4.10.

Find the zeros for a given quadratic function using any method you wish. Express the function in factored form.
  1. \(\displaystyle f(x) = 6 x^2 - 27 x + 12\)
  2. \(\displaystyle g(x) = x^2 - 2 x - 11\)
  3. \(\displaystyle h(x) = -x^2 - 2\)
Solution.
  1. To find the zeros of \(f(x)\text{,}\) we have to solve the quadratic equation:
    \begin{equation*} 6x^2-27x+12=0. \end{equation*}
    Notice that \(a=6\text{,}\) \(b=-27\text{,}\) and \(c=12\text{.}\) So by the quadratic formula:
    \begin{align*} x \amp\;=\; \frac{-(-27) \pm \sqrt{(-27)^2-4\cdot6\cdot12}}{2\cdot6} \\ \amp\;=\; \frac{27 \pm \sqrt{441}}{12} \\ \amp\;=\; \frac{27 \pm 21}{12} \end{align*}
    We simplify and obtain the two solutions:
    \begin{equation*} x_1 = \frac{27-21}{12} = \frac{6}{12} = \frac{1}{2} \end{equation*}
    and
    \begin{equation*} x_2 = \frac{27+21}{12} = \frac{48}{12} = 4. \end{equation*}
    The function \(f(x)\) in factored form is
    \begin{equation*} f(x) = 6\left(x-\frac{1}{2}\right)(x-4). \end{equation*}
  2. We set up the equation to find the zeros of \(g(x)\text{:}\)
    \begin{equation*} x^2-2x-11=0. \end{equation*}
    We have \(a=1\text{,}\) \(b=-2\text{,}\) and \(c=-11\text{.}\) So by the quadratic formula:
    \begin{align*} x \amp\;=\; \frac{-(-2) \pm \sqrt{(-2)^2-4\cdot1\cdot(-11)}}{2\cdot1} \\ \amp\;=\; \frac{2 \pm \sqrt{48}}{2} \\ \amp\;=\; \frac{2 \pm \sqrt{16\cdot3}}{2} \\ \amp\;=\; \frac{2 \pm 4\sqrt{3}}{2} \\ \amp\;=\; 1 \pm 2\sqrt{3} \end{align*}
    Hence, the two solutions are
    \begin{equation*} x_1 = 1 + 2\sqrt{3} \end{equation*}
    and
    \begin{equation*} x_2 = 1 - 2\sqrt{3}. \end{equation*}
    The function \(g(x)\) in factored form is
    \begin{equation*} g(x) = \left(x-(1+2\sqrt{3})\right)\left(x-(1-2\sqrt{3})\right). \end{equation*}
  3. The equation we have to solve is:
    \begin{equation*} -x^2-2=0. \end{equation*}
    Since \(a=-1\text{,}\) \(b=0\text{,}\) and \(c=-2\text{,}\) the discriminant is negative: \(D=0^2-4(-1)(-2)=-8 \lt 0\text{.}\) Hence, the equation has no real solutions and \(h(x)\) cannot be written in factored form. However, the vertex form of \(h(x)\) is
    \begin{equation*} h(x) = -1\cdot(x-0)^2-2. \end{equation*}
    The vertex is below the \(x\)-axis at \((0,-2)\) and the parabola opens down. So there cannot be any horizontal intercepts. Here is the graph of \(h(x)\text{.}\)
    A short description.

Example 3.4.11.

Use the graph of a quadratic function \(y=f(x)\) given below to find a formula for the function in factored form and in standard form.
A short description.
Solution.
The graph gives us the horizontal intercepts or equivalently the zeros of the function \(f(x)\text{:}\) \(x = 1\) and \(x = 3\text{.}\) Hence, \(f(x)\) in factored form is:
\begin{equation*} f(x) = a ( x - 1 ) ( x - 3 ) \end{equation*}
We still don’t have the value of the leading coefficient \(a\text{.}\) To find \(a\text{,}\) we will use the vertical intercept \(y = 5\) of the function. The intercept is clearly seen on the graph. The vertical intercept is the value of the function at \(x = 0\text{.}\) Thus, \(f(0) = 5\text{.}\) We substitute \(x = 0\) into factored form of \(f(x)\) and obtain:
\begin{equation*} a ( 0 - 1 ) ( 0 - 3 ) = 5 \end{equation*}
We simplify the equation:
\begin{equation*} a \cdot ( -1 ) \cdot ( -3 ) = 5 \end{equation*}
which gives:
\begin{equation*} a \cdot 3 = 5 \end{equation*}
and finally:
\begin{equation*} a = \frac{5}{3} \end{equation*}
The function \(f(x)\) in factored form is:
\begin{equation*} f(x) = \frac{5}{3} ( x - 1 ) ( x - 3 ) \end{equation*}
To obtain \(f(x)\) in standard form, we multiply out all terms and simplify:
\begin{align*} f(x) \amp = \frac{5}{3} ( x - 1 ) ( x - 3 ) \\ \amp = \frac{5}{3} ( x^2 - 3x - x + 3 ) \\ \amp = \frac{5}{3} ( x^2 - 4x + 3 ) \\ \amp = \frac{5}{3} x^2 - \frac{20}{3} x + 5. \end{align*}

Exercises Exercises

Quadratic Equations.

Find all real solutions to each quadratic equation. Give exact and approximate values rounded to three decimal places.
6.
\(2 x (3 - x) = 4 (x - 5)\)
Solution.
\(x=\dfrac{1-\sqrt{41}}{2}\approx-2.701\) and \(x=\dfrac{1+\sqrt{41}}{2}\approx3.702\)

Intercepts and Vertex.

Find the intercepts and vertex of each quadratic function. Give exact and approximate values rounded off to three decimal places.
7.
\(y=x^2+2x-3\)
Solution.
horizontal intercepts: \(-3\text{,}\) \(1\text{;}\) vertical intercept: \(-3\text{;}\) vertex: \((-1,-4)\)
8.
\(f(x)=x^2+8x+10\)
Solution.
horizontal intercepts: \(-4-\sqrt{6}\approx-6.450\text{,}\) \(-4+\sqrt{6}\approx-1.551\text{;}\) vertical intercept: \(10\text{;}\) vertex: \((-4,-6)\)
9.
\(g(x)=3x^2-6x-1\)
Solution.
horizontal intercepts: \(\frac{3-2\sqrt{3}}{3}\approx-0.155\text{,}\) \(\frac{3+2\sqrt{3}}{3}\approx2.155\text{;}\) vertical intercept: \(-1\text{;}\) vertex: \((1,-4)\)

Discriminant.

Calculate the discriminant of each quadratic equation and use it to determine whether the equation will have one real solution, two distinct real solutions, or no real solutions.

15.

A baseball is thrown straight up with the initial speed of 50 ft/sec by a player who is 6 feet tall. Let \(H(t)\) be the height of the ball above the ground \(t\) seconds later.
  1. Find a formula for \(H(t)\text{.}\)
  2. When does the ball reach its maximum height and what is its maximum height? Round your answers to two decimal places.
Solution.
  1. \(\displaystyle H(t)=-16t^2+50t+6\)
  2. The ball reaches its maximum height approximately 1.56 seconds after it is thrown straight up and that maximum height is approximately 45.06 feet.

Factored Form.

Rewrite the given quadratic function in factored form. Be sure to use the exact values of the zeros of each function.

18.

The graph of a quadratic function \(f(x)\) is given below. Write the function in factored form. Then rewrite the function in standard form.
A short description.
Solution.
\(f(x)=-2(x+1)(x-2)\text{;}\) \(f(x)=-2x^2+2x+4\)

19.

The graph of a quadratic function \(g(t)\) is given below. Write the function in factored form. Then rewrite the function in standard form.
A short description.
Solution.
\(g(t)=(t-2)(t+2)\text{;}\) \(g(t)=t^2-4\)