Domain and Range of Functions
Domain and Range of Functions
Table 1
input, x 2 1 0 1 2
output, f (x) 4 2 0 2 4
To construct the graph of this function we first draw a pair of axes - a vertical axis and a horizontal
axis. These are drawn at right-angles to each other and intersect at the origin as shown in Figure 7.
vertical ( y ) axis
y = 2x
4
origin 3
2
1
−2 −1 1 1.5 2 horizontal ( x ) axis
−1
−2
−3
−4
Each pair of input and output values can be represented on a graph by a single point. The input
values are measured along the horizontal axis and the output values are measured along the vertical
axis. The horizontal axis is often called the x axis. The vertical axis is commonly referred to as the
y axis so that we often write the function as
y = f (x) = 2x
or simply
y = 2x
Each pair of x and y values in the table is plotted as a single point, shown as • in Figure 7. A general
point is often labelled as (x, y). The values x and y are said to be the coordinates of the point.
The points are then joined with a smooth curve to produce the required graph as shown in Figure
7. Note that in this case the graph is a straight line. The graph can then be used to find function
values other than those given in the table. For example, directly from the graph we can see that
when x = 1.5, the value of y is 3.
12 HELM (2015):
Workbook 2: Basic Functions
®
Tas k
Draw up a table of values of the function f (x) = x3 for x between 3 and 3. Use
the table to plot a graph of this function.
input, x 3 2 1 0 1 2 3
output, f (x) 27 8 27
Answer
input, x 3 2 1 0 1 2 3
output, f (x) 27 8 1 0 1 8 27
Now add your points to the graph of f (x) = x3 and draw a smooth curve through them:
Your solution
y
30
20
10
−3 −2 −1 1 2 3 x
− 10
−20
−30
HELM (2015): 13
Section 2.2: Graphs of Functions and Parametric Form
Later, you will meet some functions for which certain values of the independent variable must be
excluded from the domain because at these values the function would be undefined. One such
1 1
example is f (x) = for which we must exclude the value x = 0, since is a meaningless quantity.
x 0
1
Similarly, we must exclude the value x = 2 from the domain of f (x) = .
x 2
The set of values of the function for a given domain, that is, the set of y values, is called the
range of the function. The range of g(x) (above) is 23 g(x) 102 and the range of h(t) is
1 h(t) < 1, although this may not be apparent to you at this stage. Usually the range of a
function can be identified quite easily by inspecting its graph.
Example 5
Consider the function given by g(t) = 2t2 + 1, 2 t 2.
(a) State the domain of the function.
(b) Plot a graph of the function.
(c) Deduce the range of the function from the graph.
Solution
(a) The domain is given as the interval 2 t 2, that is any value of t between 2 and
2 inclusive.
(b) To draw the graph a table of input and output values must be constructed first. See
Table 2.
Table 2
t 2 1 0 1 2
y = g(t) 9 3 1 3 9
Each pair of t and y values in the table is plotted as a single point shown as • in Figure
8. The points are then joined with a smooth curve to produce the required graph.
y
9
g(t) = 2t2 + 1
−2 −1 0 1 2 t
14 HELM (2015):
Workbook 2: Basic Functions
®
Tas k
Consider the function given by f (x) = x2 + 2, 3x3
Your solution
Recall that the domain of a function f (x) is the set of values that x is allowed to take. Write
down this set of values:
Answer
3x3
(b) Draw up a table of input and output values for this function:
Your solution
The table of values has been partially calculated. Complete this now:
input, x 3 2 1 0 1 2 3
output, x2 + 2 6 2
Answer
x 3 2 1 0 1 2 3
x2 + 2 11 6 3 2 3 6 11
Your solution
Part of the graph f (x) = x2 + 2 is shown in the figure. Complete it.
f (x) = x2 + 2
10
x
−3 −2 −1 0 1 2 3
HELM (2015): 15
Section 2.2: Graphs of Functions and Parametric Form
(d) Deduce the range of the function by inspecting the graph:
Your solution
Recall that the range of the function is the set of values that the function takes as x is varied. It is
possible to deduce this from the graph. Write this set as an interval.
Answer
(d) [2, 11]
Exercises
1. Explain the meaning of the terms ‘dependent variable’ and ‘independent variable’. When
plotting a graph, which variables are plotted on which axes ?
3. Explain the meaning of an expression such as y(x) in the context of functions. What is the
interpretation of x(t) ?
4. Explain the meaning of the terms ‘domain’ and ‘range’ when applied to functions.
5. Plot a graph of the following functions. In each case state the domain and the range of the
function.
16 HELM (2015):
Workbook 2: Basic Functions