Wang Fei
matwf@nus.edu.sg
Department of Mathematics
Office: S17-06-16
Tel: 6516-2937
Introduction
2
Content. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Assessment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
Chapter 0: Functions
6
Sets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
What is a Function? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Domain and Range . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Graph of Functions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Algebra of Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
Examples of Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
Special Functions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
Introduction
2 / 31
Functions:
x2 + 1, h(x) = xx .
x2 1
,
x1 x 1
lim
sin x
,
x0 x
lim
lim xx .
x0+
Derivatives:
g(x) =
f (x) = sin x,
d
sin x,
dx
d x
e ,
dx
Application of Derivatives:
dp
x + x.
dx
3 / 31
Integrals:
2
1
1
dx,
1 + x + x2
xex dx.
0
Application of Integrals:
Techniques of integration,
Logarithmic function ln x, exponential function ex ,
The inverse functions,
Computation of arc length, surface area & volume,
Workload:
Assessment:
Homework: 3% 5 = 15%
Lab assignment: 5% 1 = 5%
Mid-Term Test: 20% Evening in MPSH, to be confirmed,
Final Exam: 60% (25 November, morning)
5 / 31
Chapter 0: Functions
6 / 31
What is a Set?
A = {a, b, c, . . .}.
A = {x | properties of x}
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.
1 {1, 2}, 0
/ {1, 2}.
Example:
Example:
Two sets are equal if they have the same collection of elements, regardless of order.
In order words, A = B if A B and B A.
Example:
Operations on Sets
Union:
A B = {x | x A or x B};
9 / 31
Operations on Sets
A B = {x | x A and x B};
Intersection:
A B = {2}, B A = {2}.
10 / 31
Operations on Sets
Difference:
A \ B = {x | x A but x
/ B};
A \ B = {1}, B \ A = {3}.
11 / 31
What is a Function?
b
c
x
y
z
..
.
..
.
What is a Function?
Example. Let A be the set of students participating a competition. For each student a A,
consider the rule
gold medal,
if a scores 80,
silver medal,
if a scores 70 but < 80,
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 ones score.
Therefore, the rule f defined above is a function.
14 / 31
A is the domain of f ,
B is the codomain (correlation-domain) of f .
In MA1102R, A and B are always taken to be subsets of the set of real numbers R.
the range is the set of all f (x) as x taken from the domain:
range of f : A B = {f (x) | x A}.
By definition, the range is a subset of the codomain.
15 / 31
Example
As a fraction, the function is defined at every real x except when 3x 1 = 0, i.e., except when
x = 13 .
2x
.
3x 1
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 = 23 .
Then range = R \ { 32 }.
16 / 31
Graph of Functions
If A, B R, then G(f ) A B R R.
Example.
f (x) = sin x:
y
1
2
domain = R,
range = [1, 1].
17 / 31
Algebra of Functions
domain of f g : A B
domain of f g : A B
AB
domain of f + g :
domain of f /g : {x A B | g(x) 6= 0}
Algebra of Functions
(f g)(x) := f (g(x)).
domain of f g : {x | x B and g(x) A}
f g
g(x)
f (g(x))
Note: In general, f g 6= g f .
19 / 31
Example
Let f (x) =
domain.
x, g(x) =
2 x and h(x) = 1/x. Find the the following composite and their
domain of f : {x | x 0}
domain of g : {x | 2 x 0} = {x | x 2}
domain of h: {x | x 6= 0}
f g(x) = p
f (g(x)) = f ( 2 x)
=
2x= 42x
{x | x 2 and 2 x 0} = {x | x 2}
p
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
{x | x 6= 0 and
1
x
6= 0} = {x | x 6= 0}.
20 / 31
Examples of Functions
|x| =
x, if x 0,
x, if x < 0.
y
x
O
domain = R
range = {x R | x 0} = R+ {0} = [0, )
21 / 31
10
Examples of Functions
22 / 31
Q(x) = 2x2 + 2x
x
O
Examples of Functions
y
R(x) = x5 + 0.3x4 2.8x3 0.3x2 + 1.8x
P (x) = x3 x + 1
Q(x) = x4 3x2 + x
11
Examples of Functions
R(x) =
P (x)
,
Q(x)
O
f (x) =
2x
x
g(x) =
x1
x2
x2 1
Examples of Functions
f (x) =
x2 + 1,
g(x) =
x3 + 1
+ (x 2) 5 x3 1
x+2
y
25 / 31
12
Examples of Function
1
tan x
sin x
x
O
cos x
26 / 31
Examples of Function
y = sin x
y = cos x
x
27 / 31
13
28 / 31
f (x) = x3
x
O
f (x) = x3 + 2
f (x) = x2 10
g(x) = x2 cos x
14
f (x) = x8
g(x) = x2 sin x
x is
11
13
15
17
1
3
5
7
9
yy =
= xx19
x
10
12
14
16
18
2
4
6
8
yy =
= xx20
In general, any function defined on R can be decomposed into the sum of an even function and an
odd function. Moreover, such a decomposition is unique. (Can you prove it?)
31 / 31
15