MA2002 Chap0
MA2002 Chap0
mattansponus edu sg
email : . .
Office : S1706-07
Introduction 2
Content . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Chapter 0: Functions 5
Sets. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. .. . .. . . . . . . . . . . . . . . . . . 6
What is a Function?. . . . . . . . . . . . . . . . . . . . . . . . . . .. .. . .. . . . . . . . . . . . . . . . . 12
Domain and Range . . . . . . . . . . . . . . . . . . . . . . . . . . .. .. . .. . . . . . . . . . . . . . . . . 14
Graph of Functions . . . . . . . . . . . . . . . . . . . . . . . . . . .. .. . .. . . . . . . . . . . . . . . . . 16
Algebra of Functions . . . . . . . . . . . . . . . . . . . . . . . . . .. .. . .. . . . . . . . . . . . . . . . . 17
Examples of Functions . . . . . . . . . . . . . . . . . . . . . . . . .. .. . .. . . . . . . . . . . . . . . . . 20
Special Functions. . . . . . . . . . . . . . . . . . . . . . . . . . . . .. .. . .. . . . . . . . . . . . . . . . . 27
1
Introduction 2 / 30
2
Chapter 0: Functions 5 / 30
What is a Set?
✔ A set is a collection of objects.
✔ A set is usually denoted by capital letters A, B, C, . . . . The objects a, b, c, . . . contained in
A are called the elements of the set A. We can write
A = {a, b, c, . . .}.
A = {x | properties of x}
6 / 30
What is a Set?
✔ If a is an element of A, we write a ∈ A.
If a is not an element of A, we write a ∈/ A.
✘ Example: 1 ∈ {1, 2}, 0 ∈
/ {1, 2}.
✔ If every element of A is also an element of B, we say A is a subset of B, denoted by
A ⊆ B.
We write A ! B if A is not a subset of B.
✘ Example: {1, 2} ⊆ {1, 2, 3}, {0, 1} ! {1, 2, 3}.
✔ Two sets are equal if they have the same collection of elements, regardless of order.
In order words, A = B ⇔ “A ⊆ B and B ⊆ A”.
✘ Example:
✓ {1, 2, 3} = {3, 2, 1},
✓ {x | x2 = 1} = {1, −1}.
7 / 30
3
Operations on Sets
✔ Let A and B be two sets. We can define set operations. "
>
- mathematical " or
! Union: A ∪ B = {x | x ∈ A O
or x ∈ B}; ↓
① in A
② in B
⑤ in both
>!
-
A B
Operations on Sets
✔ Let A and B be two sets. We can define set operations.
! Intersection: A ∩ B = {x | x ∈ A and x ∈ B};
A I 23 B
4
Operations on Sets
✔ Let A and B be two sets. We can define set operations.
! Difference: A \ B = {x | x ∈ A but x ∈
/ B};
A B
11 / 30
What is a Function?
✔ Let A and B be two sets.
f
a x
b y
A c z B
d w
.. ..
. .
What is a Function?
✔ Two key points for a function f : A → B:
✘ Existence: for each a ∈ A, f (a) is an element of B.
✘ Uniqueness: each a ∈ A has only one image in B.
✔ Example. Let A be the set of students participating a competition. For each student
a ∈ A, consider the rule
loves 270
gold medal, if a scores ≥ 80,
I 7
bitgo
silver medal, if a scores ≥ 70 but < 80,
not unique
f (a) =
bronze medal, if a scores ≥ 60 but < 70,
certificate, if a scores < 60.
Each student will get exactly one from “gold medal”, “silver medal”, “bronze medal” or
“certificate” according to one’s score.
Therefore, the rule f defined above is a function.
13 / 30
6
Domain and Range
✔ Let f : A → B be a function. Then we say
✘ A is the domain of f ,
✘ B is the codomain (correlation-domain) of f .
In MA2002, A and B are always taken to be subsets of the set of real numbers R.
✔ We make the following convention:
-
Example
2x
✔ Find the domain and range of g(x) = .
3x − 1
✘ As a fraction, the function is defined at every real x except when 3x − 1 = 0, i.e.,
except when x = 31 .
✓ Then domain = R \ { 31 }.
✘ y is in the range of the function g if and only if y is of the form g(x) for some x in the
domain.
2x
Solve y = and see if we can find such an x:
3x − 1
y
⇒ y(3x − 1) = 2x ⇒ x(3y − 2) = y ⇒ x = .
3y − 2
There is always an x in the domain with y = g(x) except when 3y − 2 = 0, i.e., except
when y = 32 .
✓ Then range = R \ { 32 }.
7
Graph of Functions
✔ Let f : A → B be a function. The graph of f is the set
✘ If A, B ⊆ R, then G(f ) ⊆ A × B ⊆ R × R.
Each element of G(f ) thus represents a point on the Cartesian plane R2 .
✔ Example. f (x) = sin x:
y
−2π −π O π 2π x
−1
✘ domain = R,
✘ range = [−1, 1].
16 / 30
Algebra of Functions
✔ Let f, g be functions with domain A and B respectively.
We can define the operations on functions:
✘
✓ domain of f + g:
O
Addition: (f + g)(x) := f (x) + g(x)
A∩B is defined as
8
Algebra of Functions
✔ Let f and g be functions with domain A and B respectively.
We can define the operations on functions:
✘ The composite of f and g is the function
(f ◦ g)(x) := f (g(x)).
in put
D
domain of f ◦ g: {x | x ∈ B and g(x) ∈ A}
f ◦g -
> input to f
to
g
x g(x) f (g(x))
g f
✘ Note: In general, f ◦ g += g ◦ f .
18 / 30
Example
√ √
✔ Let f (x) = x, g(x) = 2 − x and h(x) = 1/x. Find the the following composite and
their domain.
✘ domain of f : {x | x ≥ 0} of
x E Domain g
-
domain of g: {x | 2 − x ≥ 0} = {x | x ≤ 2} and
✘ domain of h: {x | x += 0} of f
g (x)
E Domain
√
✘ f ◦ g(x) = f!(g(x)) = f ( 2 − x)
√ √
= 2−x= 42−x
√
✓ {x | x ≤ 2 and 2 − x ≥ 0} = {x | x ≤ 2}
√ ! √
✘ g ◦ f (x) = g( x) = 2 − x
√
✓ {x | x ≥ 0 and x ≤ 2} = {x | 0 ≤ x ≤ 4}
1
✘ h ◦ h(x) = h(h(x)) = h(1/x) = = x.
1/x
1
✓ {x | x += 0 and x
+= 0} = {x | x += 0}.
↳ vacuous truth 19 / 30
- can never be equal to 0
9
Examples of Functions
✔ The absolute value function f (x) = |x| is defined by
#
x, if x ≥ 0,
|x| =
−x, if x < 0.
y
x
O
✘ domain = R
✘ range = {x ∈ R | x ≥ 0} = R+ ∪ {0} = [0, ∞)
20 / 30
Examples of Functions
✔ A polynomial (over R) is a function (ai ∈ R) of the form
21 / 30
Q(x) = 2x2 + 2x
x
O
10
Examples of Functions
✔ A polynomial (over R) is a function (ai ∈ R) of the form
y 22 / 30
R(x) = x5 + 0.3x4 − 2.8x3 − 0.3x2 + 1.8x
P (x) = x3 − x + 1
End of Lecture I
O x
Q(x) = x4 − 3x2 + x
Examples of Functions
rational
✔ A rational function R(x) is a function of the form polynomial E
functions functions
P (x)
R(x) =
Q(x)
,
↓
when Q(x) = /
where P, Q are polynomials, Q(x) is not identically zero.
y
O x
2x x2
f (x) = g(x) =
x−1 x2 − 1
23 / 30
11
Examples of Functions
D
✔ An algebraic function is a function constructed from polynomials using algebraic
operations:
✘ addition, subtraction, multiplication, division,
taking roots, composite
√ x3 + 1 √
✘ f (x) = x2 + 1, g(x) = + (x − 2) 5 x3 − 1
x+2
y
O x
24 / 30
Examples of Function
✔ The trigonometric functions
✘ sin x, cos x, tan x, cot x, sec x, csc x.
are the ratios of the sides of a right angle triangle.
1
tan x
sin x
x
O cos x 1
25 / 30
12
Examples of Function
✔ The trigonometric functions
✘ sin x, cos x, tan x, cot x, sec x, csc x.
are the ratios of the sides of a right angle triangle.
y
y = tan x
y = sin x y = cos x
x
O
26 / 30
27 / 30
f (x) = x3
x
O
f (x) = −x3 + 2
13
Special Classes of Functions
✔ A function f is said to be an even function if
O x
g(x) = x2 cos x
D
✘ The graph is symmetric about the y-axis.
28 / 30
always passes
Special Classes of Functions - through origin
If flip
✔ A function f is said to be an odd function if you
either the right
f (−x) = −f (x) for all x. or leftside of
y graph vertically
,
~
an
you get
even
function
L
O x
3
f (x) = x8
g(x) = x2 sin x
14
Special Classes of Functions
✔ Let n be a positive integer. Then the power function
#
n an odd function, if n is odd,
✘ x is
an even function, if n is even.
y y
= xx19
yy = 11
13
15
17
1
3
5
7
9
O x
O x
= xx20
yy = 10
12
14
16
18
2
4
6
8
S
~
30 / 30
Then f(-x) = g( x) -
+ h( -
x)
f( x)-
=
g(x) -
h(x)
k and
is even
h(x)
is .
odd
QED .
15