Lecture 01
Lecture 01
Lecture 1
Liu Chunchun, Wong Yan Loi (NUS) MA1521 Calculus for Computing Lecture 1 January 15 and 18, 2024 1 / 40
Lecturers:
• Name: Dr Liu Chunchun
Office: S-17, 08-15
E-mail: ccliu@nus.edu.sg
Tel: 6601-1155
Consultation:
- Face-to-face or online consultation, by email appointment.
Liu Chunchun, Wong Yan Loi (NUS) MA1521 Calculus for Computing Lecture 1 January 15 and 18, 2024 2 / 40
Lecture Classes:
• Lecture Group 1 (Dr Liu Chunchun):
Every Tuesday and Friday, 10:00 - 11:30 am, at UT-AUD1 (University
Town, Auditorium 1).
• Lecture Group 2 (A/P Wong Yan Loi):
Every Monday and Thursday, 2:00 - 3:30 pm, at UT-AUD2 (University
Town, Auditorium 2).
Liu Chunchun, Wong Yan Loi (NUS) MA1521 Calculus for Computing Lecture 1 January 15 and 18, 2024 3 / 40
Textbook:
• Thomas’ Calculus in SI Units, Global Edition, 14th Edition, by Hass,
Heil and Weir, 2019, Pearson. ISBN 9781292253220
(This is our main textbook. Available in NUS Library. Students are
strongly advised to have a copy. )
(See also the flyer from Pearson, which can be downloaded at Canvas
> Files > Lecture Notes (folder) > TextbookFlyerPearson.pdf )
Liu Chunchun, Wong Yan Loi (NUS) MA1521 Calculus for Computing Lecture 1 January 15 and 18, 2024 5 / 40
Tutorials
Liu Chunchun, Wong Yan Loi (NUS) MA1521 Calculus for Computing Lecture 1 January 15 and 18, 2024 6 / 40
Assessment
Liu Chunchun, Wong Yan Loi (NUS) MA1521 Calculus for Computing Lecture 1 January 15 and 18, 2024 7 / 40
Online quizzes
1 Each online quiz will be open for 1 week (from time 00:00 Monday
to Sunday 23:59).
2 Answer each question with a numerical answer.
3 Attempt the questions on your own first. You may discuss among
yourself.
4 The questions are meant to test your basic concept,
understanding and computational skill of this module. Work out
the solutions systematically and meticulously. Check your
answers before the final submission.
Liu Chunchun, Wong Yan Loi (NUS) MA1521 Calculus for Computing Lecture 1 January 15 and 18, 2024 8 / 40
Syllabus:
This module provides a basic foundation for calculus and its related
subjects required by computing students.
The objective is to train the students to be able to handle calculus
techniques arising in their courses of specialization. In addition to the
standard calculus material, the course also covers simple
mathematical modeling techniques and numerical methods in
connection with ordinary differential equations.
Major topics: Preliminaries on sets and number systems. Calculus of
functions of one variable and applications. Sequences, series and
power series. Functions of several variables. Extrema. First and
second order differential equations. Basic numerical methods for
ordinary differential equations.
Liu Chunchun, Wong Yan Loi (NUS) MA1521 Calculus for Computing Lecture 1 January 15 and 18, 2024 11 / 40
Table of Contents
2 Absolute Value
3 Functions
4 Polynomials
5 Rational Functions
6 Trigonometric Functions
Liu Chunchun, Wong Yan Loi (NUS) MA1521 Calculus for Computing Lecture 1 January 15 and 18, 2024 12 / 40
Real Numbers and Functions
. . . , −2, −1, 0, 1, 2, 3, . . . ,
p
the rational numbers, , where p and q are integers (q 6= 0),
q
√
and the irrational numbers, like 2, π, e, etc.
Liu Chunchun, Wong Yan Loi (NUS) MA1521 Calculus for Computing Lecture 1 January 15 and 18, 2024 13 / 40
Real Numbers and Functions
Similarly, we may form the half-open intervals [a, b) and (a, b].
Liu Chunchun, Wong Yan Loi (NUS) MA1521 Calculus for Computing Lecture 1 January 15 and 18, 2024 14 / 40
Absolute Value
Liu Chunchun, Wong Yan Loi (NUS) MA1521 Calculus for Computing Lecture 1 January 15 and 18, 2024 15 / 40
Absolute Value
Example
2x − 1
Solve the inequality < 1.
2x + 1
Solution.
2x − 1
<1
2x + 1
2x − 1
⇐⇒ 0 < 1 −
2x + 1
2x + 1 − 2x + 1
⇐⇒ 0 <
2x + 1
2
⇐⇒ 0 <
2x + 1
⇐⇒ 0 < 2x + 1
1
⇐⇒ − < x.
2
Liu Chunchun, Wong Yan Loi (NUS) MA1521 Calculus for Computing Lecture 1 January 15 and 18, 2024 16 / 40
Absolute Value
Example
Solve the inequality |x + 1| ≤ |2x − 1|.
Solution.
|x + 1| ≤ |2x − 1|
⇐⇒ |x + 1|2 ≤ |2x − 1|2
⇐⇒ x 2 + 2x + 1 ≤ 4x 2 − 4x + 1
⇐⇒ 0 ≤ 3x 2 − 6x
⇐⇒ 0 ≤ 3x(x − 2)
⇐⇒ x ≤ 0 or x ≥ 2
⇐⇒ x ∈ (−∞, 0] ∪ [2, ∞).
Liu Chunchun, Wong Yan Loi (NUS) MA1521 Calculus for Computing Lecture 1 January 15 and 18, 2024 17 / 40
Absolute Value
Exercise
Let r > 0. Prove that |x − a| < r if and only if x ∈ (−r + a, a + r ).
Exercise
Prove the triangle inequality |x + y| ≤ |x| + |y|.
Exercise
Prove that for any x, y ∈ R, ||x| − |y|| ≤ |x − y|.
Liu Chunchun, Wong Yan Loi (NUS) MA1521 Calculus for Computing Lecture 1 January 15 and 18, 2024 18 / 40
Absolute Value
Example
Prove the triangle inequality |x + y| ≤ |x| + |y|.
Solution.
|x + y | ≤ |x| + |y|
⇐⇒ |x + y |2 ≤ (|x| + |y|)2
⇐⇒ (x + y)2 ≤ (|x| + |y|)2
⇐⇒ x 2 + y 2 + 2xy ≤ |x|2 + |y |2 + 2|x||y|
⇐⇒ x 2 + y 2 + 2xy ≤ x 2 + y 2 + 2|x||y|
⇐⇒ xy ≤ |x||y |
⇐⇒ xy ≤ |xy|.
Since the last inequality xy ≤ |xy| is true, we have proved the triangle
inequality.
Liu Chunchun, Wong Yan Loi (NUS) MA1521 Calculus for Computing Lecture 1 January 15 and 18, 2024 19 / 40
Functions
Example
x2 x2
f (x) = assigns the number to each x 6= 1 in R.
1−x 1−x
Liu Chunchun, Wong Yan Loi (NUS) MA1521 Calculus for Computing Lecture 1 January 15 and 18, 2024 20 / 40
Functions
Liu Chunchun, Wong Yan Loi (NUS) MA1521 Calculus for Computing Lecture 1 January 15 and 18, 2024 21 / 40
Functions
Liu Chunchun, Wong Yan Loi (NUS) MA1521 Calculus for Computing Lecture 1 January 15 and 18, 2024 22 / 40
Functions
Example
1
Let f (x) = and g(x) = x 2 − 1. Find g ◦ f and f ◦ g.
x
1 1 1
Solution. g ◦ f (x) = g(f (x)) = g( ) = ( )2 − 1 = 2 − 1.
x x x
1
f ◦ g(x) = f (g(x)) = f (x 2 − 1) = .
x2 −1
Liu Chunchun, Wong Yan Loi (NUS) MA1521 Calculus for Computing Lecture 1 January 15 and 18, 2024 23 / 40
Functions
Liu Chunchun, Wong Yan Loi (NUS) MA1521 Calculus for Computing Lecture 1 January 15 and 18, 2024 24 / 40
Functions
Let f : A → B be a function.
f is called an injective function if for any x, y ∈ A, f (x) = f (y) ⇒ x = y.
f is called a surjective function if for any z ∈ B, there is an x ∈ A such
that f (x) = z.
f is called a bijective function if f is injective and surjective.
.......... ..........
...... ......... f ...... .........
.... ... .... ...
... ...
A ...
..
. • .
...
.
...........
... ..........
........
...............
.
.. . •
...
...
...
B
.... ... ............................. ..... ...
... ............. ..................... ...
...
...
• .
.............
.
... ..
.
.
.
................ • ...
...
.
... .. ... ...
...
... • .
.
.
. .......
..
............................................................. • ..
.
.. f is injective but not surjective
... .
. ... ..
... .. .
... ..
... ... ... ...
...
...
.... ...
..
... ...
...
....
• ..
.
..
...
...... ...... .
. ...... ...... .
.
.......... ..........
Liu Chunchun, Wong Yan Loi (NUS) MA1521 Calculus for Computing Lecture 1 January 15 and 18, 2024 25 / 40
Functions
.. .....................
........ ............ f .....
..... ... ... ...
... ... ...
A ...
...
• ..
...........
..............
..........
...............
...
.
• ...
...
B
.... ... ............................. ... ...
...
... .
. .
...
...
..... ....................
...
....
• ...............
... ....
....
................ • ...
...
..
... ... ... ..
...
... • .
. . . . . .
....................................................................
. . .
. . • .
...
..
f is surjective but not injective
... ... ......
.... ............ .
..
..... ...
...
... ... .................. ... ...
...
...
....
• ...............
.....
...
...
... .....
..
..
.................. ..................
...
..... ....
... f .....
...
....
...
A ... ... ... ... B
....
... • ... . .
........... . .
... ........... ..........................
... ......................... ...
. . . .. . ..
. .. • ...
...
... .... ...............
...
...
... . ..
...
....
• ..
...... ... . . .
.
...
. ..
. .
...........
.
.
.
. .
• ...
...
...
... .... . ... f is bijective
...
...
...
• .....................................................................
..
.
. ....
• ....
....
... . ... .
.. . ...
...
...
...
• .......................................................................
.. ... • ...
...
..
..... .
..... ...
........ ..... .
...
.................. .........
Exercise
Prove that if f −1 exists, then f is a bijective function.
Liu Chunchun, Wong Yan Loi (NUS) MA1521 Calculus for Computing Lecture 1 January 15 and 18, 2024 26 / 40
Functions
Graph of f −1 .
Liu Chunchun, Wong Yan Loi (NUS) MA1521 Calculus for Computing Lecture 1 January 15 and 18, 2024 28 / 40
Rational Functions
x3 + 3
For example, is a rational function, and its domain is
x4 − 1
R \ {−1, 1}.
Liu Chunchun, Wong Yan Loi (NUS) MA1521 Calculus for Computing Lecture 1 January 15 and 18, 2024 29 / 40
Trigonometric Functions
Liu Chunchun, Wong Yan Loi (NUS) MA1521 Calculus for Computing Lecture 1 January 15 and 18, 2024 30 / 40
Trigonometric Functions
Liu Chunchun, Wong Yan Loi (NUS) MA1521 Calculus for Computing Lecture 1 January 15 and 18, 2024 31 / 40
Trigonometric Functions
Liu Chunchun, Wong Yan Loi (NUS) MA1521 Calculus for Computing Lecture 1 January 15 and 18, 2024 32 / 40
Trigonometric Functions
1
sec x = .
cos x
Liu Chunchun, Wong Yan Loi (NUS) MA1521 Calculus for Computing Lecture 1 January 15 and 18, 2024 33 / 40
Trigonometric Functions
Exercise
1
Sketch the graph of csc(x), where csc x = .
sin x
Liu Chunchun, Wong Yan Loi (NUS) MA1521 Calculus for Computing Lecture 1 January 15 and 18, 2024 34 / 40
Exponential and Logarithmic Functions
Liu Chunchun, Wong Yan Loi (NUS) MA1521 Calculus for Computing Lecture 1 January 15 and 18, 2024 35 / 40
Exponential and Logarithmic Functions
Liu Chunchun, Wong Yan Loi (NUS) MA1521 Calculus for Computing Lecture 1 January 15 and 18, 2024 36 / 40
More on the Domain and Range of a Function
Liu Chunchun, Wong Yan Loi (NUS) MA1521 Calculus for Computing Lecture 1 January 15 and 18, 2024 37 / 40
More on the Domain and Range of a Function
Example
1
Find the maximal domain and the range of f (x) = .
x −1
Example
Find the maximal domain and range of f (x) = x 2 − x + 1.
Exercise
Let f (x) = x + 5 and g(x) = x 2 − 3.
Find the maximal domain and range of g(f (x)).
Liu Chunchun, Wong Yan Loi (NUS) MA1521 Calculus for Computing Lecture 1 January 15 and 18, 2024 40 / 40