The Range of a Function

The Basic Concept of a Range

The range of a function

The range (Range) is the set of all the function values a function can take, usually written R(f)R(f) or RR.

For a function y=f(x)y = f(x), the range is the set of all the possible values of yy.

Methods for Finding the Range of a Function

1. The Direct Method (by Inspection)

For a simple function, you can read the range off the properties of the function.

Example 1: find the range of f(x)=x2f(x) = x^2 (x∈Rx \in \mathbb{R}).

Solution: x2≥0x^2 \geq 0 holds for every real xx, and as xx ranges over all real numbers x2x^2 takes every non-negative real value.

Hence the range is [0,+∞)[0, +\infty).

2. Completing the Square

For a quadratic function, completing the square finds the extremum of the function and so determines the range.

Example 2: find the range of f(x)=x2−4x+5f(x) = x^2 - 4x + 5 (x∈Rx \in \mathbb{R}).

Solution: complete the square: f(x)=x2−4x+5=(x−2)2+1f(x) = x^2 - 4x + 5 = (x-2)^2 + 1

Since (x−2)2≥0(x-2)^2 \geq 0, we have f(x)=(x−2)2+1≥1f(x) = (x-2)^2 + 1 \geq 1.

When x=2x = 2, f(x)f(x) attains its minimum value of 1.

Hence the range is [1,+∞)[1, +\infty).

3. The Inverse Function Method

Put y=f(x)y = f(x), solve for x=g(y)x = g(y), and then use the domain of xx to determine the range of yy.

Example 3: find the range of f(x)=x+1x−2f(x) = \frac{x+1}{x-2} (x≠2x \neq 2).

Solution: put y=x+1x−2y = \frac{x+1}{x-2} and solve the equation for xx:

y(x−2)=x+1y(x-2) = x+1 yx−2y=x+1yx - 2y = x + 1 yx−x=2y+1yx - x = 2y + 1 x(y−1)=2y+1x(y-1) = 2y + 1

When y≠1y \neq 1, x=2y+1y−1x = \frac{2y+1}{y-1}.

Since the domain of the original function requires x≠2x \neq 2, we have: 2y+1y−1≠2\frac{2y+1}{y-1} \neq 2 2y+1≠2(y−1)2y + 1 \neq 2(y-1) 2y+1≠2y−22y + 1 \neq 2y - 2 1≠−21 \neq -2

This inequality always holds, so yy can take every real number except 1.

Hence the range is (−∞,1)∪(1,+∞)(-\infty, 1) \cup (1, +\infty).

4. The Monotonicity Method

Use the monotonicity of the function to determine its extremum on a given interval, and hence find the range.

Example 4: find the range of f(x)=2x−1f(x) = 2x - 1 (x∈[1,3]x \in [1, 3]).

Solution: the function f(x)=2x−1f(x) = 2x - 1 is increasing.

On the interval [1,3][1, 3]:

  • when x=1x = 1, f(1)=2×1−1=1f(1) = 2 \times 1 - 1 = 1
  • when x=3x = 3, f(3)=2×3−1=5f(3) = 2 \times 3 - 1 = 5

Hence the range is [1,5][1, 5].

5. The Graphical Method

Determine the range of the function values by looking at the graph of the function.

Example 5: find the range of f(x)=4−x2f(x) = \sqrt{4-x^2}.

Solution: first find the domain: 4−x2≥04 - x^2 \geq 0, that is, x2≤4x^2 \leq 4, so x∈[−2,2]x \in [-2, 2].

Since 0≤4−x2≤40 \leq 4 - x^2 \leq 4 (for x∈[−2,2]x \in [-2, 2]), we have: 0≤4−x2≤20 \leq \sqrt{4-x^2} \leq 2

  • when x=±2x = \pm 2, f(x)=0f(x) = 0
  • when x=0x = 0, f(x)=2f(x) = 2

Hence the range is [0,2][0, 2].

The Ranges of Common Functions

Type of functionGeneral formRange
Linear functionf(x)=ax+bf(x) = ax + b (a≠0a \neq 0)R\mathbb{R}
Quadratic functionf(x)=ax2+bx+cf(x) = ax^2 + bx + c (a>0a > 0)[4ac−b24a,+∞)[\frac{4ac-b^2}{4a}, +\infty)
Quadratic functionf(x)=ax2+bx+cf(x) = ax^2 + bx + c (a<0a < 0)(−∞,4ac−b24a](-\infty, \frac{4ac-b^2}{4a}]
Reciprocal functionf(x)=kxf(x) = \frac{k}{x} (k≠0k \neq 0)(−∞,0)∪(0,+∞)(-\infty, 0) \cup (0, +\infty)
Exponential functionf(x)=axf(x) = a^x (a>1a > 1)(0,+∞)(0, +\infty)
Logarithmic functionf(x)=log⁡axf(x) = \log_a x (a>1a > 1)R\mathbb{R}

Exercises

Exercise 1

The sales volume QQ (in units) of a commodity and its price PP (in yuan) satisfy the functional relationship Q=200−10PQ = 200 - 10P, where the price PP ranges over [5,15][5, 15] yuan.

  1. Find the domain and the range of this function
  2. When the price is 8 yuan, what is the sales volume?
  3. To keep the sales volume at no less than 100 units, what range should the price be held to?
the range of a functionan applied problem

Approach:

This is an applied problem: you have to understand the domain and the range in terms of their practical meaning, and then do the relevant computation.

Steps:

  1. The domain and the range:

    • the domain is given: P∈[5,15]P \in [5, 15]
    • when P=5P = 5, Q=200−10×5=150Q = 200 - 10 \times 5 = 150
    • when P=15P = 15, Q=200−10×15=50Q = 200 - 10 \times 15 = 50
    • since the function Q=200−10PQ = 200 - 10P is decreasing on its domain, the range is [50,150][50, 150]
  2. The sales volume when the price is 8 yuan: Q=200−10×8=200−80=120Q = 200 - 10 \times 8 = 200 - 80 = 120 (units)

  3. The range of prices for a sales volume of at least 100 units: Solve the inequality: 200−10P≥100200 - 10P \geq 100 200−100≥10P200 - 100 \geq 10P 100≥10P100 \geq 10P P≤10P \leq 10

    Combined with the original domain [5,15][5, 15], the price should be held in the range [5,10][5, 10] yuan.

Answer:

  1. The domain is [5,15][5, 15] and the range is [50,150][50, 150]
  2. When the price is 8 yuan, the sales volume is 120 units
  3. The price should be held in the range [5,10][5, 10] yuan

Exercise 2

Use completing the square to find the range of f(x)=−x2+4x−1f(x) = -x^2 + 4x - 1.

the range of a functioncompleting the squarea quadratic function

Approach:

For a quadratic function, complete the square to find the vertex and hence the extremum, which gives the range.

Steps:

Complete the square: f(x)=−x2+4x−1f(x) = -x^2 + 4x - 1 =−(x2−4x)−1= -(x^2 - 4x) - 1 =−(x2−4x+4−4)−1= -(x^2 - 4x + 4 - 4) - 1 =−(x−2)2+4−1= -(x - 2)^2 + 4 - 1 =−(x−2)2+3= -(x - 2)^2 + 3

Then:

  • since (x−2)2≥0(x - 2)^2 \geq 0, we have −(x−2)2≤0-(x - 2)^2 \leq 0
  • hence f(x)=−(x−2)2+3≤3f(x) = -(x - 2)^2 + 3 \leq 3
  • when x=2x = 2, f(x)f(x) attains its maximum value of 3
  • as xx tends to ±∞\pm\infty, f(x)f(x) tends to −∞-\infty

Answer: The range is (−∞,3](-\infty, 3]

Exercise 3

Use the inverse function method to find the range of f(x)=2x−1x+3f(x) = \frac{2x - 1}{x + 3} (x≠−3x \neq -3).

the range of a functionthe inverse function method

Approach:

Put y=f(x)y = f(x), solve for xx in terms of yy, and then use the domain of xx to determine the range of yy.

Steps:

Put y=2x−1x+3y = \frac{2x - 1}{x + 3} and solve the equation for xx:

y(x+3)=2x−1y(x + 3) = 2x - 1 yx+3y=2x−1yx + 3y = 2x - 1 yx−2x=−1−3yyx - 2x = -1 - 3y x(y−2)=−1−3yx(y - 2) = -1 - 3y

When y≠2y \neq 2: x=−1−3yy−2=1+3y2−yx = \frac{-1 - 3y}{y - 2} = \frac{1 + 3y}{2 - y}

Since the domain of the original function requires x≠−3x \neq -3, we have: 1+3y2−y≠−3\frac{1 + 3y}{2 - y} \neq -3

Solve this inequality:

1+3y≠−3(2−y)1 + 3y \neq -3(2 - y)

1+3y≠−6+3y1 + 3y \neq -6 + 3y

1≠−61 \neq -6

This inequality always holds, so yy can take every real number except 2.

Check whether y=2y = 2 is possible: when y=2y = 2 the original equation becomes x(2−2)=−1−3×2x(2 - 2) = -1 - 3 \times 2, that is, 0=−70 = -7, which has no solution.

Answer: The range is (−∞,2)∪(2,+∞)(-\infty, 2) \cup (2, +\infty)

Exercise 4

Given the table of values of a function below, write down its analytical expression, and find its domain and range.

xx-2-1012
yy41014
the range of a functionthe tabular methodthe analytical expression of a function

Approach:

Observe how xx and yy correspond in the table, look for the pattern, and identify the analytical expression of the function.

Steps:

Observe the pattern in the data:

  • when x=0x = 0, y=0y = 0
  • when x=±1x = \pm 1, y=1y = 1
  • when x=±2x = \pm 2, y=4y = 4

We find y=x2y = x^2, and verify:

  • (−2)2=4(-2)^2 = 4 ✓
  • (−1)2=1(-1)^2 = 1 ✓
  • 02=00^2 = 0 ✓
  • 12=11^2 = 1 ✓
  • 22=42^2 = 4 ✓

From the table:

  • the domain is {−2,−1,0,1,2}\{-2, -1, 0, 1, 2\}
  • the range is {0,1,4}\{0, 1, 4\}

Answer:

  • Analytical expression: f(x)=x2f(x) = x^2
  • Domain: {−2,−1,0,1,2}\{-2, -1, 0, 1, 2\}
  • Range: {0,1,4}\{0, 1, 4\}

Summary

Symbols Used in This Article

SymbolTypePronunciation/ExplanationMeaning in This Article
R(f)R(f)Mathematical symbolR of fThe range of the function ff
RRMathematical symbolRThe range of the function
y=f(x)y = f(x)Mathematical formulay equals f of xThe general way of writing a function
R\mathbb{R}Mathematical symboldouble-struck R (Real numbers)Denotes the set of real numbers
[0,+∞)[0, +\infty)Mathematical symbolclosed interval from 0 to positive infinityThe closed interval from 0 to positive infinity
(−∞,+∞)(-\infty, +\infty)Mathematical symbolinfinite intervalInterval notation for all real numbers
(−∞,1)∪(1,+∞)(-\infty, 1) \cup (1, +\infty)Mathematical symbolunion of intervalsThe union of two intervals
(−∞,2)∪(2,+∞)(-\infty, 2) \cup (2, +\infty)Mathematical symbolunion of intervalsThe union of two intervals
[1,+∞)[1, +\infty)Mathematical symbolclosed interval from 1 to positive infinityThe closed interval from 1 to positive infinity
[1,5][1, 5]Mathematical symbolclosed intervalInterval notation including the endpoints
[0,2][0, 2]Mathematical symbolclosed intervalInterval notation including the endpoints
(−∞,3](-\infty, 3]Mathematical symbolhalf-open infinite intervalThe interval with negative infinity on the left and a closed right end
{x∣x≥1,x≠3}\{x \mid x \geq 1, x \neq 3\}Mathematical symbolset notationSet-builder notation

Found an issue with this content?

Tell us what could be improved.