Cal1 Ch1 2122 S1
Cal1 Ch1 2122 S1
Cal1 Ch1 2122 S1
Syllabus
1. Functions, Limits & Continuity
2. Differentiation
3. Applications of Differentiation
4. Integration
5. Applications of Integration
Chapter 1 Functions, Limits
and Continuity
1.1 What is Calculus?
1.2 Straight Lines. Equations of Lines
1.3 Functions and Graphs
1.4 New Functions from Old Functions. Inverse Functions
1.5 Parametric Curves
1.6 Definition of a Limit. One-sided Limits
1.7 Laws of Limits. Evaluating Limits. The Squeeze
Theorem
1.8 Limits Involving Infinity
1.9 Continuity
1.10 The Intermediate Value Theorem
2
1.1 What is Calculus?
• Arithmetic, algebra, geometry, etc. are useful for
describing quantities that are not changing or moving.
• But we live in a world full of change!
• Calculus gives us tools to describe change.
Examples:
3
Calculus is the best way to describe most of the 'laws
of nature' as well as many relationships in finance,
engineering and other fields.
y y2 y1
m
x x2 x1
b) on (0, 2)
c) at x = 6
8
The Equation of a Straight Line
• Suppose a straight line with slope m crosses the y -axis at
y = c. We call c the y-intercept.
y2 y1
• For any two points on the line, m .
x2 x1
• Setting (x1, y1) = (0, c) and letting (x2, y2) be a
general point (x2, y2) = (x, y),
yc
we get m
x0
and so y mx c
This is the most common
way of writing the equation
of a straight line. It is called
the slope-intercept form.
9
The slope-intercept form is very convenient for graph-
sketching.
y mx c
slope intercept
y y = 3x y=x+1
y
3
y=x
2 y=x
y=x–1
1
1
x
1 x -1
-1 y=-x
10
Example 3
Sketch the following graphs:
(a) y = x + 2 (c) y = 1 – x
(b) y = 2x – 6 (d) 2y = x + 2
11
OTHER FORMS
The equation of a straight line can also be rearranged
or written in other ways, for example:
Point-Slope Form
For a line with slope m passing through point (x1, y1):
y y1 m( x x1 )
Two Point Form
For a line passing through points (x1, y1) and (x2, y2):
y y1 y2 y1
( m)
x x1 x2 x1
y2 y1
(These results follow directly from m . )
x2 x1
12
Example 4
Find the equation of the straight line passing through
points (2, 0) and (0, 3).
13
Practical Application
Example 5 On a certain day, the temperature of air at
ground level was 20 ºC and the temperature at a height of 1 km
was 10 ºC. Assume temperature varies linearly with height.
a) Sketch a graph of the temperature T (in ºC) as a function of
height h in kilometres. b) Find the equation of the line.
c) What is the slope? What are its units? What does it mean?
d) Find the temperature at a height of 2.5 km.
14
1.3 Functions and Graphs
1.3.1 Functions
A function arises when one quantity depends on
another. E.g.
the height H of a child varies with age t.
the cost C of mailing a parcel depends on its mass m.
the area A of a circle depends on the radius r.
Given the value of x, there is a rule which determines
the value of f. We say f is a function of x.
It is like a machine:
Example 6
Given f ( x) x 2 5 , find:
a) f (3)
b) f ( x 1)
c) f (3x 2 )
16
Definition
A function f is a rule that assigns to each element in
some set D(f) exactly one element f(x) in a set R(f).
The element f(x) is called the value of f at x.
It can also be visualized as an arrow diagram:
a) f(x) = x2 + 3
b) g ( x) ln( x 1)
c) h(x) = 2 + 3 sin(πx)
18
Many functions can be represented by their graph.
The graph of a function f is the graph y = f(x).
19
Vertical Line Test. A curve in the xy-plane is the
graph of a function of x if and only if any vertical line
intersects the curve not more than once.
Yes! No!
Example 8
Sketch the graphs (a) y = x2, (b) y2 = x. State whether or not
each curve represents a function of x.
20
Representing Functions
A function can generally be represented in one or
more of the following four ways:
(1) a verbal description
(2) a table of values
(3) a graph
(4) a formula
21
Example 9
a) Sketch an approximate graph of your height H as a function
of your age t.
22
Example 10
A box with an open top is made from a rectangular piece of
card, 15 cm 20 cm, by cutting out squares of side length x at
each corner, then folding up the sides, as shown in the figures.
Find a formula for the volume of the box as a function of x.
23
Functions and Mathematical Modelling
In many practical situations, data does not fit a formula
exactly, but we can use an approximate formula to ‘model’
the data.
For example, the table
shows the CO2 level
measured at a certain
place 1980 – 2002.
year 24
So we could assume a linear model for this data.
- We could find the equation of
the straight line through the
end points.
- Then use our equation to
predict the 2021 CO2 level, etc..
C = 1.545t - 2721
This is an example of
mathematical modelling.
real formulate maths solve maths interpret real
problem model solution prediction
test
27
POWER FUNCTIONS have the form y x where
a
a is a constant.
y x 1
y
x2
28
TRIGONOMETRIC FUNCTIONS
• You should know the sine (sin), cosine (cos) and
tangent (tan) functions
• Also cosec x
1
, sec x
1
, cot x
1
.
sin x cos x tan x
p 0 p 2p
1 y = cos x
y = tan x
p 0 p 2p
30
EXPONENTIAL FUNCTIONS have the form y a x.
x is the exponent (or power or index)
a is the base
The most common exponential function (often called the
exponential function) is f(x) = ex.
e is an irrational number called the exponential constant,
e = 2.7182818…. (Its importance will become clearer later!)
Graphs
y = ex
You should know the graphs of
a) y = ex (exponential growth)
b) y = e-x (exponential decay)
y = e-x
31
LOGARITHMIC FUNCTIONS
If x = ay then y = loga x. This is a logarithmic
function. a is again called the base.
If no base is given, log x should be understood to
mean log10 x (log to the base 10).
But in calculus we almost always natural logs,
notated ln, which are logs to the base e.
That is ln x = loge x.
Graphs
You should know the
graph y = ln x
32
Extra note: CIRCLES
A circle of radius r centred at (a,b) has
equation ( x a)2 ( y b)2 r 2
34
1.3.3 Piecewise Functions & Symmetry
PIECEWISE FUNCTIONS
A piecewise function is defined by different formulae in
different parts of its domain. Two common examples are:
1) The Modulus Function
|x| is called the modulus or absolute value of x.
We have x x if x 0
x if x 0
2) A Step Function
0 if x 0
f ( x)
1 if x 0
36
Example 13 x if x 0
1 if 0 < x 1
a) Sketch the graph of the function
f ( x) 2 if x 1
1
2 x if x 1
Example 14
Show that f(x) = x3 – 1/x is an odd function.
38
Example 15
Give examples of even and odd functions. Draw their graphs.
39
Note: The graph of an even function is symmetric with respect
to reflection in the y-axis. The graph of an odd function is
symmetric with respect to rotation by 180° about the origin.
Investigation Exercise
Plot the following graphs. What patterns do you notice?
1. a) y = x2, b) y = x2 + 3, c) y = (x – 3)2.
2. a) y x b) y 3 x c) y x 3
http://www.meta-calculator.com/online/
41
TRANSLATIONS For a function f(x) and positive constant c,
to obtain the graph of
y = f(x) + c, shift the graph of y = f(x) UP by c units
y = f(x) – c, shift the graph of y = f(x) DOWN c units
y = f(x + c), shift the graph of y = f(x) LEFT c units
y = f(x – c), shift the graph of y = f(x) RIGHT c units
42
Example 16
Sketch a) y e 1
x
b) y ln( x 1)
43
Example 17 Figure A is the graph of f(x) = x2.
What is the equation of graph B?
A B
44
Investigation Exercise
Plot the following graphs. What patterns do you notice?
1. a) y = sin x, b) y = 3 sin x, c) y = sin 2x.
2. a) y x b) y x c) y x
STRETCHES
To obtain the graph of y = 2f(x)
y = cf(x), stretch y = f(x) y = f(2x)
vertically by a factor c
y = f(x)
y = f(cx), compress y = f(x)
horizontally by a factor c
45
REFLECTIONS
To obtain y = – f(x),
reflect y = f(x) in the x-axis
To obtain y = f(–x),
reflect y = f(x) in the y-axis
Example 19
Sketch: a) y = – x2 , b) y ln( x)
46
Example 20 The graph of f(x) is shown. Match the
other graphs with their equations: (a) y f ( x 4)
(b) y f ( x) 3
(c ) y f ( x ) / 3
(d ) y f ( x 4)
(e) y 2 f ( x 6)
47
Example 21 Sketch: (a) y = 1 – sin x , (b) y = |sin x|
where f ( x) 0
Note that y = |f(x)| means y
f ( x)
f ( x) where f ( x) 0
So where f(x) is positive, the graph is unchanged. Where f(x) is
negative the graph is reflected in the x-axis (to become positive).
48
1.4.2 Combinations and Compositions of Functions
Let f and g be functions with domains A and B respectively.
These functions can be combined or composed to make
new functions.
Combinations of Functions
Algebraic operations on f and g are defined as follows:
(f+g)(x) = f(x)+ g(x) with domain A B
(f – g)(x) = f(x) – g(x) with domain A B
(fg)(x) = f(x)g(x) with domain A B
(f /g)(x) = f(x)/g(x) with domain A B {x: g(x) 0}.
50
Compositions of Functions
Suppose y f (u) sin u, and u g ( x) 2 x 1
By substitution, y f (u) f ( g ( x)) sin(2 x 1)
(f ० g)(x) = f(g(x))
Note: In general f ० g g ० f
51
Example 23
Let f ( x) x 2 , g ( x) 3 e x
Find a) f ० g , b) g ० f , c) (f ० g ० f )(0) .
52
One-to-One Functions
• We know that if y is a function of x then for every x
there is exactly one value of y = f(x) (see slide 19-20).
• If it is also true that for every y there is exactly one
value of x, then f(x) is called a one-to-one function.
Examples
y=x
y = x2
54
1.4.3 Inverse Functions
Remember a function can be thought of as a machine:
x f(x) x
f -1
Notes
1. f –1 is a special symbol for the inverse.
The -1 is NOT an exponent. f –1(x) [f(x)] –1 = 1/ f(x).
2. f ( f 1( x)) x for all x B, f 1( f ( x)) x for all x A.
56
Finding an Inverse Function
To find the inverse of a given function f(x):
1. Write y = f(x).
2. Solve the equation to find x in terms of y.
3. To express f –1 as a function of x, interchange x and y.
This gives y = f –1(x).
Example 25
a) Find the inverse of the function f(x) = x2 + 3, x ≥ 0.
57
Example 25, cont.
b) Find the inverse of the function g(x) = e x
58
Graphs of Inverse Functions
• If f maps a onto b, then f –1 maps b onto a.
• So if the graph of f includes (a, b)
then the graph of f –1 includes (b, a).
• Point (b, a) is obtained from (a, b) by
reflecting in the line y = x.
1
NOTE: do not confuse sin x with (sin x)1 cosec x
60
Inverse Cosine Function
f ( x) cos x is one-to-one on [0, p], so we define
y cos1 x arccos x cos y x and 0 y p
Inverse Tangent Function
For tangent we take the interval (p/2, p/2), and define
y tan1 x arctan x tan y x and p / 2 y p / 2
The graphs are the reflections of the original graphs in the line y = x. 61
1.5 Parametric Curves
Introduction
Suppose a particle moves
along the curve C.
C cannot be described by
an equation of the form
y = f(x). (Why not?)
But the x- and y- coordinates of the particle are both
functions of time: x= f(t) and y= g(t).
t is called a parameter. C is called a parametric curve.
C has parametric equations x= f(t) and y= g(t).
We can also write c(t) = (f(t), g(t)).
Generally, a parameter may be any quantity on which two other
quantities depend. Time and angle are common parameters. 62
Example 26 a) Sketch the curve x = t2 – 2t , y = t + 1.
We can construct a table of values and thus plot the curve:
t x y
-2 8 -1
-1 3 0
0 0 1
1 -1 2
2 0 3
3 3 4
4 8 5
63
Notes
• The parameter can sometimes be eliminated (as in
Example 26). But this is not always possible.
• The direct equation and parametric equations describe
the same curve.
• But the parametric equations also tell us when the
particle was where, i.e. how the curve is traced.
66
Some Common Parametrizations
1) A circle of radius R centred at the origin
has Cartesian equation x2 + y2 = R2.
Letting t be the angle a point makes
with Ox, parametric equations to
traverse the circle once anti-clockwise
are: x R cos t
0 t 2p .
y R sin t
2) The straight line segment that joins (x1, y1) and (x2, y2)
can be described by the parametric equations
x x1 ( x2 x1 )t , y y1 ( y2 y1 )t , 0 t 1.
For example, for the line segment from (1, 2) to (4, 9),
we can write x 1 3t
0 t 1.
y 2 7t
67
1.6 Definition of a Limit
Introduction
Suppose a scientist wants to know the value of a
certain physical quantity at zero air pressure. In his
laboratory he can produce low air pressures but he
cannot achieve a perfect vacuum. What might he do?
68
Limits: A Working Definition
We ask:
As x gets closer and closer to x0 (but x x0), does
f(x) get closer and closer to some finite number L?
If ‘yes’, we say the limit of f(x) as x approaches x0 equals L.
Written lim f ( x) L
xx0
or f ( x) L as x x0
Equivalently: we can make the value of f(x) as close as
we like to L by taking x sufficiently close to x0.
72
(III) The graph of h( x) sin( 1
x ) is shown below.
What can we say about lim h( x) , lim h( x) and lim h( x ) ?
x0 x0 x 0
(a) lim f ( x)
x1
(b) lim f ( x)
x1
(c) lim f ( x)
x1
(d ) lim f ( x)
x3
(e) lim f ( x)
x 4
74
Limits: Formal Definition [Optional]
The definition given above is rather informal. More
formally, the concept of a limit may be defined as follows.
Definition
Let f be a function that is defined on an open interval
containing x0, except possibly at x0. We say lim f ( x) L
x x
if for every small quantity e > 0 there exists a d > 0 such
0
76
1.7 Evaluating Limits. Laws of
Limits.
In section 1.5 we used tables and graphs to ‘guess’
limits. Then we met a formal proof but this is hard work
to use! Now we will develop tools for finding limits
precisely and relatively easily.
1.7.1 An Initial Theorem
From the definition of a limit, the following simple but
important result can be proved:
80
x2 1
(b) lim
x1 x 1
x 1
(c) lim
x1 x 1
81
Example 36
3x 2 x 1, find
Given f ( x) lim f ( x) and lim f ( x).
x 1 x 1 x1 x1
82
1.7.4 The Squeeze Theorem (or sandwich theorem)
If g is trapped between f
and h, and if f and h have
the same limit L at x0, (i.e.
f and h meet at x0), then g
must also have the same
limit L at x0.
83
Example 37
1
Use the squeeze theorem to show that lim x sin 0
2
x0 x
84
1.8 Limits involving Infinity
A cup of hot tea is placed in a room which is air
conditioned at 25 ºC. After a long time, what will
the temperature of the tea be?
1.8.1 Limits at Infinity
2 x2 1
Example Consider f ( x) .
x 3 2
2 x2 1
E.g. For f ( x) , we have lim f ( x) 2
x 3
2 x
so as x , f(x) approaches the straight line y = 2.
We say y = 2 is a horizontal asymptote of the graph of f.
1.8.2 Infinite Limits
Example Consider the function h( x) 1 x
Sketch the graph. What is lim h( x) ?
x0
90
Example 39 Find the following limits:
3x 2 1
a ) lim
x 2 x2 5
1
b) lim
x0 x3
c) lim ( x 2 x x)
x
d ) lim ( x 2 x x)
x
91
Asymptotes – summary
• If limx→ f(x) = L1 and/or limx→- f(x) = L2
then y = L1 and/or y = L2 is a horizontal asymptote to the graph
• If limx→a+ f(x) = ± and/or limx→a- f(x) = ±
then x = a is a vertical asymptote to the graph.
• Horizontal asymptotes can be identified by looking at the
behaviour of the function as x → ± .
• Values where a function is undefined may indicate vertical
asymptotes.
Example 40
1
Identify the horizontal and vertical asymptotes of f ( x) .
x 1
2
92
1.9 Continuity
Definition
A function f is continuous at x0 if lim f ( x) f ( x0 ).
xx0
3) lim f ( x) f ( x0 )
xx0
93
Conversely, f is discontinuous at x0 if there is a break,
or the left and right limits are not equal or do not exist.
Discontinuities are classified into three types:
(a) Removable Discontinuities
could be ‘removed’ by redefining
the function at a single number.
94
Example 40
a) Consider again the graph shown.
At what values of x is f discontinuous?
What type of discontinuities are these?
1 x x 1
b) Consider f ( x) 1 x 1 . Is f continuous at x = 1?
x 1 x 1
95
Further DEFINITIONS
A function f is continuous from the right at x0 if
lim f ( x) f ( x0 )
xx0
A function f is continuous from the left at x0 if
lim f ( x) f ( x0 )
xx0