Calc Notes
Calc Notes
Jonathan Stanfill
Text: Single Variable Calculus: Early Transcendentals, 4th Edition, Jon Rogawski and Colin Adams
The course covers techniques of integration, applications of integration, and infinite series:
Techniques of Integration
• Review: Substitution [Section 5.7]
• Integration by parts [Section 7.1]
• Trigonometric integrals and trigonometric substitution [Sections 7.2 and 7.3]
• Partial fractions [Section 7.5]
• L’Hôpital’s rule [Section 4.5]
• Improper integrals [Section 7.7]
Applications of Integration
• Area between curves [Section 6.1]
• Integrals in geometry: volume, density, average value [Section 6.2]
• Integrals in geometry: volumes of revolution [Sections 6.3 and 6.4]
• Integrals in geometry: arc length and surface area [Section 8.2]
• Integrals in physics: work and energy [Section 6.5]
• Solving differential equations by separation of variables [Sections 9.1 and 9.4]
Infinite Series
• Sequences and series [Sections 10.1 and 10.2]
• Convergence tests for series [Section 10.3, 10.4, and 10.5]
• Power series [Section 10.6]
• Taylor polynomials [Section 10.7]
• Taylor series, complex numbers, and Euler’s formula [Section 10.8]
1
0 Lecture
Outline:
1. Welcome, syllabus
2. Calculus II in a Nutshell
Students are often left with the impression that Calculus II is a hodgepodge of many unrelated topics and
ideas. However, Calculus II, or integral calculus of a single variable, is really only about two topics: integrals
and series, and the need for the latter can be motivated by the former. The purpose of this first lecture is
to explore this a little bit so that you should have a pretty good idea what Calculus II is really all about.
Let’s start in familiar territory: Integrals you have already encountered in Calculus I since Calculus II picks
up right were you left off in Calculus I. During the first weeks of Calculus II you are going to learn several
new techniques to evaluate integrals. For example, consider the integral
Z
e−x cos x dx.
This integral can’t be evaluated easily by using the methods you learned in Calculus I (try it!), but soon after
learning about a method called integration by parts (which is related to the product rule for derivatives) you
will be able to obtain that Z
1
e−x cos x dx = e−x (sin x − cos x) + C.
2
With all these new techniques, will we be able to evaluate (at least in principle) just about any integral, as
long as the integrand is a “nice” function? The answer may surprise you. Let’s look at the integral
Z
sin x2 dx.
Using Calculus I ideas, we could define a function S(x) as a definite integral as follows:
Z x
sin t2 dt.
S(x) =
0
By the Fundamental
Theorem of Calculus (FTC, Part II), the function S(x) is an antiderivative of the
function sin x2 and hence Z
sin x2 dx = S(x) + C.
Expressing an indefinite integral in terms of a definite integral feels like cheating! What we want is a formula
for S(x) that does not involve a definite integral. It turns out that there is no such formula in terms of any
of the functions that you have encountered in your career so far! But, as we will see later, there is a different
kind of formula for S(x) in terms of what is called a power series, the most important topic in Calculus II.
Before talking about power series, let’s return to familiar territory. Some of the simplest functions that
you are familiar with are polynomials. For example, f (x) = x − x3 /6 is a polynomial function. Amazingly,
most of the “higher” functions such as the trigonometric and exponential functions are essentially almost
polynomials, just with infinitely many terms. For example, we have
x3 x5 x7
sin x = x − + − + ··· ,
3! 5! 7!
2
where the three dots (· · · ) indicate that the terms go on forever in the obvious fashion. Here the denominators
(the numbers with the exclamation marks next to them) are simple products called factorials: 3! = 3·2·1 = 6,
5! = 5 · 4 · 3 · 2 · 1 = 120, etc.
The right-hand side of this mysterious formula for sin x is what we call a power series in x. Power series are
often presented in Σ-notation. (Σ is the capital Greek letter sigma, which should remind you of the initial
letter of sum.) In Σ-notation, the formula for sin x is as follows:
∞
x3 x5 x7 X x2n+1
sin x = x − + − + ··· = (−1)n .
3! 5! 7! n=0
(2n + 1)!
You may still wonder how to interpret this formula. Suppose that we only consider the first few terms of
the power series, say only up to the x7 -term. Then, as long as x is relatively close to 0, we get a good
approximation of sin x by a polynomial function of degree 7:
x3 x5 x7
sin x ≈ x − + − .
3! 5! 7!
Just how good is this polynomial approximation? Let’s compare the two graphs:
y
2
x3 x5 x7
f (x) = x − 3!
+ 5!
− 7!
1
−2π −π π 2π x
-1
f (x) = sin(x)
-2
Over the interval (−π/2, π/2), the two graphs are so close to each other that they are indistinguishable to
the naked eye. In fact, for −π/2 < x < π/2, it follows from Taylor’s theorem 1 that
x3 x5 x7 (π/2)9
sin x − x − + − < ≈ 0.000160441 .
3! 5! 7! 9!
As we include more and more terms of the power series, we get better and better approximations, even for
x that are not close to 0. Finally, we get the exact formula for sin x for every real number x if we use the
whole power series with infinitely many terms.
Let’s return to the integral of sin(x2 ). By replacing x by x2 in our power series formula for sin x we obtain
x6 x10 x14
sin(x2 ) = x2 − + − + ··· .
3! 5! 7!
1 You will encounter Taylor’s theorem in Calculus II as an application of integration by parts, the technique of integration
3
Now integrating sin x2 is as easy as integrating a polynomial:
x6 x10 x14
Z Z
2 2
sin x dx = x − + − + · · · dx
3! 5! 7!
x3 x7 x10 x15
= − + − + ··· +C
3 7 · 3! 11 · 5! 15 · 7!
Z x
This means that we found a formula for the function S(x) = sin(t2 ) dt after all:
0
x3 x7 x10 x15
S(x) = − + − + ··· ,
3 7 · 3! 11 · 5! 15 · 7!
or, in fancy pants Σ-notation,
∞
X x4n+3
S(x) = (−1)n .
n=0
(2n + 1)!(4n + 3)
By using the same power series trick, we can evaluate many other important integrals and special functions.
For example, we can obtain a power series formula for the Gauss’ error function
Z x
2 2
Erf(x) = √ e−t dt ,
π 0
which plays a fundamental role in statistics. The power series formula for Erf(x) is
x3 x5 x7
2
Erf(x) = √ x− + − + ··· .
π 3 5 · 2! 7 · 3!
√
Given this formula (and a calculator),
√ you may try to find the approximate value of Erf(1/ 2). If you do it
correctly, you will obtain Erf(1/ 2) ≈ 0.683, which has the following interpretation: In a data sample that
is normally distributed, about 68.3% of the data values are within one standard deviation of the mean.
The examples above may have already convinced you that power series will be useful in several applications
of mathematics. We will now look at the ultimate reason why you may want to learn about power series.
It is related to the fundamental reason why science students have to study calculus to begin with. In all
of the exact sciences, many (if not most) of the laws of nature can be expressed as differential equations.
Therefore, solving differential equations (and understanding their solutions!) is of paramount importance.
A differential equation is an equation involving an unknown function and its derivatives. An ordinary
differential equation (ODE) is a differential equation involving an unknown function, say y = F (x), of only
one independent variable. The simplest such equation is
dy
= f (x),
dx
where f (x) is some given function. A solution in this case is simply a function y = F (x) such that F 0 (x) =
f (x). In other words, solving this differential equation is equivalent to finding the indefinite integral of f (x).
In Calculus II, you will learn a few tricks to solve slightly more general equations by integration, but as you
might have guessed, not every differential equation can be solved by integration and we will often have to
look for power series solutions.
4
Of particular importance are second order2 equations that show up in the study of waves of various kinds.
For example, when studying the vibrations of a drum, one is led to the following second order equation:
d2 y dy
2
x2
+x + (x2 − α2 )y = 0,
dx dx
where α is a nonnegative number. This equation is called the Bessel equation and its canonical solutions are
the so-called Bessel functions. The easiest way to describe a Bessel function is as a power series:
∞
X (−1)n x 2n+α
Jα (x) = .
n=0
n! Γ(n + α + 1) 2
Here the the expression Γ(n+α+1) is a value of the Gamma function, which you may encounter in Calculus II
(depending on the instructor) as part of the discussion of improper integrals. In the special case when α = 0,
the value Γ(n + α + 1) is equal to Γ(n + 1) = n! and it follows3 that
x2 x4 x6
J0 (x) = 1 − + − + ··· .
4 64 2304
Here is what the graphs of J0 (x), J1 (x), and J2 (x) look like:
y
1
f (x) = J0 (x)
J1 (x)
20 x
J2 (x)
-1/2
So, what should you take away from all this? After taking Calculus II, you will have gained a whole new
perspective on what we mean by a “function”. The functions from your youth (such as polynomials, trigono-
metric functions, exponential functions, and logarithmic functions) are but a small collection of functions
that arise in the sciences. If you want to understand the applications of calculus and differential equations
(even if it is just to understand a Wikipedia entry!), then you need to learn about series. Applications range
from Physical Chemistry (energies of reactions, entropy, heat, phase transitions, chemical potential), to phe-
nomena in Engineering and Physics (laws of nature), to Medicine (imagery, half-life), to general Mathematics
(including fractals!), and even arise in discussing some Greek paradoxes.
In other words, you need to take Calculus II.
2A second order equation involves the second derivative of the unknown function.
3 In case you want to verify this, you need to know that Γ(1) = 0! = 1.
5
1 Lecture
Outline:
1. Review of concepts: derivatives
2. Review basic rules: power, product, chain
3. Review of concepts: integrals
4. 5.7 The Substitution Method
1.1 Derivatives
Let y = f (x) be a function of real numbers with real values. Its derivative at x is
dy df d f (x + h) − f (x)
= = f (x) = f 0 (x) = lim = instantaneous rate of change at x
dx dx dx h→0 h or slope of the tangent line at x
provided this limit exists. For instance, if f (x) = 2x then f 0 (x) = 2 for every x because
2(x + h) − 2x 2x + 2h − 2x 2h
lim = lim = lim = 2.
h→0 h h→0 h h→0 h
6
1.1.3 Chain rule
Recall that the composition of two functions f and g is given by
(f ◦ g)(x) = f (g(x)).
1.2 Integrals
Let f be a continuous function on [a, b]. The definite integral of f over [a, b] is defined as the limit of
Riemann sums as the width of blocks goes to zero. By the Fundamental Theorem of Calculus,
Z b
f (x)dx = F (b) − F (a)
a
where F is any antiderivative of f . Remember that we can interpret the definite integral as the area
under the curve, f (x), on [a, b] or the net change of F (x) on [a, b]. We can think of the indefinite
integral of f as the set of all antiderivatives, meaning there is an unknown constant C. For example,
Z
1
x2 dx = x3 + C.
3
To compute a definite integral, it doesn’t matter which value of C we choose. For instance,
Z 1 1
2 1 3 1 1
x dx = x +C = +C −0−C = ,
0 3 0 3 3
1.3 Substitution
Thanks to the Fundamental Theorem of Calculus, integration is basically the opposite of differentiation, so
if you’re good with derivatives, you should be good at integrals. Still, it can be tricky to do, for example,
the chain rule backwards.
The chain rule backwards is called substitution.
Change of Variables Formula:
Z Z
0
f (u(x)) u (x) dx = f (u) du
| {z } | {z }
f (u) du
2 2
We saw that the derivative of ex is 2xex . Now suppose we want to compute an indefinite integral:
Z
2
xex dx.
2
The answer should have something to do with ex . How can we be systematic?
7
2 2
Let’s set u = x2 . So ex = eu . What about du? Well, du/dx = 2x so du = 2x dx. So xex dx = 21 eu du. We
know how to integrate eu du. We get
Z Z
2 1 1 1 2
xex dx = eu du = eu + C = ex + C.
2 2 2
Do not forget that when using substitution for a definite integral we must consider the limits of integration!
Change of Variables Formula:
Z b Z u(b)
0
f (u(x)) u (x) dx = f (u) du
a | {z } | {z } u(a)
f (u) du
Then all our previous work holds, but we also need to consider the change to the limits of integration.
Since u = x2 when x = 1, we see u = 1, or more precisely, u(1) = 1 is the lower limit of integration after
substitution. Similarly, u(2) = 22 = 4 is the upper limit. We get
Z 2
1 4 u
Z
x2 1 4 1
e du = eu = e4 − e .
xe dx =
1 2 1 2 1 2
Example. Evaluate Z
x2 sin x3 dx.
Z Z
1 1 1
x2 sin x3 dx = sin(u)du = − cos(u) + C = − cos x3 + C.
3 3 3
Example. Evaluate Z
tan θ dθ.
While this does not immediately look like it needs substitution, it indeed does! Let u = cos θ so that
du = − sin θ dθ. We get
Z Z Z
sin θ du
tan θ dθ = dθ = − = − ln |u| + C = − ln | cos θ| + C = ln | sec θ| + C.
cos θ u
The trick with all substitutions is to find the u which will make f (x)dx turn into g(u)du where g(u) is
nice and easy. Easier said than done! Indeed, substitution only works when you can find such a nice u.
Otherwise, you need to try other tricks.
Suggestions for Substitution
p
i) If a function is raised to a power or in a radical, i.e., [f (x)]2 , [f (x)]−1 , f (x), let u = f (x).
ii) If a function appears in the argument of another function, i.e., sin(f (x)), ln(f (x)), ef (x) , let u = f (x).
Note that i) is a particular case of ii) with the outer function being the power function, and these suggestions
do not always work!
8
2 Lecture
Outline:
1. 7.1 Integration by Parts
Strategy: pick out a u and dv in your integral, such that it is advantageous to pass the derivative from v to
u in order to make integration easier.
R R
Example. Compute x cos xdx. Let u = x and dv = cos xdx. To find v, we integrate v = cos xdx = sin x.
(At this point we don’t need to worry about constants; we’ll make sure it’s there at the end.) So the product
rule tells us Z Z
x cos xdx = x sin x − sin xdx = x sin x + cos x + C.
It was advantageous to pass the derivative over to x because its derivative is just 1.
R
Example. Find ln xdx. This is a surprising example, because it doesn’t seem like there are any “parts”!
And yet, we don’t know how to antidifferentiate
R ln x off the top of our heads. So we take u = ln x, and as
for v we simply let dv = dx integrating v = 1dx to get v = x. Since du/dx = 1/x we get
Z Z Z
1
ln xdx = x ln x − x dx = x ln x − dx = x ln x − x + C.
x
Example. Find exRcos xdx. Here’s an example were something funny happens. Take u = ex and dv =
R
It seems we’ve gone around in a circle! But in fact, putting these together we get
Z Z
ex cos xdx = ex sin x + ex cos x − ex cos xdx.
9
That means Z
1 x
ex cos xdx = (e sin x + ex cos x) + C.
2
Example. Compute xn exRdx for any positive integer n. Start with n = 1, i.e. xex dx. We take u = x
R R
which is called a recursive formula, or sometimes a reduction formula as it reduces the power under the
integral. It can be used repeatedly to find the answer for any n, because we can always get down to n = 1,
Z Z Z
n x n x n−1 x n n−1 x
x e dx = x e − n x e dx = (x − nx )e + n(n − 1) xn−2 ex dx
Z π π
1 π 1 π
Z Z
1
sin x sin 2x dx = − sin x cos 2x + cos x cos 2x dx = cos x cos 2x dx.
0 2 0 2 0 2 0
Plugging this into the first equation we get
Z π
1 π
Z
cos x cos 2x dx = cos x cos 2x dx.
0 4 0
But that means Z π Z π
3
cos x cos 2x dx = 0 ⇒ cos x cos 2x dx = 0.
4 0 0
Suggestions for Substitution If one of the functions in the integrand can be eliminated or made simpler
by taking a few derivatives (or integrals), choose this to be u (or dv). Example:
u : xn , ln x, (ln x)n , inverse trigonometric functions
If neither function will be made simpler by derivatives or integrals (multiplication of trigonometric and
exponential), you will have to use integration by parts until the original integral reappears and then solve
for it.
10
3 Lecture
Outline:
1. 7.2 Trigonometric Integrals, Part I
u101 cos101 x
Z Z
cos100 x sin x dx = − u100 du = − +C =− + C.
101 101
u3 cos3 x
Z Z Z
sin3 x dx = (1 − cos2 x) sin x dx = − (1 − u2 )du = −u+C = − cos x + C.
3 3
u3 u5 sin3 x sin5 x
Z Z Z
2 2 2
sin x cos x dx = sin x(1 − sin x) cos x dx = u2 (1 − u2 )du =
3
− +C = − + C.
3 5 3 5
integration by parts, actually, but let’s use a different trick instead. We can use the double angle formula to
get sin2 x = 12 (1 − cos 2x). So
Z Z
2 1 1 1 x 1 x 1
sin x dx = (1 − cos 2x)dx = (x − sin 2x) + C = − sin 2x + C = − sin x cos x + C.
2 2 2 2 4 2 2
2 x 1
R
You can do the same to get cos x dx = 2 + 2 sin x cos x + C.
With higher powers it gets tougher. We use integration by parts to get a recursive formula. (Your book
calls it a reduction formula.) We want to find the integral of, say, cosn x. Let u = cosn−1 x, dv = cos x dx.
Then
Z Z
cosn x dx = cosn−1 x sin x + (n − 1) cosn−2 x sin2 x dx
Z Z
n−1 n−2
= cos x sin x + (n − 1) cos x dx − (n − 1) cosn x dx.
11
So Z Z
n n−1
n cos x dx = cos x sin x + (n − 1) cosn−2 x dx
n−1
Z Z
1
⇒ cosn x dx = cosn−1 x sin x + cosn−2 x dx.
n n
For example, Z Z
1 5
cos x dx = cos5 x sin x +
6
cos4 x dx.
6 6
Z Z Z Z Z
1 5
sin2 x cos4 xdx = cos4 xdx − cos6 xdx = cos4 xdx − cos5 x sin x − cos4 x dx
6 6
Z
1 1
= cos4 xdx − cos5 x sin x
6 6
using the reduction formula. We can use the reduction formula again if we like:
Z Z
1 3 1 3 3x
cos4 xdx = cos3 x sin x + cos2 x dx = cos3 x sin x + cos x sin x + + C.
4 4 4 8 8
Thus Z
1 1 1 x
sin2 x cos4 xdx = − cos5 x sin x + cos3 x sin x + cos x sin x + + C.
6 24 16 16
Another way would be to use the double angle formula directly instead of relying on the reduction formula.
There are usually multiple options as you learn more techniques as seen here and in the next example.
Rπ
Interesting Example. Compute 0 sin2 x dx. From previous work we know
Z π π
x 1 π
sin2 x dx = − sin x cos x = .
0 2 2 0 2
But let us look at it a little differently which could help you in the future! Consider the following graphs
y
cos2 (x)
1
sin2 (x)
πx
12
4 Lecture
Outline:
1. 7.2 Trigonometric Integrals, Part II
1 + tan2 x = sec2 x.
We also have
d d sin x cos2 x + sin2 x d d 1 − sin x
tan x = = 2
= sec2 x = 1 + tan2 x, sec x = = = tan x sec x.
dx dx cos x cos x dx dx cos x − cos2 x
Remembering these two facts, as well as the basic facts we already know, we can compute lots of integrals
involving tangents and secants.
Example. Find tan2 x dx. This is very easy:
R
Z Z
tan2 x dx = (sec2 x − 1)dx = tan x − x + C.
R
Example. Find tan x dx. We use a substitution u = cos x, so du = − sin x. Thus
Z Z Z
sin x 1
tan x dx = dx = − du = − ln |u| + C = − ln | cos x| + C = ln | sec x| + C.
cos x u
Other examples involve reducing down in clever ways. Normally you substitute u = tan x or u = sec x, so
either du = sec2 x dx or du = tan x sec x dx. If what’s left over is reducible down to powers of u, then the
strategy works. We look for even powers of tan x and sec x, since tan2 x + 1 = sec2 x.
Example. Compute tan3 x sec5 x dx.
R
Let u = sec x, so du = tan x sec x dx. What’s left over is tan2 x sec4 x = (sec2 x − 1) sec4 x = (u2 − 1)u4 =
u6 − u4 . So
u7 u5 sec7 x sec5 x
Z Z
tan x sec x dx = (u6 − u4 )du =
3 5
− +C = − + C.
7 5 7 5
The previous substitution would leave odd powers, so let u = tan x so du = sec2 x dx. What’s left over is
tan2 x sec2 x = tan2 x(tan2 x + 1) = u2 (u2 + 1) = u4 + u2 . So
tan5 x tan3 x
Z Z
tan2 x sec4 xdx = (u4 + u2 )du = + + C.
5 3
Example. Find tan3 x dx. Here we see neither sec2 xdx nor sec x tan xdx, but if we recall that tan2 x =
R
sec2 x − 1, we get Z Z Z
tan3 x dx = tan x sec2 x dx − tan x dx.
The first one is done by setting u = tan x, and the second one was done at the beginning. We get
tan2 x
Z
tan3 x dx = + ln | cos x| + C.
2
13
R
Example. Find sec x dx. One way to do this systematically requires a technique called partial fractions,
which we haven’t done yet. Still, I will only use it to get through one part; everything else is just trigonometric
identities. Let u = sin x.
Z Z Z Z Z
cos x cos x 1 1 1 1
sec x dx = dx = dx = du = + du (partial frac.)
cos2 x 1 − sin2 x 1 − u2 2 1−u 1+u
(1 + sin x)2
1 1 1+u 1 1 + sin x 1
= (− ln(1 − u) + ln(1 + u)) + C = ln + C = ln + C = ln +C
2 2 1−u 2 1 − sin x 2 1 − sin2 x
(1 + sin x)2
1 1 + sin x
= ln + C = ln + C = ln |sec x + tan x| + C.
2 cos2 x cos x
n−1
Z Z
n 1 n−1
sin x dx = − sin x cos x + sinn−2 x dx
n n
n−1
Z Z
1
cosn x dx = cosn−1 x sin x + cosn−2 x dx
n n
Z
sec x dx = ln | sec x + tan x| + C
n−2
Z Z
1
secn x dx = secn−2 x tan x + secn−2 x dx
n−1 n−1
Z
csc x dx = − ln | csc x + cot x| + C
n−2
Z Z
1
cscn x dx = − cscn−2 x cot x + cscn−2 x dx
n−1 n−1
Z
tan x dx = ln | sec x| + C = − ln | cos x| + C
Z Z
1
tann x dx = tann−1 x − tann−2 x dx
n−1
Z
cot x dx = − ln | csc x| + C = ln | sin x| + C
Z Z
1
cotn x dx = − cotn−1 x − cotn−2 x dx
n−1
14
5 Lecture
Outline:
1. 7.3 Trigonometric Substitution
So
sin−1 x x p
Z p Z
θ 1
1 − x2 dx = cos2 θdθ = + cos θ sin θ + C = + 1 − x2 + C.
2 2 2 2
To solve our problem, we get
1/2
sin−1 x x p 1√
π
Area = + 1 − x2 = + 3.
2 2 0 12 8
It is possible to verify this geometrically, by splitting the region into a triangle and a wedge.
√
If a circle has radius a instead of 1, then the top half is given by y = a2 − x2 . If we want to integrate this,
we use x = a sin θ instead of x = sin θ:
Z p Z p Z √ Z
a2 − x2 dx = a2 − a2 sin2 θa cos θdθ = a2 cos2 θa cos θdθ = a2 cos2 θdθ
a2 a2 x p x
= (sin θ cos θ + θ) + C = 1 − (x/a)2 + sin−1 + C.
2 2 a a
x2
Z
Example. Some tough integrals can be computed using the same substitution. Compute dx.
√ (4 − x2 )3/2
We set x = 2 sin θ, so 4 − x2 = 2 cos θ. Thus
15
√ √ √
So if we get something like √ x2 + a2 we will try x = a tan θ where x2 + a2 = a sec θ. If we get x2 − a2
we will try x = a sec θ where x2 − a2 = a tan θ.
√
Z
1
Example. Evaluate √ dx. Take x = 3 tan θ, so dx = 3 sec2 θdθ and x2 + 9 = 3 sec θ. Thus
2
x +9
Z Z
1 1p 2 1 p
√ dx = sec θdθ = ln | sec θ+tan θ|+C = ln x + 9 + x +C = ln(1/3)+ln | x2 + 9+x|+C.
x2 + 9 3 3
√ √
Z
dx
Example. Evaluate √ . Now 4x2 − 36 = 2 x2 − 9. Let x = 3 sec θ so dx = 3 tan θ sec θdθ
2 2
x 4x − 36
√
and x2 − 9 = 3 tan θ. Then
√
1 x2 − 9
Z Z Z
dx 3 tan θ sec θ 1 1 1 tan θ
√ = dθ = cos θdθ = sin θ + C = +C = + C.
x2 4x2 − 36 9 sec2 θ6 tan θ 18 18 18 sec θ 18 x
Completing the square. Any quadratic polynomial can be converted into a square plus some number.
Then we can use trigonometric substitution (or partial fractions, as we will see).
dx 2
R
For example, suppose we want to compute (x2 −6x+11) 2 . Half of 6 is 3, and 3 = 9, so
x2 − 6x + 11 = (x − 3)2 + 2.
16
6 Lecture
Outline:
1. 7.5 The Method of Partial Fractions; Part I
So then Z
u−1
Z
du 1 1 1 1
2
= − du = ln + C.
u −1 2 u−1 u+1 2 u+1
We have used the method of partial fractions. There is a systematic technique we can use for any rational
function. (Recall that a rational function is just a fraction where top and bottom are polynomials.)
Any polynomial can be factored into linear (or first-order) and quadratic (or second-order) terms. For
example,
x3 − 2x2 + x = x(x − 1)2 .
If the polynomial appears in the denominator of a fraction, then the idea is to break up the fraction into a
sum where each term has one of the factors in the denominator. Think about this as the reverse (or inverse
operation) of finding common denominators.
4x + 1 A B
= + ⇒ 4x + 1 = A(x − 2) + B(x + 2).
(x + 2)(x − 2) x+2 x−2
This has to hold for every x. We can pick certain x cleverly to get A and B by themselves. Pick x = −2.
Then we get
7
4(−2) + 1 = A(−2 − 2) + B(−2 + 2) ⇒ −7 = −4A ⇒ A = .
4
Similarly take x = 2 to get 4B = 9 so B = 9/4. So we get
Z Z
4x + 1 7 1 9 1 7 9
dx = + dx = ln |x − 2| + ln |x + 2| + C.
x2 − 4 4x−2 4x+2 4 4
17
6.3 Repeated linear factors
In the last example all three factors were distinct. When
R there is a repeated factor, it actually contributes
3x−9
more than one partial fraction. For example, let’s try (x−1)(x+2) 2 dx. We want to solve
3x − 9 A B C
= + +
(x − 1)(x + 2)2 x − 1 x + 2 (x + 2)2
for A, B, C. We can try proceeding as before:
3x − 9 = A(x + 2)2 + B(x − 1)(x + 2) + C(x − 1).
Plug in x = 1 to get A = −2/3. Plug in x = −2 to get C = 5. But what about B? There are several ways
to proceed, but let us start with a method that we will need if the problem is harder, comparing powers.
We start with the highest power of x in the equation we are consider,
3x − 9 = A(x + 2)2 + B(x − 1)(x + 2) + C(x − 1).
Note that the highest power of x is 2. So we compare the coefficient of the x2 term on the right and left-hand
sides to see
2 2
0x2 = Ax2 + Bx2 ⇒ 0 = A + B ⇒ B = −A = − − = .
3 3
This method is great for comparing lead powers, but keep in mind for other powers we have to distribute
every term in order to collect coefficients.
Another way is just to try any other x not already tried, for example x = 0. Then we get
−9 = 4A − 2B − C ⇒ 2B = 9 − 8/3 − 5 = 4 − 8/3 = 4/3 ⇒ B = 2/3.
With either method we get
3x − 9
Z Z Z Z
2 dx 2 dx dx 2 2 5
dx = − + + 5 = − ln |x − 1| + ln |x + 2| − + C.
(x − 1)(x + 2)2 3 x−1 3 x+2 (x + 2)2 3 3 x+2
Remark. For repeated linear factors of degree higher than 2, write a fraction for each power, that is, you
should have the same number of fractions for the repeated factor as its power.
Example. In this example we will just focus on the partial fraction decomposition rather than the integral
as well so we can get a feel for how to solve something with more factors. Consider
1
.
x(x − 2)3
Since there is a power of 3 on x − 2, we will need to write 3 fractions for it. So we want to solve
1 A B C D
3
= + + 2
+
x(x − 2) x x − 2 (x − 2) (x − 2)3
for A, B, C, D. We proceed as before:
1 = A(x − 2)3 + Bx(x − 2)2 + Cx(x − 2) + Dx.
Plug in x = 0 to get A = −1/8. Plug in x = 2 to get D = 1/2. To find B we compare highest powers as
before to see B = −A = 1/8. Finally, choose x = 1 and plug in what we found for A, B, D to see
1 1 1 1 1 1 1
1 = − (1 − 2)3 + (1 − 2)2 + C(1 − 2) + ⇒ 1 = + − C + ⇒ C = − .
8 8 2 8 8 2 4
Hence,
1 1 1 1 1
3
=− + − 2
+
x(x − 2) 8x 8(x − 2) 4(x − 2) (x − 2)3
18
7 Lecture
Outline:
1. 7.5 The Method of Partial Fractions; Part II
18 A Bx + C
2
= + 2 ⇒ 18 = A(x2 + 9) + (Bx + C)(x + 3).
(x + 3)(x + 9) x+3 x +9
The Bx + C is generally necessary because it sits on top of a quadratic. Plug in x = −3 to get A = 1. Plug
in x = 0 to get 18 = 9 + 3C so C = 3. To find B there are a few strategies, but one way could just be to
multiply out and match coefficients:
18 = x2 + 9 + Bx2 + 3Bx + 3x + 9 = (B + 1)x2 + (3B + 3)x + 18.
It follows that B + 1 = 0 or B = −1. So
Z Z Z Z
18 dx x dx
2
dx = − 2
dx + 3 2
.
(x + 3)(x + 9) x+3 x +9 x +9
The second integral is solved by the substitution u = x2 + 9 so du = 2x dx:
Z
x 1 du 1
dx = = ln(x2 + 9) + C.
x2 + 9 2 u 2
The third integral is solved by the trig sub x = 3 tan θ. In fact,
3 sec2 θdθ
Z Z
dx 1 1 −1 x
= = θ + C = tan + C.
x2 + 9 9 sec2 θ 3 3 3
Putting these together we get
Z
18 1 x
2
dx = ln |x + 3| − ln(x2 + 9) + tan−1 + C.
(x + 3)(x + 9) 2 3
Remark. If there is a repeated irreducible factor, it again contributes more than one partial fraction.
19
8 Lecture
Outline:
1. 4.5 L’Hôpital’s Rule; Part I
f (x)
lim .
x→a g(x)
This includes a = ±∞, that is the limit when x gets really large (or very negative).
Before getting to L’Hôpital’s Rule, let’s remember the basic techniques! It is important not to lose
these techniques, because L’Hôpital’s Rule doesn’t always apply! If limx→a f (x) exists, and if limx→a g(x)
exists and is not zero, then just plug in x = a:
x3 − 8 27 − 8
lim = = 19.
x→3 x − 2 3−2
If both limits exist but the bottom is zero, then the limit might not exist, or it may be infinity. The case
“0/0” is ambiguous, but sometimes cancellation is enough to find out what the limit is.
x2 − 4 (x − 2)(x + 2)
lim = lim = lim (x + 2) = 4.
x→2 x − 2 x→2 x−2 x→2
When you can’t easily find such cancellation, there’s L’Hôpital’s Rule.
Theorem 1. Suppose a is a number, that f and g are differentiable around a, and either f (a) = g(a) = 0 or
limx→a f (x) = ±∞ and limx→a g(x) = ±∞. Then if g 0 (x) is nonzero near a (but not necessarily at x = a)
we get
f (x) f 0 (x)
lim = lim 0 , (1)
x→a g(x) x→a g (x)
Proof. We give a proof for the first case when f (a) = g(a) = 0 with g 0 (a) 6= 0. Then g(x) 6= g(a) near a and
f (x)−f (a)
f (x) f (x) − f (a) x−a f 0 (a) f 0 (x)
lim = lim = lim = = lim .
x→a g(x) x→a g(x) − g(a) x→a g(x)−g(a) g 0 (a) x→a g 0 (x)
x−a
x2 − 4 2x 4
lim = lim = .
x→2 sin πx x→2 π cos πx π
In this case, we get a 0/0 limit, but cancellation looks pretty hopeless, so it’s a good thing we have L’Hôpital’s
Rule.
20
Remark. Don’t forget to check for 0/0 or ±∞/ ± ∞! Let us review the first example,
x3 − 8 27 − 8
lim = = 19.
x→3 x − 2 3−2
What if we had mistakenly used L’Hôpital’s Rule? We would have said
x3 − 8 3x2
lim “ = ” lim = 27 6= 19.
x→3 x − 2 x→3 1
WRONG! If the hypothesis of the theorem does not hold then we cannot apply the theorem!
21
9 Lecture
Outline:
1. 4.5 L’Hôpital’s Rule; Part II
Both cos2 x and 1 − sin x go to zero as x → π/2, but how do they compare? We use L’Hôpital’s Rule to find
Using logarithms for the forms 00 and 1∞ . Let’s find the following limits:
lim xx = lim ex ln x = e0 = 1.
x→0+ x→0+
1
For the second, we know ln(1 + 4x)1/2x = 2x ln(1 + 4x). By L’Hôpital’s Rule,
22
10 Lecture
Outline:
1. 7.7 Improper Integrals; Part I
A very important function in many areas of science that is defined through improper integrals is the gamma
function which is define for s > 0 (actually for complex numbers whose real part is greater than zero) as
Z ∞
Γ(s) = ts−1 e−t dt.
0
See the extra credit problem on Homework 4 for more about it and to see how it generalizes the factorial.
R∞ −3
Example. Let’s find 2 dx x3 . In other words, we’re finding the area under the curve y = x over the
interval 2 ≤ x < ∞. So the region is unbounded and the graph is given below.
x−3
1 2 x
23
R∞ dx
Example. Does 1 x converge?
1 2 x
R∞ dx
Example. What about −∞ x2 +1
? We need to split into two sides, positive and negative.
p-integrals. We now generalize the first two examples. Suppose p is any number and a > 0. Consider
Z ∞
dx
.
a xp
If p is large then we expect this to converge. If p is small (or negative) we expect this to diverge. In fact,
for R > a, p 6= 1, we get
Z R R
dx 1 1 1
= = − .
a xp (1 − p)xp−1 a (1 − p)Rp−1 (1 − p)ap−1
If p > 1, then 1/Rp−1 → 0 as R → ∞. In this case the integral converges and we get (verify with first
example) Z ∞
dx 1
p
= p−1
.
a x (p − 1)a
R∞
If p < 1 then 1/Rp−1 = R1−p → ∞ as R → ∞. So the integral diverges, and we write a xdxp = ∞. If p = 1,
RR
we get a dx x = ln(R) − ln(a) → ∞ as R → ∞, so the integral again diverges (see second example).
24
11 Lecture
Outline:
1. 7.7 Improper Integrals; Part II
and if the function blows up at both ends, we add both limits together.
R 1 dx
Example. 0 √1−x 2
. The function blows up as x → 1.
√ 1
1−x2
1x
p-integrals. Consider Z a
dx
.
0 xp
1
The function blows up as x → 0. We expect the integral to converge for small or negative p, the opposite
xp
of what we expected before. If 0 < R < a then
Z a
dx 1 1
p
= p−1
− .
R x (1 − p)a (1 − p)Rp−1
1
If p > 1 then Rp−1 → ∞ as R → 0+ , so the integral diverges. If p < 1 then it goes to zero and we get
Z a
dx 1
p
= p−1
.
0 x (1 − p)a
25
11.2 Comparison Test
Sometimes all we want to know is whether an integral converges or diverges; we don’t care about the value.
So we compare the integral to another one we know about already.
R∞ R∞ R∞
If f (x) ≥ g(x) ≥ 0, then if a f (x)dx converges, so does a g(x)dx. Logically, if a g(x)dx diverges, so
R∞
does a f (x)dx.
R∞
Example. Does 1 √xdx 3 +1
converge? A good comparison technique is to make the denominator smaller
to get a larger function. In this situation, try this:
1 1
√ ≤ .
x3 +1 x3/2
R∞ 1
We know that 1 x3/2
dx converges because 3/2 > 1. So the integral converges.
R ∞ dx
Example. Does 1
√
x+e3x
converge? Well, if we compare to √1x , then we might
think not, but that would
be a mistake. Exponentials go to zero super-fast, so their integrals converge. In fact, if R > 1 then
R
e−3R e−3
Z
dx
= − +
1 e3x 3 3
R∞ dx e −3
so = . Now since √ 1 3x ≤ 1
1 e3x 3 x+e e3x , we see that the integral converges.
R 1/2
Example. Does 0 x8dx +x2 converge? Probably not, because both 8 and 2 are larger than 1. We need to
compare to a smaller function whose integral diverges. So we make the denominator larger. Well, we’re
looking at 0 ≤ x ≤ 1/2. So x < 1 and x to any power is also less than 1. Thus x8 < x2 . We get
1 1
≥ 2.
x8 + x2 2x
R 1/2 dx
But 0 2x2 diverges because 2 > 1, so the original integral also diverges.
Remark. Comparisons can be difficult at first. You have to know which part of a function is bigger than
the others, and where that’s true! In general, we tend to care most about what happens for x small and
for x large. So you need to know the difference in behavior for functions as x → 0 and as x → ∞. And
when you’re integrating, it’s not enough just to know what the limits are; you have to know how much area
accumulates under the curve!
26
Exam 1 Review
The first exam will cover techniques of integration.
Strategy: pick out a u and dv in your integral, such that it is advantageous to pass the derivative from v to
u in order to make integration easier.
Suggestions for Substitution If one of the functions in the integrand can be eliminated or made simpler
by taking a few derivatives (or integrals), choose this to be u (or dv). Example:
If neither function will be made simpler by derivatives or integrals (multiplication of trigonometric and
exponential), you will have to use integration by parts until the original integral reappears and then solve
for it.
Z Z Z Z
2 x
Examples: x cos x dx, x e dx, x ln xdx, ex cos xdx
27
Trigonometric integrals [Section 7.2]
Many integrals involve trigonometric functions. To compute them, you will need to remember one funda-
mental identity (the Pythagorean identity):
cos2 x + sin2 x = 1.
Divide by cos2 x to get
1 + tan2 x = sec2 x.
We can then use the provided Table of Trigonometric Integrals to evaluate most of these integrals. Keep in
mind that if we have high powers of one or more trigonometric functions, it is most likely advantageous to
use the substitution method rather than applying the trigonometric integral identities three or more times!
Z Z
2 3
Examples: sin x cos x dx, tan20 x sec4 x dx
28
12 Lecture
Outline:
1. 6.1 Area Between Two Curves
Changing sides. Let’s find the area between the graphs of f (x) = x2 − 5x − 7 and g(x) = x − 12 over
[−2, 5].
x2 − 5x − 7
x − 12 -12
Z 1 Z 5 Z 1 Z 5
2
[f (x) − g(x)]dx + [g(x) − f (x)]dx = [x − 6x + 5]dx + [−x2 + 6x − 5]dx
−2 1 −2 1
1 5
x3
3
x 124 113
= − 3x2 + 5x + − + 3x2 − 5x = [3 + 9 + 15] + − + 72 − 20 = .
3 −2 3 1 3 3
29
A region enclosed by several curves. Let’s find the area enclosed by the graphs y = 8/x2 , y = 8x, and
y = x.
1 2 2
8 x2
Z Z
8 7 7 1
7xdx + − x dx = + − − = + [−4 − 2] − −8 − = 6.
0 1 x2 2 x 2 1 2 2
Integrating along the y-axis. Sometimes it’s advantageous to switch roles of x and y and write x as a
function of y. For example, let’s find the area of the region enclosed by y = x2 , y = −x + 2, and y = 0.
1 1
√
Z
1 2 1 2 5
(−y + 2 − y)dy = − y 2 + 2y − y 3/2 =− +2− = .
0 2 3 0 2 3 6
Summary: If you are given two or more functions without a specified interval, find their intersections to
determine the enclosed region and find its area.
30
13 Lecture
Outline:
1. 6.2 Setting Up Integrals: Volume, Density, Average Value; Part I
2. Volume
Because it might be visually easier, your book proposes using the y-axis on the graph with objects that stand
up straight. But this is just a matter of orientation.
Example. Find the volume of a pyramid of height 12 whose base a square of side 4.
We will line up the pyramid so that the y-axis goes through from top to bottom, hitting the base at a right
angle at the origin. So at y = 0 the cross sectional area is 42 = 16, while at y = 12 the cross sectional area
is 0 (the top is a point). At any y in between 0 and 12, the cross section is a square whose side should have
length in proportion to the distance from the top. The distance from the top is 12 − y. So if x is the side
length,
12 − y 12 1
= ⇒ x = (12 − y).
x 4 3
2 1 2
Thus the area of the cross section is A(y) = x = 9 (12 − y) . The total volume, then, is
Z 12 12
1 2 1
(y − 12) dy = (y − 12)3 = 64.
0 9 27 0
Example. Compute the volume of the solid whose base is the region between the parabola y = 4 − x2
and the x-axis, and whose vertical (in the “z direction”) cross sections are semicircles perpendicular to the
y-axis.
Since the cross sections are perpendicular to the y-axis, we have to integrate in that direction, with
√ bounds
0 ≤ y ≤ 4 (y = 0 is the x-axis, and y = 4 is the vertex of the parabola). The radius is x = 4 − y, so
A(y) = 12 πx2 = 12 π(4 − y). So the volume is
Z 4
π π 4
(4 − y)dy = 4y − y 2 /2 0 = 4π.
0 2 2
31
Example. Compute the volume of a sphere of radius R.
People knew how to do this long before calculus, but thankfully we came after them!
We can set up cross sections perpendicular to any axis we want, so why not the x-axis? So taking −R ≤
x ≤ R, the cross sections have area A(x) = πr2 where x2 + r2 = R2 , thus A(x) = π(R2 − x2 ) and so
Z R R 4π 3
π(R2 − x2 )dx = π R2 x − x3 /3 −R = πR3 − πR3 /3 − π[−R3 + R3 /3] =
V = R .
−R 3
Cavalieri’s principle: If two solids have equal cross-sectional areas, then they have equal volume. (For
example, just take two stacks with the same number of quarters. Even if the quarters aren’t stacked perfectly
one on top of the other, they have the same volume.)
32
14 Lecture (not covered on homework or exams)
Outline:
1. 6.2 Setting Up Integrals: Volume, Density, Average Value; Part II
2. Linear mass density
3. Flow rate
4. Average value of a function
There are other one-dimensional quantities. A population density could depend only on distance from
the city center, for example. To find the total population, we need to integrate circles:
Z R
Population with radius R = 2πrρ(r)dr.
0
Example. Suppose the population density depends on the distance from the city center like ρ(r) = 15(1 +
r2 )−1/2 thousands per square kilometer. This makes sense, since the farther out you go, the fewer people
there are. How many people are there between 10 and 30 km from the city center?
Z 30 Z 901 901
2 −1/2
(u)−1/2 du = 30πu1/2
2πr 15(1 + r ) dr = 15π ≈ 1881 thousand.
10 101 101
where R is the radius of the pipe and v(r) is the velocity of particles.
Example. According to Poiseuille’s Law, the velocity of blood flowing in a blood vessel of radius R is
v(r) = k(R2 − r2 ) (where k is a constant). What is the total flow rate?
Z R 2
R
r4 πkR4
2 2 2r
2πkr(R − r )dr = 2πk R − = .
0 2 4 0 2
This actually shows the danger of reduced blood flow, say from plaque buildup. The flow is proportional to
R4 , so if the radius, R, is reduced by say 1/2, the flow rate is reduced by a factor of 16.
33
14.3 Average value
The average value of N numbers is found by adding them and dividing by N :
a1 + · · · + aN
.
N
If we take N values of a function f from equally spaced intervals in [a, b], and then we let N → ∞, we get
the average value of f on [a, b]:
Z b
1
Average value = f (x)dx
b−a a
Example. Let’s find the average value of f (x) = sin(x) on the interval [0, π]. Recall that this is the interval
on which sin is non-negative. We get
π
1 π
Z
1 2
sin(x)dx = − cos(x) = .
π 0 π 0 π
Remark: Note with an average of a list of numbers, the average may never be obtained in the list but it
always is for a continuous function by the Mean Value Theorem.
Extra Example. A ball is thrown in the air vertically from ground level with initial velocity 18 m/s. Find
the average height and average speed over the time interval extending from the ball’s release to its return to
ground level. (The acceleration due to gravity is 9.8 m/s2 )
Step 1: find a function for the ball’s height and velocity at time t.
The acceleration is constant in the downward direction, and initial velocity is 18, so v(t) = 18 − 9.8t is the
velocity. The height is therefore h(t) = v(t)dt = 18t − 4.9t2 + C, where h(0) = 0 which is ground level. So
R
34
15 Lecture
Outline:
1. 6.3 Volumes of Revolution: Disks and Washers
Example. Revolve the area under the curve y = x2 over 0 ≤ x ≤ 2 about the x-axis to get a shape similar
to the opening of a musical horn.
1 2 x
We can do the same thing with areas between two curves y = f (x) and y = g(x) which are both above the
x-axis, but then the cross sections are washers–there’s a hole in the middle. We need to delete the hole
from the area: A(x) = πf 2 (x) − πg 2 (x).
Example. We make a lamp shade by revolving the area between y = x2 + 4 and y = 2 over 1 ≤ x ≤ 3
around the x-axis.
y=2
2
1 2 3 x
35
Example. We make a wedding band by revolving the area enclosed by y = 4 − x2 and y = x2 + 2 around
the horizontal line y = −3. To find the limits of integration, and which curve goes on top, we compare:
The points of intersection are x = 1 and x = −1. If x is between 1 and −1, then −2(x − 1)(x + 1) > 0 (since
(−)(−)+ = +) so 4 − x2 > x2 + 2.
-1 1 x
-3
Example. If we want to revolve around a vertical axis instead, we can still use washers or disks, but we
have to find x as a function of y. For instance, take the region between the graph y = 9 − x2 and the x-axis
over 0 ≤ x ≤ 3 and revolve it around the axis x = −2.
y √
Now x = 9 − y is the outside curve; the top of the
9 − x2
9
region is y = 9. Each
√ cross section is a washer whose
outside radius is 9 − y + 2 and whose inside radius
is just 2. So the volume is
Z 9 p
225
V =π [( 9 − y + 2)2 − 4]dy = π.
0 2
-2 3 x
36
16 Lecture
Outline:
1. 6.4 Volumes of Revolution: Cylindrical Shells
Example. Let’s take the region under the graph y = f (x) = x3 (and over the x-axis) between 0 ≤ x ≤ 1
and revolve it around the y-axis. We’ll get a sort of bowl with square corners.
1 x
√
Example. Take the region enclosed by y = x and y = x2 and revolve it around the y-axis. First, we need
to know what this region looks like.
1
x 2 1 3π
1 = 2π x5/2 − x4 = .
5 4 0 10
37
Example. This time we’ll revolve around a different vertical axis, say x = −3. Take the region under the
graph y = x−1/2 over the interval 1 ≤ x ≤ 4.
-3 1 4 x
Example. For our last example, we’ll go back to revolving around the x-axis. But we’ll see that using
the normal disk method will be very tricky, and the shell method will help. We take the region between the
graph y = sin−1 (x) and the x-axis over 0 ≤ x ≤ 1 and revolve it around the x-axis.
π3
= − 2π.
4
38
17 Lecture
Outline:
1. 8.2 Arc Length and Surface Area
Example. Let’s say I throw a ball into the air at an initial speed of 9.8 m/s vertically at 1 m/s horizontally.
Using some physics, I can determine that the path of the ball is given by y = 9.8x − 4.9x2 on the interval
0 ≤ x ≤ 2, where x is the horizontal distance traveled by the ball. What is the total distance the ball travels
through the air?
We want the arc length of the curve y = 9.8x − 4.9x2 on the interval [0, 2]. Now y 0 = 9.8 − 9.8x, so
Z 2 Z x=2 p
p
2
1
L= 1 + (9.8 − 9.8x) dx = 1 + u2 du, u = 9.8x − 9.8.
0 9.8 x=0
39
√
Conceptual understanding. Consider the√two arcs y = x and y = x2 over the same interval 0 ≤ x ≤ 1.
Note that on this interval we can write y = x as x = y 2 with 0 ≤ y ≤ 1. In other words, the two arcs are
just mirror images of each other. They should have the same arc length.
√ 1
What does the formula say? On the one hand, since the derivative of x is 2√ x
, we get
Z 1
r
1
L= 1+ dx.
0 4x
Example. What is the surface area√ of a sphere of radius R? Well, we can revolve a semicircle around the
2
x-axis to get the sphere. Let y = R2 − x2 . Then y 0 = − √R2x−x2 so (y 0 )2 = R2x−x2 . The surface area is
R
r R R
x2
Z p Z p Z
SA = 2π R 2 − x2 1+ dx = 2π R2 − x2 + x2 dx = 2π Rdx = 2πR(2R) = 4πR2 .
−R R − x2
2
−R −R
By simply changing the limits of integration, we get a simple formula for the area of any spherical
cap of height h. Indeed, if we integrate not from −R to R but instead from R − h to R, the area we get is
A = 2πRh. Which is kind of odd, when you think about it!
What it is really saying is the surface area is increasing with respect to the height by the circumference.
40
18 Lecture
Outline:
1. 6.5 Work and Energy
Great quote from the textbook:
For those who want some proof that physicists are human, the proof is in the idiocy of all the different units
which they use for measuring energy. –Richard Feynman, The Character of Physical Law
Emptying out a tank. A spherical tank of radius 5 m is filled with water. Calculate the work performed
in pumping out the water through a spout of height 1 m at the top.
Note: the density of water is 1 g/cm3 = 1000 kg/m3 .
Let’s
p put the origin at the center of the tank. We divide up the tank into circular cross sections of radius
52 − y 2 and vanishing vertical width dy, for −5 ≤ y ≤ 5. Hence the volume is π(25 − y 2 )dy (m3 ). Very
loosely, let us think about the force required to move a volume of the water as how much water there is
(volume) times the density of the water times the force we are fighting (gravity). The force required to lift
this volume of water is then
41
The weight of this particular cross section of water will not change. The distance it has to travel is 6 − y
(the distance to the top of the spout). So the work done on the cross section is 9800π(25 − y 2 )(6 − y)dy J.
Therefore the total work done is
Z 5
9800π(25 − y 2 ) (6 − y) dy = 9.8 × 106 π J.
−5 | {z } | {z }
force per section distance
Building a pyramid. The Great Pyramid of Giza in Egypt is 146 m high and has a square base of side
230 m. The density of the stone is estimated at 2000 kg/m3 . Find the work required to build the pyramid.
Again, we find the work needed to lift each cross section into place. Put the origin at the center of the base.
At height y, the square cross section has length
230
x= (146 − y).
146
2
So the volume of the cross section with vertical width dy is 230 2
1462 (146 − y) dy. The force needed to lift it
2
230 2
is therefore 9.8 × 2000 × 1462 (146 − y) dy (acceleration times density times volume). It needs to travel a
2
distance of y. So the work performed on the cross section is 19600 × 230 2
1462 (146 − y) y dy. The total work is
42
19 Lecture
Outline:
1. 9.1 Differential Equations, Part I
where a0 (x), a1 (x), . . . , an (x), b(x) are functions of the independent variable x and y, y 0 , y 00 , . . . , y (n) are the
unknown function y and its derivatives. This is analogous to a linear equation in n + 1 unknowns. Most
differential equations are nonlinear.
The order of a differential equation is the number of higher derivatives appearing in it. So the order of
y 00 + y 0 − 2y = 0 is 2, while the order of y 0 = y is 1. Most differential equations that are useful in applications
tend to be just first or second order, but not always.
Separable equations
We already know how to solve the simplest kind of differential equation, y 0 = f (x). A slightly less simple
kind looks like
y 0 = f (x)g(y).
This kind is called separable, because we can separate variables. To do this, write y 0 as dy/dx. Then
move everything with y in it to the left side, and everything with x in it to the right side. We get
dy
= f (x)dx.
g(y)
The next step is to integrate. If we’re lucky, we’ll be able to find a formula for y that looks something like
In this case we’ve found the general solution to the separable equation.
dy
Example. Let’s find the general solution of y dx = x. In fact, it’s almost already separated for us; just
y2 x2
multiply by dx to get y dy = x dx. Now integrate to get 2 = 2 + C or just y 2 = x2 + C (remember C
43
√
is any constant, and multiplying by 2 doesn’t change that fact). So y = ± x2 + C is the general solution
(note the plus and minus sign). Note that x2 + C must be non-negative in order for this to make sense. If
C is negative, this will put a restriction on the domain of y.
Remark: One needs to be very careful when solving a differential equation where either the logarithmic or
exponential equations appear at any step of the work as is seen in the next two examples.
Example. Let’s find the general solution of y 0 = ex+y . In fact this is separable because ex+y = ex ey . We
separate variables to get e−y dy = ex dx. Integrate to get −e−y = ex + C, so e−y = C − ex (again, C is
any constant). Thus −y = ln(C − ex ) which means y = − ln(C − ex ) is the general solution. Note that
this solution only exists on the interval where ex < C, since you can only take the logarithm of a positive
number; so in fact not all constants will give a solution, and even when a solution exists its domain isn’t the
whole number line!
Next, we take into account the initial value. We must have y(0) = 3. But then, y(0) = A. That means
2
A = 3. So we deduce y = 3e−t /2 .
44
20 Lecture
Outline:
1. 9.1 Differential Equations, Part II (A variety of applications)
P 0 (t) = kP (t).
The general solution of this differential equation is P (t) = Aekt , and since P (0) = 1000, we easily conclude
that A = 1000. Furthermore, as P (1) = 1500, we have 1500 = 1000ek , so that we can see k = ln(1.5). Thus
we conclude that P (t) = 1000eln(1.5)t .
Example. A patient is administered 400 mg of penicillin, and after 50 minutes, 300 mg remain in her
bloodstream. Let A(t) represent the amount of penicillin (in mg) in her bloodstream t minutes after the
45
drug was administered. Assume that the drug is leaving her bloodstream at a rate proportional to the
amount in her bloodstream. Determine A(t) and the half-life of the resulting exponential decay.
Since the rate of change, A0 (t), is proportional to A(t), we have the differential equation
A0 (t) = kA(t).
The general solution of this differential equation is A(t) = A0 ekt , and since A(0) = 400, we easily conclude
that A0 = 400. Furthermore, as A(50) = 300, we have 300 = 400e50k , so that we can see k = ln(0.75)/50.
Thus we conclude that A(t) = 400et ln(0.75)/50 and the half-life is given by ln(0.5)/(ln(0.75)/50) ≈ 120
minutes, that is, it will take 120 minutes for half the medicine to leave her bloodstream.
F = −mg − kv.
But F = ma = mv 0 , so mv 0 = −mg − kv or
k k mg
v0 = − v − g = − (v + ).
m m k
The general solution is v(t) = − mg k + Ae
−tk/m
. In the long run, your velocity will be − mg
k rather than
increase indefinitely; this is called terminal velocity. For more on this, see Homework 8, Exercise 66.
Example. Let’s say your mass is 80 kg and the air resistance constant is k = 8 kg/s. The terminal velocity
is then − 80×9.8
8 = −98 m/s, which means 98 m/s toward the ground. (This is very fast!!) To find your speed
30 seconds after you jump from the plane, note that your initial velocity is 0, so 0 = −98 + A i.e. A = 98.
So at t = 30 seconds we have v(30) = −98 + 98e−30·8/80 = −98 + 98e−3 ≈ −93.1 m/s. Thus your speed
increases quite quickly, but afterward it tapers off very quickly as well.
20.6 Annuities
An annuity is an investment which gains interest while money is also withdrawn. The initial investment P0
is called the principal. After time t the investment has grown (or shrunk) to P (t), satisfying the differential
46
equation
N
P 0 = rP − N = r P − ,
r
where r is the interest rate (usually given as a percentage per unit time) and N is the withdrawal rate (given
as an amount of money per unit time). The general solution is P (t) = Nr + Aert . This suggests exponential
growth, but everything depends on the sign of A. If A > 0, we get endless growth, but if A < 0, we get total
disaster!
To see whether A > 0 or A < 0, we compare Nr to the principal. Indeed, P0 = P (0) = Nr + A, so A = P0 − Nr .
If P0 > Nr , then the investment grows forever. If not, we will quickly lose all our money! In other words,
do not withdraw too quickly. The rule we must follow is N < P0 r, meaning that the principal times the
interest rate determines how much we can withdraw.
47
21 Lecture
Outline:
1. 9.4 The Logistic Equation
A dy
= k dt.
y(A − y)
Thus b = a = 1. We get
Z
|y|
Z
A dy 1 1
= + dy = ln(|y|) − ln(|A − y|) + C = ln + C.
y(A − y) y A−y |A − y|
It follows that
|y| y
ln = kt + C ⇒ = Cekt ,
|A − y| A−y
where C always means some undetermined constant, but not necessarily the same one in each equation. We
solve for y:
ACekt AC
y = (A − y)Cekt ⇒ (1 + Cekt )y = ACekt ⇒ y = = .
1 + Cekt C + e−kt
Note: This is different from the solution given in the book:
A
y= .
1 − e−kt /B
However, the two are really not different if C 6= 0, since we can set B = −C and get the same formula.
48
21.3 Stable and unstable equilibrium
We can see that the solution has a limit as t → ∞. In fact,
AC AC
lim = = A.
t→∞ C + e−kt C
So as long as y0 6= 0, we know that y goes to A in the long run. This is why we call A a stable equilibrium.
On the other hand, 0 is an unstable equilibrium because any solution that begins at any other point, no
matter how close to 0, will quickly move away from 0.
This immediately implies that if the solution is ever equal to 0 or A, then the solution is the constant
solution y = 0 or y = A (i.e. it is always 0 or A).
1000 1 ln(9)
= 500 ⇒ 2 = 1 + 9e−0.4t ⇒ = e−0.4t ⇒ − ln(9) = −0.4t ⇒ t = ≈ 5.5 years.
1 + 9e−0.4t 9 0.4
49
Exam 2 Review
Do not forget that integration techniques from the first test can still show up on this test!
The second exam will cover applications of integration:
1 2 2
8 x2
Z Z
8 7 7 1
7xdx + − x dx = + − − = + [−4 − 2] − −8 − = 6.
0 1 x2 2 x 2 1 2 2
This method is used to find the volume of a given shape (pyramid, sphere, cone, etc.) where cross sections
can be easily understood and have area A(y). Remember that often similar triangles are needed to find a
formula for the area.
50
Shell Method [Section 6.4]
The method of cylindrical shells is different from earlier methods, because we look at shells whose height
is parallel to the central axis. The result is that we consider the surface areas of the different shells and
add them up. Notice that each of the surface areas can be found by “cutting” and flattening them to see
they are simply rectangles with width given by the circumference of the cylinder considered, 2πx, and height
given by the function, f (x). This gives
Z b Z b
V = 2π (radius)(height of shell)dx = 2π xf (x) dx.
a a
The surface area of a surface produced by revolving a curve around the x-axis is given by
Z b p
SA = 2π f (x) 1 + (f 0 (x))2 dx.
a
51
22 Lecture
Outline:
Z
sin x2 dx, which we still cannot compute!
1. 10.1 Sequences, Recall: We wanted to find
22.1 Sequences
A sequence, often denoted {an }, is an infinite set of numbers placed in order:
a1 , a2 , a3 , . . .
2, 4, 8, 16, 32, . . .
The following is one of the most useful tools we have to quickly find the limit of a sequence.
Using what you know about functions. If we can find a formula for an , then finding the limit lim an
n→∞
n + ln n
is the same as finding lim f (x) for some function f . For example, to find lim , we can just use,
x→∞ n→∞ n2
x + ln x
say, L’Hôpital’s rule on lim to see the answer is zero. (Use L’Hôpital’s rule for sequences of
x→∞ x2
the form 0 · ∞ and always rewrite as a function of x)
52
Application. You may have learned that 1/9 = .1111111 . . .. What this means is that 1/9 is the limit of
a sequence that converges. Consider the sequence
1 11 111 1111
.1, .11, .111, .1111, . . . or , , , ,...
10 100 1000 10000
This can be written
1 + 10 + · + 10n−1
an = .
10n
We need a better formula. Notice that
10n − 1
(10−1)(1+10+·+10n−1 ) = 10+100+·+10n −(1+10+·+10n−1 ) = 10n −1 ⇒ 1+10+·+10n−1 = .
9
So
10n − 1 1 − 10−n
an = = .
9 · 10n 9
1 − 10−x 1
Since we know that lim = , it follows that an → 1/9.
x→∞ 9 9
Geometric sequences. If r ≥ 0, and c > 0, we call an = crn a geometric sequence. It is exactly like an
exponential function, except it is a sequence.
0 0≤r<1
lim crn = c r=1
n→∞
∞ r>1
1 π n π
For example, n → 0, 2(1)n → 2, and diverges since > 1.
2 3 3
Squeeze Theorem If bn ≤ an ≤ cn and bn and cn both have the same limit, then an has the same limit.
n
1
For example, intuitively, one would think that the sequence defined by an = − , d > 1 should converge
d
to 0, but how would you show it? We cannot use the function method as the negative would cause roots
of negative numbers (thus complex numbers) to appear! This is not a geometric sequence as r is negative.
Applying the squeeze theorem is our best choice. Notice that since the sequence alternates signs, the limit
(if it exists) will be somewhere between the sequences of all positive or negative signs, that is, for all n, an
agrees with either the positive or negative sequence’s nth term,
n x
1 1 1 1 1 1
− n ≤ − ≤ n ⇒ lim − x ≤ lim − ≤ lim x .
d d d x→∞ d x→∞ d x→∞ d
1
Now we can apply that lim = 0 on both sides (just an exponential function!) to conclude that an → 0.
x→∞ dx
Bounded and monotonic sequences. To say a sequence is bounded above or below just means it never
gets larger (or smaller) than a certain number. A monotonic sequence is one that either never decreases or
never increases.
1
For example, an = n is bounded and monotonic. It never gets below 0 nor above 1, and it never increases.
Every bounded monotonic sequence converges. To see this for a non-decreasing sequence, just take the
smallest possible upper bound; that is the limit. For a non-increasing sequence just take the largest possible
lower bound.
√ √
Example.
√ √an = n + 1 − n is0 decreasing and bounded below. To see this, consider the function f (x) =
x + 1 − x and notice that f (x) = (x + 1)−1/2 − x−1/2 < 0 for all positive x, hence the function, and
the sequence, is decreasing because the derivative
√ is
√ negative. In fact, its lower bound is zero, which we see
by using conjugates to rewrite an = 1/( n + 1 + n) and then considering the limit of the corresponding
function.
53
23 Lecture
Outline:
1. 10.2 Summing an Infinite Series; Part I
23.1 Series
∞
X n
X
A series is simply an infinite sum: ak = lim ak . You can think of them as having been obtained by
n→∞
k=1 k=1
adding up all of the terms in a sequence of numbers. For example:
1 1 1
1− + − + ···
2 3 4
is a series. We could write it as
∞
X 1
ak , ak = (−1)k−1 .
k
k=1
The question then becomes how do we make sense of adding infinitely many terms? The idea is to examine
finite sums of terms at the beginning of the series and see how they behave. A series is said to converge to
Xn
a number L if for any > 0, there exists an N such that if n ≥ N then ak − L ≤ .
k=1
Note that whether or not the series converges might depend on how we label the terms! For instance,
1 − 1 + 1 − 1 + . . . alternates between one and zero if we start adding from left to right so it will not converge,
but if we group every two terms, it is identically 0 and hence converges to 0. Therefore, be careful to not
rearrange terms (add the first, then second, etc.) as grouping may change the series itself!
We can think of a series in a couple of different way: either as an improper integral or as a sequence of partial
sums.
54
23.3 Linearity of Infinite Series
The following theorem shows that infinite series may be added or subtracted like ordinary sums, provided
that the series converge.
X X X X
Theorem (Linearity of Infinite Series) If ak and bk both converge, then (ak ± bk ) and cak
converge, where c is any constant. Furthermore
X X X
(ak ± bk ) = ak ± bk ,
X X
cak = c ak .
This is really helpful as it allows us to possibly rewrite a sum considered into sums that we already understand.
Remark. The fact that the individual series must converge is reminiscent of linearity of limits of functions.
55
24 Lecture
Outline:
1. 10.2 Summing an Infinite Series; Part II
c(1 − rn+1 )
c(1 + r + r2 + · · · + rn ) = .
1−r
Of course if r = 1 then we get c(1 + r + r2 + · · · + rn ) = c(n + 1).
Now we let n → ∞. If |r| < 1 we get
∞
X c(1 − rn+1 ) c
crk = lim = .
n→∞ 1−r 1−r
k=0
If |r| > 1 we get the same limit, but it diverges (goes to infinity) since the numerator would grow without
bound. If r = ±1 the series also goes to infinity since it would grow like n.
If you start further out than at k = 0, then we can adjust by factoring:
∞ ∞
X X crm
crk = rm crk = .
1−r
k=m k=0
Example. Suppose I agree to pay you a dollar today, fifty cents tomorrow, and every day for the rest of
eternity I pay you half of what I paid you the day before. How much money will you earn?
Answer: two dollars. To see this, just recognize this as a geometric series (the same as Zeno’s paradox
actually!):
∞
X 1 1
= 1 = 2.
2k 1 − 2
k=0
Application: repeating decimals. Let us once again consider 1/9 = .111111... What does this repeating
decimal mean as a sum? It means
∞
X 1
.111111... = .
10k
k=1
When we compute the sum of this geometric series, we get 1/9 as expected. The same applies to any
repeating decimal.
56
Cantor’s disappearing table. Imagine a table 2 meters long. Let’s remove a quarter of it from the middle.
Each of the two remaining pieces is now less than 1 meter long (half the original). Now from each piece let’s
remove 1/16th, but remember there are two pieces so we really remove 1/8th of the remaining total length!
Each of the remaining four pieces is now less than 1/2 meter long (one fourth the original). Keep going in
like manner:
Step Number of Pieces left Size of each piece ≤ How much taken out
1 1 2 1/4
2 2 1 1/8
3 4 1/2 1/16
4 8 1/4 1/32
.. .. .. ..
. . . .
n 2n−1 2(1/2)n−1 1/2n .
By the end, the size of each piece goes to zero, since 2(1/2)n−1 → 0. But how much of the table was taken
out in total? For that we find the sum:
1 ∞
1 1 1 X 1
4 1
+ + + ··· = = 1 = .
4 8 16 2k 1 − 2
2
k=2
So only half of the table is gone! But there is not a single piece left with nonzero length! Where did it all
go.......?
So the terms must go to zero. Therefore, if an doesn’t go to zero, it follows that the sum diverges.
P∞
In some cases this is really obvious. For example, the geometric series k=0 2k diverges because all the
terms are bigger than 1, so summing them all up clearly gives infinity. In other cases it’s somewhat less
obvious.
Example. The series
∞
1 2 3 4 X k
− + − + ··· = (−1)k−1
2 3 4 5 k+1
k=1
diverges, because lim an does not exist, hence the terms do not go to zero.
n→∞
On the other hand, if we group every two terms and then take the sum, the series does converge! The
problem here comes from the oscillation.
P∞
The nth term divergence test is not very powerful. Consider the series k=1 √1k . Then the nth term
goes to zero, but the series diverges, so the test was not very helpful. To see that the series diverges, look at
partial sums:
n
X 1 1 1 1 1 √
Sn = √ = √ + √ + · · · + √ ≥ n · √ = n → ∞.
k 1 2 n n
k=1
57
25 Lecture
Outline:
1. 10.3 Convergence of Series with Positive Terms; Part I
P∞ 1
Example. Show that k=1 (k2 +1) 1/3 diverges. To see this, we note that
1 1
(k 2 + 1)1/3 ≤ (k 2 + 2k + 1)1/3 = (k + 1)2/3 ⇒ ≥ .
(k 2 + 1)1/3 (k + 1)2/3
P∞ 1
P∞ 1
P∞ 1
But k=1 (k+1)2/3 = j=2 j 2/3 diverges by the p-series test. So by comparison, k=1 (k2 +1) 1/3 diverges.
Change of variables. The trick I just used is often quite useful: you can start Pthe series from P
any place
∞ 1 ∞ 1
you want, and it may help you in your calculations. For example, to see that k=1 (k+1) 2/3 = j=2 j 2/3
just let j = k + 1 and notice that we start counting j at j = 2. However, the only kind of change of variables
that will work is j = k + m, where m is some integer. (It’s not like integration...)
58
26 Lecture
Outline:
1. 10.3 Convergence of Series with Positive Terms; Part II
n2 1 an 1
an = , bn = 2 ⇒ = → 1, n → ∞.
n4 − n − 1 n bn 1 − 1/n3 − 1/n4
k2
P∞ P∞
So the limit comparison test applies. Since k=1 k12 converges, so does k=2 k4 −k−1 .
P∞
Example. Show that k=3 √k12 +4 diverges. When k is large √k12 +4 is approximately k1 . Indeed,
1 1 an n 1
an = √ , bn = ⇒ =√ =p → 1.
n2 +4 n bn 2
n +4 1 + 4/n2
P∞ 1
P∞
Now since diverges, so does √ 1 .
k=1 k k=3 k2 +4
Making sense of limit comparisons. When you use this test, you need to look for what’s important in
a sequence of terms. For example, when we look at
n2
,
n4 − n − 1
we need to see that what’s important is
n2 1
= 2.
n4 n
This gives us the terms we want to compare.
The key is to know which terms dominate as n gets large, just like we did when comparing functions
asymptotically. Here’s a hierarchy starting with the fastest growing:
1. n!
2. epn (p > 0, the bigger p is, the higher up it is)
3. np (p > 0, the bigger p is, the higher up it is)
4. ln n
5. sin n, cos n, constants
59
The strategy: look at the dominant term on the top and bottom of your fraction (if the term is a fraction,
which it probably is). Then just forget the rest.
Example. If you want to compare the term
e2n + n + ln n + en
,
n2 − en
e2n
then you just need −en = −en , because the rest is lower on the hierarchy.
60
27 Lecture
Outline:
1. 10.4 Absolute and Conditional Convergence
27.3 Examples
∞
X (−1)k k 4
1. . This diverges because the terms grow like k, thus do not go to zero but rather to ±∞.
k3 + 1
k=1
∞
X sin((k + 21 )π) P∞ 1
2. 2
. This converges absolutely because k=1 k2 converges.
k
k=1
∞
X (−1)k
3. 1 . This diverges because the terms do not go to zero but rather to ±1.
k=1
1+ k
∞
X (−1)k k n
4. . This converges by the alternating series test since n2 +1 is a sequence of decreasing positive
k2 + 1
k=1 P∞ k
numbers tending to 0. The convergence is only conditional, however; the series k=1 k2 +1 diverges by
the limit comparison test with the harmonic series which diverges.
61
28 Lecture
Outline:
1. 10.5 Ratio and Root Tests and Strategies for Choosing Tests; Part I
2. Ratio Test
3. Root Test
an+1 2n+1 n! 2
lim = lim = lim = 0.
n→∞ an n→∞ (n + 1)! 2n n→∞ n + 1
62
28.2 Root test
Another way to see if a series is close to a convergent geometric series is to take the nth root of an .
Theorem 5 (Root test). Let r = limn→∞ |an |1/n .
P
1. If r < 1, then ak converges absolutely.
P
2. If r > 1, then ak diverges.
P
3. If r = 1, then ak may or may not converge.
P∞ k k n 1
Example. k=1 2k+3 converges because |an |1/n = 2n+3 → 2 < 1.
P∞ 2
1 −k
Example. Here’s a pretty cool example: k=1 1+ k converges because
−n
1
|an |1/n = 1+ → e−1 < 1.
n
63
29 Lecture
Outline:
1. 10.5 Ratio and Root Tests and Strategies for Choosing Tests; Part II
2. So many tests, but how to choose?
2. Positive Series. If all terms in the series are positive, we have the following tests:
(a) The Direct Comparison Test.
Consider whether dropping terms in the numerator or denominator gives a series that we already know
convergence or divergence for. If a large series converges, or a smaller series diverges, then the original series
does the same.
∞ ∞
X 1 X 1
For example, √ converges by comparison with the convergent p-series .
2
k + k k2
k=1 k=1
∞
X 1
However, if we try the same strategy on √ , we cannot conclude anything from this test. Maybe
k=2
k2
− k
the Limit Comparison Test will be better suited.
(b) The Limit Comparison Test.
Consider the dominant term in the numerator and denominator, and compare the original series to the ratio
of these terms.
∞
X 1 √ 1
For example, look again at √ . Since k 2 grows faster than k, we compare with 2 to conclude
2
k − k k
k=2
the series converges as
1√
k2 − k
lim 1 =1
k→∞
k2
∞
X 1
and is once again a convergent p-series.
k2
k=1
64
∞
X 3k
For example, for , applying the Ratio Test yields
k!
k=1
3n+1
(n+1)! 3
lim 3n = lim = 0 < 1,
n→∞
n!
n→∞ n+1
1/n
2n
2
lim = lim = 0 < 1,
n→∞ n2n n→∞ n2
Helpful Table
The following is a table that describes the different series tests we have discussed, convergence and divergence
criteria, usefulness, and are given in a general good order to look at them if you are not sure what to apply.
65
Test Series Converges if Diverges if Useful for
Geometric Series Sum can start at k =
∞ m
X |r| ≥ 1 m. Converges to cr
crk |r| < 1 to
c 1−r
∞
X ∞
X
bk converges bk diverges
k=1 k=1
66
30 Lecture
Outline:
1. 10.6 Power Series; Part I
where x is a variable.
Now, a regular polynomial is nice and continuous (and infinitely differentiable) everywhere. But a power series might
not even converge. How do we know it’s even defined?
Example. Consider the power series
∞
X
1 + x + x2 + x3 + x4 + · · · = xk .
k=0
which converges when |x| < 1 but diverges when |x| ≥ 1. (The Ratio Test does not apply when |x| = 1, so to check
the case when x = 1, we just get limn→∞ n = ∞. Note that when x = −1 we get oscillating divergence rather than
divergence to infinity.)
In fact, when |x| < 1 we have
∞
X 1
xk = .
1−x
k=0
This is our first hint that a power series can represent some well-known function–which is not a polynomial!
Radius of convergence. In the last example, the series converged for |x| < 1 but diverged for |x| ≥ 1. The number
1 is called the radius of convergence. It turns out every power series has a radius of convergence, which could be
infinity or even zero (so the power series would only converge at one point).
Example. Find the radius of convergence of the power series
∞
x2 x3 x4 X xk
1+x+ + + + ··· = .
2 6 24 k!
k=0
no matter what x is! Therefore the series always converges. The radius of convergence is ∞.
By the way, it turns out that
∞
X xk
= ex , for all x,
k!
k=0
another well-known function.
Example. Find the radius of convergence of the power series
∞
X
1 + 2x + 3x2 + 4x3 + 5x4 + · · · = (k + 1)xk .
k=0
67
Again, use the ratio test:
(n + 2)xn+1 (n + 2)|x|
r = lim = lim = |x|.
n→∞ (n + 1)xn n→∞ (n + 1)
If |x| < 1 the series converges, if |x| ≥ 1 the series diverges. The radius of convergence is 1.
Different center.
If a power series has the form
∞
X
a0 + a1 x + a2 x2 + a3 x3 + · · · = ak xk
k=0
then it is centered at zero. When we plug in x = 0, we just get one term. So the series always converges there
(but possibly nowhere else!).
If we want a series centered around another point, we just shift:
∞
X
a0 + a1 (x − c) + a2 (x − c)2 + a3 (x − c)3 + · · · = ak (x − c)k .
k=0
Now c is the center. This will not change the radius of convergence; it will only shift where the series converges.
Endpoints. If x is within the radius of convergence, then the series converges, and if it’s outside then the series
diverges, but what about the endpoints? You have to check those by plugging in each value for x and considering
both series separately. Don’t worry, it’s only two points!
Example. Find where the series ∞ k k
P
k=0 2 (x − 3) converges. Use the ratio test:
2n+1 |x − 3|n+1
r = lim = 2|x − 3|.
n→∞ 2n |x − 3|n
1
So we get convergence of |x − 3| < 2
and divergence if |x − 3| > 12 . The radius of convergence is still 1/2, but centered
at x = 3.
What
P∞ about the endpoints?
P∞ They are x = 3 ± 1/2, that is, 7/2P and 5/2. If we lookPat x = 7/2 we get the series
k k ∞ k k ∞ k
k=0 2 (1/2) P = k=0 1 = ∞. If we look at x = 5/2 we get k=0 2 (−1/2) = k=0 (−1) which diverges by
∞ k k
oscillating. So k=0 2 (x − 3) converges when 5/2 < x < 7/2 but diverges everywhere else. We also sometimes say
it’s interval of convergence is (5/2, 7/2) since this is more specific than the radius of convergence by specifying
the behavior at the end points.
Remark. Sometimes the endpoints both converge (closed interval of convergence [a, b]), both diverge (open interval
of convergence (a, b)), or have different behavior at each one (half-open interval of convergence (a, b] or [a, b)). It is
often difficult to intuitively see what will happen, so just check each one!
68
31 Lecture
Outline:
1. 10.6 Power Series; Part II
Example. Change x to −x2 . Since | − x2 | < 1 is the same as |x| < 1, we get
∞ ∞
1 X X
= (−x2 )k = (−1)k x2k , |x| < 1.
1 + x2
k=0 k=0
1
Example. Expand in a power series centered at c = 0. We have
2 + 3x
1 1 1 1 1
= = ,
2 + 3x 2 1 + (3/2)x 2 1 − (−3/2)x
so we can simply use the substitution x 7→ (−3/2)x and multiply the entire series by 1/2 to find
∞
1 1X
= (−1)k (3/2)k xk , |x| < 2/3.
2 + 3x 2
k=0
Term by term integration and differentiation. If a power series centered at c converges in a certain radius R,
then you can take its derivative by differentiating each term (just like with polynomials) for x ∈ (c − R, c + R). The
same holds for integration. The radius of convergence remains the same.
1 1
Example. How would we find a power series for (1−x)2
? Differentiating 1−x
we get
∞
1 d 1 d X
= = (1 + x + x2 + x3 + x4 + · · · ) = 1 + 2x + 3x2 + 4x3 + · · · = (k + 1)xk , |x| < 1.
(1 − x)2 dx 1−x dx
k=0
69
32 Lecture
Outline:
1. 10.7 Taylor Polynomials
2. 10.8 Taylor Series; Part I
Let’s assume the series converges. We want to solve for a0 , a1 , a2 , a3 , . . . in terms of f and its derivatives.
Plug in x = c, get f (c) = a0 .
Now take the derivative:
f 0 (x) = a1 + 2a2 (x − c) + 3a3 (x − c)2 + 4a4 (x − c)3 + · · · .
So f 0 (c) = a1 .
Take the second derivative:
f 00 (x) = 2a2 + 6a3 (x − c) + 12a4 (x − c)2 + 20a5 (x − c)3 + · · · .
So f 00 (c) = 2a2 .
Take the third derivative:
f 000 (x) = 6a3 + 24a4 (x − c) + 60a5 (x − c)2 + 6 · 5 · 4a6 (x − c)3 + · · · .
So f 000 (c) = 6a3 .
We continue the pattern to get
f (n) (c)
f (n) (c) = n!an ⇒ an = .
n!
In other words, the Taylor series of f centered at c is
∞
X f (k) (c)
(x − c)k .
k!
k=0
If the Taylor series converges with radius r > 0, we say f is analytic on the interval (c − r, c + r). Note that the
Taylor series must converge to f (x) if it converges at all!
If the center is c = 0, sometimes we call the Taylor series a Maclaurin series.
There are lots of theorems on how good these approximations are including error bounds, remainders, and Taylor’s
theorem, however, we will not go into details here. Similar to series, a Maclaurin polynomial is simply a Taylor
polynomial with center c = 0.
70
32.3 Examples.
To find a Taylor series (or Taylor polynomial) you need to compute lots of derivatives. Sometimes that is not a
problem.
Take ex . All of its derivatives are also ex . If we center at c, the series is
∞
X ec
ex = (x − c)k .
k!
k=0
By the ratio test, this converges everywhere. So ex is analytic on the whole real line. The usual center is just c = 0
so we can write
∞
X xk
ex = , x ∈ (−∞, ∞),
k!
k=0
Note that it starts at k = 1, not zero! What is the radius of convergence? Well, it can’t possibly be more than
only valid for x ∈ (0, 2). In
1, because ln(0) does not exist. By the ratio test, we find out it is exactly 1, so is P
1
fact, we have seen this series before, when we integrated the geometric series 1−x = ∞ k
k=0 x term by term to get
P∞ xk
− ln(1 − x) = k=1 k .
Taylor Polynomial Example. As an example for Taylor polynomials, let’s find T4 (x) centered at c = 2 for
f (x) = ln x. This is easy since we already have the derivatives we need above, but if not we would simply need to
find the first four derivatives. We find
f 00 (2) f 000 (2) f (4) (2)
T4 (x) = f (2) + f 0 (2)(x − 2) + (x − 2)2 + (x − 2)3 + (x − 2)4
2 3! 4!
1 1 1 1
= ln 2 + (x − 2) − (x − 2)2 + (x − 2)3 − (x − 2)4 .
2 8 24 64
71
33 Lecture
Outline:
1. 10.8 Taylor Series; Part II
Example. Here’s a warning against forgetting things you know. Let’s try to find the Taylor series for ln(x2 ) centered
at x = 1. We get
∞
X (1 − x2 )k
ln(x2 ) = − , x ∈ (0, 2).
k
k=1
OK but wait a minute. That’s not actually a power series; we would have to multiply out (1 − x2 )k and regroup
terms. That looks hard!
But actually we know what we should get. The answer is that ln(x2 ) = 2 ln x. So
∞
X (1 − x)k
ln(x2 ) = 2 ln x = −2 , x ∈ (0, 2).
k
k=1
33.2 Application
Limits. I mentioned before that using series can sometimes simplify limits or asymptotics. Here’s an example limit
you might be tempted to calculate using L’Hôpital’s Rule:
x − sin x
lim .
x→0 x3 cos x
But you would need to differentiate twice, and that would get complicated. Instead, let’s use Taylor series to see that
3 5 3 5 2
x − sin x x − (x − x3! + x5! − · · · ) x
3!
− x5! + · · · 1
3!
− x5! + · · ·
3
= 2 4 = 5 7 = 2 4 .
x cos x x3 (1 − x2! + x4! + · · · ) x3 − x2! + x4! + · · · 1 − x2! + x4! + · · ·
Now we can take x → 0: 2
1
x − sin x 3!
− x5! + · · · 1 1
lim = lim 2 4 = = .
x→0 x3 cos x x→0 1 − x + x + · · · 3! 6
2! 4!
Integrals. Let’s return to the integral of sin x2 which was introduced in the first lecture of the course. By replacing
x by x2 in our power series formula for sin x we obtain
∞
X x4k+2
sin x2 = (−1)k for all x.
(2k + 1)!
k=0
Certain Values of Derivatives. We can also use the power series of a function to quickly find the values of
derivatives at the center of the series. For example, let f (x) = sin x2 and find f (10) (0). By using the Taylor series
formula or taking 10 derivatives of the series for sin x2 we find f (10) (0) = 10!/5! = 30240.
Remark: The series here actually tells us that the only nonzero derivatives of sin x2 are 4k + 2, k = 0, 1, 2, . . .
72
Z 1
Error Bound. We can also use alternating series to easily estimate definite integrals. For example, find sin x2 dx
0
within an error of 1/10000. From what we had before,
∞ 1 ∞
1
x4k+3 (−1)k
Z X X
sin x2 dx = (−1)k = .
0 (2k + 1)!(4k + 3) (2k + 1)!(4k + 3)
k=0 0 k=0
To easily estimate the integral, we simply need to find the first N such that the next term, aN +1 < 1/10000. N = 0, 1
do not work, but N = 2 does, so the integral is about 1/3 − 1/42 + 1/1320 = 2867/9240 (within 1/10000 of an error).
Special functions. Let us end our discussion on Taylor series by reminding ourselves about something else mentioned
in the first lecture, the so-called special functions. These are functions that appear in a wide range of physics and
engineering applications (such as Bessel, hypergeometric, and elliptic functions which are particularly interesting and
used to study pendulums), which will be discussed in most Differential Equations courses.
For example, when studying the vibrations of a drum, one is led to the following second order equation:
d2 y dy
x2 +x + (x2 − α2 )y = 0,
dx2 dx
where α is a nonnegative number. This equation is called the Bessel equation and its canonical solutions are the
so-called Bessel functions. The easiest way to describe a Bessel function is as a power series:
∞
X (−1)n x 2n+α
Jα (x) = .
n=0
n! Γ(n + α + 1) 2
Here the the expression Γ(n + α + 1) is a value of the Gamma function defined as an improper integrals. In the
special case when α = 0, the value Γ(n + α + 1) is equal to Γ(n + 1) = n! and it follows that
x2 x4 x6
J0 (x) = 1 − + − + ··· .
4 64 2304
This looks very similar to the expansion for cos x, which is no coincidence. Bessel functions are oscillatory like sine
and cosine, however they decay as x grows large. To see this better, here is what the graph of J0 (x) (as well as J1 (x)
and J2 (x)) looks like:
y
f (x) = J0 (x)
J1 (x)
20 x
J2 (x)
-1
73
34 Lecture
Outline:
1. Complex Numbers
f (z) = a0 + a1 z + a2 z 2 + · · · + an z n .
which is exactly how we would measure the distance between two points in the regular plane (Cartesian coordinates)
using Pythagorean’s Theorem. This allows one to consider a series of complex numbers and its convergence. In this
way, the term radius of convergence now makes sense as it truly is looking at some circle in the complex plane in
which your series converges.
In particular, the series for the exponential function, sine function, and cosine function can immediately be extended
to the entire complex plane by simply replacing the real variable x with the complex variable z.
Proof. The key to the proof is noticing the pattern of powers of the complex unit i. Note
and repeats from there. Now it remains to use the substitution z = iz in the series for ez , then group real and
imaginary parts. We find
74
Euler’s Formula is particularly useful in electrical engineering studying periodic signals.
If we substitute z = π into Euler’s Formula, we arrive at what is known as Euler’s Identity, which is probably
already familiar to many of you,
eiπ = cos π + i sin π = −1.
Rearranging yields
eiπ + 1 = 0.
While this is a useful identity for many reasons, if we take a step back it is quite an amazing equation as it relates
5 of the most important numbers in mathematics and its applications. Namely, and in no particular order, it relates
the mathematical constants 0, 1, e, π, and i. That is truly amazing if you really think about it!
34.3 Applications
If Euler’s Identity did not impress you, maybe seeing how easy trigonometric identities become using Euler’s Formula
might! It is fairly easy (and an extra credit problem) to show using Euler’s Formula that
75
Exam 3 Review
The third exam will cover sequences, series, and complex numbers:
a1 , a2 , a3 , . . .
Be able to find a formula for the nth term of a sequence as well as the limit of a sequence by considering the behavior
of an associated function (using L’Hôpital’s Rule if needed).
2. Positive Series. If all terms in the series are positive, we have the following tests:
(a) The Direct Comparison Test.
Consider whether dropping terms in the numerator or denominator gives a series that we already know convergence
or divergence for. If a large series converges, or a smaller series diverges, then the original series does the same.
∞ ∞
X 1 X 1
For example, √ converges by comparison with the convergent p-series 2
.
2
k + k k
k=1 k=1
∞
X 1
However, if we try the same strategy on √ , we cannot conclude anything from this test. Maybe the Limit
k=2
k2 − k
Comparison Test will be better suited.
(b) The Limit Comparison Test.
Consider the dominant term in the numerator and denominator, and compare the original series to the ratio of these
terms.
∞
X 1 √ 1
For example, look again at √ . Since k2 grows faster than k, we compare with 2 to conclude the series
k 2 − k k
k=2
converges as
1√
k2 − k
lim 1 =1
k→∞
k2
∞
X 1
and is once again a convergent p-series.
k2
k=1
76
∞
X 3k
For example, for , applying the Ratio Test yields
k!
k=1
3n+1
(n+1)! 3
lim 3n = lim = 0 < 1,
n→∞
n!
n→∞ n+1
where x is a variable. Be able to find the interval of convergence for a given power series.
Note that the most useful test for this is often the Ratio Test. Take the limit of the consecutive terms and then refer
to the Ratio Test’s criteria for convergence to understand where the series converges. If the limit of the ratio does
not depend on x and converges by the test, then it converges for all x. If there is x dependence left in the ratio, solve
for x in the inequality for convergence to find the radius of convergence. Keep in mind that the endpoints will always
have to be considered separately. Simply plug each in and see if the series (which no longer depends on x!) converges
or not using any test we know.
77
Taylor Series and Complex Numbers [Section 10.8]
The Taylor series of f centered at c is
∞
X f (k) (c)
(x − c)k .
k!
k=0
If the Taylor series converges with radius r > 0, we say f is analytic on the interval (c − r, c + r). Note that the
Taylor series must converge to f (x) if it converges at all!
If the center is c = 0, sometimes we call the Taylor series Maclaurin series.
Be able to find a Taylor series for a given function. Note that this means you need to be able to find a “nice”
formula for the derivatives if possible. If you are given a function that looks complicated, that is, it is a composition
of functions or multiplication of a function by a power of x, remember to use what is known about the “simpler”
function instead of trying to find a formula for the derivatives directly.
3
For example, if you were asked to find the Taylor series for x2 ex centered at zero, there is no reason to take all the
derivatives (which would be really complicated!). We just use the series for ex and plug in x3 in place of x, then
multiply by x2 :
∞ ∞
3 X (x3 )k X x3k+2
x2 ex = x2 = for all x.
k! k!
k=0 k=0
Also be able to use term-by-term differentiation of integration to find a series representation for the derivative or
integral of a function. Recall that we used this technique to find
∞ ∞
(−1)k x4k+3
Z X Z X
sin x2 dx = x4k+2 dx = (−1)k for all x.
(2k + 1)! (2k + 1)!(4k + 3)
k=0 k=0
Be able to use Euler’s Formula to write a complex exponential as the sum of its real and imaginary parts (and vice
versa). This is to say, if given the left-hand side of the above formula for a specific z, be able to rewrite in the form
of the right-hand side and simplify into a + bi, and vice versa.
78
35 Extra Lecture
35.1 Fluid pressure and force
The pressure p at depth h in a fluid of mass density ρ is
p = ρgh,
where g is the acceleration due to gravity. In other words, pressure is proportional to depth. This is one of the major
obstacle’s to deep sea diving!
Pascal’s principle says that the pressure acts perpendicular to any surface. To find the force acting on the surface,
we multiply pressure by area.
Units: pressure is usually measured in pascals (Pa), which are by definition Newtons per square meter (N/m2 ).
Example. Consider a 2 × 2 × 5 m box, whose top and bottom are square, submerged in a pool of water with its top
3 m below the surface. Recall the density of water is 1000 kg/m3 .
1. What is the force exerted on the top? Well, the depth is h = 3 m so the pressure is p = ρgh = 1000(9.8)3 =
29400 Pa. The area is 4 m2 so the force is 4 × 29400 = 117600 N.
2. What is the force exerted on the bottom? Here the depth is h = 8 m so the pressure is 1000(9.8)8 = 78400 Pa.
The are is the same; the force is 4 × 78400 = 313600 N.
3. What is the force exerted on one of the sides? Well, the depth changes from h = 3 to h = 8. At each depth,
a different pressure is exerted. We divide the side into strips of width dh; the length is always 2 m in this
case. So the pressure at each h is p(h) = 1000(9.8)h, the area is 2 dh, and the force is pressure times area or
1000(9.8)h(2)dh = 19600h dh. We integrate this to get the total force:
Z 8
8
19600h dh = 9800h2 3 = 9800(64 − 9) = 539000 N.
F =
3
Inclined surface. Consider a dam inclined at an angle of 45 degrees. We’ll say it has height 200 m and width 500
m. Assume the reservoir is filled to the top of the dam. Find the force exerted on the dam.
Our depth will vary from h = 0 all the way down to h = 200 m. At each depth h, we have a tiny strip 500
m across and the vertical distance from √top to bottom is dh. √ Since the strip is at an incline of 45 degrees, the
width of
√ that strip is not dh√but rather 2dh. The area is 500 2dh. The force exerted on that strip is therefore
ρgh500 2dh = 1000(9.8)500 2hdh. We integrate this to get total force exerted:
√ Z 200 √ 1
F = 490000 2 h dh = 490000 2 (200)2 = 1.39 × 1010 N.
0 2
General principle. At each depth h you know the pressure (p = ρgh). Imagine a strip of vertical width dh. To
get the force exerted on that strip, multiply by its area. To find the area, you need its length as a function of h; you
can call it l(h) or something. Finally, you integrate. So the total force exerted on a surface which extends downward
from depth a to b is Z b
F = ρghl(h)dh.
a
Not a rectangle. If the surface is not a rectangle, you have to do some geometry to see what the area of each strip
will be! For example, let’s say there’s an equilateral triangular plate of side 2 m submerged vertically in a tank of
water, with its top corner touching the surface and its bottom side perfectly horizontal (something must be holding
it in place!).
At each depth h, we need to know the distance l(h) across the equilateral triangle. By similar triangles we know
l(h)
√
h
= total 2height . The total height is 3 by the Pythagorean theorem. So l(h) = √23 h. Therefore
Z 2
2 9800
F = (1000)(9.8)h √ h dh = √ (2)2 = 22632 N.
0 3 3
79
36 Extra Lecture
36.1 Center of Mass and Centroids
Imagine a child of 80 lbs and an older child of 120 lbs on a see-saw. If the fulcrum is exactly in the middle, clearly
the bigger child will sink and the other will rise. Where can I put the fulcrum so that the two are evenly balanced?
Intuitively, we know it should be toward the bigger child. Where, exactly?
Let’s say the see-saw is 10 feet long. We’ll let x be the distance between the fulcrum and the bigger child. By the
principle of Archimedes, we discover that in order to find perfect balance we must have
where 10 − x is the distance from the fulcrum to the smaller child. Solving for x we get 200x = 800 or x = 4. So we
should put the fulcrum 4 feet from the bigger child.
In other words, this is the center of mass. In general, if we have two masses m1 and m2 lined up on the x-axis at
positions x1 and x2 , respectively, then the center of mass x̄ must satisfy
m1 x1 + m2 x2
m1 (x̄ − x1 ) = m2 (x2 − x̄) ⇒ (m1 + m2 )x̄ = m1 x1 + m2 x2 ⇒ x̄ = .
m1 + m2
The numbers m1 x1 , m2 x2 are called moments.
The center of mass is thus a kind of weighted average, much like the way your grade is calculated. It is defined as
the sum of the moments divided by the total mass. If all the masses are equal, then the center of mass is just the
average position, which is called the centroid.
The same formula holds for any number of masses m1 , . . . , mn located at points x1 , . . . , xn on the x-axis:
m1 x1 + · · · + mn xn
x̄ = .
m1 + · · · + mn
Now what if we want to find the center of mass of an object of variable density? We use our integration technique.
Example. Consider a 2 meter rod with linear mass density ρ(x) = 1 + x(2 − x) kg/m, where x is the distance from
one end of the rod in meters. Where is the center of mass?
Intuition: ρ(x) = 2 − (x − 1)2 , so the rod is heaviest in the middle at x = 1, and the density is perfectly symmetrical,
so one would think its center of mass is there in the middle. Let’s show that using calculus.
We break up the rod into an infinite number of pieces, each with length dx, so the mass is ρ(x)dx and the moment
is xρ(x)dx. To get the total mass and the total moment, we integrate each of these:
2 2 2
x2 2x3 x4
Z Z
16 10
moment = xρ(x)dx = (x + 2x2 − x3 )dx = + − =2+ −4= ,
0 0 2 3 4 0 3 3
Z 2 Z 2 3
2
x 8 10
mass = ρ(x)dx = (1 + 2x − x2 )dx = x + x2 − =2+4− = .
0 0 3 0 3 3
So the center of mass is the moment divide by the total mass, which gives us x̄ = 1.
In general, to find center of mass of a linear object with linear mass density ρ(x) for x going from a to b, we have
Rb
xρ(x)dx
x̄ = Ra b .
a
ρ(x)dx
If the linear mass density is constant, the center of mass (or centroid, in this case) is just the midpoint between a
and b, i.e. a+b
2
.
80
Centroids in two dimensions
Given a finite number of masses m1 , . . . , mn at points (x1 , y1 ), . . . , (xn , yn ) on the plane, the center of mass can be
computed in the exact same way as in one dimension:
m1 (x1 , y1 ) + · · · + mn (xn , yn ) m1 x1 + · · · + mn xn m1 y1 + · · · + mn yn
(x̄, ȳ) = = , .
m1 + · · · + mn m1 + · · · + mn m1 + · · · + mn
For example, if three stones having masses 2, 4, and 8 kg are placed at points (0, 2), (3, 1), and (6, 4), respectively,
then the center of mass of the three stones is ( 30
7
, 20
7
).
Note that the x- and y-coordinates are calculated independently of one another! In fact, if we call the sum of all
moments m1 x1 + · · · + mn xn = Mhor the total horizontal moment, and if we call Mver = m1 y1 + · · · + mn yn the total
vertical moment, then we just have
Mhor Mver
(x̄, ȳ) = , .
M M
(Note: I do not use the book’s notation My and Mx , because I find it too confusing.)
As the number of masses goes to infinity, finding the center of mass will in general require a double integral, which
is not part of this course. Still, we can use some tools we already know in order to find the centroid of some thin
plates in two dimensions.
Suppose we are looking at a region bounded by the graph of y = f (x), the x-axis, and the vertical axes x = a and
x = b. We want the centroid of this region. This is the same as the center of mass, assuming the density is uniformly
1; so mass is just area. Let M be the total mass, Mhor be the horizontal moment, and Mver be the vertical moment
as before. The total mass is just the area: Z b
M= f (x)dx.
a
The horizontal moment can be found by splitting the region into blocks of width dx and height f (x); the mass (area)
of each block is f (x)dx, so the moment is xf (x)dx. We add these moments together to get the total horizontal
moment: Z b
Mhor = xf (x)dx.
a
The vertical moment can be found in a similar way, if we can somehow find the horizontal distance across the region
at each height y. This is feasible in some cases, like when f (x) is strictly increasing or decreasing. Alternatively,
we can split once more into vertical blocks and find the vertical moment of each block. Each block is a rectangle of
height f (x) and width dx. By symmetry, its centroid is at height 12 f (x). On the other hand, its total mass is its
area, f (x)dx. So its vertical moment is the product of these, or 12 f 2 (x)dx. To get the total vertical moment we add
these up: Z b
1 2
Mver = f (x)dx.
a 2
Example. Let R be the region bounded by y = x2 , the x-axis, the y-axis, and the line x = 2. Let’s find the
R2 3 R2 R2
centroid. The total mass is M = 0 x2 dx = x3 |20 = 38 . The horizontal moment is Mhor = 0 x · x2 dx = 0 x3 dx =
x4 2
|
4 0
= 4. The vertical moment can be gotten in two different ways. First, we could use horizontal blocks with
√
width dy, going from y = 0 to y = 4. The distance across at each height y is 2 − y. So the vertical moment is
R4 4
Mver = 0 y(2 − y 1/2 )dy = 0 (2y − y 3/2 )dy = (y 2 − 25 y 5/2 )|40 = 16 − 52 (32) = 16
R
5
. The other way to see this is using
1 2
R2
the formula Mver = 2 0 (x ) dx = 12 0 x4 dx = 10
2 2 1 5 2 32
= 16 is (x̄, ȳ) = 38 (4, 16 ) = ( 32 , 65 ).
R
x |0 = 10 5
. So the centroid 5
Symmetry principle: If a region is symmetric about a line, then its centroid lies on that line.
Example. Let’s find the centroid of the upper half of the unit disk. Since it’s symmetric about the y-axis, the
centroid must lie on this axis, i.e. x̄ = 0.
As for ȳ, we need the vertical moment; we already know the total√
mass is π/2. The vertical moment can be computed
in two ways, but probably the simpler way is to use y = f (x) = 1 − x2 as a formula for the circle and then
1 1 2 1 1 x3 1
Z Z
1 1
Mver = f (x)dx = (1 − x2 )dx = [x − ]−1 = [2/3 − (−2/3)] = 2/3.
2 −1 2 −1 2 3 2
81
4
So the centroid is found at (0, 3π
).
Additivity of moments and mass. If we put together two separate regions to make one region, clearly the mass
of the whole is obtained by adding. But the same is true of each of the moments. We can use that to be clever in
computing the centroid of composite regions.
Example. Let R be the region consisting of two disks, one of radius 2 centered at the origin and the other of radius
1 centered at (0, 3). (These touch each other at (0, 2)). Find the centroid.
Well, both disks have the y-axis going down the center, so the centroid is somewhere on the y-axis. Now the centroid
of the first circle is just (0, 0), so its vertical moment is just 0. The centroid of the second circle is just (0, 3), and its
mass is π, so its vertical moment is 3π. Thus the total vertical moment of R is 3π. Since its mass is 4π + π = 5π, its
centroid is at (0, 35 ).
82
37 Extra Lecture
37.1 Integrating factor
Warm-up: find the general solution of
dy
= p(x)y.
dx
This is separable. We get
dy R
= p(x)dx ⇒ y = Ce p(x)dx .
y
Now let’s consider a differential equation like
dy
+ p(x)y = q(x).
dx
R
p(x)dx
This is not separable. But we hope to use e somehow.
0
If P (x) is an antiderivative of p(x), i.e. P (x) = p(x), then notice, by the product rule,
d P (x) P (x) dy P (x) 0 P (x) dy
(e y) = e +e P (x)y = e + p(x) = eP (x) q(x).
dx dx dx
d −x
(e y) = e−x y 0 − e−x y = e−x x.
dx
We need to integrate the right-hand side. Use integration by parts to get e−x x dx = −e−x (x + 1) + C. So
R
It’s not an accident that the solution is y = Cex + g(x), where g(x) is some other function of x.
Check yourself: If you solve an equation like y 0 + p(x)y = q(x) using an integrating factor, check your solution by
solving y 0 + p(x)y = 0. Your solution to the first equation should look like the solution to the second plus an extra
term involving x.
Example. Solve xy 0 − 3y = x2 , y(1) = 2. This is an initial value problem, so there are two steps. First, the general
solution. Write as
3
y 0 − y = x.
x
R 3
Integrating factor: e− x
dx
= e−3 ln x = x−3 . Check that
d −3
(x y) = x−3 y 0 − 3x−4 y = x−3 (y 0 − 3x−1 y) = x−3 x = x−2 .
dx
So then Z
x−3 y = x−2 dx = −x−1 + C ⇒ y = −x2 + Cx3 .
83
Second, we use the initial condition y(1) = 2 to get 2 = −1 + C so C = 3. The solution is y = −x2 + 3x3 .
R
Example. Find the general solution of y 0 +(sec x)y = cos x. The integrating factor here is e sec x dx
= eln(sec x+tan x) =
sec x + tan x. We can check that
d dy
((sec x + tan x)y) = (sec x tan x + sec2 x)y + (sec x + tan x)
dx dx
= (sec x + tan x)(sec xy + y 0 ) = (sec x + tan x) cos x = 1 + sin x.
So Z
(sec x + tan x)y = (1 + sin x)dx = x − cos x + C.
Thus
x − cos x + C
y= .
sec x + tan x
Example. Solve y 0 + y = sin x, y(0) = 1. The integrating factor is ex , we get ex y = ex sin x dx. We do integration
R
by parts twice:
Z Z Z
ex sin x dx = ex sin x − ex cos x dx = ex sin x − ex cos x + ex (− sin x) dx
Z
1 x
⇒ ex sin x dx = e (sin x − cos x) + C.
2
Thus y = 21 (sin x − cos x) + Ce−x . Since y(0) = 1 we get 1 = − 12 + C or C = 32 . Therefore y = 21 (sin x − cos x) + 23 e−x .
84