{ "2.2.01:_Resources_and_Key_Concepts" : "property get [Map MindTouch.Deki.Logic.ExtensionProcessorQueryProvider+<>c__DisplayClass234_0.<PageSubPageProperty>b__1]()", "2.2.02:_Homework" : "property get [Map MindTouch.Deki.Logic.ExtensionProcessorQueryProvider+<>c__DisplayClass234_0.<PageSubPageProperty>b__1]()" }
{ "2.01:_Complex_Numbers" : "property get [Map MindTouch.Deki.Logic.ExtensionProcessorQueryProvider+<>c__DisplayClass234_0.<PageSubPageProperty>b__1]()", "2.02:_Quadratic_Functions" : "property get [Map MindTouch.Deki.Logic.ExtensionProcessorQueryProvider+<>c__DisplayClass234_0.<PageSubPageProperty>b__1]()", "2.03:_Power_Functions_and_Polynomial_Functions" : "property get [Map MindTouch.Deki.Logic.ExtensionProcessorQueryProvider+<>c__DisplayClass234_0.<PageSubPageProperty>b__1]()", "2.04:_Graphs_of_Polynomial_Functions" : "property get [Map MindTouch.Deki.Logic.ExtensionProcessorQueryProvider+<>c__DisplayClass234_0.<PageSubPageProperty>b__1]()", "2.05:_Dividing_Polynomials" : "property get [Map MindTouch.Deki.Logic.ExtensionProcessorQueryProvider+<>c__DisplayClass234_0.<PageSubPageProperty>b__1]()", "2.06:_Zeros_of_Polynomial_Functions" : "property get [Map MindTouch.Deki.Logic.ExtensionProcessorQueryProvider+<>c__DisplayClass234_0.<PageSubPageProperty>b__1]()", "2.07:_Rational_Functions" : "property get [Map MindTouch.Deki.Logic.ExtensionProcessorQueryProvider+<>c__DisplayClass234_0.<PageSubPageProperty>b__1]()" }
{ "00:_Front_Matter" : "property get [Map MindTouch.Deki.Logic.ExtensionProcessorQueryProvider+<>c__DisplayClass234_0.<PageSubPageProperty>b__1]()", "01:_A_Reintroduction_to_Functions" : "property get [Map MindTouch.Deki.Logic.ExtensionProcessorQueryProvider+<>c__DisplayClass234_0.<PageSubPageProperty>b__1]()", "02:_Polynomial_and_Rational_Functions" : "property get [Map MindTouch.Deki.Logic.ExtensionProcessorQueryProvider+<>c__DisplayClass234_0.<PageSubPageProperty>b__1]()", "03:_Inverse_and_Radical_Functions" : "property get [Map MindTouch.Deki.Logic.ExtensionProcessorQueryProvider+<>c__DisplayClass234_0.<PageSubPageProperty>b__1]()", "04:_Exponential_and_Logarithmic_Functions" : "property get [Map MindTouch.Deki.Logic.ExtensionProcessorQueryProvider+<>c__DisplayClass234_0.<PageSubPageProperty>b__1]()", "05:_Sequences_Summations_and_Logic" : "property get [Map MindTouch.Deki.Logic.ExtensionProcessorQueryProvider+<>c__DisplayClass234_0.<PageSubPageProperty>b__1]()", "06:_Analytic_Geometry" : "property get [Map MindTouch.Deki.Logic.ExtensionProcessorQueryProvider+<>c__DisplayClass234_0.<PageSubPageProperty>b__1]()", "07:_Systems_of_Equations_and_Inequalities" : "property get [Map MindTouch.Deki.Logic.ExtensionProcessorQueryProvider+<>c__DisplayClass234_0.<PageSubPageProperty>b__1]()", "08:_Extracurricular_Data_Modeling" : "property get [Map MindTouch.Deki.Logic.ExtensionProcessorQueryProvider+<>c__DisplayClass234_0.<PageSubPageProperty>b__1]()", "zz:_Back_Matter" : "property get [Map MindTouch.Deki.Logic.ExtensionProcessorQueryProvider+<>c__DisplayClass234_0.<PageSubPageProperty>b__1]()" }
Fri, 03 Apr 2026 22:37:55 GMT
2.2: Quadratic Functions
174508
174508
Roy Simpson
{ }
Anonymous
Anonymous
2
false
false
[ "article:topic", "zeros of a function", "parabola", "general form of a quadratic function", "quadratic formula", "standard form of a quadratic function", "axis of symmetry", "vertex", "vertex form of a quadratic function", "authorname:openstax", "stage:final", "license:ccby", "showtoc:no", "source[1]-math-1344", "program:openstax", "licenseversion:40", "source@https://openstax.org/details/books/precalculus", "source[1]-math-114003", "author@Roy Simpson, Cosumnes River College" ]
[ "article:topic", "zeros of a function", "parabola", "general form of a quadratic function", "quadratic formula", "standard form of a quadratic function", "axis of symmetry", "vertex", "vertex form of a quadratic function", "authorname:openstax", "stage:final", "license:ccby", "showtoc:no", "source[1]-math-1344", "program:openstax", "licenseversion:40", "source@https://openstax.org/details/books/precalculus", "source[1]-math-114003", "author@Roy Simpson, Cosumnes River College" ]
This very dense sections covers everything the student will need to know about quadratic functions. Plan to spend a bit of time here as the topics go through graphing quadratics, optimization problems, the discriminant, solving equations that are quadratic-in-form, solving absolute value equations involving quadratics and quadratic inequalities, and graphing the absolute value of a quadratic function. Again, this is a very dense section.
To succeed in this section, you'll need to use some skills from previous courses. While you should already know them, this is the first time they've been required. You can review these skills in CRC's Corequisite Codex. If you have a support class, it might cover some, but not all, of these topics.
Prerequisite Skills and Support Topics (click to expand)
Solving Equations
Solving Absolute Value Equations: The section extends this to solving absolute value equations involving quadratic expressions, like \(|x^2-5x|=6\) in Example 15, which builds upon basic absolute value equation solving.
Quadratic Functions
Vertex Form and Completing the Square: This section uses vertex form \(f(x)=a(x-h)^2+k\) extensively and mentions completing the square as a method to convert from general to vertex form (Example 4). Prior knowledge is assumed.
The following is a list of learning objectives for this section.
Learning Objectives (click to expand)
Recognize characteristics of parabolas.
Understand how the graph of a parabola is related to its quadratic function.
Determine a quadratic function’s minimum or maximum value.
Solve problems involving a quadratic function’s minimum or maximum value.
Use the discriminant to determine the number of solutions to a quadratic equation.
Solve equations that are quadratic-in-form.
Solve a quadratic inequality using the graphical and sign chart methods.
Solve an absolute value equation involving a quadratic.
An array of satellite dishes. (credit: Matthew Colvin de Valle, Flickr)
Curved antennas, such as the ones shown in Figure \( \PageIndex{ 1 } \), are commonly used to focus microwaves and radio waves to transmit television and telephone signals, as well as satellite and spacecraft communication. The cross-section of the antenna is in the shape of a parabola, which can be described by a quadratic function.
In this section, we will investigate quadratic functions, which frequently model problems involving area and projectile motion. Working with quadratic functions can be less complex than working with higher degree functions, so they provide a good opportunity for a detailed study of function behavior.
It is assumed that you have already worked with quadratic functions in your prerequisite Algebra course. Therefore, a lot of the theory is mentioned in brief.
Recognizing Characteristics of Parabolas
The graph of a quadratic function is a U-shaped curve called a parabola.
Definition: Parabola
The shape in the following figure is called a parabola. Every parabola has one extreme point called the vertex. If the parabola opens up, the vertex represents the lowest point on the graph, or the minimum value of the parabola. If the parabola opens down, the vertex represents the highest point on the graph, or the maximum value. In either case, the vertex is a turning point on the graph. The graph is also symmetric with a vertical line drawn through the vertex, called the axis of symmetry. These features are illustrated in following figure.
The \( y \)-intercept is the point at which the parabola crosses the \( y \)-axis. The \( x \)-intercepts are the points at which the parabola crosses the \( x \)-axis. If they exist, the \( x \)-intercepts represent the zeros of the quadratic function, the values of \(x\) at which \(y=0\).
Definition: Zeros of Functions
The value \(c\) in the domain of the function \(f\) is called a zero of \(f\) if \(f(c) = 0\).
While we try our best in Mathematics to avoid multiple definitions for the same thing, you will sometimes hear someone say "roots" instead of zeros.
Definition: Roots of Eqautions
If \(c\) solves a given equation, we say that \(c\) is a root of the equation.
The reason for the ambiguity is that, if \(c\) is a zero of the function \(f\), then \(f(c) = 0\). That is, given the equation \(f(x) = 0\), \(c\) would be a solution because \(f(c) = 0\). Hence, zeros of a function are roots of the associated equation (and vice versa).
In any case, I will try my best to use the word "zeros" when speaking of functions and "roots" when speaking of solutions to equations; however, to most professors, either is acceptable.
Example \( \PageIndex{ 1 } \): Identifying the Characteristics of a Parabola
Determine the vertex, axis of symmetry, zeros, and \( y \)-intercept of the parabola shown in Figure \( \PageIndex{ 2 } \).
Figure \( \PageIndex{ 2 } \)
Solution
The vertex is the turning point of the graph. We can see that the vertex is at \(( 3,1 )\). Because this parabola opens upward, the axis of symmetry is the vertical line that intersects the parabola at the vertex. So the axis of symmetry is \(x=3\). This parabola does not cross the \( x \)-axis, so it has no zeros. It crosses the \( y \)-axis at \(( 0,7 )\), so this is the \( y \)-intercept.
Quadratic Functions in General Form
Recall from Algebra that the parabola is the graph of a quadratic function. There are two forms for quadratic functions (and polynomials, in general) - general form and standard form. We begin our review with the general form of a quadratic function.
Definition: General Form of a Quadratic Function
The general form of a quadratic function is\[ f(x) = a x^2 + bx + c, \nonumber \]where \( a \), \( b \), and \( c \) are real numbers and \( a \neq 0 \).
It was shown in your prerequisite Algebra course that the parabola opens upward if \(a>0\). If \(a<0\), the parabola opens downward. We can use the general form of a parabola to find the equation for the axis of symmetry. To do so, we first reintroduce a core theorem in all Algebra courses.
Theorem: Quadratic Formula
The roots of the equation\[ ax^2 + bx + c = 0, \nonumber \]where \( a \), \( b \), and \( c \) are real numbers and \( a \neq 0 \), are given by\[ x = \dfrac{-b \pm \sqrt{b^2 - 4ac}}{2a}. \nonumber \]
Proof
Suppose \( a \), \( b \), and \( c \) are real numbers, where \( a \neq 0 \). Then\[ \begin{array}{rrclcl}
& ax^2 + bx + c & = & 0 & & \\[6pt]
\implies & ax^2 + bx & = & -c & \quad & \left( \text{subtracting }c\text{ from both sides} \right) \\[6pt]
\implies & x^2 + \dfrac{b}{a}x & = & -\dfrac{c}{a} & \quad & \left( \text{dividing both sides by }a, \text{ where }a \neq 0 \right) \\[6pt]
\implies & x^2 + \dfrac{b}{a}x + \left( \dfrac{b}{2a} \right)^2 & = & -\dfrac{c}{a} + \left( \dfrac{b}{2a} \right)^2 & \quad & \left( \text{completing the square on the left side by adding }\left( \dfrac{b}{2a} \right)^2 \text{ to both sides} \right) \\[6pt]
\implies & \left(x + \dfrac{b}{2a} \right)^2 & = & -\dfrac{c}{a} + \left( \dfrac{b}{2a} \right)^2 & \quad & \left( \text{factoring the left side} \right) \\[6pt]
\implies & \left(x + \dfrac{b}{2a} \right)^2 & = & -\dfrac{c}{a} + \dfrac{b^2}{4a^2} & \quad & \left( \text{Laws of Exponents} \right) \\[6pt]
\implies & \left(x + \dfrac{b}{2a} \right)^2 & = & -\dfrac{4ac}{4a^2} + \dfrac{b^2}{4a^2} & \quad & \left( \text{getting common denominators by multiplying numerator and denominator of the first term by }4a \right) \\[6pt]
\implies & \left(x + \dfrac{b}{2a} \right)^2 & = & \dfrac{b^2 - 4ac}{4a^2} & \quad & \left( \text{combining fractions with like denominators} \right) \\[6pt]
\implies & x + \dfrac{b}{2a} & = & \pm \sqrt{\dfrac{b^2 - 4ac}{4a^2}} & \quad & \left( \text{Extraction of Roots} \right) \\[6pt]
\implies & x + \dfrac{b}{2a} & = & \pm \dfrac{\sqrt{b^2 - 4ac}}{2\sqrt{a^2}} & \quad & \left( \text{Properties of Radicals} \right) \\[6pt]
\implies & x + \dfrac{b}{2a} & = & \pm \dfrac{\sqrt{b^2 - 4ac}}{2a} & \quad & \left( \sqrt{a^2} = \pm a, \text{ but this gets "absorbed" into the }\pm\text{ out front} \right) \\[6pt]
\implies & x & = & - \dfrac{b}{2a} \pm \dfrac{\sqrt{b^2 - 4ac}}{2a} & \quad & \left( \text{subtracting }\dfrac{b}{2a} \text{ from both sides} \right) \\[6pt]
\implies & x & = & \dfrac{-b \pm \sqrt{b^2 - 4ac}}{2a} & \quad & \left( \text{combining fractions with like denominators} \right) \\[6pt]
\end{array} \nonumber \]
With the Quadratic Formula in hand, we now can find the equation for the axis of symmetry.
Theorem: Axis of Symmetry for a Quadratic Function
The vertical line, \( x = -\frac{b}{2a} \), is the axis of symmetry for the graph of the quadratic function \( f(x) = ax^2 + bx + c \), where \( a \), \( b \), and \( c \) are real numbers and \( a \neq 0 \).
Proof
To avoid complications, we only submit the proof for two cases: the quadratic function has one zero or it has two real zeros (the case for no real zeros can be derived geometrically from the latter case). Case 1 (1 Zero): Suppose the quadratic function has only one zero. Then the Quadratic Formula must return \( x = \frac{-b \pm \sqrt{0}}{2a} = -\frac{b}{2a} \) (if the radicand in the numerator was not 0, the Quadratic Formula would return two zeros, \( x = \frac{-b + \sqrt{b^2 - 4ac}}{2a} \) and \( x = \frac{-b - \sqrt{b^2 - 4ac}}{2a} \)). Hence, the vertex of the parabola (where the axis of symmetry crosses) occurs when \( x = -\frac{b}{2a} \). That is, the axis of symmetry is \( x = -\frac{b}{2a} \). Case 2 (2 Real Zeros): Suppose the quadratic function has two real zeros. Then the Quadratic Formula shows us that these occur at \( x = \frac{-b + \sqrt{b^2 - 4ac}}{2a} \) and \( x = \frac{-b - \sqrt{b^2 - 4ac}}{2a} \). Since a parabola is symmetric about its axis of symmetry, the axis of symmetry must be halfway between these two \( x \)-values. Averaging the zeros for our function, we get\[ \begin{array}{rclcl}
\dfrac{\frac{-b + \sqrt{b^2 - 4ac}}{2a} + \frac{-b - \sqrt{b^2 - 4ac}}{2a}}{2} & = & \dfrac{\frac{-b + \sqrt{b^2 - 4ac}}{2a} + \frac{-b - \sqrt{b^2 - 4ac}}{2a}}{2} \cdot \dfrac{2a}{2a} & \quad & \left( \text{simplifying the compound rational expression} \right) \\[6pt]
& = & \dfrac{-b + \sqrt{b^2 - 4ac} - b - \sqrt{b^2 - 4ac}}{4a} & \quad & \left( \text{distributing} \right) \\[6pt]
& = & \dfrac{-2b}{4a} & \quad & \left( \text{simplifying} \right) \\[6pt]
& = & -\dfrac{b}{2a} & \quad & \left( \text{simplifying} \right) \\[6pt]
\end{array} \nonumber \]Hence, the axis of symmetry is \( x = -\frac{b}{2a} \).
Figure \( \PageIndex{ 3 } \) represents the graph of the quadratic function written in general form as \(y= x^2 +4x+3\). In this form, \(a=1\), \(b=4\), and \(c=3\). Because \(a>0\), the parabola opens upward. The axis of symmetry is \(x= -\frac{4}{2( 1 )} =-2\). This also makes sense, because we can see from the graph that the vertical line \(x=-2\) divides the graph in half. The vertex always occurs along the axis of symmetry. For a parabola that opens upward, the vertex occurs at the lowest point on the graph, in this instance, \((-2,-1)\). The \( x \)-intercepts, those points where the parabola crosses the \( x \)-axis, occur at \((-3,0)\) and \((-1,0)\).
Figure \( \PageIndex{ 3 } \)
Since the vertex always occurs where the axis of symmetry intersects the parabola, we immediately get the following theorem.
Theorem: Coordinates of the Vertex
The vertex of the quadratic function \( f(x) = ax^2 + bx + c \) is located at the point \( \left( -\frac{b}{2a}, f\left( -\frac{b}{2a} \right) \right) \).
Proof
Since the vertex occurs where the axis of symmetry intersects the graph of the quadratic function, the \( x \)-coordinate of this intersection is \( x = -\frac{b}{2a} \). The corresponding \( y \)-coordinate is \( f\left( -\frac{b}{2a} \right) \).
The general form of a quadratic function is commonly encountered in applications and Physics. While most Algebra textbooks focus on the second form (standard form), you should strive to understand both forms.
Quadratic Functions in Standard Form
The general form of a quadratic can be incredibly useful; however, we cannot escape the need to talk about a quadratic function's alternate identity - the standard form.
Definition: Standard Form of a Quadratic Function
The standard form of a quadratic function is\[ f(x) = a \left( x - h \right)^2 + k, \nonumber \]where \( a \), \( h \), and \( k \) are real numbers and \( a \neq 0 \). This is also known as vertex form.
The standard form of a quadratic function has a very appealing feature.
Theorem: Vertex of a Quadratic Function in Standard Form
The vertex of the quadratic function given in the standard form\[ f(x) = a \left( x - h \right)^2 + k \nonumber \]is \( \left( h,k \right) \).
That is, if given a quadratic function in standard form, you have little-to-no work involved in finding its vertex.
As with the general form, if \(a>0\), the parabola opens upward and the vertex is a minimum. If \(a<0\), the parabola opens downward, and the vertex is a maximum. Figure \( \PageIndex{ 4 } \) represents the graph of the quadratic function written in standard form as \(y=-3 ( x+2 )^2 +4\). Since \(x–h=x+2\) in this example, \(h=–2\). In this form, \(a=-3\), \(h=-2\), and \(k=4\). Because \(a<0\), the parabola opens downward. The vertex is at \(( -2, 4 )\).
Figure \( \PageIndex{ 4} \)
The standard form is useful for determining how the graph is transformed from the graph of \(y= x^2 \). Figure \( \PageIndex{ 5 } \) is the graph of this basic function.
Figure \( \PageIndex{ 5 } \)
From our previous work with transformations of functions, if \(k>0\), the graph shifts upward, whereas if \(k<0\), the graph shifts downward. In Figure \( \PageIndex{ 4 } \), \(k>0\), so the graph is shifted 4 units upward. If \(h>0\), the graph shifts toward the right and if \(h<0\), the graph shifts to the left. In Figure \( \PageIndex{ 4 } \), \(h<0\), so the graph is shifted 2 units to the left. Again, from transformations, we know that the magnitude of \(a\) indicates the stretch of the graph. If \(| a |>1\), the point associated with a particular \( x \)-value shifts farther from the \( x \)-axis, so the graph appears to become narrower (this is an illusion), and there is a vertical stretch. But if \(| a |<1\), the point associated with a particular \( x \)-value shifts closer to the \( x \)-axis, so the graph appears to become wider (another illusion), but in fact there is a vertical compression. In Figure \( \PageIndex{ 4 } \), \(| a |>1\), so the graph appears narrower.
The standard form and the general form are equivalent methods of describing the same function. We can see this by expanding out the general form and setting it equal to the standard form.\[ \begin{array}{rrcl}
& a (x-h)^2 +k & = & a x^2 +bx+c \\[6pt]
\implies & a x^2 -2ahx+(a h^2 +k) & = & a x^2 +bx+c \\[6pt]
\end{array} \nonumber \]For the linear terms to be equal, the coefficients must be equal.\[ –2ah = b \implies h=- \dfrac{b}{2a}. \nonumber \]This is the axis of symmetry we defined earlier. Setting the constant terms equal, we get\[ \begin{array}{rrcl}
& a h^2 +k & = & c \\[6pt]
\implies & k & = & c-a h^2 \\[6pt]
& & = & c-a\left(- \dfrac{b}{2a} \right)^2 \\[6pt]
& & = & c- \dfrac{b^2}{4a}. \\[6pt]
\end{array} \nonumber \]In practice, though, it is usually easier to remember that \( k \) is the output value of the function when the input is \(h\), so \(f(h)=k\).
Example \( \PageIndex{ 2 } \): Writing the Equation of a Quadratic Function from the Graph
Write an equation for the quadratic function \(g\) in Figure \( \PageIndex{ 6 } \) as a transformation of \(f(x)= x^2 \), and then expand the formula and simplify terms to write the equation in general form.
Figure \( \PageIndex{ 6 } \)
Solution
We can see the graph of \( g \) is the graph of \(f(x)= x^2\) shifted to the left 2 and down 3, giving a formula in the form \(g(x)=a (x+2)^2 –3\). Substituting the coordinates of any point on the curve, such as \((0,-1)\), we can solve for the stretch factor.\[ \begin{array}{rrcl}
& -1 & = & a (0+2)^2 -3 \\[6pt]
\implies & 2 & = & 4a \\[6pt]
\implies & \dfrac{1}{2} & = & a \\[6pt]
\end{array} \nonumber \]In standard form, the algebraic model for this graph is \(g(x)= \frac{1}{2} (x+2)^2 –3\).
To write this in general polynomial form, we can expand the formula and simplify terms.\[ \begin{array}{rcl}
g(x) & = & \dfrac{1}{2} (x+2)^2 -3 \\[6pt]
& = & \dfrac{1}{2} (x+2)(x+2)-3 \\[6pt]
& = & \dfrac{1}{2} ( x^2 +4x+4)-3 \\[6pt]
& = & \dfrac{1}{2} x^2 +2x+2-3 \\[6pt]
& = & \dfrac{1}{2} x^2 +2x-1 \\[6pt]
\end{array} \nonumber \]Notice that the horizontal and vertical shifts of the basic graph of the quadratic function determine the location of the vertex of the parabola; the vertex is unaffected by stretches and compressions.
Checkpoint \( \PageIndex{ 2 } \)
A coordinate grid has been superimposed over the quadratic path of a basketball in Figure \( \PageIndex{ 7 } \). Find an equation for the path of the ball. Does the shooter make the basket?
Figure \( \PageIndex{ 7 } \)
(credit: modification of work by Dan Meyer)
Example \( \PageIndex{ 3 } \): Finding the Vertex of a Quadratic Function
Find the vertex of the quadratic function \(f(x)=2 x^2 –6x+7\). Rewrite the quadratic in standard form (vertex form).
Solution
The horizontal coordinate of the vertex will be at\[ h = –\dfrac{b}{2a} = –\dfrac{–6}{2(2)} = \dfrac{6}{4} = \dfrac{3}{2}. \nonumber \]The vertical coordinate of the vertex will be at\[k = f(h) = f\left( \dfrac{3}{2} \right) = 2 \left( \dfrac{3}{2} \right)^2 -6\left( \dfrac{3}{2} \right)+7 = \dfrac{5}{2}. \nonumber \]Rewriting into standard form, the stretch factor will be the same as the \(a\) in the original quadratic. Therefore, using the vertex to determine the shifts,\[f( x ) = 2 \left(x - \dfrac{3}{2} \right)^2 + \dfrac{5}{2}. \nonumber \]One reason we may want to identify the vertex of the parabola is that this point will inform us where the maximum or minimum value of the output occurs \(( k )\) and where it occurs \(( x )\).
If given a quadratic function in general form, most students are going to use the formula \( -\frac{b}{2a} \) to find the \( x \)-value of the vertex (and substitute this into the original quadratic function to find the corresponding \( y \)-value for the vertex). This is perfectly fine, and it will always lead you to the vertex of a given quadratic function; however, another approach, which is inevitably going to be necessary in this course, is to complete the square like you did in your Elementary Algebra course (and as we did in the proof of the Quadratic Formula).
Example \(\PageIndex{4}\): Rewriting in Standard Form Using Completing the Square
Rewrite the quadratic function \( f(x) = 2x^2 - 6x + 7 \) in standard (vertex) form by Completing the Square.
Solution
Since Completing the Square is an older skill, we will just use it here rather than explaining the entire process.\[ \begin{array}{rclcl}
f(x) & = & 2x^2 - 6x + 7 & & \\[6pt]
& = & 2(x^2 - 3x) + 7 & \quad & \left( \text{factoring the lead coefficient from both variable terms} \right) \\[6pt]
& = & 2\left(x^2 - 3x + {\color{red}\left( \dfrac{-3}{2} \right)^2} \right) + 7 {\color{red}-2 \left( \dfrac{-3}{2} \right)^2} & \quad & \left( \text{Completing the Square and offsetting the }2\left( \dfrac{-3}{2} \right)^2 \text{ term with }-2\left( \dfrac{-3}{2} \right)^2 \right) \\[6pt]
& = & 2\left(x - \dfrac{3}{2} \right)^2 + 7 -2 \left( \dfrac{9}{4} \right) & \quad & \left( \text{factoring and simplifying} \right) \\[6pt]
& = & 2\left(x - \dfrac{3}{2} \right)^2 + \dfrac{14}{2} - \dfrac{9}{2} & \quad & \left( \text{common denominator} \right) \\[6pt]
& = & 2\left(x - \dfrac{3}{2} \right)^2 + \dfrac{5}{2} & \quad & \left( \text{simplifying} \right) \\[6pt]
\end{array} \nonumber \]
Important Skill: Completing the Square
The purpose of being introduced to the process of Completing the Square in your Algebra courses was to prove the Quadratic Formula. We now see that this same process can be used to rewrite a quadratic function in vertex form; however, these are not the only uses of Completing the Square. We will use this skill again in this course when working with conic sections. In Calculus II, you will find many opportunities to use this very same skill when manipulating a seemingly impossible-to-work-with expression into something more simple.
Checkpoint \( \PageIndex{ 4 } \)
Given the equation \(g(x)=13+ x^2 -6x\), write the equation in general form and then in standard form.
At the beginning of Calculus, the difference quotient is used on several different types of functions; however, one of the most common encounters is with quadratic functions.
Example \(\PageIndex{5}\): Revisiting the Difference Quotient
Find the difference quotient for the function.\[ f(x) = -3x^2 + 2x + 1\nonumber \]
Finding the Domain and Range of a Quadratic Function
Any number can be the input value of a quadratic function. Therefore, the domain of any quadratic function is all real numbers; however, because parabolas have a maximum or a minimum point, the range is restricted. Since the vertex of a parabola will be either a maximum or a minimum, the range will consist of all \( y \)-values greater than or equal to the \( y \)-coordinate at the turning point or less than or equal to the \( y \)-coordinate at the turning point, depending on whether the parabola opens up or down.
Theorem: Domain and Range of a Quadratic Function
The domain of any quadratic function is all real numbers.
The range of a quadratic function written in general form, \(f(x)=a x^2 +bx+c\), with a positive \(a\) value is \(f(x) \geq f\left( -\frac{b}{2a} \right)\), or \(\left[ f\left( -\frac{b}{2a} \right), \infty \right)\).
The range of a quadratic function written in general form with a negative \(a\) value is \(f(x) \leq f\left( -\frac{b}{2a} \right)\), or \(\left( -\infty , f\left( -\frac{b}{2a} \right) \right]\).
The range of a quadratic function written in standard form, \(f(x)=a (x-h)^2 +k\), with a positive \(a\) value is \(f(x) \geq k\); the range of a quadratic function written in standard form with a negative \(a\) value is \(f(x) \leq k\).
The theorem above is only provided for completeness - it should not be memorized.
Example \( \PageIndex{ 6 } \): Finding the Domain and Range of a Quadratic Function
Find the domain and range of \(f(x)=-5 x^2 +9x-1\).
Solution
As with any quadratic function, the domain is all real numbers.
Because \(a\) is negative, the parabola opens downward and has a maximum value. We need to determine the maximum value. We can begin by finding the \( x \)-value of the vertex.\[h=-\dfrac{b}{2a} =-\dfrac{9}{2(-5)} = \dfrac{9}{10}. \nonumber \]The maximum value is given by \(f(h)\).\[f\left( \dfrac{9}{10} \right) = -5 \left( \dfrac{9}{10} \right)^2 +9\left( \dfrac{9}{10} \right)-1 = \dfrac{61}{20}. \nonumber \]The range is \(\left( -\infty , \frac{61}{20} \right]\).
Checkpoint \( \PageIndex{ 6 } \)
Find the domain and range of \(f(x)=2 \left(x - \frac{4}{7} \right)^2 + \frac{8}{11} \).
Determining the Maximum and Minimum Values of Quadratic Functions
The output of the quadratic function at the vertex is the maximum or minimum value of the function, depending on the orientation of the parabola. We can see the maximum and minimum values in Figure \( \PageIndex{ 8 } \).
Figure \( \PageIndex{ 8 } \)
There are many real-world scenarios that involve finding the maximum or minimum value of a quadratic function, such as applications involving area and revenue.
Example \( \PageIndex{ 7 } \): Finding the Maximum Value of a Quadratic Function
A backyard farmer wants to enclose a rectangular space for a new garden within her fenced backyard. She has purchased 80 feet of wire fencing to enclose three sides, and she will use a section of the backyard fence as the fourth side.
Find a formula for the area enclosed by the fence if the sides of fencing perpendicular to the existing fence have length \(L\).
What dimensions should she make her garden to maximize the enclosed area?
Solutions
Let’s use a diagram such as Figure \( \PageIndex{ 9 } \) to record the given information. It is also helpful to introduce a temporary variable, \(W\), to represent the width of the garden and the length of the fence section parallel to the backyard fence.
Figure \( \PageIndex{ 9 } \)
We know we have only 80 feet of fence available, and \(L+W+L=80\), or more simply, \(2L+W=80\). This allows us to represent the width, \( W \), in terms of \( L \):\[W=80-2L. \nonumber \]Now we are ready to write an equation for the area the fence encloses. We know the area of a rectangle is length multiplied by width, so\[ A = LW =L (80-2L) = 80L-2 L^2. \nonumber \]This formula represents the area of the fence in terms of the variable length \(L\). The function, written in general form, is\[A(L)=-2 L^2 +80L. \nonumber \]
The quadratic has a negative leading coefficient, so the graph will open downward, and the vertex will be the maximum value for the area. In finding the vertex, we must be careful because the equation is not written in standard polynomial form with decreasing powers. This is why we rewrote the function in general form above. Since \(a\) is the coefficient of the squared term, \(a=-2\), \(b=80\), and \(c=0\).
To find the vertex:\[ \begin{array}{rclcrcl}
h & = & - \dfrac{80}{2(-2)} & \quad & k & = & A(20) \\[6pt]
& = & 20 & \text{and} & & = & 80(20) -2(20)^2 \\[6pt]
& & & & & = & 800 \\[6pt]
\end{array} \nonumber \]The maximum value of the function is an area of 800 square feet, which occurs when \(L=20\) feet. When the shorter sides are 20 feet, there is 40 feet of fencing left for the longer side. To maximize the area, she should enclose the garden so the two shorter sides have length 20 feet and the longer side parallel to the existing fence has length 40 feet.
Example \( 7 \) also could be solved by graphing the quadratic function. We can see where the maximum area occurs on a graph of the quadratic function in Figure \( \PageIndex{ 10 } \).
Figure \( \PageIndex{ 10 } \)
Example \( \PageIndex{ 8 } \): Finding Maximum Revenue
The unit price of an item affects its supply and demand. That is, if the unit price goes up, the demand for the item will usually decrease. For example, a local newspaper currently has 84,000 subscribers at a quarterly charge of $30. Market research has suggested that if the owners raise the price to $32, they would lose 5,000 subscribers. Assuming that subscriptions are linearly related to the price, what price should the newspaper charge for a quarterly subscription to maximize their revenue?
Solution
Revenue is the amount of money a company brings in. In this case, the revenue can be found by multiplying the price per subscription times the number of subscribers, or quantity. We can introduce variables, \(p\) for price per subscription and \(Q\) for quantity, giving us the equation\[\text{Revenue}=pQ. \nonumber \]Because the number of subscribers changes with the price, we need to find a relationship between the variables. We know that currently \(p=30\) and \(Q=84,000\). We also know that if the price rises to $32, the newspaper would lose 5,000 subscribers, giving a second pair of values, \(p=32\) and \(Q=79,000\). From this we can find a linear equation relating the two quantities. The slope will be\[ m= \dfrac{79,000-84,000}{32-30} = \dfrac{-5,000}{2} = -2,500. \nonumber \]This tells us the paper will lose 2,500 subscribers for each dollar they raise the price. We can then solve for the \( y \)-intercept.\[ \begin{array}{rrclcl}
& Q & = & -2500p+b & & \\[6pt]
\implies & 84,000 & =& -2500(30)+b & \quad & \left( \text{substituting} \right) \\[6pt]
\implies & b & = & 159,000 & \quad & \left( \text{isolating the variable} \right) \\[6pt]
\end{array} \nonumber \]This gives us the linear equation \(Q=-2,500p+159,000\) relating cost and subscribers. We now return to our revenue equation.\[ \begin{array}{rrcl}
& \text{Revenue} & = & pQ \\[6pt]
\implies & \text{Revenue} & = & p(-2,500p+159,000) \\[6pt]
\implies & \text{Revenue} & = & -2,500 p^2 +159,000p \\[6pt]
\end{array} \nonumber \]We now have a quadratic function for revenue as a function of the subscription charge. To find the price that will maximize revenue for the newspaper, we can find the vertex.\[h =-\dfrac{159,000}{2(-2,500)} = 31.8. \nonumber \]The model tells us that the maximum revenue will occur if the newspaper charges $31.80 for a subscription. To find what the maximum revenue is, we evaluate the revenue function.\[\text{maximum revenue} = -2,500 (31.8)^2 +159,000(31.8) = 2,528,100. \nonumber \]
As before, Example \( \PageIndex{ 8 } \) could also be solved by graphing the quadratic as in Figure \( \PageIndex{ 11 } \). We can see the maximum revenue on a graph of the quadratic function.
Figure \( \PageIndex{ 11 } \)
Finding the \( x \)- and \( y \)-Intercepts of a Quadratic Function
Much as we did in the application problems above, we also need to find intercepts of quadratic equations for graphing parabolas. Recall that we find the \( y \)-intercept of a quadratic by evaluating the function at an input of zero, and we find the \( x \)-intercepts at locations where the output is zero. Notice in Figure \( \PageIndex{ 12 } \) that the number of \( x \)-intercepts can vary depending upon the location of the graph.
Figure \( \PageIndex{ 12 } \)
Number of \( x \)-intercepts of a parabola
Example \( \PageIndex{ 9 } \): Finding the \( y \)- and \( x \)-Intercepts of a Parabola
Find the \( y \)- and \( x \)-intercepts of the quadratic \(f(x)=3 x^2 +5x-2\).
Solution
We find the \( y \)-intercept by evaluating \(f( 0 )\).\[f(0) =3 (0)^2 +5(0)-2 =-2. \nonumber \]So the \( y \)-intercept is at \(( 0,-2 )\).
For the \( x \)-intercepts, we find all solutions of \(f( x )=0\). That is, we want to solve\[0=3 x^2 +5x-2. \nonumber \]In this case, the quadratic can be factored easily, providing the simplest method for solution.\[0=(3x-1)(x+2). \nonumber \]Thus, \(x= \frac{1}{3} \) or \(x=-2\). So the \( x \)-intercepts are at \(\left( \frac{1}{3}, 0 \right)\) and \(( -2,0 )\).
By graphing the function, we can confirm that the graph crosses the \( y \)-axis at \((0,-2)\). We can also confirm that the graph crosses the \( x \)-axis at \(\left( \frac{1}{3}, 0 \right)\) and \((-2,0)\). See Figure \( \PageIndex{ 13 } \)
Figure \( \PageIndex{ 13 } \)
Example \( 9 \) illustrates a strength of having the general form of a quadratic function - the \( y \)-intercept is the constant term. That is, given \( f(x) = ax^2 + bx + c\), the \( y \)-intercept is \( f(0) = c \). This is only true, however, when the quadratic is given in general form.
Another lesson to be learned from Example \( \PageIndex{ 9 } \) is that to solve \( ax^2 + bx + c = 0 \), we don't have to always resort to the Quadratic Formula. In fact, whenever you need to solve a quadratic equation, you should spend about 30 seconds or so trying to factor the given quadratic before plunging into the algorithm called the Quadratic Formula.
As Figure \( \PageIndex{ 12 } \) illustrates, there are some quadratic functions that do not have \( x \)-intercepts. Algebraically, this occurs when the given quadratic function is prime. Just like a prime number, a prime quadratic is not factorable (across the real number system). That is, no matter how ingenious we are, we will never be able to write a prime quadratic in the form \( \left( c_1 x + d_1 \right)\left( c_2 x + d_2 \right) \) (where \( c_1 \), \( c_2 \), \( d_1 \), and \( d_2 \) are real numbers).
In Mathematics, we always strive to develop methods to reduce our workload. It would be nice to know ahead of time that the quadratic function \( f(x) = ax^2 + bx + c \) is prime. Knowing this would allow us to skip trying to find any \( x \)-intercepts. Luckily, we have such a method.
The \( x \)-intercepts of a quadratic function occur when \( ax^2 + bx + c = 0 \). We know from the Quadratic Formula that the solutions to this equation are \( x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a} \). However, the \( x \)-axis is a real number axis. That is, only real numbers exist along the \( x \)-axis. Hence, our \( x \)-intercepts cannot be imaginary numbers.
From our previous work, we know we have an imaginary number if our expression contains the square root of a negative number. Therefore, we don't want the radicand in the numerator of the Quadratic Formula to be negative. That is, we require \( b^2 - 4ac \geq 0\). This expression is so important in Mathematics, it deserves its own name.
Definition: Discriminant
The discriminant of the quadratic function \( f(x) = ax^2 + bx + c \) is defined to be\[ D = b^2 - 4ac. \nonumber \]
From our discussion above, if the discriminant is negative, the quadratic function will not have any \( x \)-intercepts. Likewise, if the discriminant is negative, the equation \( ax^2 + bx + c = 0 \) will not have real solutions.
If the discriminant is \( 0 \), then (from the Quadratic Formula) the \( x \)-intercepts for the quadratic function would occur at\[ x = \dfrac{-b \pm\sqrt{0}}{2a} = -\dfrac{b}{2a}. \nonumber \]Since this is a single value, a discriminant of \( 0 \) implies that the graph of the quadratic function has only one \( x \)-intercept (as seen in the middle frame of Figure \( \PageIndex{ 12 } \)).
When the discriminant is positive, the quadratic function has two real roots, which means its graph crosses the \( x \)-axis twice.
Theorem: Zeros of a Quadratic Function and the Discriminant
Let\[ f(x) = ax^2 + bx + c. \nonumber \]The graph of \( f \) has
two \( x \)-intercepts if the discriminant is positive,
one \( x \)-intercept if the discriminant is \( 0 \), and
no \( x \)-intercepts if the discriminant is negative.
Another way to say this is the equation, \( ax^2 + bx + c = 0 \), has
two real roots if the discriminant is positive,
one real root if the discriminant is \( 0 \), and
two non-real roots if the discriminant is negative.
Example \(\PageIndex{10}\): Using the Discriminant to Save Time
Find the \( y \)- and \( x \)-intercepts of the quadratic \(f(x)=-3 x^2 +4x-2\).
Solution
Since the quadratic function is already in general form, finding the \( y \)-intercept is as simple as looking for the constant term. In this case, \( \left( 0,-2 \right) \) is the \( y \)-intercept.
As for any \( x \)-intercepts, per my advice earlier, we spend roughly 30 seconds trying to factor the function, but have no success. Before running straight to the full Quadratic Formula, let's only compute one part - the discriminant (heck, we need to anyway if we are eventually going to use the Quadratic Formula).\[ b^2 - 4ac = 4^2 - 4(-3)(-2) = 16 - 24 = -8 < 0. \nonumber \]Since the discriminant is negative, the function doesn't have any \( x \)-intercepts.
It is important to clarify that finding the \( x \)-intercepts (or roots) of a quadratic function and solving a quadratic equation are often, but not always, the same thing. How are these processes different? Since the horizontal intercepts of a graph can only be real numbers, we stop our search for such intercepts if the discriminant of the quadratic function is negative. In contrast, the solutions to a random quadratic equation can be imaginary, and therefore the discriminant can be negative.
Example \(\PageIndex{11}\): Solving a Quadratic Equation
Find all the solutions of the quadratic equation.\[0=-3 x^2 +4x-2 \nonumber \]
Solution
From Example \( \PageIndex{ 10 } \), we know the discriminant is \( -8 \). Thus, the solutions of this equation are going to be imaginary. An incredibly important piece of advice is to start our solution process by multiplying both sides of the given equation by \( -1 \). We do this because the original lead coefficient is negative, which only serves to complicate using the Quadratic Formula. Therefore, let's focus on solving\[ 0 = 3x^2 - 4x + 2. \nonumber \]Note that the discriminant,\[ b^2 - 4ac = (-4)^2 - 4(3)(2) = 16 - 24 = -8 \nonumber \]doesn't change when multiplying both sides of the quadratic equation by \( -1 \). Now we can solve.\[ \begin{array}{rclcl}
x & = & \dfrac{-b \pm \sqrt{b^2 - 4ac}}{2a} & \quad & \left( \text{Quadratic Formula} \right) \\[6pt]
& = & \dfrac{-(-4) \pm \sqrt{\text{discriminant}}}{2(3)} & \quad & \left( \text{substituting} \right) \\[6pt]
& = & \dfrac{4 \pm \sqrt{-8}}{6} & \quad & \left( \text{substituting and simplifying} \right) \\[6pt]
& = & \dfrac{4 \pm \sqrt{4 \cdot -2}}{6} & & \\[6pt]
& = & \dfrac{4 \pm 2 \sqrt{-2}}{6} & \quad & \left( \text{simplifying the radical} \right) \\[6pt]
& = & \dfrac{4 \pm 2 \sqrt{-1} \sqrt{2}}{6} & & \\[6pt]
& = & \dfrac{4 \pm 2 i \sqrt{2}}{6} & \quad & \left( \sqrt{-1} = i \right) \\[6pt]
& = & \dfrac{4}{6} \pm \dfrac{2 i \sqrt{2}}{6} & \quad & \left( \text{splitting the fraction} \right) \\[6pt]
& = & \dfrac{2}{3} \pm \dfrac{i \sqrt{2}}{3} & \quad & \left( \text{simplifying fractions} \right) \\[6pt]
& = & \dfrac{2}{3} \pm \dfrac{\sqrt{2}}{3}i & \quad & \left( \text{rewriting in the standard form of a complex number} \right) \\[6pt]
\end{array} \nonumber \]
Example \( \PageIndex{ 12} \): Finding the \( x \)-Intercepts of a Parabola
Find the \( x \)-intercepts of the quadratic function \(f(x)=2 x^2 +4x-4\).
Solution
We begin by solving for when the output will be zero; however, because this quadratic is not easily factorable, we start by checking the discriminant to see if there are any \( x \)-intercepts at all.\[ b^2 - 4ac = 4^2 - 4(2)(-4) = 16 + 32 = 48 > 0. \nonumber \]Thus, there will be two \( x \)-intercepts. Our time computing the discriminant is not wasted since we will need its value when solving the equation \( 2 x^2 + 4x - 4 = 0 \). Use the Quadratic Formula, we get the following:\[ \begin{array}{rclcl}
x & = & \dfrac{-b \pm \sqrt{b^2 - 4ac}}{2a} & \quad & \left( \text{Quadratic Formula} \right) \\[6pt]
& = & \dfrac{-4 \pm \sqrt{\text{discriminant}}}{2(2)} & \quad & \left( \text{substituting} \right) \\[6pt]
& = & \dfrac{-4 \pm \sqrt{48}}{4} & \quad & \left( \text{substituting} \right) \\[6pt]
& = & \dfrac{-4 \pm \sqrt{16 \cdot 3}}{4} & & \\[6pt]
& = & \dfrac{-4 \pm 4\sqrt{3}}{4} & \quad & \left( \text{simplifying the radical expression} \right) \\[6pt]
& = & \dfrac{4(-1 \pm \sqrt{3})}{4} & \quad & \left( \text{factoring out the GCF from the numerator} \right) \\[6pt]
& = & \dfrac{\cancelto{1}{4}(-1 \pm \sqrt{3})}{\cancelto{1}{4}} & \quad & \left( \text{canceling like factors} \right) \\[6pt]
& = & -1 \pm \sqrt{3} & & \\[6pt]
\end{array} \nonumber \]The graph has \( x \)-intercepts at \((-1-\sqrt{ 3 } ,0)\) and \((-1+\sqrt{ 3 } ,0)\).
Again, we can check our work for Example \( \PageIndex{ 12} \) by graphing the given function on a graphing utility and observing the \( x \)-intercepts. See Figure \( \PageIndex{ 14 } \).
Figure \( \PageIndex{ 14 } \)
Checkpoint \( \PageIndex{ 12} \)
In a separate Checkpoint, we found the standard and general form for the function \(g(x)=13+ x^2 -6x\). Now find the \( y \)- and \( x \)-intercepts (if any).
Solving Quadratic Inequalities
We now turn our attention to quadratic inequalities.
Definition: Quadratic Inequality
A quadratic inequality is an inequality that contains a quadratic expression. This inequality can be written in any of the following forms:\[ \begin{array}{lcl}
a x^2+b x+c <0 & \quad & a x^2+b x+c \leq 0 \\[6pt]
a x^2+b x+c>0 & \quad & a x^2+b x+c \geq 0 \\[6pt]
\end{array} \nonumber \]
If we consider \(f(x) = x^2-x-6\), then solving \(x^2 - x -6 < 0\) corresponds graphically to finding the values of \(x\) for which the graph of \(y=f(x)=x^2-x-6\) (the parabola) is below the graph of \(y=0\) (the \(x\)-axis). See Figure \( \PageIndex{ 15 } \).
Figure \( \PageIndex{15} \)
We can see that the graph of \(f\) dips below the \(x\)-axis between its two \(x\)-intercepts. The zeros of \(f\) are \(x=-2\) and \(x=3\) in this case and they divide the domain (the \(x\)-axis) into three intervals: \((-\infty, -2)\), \((-2,3)\) and \((3, \infty)\). For every number in \((-\infty, -2)\), the graph of \(f\) is above the \(x\)-axis; in other words, \(f(x) > 0\) for all \(x\) in \((-\infty, -2)\). Similarly, \(f(x) < 0\) for all \(x\) in \((-2,3)\), and \(f(x) > 0\) for all \(x\) in \((3, \infty)\). Thus, the solution to \(x^2 - x -6 < 0\) is all \( x \) in the interval \( \left( -2,3 \right) \).
The method introduced above (graphing the quadratic function and determining when the graph satisfies the inequality) is called the graphical method of solving a quadratic inequality. This is the method I prefer to teach in my courses because it simultaneously reinforces graphing and it is much faster (in the long run) than the alternative method. Before discussing the alternative method, let's look at a couple examples.
Example \( \PageIndex{13} \): Solving Quadratic Inequalities Using the Graphing Method
Solve the following inequalities using the graphing method.
\(2x^2 \leq 3-x\)
\(x^2 - 2x > 1\)
Solutions
To solve \(2x^2 \leq 3-x\), we first get \(0\) on one side of the inequality which yields \(2x^2+x-3 \leq 0\). Therefore, we want to know when the function \( f(x) = 2x^2 + x - 3 \) is at or below the \( x \)-axis. Since the lead coefficient is positive, we know the parabola representing \( f \) opens upward. We just need to find the zeros of \(f\) by solving \(2x^2 + x - 3 = 0\) for \(x\). Factoring gives \((2x+3)(x-1)=0\), so \(x = -\frac{3}{2}\) or \(x = 1\). A simple and quick sketch yields the following:
By our sketch, we can see \( f(x) \) is at or below the \( x \)-axis on the interval \( \left[ -\frac{3}{2}, 1 \right] \). This is the solution to our inequality.
Once again, we rewrite \(x^2-2x > 1\) as \(x^2-2x-1>0\) and we identify \(f(x)=x^2-2x-1\). When we go to find the zeros of \(f\), we find, to our chagrin, that the quadratic \(x^2-2x-1\) doesn’t factor nicely. Hence, we resort to the Quadratic Formula to solve \(x^2-2x-1=0\), and arrive at \(x=1 \pm \sqrt{2}\). As before, our parabola is opening upward. We spend a moment sketching the graph of \( f \) and asking ourselves when the parabola is strictly above the \( x \)-axis (because we are solving \( f(x) > 0 \)).
So, we see that the interval notation \(\left(-\infty, 1-\sqrt{2}\right) \cup \left(1+\sqrt{2},\infty\right)\) solves our inequality.
The alternative method is called the sign chart method of solving a quadratic inequality. Like the graphical method, we start by finding the \( x \)-intercepts. We then mark those intercepts on a number line. For example, considering our original inequality \( x^2 - x - 6< 0 \), we would create the sign chart in Figure \( \PageIndex{16} \).
Figure \( \PageIndex{16} \)
Here, the \((+)\) above a portion of the number line indicates \(f(x) > 0\) for those values of \(x\); the \((-)\) indicates \(f(x) < 0\) there. The numbers labeled on the number line are the zeros of \(f\), so we place \(0\) above them. We see at once that the solution to \(f(x) < 0\) is \((-2,3)\).
An important propertyof quadratic functions is that if the function is positive at one point and negative at another, the function must have at least one zero in between. Graphically, this means that a parabola can’t be above the \(x\)-axis at one point and below the \(x\)-axis at another point without crossing the \(x\)-axis. This allows us to determine the sign of all of the function values on a given interval by testing the function at just one value in the interval. We use this idea in the following example.
Example \( \PageIndex{14} \): Solving Quadratic Inequalities Using the Sign Chart Method
Solve the following inequalities analytically using sign diagrams. Verify your answer graphically.
\(2x^2 \leq 3-x\)
\(x^2 - 2x > 1\)
Solutions
To solve \(2x^2 \leq 3-x\), we first get \(0\) on one side of the inequality which yields \(2x^2+x-3 \leq 0\). We find the zeros of \(f(x) = 2x^2 + x - 3\) by solving \(2x^2 + x - 3 = 0\) for \(x\). Factoring gives \((2x+3)(x-1)=0\), so \(x = -\frac{3}{2}\) or \(x = 1\). We place these values on the number line with \(0\) above them and choose test values in the intervals \(\left(-\infty, -\frac{3}{2}\right)\), \(\left(-\frac{3}{2},1\right)\) and \((1,\infty)\). For the interval \(\left(-\infty, -\frac{3}{2}\right)\), we choose \(x=-2\); for \(\left(-\frac{3}{2},1\right)\), we pick \(x=0\); and for \((1,\infty)\), \(x=2\). Evaluating the function at the three test values gives us \(f(-2) = 3 > 0\), so we place \((+)\) above \(\left(-\infty, -\frac{3}{2}\right)\); \(f(0)=-3 < 0\), so \((-)\) goes above the interval \(\left(-\frac{3}{2},1\right)\); and, \(f(2) = 7\), which means \((+)\) is placed above \((1,\infty)\).
Since we are solving \(2x^2+x-3 \leq 0\), we look for solutions to \(2x^2+x-3 < 0\) as well as solutions for \(2x^2+x-3 =0\). For \(2x^2+x-3 < 0\), we need the intervals which we have a \((-)\). Checking the sign diagram, we see this is \(\left(-\frac{3}{2},1\right)\). We know \(2x^2+x-3 =0\) when \(x=-\frac{3}{2}\) and \(x=1\), so our final answer is \(\left[-\frac{3}{2},1\right]\).
To verify our solution graphically, we refer to the original inequality, \(2x^2 \leq 3-x\). We let \(g(x) = 2x^2\) and \(h(x)=3-x\). We are looking for the \(x\) values where the graph of \(g\) is below that of \(h\) (the solution to \(g(x) < h(x)\)) as well as the points of intersection (the solutions to \(g(x)=h(x)\)).
Once again, we re-write \(x^2-2x > 1\) as \(x^2-2x-1>0\) and we identify \(f(x)=x^2-2x-1\). When we go to find the zeros of \(f\), we find, to our chagrin, that the quadratic \(x^2-2x-1\) doesn’t factor nicely. Hence, we resort to the Quadratic Formula to solve \(x^2-2x-1=0\), and arrive at \(x=1 \pm \sqrt{2}\). As before, these zeros divide the number line into three pieces. To help us decide on test values, we approximate \(1 - \sqrt{2} \approx -0.4\) and \(1 + \sqrt{2} \approx 2.4\). We choose \(x=-1\), \(x=0\) and \(x=3\) as our test values and find \(f(-1)= 2\), which is \((+)\); \(f(0)=-1\) which is \((-)\); and \(f(3)=2\) which is \((+)\) again. Our solution to \(x^2-2x-1>0\) is where we have \((+)\), so, in interval notation \(\left(-\infty, 1-\sqrt{2}\right) \cup \left(1+\sqrt{2},\infty\right)\).
To check the inequality \(x^2 - 2x > 1\) graphically, we set \(g(x) = x^2-2x\) and \(h(x)=1\). We are looking for the \(x\) values where the graph of \(g\) is above the graph of \(h\).
Applications Involving Quadratic Functions
It should come as no surprise that quadratic functions appear in a lot of applications - from business to physics. You will continue to encounter them in such contexts when you get to Calculus. Therefore, let's take a look at a couple common applications.
Example \( \PageIndex{ 15} \): Applying the Vertex and \( x \)-Intercepts of a Parabola
A ball is thrown upward from the top of a 40 foot high building at a speed of 80 feet per second. The ball’s height above ground can be modeled by the equation \(H(t)=-16 t^2 +80t+40\).
When does the ball reach the maximum height?
What is the maximum height of the ball?
When does the ball hit the ground?
When will the ball be above 104 feet?
Solutions
The ball reaches the maximum height at the vertex of the parabola.\[h= -\dfrac{80}{2(-16)} = \dfrac{80}{32} = \dfrac{5}{2} =2.5. \nonumber \]The ball reaches a maximum height after 2.5 seconds.
To find the maximum height, find the \( y \)-coordinate of the vertex of the parabola.\[ k = H\left( -\dfrac{b}{2a} \right) = H( 2.5 ) =-16 ( 2.5 )^2 +80( 2.5 )+40 =140. \nonumber \]The ball reaches a maximum height of 140 feet.
We need to solve\[ 0 = -16t^2 + 80t + 40 \nonumber \]which has the same solution as\[ 0 = 16t^2 - 80t - 40. \nonumber \]Since the coefficients are all divisible by \( 8 \), we divide both sides by \( 8 \) to get\[ 0 = 2t^2 - 10t - 5. \nonumber \]Try as you might, the quadratic on the right side doesn't factor. Therefore, we use the Quadratic Formula. Before going any further, let's compute the discriminant (if it's negative, then we can stop because this would mean the ball would never touch the ground).\[ \text{discriminant} = b^2 - 4ac = (-10)^2 - 4(2)(-5) = 100 +40 = 140 > 0. \nonumber \]Thus, we continue with the Quadratic Formula.\[ \begin{array}{rclcl}
t & = & \dfrac{-b \pm \sqrt{\text{discriminant}}}{2a} & \quad & \left( \text{Quadratic Formula} \right) \\[6pt]
& = & \dfrac{10 \pm \sqrt{140}}{2(2)} & \quad & \left( \text{substituting} \right) \\[6pt]
& = & \dfrac{10 \pm \sqrt{140}}{4} & \quad & \left( \text{simplifying} \right) \\[6pt]
\end{array} \nonumber \]Because this is an application and the square root does not simplify nicely, we can use a calculator to approximate the values of the solutions.\[t \approx 5.458 \quad \text{or} \quad t \approx -0.458 \nonumber \]The second answer is outside the reasonable domain of our model, so we conclude the ball will hit the ground after about 5.458 seconds. See Figure \( \PageIndex{ 17} \).
Figure \( \PageIndex{ 17} \)
This question is akin to asking us to solve \( -16t^2 + 80t + 40 > 104 \). We starting by getting \( 0 \) on one side:\[ -16t^2 + 80t - 64 > 0. \nonumber \]Again, it would be better to get that lead coefficient to be positive, so we multiply both sides by \( -1 \) (remember that the inequality flips):\[ 16t^2 - 80t + 64 < 0. \nonumber \]We then divide both sides by the GCF of each of the coefficients (which is 16):\[ t^2 - 5t + 4 < 0. \nonumber \]We want to know when the outputs of this parabola are below the \( t \)-axis. We know this parabola is opening upward and the left side factors to \( (t - 4)(t - 1) \). This implies the roots are \( t =1 \) and \( t = 4 \). This means that our solution is the interval \( (1,4) \) (see Figure \( \PageIndex{ 18} \)).
Figure \( \PageIndex{ 18} \)
It's important to note that Figure \( \PageIndex{ 18} \) in Example \( \PageIndex{ 15} \) doesn't represent the path of the ball. We arrived at the graph in Figure \( \PageIndex{ 18} \) by manipulating an inequality based on the function for the path of the ball's travel.
Checkpoint \( \PageIndex{ 15} \)
A rock is thrown upward from the top of a 112-foot high cliff overlooking the ocean at a speed of 96 feet per second. The rock’s height above ocean can be modeled by the equation \(H(t)=-16 t^2 +96t+112\).
When does the rock reach the maximum height?
What is the maximum height of the rock?
When does the rock hit the ocean?
Solving Absolute Value Equations Involving Quadratics
We finish this section with two synthesis synthesis topics:
Solving equations involving the composition of the absolute value function and a quadratic function, and
Graphing the absolute value of a quadratic function.
Both of these topics will seem more complex than our previous work because you are combining previously-learned skills (called synthesizing skills). The crucial thing to remember is the piecewise definition of the absolute value (repeated below because, yes, it's that important).
Definition: Absolute Value Function
The absolute value function is defined to be \( f(x) = |x| \), where\[ |\blacksquare| = \begin{cases}
\blacksquare, & \text{ if } \blacksquare \geq 0 \\[6pt]
-\blacksquare, & \text{ if } \blacksquare < 0 \\[6pt]
\end{cases} \nonumber \]
We will be combining this knowledge with our graphing skills for quadratic functions.
Example \(\PageIndex{16}\): Solve Absolute Value Equations Involving Quadratic Expressions
Solve each absolute value equation.
\( \left|2x^2 + x - 3\right| = 0 \)
\( \left|2x^2 + x - 3\right| = -6 \)
\( \left|x^2 - 5x \right| = 6 \)
Solution
As with any synthesis question, you need to think critical more than with basic questions. In this case, you are being asked when the left side is zero. The only time the absolute value is zero is when its argument is zero. So this question boils down to solving\[ 2x^2 + x - 3 = 0. \nonumber \]In Example \( \PageIndex{ 14} \), we found the zeros of this function to be \( x = -\frac{3}{2} \) and \( x = 1 \). Thus, the solutions to this absolute value equation are \( x = -\frac{3}{2} \) and \( x = 1 \).
Again, we have a synthesis question where thinking critically ahead of time saves time. We are being asked, "When is an absolute value equal to a negative number?" We know that this cannot happen. Thus, this absolute value equation does not have a solution. In Mathematics, we often say the solution DNE (does not exist).
We finally arrive at an example which requires more than superficial thinking. Using the definition of the absolute value, we see that the left side has the equivalent form\[ | x^2 - 5x | = \begin{cases}
x^2 - 5x , & \text{ if } x^2 - 5x \geq 0 \\[6pt]
-(x^2 - 5x) , & \text{ if } x^2 - 5x < 0 \\[6pt]
\end{cases} \nonumber \]So, we need to determine when \( x^2 - 5x = 0 \) because this is where the "pivot point" of the piecewise definition occurs. We factor the equation to \( x(x-5) = 0 \) and note that the solutions are \( x = 0 \) and \( x = 5 \). Since \( y = x^2 - 5x \) is a parabola opening upward, and we just found out that the zeros of this function are \( 0 \) and \( 5 \), this function is at or above the horizontal axis on the interval \( \left( -\infty, 0 \right] \cup \left[ 5, \infty \right) \). Thus, it is below the horizontal axis on \( \left( 0, 5 \right) \). We modify our piecewise definition accordingly.\[ | x^2 - 5x | = \begin{cases}
x^2 - 5x , & \text{ if } x \in \left( -\infty, 0 \right] \cup \left[ 5, \infty \right) \\[6pt]
-(x^2 - 5x) , & \text{ if } x \in \left( 0,5 \right) \\[6pt]
\end{cases} \nonumber \]Thus, our original equation becomes the following:\[ \begin{array}{rcc|cc}
& \textbf{Case #1} & \quad & \quad & \textbf{Case #2} \\[6pt]
& x \in \left( -\infty, 0 \right] \cup \left[ 5, \infty \right) & \quad & \quad & x \in \left( 0,5 \right) \\[6pt]
\hline & x^2 - 5x = 6 & \quad & \quad & -(x^2 - 5x) = 6 \\[6pt]
\implies & x^2 - 5x - 6 = 0 & \quad & \quad & -x^2 + 5x - 6 = 0 \\[6pt]
\implies & (x - 6)(x + 1) = 0 & \quad & \quad & x^2 - 5x + 6 = 0 \\[6pt]
\implies & x = 6 \text{ or } x = -1 & \quad & \quad & (x - 2)(x - 3) = 0 \\[6pt]
\implies & & \quad & \quad & x = 2 \text{ or } x = 3 \\[6pt]
\end{array} \nonumber \]Hence, our solutions to the original absolute value equation are \( x = -1, 2, 3 \) and \( 6 \).
It is very important to check that the solutions from Example \( \PageIndex{ 16} \) occur in the proper intervals. That is, we arrives at the solutions \( x = -1 \) and \( x = 6 \) whenever \( x \in \left( -\infty, 0 \right] \cup \left[ 5, \infty \right) \). Both of these solutions exist in these intervals, so we are fine. I leave it to you to check that the second solution set exists within the interval \( (0,5) \).
We conclude this section with a graph of a more complicated absolute value function.
Example \( \PageIndex{17} \): Graph the Absolute Value of a Quadratic Function
Graph \(f(x) = |x^2 - x - 6|\).
Solution
Using the definition of absolute value, we have\[ f(x) = \left\{ \begin{array}{rcl}
\left(x^2 - x - 6\right), & \text{ if } & x^2 - x - 6 \geq 0 \\
-(x^2 - x - 6), & \text{ if } & x^2 - x - 6 \lt 0 \\
\end{array} \right.\nonumber \]We begin by graphing \(y = g(x) = x^2 - x - 6\) using the intercepts and the vertex. To find the \(x\)-intercepts, we solve \(x^2 - x - 6 = 0\). Factoring gives \((x-3)(x+2)=0\) so \(x=-2\) or \(x=3\). Hence, \((-2,0)\) and \((3,0)\) are \(x\)-intercepts. The \(y\)-intercept \((0,-6)\) is found by setting \(x=0\). To plot the vertex, we find\[x = -\frac{b}{2a} = -\frac{-1}{2(1)} = \frac{1}{2}, \text{ and } y = \left(\frac{1}{2}\right)^2 - \left(\frac{1}{2}\right)-6 = -\frac{25}{4} = -6.25.\nonumber \]Plotting, we get the parabola on the left side of Figure \( \PageIndex{19} \).
To obtain points on the graph of \(y = f(x) = |x^2-x-6|\), we can take points on the graph of \(g(x) = x^2-x-6\) and apply the absolute value to each of the \(y\) values on the parabola. We see from the graph of \(g\) that for \(x \leq -2\) or \(x \geq 3\), the \(y\)-values on the parabola are greater than or equal to zero (since the graph is on or above the \(x\)-axis), so the absolute value leaves these portions of the graph alone. For \(x\) between \(-2\) and \(3\), however, the \(y\)-values on the parabola are negative. For example, the point \((0,-6)\) on \(y = x^2-x-6\) would result in the point \((0,|-6|) = (0,-(-6))= (0,6)\) on the graph of \(f(x) = |x^2-x-6|\). Proceeding in this manner for all points with \(x\)-coordinates between \(-2\) and \(3\) results in the graph on the right side of Figure \( \PageIndex{19} \).
Figure \( \PageIndex{19} \)
If we take a step back and look at the graphs of \(g\) and \(f\) in the Example \( \PageIndex{ 17} \), we notice that to obtain the graph of \(f\) from the graph of \(g\), we reflect a portion of the graph of \(g\) about the \(x\)-axis. We can see this analytically by substituting \(g(x) = x^2-x-6\) into the formula for \(f(x)\) and calling to mind the concept of reflections from transformations of functions.\[f(x) = \left\{ \begin{array}{rcl}
g(x), & \text{ if } & g(x) \geq 0 \\
-g(x), & \text{ if } & g(x) \lt 0 \\
\end{array} \right.\nonumber \]The function \(f\) is defined so that when \(g(x)\) is negative (i.e., when its graph is below the \(x\)-axis), the graph of \(f\) is its refection across the \(x\)-axis. This is a general template to graph functions of the form \(f(x) = |g(x)|\). From this perspective, the graph of \(f(x) = |x|\) can be obtained by reflecting the portion of the line \(g(x) =x\) which is below the \(x\)-axis back above the \(x\)-axis creating the characteristic "\(vee\)" shape.
Focus on Calculus - Solving Equations that are Quadratic-in-Form
You have already solved quite a few quadratic equations throughout your academic journey in Mathematics; however, as you approach Calculus, you will need to focus your attention on pattern recognition instead of expecting equations identical in form to \( ax^2 = bx + c = 0 \). We must begin to recognize that\[ a \blacksquare^2 + b \blacksquare + c = 0 \nonumber \]is nearly this same equation.
Definition: Quadratic-in-Form
An equation that can be written in the form\[ a\left[ f(x) \right]^2 + b f(x) + c = 0 \nonumber \]is called an equation that is quadratic-in-form.
It turns out that any equation that is quadratic-in-form can be solved using methods similar to those from our Elementary and Intermediate Algebra courses. Let's illustrate the process with a few examples.
Example \( \PageIndex{ 18} \): Solving an Equation that is Quadratic-in-Form
Solve \(3(3x - 1)^2 + 13(3x - 1) -10=0\).
Solution
Many students would immediately distribute things out to get\[ 27x^2 + 21x - 20 = 0 \nonumber \]and try to factor; however, this is not taking advantage of the form of the original equation.
Notice that there are some common expressions within the original equation - namely \( 3x - 1 \). If we let \( u = 3x - 1 \), we could rewrite the equation as\[ 3u^2 + 13u - 10 = 0. \nonumber \]Hopefully, you agree that this equation looks much easier to solve. This type of substitution is formally called a \( u \)-substitution. The choice of the variable \( u \) is arbitrary, and you are encouraged to use whatever variable you want (other than the variable in the original equation).
We can factor the left side of this new equation to get\[ (3u - 2)(u + 5) = 0. \nonumber \]Therefore, \( u = \frac{2}{3} \) or \( u = -5 \).
Since the original problem involved the variable \( x \), we need to resubstitute \( u = 3x - 1 \) to arrive at\[ \begin{array}{rrclcrclcl}
& u & = & \dfrac{3}{2} & \text{ and } & u & = & -5 & & \\[6pt]
\implies & 3x - 1 & = & \dfrac{3}{2} & \text{ and } & 3x - 1 & = & -5 & \quad & \left( \text{resubstituting} \right) \\[6pt]
\implies & 3x & = & \dfrac{3}{2} + 1 & \text{ and } & 3x & = & -5 + 1 & \quad & \left( \text{adding }1\text{ to both sides} \right) \\[6pt]
\implies & 3x & = & \dfrac{5}{2} & \text{ and } & 3x & = & -4 & \quad & \left( \text{simplifying} \right) \\[6pt]
\implies & x & = & \dfrac{5}{6} & \text{ and } & x & = & -\dfrac{4}{3} & \quad & \left( \text{dividing both sides by }3 \right) \\[6pt]
\end{array} \nonumber \]Thus, the solutions to the original equation are \( x = \frac{5}{6} \) and \( x = -\frac{4}{3} \).
You will be using the \( u \)-substitution process illustrated in Example \( \PageIndex{ 18} \) often throughout Calculus. As such, it's best to start looking for patterns like this from this point forward.
Example \(\PageIndex{19}\): Solving an Equation that is Quadratic-in-Form
Solve \( x^4 - 3x^2 = 45 + x^2 \).
Solution
Since this equation has several terms involving powers of \( x \), it is best to collect all information on one side (this tends to "reveal" the type of equation we are working with). Subtracting \( 45 \) and \( x^2 \) from both sides, we get\[ x^4 - 4x^2 - 45 = 0. \nonumber \]The key observation here is that the exponent on \( x \) in the first term is twice that of the exponent on \( x \) in the second term. That is, this has the same form as a quadratic equation. Letting \( u = x^2 \), we get\[ \begin{array}{rclcl}
x^4 - 4x^2 - 45 & = & \left( x^2 \right)^2 - 4x^2 - 45 & \quad & \left( \text{Laws of Exponents: Power Law} \right) \\[6pt]
& = & u^2 - 4u - 45 & \quad & \left( \text{substituting } u = x^2 \right) \\[6pt]
\end{array} \nonumber \]Thus, we instead focus on solving\[ \begin{array}{rrclcl}
& u^2 - 4u - 45 & = & 0 & & \\[6pt]
\implies & (u - 9)(u + 5) & = & 0 & \quad & \left( \text{factoring} \right) \\[6pt]
\end{array} \nonumber \]Hence, \( u = 9 \) or \( u = -5 \). However, we are supposed to be solving for \( x \), so we resubstitute \( u = x^2 \).\[ \implies x^2 = 9 \quad \text{or} \quad x^2 = -5. \nonumber \]While we can easily solve the first equation to get \( x = \pm 3 \), the second equation doesn't have a solution (over the real number system) because there isn't a real number whose square becomes a negative number. Thus, the solutions to the original equation are \( x = -3 \) and \( x = 3 \).