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

Key Terms\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 xx values.

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

A one-one function is one that maps every distinct input value to exactly one distinct output value. One xx value maps onto one yy 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.Range of a 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 ff is defined by f(x)=2x216x+23f(x) = 2x^{2} - 16x + 23 for x<3x < 3. Find the range of ff. (9709/13/M/J/22 number 6)
f(x)=2x216x+23f(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=2x216x+23y = 2x^{2} - 16x + 23Complete the square using your preferred method,
y=2(x28x)+23y = 2\left(x^{2} - 8x\right) + 23y=2[(x4)216]+23y = 2\left[(x - 4)^{2} - 16\right] + 23y=2(x4)232+23y = 2(x - 4)^{2} - 32 + 23y=2(x4)29y = 2(x - 4)^{2} - 9Therefore, ff can be written as,
f(x)=2(x4)29f(x) = 2(x - 4)^{2} - 9The vertex of ff is (4,9)(4, -9), let’s use that to sketch the graph of ff,

Rendered by QuickLaTeX.com

Our domain is x<3x < 3,

Rendered by QuickLaTeX.com

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

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

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

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

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

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

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

Alternatively, you can substitute values of xx into the function, you will notice that as xx gets larger, ff approaches 00.

Therefore, the range of ff is,

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

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

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

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

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

Rendered by QuickLaTeX.com

The domain is x2x \ge 2,

Rendered by QuickLaTeX.com

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

Substitute the x=2x = 2 into ff,

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