Unit 3, lesson 19

Finding the Range

How to find the range of a function on its domain by bounding the outputs and then showing, with an explicit input, that every proposed output really occurs.

  • Theory part 37
  • Practice part 38
  • Domain and Range

A ball thrown upward never goes higher than some peak, and it never goes below the ground. Those two facts bound its height, but they do not yet say that every height in between is actually reached. Finding a range takes both halves of the argument, a bound that rules values out and a reason that every remaining value really occurs. Calculus leans on the same two halves when it talks about extreme values and the Intermediate Value Theorem.

Key terms

Range

Definition The range of a function ff with domain DD is the set of all outputs it produces,

{ f(x)∣x∈D }.\{\, f(x) \mid x \in D \,\}.

The range depends on both the formula and the domain.

In plain words Feed the function every allowed input and collect every answer it gives. That collection is the range.

Example Let f(x)=x2f(x) = x^2 on the domain {−1,0,1,2}\{-1, 0, 1, 2\}. The outputs are 11, 00, 11 and 44, so the range is {0,1,4}\{0, 1, 4\}. The repeated output 11 is listed once.

Attained output

Definition A number yy is an attained output of ff if there is at least one xx in the domain with f(x)=yf(x) = y. To prove that yy belongs to the range, produce such an xx and check that it lies in the domain. A bound such as f(x)≥0f(x) \ge 0 for every xx only shows that the range is contained in [0,∞)[0, \infty). It does not show that every number in that interval is attained.

In plain words To show a number is an output, name an input that gives it. Knowing where the outputs cannot be is only half the job.

Example Take f(x)=x2+1f(x) = x^2 + 1 with domain all real numbers. Since x2≥0x^2 \ge 0, every output satisfies f(x)≥1f(x) \ge 1. Now pick any y≥1y \ge 1 and choose x=y−1x = \sqrt{y - 1}, which is a real number because y−1≥0y - 1 \ge 0. Then

f(y−1)=(y−1)+1=y.f(\sqrt{y - 1}) = (y - 1) + 1 = y.

So every y≥1y \ge 1 is attained, and the range is [1,∞)[1, \infty). For contrast, the outputs of x2x^2 on the integers are also all at least 00, yet 22 is never attained, since no integer squares to 22.

Domain restriction

Definition Restricting a function to a smaller domain means keeping the same formula but allowing only some of the original inputs. The range of the restricted function is the set of outputs of those inputs alone, so it can be smaller than the original range, even though the formula is unchanged.

In plain words Fewer inputs can mean fewer outputs. Always find the range for the domain you were actually given.

Example The formula x2x^2 has range [0,∞)[0, \infty) on all real numbers. On the domain [1,3][1, 3] the function increases from 11 to 99, so its range is [1,9][1, 9]. On [−1,2][-1, 2] the inputs pass through 00, so the range starts at 00. Every output satisfies x2≤4x^2 \le 4 there, because ∣x∣≤2\lvert x \rvert \le 2. Every yy in [0,4][0, 4] is attained by x=yx = \sqrt{y}, which lies in [0,2][0, 2]. The range on [−1,2][-1, 2] is [0,4][0, 4].

Minimum and maximum

Definition A function ff with domain DD has a minimum value f(c)f(c) at c∈Dc \in D if f(c)≤f(x)f(c) \le f(x) for every x∈Dx \in D, and a maximum value f(d)f(d) at d∈Dd \in D if f(d)≥f(x)f(d) \ge f(x) for every x∈Dx \in D. Both are outputs that are actually attained. A lower bound that is never attained is not a minimum, and an upper bound that is never attained is not a maximum.

In plain words The minimum is the smallest output the function really reaches, and the maximum is the largest. If the function only creeps toward a value without reaching it, that value is not a minimum or maximum.

Example On [−1,2][-1, 2] the function x2x^2 has minimum 00 at the interior point x=0x = 0 and maximum 44 at the endpoint x=2x = 2. The other endpoint, x=−1x = -1, gives 11, which is neither. So an extreme value can sit at an endpoint or inside the interval, and you have to check both.

Endpoint inclusion

Definition When a range is an interval, an endpoint of that interval belongs to the range exactly when some input in the domain produces it. So the endpoints of the domain need a check of their own. An input at an included endpoint gives an output that is attained, while a value that the outputs only approach as xx nears an excluded endpoint may be missing from the range.

In plain words A bracket in the range means some input really hits that value. A parenthesis at a finite end means the outputs get arbitrarily close to that value but never arrive.

Example Let f(x)=x2f(x) = x^2 on (0,2](0, 2]. Every output satisfies 0<x2≤40 < x^2 \le 4. The value 44 is attained at the included endpoint x=2x = 2, but 00 would need x=0x = 0, which is not in the domain. Every yy with 0<y≤40 < y \le 4 is attained by x=yx = \sqrt{y}, which lies in (0,2](0, 2]. The range is (0,4](0, 4], and this function has a maximum but no minimum.

Output interval

Definition An output interval is a range written as an interval of yy values, for example [k,∞)[k, \infty) or (−∞,M](-\infty, M]. To establish it, show two things. First, every output lies in the interval. Second, every number in the interval is attained by some input in the domain. When ff is continuous on an interval, its range on that interval is always an interval, possibly a single point if ff is constant. This fact comes from the Intermediate Value Theorem in calculus. Without continuity, or on a domain with gaps, the range can have gaps too. Even when the theorem applies, the examples here name the inputs directly.

In plain words On a graph, the range is the shadow the curve casts on the yy axis. You find its edges with bounds, then show the shadow has no gaps by naming inputs.

Example Find the range of the decreasing function f(x)=3−xf(x) = 3 - \sqrt{x} on [0,∞)[0, \infty). Since x≥0\sqrt{x} \ge 0, every output satisfies f(x)≤3f(x) \le 3. Now take any y≤3y \le 3 and choose x=(3−y)2x = (3 - y)^2, which is at least 00 and so lies in the domain. Then

f((3−y)2)=3−(3−y)2=3−∣3−y∣=3−(3−y)=y.\begin{aligned} f\big((3 - y)^2\big) &= 3 - \sqrt{(3 - y)^2} \\[0.4em] &= 3 - \lvert 3 - y \rvert \\[0.4em] &= 3 - (3 - y) = y. \end{aligned}

The step ∣3−y∣=3−y\lvert 3 - y \rvert = 3 - y is valid because y≤3y \le 3. The range is (−∞,3](-\infty, 3], with maximum 33 at x=0x = 0 and no minimum. For instance y=−5y = -5 comes from x=64x = 64, and indeed 3−64=−53 - \sqrt{64} = -5.

Check yourself

  1. Find the range of f(x)=x2f(x) = x^2 on [−3,1][-3, 1], and give its minimum and maximum.
Show the answer

On this domain ∣x∣≤3\lvert x \rvert \le 3, so 0≤x2≤90 \le x^2 \le 9. Every yy in [0,9][0, 9] is attained by x=−yx = -\sqrt{y}, which lies in [−3,0][-3, 0]. The range is [0,9][0, 9], with minimum 00 at x=0x = 0 and maximum 99 at the endpoint x=−3x = -3.

  1. Find the range of g(x)=2−x−1g(x) = 2 - \sqrt{x - 1} on [1,∞)[1, \infty).
Show the answer

Since x−1≥0\sqrt{x - 1} \ge 0, every output is at most 22. For any y≤2y \le 2 choose x=1+(2−y)2x = 1 + (2 - y)^2, which is at least 11. Then

g(x)=2−(2−y)2=2−∣2−y∣=2−(2−y)=y,\begin{aligned} g(x) &= 2 - \sqrt{(2 - y)^2} \\[0.4em] &= 2 - \lvert 2 - y \rvert \\[0.4em] &= 2 - (2 - y) = y, \end{aligned}

using y≤2y \le 2. The range is (−∞,2](-\infty, 2].

  1. Find the range of h(x)=1xh(x) = \frac{1}{x} on [1,∞)[1, \infty).
Show the answer

For x≥1x \ge 1 the output satisfies 0<1x≤10 < \frac{1}{x} \le 1. Each yy with 0<y≤10 < y \le 1 is attained by x=1yx = \frac{1}{y}, which is at least 11. The value 00 is never attained. The range is (0,1](0, 1].

How this lesson connects