Functions Domains
Functions Domains
23.1 Functions
This section defines and gives examples of domains and ranges of functions.
These are important properties of a function and we will meet them in sub-
sequent sections. We write a function using the notation f (x).
The notation means that given a number x then the function gives another
unique number f (x).
If we write y = f (x) then we say that x is the independent variable and y
the dependent variable. Note that a function can be written as f (x) = x3 or
as h(t) = t3 or as c(y) = y 3 . These are all the same function - they all do
the same thing, cube a number.
23.1.1 Examples
The following are all functions:
1. f (x) = x, called the identity function.
2. t(u) = 2u.
3. f (x) = x2 .
4. h(z) = 1/z.
Note that all of these functions are defined for all values of their indepen-
dent variable apart from the last example as we know that if z = 0 then h(0)
is not defined. So it is important to say for what values of the independent
variable the function exists.
1
23.2 Domain of a function
The set of values for which a function is defined is called the natural domain
(usually shortened to domain).
√
Graph of z.
√
4. f (x) = 4 + 3x − x2 .
We need 4 + 3x − x2 ≥ 0 and solving this inequality we see that this is
only true for −1 ≤ x ≤ 4.
So this function is only defined in this range of values for x i.e. the
domain is [−1, 4].
2
√
Graph of 4 + 3x − x2 .
3
Graph of 1/(x3 − 3x2 + 2x).
8. f (x) = ln(x).
This function is the natural logarithm and is defined for all x > 0 i.e.
the domain is (0, ∞).
Graph of ln(x).
p
9. f (v) = 1/(1 − v).
Defined for all v such that 1/(1 − v) ≥ 0 i.e. for all v < 1 i.e. the
4
domain is (−∞, 1).
p
Graph of 1/(1 − v).
Graph of 1/ sin(x).
5
11. f (x) = ln(sin(x)).
This function is defined for x such that sin(x) > 0 i.e. for all x such
that 2nπ < x < (2n + 1)π, n = 0, ±1, ±2, . . ..
Graph of ln(sin(x)).
23.3 Examples
All of the above examples are functions which give unique values.
However, consider the following examples.
6
Graph of y 2 = x2 .
Solution.
7
Graph of y = |x|.
Graph of y 2 = x.
Solution.
8
√
denote this function
√ by y = x. The negative square root function is
denoted by y = − x. Once again we have to insist that x ≥ 0 in both
functions.
√
Graph of y = x.
Solution.
y = arcsin(x)
9
Graph of y = arcsin(x).
Exercise 1
For each of the following functions find its domain i.e. the set of
points where each function is defined. Look at the examples above to
see some similar functions.
(a) f (x) = x3 − x.
(b) f (t) = 3t .
√
(c) f (z) = z − 1.
√
(d) f (z) = z 2 − 1.
√
(e) f (x) = 6 − x − x2 .
10
(i) f (x) = 1/(x2 + 1).
Solutions to exercise 1
6 − x − x2 ≥ 0 ⇔ x2 + x − 6 ≤ 0 ⇒
(x + 3)(x − 2) ≤ 0 ⇒ −3 ≤ x ≤ 2.
(f) g(x) = sin(1/x) is defined for all x except for x = 0. Hence the
domain is R − {0}.
(g) h(u) = 1/(u − 2) is defined for all u except for u = 2. The domain
is R − {2}.
(h) f (x) = 1/(x3 − 3x2 − 6x − 8) is defined for all x such that x3 − 3x2 −
6x − 8 6= 0.
11
So now we look for the values of x such that x3 − 3x2 − 6x − 8 = 0.
x3 − 3x2 − 6x + 8 = 0⇒
(x − 1)(x2 − 2x − 8) = 0⇒
(x − 1)(x − 4)(x + 2) = 0⇒
x = 1 or x = 4 or x = −2.
(i) f (x) = 1/(x2 + 1) is defined for all values of x as x2 + 1 > 0 for all
x, hence the domain is R.
(j) f (x) = ln(x + 3) is defined for all x such that x + 3 > 0 ⇒ x > −3,
so the domain is (−3, ∞).
p
(k) k(v) = 1/(1 − v 3 ) is defined for all v such that:
1/(1 − v 3 ) ≥ 0⇔
1 − v3 > 0⇔
v3 < 1⇔
v < 1.
(m) m(x) = ln(cos(x)) is defined for all x such that cos(x) > 0.
Looking at the graph of cos(x) we see that cos(x) > 0 when −π/2 <
x < π/2 i.e. (−π/2, π/2).
Since cos(x) is periodic of period 2π we see that the domain comprises
all of the intervals of the form ((4n − 1)π/2, (4n + 1)π/2), n =
0, ±1, ±2 . . ..
12
23.4 Range of a Function
We have already discussed the domain of a function f (x) i.e. the values of
x for which f (x) is defined. Next we consider the values f (x) we get as x
varies over the domain. This is, not surprisingly, called the range of f (x).
(a) f (x) = x. The domain is R i.e. all numbers and the range is also R.
(b) f (x) = x2 . The domain is once again R, but the range is all positive
numbers as x2 ≥ 0 i.e. [0, ∞].
(c) g(x) = sin(x). The domain is R, but the range is given by [−1, 1]
as −1 ≤ sin(x) ≤ 1.
√
(d) h(t) = t. Remember that this is the positive square root.
The domain is [0, ∞] as is the range.
f (x) = x2 + 2x + 3 = (x + 1)2 + 2.
We see that f (x) has least value 2 when x = −1 and that it takes
all values ≥ 2. (Look at the graph).
Hence the range is [2, ∞).
13
the square to find the range.
From this we can read off the fact that the maximum value is 13/4
and this occurs at x = −1/2.
Hence we have that the range is (−∞, 13/4].
f = 1/(x − 1) ⇒
x − 1 = 1/f ⇒
x = 1/f + 1.
14
As for the range, we note that
(a) x2 /(x2 + 1) ≥ 0.
(b) x2 < x2 + 1 ⇒ x2 /(x2 + 1) < 1.
Hence we have
0 ≤ f (x) < 1.
In fact the range is all f such that 0 ≤ f < 1 and we can check this
as follows.
We show that any value f 6= 1 which lies between 0 and 1 is in the
range.
Let f be any such value, we want to find x such that f = f (x) i.e.
such that
f = x2 /(x2 + 1) ⇒
f (x2 + 1) = x2 ⇒
x2 (f − 1) = −f ⇒
x2 = f /(1 − f ) ⇒
p
x = ± f /(1 − f ).
15
Graph of y = x2 /(1 + x2 ).
Hence all values between 0 and 1, but not including 1 are in the
range i.e. [0, 1).
(j) h(t) = t4 + 2t2 . Domain is all t i.e. R. In order to obtain the range
note that h(t) = t4 + 2t2 = (t2 + 1)2 − 1 ≥ 0.
We now show that the range is all h such that h ≥ 0.
Let h ≥ 0 then
(t2 + 1)2 − 1 = h ⇒
√
t2 + 1 = 1+h⇒
2
√
t = 1 + h − 1.
√
As h ≥ 0 we see that
p√ 1 + h − 1 ≥ 0 and we can take the square
root so that t = ± 1 + h − 1 is such that h(t) = h. Hence the
range is all x ≥ 0 = R+ .
√
(k) f (x) = x2 + 2x − 3. This is only defined if x2 + 2x − 3 ≥ 0.
But x2 + 2x − 3 = (x + 3)(x − 1) hence
x2 + 2x − 3 ≥ 0 ⇒ x ≤ −3 or x ≥ 1.
16
√
Graph of y = x2 + 2x − 3.
Exercise 2
Find the ranges of the following functions:
1. f (x) = 3 − 2x.
2. f (x) = 3x2 − 2.
5. f (x) = x2 + 2x − 15.
6. f (x) = 5 − 3x − 2x2 .
Solutions to exercise 2
17
(a) f (x) = 3 − 2x. The domain is R.
To find the range, let f be a value in the range then
3 − 2x = f ⇒
x = (3 − f )/2.
(c) g(x) = sin(x) + cos(x). The domain is R, √ but the range is given by
the following: g(x) = √sin(x)
√ + cos(x) = 2 sin(x + π/4).
Hence the range is [− 2, 2] as −1 ≤ sin(x + π/4) ≤ 1.
√
(d) h(t) = t2 + 1. Remember that this is the positive square root.
The domain is R as t2 + 1 > 0 for all t.
To find the range, let h = h(t) ≥ 0.
√
h = t2 + 1 ⇒
h2 = t2 + 1 ⇒
√
t = h2 − 1.
(e) f (x) = x2 + 2x − 15. The domain is R as f (x) is defined for all values
of x. We now examine the range i.e. what values do we get from
x2 + 2x − 15 as x varies over all the domain i.e. over all values.
For quadratics like this it is a good idea to complete the square:
We see that f (x) has least value −16 when x = −1 and that it takes
all values ≥ −16.
Hence the range is [−16, ∞).
18
(f) f (x) = 5 − 3x − 2x2 . Once again the domain is R and we use
completing the square to find the range.
From this we can read off the fact that the maximum value is 49/8
and this occurs at x = −3/4.
Hence we have that the range is (−∞, 49/8].
t = (7h + 1)/(2h).
f = (x − 1)/(x + 1) ⇒
f = 1 − 2/(x + 1) ⇒
x = 2/(1 − f ) − 1.
19
As for the range, Let f > 0 be any such value, we want to find
x such that f = f (x) i.e. such that
f = (1 + x2 )/(2 + 3x2 ) ⇒
f (2 + 3x2 ) = 1 + x2 ⇒
x2 (3f − 1) = 1 − 2f ⇒
p
x2 = (1 − 2f )/(3f − 1) ⇒ x = ± (1 − 2f )/(3f − 1).
Hence all values between 1/3 and 1/2, but not including 1/3 are in
the range, see the graph.
(j) h(t) = 2t4 + 3t2 − 5 ≥ −5. Domain is all t i.e. R. In order to obtain
the range note that h(t) = 2t4 + 3t2 − 5 = 2(t2 + 3/4)2 − 49/8.
We now show that the range is all h such that h ≥ −5.
Let h ≥ −5 be any value in the range then
20
√
As h ≥ −5 is any value we see that 49
q+ 8h/4 − 3/4 ≥ 0 and we
√
can take the square root so that t = ± 49 + 8h/4 − 3/4 is such
that h(t) = h. Hence the range is [−5, ∞).
23.5 Videos
Range of a Quadratic 1
Range of a Quadratic 2
21