1.2.1 Definitions and Range of a Function

In this topic we will learn how to:

  • understand the terms function, domain, range, one-one function, inverse function and composition of functions
  • identify the range of a given function in simple cases, and find the composition of two given functions

\textbf{\textcolor{gray}{Key Terms}}A function is an expression that defines the relationship between one variable and another variable.

The domain of a function represents all the input values it can take. They are typically denoted as x values.

The range of a function represents all the output values. They are typically denoted as y values.

A one-one function is one that maps every distinct input value to exactly one distinct output value. One x value maps onto one y value. To check if a function is a one-one, you can use the horizontal line test. Sketch the function on a graph, if a horizontal line is drawn at any point, it should only pass through the graph once. If at any point, it passes through the graph more than once, it is not a one-one function. If at every point, it passes through only once, it is a one-one function.

An inverse function is one that reverses the operations of the original function. It is also called an anti function.
A composite funciton is a function made out of other functions, where its input is the output of another function.\textbf{\textcolor{gray}{Range of a Function}}To determine the range of a function, we have to consider the type of function it is. If the function is linear, substitute the extreme values of the domain into the function, these will give you the range.

If a function is quadratic, find its vertex by completing the square. Use that to sketch the graph of the function. From the graph, you can determine the range.

If a function is rational, to find its range, we will use trial and error OR the idea of \infty as the upper limit of the domain. See the second question below.

Let’s look at some past paper questions.

1. The function f is defined by f(x) = 2x^{2} - 16x + 23 for x < 3. Find the range of f. (9709/13/M/J/22 number 6)
f(x) = 2x^{2} - 16x + 23To find the range of a quadratic we first need to find the vertex. To find the vertex, we have to complete the square,
y = 2x^{2} - 16x + 23Complete the square using your preferred method,
y = 2\left(x^{2} - 8x\right) + 23y = 2\left[(x - 4)^{2} - 16\right] + 23y = 2(x - 4)^{2} - 32 + 23y = 2(x - 4)^{2} - 9Therefore, f can be written as,
f(x) = 2(x - 4)^{2} - 9The vertex of f is (4, -9), let’s use that to sketch the graph of f,

Rendered by QuickLaTeX.com

Our domain is x < 3,

Rendered by QuickLaTeX.com

To find the minimum point of the function, substitute x = 3 into f,
f(x) = 2(x - 4)^{2} - 9f(3) = 2(3 - 4)^{2} - 9f(3) = -7Therefore, the range of f is,
f(x) > -72. Functions f and g are defined by

f: x \mapsto \frac{3}{2x + 1}\ \ \ \textmd{for } x > 0

g: x \mapsto \frac{1}{x} + 2\ \ \ \textmd{for } x > 0

Find the range of f and the range of g. (9709/11/O/N/19 number 7)

Let’s start with f,
f(x) = \frac{3}{2x + 1}\ \ \ \textmd{for } x > 0Note: The notation f(x) = is the same as f: x \mapsto.

f is a rational function, for the domain x > \textcolor{#2192ff}{0}. The domain x > 0 can be rewritten as,
\textcolor{#2192ff}{0} < x < \textcolor{#0f0}{\infty}Note: If x is greater than 0 then the domain runs from 0 to \infty.

Substitute the extreme values of the domain into the function. Let’s start with x = \textcolor{#2192ff}{0},
f(\textcolor{#2192ff}{x}) = \frac{3}{2\textcolor{#2192ff}{x} + 1}f(\textcolor{#2192ff}{0}) = \frac{3}{2(\textcolor{#2192ff}{0}) + 1}f(\textcolor{#2192ff}{0}) = 3Let’s substitute in x = \textcolor{#0f0}{\infty},
f(\textcolor{#0f0}{x}) = \frac{3}{2\textcolor{#0f0}{x} + 1}f(\textcolor{#0f0}{\infty}) = \frac{3}{2(\textcolor{#0f0}{\infty}) + 1}f(\textcolor{#0f0}{\infty}) = 0Note: \frac{a}{\infty} = 0, where a is a small number.

Alternatively, you can substitute values of x into the function, you will notice that as x gets larger, f approaches 0.

Therefore, the range of f is,

0 < f(x) < 3Let’s move on to g,
g(x) = \frac{1}{x} + 2\ \ \ \textmd{for } x > 0g is a rational function, for the domain x > 0. The domain x > \textcolor{#2192ff}{0} can be rewritten as,
\textcolor{#2192ff}{0} < x < \textcolor{#0f0}{\infty}Let’s start by writing g as one fraction,
g(x) = \frac{1}{x} + 2g(x) = \frac{1 + 2x}{x}Substitute the extreme values of the domain into the function. Let’s start with x = \textcolor{#2192ff}{0},
g(\textcolor{#2192ff}{x}) = \frac{1 + 2\textcolor{#2192ff}{x}}{\textcolor{#2192ff}{x}}g(0) = \frac{1 + 2(0)}{0}g(\textcolor{#2192ff}{0}) = \frac{1}{\textcolor{#2192ff}{0}}g(\textcolor{#2192ff}{0}) = \inftyNote: \frac{a}{0} = \infty where a is a small number.

Let’s substitute in x = \textcolor{#0f0}{\infty},
g(\textcolor{#0f0}{x}) = \frac{1 + 2\textcolor{#0f0}{x}}{\textcolor{#0f0}{x}}g(\textcolor{#0f0}{\infty}) = \frac{1 + 2(\textcolor{#0f0}{\infty})}{\textcolor{#0f0}{\infty}}g(\textcolor{#0f0}{\infty}) = \frac{2(\textcolor{#0f0}{\infty})}{\textcolor{#0f0}{\infty}}Note: Compared to \infty, 1 is very small so we can ignore it.

Cancel out \infty,
g(\textcolor{#0f0}{\infty}) = 2Note: If the whole concept of \infty confuses you, you can use trial and error instead. Substitute values of x that satisfy the domain. In this case, you will notice that as x increases g approaches 2 but never reaches it.

The domain of g is,
2 < g(x) < \inftyNote: If you’re familiar with the graph of y = \frac{1}{x} you can consider g is a transformation of that graph and use that to find the range of g.

This can be written as,
g(x) > 2Therefore, the range of g is,
g(x) > 2Therefore, the final answer is,
0 < f(x) < 3\ \ \ \ \ \ g(x) > 23. The function f is defined by f(x) = (x - 2)^{2} - 4 for x \ge 2. State the range of f. (9709/11/M/J/21 number 9)
f(x) = (x - 2)^{2} - 4\ \textmd{for } x \ge 2The square has already been completed, so we can use the vertex (2, -4) to sketch f,

Rendered by QuickLaTeX.com

The domain is x \ge 2,

Rendered by QuickLaTeX.com

Since the turning point of f is (2, -4), we know that the minimum value of f is -4. Alternatively, you can still calculate it.

Substitute the x = 2 into f,

f(x) = (x - 2)^{2} - 4f(2) = (2 - 2)^{2} - 4f(2) = -4Therefore, the final answer is,
f(x) \ge -4Note: We use the \ge symbol in the range because the domain is also defined with the \ge symbol.