MATH1152 - Functions Notes
MATH1152 - Functions Notes
A function is a mapping from a set A to a set B which has the property that each element
of A is mapped to a unique element of B.
We write f: A → B.
A is called the domain, and B is called the codomain of f.
If (a, b) ∈ f then the b is unique. This means if (a, b) ∈ f and (a, c) ∈ f then b = c.
b is called the image of a and we write b = f(a).
Each a ∈ A, has an image f(a). (at most one)
The elements of B which are images of some element of A constitute the range of f.
If range f = B, we say that f is an onto function.
Inverse Mapping:
If f: A → B is a function, we can obtain an inverse mapping g: B → A by reversing the
ordered pairs that define f. The inverse mapping may not be a function.
Types of Functions:
Inverse Functions:
If f: A → B is a function that is one-to-one and onto, then the inverse mapping g: B → A is a
function. This will be called the inverse function.
For example:
Let A = {x ∈ ℝ | 0 < x < 1} and B = {y ∈ ℝ | 0 < y < 1/2} and let f: A → B be the function
defined by:
𝑥
𝑓 (𝑥 ) = , 𝑥 ∈ 𝐴.
1+𝑥
Solution:
To show one-to-one:
Suppose f(a) = f(b)
𝑎 𝑏
⇒ =
1+𝑎 1+𝑏
⇒ 𝑎(1 + 𝑏) = 𝑏(1 + 𝑎)
⇒ 𝑎 + 𝑎𝑏 = 𝑏 + 𝑎𝑏
⇒ 𝑎 = 𝑏.
Therefore, f is one-to-one.
To show onto:
Let y ∈ B, i.e. 0 < y < ½.
𝑥
𝑓 (𝑥 ) = 𝑦 ⇔ = 𝑦 ⇔ 𝑥 = 𝑦(1 + 𝑥 ) ⇔ 𝑥 = 𝑦 + 𝑥𝑦
1+𝑥
𝑦
⇔ 𝑥 − 𝑥𝑦 = 𝑦 ⇔ 𝑥(1 − 𝑦) = 𝑦 ⇔ 𝑥 = .
1−𝑦