Professional Documents
Culture Documents
Function? ( (2, - 3), (4, 6), (3, - 1), (6, 6), (2, 3) ) : Domain and Range
Function? ( (2, - 3), (4, 6), (3, - 1), (6, 6), (2, 3) ) : Domain and Range
Function? ( (2, - 3), (4, 6), (3, - 1), (6, 6), (2, 3) ) : Domain and Range
When functions are first introduced, you will probably have some simplistic "functions"
and relations to deal with, usually being just sets of points. These won't be terribly useful
or interesting functions and relations, but your text wants you to get the idea of what the
domain and range of a function are. Small sets of points are generally the simplest sorts
of relations, so your book starts with those.
For instance:
State the domain and range of the following relation. Is the relation a
function?
{(2, –3), (4, 6), (3, –1), (6, 6), (2, 3)}
The above list of points, being a relationship between certain x's and certain y's, is a
relation. The domain is all the x-values, and the range is all the y-values. To give the
domain and the range, I just list the values without duplication:
domain: {2, 3, 4, 6}
(It is customary to list these values in numerical order, but it is not required. Sets are
called "unordered lists", so you can list the numbers in any order you feel like. Just don't
duplicate: technically, repetitions are okay in sets, but most instructors would count off
for this.)
While the given set does indeed represent a relation (because x's and y's are being related
to each other), the set they gave me contains two points with the same x-value: (2, –3)
and (2, 3). Since x = 2 gives me two possible destinations (that is, two possible y-values),
then this relation is not a function.
Note that all I had to do to check whether the relation was a function was to look for
duplicate x-values. If you find any duplicate x-values, then the different y-values mean
that you do not have a function. Remember: For a relation to be a function, each x-value
has to go to one, and only one, y-value.
State the domain and range of the following relation. Is the relation a
function?
{(–3, 5), (–2, 5), (–1, 5), (0, 5), (1, 5), (2, 5)}
I'll just list the x-values for the domain and the y-values for the range:
range: {5}
This is another example of a "boring" function, just like the example on the previous
page: every last x-value goes to the exact same y-value. But each x-value is different, so,
while boring,
By the way, the name for a set with only one element in it, like the "range" set above, is
"singleton". So the range could also be stated as "the singleton of 5"
There is one other case for finding the domain and range of functions. They will give you
a function and ask you to find the domain (and maybe the range, too). I have only ever
seen (or can even think of) two things at this stage in your mathematical career that you'll
have to check in order to determine the domain of the function they'll give you, and those
two things are denominators and square roots.
The domain is all the values that x is allowed to take on. The only problem I have with
this function is that I need to be careful not to divide by zero. So the only values that x
can not take on are those which would cause division by zero. So I'll set the denominator
equal to zero and solve; my domain will be everything else.
x2 – x – 2 = 0
(x – 2)(x + 1) = 0
x = 2 or x = –1
Then the domain is "all x not equal to –1 or 2".
The range is a bit trickier, which is why they may not ask for it. In general, though, they'll
want you to graph the function and find the range from the picture. In this case:
As you can see from my picture, the graph "covers" all y-values; that is, the graph will go
as low as I like, and will also go as high as I like. For any point on the y-axis, no matter
how high up or low down, I can go from that point either to the right or to the left and,
eventually, I'll cross the graph. Since the graph will eventually cover all possible values
of y, then:
Advertisement
The domain is all values that x can take on. The only problem I have with this function is
that I cannot have a negative inside the square root. So I'll set the insides greater-than-or-
equal-to zero, and solve. The result will be my domain:
–2x + 3 ≥ 0
–2x ≥ –3
2x ≤ 3
x ≤ 3/2 = 1.5
Affiliate
y = –x4 + 4
The range will vary from polynomial to polynomial, and they probably won't even ask,
but when they do, I look at the picture:
The graph goes only as high as y = 4, but it will go as low as I like. Then:
To use the vertical line test, take a ruler or other straight edge and draw a line parallel to
the y-axis for any chosen value of x. If the vertical line you drew intersects the graph
more than once for any value of x then the graph is not the graph of a function. If,
alternatively, a vertical line intersects the graph no more than once, no matter where the
vertical line is placed, then the graph is the graph of a function. For example, a curve
which is any straight line other than a vertical line will be the graph of a function. As
another example, a sideways parabola (one whose directrix is a vertical line) is not the
graph of a function because some vertical lines will intersect the parabola twice.
So, what's the slope of this line? Grab two points and see?
Since it's always hard to remember when these guys are horizontal and when they are
vertical, I've got a sentence that will always save you...
Graph
And x is locked in at 3.
YOUR TURN:
Graph
,
Domain
The domain of a function is the complete set of possible values of the independent
variable.
The domain is the set of all possible x-values which will make the function "work", and
will output real y-values.
Example 1a
1 2 3 4 5 -1 -2 -3 -4 1 2 3 x y
Domain: x≥−4\displaystyle{x}\ge-{4}x≥−4
Interactive examples
Notes:
1. The enclosed (colored-in) circle on the point (−4,0)\displaystyle{\left(-{4},
{0}\right)}(−4,0). This indicates that the domain "starts" at this point.
2. We saw how to draw similar graphs in section 4, Graph of a Function. For a more
advanced discussion, see also How to draw y^2 = x − 2.
In general, we determine the domain of each function by looking for those values of the
independent variable (usually x) which we are allowed to use. (Usually we have to avoid
0 on the bottom of a fraction, or negative values under the square root sign).
Continues below ⇩
Range
The range of a function is the complete set of all possible resulting values of the
dependent variable (y, usually), after we have substituted the domain.
The range is the resulting y-values we get after substituting all the possible x-values.
Example 1b
We notice the curve is either on or above the horizontal axis. No matter what value of x
we try, we will always get a zero or positive value of y. We say the range in this case is y
≥ 0.
1 2 3 4 5 -1 -2 -3 -4 1 2 3 x y
Range: y≥0\displaystyle{y}\ge{0}y≥0
The curve goes on forever vertically, beyond what is shown on the graph, so the range is
all non-negative values of y\displaystyle{y}y.
Example 2
The graph of the curve y = sin x shows the range to be betweeen −1 and 1.
1 2 3 4 5 -1 -2 -3 -4 -5 -6 -7 1 -1 x y
Range: −1≤y≤1\displaystyle-{1}\le{y}\le{1}−1≤y≤1
The domain of y = sin x is "all values of x", since there are no restrictions on the values
for x. (Put any number into the "sin" function in your calculator. Any number should
work, and will give you a final answer between −1 and 1.)
From the calculator experiment, and from observing the curve, we can see the range is y
betweeen −1 and 1. We could write this as −1 ≤ y ≤ 1.
Where did this graph come from? We learn about sin and cos graphs later in Graphs of
sin x and cos x
Note 1: Because we are assuming that only real numbers are to be used for the x-values,
numbers that lead to division by zero or to imaginary numbers (which arise from
finding the square root of a negative number) are not included. The Complex Numbers
chapter explains more about imaginary numbers, but we do not include such numbers in
this chapter.
Note 2: When doing square root examples, many people ask, "Don't we get 2 answers,
one positive and one negative when we find a square root?" A square root has at most one
value, not two. See this discussion: Square Root 16 - how many answers?
Note 3: We are talking about the domain and range of functions, which have at most
one y-value for each x-value, not relations (which can have more than one.).
It's always a lot easier to work out the domain and range when reading it off the graph
(but we must make sure we zoom in and out of the graph to make sure we see everything
we need to see). However, we don't always have acces to graphing software, and
sketching a graph usually requires knowing about discontinuities and so on first anyway.
Example 3
Find the domain and range of the function f(x)=x+2x2−9,\displaystyle
f{{\left({x}\right)}}=\frac{\sqrt{{{x}+{2}}}}{{{x}^{2}-{9}}},f(x)=x2−9x+2 , without
using a graph.
Solution
In the numerator (top) of this fraction, we have a square root. To make sure the values
under the square root are non-negative, we can only choose x\displaystyle{x}x-values
grater than or equal to -2.
To work out the range, we consider top and bottom of the fraction separately.
See graph
1234567-1-212-1-2xf(x)
Summary
In general, we determine the domain by looking for those values of the independent
variable (usually x) which we are allowed to use. (We have to avoid 0 on the bottom of a
fraction, or negative values under the square root sign).
The range is found by finding the resulting y-values after we have substituted in the
possible x-values.
Exercise 1
Show answer
f(x) = x2 + 2
is defined for all real values of x (because there are no restrictions on the value of x).
Hence, the domain of f(x)\displaystyle f{{\left({x}\right)}}f(x) is
We can see that x can take any value in the graph, but the resulting y = f(x) values are
greater than or equal to 2.
1 2 3 -1 -2 -3 1 2 3 4 5 6 7 8 9 10 -1 x f(x)
Range: y≥2\displaystyle{y}\ge{2}y≥2
Domain: All x\displaystyle{x}x
Note
Show answer
f(t)=1t+2\displaystyle f{{\left({t}\right)}}=\frac{1}{{{t}+{2}}}f(t)=t+21
is not defined for t = -2, as this value would result in division by zero. (There would be a
0 on the bottom of the fraction.)
Range: No matter how large or small t becomes, f(t) will never be equal to zero.
0=1t+2\displaystyle{0}=\frac{1}{{{t}+{2}}}0=t+21
0=1\displaystyle{0}={1}0=1
This is impossible.]
We can see in the graph that the function is not defined for t=−2\displaystyle{t}=-
{2}t=−2 and that the function (the y-values) takes all values except 0\displaystyle{0}0.
1 2 3 4 -1 -2 -3 -4 -5 -6 -7 1 2 3 4 5 -1 -2 -3 -4 -5 t f(t)
Domain: All t≠−2\displaystyle{t}\ne-{2}t≠−2
Range: All f(t)≠0\displaystyle f{{\left({t}\right)}}\ne{0}f(t)≠0
Show answer
Show answer
Exercise 2
In case you missed it earlier, you can see more examples of domain and range in the
section Inverse Trigonometric Functions.
We fire a ball up in the air and find the height h, in metres, as a function of time t, in
seconds, is given by
h = 20t − 4.9t2
Show answer
Generally, negative values of time do not have any meaning. Also, we need to assume the
projectile hits the ground and then stops - it does not go underground.
So we need to calculate when it is going to hit the ground. This will be when h = 0. So we
solve:
20t − 4.9t2 = 0
Factoring gives:
(20 − 4.9t)t = 0
t=0 s\displaystyle{t}={0}\ \text{s}t=0 s,
or
t=204.9=4.082s\displaystyle{t}=\frac{20}{{4.9}}={4.082}\text{s}t=4.920=4.082s
We can see from the function expression that it is a parabola with its vertex facing up.
(This makes sense if you think about throwing a ball upwards. It goes up to a certain
height and then falls back down.)
What is the maximum value of h? We use the formula for maximum (or minimum) of a
quadratic function.
t=−b2a=−202×(−4.9)=2.041s\displaystyle{t}=-\frac{b}{{{2}{a}}}=-\frac{20}
{{{2}\times{\left(-{4.9}\right)}}}={2.041}{s}t=−2ab=−2×(−4.9)20=2.041s
1 2 3 4 5 6 5 10 15 20 -5 t h(t)
Domain: 0≤t≤4.08\displaystyle{0}\le{t}\le{4.08}0≤t≤4.08
Range:
0≤h≤20.4\displaystyle{0}\le{h}\le{20.4}0≤h≤20.4
Sometimes we don't have continuous functions. What do we do in this case? Let's look at
an example.
Exercise 3
Find the domain and range of the function defined by the coordinates:
{(−4,1),(−2,2.5),(2,−1),(3,2)}\displaystyle{\left\lbrace{\left(-{4},{1}\right)},{\left(-{2},
{2.5}\right)},{\left({2},-{1}\right)},{\left({3},{2}\right)}\right\rbrace}{(−4,1),(−2,2.5),
(2,−1),(3,2)}
Show answer