Sma 300 Lecture 2 Functions -1
Sma 300 Lecture 2 Functions -1
Functions
2.1 Introduction
2.3 Functions
Let A and B be a non-empty sets. Then a function f from A to B (in symbol f : ) is a rule
that assigns to each element x of A a unique element y . In this case y is called the value of
the function f at x, written y f x (or the image of x under f).
The set A is called the domain of f and the while the set f x : x A is called the range of f
denoted by R(f). In general R f , B is called the codomain of f.
1
There is another way of visualizing a function namely a machine that accepts elements of the
domain of f, D f A as inputs and produces corresponding elements of R f as
outputs.
Example
Let A D f be the set of real numbers and f be the rule (function) that squares every element
of A, if x A then y f x x 2 .
f f x : x
f 1 x : f x
Thus if we are given a set then a point b1 is in the direct image f iff there exists
at least one point x1 such that b1 f x1 . Similarly a point x 2 is in the inverse image
f 1 if and only if y2 f x2 belongs to H.
Example
(i) f i f Ai
i1 i 1
2
(ii) f A
i 1
i f Ai
(iii) f 1 Ai f 1 A
(iv) f 1 A f 1 A
(v)
f 1 f
1
Proof
(i) Let x f Ai
iI
f 1 x Ai
iI
f 1 x Ai for some i
x f Ai for some i
x f Ai
iI
(v) Let x f 1
f x
f x
x f 1
x f 1
3
In order to prove that a function f is injective, we must establish that:
(That is the graph of f must satisfy the first horizontal line test: Every horizontal line y=b with
b intersect the graph of f in at most one point).
To prove that a function f is surjective, we must show that for any b there exists at least one
x such that f x b. (That is, the graph of f, satisfies the second horizontal test. Every
horizontal line y b with b intersects the graph of f in at least one point).
Example
2x
Let A x : x 1 and define f x for all x . Show that f is injective and find
x 1
the set B such that f : is surjective.
Solution
2 x1 2 x2
x1 1 x 2 1
2x
To determine B (range of f), we solve the equation y in terms of y to obtain
x 1
y
x . This is meaningful for y 2. Thus the range of f (i.e. B) is the set
y2
Example
Solution
It is enough to show that there exists more than one point of mapped onto one point in the
range of f. (Otherwise apply the first horizontal line test).
4
We observe that f x x3 x 0 x x 2 1 0 x 0, x 1 .
Thus the points 1,0,1 are mapped onto 0. Hence f is not one-one.
f 1 : such that
f 1 y x : f x y
Moreover f 1 f x f f 1 x x
f 1 y
y
for y
y2
Remark
To find the inverse function of f, all we need is to solve for x in terms of y assuming that
y f (x)
Example
5
g f x g f x for all x .
Example
f g x f g x f x 1 ( x 1) 2 x 2 2 x 1
g f x g f x g x 2 x 2 1
Proof
(a) Since g is subjective (onto) R g C. That is, for any c C, b such that
6
Activity 2.1
x
1. Show that the function f defined by f x
, x is a
x 1 2
Bartle, R. G. (1976). The elements of Real Analysis. John Wiley and Sons, Inc. New York.