Math 1021 Calc of One Variable Lecture Notes
Math 1021 Calc of One Variable Lecture Notes
sin x
EXAMPLE – Guess the value of lim .
x→0 x
sin x
The function is not defined at x = 0. However, we
x
only consider f (x) near x = 0 and not at x = 0.
sin x
y=
x
sin x
From the table we guess that lim =1
x→0 x
1
2 MATH 1021 Calculus of One Variable
2 + 3x − sin(x)
lim f (x) = lim
x→4 x→4 x2 + 2
limx→4(2 + 3x − sin(x))
= ( quotient law)
limx→4 x2 + 2
2 + 3 · 4 − sin(4)
=
(4)2 + 2
14 − sin(4)
= .
18
4 MATH 1021 Calculus of One Variable
both exist. If
f (x) ≤ g(x), for all x near c
then
lim f (x) ≤ lim g(x).
x→c x→c
1
EXAMPLE – Calculate lim x sin .
x→0 x
1
Notice that x sin is not defined at x = 0.
x
1
y = x sin
x
ONE-SIDED LIMITS
1 bc
x
bc
-1
1
Looking at the graph of the function f (x) = below, it is
x
clear that
1 1
lim = lim = 0.
x→+∞ x x→−∞ x
y = 1x
1
The line y = 0 is a horizontal asymptote of y = .
x
Important
1) The basic limit laws we discussed also hold for limits at
infinity.
2) When calculating limits as x → ±∞ we always assume:
1 1
lim ex = 0, lim e−x = 0, lim = 0, lim = 0.
x→−∞ x→∞ x→∞ x x→−∞ x
1
2 MATH 1021 Calculus of One Variable
Infinite Limits
y = x3 − x2 + 3x + 6
Vertical Asymptotes
1
Consider the function f (x) = .
x
y = 1x
3x3 − 2
Example – Find lim 4 .
x→−∞ x + 4x2 − 1
3 2
− 4
= lim x x
x→−∞ 4 1
1+ 2 − 4
x x
3 2
lim −
x→−∞ x x4
=
4 1
lim 1 + 2 − 4
x→−∞ x x
0−0
= = 0.
1+0−0
4 MATH 1021 Calculus of One Variable
Discontinuous functions
If the function f is not continuous at a point c we say that
f is discontinuous at c, or that f has a discontinuity at c.
LIMITS AND CONTINUITY – Week4 Lect2 5
Types of Discontinuities
Jump Discontinuity (
1, if x ≥ 1,
Consider the function f (x) =
−1, if x < 1,
Infinite discontinuity
1, if x 6= 0,
Consider again the function f (x) = x
0, if x = 0,
1
y=
x
b
Since
lim 1/x = ±∞,
x→0±
Removable discontinuity
sin x
The function f (x) = is undefined at x = 0 and there-
x
fore is discontinuous at x = 0.
sin x
However, we showed earlier that lim = 1.
x→0 x
sin x
y=
x
run
y = f (x)
x
a
1
2 MATH 1021 Calculus of One Variable
f (a) b
y = f (x)
x
a
Differentiation – Week5 Lect1 3
Definition of Derivative
Consider points P(a, f (a) and Q(a + h, f (a + h))
on a function f .
y
P Qb
f (a) b
y = f (x)
a x
a+h
(
x if x ≥ 0,
f (x) = |x| =
−x if x < 0,
y
Example
|h|
Explain informally why limh→0 does not exist.
h
Since (
h if h ≥ 0,
|h| =
−h if h < 0,
it follows that
(
|h| 1 if h ≥ 0,
=
h −1 if h < 0,
1 bc
h
bc
-1
Differentiable function
If the derivative f ′(x) is defined for all x in
an open interval I, we say f is differentiable
on I.
Differentiation – Week5 Lect1 7
Alternative notation
If we use ∆x = h and define ∆y = f (x + ∆x) − f (x), the
definition of derivative of f becomes
f (x + ∆x) − f (x) ∆y
f ′(x) = lim = lim .
h→0 h ∆x→0 ∆x
∆x = increment of x and
∆y = the increment of y.
8 MATH 1021 Calculus of One Variable
Theorem
If a function f is differentiable at a point a,
then f is also continuous at a.
x
Differentiation – Week5 Lect1 9
b) g(x) = sin x
g(x) = sin x, g′(x) = cos x,
g′′(x) = − sin x, g′′′(x) = − cos x.
10 MATH 1021 Calculus of One Variable
f ′ f ′ g − f g′
The quotient rule =
g g2
!′
ex
(ex)′ sin x − ex(sin x)′
=
sin x sin2 x
ex sin x − ex cos x
=
sin2 x
Differentiation – Week5 Lect1 11
Examples
d
cos(ex) = − sin(ex) × ex = −ex sin(ex)
dx
d cos x
(e ) = ecos x × (− sin x) = − sin x ecos x
dx
d 3
(x − 1)100 = 100(x3 − 1)99(3x2) = 300 x2(x3 − 1)99
dx
Implicit differentiation
Consider the following relations
x2 + y2 − 9 = 0 or x2y2 + x sin y − 4 = 0.
The first equation represents a circle and it is possible to
make y the subject to obtain the two explicit functions
p p
y = 9 − x and y = − 9 − x2.
2
dy
We can now find the derivative using ordinary differen-
dx
tiation.
Logarithmic differentiation
Sometimes, the calculation of derivatives of functions in-
volving products, quotients or powers can be simplified
by:
a) Taking the natural logarithm of both sides of the equa-
tion,
b) And using implicit differentiation.
3
1/4
x +1
Example – Differentiate the function y =
x7/9
First take the natural logarithm of both sides:
3 1/4 3
x +1 1 x +1
ln y = ln = ln
x7/9 4 x7/9
1 7
= ln(x3 + 1) − ln x.
4 36
We now differentiate implicitly:
1 dy 3x2 7
= −
y dx 4(x3 + 1) 36x
or
1/4
3x2
3
3x2
dy 7 x +1 7
=y − = −
dx 4(x3 + 1) 36x x 7/9 4(x 3 + 1) 36x
1
2 MATH 1021 Calculus of One Variable
Hyperbolic functions
ex + e−x ex − e−x
cosh x = sinh x =
2 2
y = cosh x y = sinh x
They have many properties similar to the trigonometric
sine and cosine functions.
Some identities
cosh2 x − sinh2 x = 1
sinh(x + y) = sinh x cosh y + cosh x sinh y
cosh(x + y) = cosh x cosh y + sinh x sinh y
For example,
x −x
2 x −x
2
2 2 e +e e −e
cosh x − sinh x = −
2 2
2x −2x 2x −2x
e +2+e e −2+e
= −
4 4
4
= =1
4
Derivatives
d x
Since (e ) = ex we can easily show that:
dx
d d
(cosh x) = sinh x (sinh x) = cosh x
dx dx
a) y = sinh x is injective on R.
Any horizontal line intersects its graph exactly once.
y = cosh x y = sinh x
Differentiation – Week5 Lect2 7
Inverse functions
Suppose that the function f : A → B is injective in A.
Then we may define an inverse function f −1 : B → A with
domain B and range A.
y = ln x
Warning
The notation f −1 always means the inverse function. It
1
does not denote the reciprocal .
f (x)
8 MATH 1021 Calculus of One Variable
a) A = {x ∈ R | x ≥ 0}
b) S = {x ∈ R | x ≤ 0}
c) (2, 4).
2 4
f :A→A f (x)=x2 f :S→A f (x)=x2 f :(2, 4)→(4, 16) f (x)=x2
4 16
√ √ √
f −1 (x)= x f −1 (x)=− x f −1 (x)= x
10 MATH 1021 Calculus of One Variable
y = sinh x y = sinh−1 x
1
y = cosh x 1−1
y = cosh x
However, choosing just the right hand half of the curve will
give an injective function.
1
2 MATH 1021 Calculus of One Variable
Local extrema
Global extrema
y = 1x
y = 1x
b
1 2
1
the global maximum is 1 and the global minimum is .
2
There are no local maxima or minima in either case.
6 MATH 1021 Calculus of One Variable
Critical points
y = x3
Example
Find the global maximum and minimum values of
f (x) = x3 − 3x2 − 9x − 5
1) on the interval [0, 4]
2) on the interval [−2, 4].
CASE 1)
40 y = x3 − 3x2 − 9x − 5
30
20
10
−2−10
−1 1 2 3 4 5
−20
−30
−40
−50
Applications of Differentiation – Week6 Lect1 9
CASE 2)
Increasing/Decreasing test
max
f′ > 0 f′ < 0 f′ < 0 f′ > 0
min
f ′ undefined
f ′ undefined
f′ > 0
f′ > 0 f′ < 0
f′ < 0 f′ > 0
f ′ undefined f′ > 0
Concavity
a) If the graph of f lies above the tangent line for all points
close to (c, f (c)) the graph is concave upward at this
point.
b) If the graph lies below the tangent line at all points
close to (c, f (c)) then the graph is concave downward
at this point.
f (x) f (x)
f (c) f (c)
c x c x
concave upward concave downward
Concavity Test
Points of Inflection
concave upward
f ′′ = 0
1 { point of inflection 1
f ′′ < 0
(c, f (c))=(0,0.5)
f (c) concave downward
f ′′ < 0
horizontal tangent
concave upward ′′
f undefined
point of inflection } 1
c
1 2 concave downward
The fact that (c, f (c)) is a point of inflection means that the
graph actually crosses the tangent at (c, f (c)).
Applications of Differentiation – Week6 Lect1 15
f ′′ > 0
max
min
f ′′ < 0
y = x3
L’Hôpital’s rule
f (x)
Suppose we want to calculate limx→c .
g(x)
1
2 MATH 1021 Calculus of One Variable
Examples
The following are examples of indeterminate forms that
can be solved using other methods.
sin x x3 − x2 + 2x − 2
Consider limx→0 and limx→1 .
x x−1
sin x
In Chapter 4 we proved that limx→0 = 1.
x
Here we see that eliminating the common factor we get
x3 − x2 + 2x − 2 (x2 + 2)(x − 1)
lim = lim = lim(x2 +2) = 3.
x→1 x−1 x→1 x−1 x→1
Applications of Differentiation – Week6 Lect2 3
±∞
L’Hôpital’s rule form
±∞
Suppose that limx→c f (x) = ±∞, limx→c g(x) = ±∞ and
f ′(x)
that limx→c ′
g (x)
exists. Then
f (x) f ′(x)
lim = lim ′ .
x→c g(x) x→c g (x)
Important
When applying the rule more than once to the same ex-
pression, is important to ensure that the conditions are
satisfied at each step or we will get the wrong answer.
4 MATH 1021 Calculus of One Variable
Examples
ex
a) We calculate limx→∞ .
x ∞
As x → ∞ this expression has the form
∞
Therefore may apply l’Hôpital’s rule
ex ex
lim = lim = ∞.
x→∞ x x→∞ 1
ex
b) Find limx→∞ 2 .
x
Here we must use l’Hôpital’s rule twice;
ex ex ex
lim = lim = lim = ∞.
x→∞ x2 x→∞ 2x x→∞ 2
6x2 + 2x − 6
c) Calculate limx→∞ 2
2x − 7x + 4
Applying l’Hôpital’s rule twice we find that
6x2 + 2x − 6 12x + 2 12
lim = lim = lim = 3.
x→∞ 2x2 − 7x + 4 x→∞ 4x − 7 x→∞ 4
Of course, we could also evaluate this limit by dividing
both the numerator and the denominator by x2.
1
x
= lim 1
x→0+ − 2
x
−x2
= lim = lim −x = 0.
x→0 + x x→0+
6 MATH 1021 Calculus of One Variable
Linear approximations
Close to a point x = a, a differentiable function f (x) can
be approximated by the tangent to the curve at that point.
Example
Find the linearisation of the function
√
f (x) = x + 3 at x =√1 and use it√to calculate approxima-
tions of the numbers 3.98 and 4.05.
Differentials
Recall the definition of derivative in terms of the incre-
ments ∆x and ∆y,
∆y
f ′(x) = lim where ∆y = f (x + ∆x) − f (x).
∆x→0 ∆x
If ∆x is “small”,
∆y
≈ f ′(x) =⇒ ∆y ≈ f ′(x) ∆x.
∆x
dy
We can now treat the notation for the derivative as a
dx
“ratio”, since in terms of differentials we have
dy f ′(x) dx
= = f ′(x).
dx dx
Example
Calculate the differential d f of the function
f (x) = x3 + 5x2.
Since f ′(x) = (3x2 + 10x) then
d f = f ′(x)dx = (3x2 + 10x)dx
Example
Write down the differential d f of
f (x) = 2x cos x and find an expression for the differen-
tial in terms of dx when x = 0.
y
y = f (x)
f (x0 + ∆x)
∆y ∆y
dy
f (x0)
dx = ∆x
x
x0 x0 + ∆x
Observe carefully in the diagram that
∆y = f (x0 + ∆x) − f (x0) changes along the curve
while dy changes along the tangent line.
Therefore,when dx = ∆x is small, we can say that
∆y ≈ dy.
Example
√
Given the function f (x) = 3x + 4, use differentials to find
an approximate value for f (7.1).
Example
The volume of a sphere is given by V = 34 π r3 where r is
the radius of the sphere. By approximately how much is
the volume of a sphere reduced if its radius is decreased
from 6cm to 5.75cm?
dV
The differential in V is dV = dr where the derivative is
dr
evaluated at r = 6:
dV
= 4π r2 = 4π 62 = 144π .
dr
So
dV = 144π × −0.25 = −36π ≈ −113.1
Therefore the volume of the sphere is reduced by approxi-
mately 113.1 cm3
14 MATH 1021 Calculus of One Variable
Example
Find the approximate error in the area of a circle of radius
30, if there is an error of ±0.2 cm in the measurement of
its radius.
dA
dA = dr = 2π rdr
dr
Here r = 30 and |dr| = 0.2.
WHY?
Because it is useful to be able to approximate a given func-
tion by simpler functions, like polynomials.
An approximation for ex
Suppose we want to construct a polynomial of degree 3
(cubic)
p(x) = a0 + a1x + a2x2 + a3x3,
to approximate f (x) = ex near the point x = 0.
ex
P7(x)
P6(x)
100
−7 −6 −5 −4 −3 −2 −1 1 2 3 4 5 6
ex
P10(x)
1000
−9−8−7−6−5−4−3−2−1 1 2 3 4 5 6 7 8
Example
3 5 7 9
x − x3! + x5! − x7! + x9!
sin x
x3 x5 x7
x − 3! + 5! − 7!
Example
1
Let f (x) = . Then:
1−x
1
f (x) = f (0) = 1
1−x
1
f ′(x) = f ′(0) = 1
(1 − x)2
2
f ′′(x) = f ′′(0) = 2
(1 − x)3
(3) 3·2
f (x) = f (3)(0) = 3!
(1 − x)4
(4) 4·3·2
f (x) = f (4)(0) = 4!
(1 − x)5
(5) 5·4·3·2
f (x) = f (5)(0) = 5!
(1 − x)6
(n) n! (n)
The pattern is clear; f (x) = n+1
, and f (0) = n!.
(1 − x)
1
The Taylor polynomial of order n for is therefore
1−x
2 3! 4! n!
Pn(x) = 1 + x + x2 + x3 + x4 + · · · + xn
2! 3! 4! n!
= 1 + x + x2 + x3 + x4 + · · · + xn .
11
Example
Find the Taylor polynomial of order 3 for the function
f (x) = x3 − 7x2 + 4x − 2.
You should find that it is precisely x3 − 7x2 + 4x − 2.
Example
Find the Taylor polynomial for f (x) = ln x about a = 1.
f (x) = ln x f (1) =0
f ′(x) = 1/x f ′(1) =1
f ′′(x) = −1/x2 f ′′(1) = −1
f (3)(x) = 2/x3 f (3)(1) =2
f (4)(x) = −3!/x4 f (4)(1) = −3!
f (5)(x) = 4!/x5 f (5)(1) = 4!
.. .. .. ..
f (n)(x) = (−1)n+1(n − 1)!/xn f (n)(1) = (−1)n+1(n − 1)!
The Taylor polynomial of order n for ln x about x = 1 is:
−1 2 −3! (−1)n+1 (n − 1)!
Pn (x) = (x − 1) + (x − 1)2 + (x − 1)3 + (x − 1)4 + · · · + (x − 1)n
2 3! 4! n!
Remainder term
Given a function f (x) and its Taylor polynomial Pn(x) of
order n, the "remainder term" is
Rn(x) = f (x) − Pn(x).
Taylor’s formula
If we substitute the Lagrange form of Rn(x) into
f (x) = Pn(x) + Rn(x)
we obtain
′ f ′′ (0) 2 f (3)(0) 3 f (n)(0) n f (n+1)(c) n+1
f (x) = f (0)+ f (0)x+ x + x +· · ·+ x + x
2! 3! n! (n + 1)!
for some c between 0 and x.
Note that Taylor’s formula does not tell us how to find the
value of c, and it is almost always impossible to do so.
Example
Estimate the value of cos(1) using P4(1),
where P4(x) is the Taylor polynomial of order 4 for cos x
about x = 0. How accurate is this estimate?
Example Z 1
x2
Estimate the value of the definite integral e dx using a
0
Taylor polynomial.
Note that there is no simple function which is an anti-
2
derivative of ex ,
and so it is not possible to evaluate this integral by anti-
differentiation.
x4 x6 x8 x10
Z 1 Z 1
x2 2 2
e dx = 1+x + + + + + R5 (x ) dx
0 0 2! 3! 4! 5!
1 Z 1
x3 x5 x7 x9 x11
= x+ + + + + + R5 (x2 ) dx
3 5 × 2! 7 × 3! 9 × 4! 11 × 5! 0 0
Z 1
1 1 1 1 1
= 1+ + + + + + R5 (x2 ) dx
3 10 42 216 1320 0
Z 1
= 1.46253 . . . + R5 (x2 ) dx.
0
Z 1
Now, what can be said about the value of R5(x2) dx?
0
2 x12
We know that R5(x ) = e c
for 0 < c < x2.
6!
x12 x12
2 c x12
Therefore < R5(x ) = e <3 .
6! 6! 6!
Z 1 Z 1
x2
Since e dx = 1.46253 . . . + R5(x2) dx
0 0
Z 1 2
=⇒ 1.46253 . . .+0.0001 < ex dx < 1.46253 . . .+0.0004
0
Z 1
x2
=⇒ 1.4626 < e dx < 1.4629.
0
Z 1
x2
We may therefore conclude that e dx = 1.463
0
correct to 3 decimal places.
1
Geometric Series
The series 1+r +r2 +r3 +· · · is called the geometric series
with common ratio r.
The kth partial sum of this series is the geometric progres-
sion
k
(0.0a) Sk = ∑ rn = 1 + r + r2 + r3 + · · · + rk .
n=0
Example
1 1 1
Show that the series 1 + + + + . . . converges to 2.
2 4 8
The series may be written in the form
1 1 2 1 3
1+ + + +...
2 2 2
which shows that it is a geometric series with common ra-
1
tio r = .
2
1 1
Therefore its sum is S = = = 2.
1 − r 1 − 1/2
Warning:
It is tempting to think that a series will converge if the
terms in the series approach zero.
In general, this is not true.
For example, the infinite series
∞
1 1 1 1
∑ n = 1+ 2 + 3 + 4 +···
n=1
diverges, that is, we can make the sum as large as we like
by taking a sufficiently large number of terms even though
1
lim = 0
n→∞ n
6 MATH 1021 Calculus of One Variable
Taylor series
We have been considering series of numbers, which when
they converge, sum to a real number.
We now look at series of functions, which if they converge,
sum to another function.
Example
We saw earlier the formula for the sum of a geometric se-
ries:
1
= 1 + r + r2 + r3 + r4 · · · for |r| < 1.
1−r
Now think of r as a variable and replace r by x, so we have
1
= 1 + x + x2 + x3 + x4 · · · for |x| < 1.
1−x
Now we have a power series,
1 + x + x2 + x3 + x4 · · ·
1
which is equal to the function for |x| < 1.
1−x
Notice that this power series is precisely the series we
would obtain by extending indefinitely the Taylor polyno-
1
mial of .
1−x
1
That is, it is the Taylor series of .
1−x
7
Examples
These examples use the polynomials we found in the pre-
vious chapter. All the series are about the point x = 0.
x2 x4 x6
a) The Taylor series for cos x: 1 − + − + · · · .
2! 4! 6!
x3 x5 x7
b) The Taylor series for sin x: x − + − + · · · .
3! 5! 7!
x x2 x3 x4
c) The Taylor series for e : 1 + x + + + + · · · .
2! 3! 4!
Try differentiating, term-by-term, each of the series
above. What do you notice?
1
d) The Taylor series for : 1+x +x2 +x3 +x4 +· · · .
1−x
Try multiplying (1 − x) by 1 + x + x2 + x3 + x4 + · · · .
What do you find?
8 MATH 1021 Calculus of One Variable
x2 x3 x4
e) The Taylor series for ln(1+x): x− + − +· · · .
2 3 4
x2 x4 x6
f) The Taylor series for cosh x: 1+ + + +···.
2! 4! 6!
x3 x5 x7
g) The Taylor series for sinh x: x+ + + +···.
3! 5! 7!
Important result:
If lim Rn(x) = 0 for a particular value of x, then the Taylor
n→∞
series of f converges to f at that point.
Example
f (n+1)(c) n+1
Recall that the remainder term Rn(x) is equal to x
(n + 1)!
for some c between 0 and x.
For the function f (x) = sin x, every derivative is one of
sin x, cos x, − sin x or − cos x. Therefore, no matter what
the value of c, or of n, −1 ≤ f (n+1)(c) ≤ 1, or | f (n+1)(c)| ≤
1. Hence, the remainder term for f (x) = sin x is such that
xn+1
|Rn(x)| ≤ .
(n + 1)!
xn+1
Now, lim = 0 for any real number x (see the tech-
n→∞ (n + 1)!
nical aside below). It follows (by the squeeze law) that
lim Rn(x) = 0, and so
n→∞
x3 x5 x7
sin x = x − + − + · · · for all x ∈ R .
3! 5! 7!
10 MATH 1021 Calculus of One Variable
Example
Show that the remainder of the expansion about x = 0 of
the function f (x) = ex tends to zero as n → ∞.
x x2 x3 x4
e = 1+x+ + + +···
2! 3! 4!
x3 x5 x7
sin x = x − + − + · · ·
3! 5! 7!
x2 x4 x6
cos x = 1 − + − + · · ·
2! 4! 6!
It is important to realise that these equations are identities
that hold for all values of x.
1
f (0) = 1
f ′(0) = p
f ′′(0) = p(p − 1)
f ′′′(0) = p(p − 1)(p − 2)
...
Example
When p = −1, we obtain the following series
1
(1 + x)−1 =
1+x
(−1)(−2) 2
=1 + (−1)x + x
2!
(−1)(−2)(−3) 3 (−1)(−2)(−3)(−4) 4
+ x + x +···
3! 4!
= 1 − x + x2 − x3 + x4 + · · ·
Example
Another special case occurs when p is a positive integer.
In this case the factor (p − p) = 0 appears in the coefficient
of x p+1 and subsequent terms.
Therefore, we get
−1 x3 x5 x7 x9 x11
tan x = x − + − + − +··· for |x| < 1.
3 5 7 9 11
Exercises
1) Show that the Taylor series for sinh x converges to sinh x
for all real x, by showing that the remainder term tends to
zero as n → ∞.
Answer
(a)
(1 − x)−1/2 = 1 + 21 x + 3×1
4×2 x 2
+ 5×3×1 3
6×4×2 x + 7×5×3×1 4
8×6×4×2 x + · · · .
(b)
−1 1 x3 1.3 x5 1.3.5 x7
sin x = x+ + + 3 +···
2 3 22.2! 5 2 3! 7
1
Why is it important?
It is important to become proficient at calculating Riemann
sums because they provide a basic method to calculate ap-
proximate values of definite integrals from which other,
more accurate techniques are derived.
Now, multiplying by ∆x =⇒
mi ∆x ≤ f (ci) ∆x ≤ Mi ∆x ,
and adding up over all subintervals gives
N N N
∑ mi ∆x ≤ ∑ f (ci) ∆x ≤ ∑ Mi ∆x .
i=1 i=1 i=1
Example
Use Riemann sums to estimate the integral
Z 2
sin x dx .
1
Use a partition of [1, 2] into 20 subintervals and calculate
the Riemann sum for each of the three cases:
a) ci is the left endpoint of the ith subinterval,
b) ci is the right endpoint of the ith subinterval,
c) ci is the midpoint of the ith subinterval.
This gives the values shown in the bottom line of the table.
5
= (− cos 2) − (− cos 1)
≈ 0.956449 .
6 MATH 1021 Calculus of One Variable
b) If c is a constant, then
Z b Z b
c f (x) dx = c f (x) dx .
a a
Let SN ( f ) and SN (c f ) be the corresponding Riemann
sums for the two functions f (x) and c f (x).
Then, from the definition of the Riemann sum that
SN (c f ) = cSN ( f ).
From the standard properties of limits,
Z b
c f (x) dx = lim SN (c f )
a N→∞
= lim cSN ( f )
N→∞
= c lim SN ( f )
N→∞
Z b
=c f (x) dx .
a
7
Therefore
N
SN ( f + g) = ∑ [ f (ci) + g(ci)] × ∆x
i=1 ! !
N N
= ∑ f (ci) × ∆x + ∑ g(ci) × ∆x
i=1 i=1
= SN ( f ) + SN (g) .
Then
Z b
( f (x) + g(x)) dx = lim SN ( f + g)
a N→∞
= lim (SN ( f ) + SN (g))
N→∞
= lim SN ( f ) + lim SN (g)
N→∞ N→∞
Z b Z b
= f (x) dx + g(x) dx .
a a
8 MATH 1021 Calculus of One Variable
′ F(b) − F(a)
F (c) = .
b−a
This picture illustrates its meaning:
f (b) b
f (a) b
a b
The dashed line is the secant line joining points (a, f (a))
and (b, f (b)).
In this graph there are two points c between a and b where
the tangent line has the same slope as the secant.
3
Proof of FTC 2
To prove formula (0.0a) we apply the MVT theorem as
follows:
Partition the interval [a, b] into N equal subintervals.
Label the division points as xi, with 0 ≤ i ≤ N, so that the
ith subinterval is [xi−1, xi] and
a = x0 ≤ x1 ≤ · · · ≤ xN−1 ≤ xN = b .
All the terms except F(x0) and F(xN ) appear twice, with
opposite signs. Therefore they cancel out, leaving only
F(xN ) − F(x0) = F(b) − F(a) .
Summing the right side just gives a Riemann sum for F ′(x)
over the interval [a, b]. We conclude that
N
∑ F ′(ci) × ∆x = F(b) − F(a) .
i=1
But any Riemann sum for the specified partition lies be-
tween the upper and lower Riemann sums, therefore
N
LN ≤ ∑ F ′(ci) × ∆x = F(b) − F(a) ≤ UN .
i=1
Notation
The change F(b) − F(a) of a function F over an interval is
often denoted by
F(b) − F(a) = [F(x)]ba .
The theorem then appears in the form
Z b
F ′(x) dx = [F(x)]ba .
a
so Z x+h
F(x + h) − F(x) = f (t) dt ...........(1)
x
Now assume h > 0 and let M and m be the maximum and
minimum of f (t) for t between x and x + h.
Then from the property (see Lecture 2, Week 9)
Z b
m × (b − a) ≤ f (x) dx ≤ M × (b − a) ,
a
we have Z x+h
m×h ≤ f (t) dt ≤ M × h .
x
Example Z x
Sketch the graph of the function F(x) = sint dt on the
0
interval [0, 2π ].
The graph of sin x on this interval is shown as the solid line
in Figure 1.
F(x)
0 π 2π
Figure 1:
Natural logarithm
The function f (x) = 1/x is defined and continuous on the
interval 0 < x < ∞.
According to the Fundamental Theorem of Calculus we
can define an antiderivative ln x of f (x) by the formula
Z x1
ln x = dt .
1 t
We take this as the definition of the natural logarithm.
Area=ln x
1 x
Figure 1:
2 MATH 1021 Calculus of One Variable
NOTE
We know that ln x is an antiderivative for 1/x for x > 0.
If x < 0 then ln(−x) is defined, and the chain rule gives
d 1 d(−x) −1 1
ln(−x) = = = .
dx −x dx −x x
We can combine the cases x < 0 and x > 0 into a single
formula
d 1
ln |x| =
dx x
valid for all x 6= 0. Here we use the function |x|, where as
usual (
x, if x ≥ 0,
|x| =
−x, if x < 0.
3
= ln a + ln a + · · · + ln a
= n ln a .
Hence ln(a−n) = −n ln a.
5
y = ln x
6 MATH 1021 Calculus of One Variable
and
Derivative of exp(x)
Consider the identity x = ln(exp(x)) .
Using the chain rule we get
1 d exp(x)
1= ,
exp(x) dx
which is easily rearranged into the formula
d exp(x)
= exp(x) .
dx
d f (x)
= f (x) .
dx
The property that the derivative is the same as the
original function is said to be characteristic
of the exponential function.
8 MATH 1021 Calculus of One Variable
The number e
What is the unique number a with the property that
ln(a) = 1 ?
Example
Show that the definition of the general exponential function
still satisfies
(ab)c = acbc
for a, b > 0 and all c in R.
= exp(c ln a + c ln b) expand
= ac bc (definition).
11
Growth Rates
One important properties of a function f (x) is its relative
growth rate. We say:
a function f (x) grows faster than g(x) as x → ∞ if
f (x)
lim = ∞.
x→∞ g(x)
x0.5 ln x
2
x0.2
1
0
0 2 4 6 8 10
Figure 2:
12 MATH 1021 Calculus of One Variable
Partial fractions
In many applications such as population growth, chemical
reactions, etc. we have to calculate integrals of the form
1
Z
dx .
(x − a)(x − b)
Functions such as
1
,
(x − a)(x − b)
are special cases of the so-called rational functions.
Another example is
x4 + 2x + 2
.
x3 − x2 + x − 1
In this case the numerator has degree 4 and the denomina-
tor has degree 3.
2 MATH 1021 Calculus of One Variable
Example
Find the common denominator by cross-multiplying
2x − 1 a(x + 1) + b(x − 1)
= .
(x − 1)(x + 1) (x − 1)(x + 1)
Now, the denominators in both expressions are the same,
therefore the numerators must also be the same,
2x − 1 = a(x + 1) + b(x − 1)
for all values of x.
Example
Find the partial fraction expansion of
x4 + 2x + 2
.
x3 − x2 + x − 1
Therefore
2x + 3 − 25 x − 12 5
2
= + .
(x2 + 1)(x − 1) x2 + 1 x−1
x4 + 2x + 2
Z
dx
x3 − x2 + x − 1
5 x 1 1 5 dx
Z Z Z Z
= x + 1 dx − dx + dx + .
2 x2 + 1 2 x2 + 1 2 x−1
2x2 − 1
.
x(x − 1)(x + 1)
First note that the degree of the denominator is 3, while the
degree of the numerator is 2.
We can therefore apply partial fractions:
2x2 − 1 a b c
= + + .
x(x − 1)(x + 1) x x − 1 x + 1
Reduction formulas
In a previous example, we found an antiderivative for the
function x3 sin x by repeated application of integration by
parts.
Sometimes it is useful to make this process more system-
atic. For example, if we want to evaluate
Z
x10ex dx
For example
I0 = ex,
I1 = xex − ex,
I2 = x2ex − 2(xex − ex)
= (x2 − 2x + 2)ex,
I3 = x3ex − 3(x2 − 2x + 2)ex
= (x3 − 3x2 + 6x − 6)ex.
In each case we get the general solution by adding on the
usual arbitrary constant.
10 MATH 1021 Calculus of One Variable
Week12-Lect1
Applications of the Riemann Integral
f (x)
∆x
g(x)
Figure 1:
3
f (x)
Figure 2:
5
f (x)
∆x
Figure 3:
The above sums are the Riemann lower and upper sums of
the function
F(x) = π f (x)2.
and therefore
N N
∑ π m2i × ∆x ≤ V ≤ ∑ π Mi2 × ∆x .
i=1 i=1
Example
Find a formula for the volume of the solid generated by
rotating the graph of the function
y = sin x, 0≤x≤3
about the x-axis. Express the answer as a definite integral.
f (x)
∆x
Figure 4:
Week12-Lect2
Applications of the Riemann Integral
f (x)
a x b
Figure 1:
Example
Find a definite integral for the volume of a donut with cir-
cular cross-section, inner hole of radius r and an outer ra-
dius of R.
a
p
b x 2 a2 − (x − b)2
R r
Figure 2:
4 MATH 1021 Calculus of One Variable