Calculus Notes
Calculus Notes
Vincent Bouchard
University of Alberta
November 9, 2020
v
These are notes for MATH 144 offered at the University of Alberta.
Preface
These notes are not meant to be complete lectures notes for MATH 144.
Rather, they are structured to accompany the lectures offered at the University
of Alberta.
Each lecture in the course corresponds to a subsection in the notes. Further,
each subsection is structured as follows:
• A brief summary of the content of the section;
• The learning objectives of the section;
• The instructional videos, which should be watched before the live lecture;
vi
Contents
Preface vi
1 Review 1
1.1 Algebra . . . . . . . . . . . . . . . . . . . . . 2
1.2 Functions. . . . . . . . . . . . . . . . . . . . . 3
1.3 Analytic geometry . . . . . . . . . . . . . . . . . 5
1.4 Trigonometry . . . . . . . . . . . . . . . . . . . 6
2 A preview of calculus 8
2.1 A preview of differential and integral calculus from kinematics . 8
2.2 Tangent lines and derivatives . . . . . . . . . . . . . 10
3 Limits 12
3.1 An informal definition of limits . . . . . . . . . . . . . 12
3.2 The formal definition of limits . . . . . . . . . . . . . 13
3.3 Infinite limits and vertical asymptotes . . . . . . . . . . 14
3.4 How to evaluate limits . . . . . . . . . . . . . . . . 15
3.5 Continuity . . . . . . . . . . . . . . . . . . . . 17
3.6 Limits at infinity and horizontal asymptotes . . . . . . . . 19
4 Differentiation 21
4.1 The derivative of a function . . . . . . . . . . . . . . 21
4.2 Differentiability . . . . . . . . . . . . . . . . . . 22
4.3 Differentiation rules . . . . . . . . . . . . . . . . . 23
4.4 Derivatives of trigonometric functions . . . . . . . . . . 25
4.5 Chain rule . . . . . . . . . . . . . . . . . . . . 26
4.6 Implict differentiation . . . . . . . . . . . . . . . . 27
4.7 Inverse functions . . . . . . . . . . . . . . . . . . 28
4.8 Exponentials and logarithms . . . . . . . . . . . . . . 30
4.9 Inverse trigonometric functions . . . . . . . . . . . . . 33
5 Integration 36
5.1 Antiderivatives and indefinite integrals . . . . . . . . . . 36
5.2 Area, displacement and Riemann sums . . . . . . . . . . 38
5.3 Definite integrals . . . . . . . . . . . . . . . . . . 40
vii
CONTENTS viii
7 Applications of differentiation 55
7.1 Related rates . . . . . . . . . . . . . . . . . . . 55
7.2 Optimization . . . . . . . . . . . . . . . . . . . 56
7.3 Linear approximation . . . . . . . . . . . . . . . . 57
7.4 Taylor polynomials . . . . . . . . . . . . . . . . . 58
7.5 Newton’s method . . . . . . . . . . . . . . . . . . 60
Chapter 1
Review
In this section we review things that every calculus student should know (but
is afraid to ask).
Objectives
You should be able to:
• Perform algebraic manipulations such as factorization, simplification, ra-
tionalization and completion of the square.
• Determine and state the domain and range of basic functions (root, ra-
tional) using interval notation.
• Determine whether a curve in the plane represents the graph of a function
using the vertical line test.
1
CHAPTER 1. REVIEW 2
1.1 Algebra
1.1.1 Things to know
√
b2 −4ac
• If ax2 + bx + c = 0, the roots are x = −b± 2a ; the sum of the roots
is −b/a; the product of the roots is c/a.
1
• x−r = .
xr
• xr xs = xr+s .
√
• x√1/n = n x, for n integer. If n is even, then x must be non-negative and
n
x denotes the non-negative root of x.
s
• (xr ) = xr·s , assuming that x ≥ 0. Note that care must be taken if x is
negative. For instance, (x2 )1/2 6= x if x < 0; rather, (x2 )1/2 = |x|.
• Finally, avoid common mistakes: remember that, in general,
√ √ √
x + y 6= x + y,
1 1 1
6= + ,
x+y x y
(x + y)2 6= x2 + y 2 .
YouTube: https://www.youtube.com/watch?v=huW3DPsY9VY
Figure 1.1.1 A review video on quadratic functions
YouTube: https://www.youtube.com/watch?v=VT8E3HTWJpM
Figure 1.1.2 A review video on completing squares and zeros of quadratic
functions
CHAPTER 1. REVIEW 3
YouTube: https://www.youtube.com/watch?v=ryzROWyVg0M
Figure 1.1.3 A review video on power functions
1.2 Functions
1.2.1 Things to know
A function f is a rule that assigns to each element x in a set D exactly one
element, called f (x), in a set E.
• Domain and range: The set D is called the domain of f , while the
range of f is the set of all possible values of f (x) as x varies through
the domain.
• Graph of a function: all points in the xy-plane such that y = f (x)
with x in the domain of f .
• Vertical line test: A curve in the xy-plane is the graph of a function
of x if and only if no vertical line intersects the curve more than once.
• Piecewise defined functions: Functions that are defined using differ-
ent formulae for different parts of their domains.
• Absolute value function: f (x) = |x| is defined by
(
x for x ≥ 0,
|x| = .
−x for x < 0.
• Types of functions:
◦ Linear function: f (x) = mx + b. Its graph is a line with slope m
and y-intercept b.
◦ Polynomial function: f (x) = an xn + an−1 xn−1 + . . . + a1 x + a0 .
The degree of f (x) is n. When n = 2, f (x) is called quadratic,
while it is called cubic if n = 3.
◦ Power function: f (x) = xa . If a is a positive integer, then f (x)
is a particular example of a polynomial function. If a = 1/n with n
a positive integer, then f (x) is a root function (for example,√ for
a = 1/2 it is the familiar square root function f (x) = x1/2 = x).
For a = −1, it is the reciprocal function f (x) = 1/x.
P (x)
◦ Rational function: f (x) = Q(x) where P (x) and Q(x) are poly-
nomial functions.
◦ Algebraic function: A function that can be constructed using
algebraic operations (such as addition, subtraction, multiplication,
division, and taking roots) starting with a polynomial function. All
rational functions are clearly algebraic.
YouTube: https://www.youtube.com/watch?v=onmTUoOu8sE
Figure 1.2.1 A review video on functions
YouTube: https://www.youtube.com/watch?v=Y0cqY8Zf6AQ
Figure 1.2.2 A review video on transformations of functions
CHAPTER 1. REVIEW 5
YouTube: https://www.youtube.com/watch?v=90I1XKJV8tI
Figure 1.2.3 A review video on composition of functions
y − y1 = m(x − x1 ).
(x − h)2 + (y − k)2 = r2 .
(x − h)2 (y − k)2
+ = 1.
a2 b2
(x − h)2 (y − k)2
− = 1.
a2 b2
• Three-dimensional objects:
◦ The volume of a sphere of radius r is V = 43 πr3 .
◦ The surface area of a sphere is A = 4πr2 .
◦ The volume of a cylinder is V = πr2 h where r is the radius and h
the height.
◦ The volume of a right circular cone is V = 13 πr2 h.
1.4 Trigonometry
1.4.1 Things to know
• To convert angles between degrees and radians: 180o = π radians.
• A point (x, y) on the unit circle at angle θ with respect to the positive
side of the x-axis (positive angle meaning counterclockwise rotation) has
coordinates (x, y) = (cos θ, sin θ).
• Given a right triangle,
opposite adjacent
sin θ = , cos θ = .
hypotenuse hypotenuse
CHAPTER 1. REVIEW 7
• The four other trig functions can be obtained from sin θ and cos θ as:
sin θ cos θ 1 1
tan θ = , cot θ = , sec θ = , csc θ = .
cos θ sin θ cos θ sin θ
Note that you only need to remember the first one, you can derive
the other two from it.
◦
◦
1 1
sin2 A = (1 − cos 2A), cos2 A = (1 + cos 2A).
2 2
YouTube: https://www.youtube.com/watch?v=weUyNxzA5LM
Figure 1.4.1 A review video on trigonometry
Chapter 2
A preview of calculus
Objectives
You should be able to:
• Explain the difference between average and instantaneous velocity.
• Describe the limit process that arises in the computation of an instanta-
neous velocity.
• Describe and illustrate how to approximate the area under a curve using
approximating rectangles.
• Describe the limit process that arises in the computation of the area
under a curve.
• Relate the calculation of the area under a curve to the calculation of the
distance covered in kinematics.
8
CHAPTER 2. A PREVIEW OF CALCULUS 9
YouTube: https://www.youtube.com/watch?v=LzwagSBAUYY
YouTube: https://www.youtube.com/watch?v=h3qphnxINIE
f (x2 ) − f (x1 )
.
x2 − x1
written as Z t2
v(t) dt.
t1
Objectives
You should be able to:
• Describe and illustrate the connection between the velocity and tangent
problems.
• Explain the difference between the slope of a secant line connecting two
points on a curve and the slope of the tangent line to a curve at a point.
• Describe the limit process that arises in the calculation of the slope of a
tangent line.
• Use correct notation for the limit process, to represent the slope of a
tangent line as an appropriate limit of the slope of a secant line.
YouTube: https://www.youtube.com/watch?v=8DNxR8jW2SU
CHAPTER 2. A PREVIEW OF CALCULUS 11
YouTube: https://www.youtube.com/watch?v=t6oAlqvUHjw
f (c + h) − f (c)
mP1 P2 = .
h
This is known as the difference quotient of the function f at x = c.
Concept 2.2.2 Tangent line. The slope of the tangent line to the
curve y = f (x) at P1 (c, f (c)) is obtained by taking the limit x2 → c or,
equivalently, h → 0:
f (x2 ) − f (c)
m = lim
x2 →c x2 − c
f (c + h) − f (c)
= lim .
h→0 h
Thus, m is precisely equal to the derivative of f at x = c; that is, m = f 0 (c).
Limits
Objectives
You should be able to:
• Explain and illustrate the concept of the limit of a function f (x) as x
approaches a.
• Construct examples of limits that exist and examples of limits that do
not exist.
• Identify a given limit (or conclude that it does not exist) from the graph
of a function.
• Explain the difference between left- and right-sided limits.
YouTube: https://www.youtube.com/watch?v=07s1XkBToeU
12
CHAPTER 3. LIMITS 13
lim f (x) = L,
x→a
lim f (x) = L,
x→a−
if f (x) gets close to L when x approaches a from the left (from below), and
lim f (x) = L,
x→a+
if f (x) gets close to L when x approaches a from the right (from above).
Concept 3.1.4 Limits vs one-sided limits. Note that
lim f (x) = L
x→a
if and only if
Objectives
You should be able to:
• State the formal definition of limits.
lim f (x) = L,
x→a
and say that the limit of f (x), as x approaches a, is L, if and only if for
every real number > 0, there exists a real number δ > 0 such that:
Since is an arbitrary positive number, what this says is that we can make the
distance between f (x) and L arbitrarily small, by taking the distance between
x and a sufficiently small.
Objectives
You should be able to:
• Evaluate infinite limits.
• Explain and illustrate the connection between infinite limits and vertical
asymptotes.
• Determine whether a limit exists or not.
• Determine the vertical asymptotes of the graph of a function.
YouTube: https://www.youtube.com/watch?v=t58_ahWlIB8
CHAPTER 3. LIMITS 15
and say that the limit of f (x), as x approaches a, is infinity if the values
of f (x) can be made arbitrarily large and positive by taking x sufficiently close
to a (on either side of a) but not equal to a.
Similarly, we write
lim f (x) = −∞,
x→a
Note that the function f (x) does not have to blow up on both sides of x = a
for it to be a vertical asymptote; as long as the limit is infinite on one side of
x = a it is a vertical asymptote.
Concept 3.3.3 Existence of limits. We say that lim f (x) exists if
x→a
lim f (x) = L, with L a finite number (L = 0 is perfectly fine).
x→a
So there are two reasons why a limit may not exist:
keeping in mind that the limit does not exist since ±∞ is not a finite
number.
Objectives
You should be able to:
• Evaluate a given limit (or conclude that it does not exist) using the limit
laws and algebraic manipulations such as factoring, making a common
denominator and/or rationalizing the numerator or denominator.
• For the limit of a quotient function f (x)/g(x), distinguish between three
possible outcomes (L, “A/0” where A is not equal to 0, and “0/0”).
• Explain, illustrate and apply the Squeeze Theorem.
YouTube: https://www.youtube.com/watch?v=xdq7x-HjceA
• Limit of x: lim x = a.
x→a
provided the limits exist. In practice, what this means is that when you are
evaluating lim f (x), then you can manipulate f (x) by simplifying it using
x→a
things like factorization, rationalization, common denominator, etc., assuming
that x 6= a, and it will not change the limit.
CHAPTER 3. LIMITS 17
f (x)
lim
x→a g(x)
for simple enough functions f (x) and g(x) (not piecewise-defined, no absolute
values, etc.) such that both f (a) and g(a) are finite. This is the form of many
functions that we will encounter for the time being. If your function is not
of this form, you may first need to use algebraic techniques, such as common
denominator, to transform it into this form.
Concept 3.4.5 Squeeze theorem. First, if f (x) ≤ g(x) for all x near
a (except possibly at x = a), and if the limits of both functions exist as x
approaches a, then
lim f (x) ≤ lim g(x).
x→a x→a
The Squeeze theorem states that, if g(x) ≤ f (x) ≤ h(x) for all x near a
(except possibly at x = a), and if
3.5 Continuity
We encountered some functions whose values become arbitrarily large as x → a.
Those are examples of functions that are not “continuous”. Roughly speaking,
a function is continuous if you can draw the graph of the function without
lifting your pen. In this section we study the notion of continuity in more
detail.
CHAPTER 3. LIMITS 18
Objectives
You should be able to:
• Explain and illustrate the definition of continuity.
f (x) + g(x),
f (x) − g(x),
cf (x),
f (x)g(x),
f (x)
provided g(a) 6= 0.
g(x)
Concept 3.5.3 Some continuous functions. The following functions are
continuous at every point in their domain: polynomials, rational functions,
root functions, trigonometric functions, exponential functions, and logarithmic
functions. Most functions that appear in physics are continuous.
CHAPTER 3. LIMITS 19
Objectives
You should be able to:
• Evaluate limits at infinity.
• Explain and illustrate the connection between limits at infinity and hor-
izontal asymptotes.
YouTube: https://www.youtube.com/watch?v=nlfLXbGAeEU
lim f (x) = L
x→−∞
means that the values of f (x) can be made arbitrarily large for x suffi-
ciently large. A similar definition holds for −∞.
It can also happen that limits at infinity DNE, such as lim sin(x).
x→∞
Concept 3.6.2 Some useful limits. For all rational numbers r > 0,
1
lim = 0,
x→∞ xr
and for all rational numbers r > 0 such that xr is well defined for all x,
1
lim = 0.
x→−∞ xr
Concept 3.6.3 Tip to evaluate limits at infinity for rational functions.
To evaluate limits at infinity for rational functions (it also works for ratios of
functions involving roots), divide both numerator and denominator by the
largest power of x that occurs in the denominator.
Concept 3.6.4 Horizontal asymptotes. The horizontal line y = L is a
horizontal asymptote of y = f (x) if either
Differentiation
Objectives
You should be able to:
• Explain why the derivative of a function is itself a function.
• Calculate the derivative of simple functions (such as linear and quadratic
polynomials, square root function, and simple rational functions) from
the definition of the derivative of a function.
• Sketch the graph of the derivative of a function from the graph of the
function itself.
YouTube: https://www.youtube.com/watch?v=qdiI1fzv2r8
21
CHAPTER 4. DIFFERENTIATION 22
f (x + h) − f (x)
f 0 (x) = lim .
h→0 h
We can calculate the derivative of any function directly from the definition, by
evaluating the limit above.
Concept 4.1.2 Notation. The following are equivalent notations for the
derivative of a function y = f (x):
dy df d
f 0 (x) = y 0 = = = f (x).
dx dx dx
Concept 4.1.3 Interpretation of the derivative. The value of f 0 (x) of
x = a represents:
• The instantaneous rate of change of f (x) at x = a (instantaneous velocity
if f is a position function);
• The slope of the tangent line to the graph of y = f (x) at (a, f (a)).
Concept 4.1.4 Higher derivatives.
• The second derivative of f is denoted by f 00 (x) or
d2 f
.
dx2
It is the derivative of f 0 , that is, the derivative of the derivative of f . For
instance, if f is a position function, f 0 is the velocity function and f 00 is
the acceleration function.
• Similarly, the third derivative of f is denoted by f 000 (x) or
d3 f
.
dx3
Is it the derivative of f 00 .
• In general, the n’th derivative of f is denoted by f (n) (x) or
dn f
.
dxn
It is the derivative of f (n−1) , that is, it is obtained from f by differenti-
ating n times.
4.2 Differentiability
In the previous section we reviewed that the derivative of a function is defined
as a limit. But when we studied limits, we realized that sometimes limits do
not exist. What happens if the limit in the definition of the derivative of a
CHAPTER 4. DIFFERENTIATION 23
given function does not exist at a point? This is what we study in this section.
Basically, a function f (x) is “differentiable” at a point x = a if the limit in the
definition of its derivative f 0 (a) exists. Let us now study this in more detail!
Objectives
You should be able to:
• Explain and illustrate the definition of differentiability.
and in the next few sections. We prove a number of rules, collectively called
“differentiation rules”, which allow us to drastically simplify the calculation of
derivatives of complicated functions. We prove these rules using the definition
of the derivative as a limit: but once the rules are proven, we can use them
directly to calculate derivatives of complicated functions.
We start in this section by studying the following foundational differentia-
tion rules: the power rule, the constant multiple rule, the sum and difference
rules, the product rule, and the quotient rule.
Objectives
You should be able to:
• Derive foundational rules of differentiation (such as power rule, constant
multiple rule, sum rule, product rule, quotient rule) from the definition
of the derivative of a function.
YouTube: https://www.youtube.com/watch?v=jH3Jqz5-j4U
Concept 4.3.5 Quotient rule. For any two differentiable functions f and
g,
f 0 (x)g(x) − f (x)g 0 (x)
d f (x)
= 2 .
dx g(x) (g(x))
Note that this is not equal to the quotient of the derivatives
f 0 (x)
.
g 0 (x)
Objectives
You should be able to:
• Determine the derivatives of the primary trigonometric functions, sin x
and cos x, from the definition of derivatives, and recall the result.
YouTube: https://www.youtube.com/watch?v=DxG7qouILuw
CHAPTER 4. DIFFERENTIATION 26
Objectives
You should be able to:
• Recall the statement of the chain rule and identify when it is required to
calculate the derivative of function.
• Apply the chain rule to calculate derivatives of functions.
YouTube: https://www.youtube.com/watch?v=sbew3V0nxpI
and then you can calculate the right-hand-side by using the product rule and
the chain rule.
Objectives
You should be able to:
• Explain and illustrate the concept of implicit functions.
YouTube: https://www.youtube.com/watch?v=fL7_6DrZcc0
H(x, y) = 0,
H(x, f (x)) = 0
Objectives
You should be able to:
• Determine whether a given function has an inverse.
CHAPTER 4. DIFFERENTIATION 29
YouTube: https://www.youtube.com/watch?v=I1Qjo_WMWqk
3. Write y = f (x). Solve this equation for x in terms of y (if possible). This
gives you the inverse function x = f −1 (y) as a function of y.
4. To express f −1 as a function of x, interchange x and y, so that you get
y = f −1 (x).
Concept 4.7.4 The derivative of an inverse function. To calculate the
derivative of an inverse function y = f −1 (x), we use implicit differentiation.
We know that:
Objectives
You should be able to:
• Sketch the graphs of exponential and logarithmic functions, and recall
their main properties.
• Derive the derivative of exponential and logarithmic functions from the
definition of derivatives, inverse functions and implicit differentiation.
YouTube: https://www.youtube.com/watch?v=uE-xbwImv-o
• (ax )y = axy ,
• (ab)x = ax bx .
Concept 4.8.2 The natural exponential function. The base e ' 2.71828
is such that the slope of the tangent line to y = ex at (0, 1) is exactly one. The
function f (x) = ex is so cool that is has its own name: it is called the natural
exponential function.
Concept 4.8.3 Logarithmic funcctions. The logarithmic function with
base a, denoted by f (x) = loga (x), is the inverse function of the exponential
function ax . That is,
The domain of logarithmic functions (for a 6= 1) is (0, ∞), while the range is
R (as it is the inverse of the exponential function ax , and so the domain and
range are exchanged).
By definition of inverse functions, we have:
ln(x)
loga (x) = .
ln(a)
Concept 4.8.6 Derivatives of exponential and logarithmic functions.
d x
(e ) =ex ,
dx
d x
(a ) =ax ln(a),
dx
d 1
(ln(x)) = ,
dx x
d 1
(loga (x)) = .
dx x ln(a)
Concept 4.8.7 Logarithmic differentiation. Suppose that you are given
a function y = f (x). The idea of logarithmic differentiation is to “take the
logarithm and then differentiate”. More precisely, we first take the absolute
value (as the argument of a logarithm must always be positive), and then take
the natural logarithm on both sides of the relation to get
ln |y| = ln |f (x)|.
Note that if the function f (x) is always positive, you can drop the absolute
value. We then use implicit differentiation, i.e. we differentiate both sides with
respect to x, considering that y is an arbitrary function of x. We get
y0 d
= ln |f (x)|.
y dx
d
y 0 = f (x) ln |f (x)|.
dx
We can get y 0 by evaluating the remaining derivative on the right-hand-side,
for a specific choice of f (x).
This method is useful when it is easier to evaluate the derivative of ln |f (x)|
than of f (x): for instance, for functions f (x) such that both the base and the
exponent depend on x (for instance, consider the function f (x) = xx with
x > 0, in which case ln f (x) = ln(xx ) = x ln x), or for functions f (x) that
are complicated products or quotients of functions (in which case logarithmic
differentiation is faster than product and quotient rules).
Objectives
You should be able to:
• Determine the domain, the range and the graph of inverse trigonometric
functions.
• Evaluate the value of inverse trigonometric functions at certain points.
• Calculate the derivative of inverse trigonometric functions using implicit
differentiation.
YouTube: https://www.youtube.com/watch?v=5EgndoksPcM
We remark here that there is no universal convention for the choice of principal
domain for sec x and csc x to define their inverse functions. For instance, in
Section 2.12 of CLP1, a different choice is made (see Definition 2.12.4). The
principal domain of sec x is chosen to be x ∈ [0, π/2) ∪ (π/2, π], while the
principal domain of csc x is chosen to be x ∈ [−π/2, 0) ∪ (0, π/2]. The domains
of both inverse functions sec−1 y and csc−1 y remain y ∈ (−∞, −1] ∪ [1, ∞).
Those choices may look simpler than ours, but there is a price to pay.
With this choice of principal domains, the derivatives of the inverse secant and
cosecant functions look a bit more complicated. Using implicit differentiation,
we would then obtain:
d 1
sec−1 x = √ ,
dx |x| x2 − 1
and
d 1
csc−1 x = − √ .
dx |x| x2 − 1
(See Theorem 2.12.8 in CLP1.) Note the appearance of absolute values here,
which are not present with our choice of conventions.
In the end, it does not matter which choice of convention is used to define
the inverse secant and cosecant functions. But one must be consistent. In this
course we will use the choice of conventions presented in the main text, which
results in derivatives without absolute values.
• Inverse sin function:
y = sin x ⇔ x = sin−1 y for x ∈ [−π/2, π/2],
y ∈ [−1, 1].
d 1 d 1
tan−1 (x) = , cot−1 (x) = − ,
dx 1 + x2 dx 1 + x2
d 1 d 1
sec−1 (x) = √ , csc−1 (x) = − √ .
dx x x2 − 1 dx x x2 − 1
Integration
Objectives
You should be able to:
• Explain the meaning of an antiderivative and an indefinite integral.
• Use correct notation for antiderivatives and indefinite integrals.
• Recall the antiderivatives of elementary functions.
1 The answer to these last two questions is: almost. As we will see, you would also need
one more piece information to answer unambiguously these questions: either the position of
the object at a certain time, or the coordinates of a point that the graph of the function
passes through. This would unambiguously fix the appropriate antiderivative, or, in other
words, fix the “constant of integration”, as we will see.
36
CHAPTER 5. INTEGRATION 37
YouTube: https://www.youtube.com/watch?v=5-xjQZdYmus
Next, we list below a few well known indefinite integrals. These formulae can
be verified by differentiating the right-hand-side and obtaining the integrand
on the left-hand-side (the thing inside the indefinite integral, without the dx).
Z
1
xn dx = xn+1 + C (n 6= −1)
n+1
Z
1
dx = ln |x| + C
x
Z
ex dx =ex + C
ax
Z
ax dx = +C
ln(a)
Z
sin x dx = − cos x + C
Z
cos x dx = sin x + C
CHAPTER 5. INTEGRATION 38
Z
sec2 x dx = tan x + C
Z
csc2 x dx = − cot x + C
Z
sec x tan x dx = sec x + C
Z
csc x cot x dx = − csc x + C
Z
1
dx = tan−1 x + C
x2 + 1
Z
1
√ dx = sin−1 x + C
1 − x2
Z
1
√ dx = sec−1 x + C
x x2 − 1
Objectives
You should be able to:
• Describe and illustrate how to approximate the area under a curve using
approximating rectangles and a Riemann sum.
• Construct a Riemann sum to approximate the area under the curve of a
given function over a given interval [a, b] using n subintervals, with either
left endpoints, right endpoints, or mid endpoints.
• Calculate the value of a Riemann sum for a given function over a given
interval for a given value of n.
• Describe the limit process that arises in the calculation of the precise
area under a curve using Riemann sums.
• Calculate the area under a curve using limits of Riemann sums.
• Evaluate simple finite sums using the summation notation.
CHAPTER 5. INTEGRATION 39
YouTube: https://www.youtube.com/watch?v=FffzDjY8Hiw
Concept 5.2.4 Riemann sums. For f (x) ≥ 0 on the interval [a, b], to
calculate the approximate area bounded by y = f (x), y = 0, x = a and x = b
using n intervals of equal width and the right endpoints of each interval we
define the Riemann sum:
n
X
Rn = ∆x · f (a + i∆x), where ∆x = (b − a)/n.
i=1
Objectives
You should be able to:
• Use correct notation for the definite integral and the limit process to
represent the area under a curve.
• Calculate the value of a definite integral using an appropriate limit of a
Riemann sum.
YouTube: https://www.youtube.com/watch?v=rJ3JX5V8Z24
CHAPTER 5. INTEGRATION 41
Rb
The definite integral of f from a to b, denoted by a
f (x) dx, is the n → ∞
limit of Rn :
b n
b−a
Z X
f (x) dx = lim f (xi )∆x, with ∆x = and xi = a + i∆x,
a n→∞
i=1
n
provided that the limit exists. If it exists, we say that f is integrable on [a, b].
In the definition above we used the right-point rule to write down the
Riemann sum Rn . But in fact we can use any point x∗i ∈ [xi−1 , xi ] in the
subintervals to define the Riemann sum:
n
X
Sn = ∆xf (x∗i ).
i=1
Z b Z b
3. c f (x) dx = c f (x) dx,
a a
Z b Z b Z b
4. (f (x) ± g(x)) dx = f (x) dx ± g(x) dx,
a a a
Z b
5. dx = b − a,
a
Z b Z c Z b
6. f (x) dx = f (x) dx + f (x) dx,
a a c
Z a Z a
7. If f (x) is even, then f (x) dx = 2 f (x) dx,
−a 0
Z a
8. If f (x) is odd, then f (x) dx = 0,
−a
Z b
9. If f (x) ≥ 0 for x ∈ [a, b], then f (x) dx ≥ 0,
a
Z b Z b
10. If f (x) ≥ g(x) for x ∈ [a, b], then f (x) dx ≥ g(x) dx,
a a
12. Z b Z b
f (x) dx ≤ |f (x)| dx.
a a
Objectives
You should be able to:
• State the Fundamental Theorem of Calculus (FTC).
YouTube: https://www.youtube.com/watch?v=C7Z_wET0blY
The FTC gives a precise meaning to the statement that integration and differ-
entiation are inverse processes.
Concept 5.4.2 Some uses of the FTC.
1. The FTC part 1 can be used to evaluate derivatives of functions that are
given in integral form. Note that in part 1 above, g(x) is a function of x,
not of the dummy variable t that is integrated over.
2. The FTC part 2 can be used to evaluate definite integrals, by first finding
an antiderivative of the integrand.
5.5 Substitution
Now the we understand a bit more about integration, we can start address-
ing the problem of evaluating integrals. Using the Fundamental Theorem of
Calculus, we know that to evaluate definite integrals, we need to find an an-
tiderivative of the integrand. But finding antiderivatives is not always obvious.
In fact, it is a highly non-trivial problem in general; finding an antiderivative
of a function is much more difficult than finding the derivative of a function,
as the former is not algorithmic, while the latter is. To find the derivative of
a function, you just need to apply repeatedly differentiation rules; but there
is no precise recipe that I can give you to find antiderivatives of functions in
general.
However, all is not lost. There is a number of techniques that we can
develop to help find antiderivatives of complicated functions. In this section
we explore our first technique of integration, known as “substitution”. Other
techniques of integration will be covered in MATH 146. Note that substitution
is by far the most useful technique of integration: one that you will use over
and over again in your mathematical life.
Objectives
You should be able to:
• Evaluate indefinite integrals using substitution.
• Evaluate definite integrals using substitution and the Fundamental The-
orem of Calculus.
YouTube: https://www.youtube.com/watch?v=vZbBbNyYfbg
Then you can evaluate the resulting definite integral in u directly using
the Fundamental Theorem of Calculus (i.e. by finding an antiderivative
of f (u)).
2. The second method is to first find an antiderivative of the integrand
using substitution, rewrite it in terms of the original variable x, and
then evaluate at the limits of integration x = a and x = b using the
Fundamental Theorem of Calculus. This works as well, but you have to
be careful with notation and make sure that you rewrite everything in
terms of the x-variable before you evaluate at the limits of integration.
Objectives
You should be able to:
• Describe why the area bounded by the graphs of two functions can be
written as a definite integral.
• Write down and evaluate the definite integral representing the area of a
given planar region.
• Differentiate between geometrical situations where integration in y is
more appropriate than integration in x to calculate the area of a given
planar region.
• Determine when it is necessary to split a given planar region into sub-
regions and use more than one integral to evaluate the area.
CHAPTER 5. INTEGRATION 46
YouTube: https://www.youtube.com/watch?v=KGJ6aM87mCI
This expression can be obtained by slicing the region into n rectangles of equal
width ∆x. The Riemann sum then gives an approximation of the area S, and
the limit n → ∞ calculates A. To recover the integral expression directly, draw
a typical rectangle, with width dx and height |f (x) − g(x)|: the area is given
by integrating over typical rectangles from x = a to x = b.
If f (x) ≥ g(x) over the interval [a, b], the integral simplifies to
Z b
A= (f (x) − g(x))dx.
a
In the general case, where f (x) ≥ g(x) for some values of x but g(x) ≥ f (x)
for other values of x, to evaluate the integral above we split the region S into
smaller subregions S1 , S2 , . . . , Sn where either f (x) ≥ g(x) or g(x) ≥ f (x) over
a given subregion. Then we can use the fact that
(
f (x) − g(x) if f (x) ≥ g(x),
|f (x) − g(x)| =
g(x) − f (x) if g(x) ≥ f (x),
to evaluate the area Ai of each subregion Si , and add them up to get the area
A = A1 + A2 + . . . + An .
Concept 5.6.2 Vertical vs horizontal slicing. Sometimes it is better to
calculate the area of a region by slicing it with horizontal rectangles. If the
region S is bounded by the curves x = f (y), x = g(y), y = c and y = d,
with c ≤ d, then a typical horizontal rectangle will have height dy and width
|f (y) − g(y)|, and the area will be given by integrating from y = c to y = d:
Z d
A= |f (y) − g(y)| dy.
c
If f (y) ≥ g(y) over the interval y ∈ [c, d] (that is, the curve x = f (y) is the
right boundary of the region, while the curve x = g(y) is the left boundary),
then you can drop the absolute value in the expression above.
CHAPTER 5. INTEGRATION 47
Objectives
You should be able to:
• Explain and illustrate the Intermediate Value Theorem.
• Apply the Intermediate Value Theorem to locate the roots of a function.
• Solve simple problems using the Intermediate Value Theorem.
YouTube: https://www.youtube.com/watch?v=EqcBS56nYbg
48
CHAPTER 6. FUNCTIONS AND CURVES 49
Equivalently, for any N between f (a) and f (b), the horizontal line y = N
must intersect the graph of f at least once.
Two things to note:
Objectives
You should be able to:
• Explain and illustrate the Mean Value Theorem.
• Relate the Mean Value Theorem to the notions of average and instanta-
neous velocities.
• Solve simple problems using the Mean Value Theorem.
YouTube: https://www.youtube.com/watch?v=oobkaTO9Vmo
• If f 0 (x) = g 0 (x) for all x in some interval (a, b), then f − g must be
constant on (a, b). That is, f (x) = g(x) + C for some constant C.
Objectives
You should be able to:
• Explain and illustrate the definition of local and absolute extrema.
• Explain and illustrate the definition of critical numbers of a function.
YouTube: https://www.youtube.com/watch?v=wEUjRKOeTyo
3. Compare the values. The largest of these values is the absolute maximum,
while the smallest is the absolute minimum.
CHAPTER 6. FUNCTIONS AND CURVES 52
Objectives
You should be able to:
• Find the domain of a function.
• Find the intercepts of a function.
• Determine the intervals where a function is positive or negative.
YouTube: https://www.youtube.com/watch?v=Vyhui3AV8FA
CHAPTER 6. FUNCTIONS AND CURVES 53
YouTube: https://www.youtube.com/watch?v=H1ENyjqn3Tw
A point where the graph of a function is continuous and where the concavity
changes is called an inflection point of f .
Concept 6.4.4 Second Derivative Test. The second derivative test is
useful to determin whether a critical number of a function f is a local min or
max, using information from f 00
Suppose f 00 is continuous near c:
• If f 0 (c) = 0 and f 00 (c) > 0, then f has a local min at c.
• If f 0 (c) = 0 and f 00 (c) < 0, then f has a local max at c.
Note that if f 0 (c) = 0 and f 00 (c) = 0, then the test is not conclusive: f may
have a local max, a local min, or neither.
Concept 6.4.5 Vertical asymptotes. The vertical line x = a is a vertical
asymptote of y = f (x) if either
This says that the vertical distance between the graph of y = f (x) and the line
y = mx + b approaches 0 as x → ∞ or x → −∞.
Slant asymptotes are commonly found when f (x) is a rational function, and
the degree of the numerator is one more than the degree of the denominator.
Then, it can be found by performing long division for the rational function.
Concept 6.4.8 Summary of curve sketching. Ten step method:
Information from f (x):
1. Domain: find the domain of f .
2. Intercepts: Find the y-intercepts (0, f (0)) and x-intercepts (the points
where f (x) = 0).
3. Positivity: Find where f is positive and negative.
4. Symmetry: Is f even or odd? Is f periodic?
5. Asymptotes: Find the vertical, horizontal and slant asymptotes of f if
any exist.
Information from f 0 (x):
6. Intervals of increase and decrease: Find f 0 (x) and determine when f 0 (x) >
0 (f is increasing) and when f 0 (x) < 0 (f is decreasing).
7. Local max and min points: Find the critical points of f , if any, and
identify the local max and min.
Information from f 00 (x):
8. Concavity: Find f 00 (x), determine when f 00 (x) > 0 (f is concave up) and
when f 00 (x) < 0 (f is concave down).
9. Inflection points: Find the inflection points of f , if any.
And finally...
10. Sketch the graph: Plot key points (intercepts, critical points, local max
and min, points of inflection), and sketch the curve together with its
asymptotes.
Applications of differentiation
Objectives
You should be able to:
• Introduce notation to express a written problem involving rates of change
in terms of derivatives.
• Solve various problems from physics, chemistry, biology, etc., involving re-
lationships between changing quantities by applying differentiation tech-
niques (related rates problems).
YouTube: https://www.youtube.com/watch?v=goTaQeHmzoI
55
CHAPTER 7. APPLICATIONS OF DIFFERENTIATION 56
derivatives.
5. Write an equation that relates the various quantities of the problem.
If necessary, use the geometry of the situation to eliminate one of the
variables by substitution.
6. Differentiate both sides of the equation with respect to t.
7. Substitute the given information into the new equation and solve for the
desired rate of change.
7.2 Optimization
Our next application concerns “optimization problems”. Suppose that you are
interested in maximizing (or minimizing) a certain quantity, which may depend
on a number of factors. How can you determine how these factors should be
adjusted so that the quantity of interest is maximized (or minimized)? It turns
out that differentiation is the tool of choice for answering questions of this type.
Objectives
You should be able to:
• Introduce notation to transform an optimization problem into a calculus
question about finding the extremum of a function.
• Solve various optimization problems from physics, chemistry, economics,
population dynamics, etc. by applying calculus techniques to find the
extremum of a function.
YouTube: https://www.youtube.com/watch?v=fzflFNwp5GQ
Objectives
You should be able to:
• Find the linear approximation of a function at a given point.
• Illustrate the relation between the function and its linear approximation.
• Use the linear approximation of a function at a point to approximate the
value of the function near this point.
• Deduce whether a linear approximation over- or under-estimates the ex-
act value of a function from information about concavity of the function.
YouTube: https://www.youtube.com/watch?v=sgbPy_tkfwA
For x values very close to a the graph of f (x) is very close to the graph of the
tangent line. Then, we can use the tangent line to obtain the approximation
Objectives
You should be able to:
• Calculate the Taylor polynomials of a function, and compute its corre-
sponding higher degree approximation at a given point.
• Illustrate the relation between the function and its higher degree approx-
imations.
YouTube: https://www.youtube.com/watch?v=anEgFWVe1vQ
for all k = 1, 2, . . . , d.
Concept 7.4.2 The degree d polynomial approximation of a function
at a point. The degree d approximation of f (x) at x = a is
f (x) ≈ Td (x),
f 00 (a)
f (x) ≈ f (a) + f 0 (a)(x − a) + (x − a)2 .
2
Concept 7.4.3 The Taylor series. In fact, we could try to send d → ∞;
that would give an “approximation” of f (x) at x = a by an “infinite degree
polynomial”. This can be made rigorous using sequence and series; namely,
taking d → ∞ means taking the limit of the sequence of Taylor polynomials
Td (x), and the result is the Taylor series of f (x) at x = a. Reversing the
process, one can think of the Taylor polynomials above as truncations (so-called
“partial sums”) of the Taylor series of f (x) at x = a.
Objectives
You should be able to:
• Explain and illustrate Newton’s method.
• Apply Newton’s method to find approximations of all roots of a given
function correct to a given number of decimal places.
• Explain and illustrate why Newton’s method may fail for certain choices
of initial conditions.
YouTube: https://www.youtube.com/watch?v=LZrATWBLLdk
f (x1 )
x2 = x1 − .
f 0 (x1 )
2. Then we find x3 , the x-intercept of the tangent line of f at (x2 , f (x2 )),
and get
f (x2 )
x3 = x2 − 0 .
f (x2 )
CHAPTER 7. APPLICATIONS OF DIFFERENTIATION 61
3. We can repeat this process as many times as desired. At each step, the
x-intercept of the tangent line of f at (xn , f (xn )) is given by
f (xn )
xn+1 = xn − .
f 0 (xn )
4. If we want an answer valid for k decimal places, we stop the process when
two successive values xn and xn+1 have the exact same first k decimals.
We conclude that xn+1 is then a root of f (x), up to a precision of k >
decimal places.
Note that Newton’s method may sometimes converge very slowly. In fact, it
can also fail, for a number of reasons, for instance if the starting point x1 is
not chosen appropriately.