Skip to main content

Section 3.1 Quadratic Functions and Inequalities

If \(a\text{,}\) \(b\text{,}\) and \(c\) are real numbers with \(a \not=0\text{,}\) then the function
\begin{equation*} f(x)=ax^2+bx+c \end{equation*}
is a quadratic function.
  • Domain: \((-\infty, \infty)\text{,}\) all real numbers.
  • Can be written in the form
    \begin{equation*} f(x)=a(x-h)^2 +k \end{equation*}
    by completing the square.

Subsection 3.1.1 Completing the Square

For \(f(x)=ax^2 +bx + c\)
  1. If \(a \not= 1\text{,}\) factor \(a\) out of \(ax^2 +bx\text{.}\)
  2. Find \(\frac{1}{2}\) of the coefficient of \(x\text{,}\) square it and add it.
  3. Factor to get perfect square.

Example 3.1.1.

Rewrite each in the form \(a(x-h)^2 +k\text{.}\)
(a) \(f(x)=x^2+20x+50\) Β  Β  Β  Β  (b) \(f(x)=-2x^2-4x+3\)
Solution
(a) Since the leading coefficient is \(1\text{,}\) skip to step 2.
\begin{align*} f(x) \amp =x^2+20x+50 \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \left(\tfrac{1}{2}\cdot20 \right)^2=10^2=100\\ \amp =\underline{x^2+20x+100} -100+50 \quad \quad \quad \quad \quad \quad \text{(Add zero)}\\ \amp =(x+10)(x+10) -50 \\ \amp =(x+10)^2 - 50 \end{align*}
(b) Factor out \(-2\) from the first two terms.
\begin{align*} f(x) \amp =-2x^2-4x +3 \\ \amp =-2(x^2+2x) +3 \quad \quad \quad \quad \quad \quad \quad \quad \left(\tfrac{1}{2}\cdot 2 \right)^2=1^2=1\\ \amp =-2(\underline{x^2+2x+1}-1) +3 \\ \amp =-2(\text{ }(x+1)^2 -1) +3 \quad \quad \quad \quad \quad \quad \text{(Factor)} \\ \amp =-2(x+1)^2 +2+3 \quad \quad \quad \quad \quad \quad \quad \text{(Distribute)} \\ \amp =-2(x+1)^2 +5 \end{align*}

Subsection 3.1.2 Graphing a Quadratic Function

We can graph \(f(x)=a(x-h)^2 + k\) by transforming the graph of \(y=x^2\text{.}\)

Example 3.1.2.

Graph \(f(x)=x^2-4x+5\text{.}\)
Solution: Β  Complete the square.
\begin{align*} f(x) \amp =x^2-4x+5 \quad \quad \quad \quad \quad \quad \quad \quad \text{ Add } \left(\frac{1}{2}(-4) \right) ^2 =(-2)^2=4 \\ f(x) \amp =\underline{x^2-4x+4}-4+5 \\ f(x) \amp =(x-2)^2 +1 \end{align*}
The expression \(x-2\) shifts the graph of \(y=x^2\) to the right \(2\) units.
Then, the addition of \(1\) shifts the graph up \(1\) unit.
See FigureΒ 3.1.3for the final graph.
Figure 3.1.3. The graph of \(y=x^2\) and the graph of \(f(x)=x^2-4x+5\text{.}\)

Subsection 3.1.3 Parabolas

Let \(f(x)=ax^2 +bx+c\text{.}\) Then the graph of \(f\) is a parabola and it resembles one of the two figures below.
Figure 3.1.4. Graph of an upward-opening parabola with the vertex identified as the minimum.
Figure 3.1.5. Graph of a downward-opening parabola with the vertex identified as the maximum.
FigureΒ 3.1.4: Opens upward.
  • It happens when \(a \gt 0\text{.}\)
  • The range is \([k,\infty)\text{,}\) where \(k\) is the minimum value.
  • The graph is decreasing on \((-\infty,h]\) and increasing on \([h, \infty)\text{.}\)
FigureΒ 3.1.5: Opens downward.
  • It happens when \(a \lt 0\text{.}\)
  • The range is \((-\infty, k]\text{,}\) where \(k\) is the maximum value.
  • The graph is increasing on \((-\infty,h]\) and decreasing on \([h,\infty)\text{.}\)
In both: the dashed line is the axis of symmetry \(x=h\text{.}\)

Subsection 3.1.4 Finding the vertex of a parabola

  1. For vertex form \(f(x)=a(x-h)^2+k\text{,}\) the vertex is \((h,k)\text{.}\)
  2. For standard form \(f(x)=ax^2+bx+c\text{:}\)
    • The \(x\)-coordinate of the vertex is \(\tfrac{-b}{2a}\text{.}\)
    • The \(y\)-coordinate of the vertex is \(f \left(\tfrac{-b}{2a} \right)\text{.}\)

Example 3.1.6.

Let \(f(x)=-2x^2-8x+9\text{.}\) Find the vertex and the axis of symmetry.
Solution: Β  We have \(f(x)=ax^2+bx+c\) for \(a=-2\text{,}\) \(b=-8\text{,}\) and \(c=9\text{.}\)
So, the \(x\)-coordinate of the vertex is
\begin{equation*} \frac{-b}{2a}=\frac{--8}{2(-2)}=\frac{8}{-4}=-2. \end{equation*}
Then, the \(y\)-coordinate of the vertex is
\begin{align*} f(-2) \amp =-2(-2)^2-8(-2)+9 \\ \amp =-8+16+9 \\ \amp =17 \end{align*}
Therefore, the vertex is \((-2,17)\) and the axis of symmetry is the vertical line \(x=-2\text{.}\)

Example 3.1.7.

For \(f(x)=-2x^2+8x-1\text{,}\) find the range and the maximum or minimum value. Identify the intervals on which \(f\) is increasing or decreasing.
Solution: Β  First, find the vertex.
The \(x\)-coordinate is
\begin{equation*} \frac{-b}{2a}=\frac{-8}{2(-2)}=2. \end{equation*}
The \(y\)-coordinate is
\begin{align*} f(2) \amp =-2(2)^2+8(2)-1 \\ \amp =-8+16-1 \\ \amp =7. \end{align*}
Therefore, the vertex is \((2,7)\text{.}\)
The leading coefficient (\(a\)) of \(f\) is negative, so the parabola opens downward. FigureΒ 3.1.8 shows the general form of the graph of \(f\text{.}\)
Figure 3.1.8. A parabola that opens downward and has vertex \((2,7)\text{.}\)
From reading this graph, we can conclude that:
  • The range of \(f\) is \((-\infty,7]\text{.}\)
  • The maximum value of \(f\) is \(7\text{.}\)
  • \(f\) is increasing on \((-\infty, 2]\text{.}\)
  • \(f\) is decreasing on \([2,\infty)\text{.}\)

Subsection 3.1.5 Intercepts

For the function \(f(x)=ax^2+bx+c\text{:}\)
  • The \(y\)-intercept is \((0,c)\text{.}\)
  • The \(x\)-coordinates of the \(x\)-intercepts are the real solutions (if any) to
    \begin{equation*} ax^2+bx+c=0. \end{equation*}

Example 3.1.9.

Find the intercepts of each parabola.
(a) \(y=x^2-6x\) Β  Β  Β  Β  (b) \(y=-x^2+2x-6\)
Solution
(a) If \(x=0\text{,}\) then \(y=0\text{.}\) This means that the \(y\)-intercept is \((0,0)\text{.}\)
To find the \(x\)-intercepts, solve the equation \(x^2-6x=0\text{.}\) We can solve by factoring:
\begin{equation*} x(x-6)=0 \end{equation*}
The solutions are \(0\) and \(6\text{,}\) so the \(x\)-intercepts are \((0,0)\) and \((6,0)\text{.}\)
(b) If \(x=0\text{,}\) then \(y=-6\text{.}\) This means that the \(y\)-intercept is \((0,-6)\text{.}\)
To find the \(x\)-intercepts, solve the equation \(-x^2+2x-6=0\text{.}\)
\begin{align*} x \amp =\frac{-b \pm\sqrt{b^2-4ac}}{2a} \\[0.25em]\\ \amp =\frac{-2 \pm \sqrt{2^2-4(-1)(-6)}}{2(-1)} \\[0.25em]\\ \amp =\frac{-2\pm \sqrt{4-4(6)}}{-2} \\[0.25em]\\ \amp =\frac{-2 \pm \sqrt{4-24}}{-2} \\[0.25em]\\ \amp =\frac{-2 \pm \sqrt{-20}}{-2} \end{align*}
Since \(-20 \lt 0\text{,}\) the equation has no real solutions. Therefore, there are no \(x\)-intercepts.

Example 3.1.10.

Graph \(f(x)=x^2+4x+4\) by finding its vertex, axis of symmetry, and intercepts.
Solution
Since \(f(0)=4\text{,}\) the \(y\)-intercept is \((0,4)\text{.}\)
To find the \(x\)-intercepts, solve the equation \((x+2)^2=0\text{.}\)
Using the Square Root Property, we get \(x=-2\text{.}\) So, the \(x\)-intercept is \((-2,0)\text{.}\)
The \(x\)-coordinate of the vertex is
\begin{equation*} \frac{-b}{2a} = \frac{-4}{2(1)}=-2. \end{equation*}
So, the vertex is the \(x\)-intercept \((-2,0)\) and the axis of symmetry is the line \(x=-2\text{.}\)
From symmetry, we get that \((-4,4)\) is a point on the graph.
Combining all of this information we can graph \(f(x)\text{.}\)
We note that the graph does not cross the \(x\)-axis at \((-2,0)\text{.}\)

Subsection 3.1.6 Quadratic Inequalities: A Graphical Approach

  • To solve \(ax^2 +bx+c \gt 0\text{,}\) graph \(f(x)=ax^2 +bx+c \text{ }\) and, from the graph, determine where the graph is above the \(x\)-axis.
  • To solve \(ax^2 +bx+c \lt 0\text{,}\) determine where the graph of \(f(x)\) is below the \(x\)-axis.
  • If the inequality symbol is \(\geq \) or \(\leq\text{,}\) include the \(x\)-intercepts (if any).

Example 3.1.11.

Solve the inequality \(x^2-1 \leq 0\text{.}\)
Solution: Graph \(f(x)=x^2-1\text{.}\)
The graph of \(f\) is the graph of \(y=x^2\) shifted down \(1\) unit, so \(f\) opens up and has vertex \((0,-1)\text{.}\)
To get additional points, let’s find the points for the \(x\)-intercepts by solving \(x^2-1=0\text{.}\)
\begin{equation*} x^2=1 \implies x=\pm 1. \end{equation*}
This tells us that the graph passes through \((1,0)\) and \((-1,0)\text{.}\)
Figure 3.1.12. The parabolic graph of the function \(f(x)=x^2-1\text{,}\) which opens up and has vertex \((0,-1)\text{.}\)
The graph of \(f(x)\) is on or below the \(x\)-axis when \(-1 \leq x \leq 1\text{,}\) which corresponds to \(f(x) \leq 0\text{.}\)
Therefore, the solution is \([-1,1]\text{.}\)

Example 3.1.13.

The graph of \(f(x)=-x^2+3x\) is shown below. Use it to solve:
\begin{equation*} \quad \text{ (a) } -x^2+3x \geq 0 \quad \quad \quad \quad \quad \quad \quad \text{ (b) } -x^2+3x \lt 0 \quad \quad \quad \quad \quad \quad \quad \quad \end{equation*}
Figure 3.1.14. The graph of \(f(x)=-x^2+3x\text{,}\) a parabola that opens down.
Solution
(a) The graph is on or above the \(x\)-axis when \(0 \leq x \leq 3\text{,}\) which corresponds to \(f(x) \geq 0\text{.}\)
Therefore, the solution is \([0,3]\text{.}\)
(b) The graph is below the \(x\)-axis when \(x \lt 0\) or \(x>3\text{,}\) which corresponds to \(f(x) \lt 0\text{.}\)
Therefore, the solution is \((-\infty,0) \cup(3,\infty)\text{.}\)

Subsection 3.1.7 Quadratic Inequalities: The Test Point Method

  1. Get \(0\) on one side of the inequality and a quadratic polynomial on the other side.
  2. Find all roots to the corresponding quadratic equation and plot them on a number line.
  3. Select a test point in each interval determined by the roots.
  4. Evaluate the quadratic polynomial at each test point.
  5. Determine the solution set from the signs of the quadratic polynomial at the test points.

Example 3.1.15.

Solve \(f(x) \leq 0\) when \(f(x)=x^2+8x+15\text{.}\)
Solution
Find the roots of \(x^2+8x+15=0\) by factoring:
\begin{equation*} (x+3)(x+5)=0. \end{equation*}
The roots are \(-5\) and \(-3\text{.}\)
Next, plot the roots on a number line. Note that we sometimes label the ends of a number line with \(\pm \infty\) to indicate the intervals continue indefinitely. These are not actual points but they correspond to interval notation such as \((-\infty,a)\) or \((a,\infty)\text{.}\)
The roots divide the number line into three intervals. From each interval we select one test point. We will use \(-6\text{,}\) \(-4\text{,}\) and \(0\text{.}\)
Figure 3.1.16. A number line with \(-5\) and \(-3\) labeled. Each interval is labeled with the sign of \(f(x)\text{.}\)
Evaluate \(f(x)=(x+3)(x+5)\) at each of the test points.
\begin{align*} f(-6) \amp =(-6+3)(-6+5)=3 \\ f(-4) \amp =(-4+3)(-4+5)=-1 \\ f(0) \amp =(0+3)(0+5)=15 \end{align*}
Because \(f(-6) \gt 0 \text{,}\) we place a \(+\) sign over the interval \((-\infty,-5)\text{,}\) the interval containing \(-6\text{.}\)
Similarly, using the other test points, we place a \(-\) sign over \((-5,-3)\) and a \(+\) sign over \((-3,\infty)\text{.}\)
The original inequality was \(f(x) \leq 0\text{,}\) so our solution set includes the roots and the intervals with a \(-\) sign above the number line.
Therefore, the solution is \([-5,-3]\text{.}\)

Example 3.1.17.

Solve \(x^2-2x-15 \gt 0\text{.}\)
Solution: Β  Let \(f(x)=x^2-2x-15\text{.}\)
First, find the roots of \(x^2-2x-15=0\) by factoring:
\begin{equation*} (x-5)(x+3)=0. \end{equation*}
The roots are \(-3\) and \(5\text{.}\)
Next, plot the roots on a number line. The roots divide the number line into three intervals. From each interval, select one test point. We will use \(-4\text{,}\) \(0\text{,}\) and \(6\text{.}\)
Figure 3.1.18. A number line with \(-3\) and \(5\) labeled. Each interval is labeled with the sign of \(f(x)\text{.}\)
Evaluate \(f(x)=(x-5)(x+3)\) at each of the test points.
\(f(-4)=(-4-5)(-4+3)=9\)
Positive (\(+\))
\(f(0)=(0-5)(0+3)=-15\)
Negative (\(-\))
\(f(6)=(6-5)(6+3)=9\)
Positive (\(+\))
Each test point tells us the sign of \(f(x)\) on its interval, which is why the number line is labeled as shown.
The original inequality was \(f(x) \gt 0\text{,}\) so our solution set consists of the intervals with a \(+\) sign above the number line.
Therefore, the solution is \((-\infty,-3) \cup (5,\infty)\text{.}\)

Subsection 3.1.8 Application: Maximum Height of a Projectile

Example 3.1.19.

A ball is tossed straight upward with an initial velocity of \(80\) feet per second from a rooftop that is \(12\) feet above ground level. The height of the ball, in feet, at time \(t\) seconds is given by
\begin{equation*} h(t)=-16t^2+80t+12 \end{equation*}
Find the maximum height above ground level for the ball.
Solution
Since the height is a quadratic function of \(t\) with a negative leading coefficient, the height has a maximum value at the vertex of the parabola. The \(t\)-coordinate of the vertex is
\begin{equation*} \frac{-b}{2a}=\frac{-80}{2(-16)}=2.5. \end{equation*}
So, the ball reaches its maximum height at time \(t=2.5\) seconds. The height at that time is
\begin{equation*} h(2.5)=-16(2.5)^2+80(2.5)+12=112. \end{equation*}
Therefore, the maximum height of the ball is \(112\) feet above the ground.