Lecture1 2
Lecture1 2
Consider a function f : R → R.
The domain of f is the set of all real numbers a such that f (a) is defined.
e.g., for f (x) = x2 , the domain is all of R: a2 is defined for all a ∈ R.
e.g., for f (x) = x1 , the domain is NOT R: 10 is undefined. However 1
a is
defined for all a ̸= 0. Hence this function has domain R \ {0}.
1/7
The range of f is the set of all f (a) for a in the domain of f .
(So the domain of f is the set of valid x-values for f ; the range is the set
of valid y-values for f .)
A function f : R → R is then a rule for assigning to each element x of its
domain the element f (x) in its range. Remember: given x in the domain
of f , there is one and only one f (x) (in the range of f ).
Domain and range can usually be worked out from
the rule given for the function;
the graph of the function.
2/7
Example. y = f (x) = x1 has domain = R \ {0}. What is its range? Look
at the graph. From any point on the y-axis EXCEPT y = 0, we can draw a
horizontal line across that cuts the graph of y = x1 . Thus range = R \ {0}.
Another way: if b ∈ R \ {0} then b = f (1/b).
3/7
sin x
Example. tan x = cos x is undefined when cos x = 0, i.e., x is an odd
(positive or negative) integer multiple of π/2. Otherwise, tan x is defined.
So the domain of f (x) = tan x is all real numbers except (2k + 1)π/2,
k ∈ Z (here Z denotes the set of integers {· · · , −3, −2, −1, 0, 1, 2, . . .}).
What is the range of tan x?
√
Example. y = 4 − x2 has domain all x such that x2 ≤ 4 (cannot take
square root of negative real number & get a real number).
Now x2 ≤ 4 if and only if −2 ≤ x ≤ 2, i.e., x ∈ [−2, 2].
What is the range of this function? Look at its graph: semicircle above the
x-axis, cutting y-axis at y = 2. Hence the range of this function is = [0, 2].
4/7
Limits
5/7
...and
f (1.1) = 2.1
f (1.01) = 2.01
f (1.001) = 2.001
f (1.0001) = 2.0001
f (1.00001) = 2.00001
..
.
Clearly, although this f (x) is undefined at x exactly equal to 1, it has a
limiting behaviour as x ‘approaches’ 1 (from the left and the right, i.e., for
both x < 1 close to 1 and x > 1 close to 1): we can see that the limiting
value of the function for such x is 2.
6/7
2−1
To repeat: f (x) = xx−1 is undefined at x = 1, but it has the limit of 2 as
x approaches 1 (from the left and the right).
In symbols:
x2 − 1
lim = 2.
x→1 x − 1
7/7