Sub topic 10
Finding the Range from a Graph or an Equation
Prerequisites: This chapter assumes that you can plot points, solve simple equations and inequalities, and work with exponents and square roots. The range is the set of output values that a function actually produces. In function notation, these are the possible values of \(f(x)\).
Reading the range from a graph
To find the range from a graph, look vertically. Ask which \(y\)-values are used by at least one point on the graph.
- Imagine a horizontal line moving upward from below the graph.
- Record every height where the line touches the graph.
- Include a value when the graph contains that point.
- Exclude a value when the graph has a hole or stops before reaching it.
- Continue upward or downward as far as the graph continues.
A filled endpoint includes its \(y\)-value. An open endpoint excludes it. Arrows show that the graph continues indefinitely.
For example, suppose a graph has a lowest point at \(y=-2\), includes that point, and continues upward forever. Its range is
\[ [-2,\infty) \]
If the lowest point is open instead, the range is
\[ (-2,\infty) \]
The bracket means “included.” The parenthesis means “not included.” Infinity always uses a parenthesis because infinity is not an actual number that the graph reaches.
Finding the range from an equation
An equation may describe the outputs more efficiently than a graph. Begin by identifying the type of function and any restrictions on \(x\).
Linear functions
For a nonconstant linear function such as
\[ f(x)=2x+3 \]
every real input is allowed, and the outputs continue without bound in both directions. Therefore,
\[ \text{range}=(-\infty,\infty) \]
A constant function is different. If \(f(x)=7\), every input produces only the output \(7\), so the range is \(\{7\}\).
Quadratic functions
For a quadratic function, find the vertex. The vertex gives the smallest or largest output.
Consider
\[ f(x)=(x-1)^2-4 \]
Since \((x-1)^2\ge 0\), the smallest value of \(f(x)\) occurs when \(x=1\):
\[ f(1)=0-4=-4 \]
The parabola opens upward, so all outputs are at least \(-4\). Its range is
\[ [-4,\infty) \]
If the coefficient of the squared term is negative, the parabola opens downward. For example,
\[ g(x)=-(x+2)^2+5 \]
has a greatest output of \(5\), so its range is
\[ (-\infty,5] \]
Equations with restrictions
Restrictions can remove inputs or affect possible outputs. For example,
\[ h(x)=\frac{1}{x-3} \]
has domain \(x\ne3\). The output can never be \(0\), because a nonzero numerator divided by a real number cannot equal zero. Thus,
\[ \text{range}=(-\infty,0)\cup(0,\infty) \]
A useful method is to set \(y=f(x)\), then solve for \(x\). Any \(y\)-value that produces no real \(x\) is excluded from the range.
def h(x):
if x == 3:
raise ValueError("x is outside the domain")
return 1 / (x - 3)
for x in [2, 4, 5]:
print(x, h(x))This program evaluates the function for allowed inputs, but it does not prove the complete range by itself. Algebra or a complete graph is needed for that.
Common errors
- Reading the domain instead of the range. Domain values are horizontal, or \(x\)-values. Range values are vertical, or \(y\)-values.
- Forgetting endpoint symbols. Use a bracket for a filled point and a parenthesis for an open point.
- Assuming every quadratic has range \((-\infty,\infty)\). Its vertex always creates a minimum or maximum.
- Writing infinity with a bracket. Use \(\infty)\) or \((-\infty\), never a bracket at infinity.
Exercise
Find the range of f(x) = -2(x - 3)^2 + 7.
Show answer
The parabola opens downward and has a maximum value of 7 at x = 3. The range is (-∞, 7].