0% found this document useful (0 votes)
2 views231 pages

MA1231 Calculus Notes

These Calculus Notes serve as a foundational resource for the MA1231 Mathematics 1B course at UNSW Sydney, detailing essential topics and problem-solving strategies. Students are encouraged to actively engage with the material, attend lectures, and utilize tutorials for better understanding. The document also emphasizes the importance of using the Maple software for computations and provides a structured syllabus and problem schedule.

Uploaded by

BASICS 0
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views231 pages

MA1231 Calculus Notes

These Calculus Notes serve as a foundational resource for the MA1231 Mathematics 1B course at UNSW Sydney, detailing essential topics and problem-solving strategies. Students are encouraged to actively engage with the material, attend lectures, and utilize tutorials for better understanding. The document also emphasizes the importance of using the Maple software for computations and provides a structured syllabus and problem schedule.

Uploaded by

BASICS 0
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Diploma Program

MA1231 Mathematics 1B

CALCULUS NOTES

CRICOS Provider No: 00098G c 2018 UNSW Sydney


iii

Preface

Please read carefully.


These Notes form the basis for the Calculus strand of MA1231. However, not all of the material in
these Notes is included in the MA1231 Calculus syllabus. In particular, any material marked [X]
is non-assessable. A detailed syllabus is given, commencing on page ix of these Notes.
In using these Notes, you should remember the following points:

1. Most courses at university present new material at a faster pace than you will have been
accustomed to in high school, so it is essential that you start working right from the beginning
of the semester and continue to work steadily throughout the semester. Make every effort to
keep up with the lectures and to do problems relevant to the current lectures.

2. These Notes are not intended to be a substitute for attending lectures or tutorials. The
lectures will expand on the material in the notes and help you to understand it.

3. These Notes may seem to contain a lot of material but not all of this material is equally
important. One aim of the lectures will be to give you a clearer idea of the relative importance
of the topics covered in the Notes.

4. Use the tutorials for the purpose for which they are intended, that is, to ask questions about
both the theory and the problems being covered in the current lectures.

5. Some of the material in these Notes is more difficult than the rest. This harder material is
marked with the symbol [H].

6. It is essential for you to do problems which are given at the end of each chapter. If you
find that you do not have time to attempt all of the problems, you should at least attempt
a representative selection of them. The problems set in tests and exams will be similar to
the problems given in these notes. Further information on the problems and class tests is on
pages x and 205.

7. You will be expected to use the computer algebra package Maple in tests and understand
Maple syntax and output for the end of semester examination.

Note.
We gratefully acknowledge the contributions of the School of Mathematics and Statistics towards
the creation of this resource. Copyright is vested in The University of New South Wales, c 2018.

c 2018 School of Mathematics and Statistics, UNSW Sydney


iv

c 2018 School of Mathematics and Statistics, UNSW Sydney


v

Contents

Preface iii
Calculus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ix
Syllabus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ix
Problem schedule . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . x
Tutorial schedule . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xi
Test schedule . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xii

1 Functions of several variables 1


1.1 Sketching simple surfaces in R3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
1.2 Partial differentiation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
1.3 Tangent planes to surfaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
1.4 The total differential approximation . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
1.5 Chain rules . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
1.6 Functions of more than two variables . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
1.7 Maple notes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22

Problems for Chapter 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23

2 Integration techniques 27
2.1 Trigonometric integrals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
2.1.1 Integrating powers of sine and cosine . . . . . . . . . . . . . . . . . . . . . . . 27
2.1.2 Integrating multiple angles of sine and cosine . . . . . . . . . . . . . . . . . . 30
2.1.3 Integrating powers of tan and sec . . . . . . . . . . . . . . . . . . . . . . . . . 31
2.2 Reduction formulae . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
2.2.1 [X] Application: the irrationality of π . . . . . . . . . . . . . . . . . . . . . . 35
2.3 Trigonometric and hyperbolic substitutions . . . . . . . . . . . . . . . . . . . . . . . 37
2.4 Integrating rational functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
2.4.1 The overall strategy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
2.4.2 Partial fractions decompositions . . . . . . . . . . . . . . . . . . . . . . . . . 43
2.4.3 Integrating rational functions: two examples . . . . . . . . . . . . . . . . . . 46
2.5 Other substitutions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
2.6 Maple notes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50

Problems for Chapter 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51

c 2018 School of Mathematics and Statistics, UNSW Sydney


vi

3 Ordinary differential equations 57


3.1 An introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58
3.2 Initial value problems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60
3.3 Separable ODEs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
3.4 First order linear ODEs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65
3.5 Exact ODEs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
3.6 Solving ODEs by using a change of variable [X] . . . . . . . . . . . . . . . . . . . . 71
3.7 Modelling with first order ODEs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73
3.7.1 Mixing problems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74
3.7.2 Population models . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
3.8 Second order linear ODEs with constant coefficients . . . . . . . . . . . . . . . . . . 80
3.8.1 The homogeneous case . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80
3.8.2 The non-homogeneous case . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84
3.8.3 An application: vibrations and resonance . . . . . . . . . . . . . . . . . . . . 88
3.8.4 A connection with linear algebra . . . . . . . . . . . . . . . . . . . . . . . . . 91
3.9 Maple notes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93

Problems for Chapter 3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94

4 Taylor series 103


4.1 Taylor polynomials . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103
4.2 Taylor’s theorem . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108
4.2.1 Classifying stationary points . . . . . . . . . . . . . . . . . . . . . . . . . . . 114
4.2.2 Some questions arising from Taylor’s theorem . . . . . . . . . . . . . . . . . . 115
4.3 Sequences . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 117
4.3.1 Describing the limiting behaviour of sequences . . . . . . . . . . . . . . . . . 118
4.3.2 Techniques for calculating limits of sequences . . . . . . . . . . . . . . . . . . 119
4.3.3 Suprema and infima [X] . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123
4.4 Infinite series . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125
4.5 Tests for series convergence . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 129
4.5.1 Some preliminary results on series summation . . . . . . . . . . . . . . . . . . 129
4.5.2 The kth term divergence test . . . . . . . . . . . . . . . . . . . . . . . . . . . 130
4.5.3 The integral test . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 131
4.5.4 The comparison test . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 132
4.5.5 [X] The limit form of the comparison test . . . . . . . . . . . . . . . . . . . . 133
4.5.6 The ratio test . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 134
4.5.7 Leibniz’ test for alternating series . . . . . . . . . . . . . . . . . . . . . . . . . 136
4.5.8 Absolute and conditional convergence . . . . . . . . . . . . . . . . . . . . . . 139
4.6 Taylor series . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 142
4.7 Power series . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 145
4.7.1 Radius of Convergence . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 147
4.7.2 Convergence of power series at endpoints [X] . . . . . . . . . . . . . . . . . 149
4.8 Manipulation of power series . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 150
4.8.1 Proof of theorems in Section 4.8 [X] . . . . . . . . . . . . . . . . . . . . . . 155
4.9 Maple notes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 158

c 2018 School of Mathematics and Statistics, UNSW Sydney


vii

Problems for Chapter 4 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 160

5 Averages, arc length, speed and surface area 171


5.1 The average value of a function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 171
5.2 The arc length of a curve . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 175
5.2.1 An intuitive derivation of the arc length formula . . . . . . . . . . . . . . . . 176
5.2.2 Arc length for a parametrised curve . . . . . . . . . . . . . . . . . . . . . . . 178
5.2.3 Arc length for the graph of a function . . . . . . . . . . . . . . . . . . . . . . 180
5.2.4 Arc length for a polar curve . . . . . . . . . . . . . . . . . . . . . . . . . . . . 181
5.3 The speed of a moving particle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 182
5.4 Surface area . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 183
5.4.1 An heuristic derivation for the surface area of a surface of revolution . . . . . 184
5.4.2 Surface area formulae and examples . . . . . . . . . . . . . . . . . . . . . . . 187

Problems for Chapter 5 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 192

Answers to selected problems 195


Chapter 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 195
Chapter 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 196
Chapter 3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 197
Chapter 4 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 200
Chapter 5 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 203

Past class tests 205

Index 219

c 2018 School of Mathematics and Statistics, UNSW Sydney


viii

c 2018 School of Mathematics and Statistics, UNSW Sydney


ix

CALCULUS SYLLABUS FOR MA1231 MATHEMATICS 1B


In this syllabus the references to the textbook are not intended as a definition of what you will be
expected to know. They are just a guide to finding relevant material. Some parts of the subject
are not covered in the textbook and some parts of the textbook (even in the sections mentioned
in the references below) are not included in the subject. The scope of the course is defined by the
content of the lectures and problem sheets. The approximate lecture time for each section is given
below. References to the 8th and 10th editions of Salas & Hille are shown as SH8 and SH10.
SH8 SH10
1. Functions of several variables. (3 hours)
Contours and level curves, partial derivatives. 14.1-14.4 15.1-15.4
Mixed derivative theorem, increment estimation. 14.6 15.6
Chain rules, tangent planes.
2. Integration techniques. (3 hours)
Trigonometric integrals and reduction formulae. 8.3 8.3
Trigonometric and hyperbolic substitutions. 8.4 8.4
Rational functions and partial fractions. 8.5 8.5
Further substitutions. 8.6 8.6
3. Ordinary differential equations. (6 hours)
Particular, general, explicit and implicit solutions. 18.1
1st order equations: separable, linear, exact. 8.9, 18.2, 9.1, 9.2,
15.9 19.1, 19.2
Modelling with ODEs 9.1, 9.2
2nd order linear equations with constant coeffts:
homogeneous, non-homogeneous (undetermined coeffts). 18.3, 18.4 9.3, 19.4
4. Taylor series. (7 hours)
Taylor polynomials, Taylor’s theorem. 11.5 12.6, 12.7
Application to stationary points.
Sequences: convergence and divergence; 10.2, 10.3 11.2-11.4
combination of sequences.
Series: partial sums; convergence; 11.1, 11.2 12.1, 12.2
kth term test for divergence;
integral,comparison and ratio tests; 11.1-11.3 12.3,12.4
alternating series (Leibniz’ test);
absolute and conditional convergence; 11.4 12.5
rearrangement of series.
Taylor and Maclaurin series. 11.6 12.7
Power series: radius and interval 11.7, 11.8 12.8, 12.9
of convergence; operations on power series.
5. Applications of integration. (3 hours)
Average value of a function. 5.8 5.9
Arc length. 9.8 10.7
Arc length in polar coordinates. 9.5, 9.8 10.7
Area of surfaces of revolution. 9.9 10.8

c 2018 School of Mathematics and Statistics, UNSW Sydney


x

PROBLEM SETS

The Calculus problems are located at the end of each chapter of the Calculus Notes booklet.
To help you decide which problems to try first, each problem is marked with an [R], an [H] or an
[HH].
All students should make sure that they attempt the questions marked [R]. The problems marked
[H] or [HH] are intended as a challenge for students in MA1231. Some harder parts of [R] problems
are marked with a star. Problems marked with [V] have a video solution available on Moodle.

WEEKLY CALCULUS PROBLEM SCHEDULE

Solving problems and writing mathematics clearly are two separate skills that need to be devel-
oped through practice. We recommend that you keep a workbook to practice writing solutions to
mathematical problems. The following table gives the range of questions suitable for each week.
In addition it suggests specific recommended problems to do before your classroom tutorials.
The Online Tutorials will develop your problem solving skills, and give you examples of mathemati-
cal writing. Online Tutorials help build your understanding from lectures towards solving problems
on your own. Because this overlaps with the skills developed through homework, there are usually
fewer recommended homework in Online Tutorial weeks.

WEEKLY CALCULUS HOMEWORK SCHEDULE


Week Calculus problems Recommended Homework
Chapter Problems up to Problems
1 1 10 1(c), 3(c), 4(d), 7
2 1 16 12, 13
2 12 1(e), 1(f), 1(k), 2(c), 3(b), 3(e), 7
3 2 18 13(a), 13(d), 15(b), 15(e), 16(c), 18(b), 18(c), 18(i)
4 3 10 1(h), 4(d), 6, 8(a), 9(c)
5 3 24 13, 16, 22(a), 23(b), 24(c)
6 3 33 25(a), 27, 28, 30
8 4 14 4, 6, 11(c), 11(e)
9 4 27 15, 16, 19, 21(b), 22(a), 23(c)
10 4 36 28(c), 29, 34(d), 35
11 4 43 38(a), 39, 40, 42
12 5 13 2, 3(c), 5, 7, 10(a), 13

c 2018 School of Mathematics and Statistics, UNSW Sydney


xi

WEEKLY MATH1231 CALCULUS TUTORIAL SCHEDULE

The main reason for having tutorials is to give you a chance to tackle and discuss problems which
you find difficult or don’t fully understand.
There are two kinds of tutorials: Online and Classroom. Calculus Online Tutorials are delivered
using MapleTA. These can be completed from home, are available for a two week period, and are
due on Sunday night in weeks 1, 3, 5, 7, 9 and 11. Calculus Classroom tutorials are delivered in
a classroom by a calculus tutor. The topics covered in a classroom tutorial are flexible, and you
can (and should) ask your tutor to cover any homework topics you find difficult. You may also be
asked to present solutions to homework questions to the rest of the class.
The following table lists the topics covered in each tutorial.

Week Location Topics Covered


1 Classroom 1.1 : Sketching simple surfaces in R3
1.2 : Partial differentiation
1.3 : Tangent planes to surfaces
2 Classroom 1.4 : The total differential approximation
1.5 : Chain rules
2.1 : Trigonometric integrals
2.2 : Reduction formulae
3 Classroom 2.3 : Trigonometric and hyperbolic substitutions
2.4 : Integrating rational functions
2.5 : Other substitutions
4 Classroom 3.3 : Separable ODEs
3.4 : First order linear ODEs
3.5 : Exact ODEs
5 Classroom 3.7 : Modelling with first order ODEs
6 Classroom 3.8 : Second order linear ODEs with constant coefficients
8 Classroom 4.1 : Taylor polynomials
4.2 : Taylor’s theorem
9 Classroom 4.3 : Sequences
4.4 : Infinite series
10 Classroom 4.5 : Tests for series convergence
4.6 : Taylor series
11 Classroom 4.7 : Power series
4.8 : Manipulation of power series
12 Classroom 5.1 : The average value of a function
5.2 : The arc length of a curve
5.3 : The speed of a moving particle
5.4 : Surface area

c 2018 School of Mathematics and Statistics, UNSW Sydney


xii

c 2018 School of Mathematics and Statistics, UNSW Sydney


1

Chapter 1

Functions of several variables

Most functions which arise in real world applications depend on more than one variable. In this
chapter, we give a brief introduction to functions of two (or more) variables. Examples include
functions defined by the following well known formulae:
• A(b, h) = 12 bh (the area of a triangle);
p
• D(x, y) = x2 + y 2 (the distance of a point (x, y) from the origin);
• ℓ(x, y) = 2(x + y) (the perimeter of a rectangle of dimensions x and y units); and
Gm1 m2
• F (m1 , m2 , x1 , x2 ) = (the gravitational force between two bodies of mass m1 and
|x1 − x2 |2
m2 positioned at points P (x1 ) and Q(x2 )).
Geometrically, a function of two variables represents a surface in R3 , just as a function of one
variable represents a curve in R2 . We will introduce the partial derivative of a function of two
variables and use this to calculate the equation of the tangent plane to a surface at a point. Other
applications of the partial derivative include function and error estimation.

1.1 Sketching simple surfaces in R3


(Ref: SH10 §15.2, 15.3)
The graph of a function f of one variable, given by y = f (x), gives rise to a curve in R2 . The graph
of a function F of two variables, given by z = F (x, y), gives rise to a surface in R3 . In this section
we introduce some simple techniques for sketching surfaces given by an equation z = F (x, y).
Sketching a surface in R3 can be challenging because the sketch must be represented in R2 .
Topographic maps solve this problem by using contour lines to represent the height (above sea
level) of the surface of the earth at various points. We adapt this idea to sketching a surface
z = F (x, y) described by a function F . Here, z represents the height of the surface above the
xy-plane, and the contours of the surface are defined as follows.

Definition 1.1.1. A contour or level curve of a function F : R2 → R is a curve in


R2 corresponding to an equation of the form F (x, y) = C, where C is a constant.

c 2018 School of Mathematics and Statistics, UNSW Sydney


2 CHAPTER 1. FUNCTIONS OF SEVERAL VARIABLES

For each level curve, the corresponding value of C gives the height of the curve above the
xy-plane.
Example 1.1.2. Sketch level curves for the function F : R2 → R, where F (x, y) = x2 + y 2 .
Solution. The level curves of F are of the form x2 + y 2 = C, where C is a nonnegative constant
(since if C < 0 then there is no solution to the equation x2 + y 2 = C). The level curves given by
x2 + y 2 = 0, x2 + y 2 = 1, x2 + y 2 = 2, x2 + y 2 = 3 and x2 + y 2 = 4 are shown below.
y
4
=
3
z
=
2
z
=
z

1
=
z

z=0 b
x
1 2

Level curves can be interpreted in the following way. If one walked around the circle x2 + y 2 = 4,
then one would remain a constant height of 4 units above the xy-plane. If one started at the origin
and walked 2 units ‘east,’ then one would rise from ‘sea level’ to 4 units above sea level.

Some simple surfaces may be sketched in R3 by using the level curves of the surface and
considering the intersection of the surface with the yz-plane. The final sketch is drawn using
perspective.
Example 1.1.3. Sketch the surface in R3 described by the equation z = x2 + y 2 .
Solution. The level curves for the surface are circles (see the sketch in the previous example). When
x = 0, we have z = y 2 . This gives the intersection of the surface with the yz-plane. The profile of
this intersection is shown below.
z
z = y2

c 2018 School of Mathematics and Statistics, UNSW Sydney


1.1. SKETCHING SIMPLE SURFACES IN R3 3

The yz-profile and level curves help us produce the sketch of the surface.

z
z = y2

z=4

z=3
z = x2 + y 2
z=2

z=1

Remark 1.1.4. The previous diagram illustrates the conventional orientation for the x-, y- and
z-axes.

Example 1.1.5. A surface in R3 is described by the equation x2 + y 2 − z 2 = 1. Sketch some level


curves and hence sketch the surface in R3 .

Solution. Each level curve is obtained by setting z equal to C, for some constant C.

z level curve
0 x2 + y 2 = 1
±1 x2 + y 2 = 2
±2 x2 + y 2 = 5
±3 x2 + y 2 = 10

Each level curve is a circle. Those given in the table are sketched below.

c 2018 School of Mathematics and Statistics, UNSW Sydney


4 CHAPTER 1. FUNCTIONS OF SEVERAL VARIABLES

3
±
=

2
z

±
=

= ±1
z

=
0
z
z √ x
1 10

If x = 0 then y 2 − z 2 = 1, which is a hyperbola.

z
y2 − z2 = 1

y
−1 1

Putting these two sketches together gives the following surface.

c 2018 School of Mathematics and Statistics, UNSW Sydney


1.2. PARTIAL DIFFERENTIATION 5

y2 − z2 = 1

z=3
x2 + y 2 − z 2 = 1
z=2

z=1
z=0 y

z = −1
x
z = −2

z = −3

This surface is called a hyperboloid of one sheet.

1.2 Partial differentiation


(Ref: SH10 §15.4, 15.6)
Suppose that f is a differentiable function of one variable. In MA1131 we

• investigated techniques for calculating the derivative of f ,

• interpreted the derivative in terms of the rate of change of f ,

• used the derivative to calculate the equation of the tangent line to the graph of f at a point
a, and

• used the tangent line to give a linear approximation to f near a.

Over the next few sections, we generalise some of these ideas and techniques to functions F of two
variables. In particular, we introduce the notion of a partial derivative and then

• show how to calculate the partial derivatives of F ,

• interpret the partial derivatives in terms of the rate of change of F ,

• use the partial derivatives to calculate the equation of the tangent plane to the graph of F
at a point (a, b), and

• use the tangent plane to give a linear approximation for F near (a, b).

c 2018 School of Mathematics and Statistics, UNSW Sydney


6 CHAPTER 1. FUNCTIONS OF SEVERAL VARIABLES

Our discussion will assume that we have an intuitive idea of what is meant by a ‘tangent plane to
a surface.’ A rigorous discussion of the existence of tangent planes is connected with the formal
definition of the derivative (as opposed to partial derivative) of a function of two variables. This
rigour is pursued in some second year courses.
To introduce the notion of a partial derivative, consider the function F given by

F (x, y) = x2 + y 2 .

The surface z = x2 + y 2 , corresponding to the graph of F , was sketched in Example 1.1.3. Our
immediate goal is to quantify the rate of change of F (x, y) at the point (1, 2).
First, we find the rate of change of F (x, y) at (1, 2) in the y-direction. This means that we hold
x constant and only allow y to vary. Since we are considering the rate of change at the point (1, 2),
we have x = 1 and
z = F (x, y) = F (1, y) = 1 + y 2

(since x is constant but y is not). Geometrically, we may interpret z = 1 + y 2 as the intersection


of the surface z = x2 + y 2 with the plane x = 1. This intersection is shown in Figure 1.1. The rate
of change of F (x, y) at (1, 2) in the y-direction is equal to the gradient of the dashed tangent line
shown in the figure. This gradient may be calculated in the usual way:

d
gradient = (1 + y 2 ) = 2y = 4.
dy y=2 y=2

Therefore the rate of change of F (x, y) at (1, 2) in the y-direction is 4.


A fast way of finding this rate of change is the following. First, differentiate F with respect to
y, treating x as a constant, to obtain
Fy (x, y) = 2y.

Then the rate of change of F (x, y) at (1, 2) in the y-direction is

Fy (1, 2) = 2 × 2 = 4.

The function Fy is called the partial derivative of F with respect to y.


In a similar manner, one may find the rate of change of F (x, y) at (1, 2) in the x-direction.
First, differentiate F with respect to x, treating y as a constant, to obtain

Fx (x, y) = 2x.

Then the rate of change of F (x, y) at (1, 2) in the x-direction is

Fx (1, 2) = 2 × 1 = 2.

The function Fx is called the partial derivative of F with respect to x.


The partial derivatives of a function F may be defined formally by using limits.

c 2018 School of Mathematics and Statistics, UNSW Sydney


1.2. PARTIAL DIFFERENTIATION 7

(1, 2, 5) b

(
z = 1 + y2
x=1
gradient = 4

(1, 0, 0) b b

(1, 2, 0)

Figure 1.1: The intersection of the surface z = x2 + y 2 with the plane x = 1. The dashed line is
the tangent line to the cross-section at the point (1, 2, 5).

c 2018 School of Mathematics and Statistics, UNSW Sydney


8 CHAPTER 1. FUNCTIONS OF SEVERAL VARIABLES

Definition 1.2.1. Suppose that F is a function of two variables x and y. The


partial derivatives of F with respect to x and y are defined by
F (x + h, y) − F (x, y)
Fx (x, y) = lim
h→0 h
and
F (x, y + h) − F (x, y)
Fy (x, y) = lim ,
h→0 h
wherever these limits exist.

Remark 1.2.2. If F is a function of x and y, then Fx (x, y) is calculated by treating y as a constant


and differentiating F with respect to x. On the other hand, Fy (x, y) is calculated by treating x as
a constant and differentiating F with respect to y.

Remark 1.2.3. As illustrated at the beginning of this section, Fy (a, b) gives the rate of change
of F at the point (a, b) in the y-direction. Interpreted geometrically, the number Fy (a, b) is the
gradient of the tangent to the cross-section at (a, b) when the surface z = F (x, y) is intersected
with the plane x = a. Similarly, Fx (a, b) gives the rate of change of F at the point (a, b) in the
x-direction.

Example 1.2.4. Suppose that F (x, y) = x2 y + 2y + 4. Find Fx and Fy .

Solution. To calculate Fx , we treat y as a constant and differentiate F with respect to x:

Fx (x, y) = 2xy.

To calculate Fy , we treat x as a constant and differentiate F with respect to y:

Fy (x, y) = x2 + 2.

Partial derivatives may be denoted in a variety of ways.

Remark 1.2.5 (Notation). Suppose that a function F has partial derivatives Fx and Fy . Then Fx
may be denoted by
∂F
or D1 F,
∂x
while Fy may be denoted by
∂F
or D2 F.
∂y
The notation involving the ‘curly d’ is used most frequently. However, the notation D1 F and D2 F
is less ambiguous. (For example, to calculate D1 F (y, x), we differentiate F with respect to its first
variable and then evaluate this partial derivative at the point (y, x). In ‘curly d’ notation, one
∂F
would write (y, x). Here, the first x represents the first variable of the function while the x in
∂x
parentheses represents the second ordinate of the point (y, x).)

c 2018 School of Mathematics and Statistics, UNSW Sydney


1.2. PARTIAL DIFFERENTIATION 9

Example 1.2.6. Suppose that


3
F (x, y) = 3exy sin y.
∂F ∂F
Find and .
∂x ∂y
∂F
Solution. To calculate , we treat y as a constant and differentiate F with respect to x:
∂x
∂F 3
= 3y 3 exy sin y.
∂x
∂F
To calculate , we treat x as a constant and differentiate F with respect to y:
∂y

∂F ∂  xy3  3 ∂
= 3 sin(y) e + 3exy (sin y) (by using the product rule)
∂y ∂y ∂y
 3
 3
= 3 sin(y) 3xy 2 exy + 3exy (cos y)
3 
= 3exy 3xy 2 sin y + cos y .

So far we have seen examples of first order partial derivatives. Second order partial derivatives
can be computed by differentiating first order partial derivatives. Some notation is given below:
 
∂2F ∂ ∂F
means ;
∂x2 ∂x ∂x
 
∂2F ∂ ∂F
means ;
∂y 2 ∂y ∂y
 
∂2F ∂ ∂F
means ; and
∂x∂y ∂x ∂y
 
∂2F ∂ ∂F
means .
∂y∂x ∂y ∂x

Second order partial derivatives may be denoted using other notation. For example,

∂2F
= Fxx = D12 F
∂x2
while
∂2F
= Fxy = D2 D1 F.
∂y∂x

Example 1.2.7. Compute all second order partial derivatives of F , where F (x, y) = 3xy 4 +ex sin y.

Solution. The first order partial derivatives are given by

Fx (x, y) = 3y 4 + ex sin y and Fy (x, y) = 12xy 3 + ex cos y.

c 2018 School of Mathematics and Statistics, UNSW Sydney


10 CHAPTER 1. FUNCTIONS OF SEVERAL VARIABLES

The second order partial derivatives are obtained by furher differentiation. Thus
∂ 
Fxx (x, y) = 3y 4 + ex sin y = ex sin y
∂x
∂ 
Fyy (x, y) = 12xy 3 + ex cos y = 36xy 2 − ex sin y
∂y
∂ 
Fyx (x, y) = 12xy 3 + ex cos y = 12y 3 + ex cos y
∂x
∂ 
Fxy (x, y) = 3y 4 + ex sin y = 12y 3 + ex cos y.
∂y

Note in the previous example that Fxy = Fyx . This is no accident.


Theorem 1.2.8 (The mixed derivative theorem). Suppose that F is a function of two variables.
If F and all its first and second order partial derivatives are continuous then
∂2F ∂2F
= .
∂x∂y ∂y∂x
Two questions arise. First, what does it mean for a function F of two variables to be continuous?
Second, why is the theorem true? We give a partial answer to each of these questions in the following
remarks.
Remark 1.2.9. Suppose that F is a function of two variables. While a formal definition for
continuity is not given in this course, the following rule may often be used to verify that F is
continuous.
If F can be constructed by combining (via function addition, multiplication, division
and composition) a finite number of continuous functions of a single variable, then F is
continuous on its domain.
Thus the function F , given by
F (x, y) = 3xy 4 + ex sin y,
is continuous since
F (x, y) = f (x)g(y) + h(x)k(y),
where the functions given by f (t) = 3t, g(t) = t4 , h(t) = et and k(t) = sin t are continuous.
Similarly, the function G given by
4
G(x, y) = e3x y
is continuous since G(x, y) = h(g(x)f (y)). Suffice to say, most functions of two variables given in
this course are continuous on their domains.
Remark 1.2.10. To begin proving the mixed derivative theorem, one begins with the definition
of the partial derivative. Now
Fx (a, b + h2 ) − Fx (a, b)
Fxy (a, b) = lim
h2 →0 h2
F (a+h1 ,b+h2 )−F (a,b+h2 ) F (a+h1 ,b)−F (a,b)
h1 − h1
= lim lim
h2 →0 h1 →0 h2
F (a + h1 , b + h2 ) − F (a, b + h2 ) − F (a + h1 , b) + F (a, b)
= lim lim .
h2 →0 h1 →0 h1 h2

c 2018 School of Mathematics and Statistics, UNSW Sydney


1.3. TANGENT PLANES TO SURFACES 11

Similarly,

F (a + h1 , b + h2 ) − F (a + h1 , b) − F (a, b + h2 ) + F (a, b)
Fyx (a, b) = lim lim .
h1 →0 h2 →0 h1 h2

To show that Fyx (a, b) = Fxy (a, b), one need only swap the order in which the limits are taken.
This step can be justified by the continuity hypothesis of the mixed derivative theorem. The details
are not easy and will be omitted here.

1.3 Tangent planes to surfaces


In this section, we give an heuristic derivation of the Cartesian equation for the tangent plane to
a surface at a given point. Our treatment relies on intuition rather than rigour; a full presentation
requires a rigorous account of what is meant by a ‘tangent plane’ and conditions under which a
tangent plane exists. Such questions are tackled in some second year courses.
As a side benefit of our derivation for equation of the tangent plane, we also obtain a formula
for a normal vector to the surface at a given point. A normal vector is defined as follows. Suppose
that a surface has a tangent plane at a point P . We say that a vector n is normal to the surface
at P if n is normal to the tangent plane to the surface at P .
The main ideas for deriving a formula for the tangent planes and normal vectors are contained
in the following example.

Example 1.3.1. Suppose that F (x, y) = x2 + y 2 . By using vector geometry, find the Cartesian
equation of the tangent plane to the surface z = F (x, y) at the point where (x, y, z) = (1, 2, 5).
Find also a vector n that is normal to the surface at this point.

Solution. We will complete the solution in four steps.


Step 1. First, intersect the surface z = x2 + y 2 with the plane x = 1, as in Figure 1.1. This
gives the cross-sectional profile (
z = 1 + y2
x=1
as illustrated in Figure 1.1. The dashed line passing through the point (1, 2, 5) lies in the plane
x = 1 and is tangent to the parabola z = 1 + y 2 . Its gradient is

Fy (1, 2) = 4.

By using the point-gradient formula for a straight line, the Cartesian equation for this tangent is
given by
z − 5 = 4(y − 2), x = 1.
If λ = y − 2 then the equation of the tangent line in parametric vector form is
     
x 1 0
y  = 2 + λ 1 (1.1)
z 5 4

whenever µ ∈ R. Note that this line lies in the tangent plane to the surface at (1, 2, 5).

c 2018 School of Mathematics and Statistics, UNSW Sydney


12 CHAPTER 1. FUNCTIONS OF SEVERAL VARIABLES

Step 2. Now we intersect the surface with the plane y = 2 and repeat the method of Step 1.
The cross-sectional profile of this intersection is given by
(
z = x2 + 4
y = 2.

Consider the line that lies in the plane y = 2 and is tangent to z = x2 + 4 at (1, 2, 5). Its gradient
is given by
Fx (1, 2) = 2
and hence its Cartesian equation by

z − 5 = 2(x − 1), y = 2,

If µ = x − 1 then we find that the parametric vector form of the tangent line is
     
x 1 1
y  = 2 + µ 0 (1.2)
z 5 2
whenever λ ∈ R. Note that this line also lies in the tangent plane to the surface at (1, 2, 5).
Step 3. Since the lines given by (1.1) and (1.2) both lie in the tangent plane, and since the
vectors    
0 1
1 and 0
4 2
are nonparallel, the tangent plane to the surface at (1, 2, 5) is given by
       
x 1 0 1
y  = 2 + λ 1 + µ 0
z 5 4 2
where λ and µ are arbitrary real numbers.
Step 4. We now convert the parametric vector form of the plane to point-normal form. A vector
n that is normal to the plane is given by
     
0 1 2
n = 1 × 0 =  4  .
4 2 −1
Hence the point-normal form for the tangent plane is
   
2 x−1
 4  · y − 2 = 0.
−1 z−5
By expanding the dot product, one obtains z = 5 + 2(x − 1) + 4(y − 2), which simplifies to

2x + 4y − z = 5.

This is the cartesian form of the plane, and the vector (2, 4, −1)T is normal to the surface at the
point (1, 2, 5).

c 2018 School of Mathematics and Statistics, UNSW Sydney


1.3. TANGENT PLANES TO SURFACES 13

Note in the above example that Fx (1, 2) = 2 and Fy (1, 2) = 4. Each of these numbers appear
as coefficients in the equation of the tangent plane and as components of the normal vector. By
generalising the above example, one obtains the formulae in the following proposition.
Proposition 1.3.2. Suppose that F is a function of two variables and (x0 , y0 , z0 ) is a point that
lies on the surface z = F (x, y). If the surface has a tangent plane at the point (x0 , y0 , z0 ), then the
tangent plane is given by the equation
z = z0 + Fx (x0 , y0 )(x − x0 ) + Fy (x0 , y0 )(y − y0 )
and a normal vector to the surface at (x0 , y0 , z0 ) is given by
 
Fx (x0 , y0 )
Fy (x0 , y0 ) .
−1
Remark 1.3.3. The above proposition is similar to what is already known for functions of a single
variable. In fact, we have the following. Suppose that f is a function of one variable and (x0 , y0 )
is a point that lies on the curve y = f (x). If f is differentiable at x0 , then the tangent line to the
curve at (x0 , y0 ) is given by the equation
y = y0 + f ′ (x0 )(x − x0 )
and a normal vector to the curve at (x0 , y0 ) is given by
 ′ 
f (x0 )
.
−1
Remark 1.3.4. The proposition implicitly assumes that the first order partial derivatives for F
exist at (x0 , y0 ). It can be shown that if a tangent plane exists then these first order partial
derivatives also exist. Hence this implicit assumption causes no problems. (Be warned however,
that the existence of first order partial derivatives at (x0 , y0 ) does not guarantee the existence of a
tangent plane at (x0 , y0 , z0 ).)
Example 1.3.5. Suppose that F (x, y) = sin(πxy 2 ). Write down the Cartesian equation for the
tangent plane to the surface z = F (x, y) at the point (2, −1, 0) and find a vector that is normal to
the surface at this point.
Solution. The partial derivatives of F are given by
Fx (x, y) = πy 2 cos(πxy 2 ) and Fy (x, y) = 2πxy cos(πxy 2 ).
Hence
Fx (2, −1) = π and Fy (2, −1) = −4π.
So the equation of the tangent plane is given by
z = 0 + π(x − 2) − 4π(y + 1) or πx − 4πy − z = 6π.
and a normal vector is  
π
−4π  .
−1

c 2018 School of Mathematics and Statistics, UNSW Sydney


14 CHAPTER 1. FUNCTIONS OF SEVERAL VARIABLES

Notes:
• One could also use the point normal form directly
  to find the equation of the tangent plane.
fx
Thus the vector normal to the plane is n =  fy  (evaluated at the point P ), and so the
−1
equation of the tangent plane is (x − P ).n = 0.
    
2 π
Hence, in the previous example, we could simply expand x − −1 . −4π  = 0 to find
0 −1
the equation of the tangent plane.
 
gx
• More generally, if a surface is given in the form g(x, y, z) = 0, then the vector n = gy 
gz
evaluated at some point P on the surface, is a vector normal to the surface at P .
x2 y2 z2
Example 1.3.6. Find the equation of the tangent plane to the ellipsoid 4 + 2 + 8 = 1 at the
point P (0, 1, 2)
Solution. A vector normal to the ellipsoid at P is given by
x  
2 0
n = y  =  1  .
z
4 P 1/2

Hence the equation of the tangent has the form


1
0x + 1y + z = d
2
for some constant d. Substituting in P , we find that d = 2 and so the desired equation is 2y + z =
4.

1.4 The total differential approximation


Suppose that f is a differentiable function of one variable. The equation of the tangent to the
graph of f at a point x0 is given by

y = y0 + f ′ (x0 )(x − x0 ),

where y0 = f (x0 ). When x is close to x0 , the tangent line is close to the graph of f . In other words,

f (x) ≈ f (x0 ) + f ′ (x0 )(x − x0 ).

Now writing ∆x = x − x0 and ∆f = f (x) − f (x0 ) we have

∆f ≈ f ′ (x0 )∆x.

This is called the differential approximation to ∆f . Our goal is to generalise this idea to functions
of two variables.

c 2018 School of Mathematics and Statistics, UNSW Sydney


1.4. THE TOTAL DIFFERENTIAL APPROXIMATION 15

Suppose that a surface given by z = F (x, y) has a tangent plane at the point (x0 , y0 , z0 ). The
equation of the tangent is given by
z = z0 + Fx (x0 , y0 )(x − x0 ) + Fy (x0 , y0 )(y − y0 ).
If (x, y) is near (x0 , y0 ) then
F (x, y) ≈ z0 + Fx (x0 , y0 )(x − x0 ) + Fy (x0 , y0 )(y − y0 ).
Since (x0 , y0 , z0 ) lies on the surface, z0 = F (x0 , y0 ). Thus
F (x, y) − F (x0 , y0 ) ≈ Fx (x0 , y0 )(x − x0 ) + Fy (x0 , y0 )(y − y0 ). (1.3)
Let ∆x denote the difference x − x0 between x and x0 and let ∆y denote the difference y − y0
between y and y0 . Then (1.3) becomes
F (x0 + ∆x, y0 + ∆y) − F (x0 , y0 ) ≈ Fx (x0 , y0 )∆x + Fy (x0 , y0 )∆y.
The left-hand side of this approximation represents the change in F when x0 and y0 are changed
by ∆x and ∆y respectively. We call this the increment in F and denote it by ∆F ; that is,
∆F = F (x0 + ∆x, y0 + ∆y) − F (x0 , y0 ).
Hence
∆F ≈ Fx (x0 , y0 )(x − x0 ) + Fy (x0 , y0 )(y − y0 ).
This formula is called the total differential approximation to ∆F . By supressing the point of
evaluation, the total differential approximation may be written as
∂F ∂F
∆F ≈ ∆x + ∆y.
∂x ∂y
The approximation improves when ∆x and ∆y are smaller.
The total differential approximation can be used to estimate the change in the output of a
function given changes to each of the inputs.
Example 1.4.1. The ideal gas law asserts that the pressure P , volume V and temperature T of
an ideal gas are related by the formula
P V = kT,
where k is a constant. If the temperature is increased by 4% and the volume is decreased by 5%,
estimate the percentage increase in pressure.
Solution. We have
kT ∂P k ∂P kT
,
P = = and = − 2.
V ∂T V ∂V V
Now the temperature is increased by 4%, so ∆T = 0.04T . Similarly, the volume is decreased by
5% and so ∆V = −0.05V . By the total differential approximation,
∂P ∂P
∆P ≈ ∆T + ∆V
∂T ∂V
k kT
= × 0.04T − 2 × (−0.05V )
V V
kT
= 0.04P + 0.05P (since P = V )
= 0.09P.
Hence the pressure increases by approximately 9%.

c 2018 School of Mathematics and Statistics, UNSW Sydney


16 CHAPTER 1. FUNCTIONS OF SEVERAL VARIABLES

In science, engineering, psychology, economics and so on, measurements are often made that are
not exact. Any quantities calculated from these measurements will also contain errors. The total
differential approximation can give us an idea how bad such errors can get. Given a function F of
two variables x and y, one can interpret ∆F as the error in the output given errors ∆x and ∆y in
the inputs. Typically, one does not know the precise value of ∆x and ∆y, but sometimes one can
find an upper bound for the absolute errors |∆x| and |∆y|. The total differential approximation
then gives an approximate upper bound for the absolute error |∆F | in F :

∂F ∂F
|∆F | ≈ ∆x + ∆y.
∂x ∂y
∂F ∂F
≤ |∆x| + |∆y|,
∂x ∂y
(where we have used the triangle inequality in the last step). The next example illustrates these
ideas.
Example 1.4.2. The dimensions of a cylinder are measured to the nearest millimeter using a
measuring tape. The circumference is measured to be 22.0 cm and height is measured to be 15.0 cm.
Use these measurements to (a) estimate the volume of the cylinder, and (b) estimate an upper bound
for the percentage error in your answer to part (a).
Solution. (a) Let r, C and h denote the radius, circumference and height respectively. Then
C = 2πr and so  2
C C 2h
V = πr 2 h = π h= .
2π 4π
By using the measurements C = 22 and h = 15, one finds that
1815
V = .
π
And so the volume is estimated to be 1815 3 3
π cm , which is approximately 577.73 cm .
(b) The absolute error in each measurement is at most 0.5 mm, which is 0.05 cm. Let ∆C and
∆h denote the error in each measurement. Then

|∆C| ≤ 0.05 and |∆h| ≤ 0.05.

The increment ∆V is the error in our calculation for the volume. Now
C 2h ∂V Ch ∂V C2
V = , = and = .
4π ∂C 2π ∂h 4π
So the total differential approximation (when C = 22 and h = 15) is
∂V ∂V
∆V ≈ ∆C + ∆h
∂C ∂h
Ch C2
= ∆C + ∆h
2π 4π
165 121
= ∆C + ∆h
π π

c 2018 School of Mathematics and Statistics, UNSW Sydney


1.5. CHAIN RULES 17

If we take absolute values of both sides then


165 121
|∆V | ≈ ∆C + ∆h
π π
165 121
≤ |∆C| + |∆h| (by the triangle inequality)
π π
165 121
≤ × 0.05 + × 0.05
π π
286
= .
20π
286
So an upper bound for the absolute error in V is approximately (that is, approximately
20π
4.55 cm3 ). An upper bound for the percentage error is given by
max |∆V | 286 π
× 100% ≈ · × 100%
V 20π 1815
26
= %.
33
Hence the percentage error is no more than about 0.79%.

1.5 Chain rules


If f and g are functions of one variable, then the derivative of f ◦ g may be calculated using the
chain rule for functions of one variable. In this section, we study compositions of functions of more
than one variable. To calculate their partial derivatives, we use a chain rule for functions of more
than one variable.
Suppose that F is a function of x and y and that x and y are each functions of t. A small
change ∆t in t produces a corresponding change ∆x and ∆y in x and y. These changes in turn
produce a corresponding change ∆F in F . By the total differential approximation,
∂F ∂F
∆F ≈ ∆x + ∆y,
∂x ∂y
and this approximation gets better as ∆x and ∆y approach zero. If we divide through by ∆t then
∆F ∂F ∆x ∂F ∆y
≈ + .
∆t ∂x ∆t ∂y ∆t
As ∆t → 0,
∆x x(t + ∆t) − x(t) dx
= →
∆t ∆t dt
and
∆y y(t + ∆t) − y(t) dy
= → .
∆t ∆t dt
∆F dF
Finally, if we view F as a function of t then, by a similar argument, → . So in the limit,
∆t dt
the total differential approximation becomes

dF ∂F dx ∂F dy
= + . (1.4)
dt ∂x dt ∂y dt

c 2018 School of Mathematics and Statistics, UNSW Sydney


18 CHAPTER 1. FUNCTIONS OF SEVERAL VARIABLES

This is an example of a chain rule for a function of two variables.


The above chain rule must be interpreted properly. First, each derivative must be evaluated at
a correct point. Second, the F appearing on the left-hand side is a function of one variable t, while
the F that appears on the right-hand side is a function of two variables x and y. Technically, these
are two different functions. The next theorem expresses chain rule (1.4) without these ambiguities.

Theorem 1.5.1. Suppose that F is a function of two variables and that x and y are both functions
of one variable. Define the function φ by φ(t) = F (x(t), y(t)) and the point (x0 , y0 ) by (x0 , y0 ) =
(x(t0 ), y(t0 )). If x and y are both differentiable at t0 and the partial derivatives of F exist and are
continuous at (x0 , y0 ), then φ is differentiable at t0 and

φ′ (t0 ) = D1 F (x0 , y0 )x′ (t0 ) + D2 F (x0 , y0 )y ′ (t0 ). (1.5)

Remark 1.5.2. Formulae (1.4) and (1.5) are equivalent. The former is easier to remember while
the latter is more precise. To remember the rule, consider the following chain diagram.

∂F x dx
∂x dt

F t

∂F y dy
∂y dt

To construct the diagram, draw an arrow from each function to each of its variables. Then dF dt is
the sum of all paths (left to right) from F to t, where the derivatives are multiplied across each
path.

Example 1.5.3. The potential energy E of a particle at point (x, y) is given by E(x, y) = sin(πx2 y).
If the x-ordinate of the particle is increasing at a rate of 3 units per second, and the y-ordinate of
the particle is decreasing at a rate of 2 units per second, find the rate of change of potential energy
when the particle has coordinate (−1, 2).

Solution. Since the ordinates x and y of the particle change with time t, we may view x and y as
functions of t. We are told that
dx dy
=3 and = −2.
dt dt
By the chain rule,
dE ∂E dx ∂E dy
= +
dt ∂x dt ∂y dt
= 2πxy cos(πx2 y) × 3 + πx2 cos(πx2 y) × (−2)
= 2πx(3y − x) cos(πx2 y).

When (x, y) = (−1, 2),


dE
= −14π.
dt
So the rate of change of E at (−1, 2) is −14π.

c 2018 School of Mathematics and Statistics, UNSW Sydney


1.5. CHAIN RULES 19

We now examine the case when F is a function of x and y, where each of x and y is a function
of both s and t. This situation is sometimes written as

F = F (x, y), x = x(s, t) and y = y(s, t).

If we treat s as a constant and differentiate F with respect to t, then chain rule (1.4) gives

∂F ∂F ∂x ∂F ∂y
= + .
∂t ∂x ∂t ∂y ∂t

Similarly, if we treat t as a constant and differentiate F with respect to s, then chain rule (1.4)
gives
∂F ∂F ∂x ∂F ∂y
= + .
∂s ∂x ∂s ∂y ∂s
Each of these new chain rules may be remembered using the following chain diagram.
∂x
∂s s
∂F x
∂x ∂y
∂s
F
∂x
∂F ∂t
∂y y
∂y t
∂t

For example, to remember the rule for ∂F ∂s , simply sum all paths (left to right) from F to s, where
the derivatives are multiplied across each path.
Example 1.5.4. Suppose that z = F (x, y). Express the point (x, y) in terms of polar coordinates
(r, θ). Hence express ∂z ∂z
∂r and ∂θ in terms of x, y, Fx and Fy . Finally, show that the partial derivatives
satisfy the equation
∂z ∂z ∂F ∂F
r + = (x − y) + (x + y) .
∂r ∂θ ∂x ∂y
Solution. We have

z = F (x, y), x = r cos θ, y = r sin θ and r 2 = x2 + y 2 .

So the chain rule gives


∂z ∂z ∂x ∂z ∂y
= +
∂r ∂x ∂r ∂y ∂r
= Fx (x, y) cos θ + Fy (x, y) sin θ
x y
= Fx (x, y) + Fy (x, y)
r r
x y
=p Fx (x, y) + p Fy (x, y)
2
x +y 2 x + y2
2

c 2018 School of Mathematics and Statistics, UNSW Sydney


20 CHAPTER 1. FUNCTIONS OF SEVERAL VARIABLES

and
∂z ∂z ∂x ∂z ∂y
= +
∂θ ∂x ∂θ ∂y ∂θ
= −Fx (x, y)r sin θ + Fy (x, y)r cos θ
= −y Fx (x, y) + x Fy (x, y).

Finally,
!  
∂z ∂z x ∂F y ∂F ∂F ∂F
r + =r p +p + −y +x
∂r ∂θ x + y ∂x
2 2 x + y ∂y
2 2 ∂x ∂y
∂F ∂F ∂F ∂F
=x +y −y +x
∂x ∂y ∂x ∂y
∂F ∂F
= (x − y) + (x + y) ,
∂x ∂y

as required.

We present one more useful version of the chain rule. Suppose that F is a function of u and
that u is a function of both x and y. This is sometimes written as

F = F (u) and u = u(x, y).

The corresponding chain rules are


∂F dF ∂u
=
∂x du ∂x
and
∂F dF ∂u
= .
∂y du ∂y

The chain diagram coresponding to this situation is illustrated below.

∂u x
∂x
dF
du
F u
∂u
∂y y

These chain rules may be easily written down after sketching the chain diagram.

1.6 Functions of more than two variables


Until now we have only discussed functions of two variables. In this section, the ideas met in this
chapter are generalised to functions of three variables. We present a summary only.

c 2018 School of Mathematics and Statistics, UNSW Sydney


1.6. FUNCTIONS OF MORE THAN TWO VARIABLES 21

Suppose that F is a function of three variables x, y and z. The partial derivatives of F are
defined by
F (x + h, y, z) − F (x, y, z)
Fx (x, y, z) = lim
h→0 h
F (x, y + h, z) − F (x, y, z)
Fy (x, y, z) = lim
h→0 h
F (x, y, z + h) − F (x, y, z)
Fz (x, y, z) = lim
h→0 h
wherever these limits exist. Equivalent notation for each of these partial derivatives is given below:
∂F ∂F ∂F
Fx = = D1 F, Fy = = D2 F, and Fz = = D3 F.
∂x ∂y ∂z
If (a, b, c) is a point in R3 then Fx (a, b, c) is the rate of change of F in the x-direction at (a, b, c).
Similarly, Fz (a, b, c) is the rate of change of F in the z-direction at (a, b, c).
The partial derivatives of F are calculated by differentiating F with respect to one variable and
treating the other variables as constants. For example, if

F (x, y, z) = e2x z cos y

then

Fx (x, y, z) = 2e2x z cos y, Fy (x, y, z) = −e2x z sin y and Fz (x, y, z) = e2x cos y.

A ‘hyper-surface’ in R4 is the natural generalisation of a surface in R3 . A function F of three


variables can be used to define a hyper-surface w = F (x, y, z) in R4 . Given a point (x0 , y0 , z0 , w0 )
on the surface, the equation of the ‘tangent plane’ to the surface at this point is given by

w = w0 + Fx (x0 , y0 , z0 )(x − x0 ) + Fy (x0 , y0 , z0 )(y − y0 ) + Fz (x0 , y0 , z0 )(z − z0 )

(assuming, of course, that that a ‘tangent plane’ to the surface exists at this point).
The total differential approximation ∆F is given by

∂F ∂F ∂F
∆F ≈ ∆x + ∆y + ∆z.
∂x ∂y ∂z

The chain rules are easily written down using chain diagrams. For example, suppose that F is
a function of x, y and z and that x, y and z are each functions of both u and v. The corresponding
chain diagram is shown below.

x
u
F y
v
z

c 2018 School of Mathematics and Statistics, UNSW Sydney


22 CHAPTER 1. FUNCTIONS OF SEVERAL VARIABLES

∂F
So the chain rule for is given by
∂u
∂F ∂F ∂x ∂F ∂y ∂F ∂z
= + + ,
∂u ∂x ∂u ∂y ∂u ∂z ∂u
∂F
while the chain rule for is given by
∂v
∂F ∂F ∂x ∂F ∂y ∂F ∂z
= + + .
∂v ∂x ∂v ∂y ∂v ∂z ∂v

The generalisation of each of these formulae to a function of four (or more) variables should be
obvious.

1.7 Maple notes


The plot3d command is useful for visualizing the graphs of functions of several variables.
∂f
The MAPLE diff command carries out partial differentiation: diff(f(x,y), x); computes ,
∂x
∂2f
and diff(f(x,y), x,y); calculates . For example,
∂y∂x
> diff(x^3*y-sin(y^2),x);

3x2 y

> diff(x^3*y-sin(y^2),y$2);

4 sin(y 2 )y 2 − 2 cos(y 2 )

c 2018 School of Mathematics and Statistics, UNSW Sydney


PROBLEMS FOR CHAPTER 1 23

Problems for Chapter 1

Questions marked with [R] are routine and with [H] are harder. You should make sure that you
can do the easier questions before you tackle the more difficult questions. Questions marked [HH]
are very hard and for interested students only.

Problems 1.1 : Sketching simple surfaces in R3


1. [R] For each of the following surfaces, sketch some level curves and sketch the yz-profile
(which is found by intersecting the surface with the plane x = 0). Hence sketch the surface.
a) z = x2 + y 2 b) x2 + y 2 + z 2 = 1
c) z 2 = x2 + y 2 − 1 d) z 2 = x2 + y 2
e) [H] z = x2 − y 2

Problems 1.2 : Partial differentiation

2 ∂z ∂z ∂2z
2. [R] Given that z = ex y , find , and .
∂x ∂y ∂y∂x

3. [R] In each case, find all first and second order partial derivatives and verify that
∂2z ∂2z
= .
∂x∂y ∂y∂x
a) z = x2 y + y 2 b) z = tan−1 (y/x) c) z = sin(x − cy)

Problems 1.3 : Tangent planes to surfaces

4. [R] Find a normal vector n and the equation of the tangent plane to the surface S at the
point x0 .
a) S : z = x2 + y 2 , x0 = (3, 5, 34).
b) S : z= 4x2 y, x0 = (2, −1, −16).
c) S : z = ln(x2 + 3y 2 ), x0 = (2, −1, ln 7).
 √ 
d) S : z 2 + x2 + y 2 = 1, x0 = 13 , 12 , 623 .

Problems 1.4 : The total differential approximation

x+1
5. [R] Suppose that z = . The measured values of x and y are 3 and 1 respectively and
y2 + 1
each of the measurements is made with an error whose absolute value is at most 0.02. Use
the total differential approximation of z to estimate the maximum error in the calculated
value of z.

c 2018 School of Mathematics and Statistics, UNSW Sydney


24 CHAPTER 1. FUNCTIONS OF SEVERAL VARIABLES

6. [R] The volume V of a football in the shape of an ellipsoid of revolution with semi-axes
of length a, b and b is given by
4
V = πab2 .
3
The values of a and b are measured to be 12.0 cm and 7.0 cm respectively, each to the
nearest millimetre.

a) Use these measurements to calculate the volume of the football.


b) Use the total differential to estimate the maximum absolute error in the calculated
value of V .
c) Hence estimate the percentage error in your answer of (a).
p
7. [R]
√ Use the total differential approximation of f (x, y) = x2 + y 2 to estimate
2.982 + 4.032 .

8. [R] The specific gravity S of a solid is given by

A
S= ,
A−W
where A and W are its weights in air and water respectively.
∂S ∂S
a) Find and .
∂A ∂W
b) If A and W are measured to be 15.1 gm and 5.1 gm respectively, and if each of these
measurements is made with an error whose absolute value is at most 0.2 gm, then
use the total differential approximation of S to estimate the maximum error in the
calculated value of S.

9. [R] The specific volume v of a compressible fluid flowing through a section of area A with
mean velocity V is given by
v = kAV
where k is a constant. If v decreases by 5% and A increases by 4%, then estimate the
percentage change in V .

10. [R] A triangle has two sides of length a and b with an included angle measuring π/3
radians. Given that a increases by 5%, b decreases by 6% and the included angle increases
by 2%, estimate the percentage increase of area of the triangle.

Problems 1.5 : Chain rules


dw
11. [R] Use a chain rule to calculate (as a function of t) when
dt
a) w = xy, x = et , y = t2 ;
b) w = x2 + y 2 + z 2 , x = cos t, y = sin t, z = t.

c 2018 School of Mathematics and Statistics, UNSW Sydney


PROBLEMS FOR CHAPTER 1 25

12. [R] A cylindrical metallic solid is expanding under heat in such a way that its height is
increasing at the rate of 0.1 cm/sec and its radius is increasing at the rate of 0.05 cm/sec.
Find the rate of increase of its volume at the instant when the height is 10 cm and the
radius is 5 cm.

13. [H] Suppose that f is a differentiable function of a single variable and F (x, y) is defined
by F (x, y) = f (x2 − y).

a) Show that F satisfies the partial differential equation


∂F ∂F
+ 2x = 0.
∂x ∂y

b) Given that F (0, y) = sin y for all y, find a formula for F (x, y).

14. [H] Consider the differential equation

∂2u ∂2u
− 16 = 0.
∂t2 ∂x2
(This is an example of the one dimensional wave equation, which can be used to model,
for example, the displacement u(x, t) of a particle at position x along a vibrating guitar
string at time t.)

a) Suppose that g is an arbitrary twice-differentiable function of one variable and that


u(x, t) = g(x + λt), where λ is a constant. Calculate uxx and utt .
b) Given that u(x, t) = g(x + λt), find all values of λ such that u satisfies the differential
equation.

15. [H] A point sits on the hyperboloid

F (x, y, z) = x2 + y 2 − z 2 = 1.

The position of the point moves with respect to time as x(t) = z(t) = t. The paramerisation
of y is unspecified aside from y(t) 6= 0.
dy
a) Find the parameterisation of the y co-ordinate and then find dt .
b) Calculate the normal to the hyperboloid at the point (x, y, z), this is the vector
 
∂F ∂F ∂F T
∇F = , , .
∂x ∂y ∂z

c) The chain rule states that


 T
dF dx dy dz
= (∇F ) · , , .
dt dt dt dt
 T
dx dy dz
Deduce that (∇F ) · , ,
dt dt dt = 0 and interpret this equation geometrically. Use
dy
this equation to find dt (without first finding y as a function of t as in part a).

c 2018 School of Mathematics and Statistics, UNSW Sydney


26 CHAPTER 1. FUNCTIONS OF SEVERAL VARIABLES

16. [HH] A function f of two variables is said to be homogeneous of degree n if

f (tx, ty) = tn f (x, y)

whenever t > 0. Show that such a function f satisfies the equation


∂f ∂f
x +y = nf.
∂x ∂y

c 2018 School of Mathematics and Statistics, UNSW Sydney


27

Chapter 2

Integration techniques

Many real world problems, such as

• calculating the area of a region

• locating the centre of a region,

• calculating the volume, surface area and centre of mass of a solid,

• calculating the length of a curve,

• determining the probability that a certain event occurs,

• analysing the harmonics of a musical instrument,

• determining the solution to models of various physical phenomena, and

• calculating the work done by a force,

boil down to evaluating an appropriate integral. Some of these applications were explored in last
semester’s course while others will be discussed later in this course or in second year. But what
these applications demand is mastery of integration. In this chapter we work towards that goal by
examining techniques for integrating various types of integrals that arise when solving real world
problems. The hard work done here will pay off when applications of such integrals are studied.

2.1 Trigonometric integrals


(Ref: SH10 §8.3)

In this section we focus specifically on integrals involving the trigonometric functions.

2.1.1 Integrating powers of sine and cosine


The first class of trigonometric integrals considered consist of integrals of the form
Z
cosm x sinn x dx, (2.1)

c 2018 School of Mathematics and Statistics, UNSW Sydney


28 CHAPTER 2. INTEGRATION TECHNIQUES

where m and n are non-negative integers. There are essentially two cases: (i) either m or n (or
both) are odd; or (ii) both m and n are even. We’ll begin with the first case.
Case (i). Suppose that m is odd in (2.1). Then we use the substitution u = sin x along with
the identity

sin2 x + cos2 x = 1

to evaluate the integral.

Z
Example 2.1.1. Evaluate the integral cos3 x sin4 x dx.

Solution. The substitution

u = sin x, du = cos x dx

yields

Z Z
3 4
cos x sin x dx = cos2 x sin4 x cos x dx
Z
= (1 − sin2 x) sin4 x cos x dx
Z
= (1 − u2 )u4 du
Z
= u4 − u6 du

u5 u7
= − +C
5 7
sin5 x sin7 x
= − + C.
5 7

If n is odd in (2.1) then we use the substitution u = cos x and follow the same strategy. (If
both m and n are odd, then either of the substitutions u = sin x or u = cos x will work.)

Z
Example 2.1.2. Evaluate the integral cos6 x sin5 x dx.

Solution. This time we use the substitution

u = cos x, du = − sin x dx

c 2018 School of Mathematics and Statistics, UNSW Sydney


2.1. TRIGONOMETRIC INTEGRALS 29

to evaluate the integral:


Z Z
6 5
cos x sin x dx = − cos6 x(sin2 x)2 (− sin x) dx
Z
=− cos6 x(1 − cos2 x)2 (− sin x) dx
Z
=− u6 (1 − u2 )2 du
Z
=− u6 − 2u8 + u10 du
 7 
u 2u9 u11
=− − + +C
7 9 11
cos7 x 2 cos9 x cos11 x
=− + − + C.
7 9 11

Case (ii). The case where both m and n are even in (2.1) requires an entirely different approach.
This time we use the identities

1 + cos 2x 1 − cos 2x
cos2 x = and sin2 x = (2.2)
2 2

to change integral (2.1) into a sum of integrals of the form


Z
cosk (2x) dx.

We then repeat the methods of Case (i) or Case (ii) until each integral in the sum is easy to
compute.
Z
Example 2.1.3. Evaluate sin2 x dx.

Solution. The second identity in (2.2) gives


Z Z
2 1
sin x dx = 1 − cos 2x dx
2
 
1 sin 2x
= x− + C.
2 2

The next example is much harder.


Z
Example 2.1.4. Evaluate sin2 x cos4 x dx.

c 2018 School of Mathematics and Statistics, UNSW Sydney


30 CHAPTER 2. INTEGRATION TECHNIQUES

Solution. The identities (2.2) give


Z Z   2
2 4 1 − cos 2x 1 + cos 2x
sin x cos x dx = dx
2 2
Z
1
= (1 − cos 2x)(1 + cos 2x)2 dx
8
Z
1
= 1 + cos 2x − cos2 2x − cos3 2x dx
8
Z Z
x sin 2x 1 1
= + − cos2 2x dx − cos3 2x dx. (2.3)
8 16 8 8

The first integrand of (2.3) is an even power of cos 2x and is evaluated using the first identity in
(2.2):
Z Z
2 1
cos 2x dx = 1 + cos 4x dx
2
x sin 4x
= + + C1 .
2 8
The second integrand of (2.3) is an odd power of cos 2x. The substitution

u = sin 2x, du = 2 cos 2x dx

gives
Z Z
1
cos3 2x dx = (1 − sin2 2x)2 cos 2x dx
2
Z
1
= 1 − u2 du
2
u u3
= − + C2
2 6
sin 2x sin3 2x
= − + C2 .
2 6
Following from (2.3) we obtain
Z
x sin 2x x sin 4x sin 2x sin3 2x
sin2 x cos4 x dx = + − − − + +C
8 16 16 64 16 48
x sin 4x sin3 2x
= − + + C.
16 64 48

2.1.2 Integrating multiple angles of sine and cosine


The next class of trigonometric integrals consists of integrals of the form
Z Z Z
cos mx sin nx dx, cos mx cos nx dx or sin mx sin nx dx, (2.4)

c 2018 School of Mathematics and Statistics, UNSW Sydney


2.1. TRIGONOMETRIC INTEGRALS 31

where m and n are real numbers. These have many applications, including analysis of waves,
musical harmonics and distribution of heat in solids. Such applications are discussed in some
second year courses.
To evaluate the integrals in (2.4) we need the following trigonometric identities.

Lemma 2.1.5. Suppose that A and B are real numbers. Then


1

sin A cos B = 2 sin(A + B) + sin(A − B) (2.5)
1

cos A cos B = 2 cos(A − B) + cos(A + B) (2.6)
1

sin A sin B = 2 cos(A − B) − cos(A + B) (2.7)

Proof. We only prove the first identity; the other proofs are similar. We begin with the sum and
difference formulae

sin(A + B) = sin A cos B + cos A sin B


sin(A − B) = sin A cos B − cos A sin B.

Adding the two identities gives

sin(A + B) + sin(A − B) = 2 sin A cos B,

whereupon dividing by 2 establishes (2.5).


Z
Example 2.1.6. Evaluate cos 5x cos 3x dx.

Solution. Identity (2.6) implies that


Z Z
1
cos 5x cos 3x dx = cos(5x − 3x) + cos(5x + 3x) dx
2
Z
1
= cos(2x) + cos(8x) dx
2
sin 2x sin 8x
= + + C.
4 16

2.1.3 Integrating powers of tan and sec


Students will not be expected to evaluate difficult integrals involving powers of tan and sec. How-
ever, it is expected that they will be able to use the facts that

d d
tan2 x + 1 = sec2 x, tan x = sec2 x and sec x = tan x sec x
dx dx
to find suitable substitutions or strategies.
Z
Example 2.1.7. Evaluate tan2 x dx.

c 2018 School of Mathematics and Statistics, UNSW Sydney


32 CHAPTER 2. INTEGRATION TECHNIQUES

Proof. The Pythagorean identity gives


Z Z
tan x dx = sec2 x − 1 dx
2

= tan x − x + C.

Z
Example 2.1.8. Evaluate sec4 x tan x dx.

Proof. The substitution


u = sec x, du = sec x tan x dx
yields
Z Z
4
sec x tan x dx = u3 du

sec4 x
= + C.
4
(Of course, one can always by-pass the substitution and integrate by inspection.)

2.2 Reduction formulae


We begin with an example.
Example 2.2.1. Suppose that In is defined by
Z π/4
In = tann x dx
0

whenever n ≥ 0. Show that


1
In = − In−2 ∀n ≥ 2. (2.8)
n−1
Hence evaluate Z π/4
tan6 x dx.
0

Proof. By the identity tan2 x = sec2 x − 1,


Z π/4
In = tann−2 x tan2 x dx
0
Z π/4
= tann−2 x(sec2 x − 1) dx
0
Z π/4 Z π/4
n−2 2
= tan x sec x dx − tann−2 x dx
0 0
 π/4
tann−1 x
= − In−2
n−1 0
1
= − In−2
n−1

c 2018 School of Mathematics and Statistics, UNSW Sydney


2.2. REDUCTION FORMULAE 33

as required.
Using (2.8), we see that
Z π/2
tan6 x dx = I6
0
1
= − I4
5  
1 1
= − − I2
5 3
 
1 1 1
= − + − I0
5 3 1
Z π/4
1 1 1
= − + − dx
5 3 1 0
1 1 1 π
= − + −
5 3 1 4
13 π
= − .
15 4
(Note that I0 must be evaluated directly, since formula (2.8) is only valid when n ≥ 2.)

Formula (2.8) is an example of a reduction formula, since it expresses an integral in terms of


a ‘smaller’ integral of the same type. As illustrated above, once a reduction formula is known,
integrals of that type may be evaluated rapidly. Although not the case with the previous example,
most reduction formulae are proved using integration by parts.
Example 2.2.2. Suppose that Z
In = sinn x dx

whenever n ≥ 0. Show that


sinn−1 x cos x n − 1
In = − + In−2 ∀n ≥ 2.
n n
Solution. If we apply integration by parts with
u = sinn−1 x v = − cos x
′ n−2
u = (n − 1) sin x cos x v ′ = sin x
then
Z
In = sinn−1 x sin x dx
Z
n−1
= − sin x cos x + (n − 1) sinn−2 x cos x cos x dx
Z
n−1
= − sin sinn−2 x(1 − sin2 x) dx
x cos x + (n − 1)
Z Z
n−1 n−2
= − sin x cos x + (n − 1) sin x dx − (n − 1) sinn x dx

= − sinn−1 x cos x + (n − 1)In−2 − (n − 1)In .

c 2018 School of Mathematics and Statistics, UNSW Sydney


34 CHAPTER 2. INTEGRATION TECHNIQUES

If we gather the In terms to the left-hand side then

nIn = − sinn−1 x cos x + (n − 1)In−2 .

Dividing both sides by n gives the result.

In the final example, the reduction formula has two parameters (m and n) instead of one.

Example 2.2.3. Suppose that


Z π/2
Im,n = cosm x sinn x dx (2.9)
0

whenever m and n are nonnegative integers.

(a) [X] Show that 


  
 m−1 Im−2,n
 provided that m ≥ 2
m+n
Im,n =   (2.10)

 n−1 Im,n−2

provided that n ≥ 2.
m+n

Z π/2
(b) [R] Using the result of (a), evaluate cos4 x sin6 x dx.
0

Solution. (a) Integration by parts with

sinn+1 x
u = cosm−1 x v=
n+1
u′ = −(m − 1) cosm−2 x sin x v = sinn x cos x

gives
 π/2 Z
cosm−1 x sinn+1 x m − 1 π/2
Im,n = + cosm−2 x sinn+2 x dx
n+1 0 n + 1 0
Z π/2
m−1
= sinn x cosm−2 x(1 − cos2 x) dx
n+1 0
m−1 m−1
= Im−2,n − Im,n .
n+1 n+1
By bringing the Im,n terms to the left-hand side and rearranging, the first formula is obtained. The
second formula is proved similarly.
(b) The first formula in (2.10) allows us to reduce the first parameter:
Z π/2
cos4 x sin6 x dx = I4,6
0
3
= I2,6
10
3 1
= · I0,6 .
10 8

c 2018 School of Mathematics and Statistics, UNSW Sydney


2.2. REDUCTION FORMULAE 35

The second formula in (2.10) allows us to reduce the second parameter:


Z π/2
3 1
cos4 x sin6 x dx = · I0,6
0 10 8
3 1 5
= · · I0,4
10 8 6
3 1 5 3
= · · · I0,2
10 8 6 4
3 1 5 3 1
= · · · · I0,0 .
10 8 6 4 2
Finally, we note from (2.9) that I0,0 = π2 . Hence
Z π/2
3 1 5 3 1 π 3π
cos4 x sin6 x dx = · · · · · = ,
0 10 8 6 4 2 2 512

completing the problem.

2.2.1 [X] Application: the irrationality of π


In this subsection, we use a reduction formula to prove that π is an irrational number. Students
studying MA1231 may want to skip to the next section if this does not interest them.
Although the number π has been studied for over 2000 years, it was only in 1770 that it was
shown (by Johann Heinrich Lambert) that π is an irrational number. The proof we give is simpler
than Lambert’s proof and is similar to a proof discovered in the twentieth century. The main
idea (as with many other irrationality proofs) is to assume that π is a rational number and find a
contradition. In our proof, a contradiction arises by showing that a certain definite integral, which
is known to lie in the interval (0, 1), is an integer if one assumes that π is a rational number.
Suppose that q is a positive integer. For each natural number n, define the integral In by
Z π/2  n
q 2n π2
In = − x2 cos x dx. (2.11)
n! −π/2 4

Lemma 2.2.4. Suppose that q is a positive integer and In is defined as above. If n ≥ 2 then

In = (4n − 2)q 2 In−1 − q 4 π 2 In−2 . (2.12)

Moreover,
I1 = 4q 2 and I0 = 2.

Proof. We give an outline proof only; students should be able to fill in the details. Suppose that
n ≥ 2. Integration by parts with
 n
π2 2
u= −x v = sin x
4
 2 n−1
′ π 2
u = −2nx −x v ′ = cos x
4

c 2018 School of Mathematics and Statistics, UNSW Sydney


36 CHAPTER 2. INTEGRATION TECHNIQUES

yields
Z π/2  n−1
2nq 2n π2
In = x − x2 sin x dx.
n! −π/2 4
A second application of integration by parts with
 2 n−1
π 2
u=x −x v ′ = sin x
4
gives
Z π/2  n−1 Z π/2  2 n−2
2q 2n π2 2 4q 2n 2 π 2
In = −x cos x dx − x −x cos x dx
(n − 1)!−π/2 4 (n − 2)! −π/2 4
Z π/2  2 n−2
2 4q 2n 2 π 2
= 2q In−1 − x −x cos x dx.
(n − 2)! −π/2 4
 2 
2 π2 π 2
In the right-most integrand, write x as − − x . Hence
4 4
Z  n−2 Z  n−1 !
π/2 π/2
4q 2n π2 π2 π2
In = 2q 2 In−1 − − x2 cos x dx − − x2 cos x dx
(n − 2)! 4 −π/2 4 −π/2 4
= 2q 2 In−1 − q 4 π 2 In−2 + 4(n − 1)q 2 In−1 .

If we gather both In−1 terms then we obtain (2.12) as required. The proof that I1 = 4q 2 and I0 = 2
is straightforward and is left as an exercise.

The next lemma will be used to show that 0 < In < 1 for sufficiently large n.
an
Lemma 2.2.5. If a > 0 then lim = 0.
n→∞ n!

Proof. Take N to be any integer greater than 2a. If n > N then


an aN an−N
= ·
n! N! (N + 1)(N + 2) . . . n
aN a a a
= · · ··· .
N! N +1 N +2 n
aN
Now is some fixed number and
N!
a 1 a 1 a 1
< , < , ..., < ,
N +1 2 N +2 2 n 2
so  n−N
an aN 1
0< < .
n! N! 2
an
As n → ∞, the right hand side approaches 0 and hence lim = 0 by a sequence version of the
n→∞ n!
pinching theorem.

c 2018 School of Mathematics and Statistics, UNSW Sydney


2.3. TRIGONOMETRIC AND HYPERBOLIC SUBSTITUTIONS 37

Theorem 2.2.6. The number π is irrational.

Proof. Suppose that π = pq where p and q are positive integers and consider the integral In defined
by (2.11) whenever n ≥ 0.
First we argue by mathematical induction that In is an integer for every value of n. By Lemma
2.2.4, I0 and I1 are integers. Suppose inductively that Ik−2 and Ik−1 are integers whenever k ≥ 2.
By (2.12) and the assumption that π = p/q,

Ik = (4n − 2)q 2 Ik−1 − p2 q 2 Ik−2

and so Ik is also an integer. Hence In is an integer whenever n ≥ 0.


On the other hand, it is not hard to see that
 2 n  2 n
π π
0< − x2 cos x ≤
4 4

whenever n ≥ 0 and − π2 < x < π2 . Hence


Z π/2  n
q 2n π2
0 < In < dx
n! −π/2 4
2n  2 n
q π
= π
n! 4
p (p2 /4)n
= · . (2.13)
q n!

As n → ∞, the expression in (2.13) approaches 0 by Lemma 2.2.5. Hence 0 < In < 1 whenever n
is sufficiently large. In particular, there is a large value of n for which In is not an integer, giving
a contradiction.
Hence we conclude that π is an irrational number.

2.3 Trigonometric and hyperbolic substitutions


(Ref: SH10 §8.4)

Many integrals can be evaluated by finding the right substitution, but unfortunately there is
no general systematic way to do this. Integrals involving square roots of quadratics often yield to
trigonometric or hyperbolic substitutions.
The following√table indicates which substitution can be tried for integrals containing an expres-
sion of the form ±x2 ± a2 .

Expression in integrand Trigonometric substitution Hyperbolic substitution



a2 − x 2 x = a sin θ x = a tanh θ

a2 + x 2 x = a tan θ x = a sinh θ

x 2 − a2 x = a sec θ x = a cosh θ

c 2018 School of Mathematics and Statistics, UNSW Sydney


38 CHAPTER 2. INTEGRATION TECHNIQUES

Whether or not a trigonometric substitution is more efficient than a hyperbolic substitution de-
pends on the particular integral. In general, trigonometric substitutions are favoured because once
integration is completed in the variable θ, it is easier to restate the result in terms of x.
Z p
Example 2.3.1. Evaluate 1 − x2 dx.

Solution. The substitution


x = sin θ dx = cos θ dθ

yields
Z p Z p
1 − x2 dx = 1 − sin2 θ cos θ dθ
Z √
= cos2 θ cos θ dθ (since sin2 θ + cos2 θ = 1)
Z
= cos2 θ dθ
Z
1
= 1 + cos 2θ dθ (by the double-angle formula for cosine)
2
 
1 sin 2θ
= θ+ +C
2 2
1
= (θ + sin θ cos θ) + C (by the double-angle formula for sin).
2

To state our answer in terms of x, it is easiest to draw a triangle.

x 1
sin θ = x
1
θ

1 − x2

1 − x2
We see that θ = sin−1 x and cos θ = . Hence
1
Z p
1  −1 p 
1 − x2 dx = sin x + x 1 − x2 + C.
2

Z
dx
Example 2.3.2. Evaluate .
(4 + x2 )3/2

Solution. By using the substitution

x = 2 tan θ dx = 2 sec2 θ dθ

c 2018 School of Mathematics and Statistics, UNSW Sydney


2.3. TRIGONOMETRIC AND HYPERBOLIC SUBSTITUTIONS 39

and the identity tan2 θ + 1 = sec2 θ, we have

Z Z
dx 2 sec2 θ dθ
= √ 3
(4 + x2 )3/2 4 tan2 θ + 4
Z
2 sec2 θ dθ
= √ 3
2 tan2 θ + 1
Z
2 sec2 θ dθ
=
(2 sec θ)3
Z
1 dθ
=
4 sec θ
Z
1
= cos θ dθ
4
sin θ
= + C.
4

To write the answer in terms of x, consider the following triangle.


x x2 + 4
tan θ = x
2
θ
2

x
Thus sin θ = √ and hence
2
x +4

Z
dx x
2 3/2
= √ + C.
(4 + x ) 4 x2 + 4

Z
x3 dx
Example 2.3.3. Use the substitution x = 3 cosh θ to evaluate √ .
x2 − 9

Solution. The substitution

x = 3 cosh θ dx = 3 sinh θ

c 2018 School of Mathematics and Statistics, UNSW Sydney


40 CHAPTER 2. INTEGRATION TECHNIQUES


and the identity cosh2 θ − sinh2 θ = 1 gives x2 − 9 = 3 sinh θ. Hence
Z Z 4
x3 dx 3 cosh3 θ sinh θ dθ
√ = p
x2 − 9 9 cosh2 θ − 9
Z 4
3 cosh3 θ sinh θ dθ
= (since cosh2 θ − sinh2 θ = 1)
3 sinh θ
Z
= 27 cosh3 θ dθ
Z
= 27 cosh θ cosh2 θ dθ
Z
= 27 cosh θ(1 + sinh2 θ) dθ (since cosh2 θ − sinh2 θ = 1)
Z
= 27 1 + u2 dx (using the substitution u = sinh θ)

= 27 u + 31 u3 + C.

As was observed above, x2 − 9 = 3 sinh θ and hence
p
u = sinh θ = 31 x2 − 9.
Therefore
Z
x3 dx 
√ = 27 u + 13 u3 + C
x2 − 9
p p
= 9 x2 − 9 + 31 ( x2 − 9)3 + C.

Exercise: Evaluate the integral in Example 2.3.3 by using an appropriate trigonometric substi-
tution.

2.4 Integrating rational functions


(Ref: SH10 §8.5)

The main result of this section is that every rational function has an antiderivative among the
elementary functions. Moreover, there is a systematic way of finding this antiderivative.
Before we begin, we remind the reader that a rational function f is of the form
p(x)
f (x) = ,
q(x)
where p and q are polynomials. We say that f is proper if the degree of the denominator q
is greater than the degree of the numerator p. We say that f is improper if the degree of the
denominator q is less than or equal to the degree of the numerator p. We say that a quadratic
polynomial is irreducible if it has no real linear factors. (Equivalently, a quadratic ax2 + bx + c is
irreducible if its discriminant b2 − 4ac is negative.)
Before articulating the general strategy for integrating a rational function, we revise some known
tactics for integrating simpler examples.

c 2018 School of Mathematics and Statistics, UNSW Sydney


2.4. INTEGRATING RATIONAL FUNCTIONS 41

Z
x
Example 2.4.1. Evaluate dx.
x2 + 2x + 10
Solution. The first tactic is to rewrite integrand so that the derivative of the denominator is sitting
on the numerator:
Z Z
x 1 2x
dx = dx
x2 + 2x + 10 2 x2 + 2x + 10
Z
1 (2x + 2) − 2
= dx
2 x2 + 2x + 10
Z
1 2x + 2 2
= 2
− 2 dx.
2 x + 2x + 10 x + 2x + 10
The first term can now be integrated using the ln function. To integrate the second term, we
complete the square in the denominator:

x2 + 2x + 10 = x2 + 2x + 1 + 9
= (x + 1)2 + 32 .

Hence
Z Z Z
x 1 2x + 2 1
2
dx = 2
dx − dx
x + 2x + 10 2 x + 2x + 10 (x + 1)2 + 32
 
1 2 1 −1 x + 1
= ln |x + 2x + 10| − tan + C.
2 3 3

The integrand of Example 2.4.1 is a proper rational function whose denominator is an irreducible
quadratic. Any such function can be integrated using the techniques illustrated in that example.
We turn now to study a general strategy for integrating any rational function.

2.4.1 The overall strategy


In this subsection we give an overview of the approach to integrating rational functions. The basic
procedure is summarised below, afterwards illustrated with an example.

1. If the rational function is improper, then use polynomial division to write f as the sum
of a polynomial and a proper rational function. Since the polynomial is easy to integrate,
we need only focus on integrating a proper rational function.

2. It can be shown using algebra that every proper rational function f can be written as a
unique sum of functions of the form
A Bx + C
and , (2.14)
(x − a)k (x2 + bx + c)k

where the quadratic x2 + bx + c is irreducible. This sum is called the partial fractions
decomposition of f . We discuss how to find the partial fractions decomposition in the next
subsection.

c 2018 School of Mathematics and Statistics, UNSW Sydney


42 CHAPTER 2. INTEGRATION TECHNIQUES

3. Now we only need to integrate functions of the form given by (2.14). By completing the
square, using a substitution or performing simple algebraic manipulation, these can be
integrated by the standard formulae
Z
xk+1
xk dx = + C, k 6= −1
k+1
Z ′
g (x)
dx = ln |g(x)| + C
g(x)
Z
dx 1 x
2 2
dx = tan−1 + C.
a +x a a
Z
x4 − 5x3 + 12x2 − 21x + 35
Example 2.4.2. Find dx.
x3 − 3x2 + 4x − 12
Solution. Denote the integrand by f (x).
Step 1. Note that f is improper. So polynomial division gives
x+ 2
x3 − 3x2 + 4x − 12 ) x4− 5x3
+ 12x2 − 21x + 35
x4 − 3x3 + 4x2 − 12x
−2x3 + 8x2 − 9x + 35
−2x3 + 6x2 − 8x + 24
2x2 − x + 11
and hence
2x2 − x + 11
f (x) = x + 2 + .
x3 − 3x2 + 4x − 12
Note that rational expression on the far right-hand side is proper.
2x2 − x + 11
Step 2. The partial fractions decomposition of 3 is given by
x − 3x2 + 4x − 12
2x2 − x + 11 2 1
3 2
= − 2 . (2.15)
x − 3x + 4x − 12 x−3 x +4
(Note that the quadratic x2 + 4 is irreducible.) It is not hard to verify that (2.15) is true; the
question is, How does one find such a decomposition? We answer this question in Subsection 2.4.2.
Step 3. The results of Steps 1 and 2 give
2 1
f (x) = x − 2 + − 2 .
x−3 x +4
To integrate f , we need only integrate each term in the sum. Hence
Z 4 Z  
x − 5x3 + 12x2 − 21x + 35 2 1
dx = x − 2 + − dx
x3 − 3x2 + 4x − 12 x − 3 x2 + 4
= 12 x2 − 2x + 2 ln |x − 3| − 1
2 tan−1 x
2 + C,

completing the problem.

In the next subsection, we focus on finding the partial fractions decomposition of a proper
rational function.

c 2018 School of Mathematics and Statistics, UNSW Sydney


2.4. INTEGRATING RATIONAL FUNCTIONS 43

2.4.2 Partial fractions decompositions


To find the partial fractions decomposition of a proper rational function pq , we factorise the de-
nominator q as much as possible; that is, we express q as a product of real linear factors and real
irreducible quadratic factors. The form of the partial fractions decomposition is determined by this
factorisation. There are several cases, depending on the type of factorisation.
Case 1: The denominator splits into distinct linear factors. Examples of two such rational
functions and the form of their partial fractions decompositions are given below:
x−3 A B
= +
(x − 1)(x − 2) x−1 x−2
2
x −x+7 A B C
= + + .
x(2x + 1)(x − 3) x 2x + 1 x − 3
The constants A, B and C in each case can be determined using the following method.
7x − 1
Example 2.4.3. Find the partial fractions decomposition of 2 .
x − 2x − 3
Solution. By factorising we find that x2 − 2x − 3 = (x − 3)(x + 1). So the partial fractions
decomposition takes the form
7x − 1 A B
= + ,
(x − 3)(x + 1) x−3 x+1
where A and B are constants to be determined. To find A and B, multiply through by (x−3)(x+1)
to obtain the polynomial equation
7x − 1 = A(x + 1) + B(x − 3) ∀x ∈ R.
Since this identity is true for all values x, the values of A and B are easily determined by choosing
suitable values of x:
x=3 ⇒ 7 × 3 − 1 = A(3 + 1) ⇒ A=5
x = −1 ⇒ 7 × (−1) − 1 = B(−1 − 3) ⇒ B = 2.
Hence the partial fractions decomposition is given by
7x − 1 7x − 1 5 2
= = + .
x2 − 2x − 3 (x − 3)(x + 1) x−3 x+1
This may be easily verified by rewritting the right-hand side over a common denominator and
simplifying.

Case 2: The denominator has a repeated linear factor. Examples of two such rational functions
and the form of their partial fractions decompositions are given below:
x2 + 1 A B C
3
= + 2
+
(x + 4) x + 4 (x + 4) (x + 4)3
x2 − 2 A B C
2
= + + .
(x − 1)(x − 2) x − 1 x − 2 (x − 2)2
Note carefully how the repeated factors appear on the right-hand side. The constants A, B and C
in each case can be determined using the following method.

c 2018 School of Mathematics and Statistics, UNSW Sydney


44 CHAPTER 2. INTEGRATION TECHNIQUES

x2 − 3x + 8
Example 2.4.4. Find the partial fractions decomposition of .
x(x − 2)2
Solution. The partial fractions decomposition takes the form

x2 − 3x + 8 A B C
= + + ,
x(x − 2)2 x x − 2 (x − 2)2

where A, B and C are constants. To find these constants, we multiply through by x(x − 2)2 to
obtain
x2 − 3x + 8 = A(x − 2)2 + Bx(x − 2) + Cx ∀x ∈ R.
Now substitute the obvious values for x to determine the values of A and C:

x=2 ⇒ 6 = 2C ⇒ C=3
x=0 ⇒ 8 = 4A ⇒ A = 2.

To determine B, we can substitute any other value for x. However, it is best to choose a small
integer to keep the arithmetic simple:

x=1 ⇒ 6=A−B+C ⇒ B = A + C − 6 = −1.

(Alternately, one can find B by noting that

x2 − 3x + 8 = 2(x − 2)2 + Bx(x − 2) + 3x ∀x ∈ R

and comparing coefficients for x2 .) Hence we obtain the partial fractions decomposition

x2 − 3x + 8 2 1 3
2
= − + .
x(x − 2) x x − 2 (x − 2)2

Case 3: The denominator has an irreducible quadratic factor. Examples of two such rational
functions and the form of their partial fractions decompositions are given below:

x2 + x A Bx + C
2
= + 2
(x − 1)(x + 9) x−1 x +9
3
x − 2x + 4 Ax + B Cx + D
= 2 + 2
(x2 + 5)(x2 + x + 1) x +5 x +x+1

Note carefully how the irreducible quadratic appears on the right-hand side. As before, the con-
stants A, B, C and D in each case can be determined by algebra.
4x2 + 2x + 1
Example 2.4.5. Find the partial fractions decomposition of .
(x + 1)(x2 + x + 1)
Solution. The partial fractions decomposition takes the form

4x2 + 2x + 1 A Bx + C
2
= + 2 ,
(x + 1)(x + x + 1) x+1 x +x+1

c 2018 School of Mathematics and Statistics, UNSW Sydney


2.4. INTEGRATING RATIONAL FUNCTIONS 45

where A, B and C are constants. Multiplying through by (x + 1)(x2 + x + 1) gives

4x2 + 2x + 1 = A(x2 + x + 1) + (Bx + C)(x + 1) ∀x ∈ R.

Now substitute suitable values for x:

x = −1 ⇒ 3=A ⇒ A=3
x=0 ⇒ 1 = A+C ⇒ C = 1 − A = −2
x=1 ⇒ 7 = 3A + 2(B + C) ⇒ B = 1.

(Alternatively, after finding A, we could compare the coefficients of the x2 terms on both sides to
deduce that B = 1, and compare the constant terms to deduce that C = −2.) Hence

4x2 + 2x + 1 3 x−2
2
= + 2
(x + 1)(x + x + 1) x+1 x +x+1

is the partial fractions decomposition.

Case 4: The denominator has repeated irreducible quadratic factor. This case rarely appears
in first year mathematics courses because it is more computationally intensive. Nevertheless, for
completeness the basic form of decomposition is illustrated below:

x2 + x Ax + B Cx + D Ex + F
2 3
= 2 + 2 2
+ 2
(x + 9) x +9 (x + 9) (x + 9)3
x3 − 2x + 4 A Bx + C Dx + E
2 2
= + 2 + 2 .
(x − 2)(x + x + 1) x − 2 x + x + 1 (x + x + 1)2

As before, the constants appearing in each example can be determined by algebra.


The final example tests our ability to generalise each of these cases to rational functions whose
denominators have many factors of different types.

Example 2.4.6. Write down the form of partial fractions decomposition for the rational function
given by
4x4 − 3x2 + x − 9
.
x3 (x − 7)(x2 + 3)2 (x2 + x + 2)
(You are not required to evaluate the constant coefficients.)

Solution. The partial fractions decomposition is given by

4x4 − 3x2 + x − 9 A B C D Ex + F Gx + H Ix + J
3 2 2 2
= + 2+ 3+ + 3 + 2 2
+ 2
x (x − 7)(x + 3) (x + x + 2) x x x x−7 x +3 (x + 3) x +x+2

where A, B, . . . , J are real constants.

Remark 2.4.7. It is important to check that the denominator of the rational function has been
completely factorised before writing down the form of partial fractions decomposition. In particular,
one should check that every quadratic factor appearing in the factorisation is irreducible.

c 2018 School of Mathematics and Statistics, UNSW Sydney


46 CHAPTER 2. INTEGRATION TECHNIQUES

2.4.3 Integrating rational functions: two examples


In this subsection we illustrate how techniques discussed in the previous subsections are applied.
Z
8x3 − 12x2 − 13x − 5
Example 2.4.8. Find dx.
2x2 − 3x − 2
Solution. We follow the steps outlined in Subsection 2.4.1. Denote the integrand by f (x).
Step 1. Since f is improper, we begin with polynomial division. This gives
4x
2x2 − 3x − 2 ) 8x3− 12x2
− 13x − 5
8x3 − 12x2 − 8x
− 5x − 5

whence
−5x − 5
f (x) = 4x +
2x2 − 3x − 2
5x + 5
= 4x − 2 .
2x − 3x − 2
Step 2. To find the partial fractions decomposition of
5x + 5
2x2 − 3x − 2
we factorise the denominator:

2x2 − 3x − 2 = (2x + 1)(x − 2).

Hence the decomposition is given by


5x + 5 A B
= + ,
(2x + 1)(x − 2) 2x + 1 x − 2
where A and B are constants. Multiplying through by (2x + 1)(x − 2) gives

5x + 5 = A(x − 2) + B(2x + 1)

and by using the substitution x = 2 we deduce that B = 3. By comparing coefficients of x on both


sides it is easy to see that A = −1. Hence
5x + 5 −1 3
= + .
(2x + 1)(x − 2) 2x + 1 x − 2
Step 3. By the previous two steps,
1 3
f (x) = 4x + − .
2x + 1 x − 2
Integrating gives Z
f (x) dx = 2x2 + 12 ln |2x + 1| − 3 ln |x − 2| + C,

completing our answer.

c 2018 School of Mathematics and Statistics, UNSW Sydney


2.5. OTHER SUBSTITUTIONS 47

Z
4x2 − 15x + 29
Example 2.4.9. Find dx.
(x − 5)(x2 − 4x + 13)
Solution. The integrand is a proper rational function and its denominator completely factorised in
the real numbers. So we immediately look for its partial fractions decomposition, which is of the
form
4x2 − 15x + 29 A Bx + C
2
= + 2
(x − 5)(x − 4x + 13) x − 5 x − 4x + 13
for some real constants A, B and C. Hence
4x2 − 15x + 29 = A(x2 − 4x + 13) + (Bx + C)(x − 5),
from which appropriate substitutions allow the evaluation of the unknown constants:
x=5 ⇒ 54 = 18A ⇒ A=3
x=0 ⇒ 29 = 13A − 5C ⇒ C=2
x=1 ⇒ 18 = 10A − 4(B + C) ⇒ B = 1.
Hence
4x2 − 15x + 29 3 x+2
= + .
(x − 5)(x2 − 4x + 13) x − 5 x2 − 4x + 13
The first term of the decomposition is easy to integrate. We therefore focus on the second term:
Z Z
x+2 1 2x + 4
dx = dx
x2 − 4x + 13 2 x2 − 4x + 13
Z Z 
1 2x − 4 8
= dx + dx
2 x2 − 4x + 13 x2 − 4x + 13
Z Z
1 2x − 4 1
= 2
dx − 4 2
dx
2 x − 4x + 13 x − 4x + 13
Z
1 1
= ln |x2 − 4x + 13| − 4 dx
2 (x − 2)2 + 9
 
1 2 4 −1 x − 2
= ln |x − 4x + 13| − tan + C.
2 3 3
Putting everything together gives
Z  
4x2 − 15x + 29 1 2 4 −1 x − 2
dx = 3 ln |x − 5| + ln |x − 4x + 13| − tan + C.
(x − 5)(x2 − 4x + 13) 2 3 3

2.5 Other substitutions


(Ref: SH10 §8.6)

The method of partial fractions allows us, in principle, to find an antiderivative, among the
elementary functions, for any given rational function. So given a ‘non-standard’ integral, a sound
technique for integration is to look for a substitution that will convert the given integral into the
integral of rational function. Choosing a good substitution is often a matter of experience and a
little inspiration.

c 2018 School of Mathematics and Statistics, UNSW Sydney


48 CHAPTER 2. INTEGRATION TECHNIQUES

Example 2.5.1. Evaluate the following integrals.


Z
dx
(a)
1 + x1/4
Z
x1/2
(b) dx
x1/3 + x1/4
Z
dx
(c) √
e2x − 1
Proof. (a) The aim is to replace the fractional power x1/4 with something more convenient. The
obvious substitution to use is x = u4 , which leads to the substitution dx = 4u3 du. Hence
Z Z
dx 4u3 du
=
1 + x1/4 1+u
and we now have the integral of a rational function. Polynomial division gives
 
4u3 2 1
=4 u −u+1− .
1+u 1+u

(This result may also be obtained by writing

u3 = (u3 + 1) − 1
= (u + 1)(u2 − u + 1) − 1,

thus avoiding the use of polynomial long division.) Consequently,


Z  3 
dx u u2
=4 − + u − ln |1 + u| + C
1 + x1/4 3 2
4x3/4
= − 2x1/2 + 4x1/4 − 4 ln 1 + x1/4 + C.
3
(b) We aim to remove the fractional powers x1/2 , x1/3 and x1/4 . The lowest common multiple
of 2, 3 and 4 is 12, so we choose the substitution x = u12 . Hence
Z Z
x1/2 u6
dx = 12u11 du
x1/3 + x1/4 u4 + u3
Z
u14
= 12 du.
u+1
From here we either use polynomial division, or the standard factorisation

un − 1 = (u + 1) un−1 − un−2 + un−3 − · · · + (−1)n+1

to obtain Z Z
x1/2 1
1/3 1/4
dx = 12 u13 − u12 + u11 − . . . + u − 1 + du.
x +x u+1
It is easy to evaluate the integral from here.

c 2018 School of Mathematics and Statistics, UNSW Sydney


2.5. OTHER SUBSTITUTIONS 49

(c) One option is to use the substitution

u = ex du = ex dx

so that
Z Z
dx ex dx
√ = √
e2x − 1 Z ex e2x − 1
du
= √ .
u u2 − 1
From here the integral can be evaluated using the substitution u = sec θ or u = cosh θ. This is left
as an exercise.
A better approach is to remove the square root from the very first substitution. The substitution
u = e2x − 1 implies that
2
du
2u = 2e2x = 2(u2 + 1),
dx
which leads to the substitution
u du
dx = 2 .
u +1
Hence
Z Z
dx u du
√ =
e2x − 1 Z u(u2 + 1)
du
=
u2 + 1
= tan−1 u + C
p
= tan−1 e2x − 1 + C.

Thus the second method is more efficient than the first.

As seen in the last example, there may more than one method to evaluate a given integral.
Choosing the most efficient substitution to use is not always easy, but intuition can be developed
with time, experience and practice. The next example is therefore left to the student as an exercise.
Z 1
x3
Example 2.5.2. Evaluate 2 5/2
dx by
0 (4 + x )

(i) using the substitution x = 2 tan θ (since the integrand involves 4 + x2 );

(ii) using the substitution x = 2 sinh θ (since the integrand involves 4 + x2 );

(iii) using the substitution u2 = 4 + x2 (aiming for a rational function);

(iv) using the substitution u = 4 + x2 .

Which method works best?

c 2018 School of Mathematics and Statistics, UNSW Sydney


50 CHAPTER 2. INTEGRATION TECHNIQUES

2.6 Maple notes


The following MAPLE command is relevant to the material of this chapter:

convert(f, parfrac, x); performs a partial fraction decomposition of the rational function f in
the variable x. For example,

> convert(x^2/(x+2), parfrac, x);


4
x−2+
x+2
> convert(x/(x-b)^2, parfrac, x);
b 1
+
(x − b)2 x − b

c 2018 School of Mathematics and Statistics, UNSW Sydney


PROBLEMS FOR CHAPTER 2 51

Problems for Chapter 2

Revision problems
1. [R] Evaluate each of the following integrals by inspection. Do not use substitution.
Z Z Z
2
a) xe2x dx b) x sin(x2 ) dx c) x2 cos(2x3 ) dx
Z Z Z
x 3 dx
d) 2
dx e) sin x cos x dx f)
5x − 11 x ln x
Z Z p Z
x+2 p
g) √ dx h) x 1 + x2 dx i) x2 9 − 4x3 dx
x2 + 4x + 7
Z Z Z
x2 x3 sec2 x
j) √ dx k) dx l) dx
9 − 4x3 (1 + x4 )3 tan4 x
Z Z Z
cos x 2x 2x 13 1
m) 3 dx n) e (4 + 3e ) dx o) dx
sin x x (ln x)5

2. [R] Integrate the following by parts.


Z Z Z Z
2 −x x (ln x)2
a) x e dx b) x3 ln x dx c) dx d) dx
cos2 x x2
Z Z Z
x
e) e cos x dx f) ln x dx g) tan−1 x dx

Problems 2.1 : Trigonometric integrals

3. [R] Evaluate the following integrals.


Z π/2 Z π
7
a) sin x cos x dx b) sin3 x cos2 x dx
0 0
Z Z
c) sec3 x tan x dx d) cos2 θ dθ
Z Z
e) cos x cos 10x dx f) sin 2x cos 3x dx

Problems 2.2 : Reduction formulae

4. [R]
Z
tan x + sec x
a) By multiplying the integrand by , find sec x dx.
tan x + sec x
b) The reduction formula
Z Z
n secn−2 x tan x n − 2
sec x dx = + secn−2 x dx
n−1 n−1

c 2018 School of Mathematics and Statistics, UNSW Sydney


52 CHAPTER 2. INTEGRATION TECHNIQUES

is valid
Z whenever n ≥ 2. Use Zit to find the following integrals.
i) sec4 x dx ii) sec5 x dx

c) [HH] Prove the reduction formula given above.

5. [R] Suppose that


Z π/2
Im,n = cosm x sinn x dx
0
whenever m and n are nonnegative integers. Use the reduction formula

  
 m−1 Im−2,n
 provided that m ≥ 2
m+n
Im,n =  

 n−1 Im,n−2

provided that n ≥ 2
m+n

to evaluate the following integrals.


Z π/2 Z π/2 Z π/2
a) cos6 x sin4 x dx b) cos5 x sin5 x dx c) cos3 x sin4 x dx
0 0 0
Z 1
6. [R] Suppose that In = xn e−x dx. Prove that
0

1
In = n In−1 −
e
Z 1
whenever n > 0. Hence evaluate x3 e−x dx.
0

Z π/4
7. [R] It was proven in the notes that if In = tann x dx then
0

1
In = − In−2
n−1
whenever n > 1. Use this to evaluate I7 and I8 .
Z e
8. [R] Suppose that In = x(ln x)n dx. Show that
1

1 2 
In = e − nIn−1
2
whenever n ≥ 1. Hence evaluate I3 .

9. [R] By writing cosn x as cosn−1 x cos x and integrating by parts, show that
Z π/2 Z
n n − 1 π/2
cos x dx = cosn−2 x dx
0 n 0
Z π/2 Z π/2
8
whenever n ≥ 2. Hence find cos x dx and cos7 x dx.
0 0

c 2018 School of Mathematics and Statistics, UNSW Sydney


PROBLEMS FOR CHAPTER 2 53

Z 1
xn
10. [R] Suppose that In = √ dx. Find a reduction formula for In .
0 1+x
Z 1
m!n!
11. [H] Show that xm (1 − x)n dx = for all nonnegative integers m and n.
0 (m + n + 1)!
Z π/2
12. [H] Suppose that In = cosn x dx.
0
 
1
a) By Writing the reduction formula of Question 9 as In = 1− In−2 , show that
n
     m  
1 1 1 π π Y 1
I2m = 1− 1− ... 1 − = 1−
2m 2m − 2 2 2 2 2k
k=1

and
m  
Y 1
I2m+1 = 1− .
2k + 1
k=1

b) Deduce that
m  
2 I2m Y 1
= 1− .
π I2m+1 (2k)2
k=1

c) By considering cos x on (0, π2 ), show that

I2m+2 ≤ I2m+1 ≤ I2m

whenever m ≥ 1.
d) Use the result of (a) and (c) and the pinching theorem to deduce that
I2m
lim = 1.
m→∞ I2m+1

e) Conclude that
m  
Y 1 2
lim 1− = .
m→∞ (2k)2 π
k=1
This limit is called Wallis’ product.
f) Show that
m   m
Y 1 Y (2k − 1)(2k + 1) (2m + 1)((2m)!)2
1− = =
(2k)2 (2k)2 24m (m!)4
k=1 k=1

and deduce that Wallis’ product may be written as

π 24m (m!)4
= lim .
2 m→∞ (2m + 1)((2m)!)2

c 2018 School of Mathematics and Statistics, UNSW Sydney


54 CHAPTER 2. INTEGRATION TECHNIQUES

Problems 2.3 : Trigonometric and hyperbolic substitutions

13. [R] Evaluate the following integrals.


Z 1 Z
x2 dx
a) √ dx b) √
4−x 2 2
x − 6x + 13
0
Z 3p Z
dx
c) 9 − x2 dx d) √
0
2
x x2 + 16
Z Z 1
3 dx
e) (1 − x2 )− 2 dx f) 2
−1 x + 2x + 2
Z
x
14. Evaluate √ dx by making an appropriate substitution. Are there any other
2
x −4
methods or substitutions that could be used? Which one is most efficient?

Problems 2.4 : Integrating rational functions

15. [R] Evaluate the following integrals.


Z Z
1 5x − 7
a) 2
dx b) 2
dx
x + 4x + 3 x − 3x + 2
Z Z
(x + 1) 1
c) dx d) dx
x2 (x − 1) (x2 − 1)2
Z 2 Z
x +1 18
e) 2
dx f) 2
dx
x −1 (x + 9)(x − 3)
Z Z
x2 + x + 2 1−x
g) 2
dx h) dx
(x + 1)(x + 2) (1 + x)3

Problems 2.5 : Other substitutions and miscellaneous integrals

16. [R] Evaluate the following integrals.


Z Z
x x
a) 2
dx b) √ dx
x + 2x + 10 2
x + 2x + 10
Z Z 64
dx 1
c) √ d) [H] dx
1+ x 1 x + x1/3
1/2

Z 1
x3
17. [R] Evaluate dx by
0 (4 + x2 )5/2

a) using the substitution x = 2 tan θ (since the integrand involves 4 + x2 );

b) using the substitution x = 2 sinh θ (since the integrand involves 4 + x2 );
c) using the substitution u2 = 4 + x2 (aiming for a rational function);
d) using the substitution u = 4 + x2 .
Which method works best?

c 2018 School of Mathematics and Statistics, UNSW Sydney


PROBLEMS FOR CHAPTER 2 55

18. [R] The following integrals were selected from past papers. Evaluate each one.
Z Z
dx
a) b) 8 sinh x cosh4 x dx
x(x2 + x + 1)
Z Z p
3x + 5
c) dx d) 25 − x2 dx
x2 + 4x + 8
Z Z
3x2 − 5x + 3 1
e) 2
dx f) √ dx
(x − 1) (x − 2x + 2) x2 1 + x2
Z Z
dx
g) h) cos(4x) sin(3x) dx
(x2 + 3)3/2
Z ∞ −√ x
e
i) √ dx. If convergent evaluate the integral.
1 x

c 2018 School of Mathematics and Statistics, UNSW Sydney


56 CHAPTER 2. INTEGRATION TECHNIQUES

c 2018 School of Mathematics and Statistics, UNSW Sydney


57

Chapter 3

Ordinary differential equations

In many practical applications (in physics, economics, social sciences, engineering, applied science,
mathematics and so on), information is known about the relationship between a quantity and its
rates of change, but one may not have an exact formula for the quantity itself. For example,
a simple population model states that the rate of change of a population, at any given time, is
proportional to size of the population itself. If we write P (t) for the population at time t, then we
arrive at the equation
dP
= kP,
dt
where k is the constant of proportionality. An equation, such as the one given above, which involves
one (or more) of the derivatives of a function, is called a differential equation. Some other simple
examples include
d2 x
• = −k2 x, which is used to describe the displacement x from the origin of a particle
dx2
undergoing simple harmonic motion;
dT
• = k(T − 20), which is used to describe how the temperature T of an object changes
dt
in room temperature; and
dx
• − 0.08y = 0.05(60000 + 1000t), which is used to describe how the amount y (in dollars)
dy
of a particular investment changes in time (see Example 3.4.3).

If possible, the aim from here is to find an explicit formula (or formulae) describing the unknown
function (respectively P , x, T and y in the examples above) appearing in each differential equation.
The primary goal of this chapter is to examine some techniques for obtaining a formula for a function
given a differential equation for that function.

c 2018 School of Mathematics and Statistics, UNSW Sydney


58 CHAPTER 3. ORDINARY DIFFERENTIAL EQUATIONS

3.1 An introduction
We begin with a definition.

Definition 3.1.1. An ordinary differential equation is an equation expressed in


terms of exactly one independent variable and one (or more) of the derivatives of a
function of this variable. The order of an ordinary differential equation is the order
of the highest derivative present.

For example, the equation


d3 y dy
3
+ sin x = 3x2 y
dx dx
is an ordinary differential equation of order 3; the independent variable is x and y is assumed to
be a function of x. The equation
 3/2
d2 x dx
+ − tx = 0
dt2 dt

is an ordinary differential equation of order 2; the independent variable is t and x is assumed to be


a function of t.
In these notes, the term ‘ordinary differential equation’ will often be abbreviated as ODE. Such
equations are called ‘ordinary’ because they involve ordinary derivatives. This is to distinguish
them from differential equations that involve partial derivatives. (The study of ‘partial differential
equations’ will be introduced in some second year courses.)
Ordinary differential equations can be written in several ways using a variety of notations. For
example, each of the equations

d2 y dy
+ 4x = ex
dx2 dx
f ′′ (x) + 4xf ′ (x) = ex
y ′′ + 4xy ′ = ex

represent the same ODE.

Definition 3.1.2. A solution to an nth order ordinary differential equation is a


function which is n-times differentiable and satisfies the given equation.

The next example illustrates this definition as well as introducing the terms ‘particular solution’
and ‘general solution.’

Example 3.1.3. Consider the ODE


dy
= x2 + 5.
dx
c 2018 School of Mathematics and Statistics, UNSW Sydney
3.1. AN INTRODUCTION 59

Then the function y, given by


x3
y(x) = + 5x,
3
3 3
is a solution to the ODE. Note that if y(x) = x3 + 5x + 6 or if y(x) = x3 + 5x − 45, then y is also a
solution to the ODE. Each of these solutions is called a particular solution to the ODE. Using the
mean value theorem (see Section 5.9 of the MA1131 calculus notes), it is easily shown that every
particular solution y to the ODE can be written in the form

x3
y(x) = + 5x + C, (3.1)
3
where C ∈ R. The family of solutions given by (3.1), where C ∈ R, is called the general solution
to the ODE.

In the above example, solution y could be expressed explicitly as a function of the independent
variable x. Hence we obtained an explicit solution to the ODE. However, this cannot always be
done, as the following example illustrates. Sometimes we must settle for an implicit solution to the
ODE.

Example 3.1.4. Show that y, given implicitly by the equation

y 2 = cos(x2 + y 2 ), (3.2)

is a particular solution to the ODE


 dy
2x sin(x2 + y 2 ) + 2y sin(x2 + y 2 ) + 2y = 0.
dx
dy
Proof. To verify that y solves the ODE, we first need to calculate dx . Implicit differentiation of
(3.2) with respect to x gives
 
dy 2 2 dy
2y = − sin(x + y ) × 2x + 2y
dx dx

(where we have used the chain rule to obtain the right-hand side). Hence
 dy
2y + 2y sin(x2 + y 2 ) = −2x sin(x2 + y 2 ).
dx
By simple rearrangement it is easily seen that
 dy
2x sin(x2 + y 2 ) + 2y sin(x2 + y 2 ) + 2y = 0,
dx
and hence the ODE is satisfied. (This ODE shall be revisited again in Section 3.5, where we shall
find the general solution, instead of merely verifying that a given function is a solution.)

For some differential equations, it may not even be possible to find an implicit solution. If it
is possible to prove that an solution exists, then mathematicians and scientists must often settle
for working with an approximate solution to the ODE. However, such issues will not concern us in
this course.

c 2018 School of Mathematics and Statistics, UNSW Sydney


60 CHAPTER 3. ORDINARY DIFFERENTIAL EQUATIONS

3.2 Initial value problems


In most practical applications where ODEs are used, information is also known about the value of
the unknown function and its derivatives at a particular point. This information, together with an
ODE, forms an initial value problem.

Definition 3.2.1. An initial value problem is an nth order ODE together with a
set of values of the solution and its first (n − 1) derivatives at some fixed point x0 .
These values are called the initial conditions of the initial value problem.

For example,
dy 2 dy dy
• + 5x + y = sin x, y(0) = 2, = 7;
dx2 dx dx x=0

• f ′ (t) − e2t f (t) = 3t2 , f (1) = 5; and

• y ′′′ + 3y ′′ + 4y = cosh x, y ′′ (π) = 2, y ′ (π) = 0, y(π) = −1

are all initial value problems. The term ‘initial value problem’ is often abbreviated as IVP.
To solve an initial value problem, we usually try to find a general solution to the ODE (which is
expressed using unspecified constants) and then determine the values of these constants by imposing
the initial conditions.

Example 3.2.2. Solve the IVP

d2 y
= 6x, y ′ (0) = 2, y(0) = −1.
dx2
Solution. Integrating the ODE once gives
dy
= 3x2 + C
dx
where C ∈ R. By imposing the initial condition y ′ (0) = 2, we deduce that C = 2. Hence
dy
= 3x2 + 2.
dx
Integrating again gives
y = x3 + 2x + D,
where D ∈ R. The initial condition y(0) = −1 implies that D = −1. Hence the solution y to the
IVP is given by
y = x3 + 2x − 1.
Note that this solution is valid for all x in R; that is, the solution y is defined on R.

Not every initial value problem is as straightforward to solve as the example above. Solving an
IVP is, in general, very difficult, and the following questions arise.

c 2018 School of Mathematics and Statistics, UNSW Sydney


3.2. INITIAL VALUE PROBLEMS 61

(a) Does the IVP have a solution?

(b) Does it have a unique solution?

(c) If initial values are given at the point a, then how far on either side of a does the solution
extend?

The following two examples show that care must be taken in answering such questions, even for
IVPs that appear to be ‘simple.’

Example 3.2.3. Solve the initial values problem

dy √
= y, y(0) = 0.
dx
Solution. If we assume that y(x) 6= 0 then the ODE can be written as

dx 1
=√ , (3.3)
dy y

from which we find that x = 2 y + C, where C is a real number. When x = 0 we have that y = 0
and hence C = 0. Rearranging gives
x2
y(x) = .
4
However, note that y(x) = 0 is also a solution to the IVP. Hence the IVP does not have a unique
solution.

Example 3.2.4. Solve the initial values problem

dy 1
= , y(1) = 2.
dx x
How far does the solution extend on either side of the point 1?
dy
Solution. First, the ODE implies that dx does not exist at 0. However, on the interval (0, ∞), we
obtain the general solution
y(x) = ln x + C,
where C ∈ R. The initial condition implies that C = 2 and so

y(x) = ln x + 2

whenever x > 0. Hence we have found solution that extends to the interval (0, ∞).
(Note that we could give a family of solutions defined on the set {x ∈ R : x 6= 0} by
(
ln |x| + D if x < 0
y(x) =
ln |x| + 2 if x > 0,

where D ∈ R. However, for most practical applications such a solution would not be used on
(−∞, 0) because of the break in the domain of y at 0.)

c 2018 School of Mathematics and Statistics, UNSW Sydney


62 CHAPTER 3. ORDINARY DIFFERENTIAL EQUATIONS

3.3 Separable ODEs


(Ref: SH10 §9.2)

A separable ODE is a differential equation where the two variables involved (say x and y) can
be separated so that all the y’s are on one side of the equation and all x’s are on the other. We
give an example and then state the general form.

Example 3.3.1. Solve the initial value problem

dy
= y 2 (1 + x2 ), y(0) = 1.
dx
Solution. First we separate the variables x and y to obtain

1
dy = (1 + x2 ) dx. (3.4)
y2

Integrating gives Z Z
1
dy = (1 + x2 ) dx, (3.5)
y2
whence
1 x3
− =x+ + C,
y 3
where C ∈ R. This gives an implicit solution to the ODE.
We now impose the initial condition to evaluate the constant C. When x = 0 and y = 1 we
obtain
1 03
− =0+ + C,
1 3
whence C = −1 and
1 x3
− =x+ − 1.
y 3
Finally, in this particular example, one can easily make y the subject to obtain the explicit
solution
−1
y= x3
x+ −13
−3
= ,
3x + x3 − 3
thus completing the problem.

Remark 3.3.2. Equation (3.4) makes sense within the context of integration (see equation (3.5)).
The fact that this kind of symbolic manipulation with dy and dx ‘works’ can be traced back to the
chain rule, which is the basis for implicit differentiation. (To make this clear, note in the example
above that
1 dy
= 1 + x2
y 2 dx

c 2018 School of Mathematics and Statistics, UNSW Sydney


3.3. SEPARABLE ODES 63

and so integrating both sides with respect to x gives


Z Z
1 dy
dx = 1 + x2 dx.
y 2 dx
Hence
1 x3
− =x+ + C, (3.6)
y 3
which may be easily verified by (implicitly) differentiating both sides of (3.6) respect to x.) Students
should not think that they can manipulate the symbols dy and dx in other ways and still obtain
valid results.

In general, a separable ODE is one that can be written in the form


dy g(x)
= . (3.7)
dx h(y)
To solve this equation, write
h(y) dy = g(x) dx,
and then integrate both sides to obtain an implicit solution

H(y) = G(x) + C,

where C is the constant of integration. Whenever possible, isolate y on the left-hand side to find
the explicit solution. If initial conditions are given, then the constant C can be determined.

Example 3.3.3. Solve the equation


dy
sinh y cos2 x = tan x + 4.
dx
Proof. We separate the variables to obtain
tan x + 4
sinh y dy = dx.
cos2 x
Simplification followed by integration gives

sinh y dy = (tan x sec2 x + 4 sec2 x) dx


Z Z
sinh y dy = (tan x sec2 x + 4 sec2 x) dx

cosh y = 1
2 tan2 x + 4 tan x + C, (3.8)

where C ∈ R. In this case it is best to leave the solution in implicit form (3.8), since cosh is not a
one-to-one function.

We end with an application of this method to the real world.

Example 3.3.4 (Newton’s law of cooling). (a) Newton’s law of cooling states that the rate
of heat loss of a body is proportional to the difference in temperatures between the body
and its surroundings. Set up an ODE to model this law and solve it.

c 2018 School of Mathematics and Statistics, UNSW Sydney


64 CHAPTER 3. ORDINARY DIFFERENTIAL EQUATIONS

(b) A hot object is placed into a room of temperature 20◦ C. Unfortunately the object is too
hot for the thermometer to measure its initial temperature. However, after 6 minutes, the
temperature of the object was measured as 80◦ C, and after eight minutes as 50◦ C. What
was the original temperature of the object?

Proof. (a) Suppose that

• T is the temperature of the object at time t,

• A is the ambient temperature (that is, the temperature of the surroundings), and

• k is the constant of proportionality.

Newton’s law of cooling implies that

dT
= k(T − A).
dt
To solve this equation, we separate variables:

1
dT = k dt
Z T −A Z
1
dT = k dt
T −A
ln(T − A) = kt + C,

where C is the constant of integration. By taking exponentials of both sides we obtain

T − A = ekt+C .

Hence
T = A + Kekt , (3.9)

where K = eC > 0.
(b) We have
A = 20, T (6) = 80, and T (8) = 50.

Hence (3.9) implies that


(
80 = 20 + Ke6k
50 = 20 + Ke8k ,

which can be solved to give


ln 2
k=− and K = 480.
2
Hence
T (0) = 20 + 480e0 = 500.

So the initial temperature of the object was 500◦ C.

c 2018 School of Mathematics and Statistics, UNSW Sydney


3.4. FIRST ORDER LINEAR ODES 65

3.4 First order linear ODEs


(Ref: SH10 §9.1)

A first order linear ODE can be written in the form


dy
+ f (x)y = g(x), (3.10)
dx
where f and g are given functions of a single
√ variable x. The ODE is called linear since there are
no non-linear terms (such as y 2 , sin y or y ′ ) involving y or its derivative y ′ .
A very slick method for solving first order linear ODEs is summarised in the steps below.
1. Write the ODE in the form (3.10).
R
2. Calculate e f (x) dx (ignoring the constant of integration). We denote this by h(x) and call
it the integrating factor.
3. Multiply (3.10) by the integrating factor h(x) to obtain
dy
h(x) + h(x)f (x)y = g(x)h(x).
dx
By using the product rule for differentiation, the left-hand side can now be rewritten so
that
d 
h(x) y = g(x)h(x)
dx
(this is easily seen in the examples that follow).
4. Integrate both sides and then rearrange for y to solve the ODE. Don’t forget the constant
of integration!
dy
Example 3.4.1. Solve + 3y = e−x .
dx
Solution. The ODE is already in the form (3.10) with f (x) equal to 3. The integrating factor h is
therefore given by R
h(x) = e 3 dx = e3x .
Multiplying the ODE by the integrating factor e3x gives
dy
e3x + 3e3x y = e2x .
dx
By the product rule, we can contract the left hand side to obtain
d 3x 
e y = e2x
dx
(this step is easy to check by working backwards). Integrating gives
e3x y = 12 e2x + C,
where C ∈ R. Now divide by e3x to obtain the explicit solution
y = 21 e−x + Ce−3x ,
where C ∈ R. (Note that if the constant of integration is accidently omitted then we lose half the
solution!)

c 2018 School of Mathematics and Statistics, UNSW Sydney


66 CHAPTER 3. ORDINARY DIFFERENTIAL EQUATIONS

Example 3.4.2. Solve the IVP

dy
(x − 1)3 + 4(x − 1)2 y = x + 1, y(0) = 2. (3.11)
dx
Solution. First rewrite the ODE into the standard form (3.10) to obtain

dy x+1
+ 4(x − 1)−1 y = . (3.12)
dx (x − 1)3

The integrating factor h is given by


R 4
4(x−1)−1 dx
h(x) = e = e4 ln(x−1) = eln(x−1) = (x − 1)4 .

(Note that it is important to simplify h(x) before proceeding with the method.)
Multiplying (3.12) by the integrating factor gives

dy
(x − 1)4 + 4(x − 1)3 y = x2 − 1,
dx
from which we obtain
d 
(x − 1)4 y = x2 − 1
dx
by the product rule. Integrating gives

(x − 1)4 y = 13 x3 − x + C,

where C ∈ R. To evaluate C, we impose the initial condition y(0) = 2 and find that

(0 − 1)4 2 = 31 03 − 0 + C.

Hence C = 2. Therefore the solution of the IVP is given by


1 3
3x −x+2 x3 − 3x + 6
y= 4
= .
(x − 1) 3(x − 1)4

(Note that the solution is valid when x ∈ (−∞, 1) or x ∈ (1, ∞) but not when x = 1. In fact, it is
not hard to see from (3.11) that there is no real-valued function y satisfying the ODE with 1 in its
domain.)

The following example shows an application of a first order linear ODE to a real world problem.

Example 3.4.3. An investor has a salary of $60, 000 per year which is expected to increase at a
rate of $1000 per annum. Suppose that an initial deposit of $1000 is invested in a program that
pays 8% per annum, and that the investor deposits 5% of their salary each year. Find the amount
invested after t years.

Solution. We will approximate the situation by assuming that interest is calculated continuously
and that deposits are made continuously.

c 2018 School of Mathematics and Statistics, UNSW Sydney


3.5. EXACT ODES 67

Let y(t) denote the dollars invested after t tears. Then


dy
= 0.08y + 0.05(60000 + 1000t)
dt

( rate of increase of investment = 8% of investment + 5% of salary ).

This is a first order linear ODE. If we rewrite the ODE as


dy
− 0.08y = 0.05(60000 + 1000t),
dt
then we see that the integrating factor h is given by
R
−0.08 dt
h(t) = e = e−0.08t .

After multiplying the ODE by the integrating factor and contracting the left-hand side by the
product rule, one obtains
d −0.08t 
e y = 0.05(60000 + 1000t)e−0.08t .
dt
Integration (where we use integration by parts for the right-hand side) and rearrangement gives

y(t) = −625t − 46312.5 + Ce0.08t ,

where C is the constant of integration. Imposing the initial condition y(0) = 1000 yields the final
solution
y(t) = 45312.5 e0.08t − 625t − 46312.5,
where t ≥ 0.
To illustrate, note that after 10 years the investment totals about y(10) ≈ 51507.86 dollars.

3.5 Exact ODEs


(Ref: SH10 §19.2)

In this section we examine another approach to solving (some) first order ODEs.
To begin, suppose that H is a function of two variables x and y satisfying the equation

H(x, y) = C,

where C is a real constant. If we consider y as a function of x and differentiate both sides with
respect to x, then the chain rule gives
∂H ∂H dy
+ = 0.
∂x ∂y dx
∂H ∂H
If and are denoted by F and G respectively, then we obtain the differential equation
∂x ∂y
dy
F (x, y) + G(x, y) = 0. (3.13)
dx
c 2018 School of Mathematics and Statistics, UNSW Sydney
68 CHAPTER 3. ORDINARY DIFFERENTIAL EQUATIONS

Of course, if F and G are defined as above, then H(x, y) = C is a solution to (3.13).


Conversely, suppose that we want to solve a differential equation of the form (3.13). The above
discussion shows that if there exists a function H of two variables such that F = ∂H ∂H
∂x and G = ∂y
then the solution is given by H(x, y) = C, where C ∈ R. The difficulty is, this condition on F
and G is not so easy to verify. Fortunately, there is an easier condition. Recall, by the theorem on
mixed partial derivatives, that if H is a ‘nice’ function then

∂2H ∂2H
= ,
∂y∂x ∂x∂y

or in other words,
∂F ∂G
= .
∂y ∂x
This second condition on F and G is known as the condition for exactness and is much easier to
verify.
We summarise these observations in the next definition and theorem.

Definition 3.5.1. An ordinary differential equation of the form


dy
F (x, y) + G(x, y) =0
dx
is called exact if
∂F ∂G
= .
∂y ∂x

Theorem 3.5.2. Suppose that an ordinary differential equation of the form (3.13) is exact. Then
the solution to (3.13) is given by H(x, y) = C, where C is a constant and where H is a function
satisfying the equations
∂H ∂H
=F and = G.
∂x ∂y

Remark 3.5.3. The differential equation (3.13) is equivalent to

dy F (x, y)
=−
dx G(x, y)
or
F (x, y)dx + G(x, y)dy = 0.
The left-hand side of the second expression is an example of a differential form.

Example 3.5.4. Show that the differential equation

dy 2x + y + 1
=−
dx 2y + x + 1

is exact, and hence find its solution.

c 2018 School of Mathematics and Statistics, UNSW Sydney


3.5. EXACT ODES 69

Solution. First we rewrite the differential equation to obtain


dy
(2x + y + 1) + (2y + x + 1) = 0.
dx
Write F = 2x + y + 1 and G = 2y + x + 1. Then
∂F ∂G
=1= ,
∂y ∂x
so the differential equation is exact. Hence there exists a function H satisfying
∂H
= F (x, y) = 2x + y + 1, (3.14)
∂x
∂H
= G(x, y) = 2y + x + 1. (3.15)
∂y
To find H, we begin by integrating (3.14) with respect to x (and treating y as a constant), so that

H(x, y) = x2 + xy + x + C1 (y), (3.16)

where the ‘constant of integration’ C1 (y) is a function of y. Similarly, integrating (3.15) with
respect to y (and treating x as a constant) gives

H(x, y) = y 2 + xy + y + C2 (x), (3.17)

where the ‘constant of integration’ C2 (x) is a function of x. A comparison of (3.16) and (3.17)
shows that
H(x, y) = x2 + xy + y 2 + x + y. (3.18)
Hence the solution to the differential equation is given by

x2 + xy + y 2 + x + y = C, (3.19)

where C is a real constant.


Note that, since (3.19) is a quadratic in y, we could rewrite the solution explicitly for y to give
p
−(x + 1) ± (x + 1)2 − 4(x2 + x − C)
y= , C∈R
2
(this gives two functions for every value of C). However, in this case the solution is probably better
left in implicit form, as in (3.19).

Remark 3.5.5. Technically, (3.18) should read

H(x, y) = x2 + xy + y 2 + x + y + K,

where K is an arbitrary constant. However, then the solution to the ODE is given by

x2 + xy + y 2 + x + y + K = C0 ,

where C0 is yet another constant. By combining the constants K and C0 on the right-hand side,
this solution is equivalent to (3.19). Hence is is customary to ignore the constant K.

c 2018 School of Mathematics and Statistics, UNSW Sydney


70 CHAPTER 3. ORDINARY DIFFERENTIAL EQUATIONS

The next example follows the same overall strategy, but illustrates a slightly different approach
to finding the function H.

Example 3.5.6. Solve the differential equation


 dy
2x sin(x2 + y 2 ) + 2y sin(x2 + y 2 ) + 2y = 0.
dx
Solution. Write F (x, y) = 2x sin(x2 + y 2 ) and G(x, y) = 2y sin(x2 + y 2 ) + 2y. It is easily seen that

∂F ∂G
= 4xy cos(x2 + y 2 ) = ,
∂y ∂x
and so the equation is exact. Hence we look for a function H satisfying
∂H
= F (x, y) = 2x sin(x2 + y 2 ), (3.20)
∂x
∂H
= G(x, y) = 2y sin(x2 + y 2 ) + 2y. (3.21)
∂y

As with the previous example, we integrate (3.20) with respect to x (and treating y as a constant)
to obtain
H(x, y) = − cos(x2 + y 2 ) + C1 (y), (3.22)
where the ‘constant of integration’ C1 (y) is a function of y. So now we only need to determine
C1 (y). To do so, differentiating (3.22) with respect to y (and treating x as a constant) gives

∂H
= 2y sin(x2 + y 2 ) + C1′ (y).
∂y

Comparing this with (3.21) shows that C1′ (y) = 2y, whence C1 (y) = y 2 . (Here we omit the constant
of integration for reasons given in Remark 3.5.5.) Hence

H(x, y) = − cos(x2 + y 2 ) + y 2

and the solution to the differential equation is given by

− cos(x2 + y 2 ) + y 2 = C,

where C ∈ R. (Note that in this example it is not possible to give an explicit expression for y in
terms of x.)

The final example gives an interesting variation on this theme.

Example 3.5.7. Solve the differential equation

(ex − sin y) dx + cos y dy = 0. (3.23)

Solution. Suppose that F (x, y) = ex − sin y and G(x, y) = cos y. Since

∂F ∂G
= − cos y and = 0,
∂y ∂x

c 2018 School of Mathematics and Statistics, UNSW Sydney


3.6. SOLVING ODES BY USING A CHANGE OF VARIABLE [X] 71

the differential equation is not exact. What happens if we use the method of the last two examples
regardless?
Suppose that there is a function H such that
∂H
= F (x, y) = ex − sin y, (3.24)
∂x
∂H
= G(x, y) = cos y. (3.25)
∂y
Integrating (3.24) with respect to x gives

H(x, y) = ex − x sin y + C1 (y),

where C1 (y) is independent of x. Partial differentiation with respect to y yields


∂H
= −x cos y + C1′ (y).
∂y
If we compare this with (3.25), then we conclude that C1′ (y) = (1 + x) cos y, which contradicts the
fact that C1 (y) is independent of x. Hence no such function H exists.
Fortunately, not all is lost. If we multiply (3.23) through by the function e−x , then we obtain

(1 − e−x sin y) dx + e−x cos y dy = 0. (3.26)

Since the integrating factor e−x is never zero, solutions to (3.26) will also be solutions to (3.23).
Moreover, it is easily verified that (3.26) is exact. Hence we can now (successfully) use the method
for solving exact differential equations to obtain the solution

x + e−x sin y = C,

where C ∈ R. Details are left to the reader.

Remark 3.5.8. As illustrated in the previous example, if an ODE of the form

F (x, y) dx + G(x, y) dy = 0

is not exact, then it may be possible to transform it into an exact ODE by multiplying through by
a suitable function. In general, finding such a function is difficult and lies beyond the scope of this
course.

3.6 Solving ODEs by using a change of variable [X]


(Ref: SH10 §19.1)

We have seen in previous sections how to solve separable, linear and exact first order ODEs.
While not all first order ODEs are among these types, some can be transformed into one of these
types by a suitable change of variables. We illustrate the principle with two examples.
Example 3.6.1. Use the substitution y(x) = x · v(x) to solve the differential equation
dy xy − y 2
= . (3.27)
dx x2
c 2018 School of Mathematics and Statistics, UNSW Sydney
72 CHAPTER 3. ORDINARY DIFFERENTIAL EQUATIONS

Solution. The idea is to transform (3.27) into a separable ODE involving v and x. Once the general
solution for v is found, then it is easy to write down the solution for y.
Using the substitution y(x) = x · v(x) and the product rule for differentiation, we see that

dy d dx dv dv
= (xv) = v +x =v+x .
dx dx dx dx dx
Hence (3.27) becomes
dv x(xv) − (xv)2
v+x = .
dx x2
If we simplify the right-hand side then

dv
v+x = v − v2 ,
dx
and hence we obtain the separable ODE

dv dx
− = .
v2 x
Integrating both sides gives
1
= ln |x| + C
v
which implies that
1
v=
ln |x| + C
y
where C ∈ R. Now v = and so
x
x
y=
ln |x| + C
gives the general solution to (3.27).

Example 3.6.2. Solve the equation

dy
+ 2y + y 2 t2 e2t = 0 (3.28)
dt
by using the substitution z = 1/y.

Solution. Note that (3.28) is not a first order linear ODE because of the term involving y 2 . In this
example we will see that the nonlinear equation in y and t becomes a linear ODE in z and t under
the transformation z = 1/y.
dy
To make use of the substitution z = 1/y, we need to express dx in terms of z. To do so,
differentiate both sides of the equation
1
y=
z
with respect to t to obtain
dy 1 dz
=− 2 .
dt z dt
c 2018 School of Mathematics and Statistics, UNSW Sydney
3.7. MODELLING WITH FIRST ORDER ODES 73

With this substitution, (3.28) becomes

1 dz 2 t2 e2t
− + + 2 = 0.
z 2 dt z z
Rearranging gives
dz
− 2z = t2 e2t ,
dt
which is a first order linear ODE in z. As usual, multiply through by the integrating factor e−2t to
obtain
d −2t
(e z) = t2 .
dt
Integrating gives
t3
e−2t z = + C0 ,
3
whereupon  3 
2t t
z=e + C0 ,
3
where C0 ∈ R. Since y = 1/z, the solution to (3.28) is given by

3
y= ,
e2t (t3+ C)

where C = 3C0 ∈ R.

3.7 Modelling with first order ODEs


(Ref: SH10 §9.1, 9.2)

Many real-life problems can be analysed and solved by attempting to convert them into math-
ematics. In doing so, a number of assumptions have to be made and a theoretical framework set
up which attempts to reflect what is happening in the real world. Such a framework is called a
mathematical model. The reliability of that model can be judged by how well it predicts what
actually happens in the real world.
To construct a mathematical model, one should

1. describe accurately the data we have,

2. decide exactly what information we want to extract from the model,

3. decide which variables in the model are dependent and which are independent, and

4. describe how the dependent variables change as the independent ones vary (which may
lead to a differential equation).

Examples of mathematical modelling with differential equations have already been encountered (see
Examples 3.3.4 and 3.4.3). The following two subsections provide further examples and discussion.

c 2018 School of Mathematics and Statistics, UNSW Sydney


74 CHAPTER 3. ORDINARY DIFFERENTIAL EQUATIONS

3.7.1 Mixing problems


In this subsection we illustrate how to construct a mathematical model that leads to a differential
equation.

Example 3.7.1. A martini drink is, in essence, a mixture of the two liquids gin and vermouth.
James Blond insists that his martinis be prepared as follows. Initially, 40 cc of gin are placed in a
large container. Then gin is poured into the container at a rate of 2 cc/sec and at the same time
vermouth is poured in at a rate of 6 cc/sec. The mixture is constantly shaken (not stirred) and
flows out at a rate of 4 cc/sec.

(a) Find an expression for the volume of vermouth in the container t seconds after the pouring
commences.

(b) James likes his martini to have roughly two parts gin to three of vermouth. How many
seconds should elapse before he stops pouring and inserts a cocktail glass in the outflow
from the container?

Solution. (a) To begin, it is recommended that we place the relevant information on a diagram.

Gin inflow, 2 cc/sec Vermouth inflow, 6 cc/sec

Container
Initial volume: 40 cc of gin

Martini outflow, 4 cc/sec

Next, it is important to identify what we want to find. In this case, we want a formula for the
volume of Vermouth. So let V (t) denote the volume of vermouth (in cc) in the container at time t.
Now we write down as much information about V as we can. We know that V (0) = 0. The
other information given tells us how V changes with time. In particular,

dV
= rate of change of V
dt
= (rate of inflow) − (rate of outflow). (3.29)

Now the rate of inflow of vermouth is 6 cc/sec. To calculate the the rate of outflow, we note that
the total volume of liquid in the container at time t is given by

40 + 2t + 6t − 4t = 40 + 4t.

c 2018 School of Mathematics and Statistics, UNSW Sydney


3.7. MODELLING WITH FIRST ORDER ODES 75

Hence the proportion by volume of vermouth in the container at time t is

V (t)
. (3.30)
40 + 4t

Since the rate of outflow of liquid is 4 cc/sec, it follows that the rate of outflow of vermouth is

V (t)
× 4 cc/sec.
40 + 4t

Following from (3.29), we obtain the initial value problem

dV V (t)
=6− , V (0) = 0. (3.31)
dt 10 + t

Finally, we solve the IVP. The ODE is first order linear equation, whose solution (when V (0) =
0) is given by
3t2 + 60t
V (t) = . (3.32)
10 + t
The details for finding this solution are left to the reader as an exercise.
(b) The liquid will be two parts gin to three of vermouth exactly when three-fifths of the liquid
is vermouth. Hence, using (3.30), we require that

V (t) 3
= .
40 + 4t 5

But V (t) is given by (3.32), so we require that

3t2 + 60t 3
2
= .
4(10 + t) 5

By rearranging this equation, we obtain the quadratic equation

t2 + 20t − 400 = 0.

The quadratic formula shows that



t= 500 − 10 ≈ 12.36,

where we have chosen the positive solution to the quadratic equation. Hence James should insert
the cocktail glass 12.36 seconds after the mixing process begins.

3.7.2 Population models


In this subsection we compare three different mathematical models for population growth.
Suppose that the city of Mathopolis initially has a population of 3,000,000 inhabitants and
(initially) grows at a rate of 2% per annum. Can we predict what the population of the city will be
in 10, 20 or 100 years time? In the next three examples, we examine different population models,
discuss their accuracy and see what growth forecast each model gives for Mathopolis.

c 2018 School of Mathematics and Statistics, UNSW Sydney


76 CHAPTER 3. ORDINARY DIFFERENTIAL EQUATIONS

Example 3.7.2 (Population model 1). In this model, we assume that the growth rate of the pop-
ulation remains constant. That is, we assume that the rate of change of population is proportional
to the population, where the constant of proportionality r is the growth rate. In other words, we
have the IVP
dP
= rP, P (0) = P0 ,
dt
where P is the population at time t, r is the growth rate and P0 is the initial population. Solving
this (separable) ODE gives the solution

P (t) = P0 ert .

(This model goes back to Thomas Malthus’ book An Essay on the Principle of Population, published
in 1798.)
Application. For Mathopolis, P0 = 3, 000, 000 and r = 0.02. Thus the population P (t) of the city
at time t is given by
P (t) = 3000000e0.02t .
The table in Figure 3.1 shows the predicted population when t is 10, 20 and 100. The graph of P
against t is also shown.

c 2018 School of Mathematics and Statistics, UNSW Sydney


3.7. MODELLING WITH FIRST ORDER ODES 77

Criticisms of this model.

1. The model predicts that population will grow indefinitely. This ignores the fact that the
resources and space needed to support such a population are finite.

2. The model ignores external factors (such as disease, natural disasters and wars) that have
an effect on population size.

In light of the first criticism, we introduce a second model.

Example 3.7.3 (Population model 2). In this model the rate of population growth is not propor-
tional to the population. Instead, there is a critical population Pc which when exceeded causes the
population P to decrease; otherwise the population increases. We try the IVP
dP
= k(Pc − P ), P (0) = P0 , (3.33)
dt
where k is a positive constant. Hence the rate of change of P is positive if P < Pc and negative if
P > Pc .
To solve (3.33), we separate the variables and integrate:
Z Z
dP
= k dt.
Pc − P
In the case when P < Pc we obtain

− ln(Pc − P ) = kt + C

and so
P = Pc − Ae−kt ,
where A = e−C . Now P = P0 when t = 0 and so A = Pm − P0 . Hence

P (t) = Pc − (Pc − P0 )e−kt .

(The case when P > Pc gives the same solution, as can be easily verified by carefully working
through the details.) Note that P (t) → Pc as t → ∞.
Application. For Mathopolis, P0 = 3, 000, 000 and dP dt = 0.02P0 = 60, 000 when t = 0. Assume also
that Pc = 7, 000, 000. (That is, due to available land, resources and other factors, one expects the
city’s maximum sustainable population size is 7 million.) By considering the differential equation
(3.33) when t = 0, we conclude that

dP
60000 = = k(Pc − P0 ) = k(7000000 − 3000000)
dt
and hence that k = 0.015. Therefore the population P (t) of Mathopolis at time t is given by

P (t) = 7000000 − 4000000e−0.015t .

See Figure 3.1 for specific population projections under this model and a corresponding graph.
Criticisms of this model.

c 2018 School of Mathematics and Statistics, UNSW Sydney


78 CHAPTER 3. ORDINARY DIFFERENTIAL EQUATIONS

Initially After 10 years After 20 years After 100 years


Model 1 3.00 million 3.66 million 4.48 million 22.17 million
Model 2 3.00 million 3.56 million 4.04 million 6.11 million
Model 3 3.00 million 3.61 million 4.21 million 6.73 million
(a) Table showing population forecast according to various models

10

9
|

8 Model 1
|
Population (millions)

7
|

Model 3
6
|

Model 2
5
|

4
|

3
|

2
|

1
|

| | | |

0 20 40 60 80 100
Time (years)
(b) Graphs showing how models compare

Figure 3.1: Population growth for a city as projected by different models.

c 2018 School of Mathematics and Statistics, UNSW Sydney


3.7. MODELLING WITH FIRST ORDER ODES 79

1. Observe that if P is close to 0 then dP


dt ≈ kPc , which means that when the population is
very small the growth rate may be a large positive number. In fact, the rate of increase is
most rapid for tiny populations!

2. As with the first population model, external factors are ignored.


In light of the first criticism we introduce a third model.
Example 3.7.4 (Population model 3). To overcome the first criticism of the previous model, we
instead try the IVP
dP
= kP (Pc − P ), P (0) = P0 , (3.34)
dt
where k is a positive constant and Pc is the critical population. Note that dP
dt is small when P
is small. (This model was first published by Pierre Verhulst in 1838 after he had read Thomas
Malthus’ An Essay on the Principle of Population.)
To solve (3.34), separation of variables and integration gives
Z Z
dP
= k dt.
P (Pc − P )
The integral on the left-hand side is evaluated by the method of partial fractions:
Z Z
1 1 1
+ dP = k dt.
Pc P Pc − P
From here it is not difficult to show that
Pc P0
P (t) =
P0 + (Pm − P0 )e−kPc t
(try this as an exercise). Note once again that P (t) → Pc as t → ∞. The resulting curve (see,
for example, the solid gray curve in Figure 3.1 (b)) is a called a logistic curve. The initial stage of
growth is approximately exponential; then, as P approaches Pc the growth slows and approaches
Pc asymptotically.
Application. Once again, for Mathopolis we have the data
dP
P0 = 3, 000, 000, Pc = 7, 000, 000 and = 0.02P0 = 60, 000 when t = 0.
dt
By considering the differential equation (3.34) when t = 0, we conclude that
dP
60000 = = kP0 (Pc − P0 )
dt
and hence that k = 5 × 10−9 . Therefore the population P (t) of the city at time t is given by
21000000
P (t) = .
3 + 4e−0.035t
See Figure 3.1 for specific population projections under this model.
Criticisms of this model. As with the other population models, external factors are ignored. In
particular, Pc may change due to factors such as technological advances or climate change.

c 2018 School of Mathematics and Statistics, UNSW Sydney


80 CHAPTER 3. ORDINARY DIFFERENTIAL EQUATIONS

Remark 3.7.5. Note that as the models introduced become more realistic, the mathematics needed
to solve the corresponding differential equations is more sophisticated. In the case of modelling fluid
flow (such as water flow in the pipes or air flow around an aeroplane wing), the set of (partial) dif-
ferential equations which must be solved (known as the Navier–Stokes equations) raises difficulties
that are beyond the grasp of current mathematical knowledge. For example, it is as yet unknown
whether a solution to these equations always exists and whether (in the case that a solution exists)
it is a ‘smooth’ solution. The Clay Mathematics Institute has listed these problems as one of the
seven Millennium problems and carries prize money of US$1,000,000 for a correct solution.

3.8 Second order linear ODEs with constant coefficients


(Ref: SH10 §9.3, §19.4)

In this section we consider a special class of second order equations, known as second order
linear ODEs with constant coefficients. An equation of this class has the form

d2 y dy
+a + by = f (x), (3.35)
dx2 dx

where a and b are real numbers. Such equations naturally arise in modelling wave mechanics and
prey-predator interaction. You will have seen in earlier calculus courses (and in Physics) that the
d2 x
second order equation 2 + n2 x = 0 is used to model simple harmonic motion.
dt

3.8.1 The homogeneous case


To simplify our treatment of the second oder ODE (3.35), we first look at the case when f (x) ≡ 0
(which means that f (x) = 0 for all x).

Definition 3.8.1. A second order linear ODE with constant coefficients is said to
be homogeneous if it is of the form
d2 y dy
2
+a + by = 0, (3.36)
dx dx
where a and b are real numbers.

It turns out that we can always solve a homogeneous second order ODE with real coefficients.
The first important observation towards proving this fact is given by the following lemma.

Lemma 3.8.2. If y1 and y2 are two solutions to the differential equation (3.36) then any linear
combination Ay1 + By2 , where A and B are real numbers, is also a solution to (3.36).

Proof. Suppose that y1 and y2 are two solutions to the differential equation (3.36). If y = Ay1 +By2 ,

c 2018 School of Mathematics and Statistics, UNSW Sydney


3.8. SECOND ORDER LINEAR ODES WITH CONSTANT COEFFICIENTS 81

where A and B are real numbers, then

y ′′ + ay ′ + by = (Ay1 + By2 )′′ + a(Ay1 + By2 )′ + b(Ay1 + By2 )


= Ay1′′ + Ay2′′ + Aay1′ + Bay2′ + Aby1 + Bby2
= A(y1′′ + ay1′ + by1 ) + B(y2′′ + ay2′ + by2 )
=0+0 (since y1 and y2 are solutions)
= 0.

Hence y is also a solution to (3.36).

Remark 3.8.3. It can also be shown that every second order ODE has at most two linearly
independent solutions (this will be demonstrated in second year linear algebra courses). Hence if
y1 and y2 are two linearly independent solutions of (3.36) then every solution y to (3.36) is of the
form y = Ay1 + By2 . In this context, y1 and y2 are linearly independent if and only if they are not
constant multiples of each other.

In view of the above lemma and remark, to find a complete solution to (3.36), one only needs
to find two linearly independent solutions. To look for a solution to (3.36), we try a function y that
does not change too much when differentiated. (The idea is that, upon substitution, the terms on
the left-hand side need to cancel each other out to give zero.) If y = eλx , where λ is a constant,
then y ′ = λeλx and y ′′ = λ2 eλx . When these are substituted into (3.36) we obtain

λ2 eλx + aλeλx + beλx = 0.

Dividing by eλx gives


λ2 + aλ + b = 0, (3.37)
Hence we have shown that

y = eλx is a solution to (3.36) if and only if λ is a root of (3.37).

We give the quadratic equation (3.37) a special name.

Definition 3.8.4. The characteristic equation of the second order linear ODE
d2 y dy
2
+a + by = 0,
dx dx
is given by
λ2 + aλ + b = 0. (3.38)

The following example illustrates what we have learnt so far.

Example 3.8.5. Solve the second order homogeneous linear ODE

d2 y dy
−5 + 6y = 0. (3.39)
dx2 dx
c 2018 School of Mathematics and Statistics, UNSW Sydney
82 CHAPTER 3. ORDINARY DIFFERENTIAL EQUATIONS

Solution. The characteristic equation associated to (3.39) is given by


λ2 − 5λ + 6 = 0.
By solving the quadratic equation we find that λ = 2, 3. Hence y1 = e2x and y2 = e3x are solutions
to (3.39). By Lemma 3.8.2 the linear combination y, given by
y = Ay1 + By2 = Ae2x + Be3x
where A and B are real numbers, is also a solution to (3.39). Moreover, since y1 and y2 are linearly
independent, every solution is of this form (see Remark 3.8.3).
Note that in the last example, the characteristic equation had two distinct real roots, thus
leading to two linearly independent solutions to the homogeneous ODE. In general, there are three
possibilities since all the coefficients we consider are real numbers. Either (i) the characteristic
equation has two distinct real roots, (ii) the characteristic equation has a repeated real root, or (iii)
the characteristic equation has two distinct complex roots (which are complex conjugates of each
other).
Case (i): The characteristic equation has two distinct real roots λ1 and λ2 . Then, as seen
above, we obtain two linearly independent solutions y1 = eλ1 x and y2 = eλ2 x . Hence the general
solution is given by
y = Aeλ1 x + Beλ2 x ,
where A and B are real numbers.
Case (ii): The characteristic equation has a repeat real real root λ1 . Then one solution is given
by y1 = eλ1 x . Is there another independent solution? It turns out in this case that y2 = xeλ1 x
also solves the homogeneous equation (3.36), as can be easily verified by substituting this into the
left-hand side of (3.36). Hence the general solution is given by
y = Aeλ1 x + Bxeλ1 x ,
where A and B are real numbers.
Case (iii): The characteristic equation has two distinct complex roots α + βi and α − βi, where
α and β are real numbers and β 6= 0. Then we obtain two solutions
y1 = e(α+βi)x and y2 = e(α−βi)x .
Hence y is also a solution, where
y = Ce(α+βi)x + De(α−βi)x ,
and C and D are (complex) constants. The goal is to choose C and D so that the solution is real.
Now Euler’s formula
eiθ = cos θ + i sin θ
gives
y = Ce(α+βi)x + De(α−βi)x
= eαx (Ceβix + De−βix )

= eαx C(cos βx + i sin βx) + D(cos βx − i sin βx)

= eαx (C + D) cos βx + i(C − D) sin βx

= eαx A cos βx + B sin βx ,

c 2018 School of Mathematics and Statistics, UNSW Sydney


3.8. SECOND ORDER LINEAR ODES WITH CONSTANT COEFFICIENTS 83

where A = C + D, B = i(C − D). If we choose C and D to be complex conjugates of each other,


but otherwise with arbitrary real and imaginary parts, then A and B will be real. It is easy to see
that eαx cos(βx) and eαx sin(βx) are independent solutions; hence the general solution in this case
is given by 
y = eαx A cos βx + B sin βx
where A and B are real numbers.
We summarise our findings in the following theorem.

Theorem 3.8.6. Consider the second order homogeneous ODE given by (3.36) and let λ1 and λ2
denote the roots of the corresponding characteristic equation (3.38).

(i) If λ1 and λ2 are different real numbers then the solution to (3.36) is given by

y = Aeλ1 x + Beλ2 x ,

where A, B ∈ R.

(ii) If λ1 = λ2 then the solution to (3.36) is given by

y = Aeλ1 x + Bxeλ1 x ,

where A, B ∈ R.

(iii) If λ1 = α + βi and λ2 = α − βi, where α, β ∈ R and β 6= 0, then the solution to (3.36) is


given by 
y = eαx A cos(βx) + B sin(βx) ,
where A, B ∈ R.

Example 3.8.7. Solve the following differential equations:

(a) y ′′ − 6y ′ + 25 = 0,

(b) y ′′ + 4y ′ + 4y = 0, with initial conditions y(0) = 1 and y ′ (0) = 0.

Solution. (a) The characteristic equation

λ2 − 6λ + 25 = 0

has roots 3+ 4i and 3− 4i (as determined by completing the square or using the quadratic formula).
Hence the solution y to the ODE is given by

y = e3x (A cos 4x + B sin 4x),

where A and B are real numbers.


(b) The left-hand side of the characteristic equation

λ2 + 4λ + 4 = 0

is easily factorised to give


(λ + 2)2 = 0.

c 2018 School of Mathematics and Statistics, UNSW Sydney


84 CHAPTER 3. ORDINARY DIFFERENTIAL EQUATIONS

Hence −2 is a repeated root and the solution y to the IVP is given by

y = Ae−2x + Bxe−2x , (3.40)

where the constants A and B are to be determined by imposing initial conditions. Differentiation
shows that
y ′ = −2Ae−2x − 2Bxe−2x + Be−2x . (3.41)
When x = 0, (3.40), (3.41) and the initial conditions imply that A = 1 and B = 2. Hence

y = e−2x + 2xe−2x

describes the solution y to the IVP.

3.8.2 The non-homogeneous case


We return to solving the second order linear ODE (3.36) in the case when f is not identically zero.
The main idea will be illustrated in the following example.
Example 3.8.8. Solve the equation

y ′′ − 5y ′ + 6y = 12x − 4. (3.42)

Solution. Since the first and second derivatives of a polynomial are also polynomials, it seems likely
that at least one particular solution yP to the ODE is a polynomial. A little more thought shows
that if yP is polynomial that satisfies (3.42), then the degree of yP is no greater than one. So we
look for a particular solution yP of the form

yP = ax + b,

where a and b are real numbers whose values are to be determined. Now yP′ = a and yP′′ = 0, so
substituting yP into (3.42) gives

0 − 5a + 6(ax + b) = 12x − 4.

By equating coefficients we find that a = 2 and b = 1. Hence one particular solution yP to (3.39)
is given by yP = 2x + 1.
Are there any other solutions? The answer to this question is ‘yes’. To find them, we consider
the associated homogeneous ODE
y ′′ − 5y ′ + 6y = 0, (3.43)
whose solution yH is given by
yH = Ae2x + Be3x ,
where A and B are real numbers (see Example 3.8.5). Now we will show that y, where y = yH + yP ,
is a solution to (3.42):

y ′′ − 5y ′ + 6y = (yH + yP )′′ − 5(yH + yP )′ + 6(yH + yP )


′′ ′
= (yH − 5yH + 6yH ) + (yP′′ − 5yP′ + 6yP ) (by linearity of differentiation)
= 0 + (12x − 4) (by the properties of yH and yP )
= 12x − 4.

c 2018 School of Mathematics and Statistics, UNSW Sydney


3.8. SECOND ORDER LINEAR ODES WITH CONSTANT COEFFICIENTS 85

Hence y, given by
y = yH + yP = Ae2x + Be3x + 2x − 1
where A and B are real constants, also solves the ODE. In fact, this gives the general solution (the
discussion in Subsection 3.8.4 explains why).

Bearing in mind the above example, we now detail an algorithm for solving a second order ODE
of the form (3.35).
1. Find the solution yH to the corresponding homogeneous equation (3.36) (by first identifying
the roots of the characteristic equation, as in Subsection 3.8.1).

2. Find a particular solution yP to (3.35).

3. The general solution y to (3.35) is then given by y = yH + yP .


In general, it is best to perform Step 1 before Step 2; the reason for this will soon become obvious.
Step 1 has already been discussed in some detail, and Step 3 is easy. We need only devote some
discussion to performing Step 2.
Example 3.8.9. Solve the ODE
y ′′ − 4y ′ + 5y = 20e−x . (3.44)
Proof. First, we solve the homogeneous equation

y ′′ − 4y ′ + 5y = 0.

The roots of the characteristic equation λ2 − 4λ + 5 = 0 are 2 − i and 2 + i (these can be found
using the quadratic formula). Hence the solution yH of the homogeneous equation is given by

yH = e2x (A cos x + B sin x),

where A and B are real numbers.


Second, we find a particular solution yP . Since the right hand side is an exponential, we try

yP = ae−x ,

where a is a constant to be determined. Note that yP′ = −ae−x and yP′′ = ae−x . So substituting
yP into (3.44) gives
ae−x + 4ae−x + 5ae−x = 20e−x .
By comparing coefficients on each side we conclude that yP is a particular solution if and only if
a = 2. Hence our particular solution is given by yP = 2e−x .
Third, the general solution y to (3.44) is given by

y = yH + yP
= e2x (A cos x + B sin x) + 2e−x ,

where A and B are real numbers.

Example 3.8.10. Solve the ODE

y ′′ − 3y ′ + 2y = 5e2x . (3.45)

c 2018 School of Mathematics and Statistics, UNSW Sydney


86 CHAPTER 3. ORDINARY DIFFERENTIAL EQUATIONS

Solution. First we solve the corresponding homogeneous ODE

y ′′ − 3y ′ + 2y = 0.

The characteristic equation λ2 − 3λ + 2 = 0 has the solutions λ = 1 and λ = 2. Hence the solution
yH to the homogeneous equation is given by

yH = Ae2x + Bex , (3.46)

where A and B are real constants.


Second, we look for a particular solution yP . Since the right-hand side of (3.45) is a multiple
of e2x , it seems natural to try yP = ae2x . However, note that ae2x is a particular solution to the
homogeneous equation. (To see this, simply set A as a and B as 0 in (3.46)). Hence substituting
yP = ae2x into (3.45) will produce 0 on the left-hand side, and consequently this guess for yP will
not work.
In this circumstance, the ‘trick’ for finding a particular solution yP is to multiply the old guess
ae2x by x. That is, we now try
yP = axe2x .

(This guess for a particular solution is certainly not in the solution space for the homogeneous
equation.) Now we find that

yP′ = ae2x (2x + 1) and yP′′ = 4ae2x (x + 1),

and hence substituting yP = axe2x into (3.45) gives

4ae2x (x + 1) − 3ae2x (2x + 1) + 2axe2x = 5e2x .

This simplifies to
4ae2x − 3ae2x = 5e2x ,

and we thereby deduce that a = 5. Therefore a particular solution yP is given by yP = 5xe2x .


Finally, the general solution y to (3.45) is given by

y = yH + yP
= Ae2x + Bex + 5xe2x

where A and B are real constants.

Given a function f , the following table indicates which guess for yP will always yield a particular
solution for the nonhomogeneous ODE (3.35).

c 2018 School of Mathematics and Statistics, UNSW Sydney


3.8. SECOND ORDER LINEAR ODES WITH CONSTANT COEFFICIENTS 87

f (x) Guess for particular solution yP

P (x) (a polynomial of degree n) Q(x) (a polynomial of degree n)

P (x)esx Q(x)esx

P (x) cos(sx) Q1 (x) cos(sx) + Q2 (x) sin(sx)

P (x) sin(sx) Q1 (x) cos(sx) + Q2 (x) sin(sx)

P (x)esx cos(tx) or P (x)esx sin(tx) Q1 (x)esx cos(tx) + Q2 (x)esx sin(tx)

If any term of the guess for yP is a solution to the homogeneous ODE, then multiply it by x.

If any term of the new guess is still a solution to the homogeneous ODE, then multiply by x again.

The next example illustrates the directive given in the last two rows of the table.
Example 3.8.11. Solve the ODE

y ′′ − 6y ′ + 9y = 8e3x . (3.47)

Solution. First, the characteristic equation

λ2 − 6λ + 9 = 0

factorises as (λ − 3)2 = 0 and thus has the repeated root 3. So the solution yH to the corresponding
homogeneous equation is given by
yH = Ae3x + Bxe3x , (3.48)
where A and B are real numbers.
Second, we search for a particular solution yP . Our first guess yP = ae3x will not work, as it is
a solution to the corresponding homogeneous equation (to see why, simply set A as a and B as 0
in (3.48)). So we multiply by x to obtain a new guess yP = axe3x . However, this guess also solves
the homogeneous equation. So once again, multiply by x to obtain a new guess yP = ax2 e3x . It is
easy to see that yP no longer lies in the solution space to the homogeneous equation. So this guess
will work.
To determine the value of a, substitute yP = ax2 e3x into (3.47). We leave it to the reader to
verify that a = 4. Hence a particular solution yP is given by yP = 4x2 e3x .
Finally, the general solution y is the sum of yH and yP , namely

y = Ae3x + Bxe3x + 4x2 e3x ,

where A and B are real numbers.

Remark 3.8.12. The previous example illustrates the importance of finding yH before making
a guess for yP ; without knowing yH it is not possible to make a suitable guess for yP . The next
example emphasises this point.

c 2018 School of Mathematics and Statistics, UNSW Sydney


88 CHAPTER 3. ORDINARY DIFFERENTIAL EQUATIONS

Example 3.8.13. Consider the nonhomogeneous ODE

d2 y dy
+ 6 + 13y = 5e3t cos(2t). (3.49)
dt2 dt
Write down the form of a particular solution yP to this ODE. (You are not required to evaluate
the undetermined coefficients appearing in the the form of yP .)

Solution. The characteristic equation λ2 + 6λ + 13 = 0 has roots 3 + 2i and 3 − 2i (these can be


found by completing the square or using the quadratic formula). Hence the solution yH to the
corresponding homogeneous equation is given by

yH = e3t (A cos 2t + B sin 2t), (3.50)

where A, B ∈ R.
Since the right-hand side of (3.49) is a product of e3t and cos 2t, our initial guess for the
particular solution yP is given by

yP = ae3t cos 2t + be3t sin 2t.

However, (3.50) shows that this guess solves the homogeneous equation. Instead, try

yP = ate3t cos 2t + bte3t sin 2t.

This new guess for yP does not lie in the solution space for the homogeneous equation; hence this
gives the form of particular solution that we seek.

Remark 3.8.14. One must take care in the use of the method of undetermined coefficients, and
in particular the two rules at the end of the table given above.
Consider, for example, the differential equation

y ′′ − 6y ′ + 9y = x2 e3x .

The homogeneous solution, from above, is yH = Ae3x + Bxe3x . Now since x2 e3x is not one of the
homogeneous solutions, one would try the particular solution yP = (Cx2 + Dx + E)e3x . However,
since this contains terms which are part of the homogeneous solution, we need to multiply by x
twice - thus yP = (Cx4 + Dx3 + Ex2 )e3x - so that no term in this expression is a homogeneous
1
solution. Substitution will reveal that D and E are zero, while C = 12 .
There is an easier method to solve such a problem using differential operators. This is left to
more advanced courses in differential equations.

3.8.3 An application: vibrations and resonance


Many structures have a natural frequency of vibration. If an external agent causes them to vibrate
at or near one of these frequencies then large oscillations build up and resonance occurs. This can
cause disasters such as the collapse of bridges. The ‘trick’ used by singers breaking wine glasses is
another example of this phenomenon. The first example of this subsection examines the behaviour
of a natural oscillating system; the second example illustrates how introducing external vibrations
into such a system causes resonance.

c 2018 School of Mathematics and Statistics, UNSW Sydney


3.8. SECOND ORDER LINEAR ODES WITH CONSTANT COEFFICIENTS 89

Example 3.8.15. Suppose that a spring is mounted to a (fixed) point P and that an object of
mass m is suspended from the spring. Let x denote the (vertical) displacement from the equilibrium
position (or resting position) of the object, taking x to be positive if it lies above the equilibrium
position.
P

Object
Equilibrium position b

By using Newton’s second law of motion, Hooke’s law and making some simple assumptions, one
can show that the system satisfies the differential equation

d2 x
+ ω 2 x = 0, (3.51)
dt2
where ω is a positive constant that depends only on the mass of the object and the stiffness of the
spring.
The object is pulled downwards from its equilibrium position by a distance of 4 units and then
released from rest. Find x(t) when t ≥ 0.

Solution. We need to solve the differential equation (3.51) subject to the initial conditions x(0) =
−4 and x′ (0) = 0. The characteristic equation λ2 + ω 2 = 0 is easily solved, leading to the solution

x(t) = A cos ωt + B sin ωt

of (3.51), where A and B are constants. Before imposing initial conditions, we calculate x′ (t). This
is given by
x′ (t) = −Aω sin ωt + Bω cos ωt.
Now x′ (0) = 0 implies that 0 = Bω, from which we conclude that B = 0 (since ω is positive).
Finally, x(0) = −4 implies that A = −4. Hence the solution is given by

x(t) = −4 cos ωt.

This type of motion is known as simple harmonic motion and is graphed in Figure 3.2 (a).

Example 3.8.16. Consider the same scenario as Example 3.8.15, except that now the point P
vibrates up and down, such that its vertical displacement y is given by y = 2 sin Ωt. In these
circumstances, a simple physical argument shows that x obeys the differential equation

d2 x
+ ω 2 x = 2 sin Ωt. (3.52)
dt2
Describe the motion of the object, given that x(0) = −4 and x′ (0) = 0.

c 2018 School of Mathematics and Statistics, UNSW Sydney


90 CHAPTER 3. ORDINARY DIFFERENTIAL EQUATIONS

x(t)

4 2π
|

ω
0 | t
−4

(a) Simple harmonic motion

x(t)

4 2π
|

ω
0 | t
−4

(b) Stable oscillation: ω 6= Ω

x(t)

4
|

0 | t

−4 ω

(c) Resonance: ω = Ω

Figure 3.2: Different oscillating systems.

c 2018 School of Mathematics and Statistics, UNSW Sydney


3.8. SECOND ORDER LINEAR ODES WITH CONSTANT COEFFICIENTS 91

Solution. We have already solved the homogeneous equation in Example 3.8.15. So we look for a
particular solution xP .
Case 1: Suppose that Ω 6= ω. Then we look for a particular solution of the form

xP = C cos Ωt + D sin Ωt.

By substituting this into (3.52) we obtain


2
xP = sin Ωt.
ω2 − Ω2
By using the fact that x = xH + xP and imposing initial conditions we find that
Ω 2 2
x(t) = −4 cos ωt − 2 2
sin ωt + 2 sin Ωt.
ω ω −Ω ω − Ω2
This is simply another oscillating system. Its graph is shown in Figure 3.2 (b) (in the case when
Ω = 32 ω).
Case 2: Suppose that Ω = ω. This time we look for a particular solution of the form

xP = Ct cos ωt + Dt sin ωt.

By substituting this into (3.52) we obtain


t
xP = − cos ωt.
ω
Using the fact that x = xH + xP and imposing initial conditions we find that
1 t
x(t) = −4 cos ωt + 2
sin ωt − cos ωt.
ω ω
Hence as t increases, the amplitude of the cos ωt term grows without bound and the system becomes
unstable. Its graph is shown in Figure 3.2 (c).

3.8.4 A connection with linear algebra


In Section 3.8, we have made two claims whose proofs have not been given yet; namely (A) that
every second order homogeneous ODE has at most two linearly independent solutions and (B) that
every solution y to a nonhomogeneous second order ODE can be written in the form yH + yP .
Both of these assertions can be proved by using linear algebra. In this subsection we highlight the
connection between second order linear ODEs and linear algebra, and explain why assertion (B) is
true. The proof of assertion (A) is given in MATH2501. Students should not continue reading this
subsection until Chapter 7 from MA1231 Algebra has been completed.
Consider the second order ODE

y ′′ + ay ′ + by = f, (3.53)

where a and b are real numbers and f : R → R is a function. Let V denote the vector space of all
(infinitely) differentiable functions y : R → R. We define the linear transformation T : V → V by
the formula
T (y) = y ′′ + ay ′ + by.

c 2018 School of Mathematics and Statistics, UNSW Sydney


92 CHAPTER 3. ORDINARY DIFFERENTIAL EQUATIONS

Observe that
′′ ′
yH is a solution to the homogeneous equation ⇐⇒ yH + ayH + byH = 0
⇐⇒ T (yH ) = 0
⇐⇒ yH ∈ ker(T ).

Hence the general solution to the homogeneous equation is the kernel of T . Also observe that

yP is a particular solution to the nonhomogeneous equation ⇐⇒ yP′′ + ayP′ + byP = f


⇐⇒ T (yP ) = f.

Hence the ODE (3.53) has a particular solution if and only if f is in the image of T . Moreover,
since

T (yH + yP ) = T (yH ) + T (yP ) (by the linearity of T )


= 0+f
= f,

we conclude that yH + yP is a also a solution to (3.53).


Finally, we prove assertion (B). Suppose that y is a solution to (3.53) and that yP is some
particular solution to (3.53). Then T (y) = f and T (yP ) = f . Hence

T (y − yP ) = T (y) − T (yP ) (by the linearity of T )


=f −f
= 0.

Therefore y − yP is in the kernel of T . But, as observed above, every function in the kernel of T is
a solution yH to the homogeneous equation. Hence y − yP = yH , where yH is some solution to the
homogeneous equation. It follows that y = yH + yP , thus completing the proof of assertion (B).
The kernel and image of T , and their connection to the homogeneous solution space and a
particular solution for the differential equation, may be represented pictorially as shown below.
T
V V

yH b
0

b
f
yP b

c 2018 School of Mathematics and Statistics, UNSW Sydney


3.9. MAPLE NOTES 93

3.9 Maple notes


The following MAPLE command is relevant to the material of this chapter:

dsolve(deqn, y(x)); solves the ordinary differential equation (or IVP) deqn for the function
y(x). For example,

> dsolve(diff(y(x), x$2) - y(x) = 1, y(x));

y(x) = −1 +−C1 exp(x) +−C2 exp(−x)

> dsolve({diff(v(t), t) + 2*t = 0, v(1)=5}, v(t));

v(t) = −t2 + 6

c 2018 School of Mathematics and Statistics, UNSW Sydney


94 CHAPTER 3. ORDINARY DIFFERENTIAL EQUATIONS

Problems for Chapter 3

Problems 3.3 : Separable ODEs


1. [R] Solve the following differential equations.
dy dy
a) = t2 (1 + y 2 ) b) = xy 2
dt dx
dy sin x dy y
c) = 2 d) =
dx y dx x(x − 1)
dy dy
e) = ex+y f) y cos2 x = tan x + 2, y = 2 when x = π/4
dx dx
dy dy
g) x = y ln x h) = 3x2 y 2 , given that y = 1 when x = 0.
dx dx
dy
2. [H] Try to find the general solution for = 3y 2/3 .
dx
Your answer will probably be y = (x + C)3 .
Observe y = 0 is also a solution and it cannot be expressed as y = (x + C)3 for any value
of C.
How do you account for this? Are there any other solutions?

3. [R] Oil is leaking out of a tank in such a way that the depth of oil h in the tank at time
dh √
t satisfies = − 2h. If the initial height is 4 cm, then find the time taken for the tank
dt
to empty.

Problems 3.4 : First order linear ODEs

4. [R] Solve the following linear ODEs.


dy dy e−3x
a) − 2y = x2 e2x b) + 3y =
dx dx 1 + x2
dy dy
c) x + (1 + x)y = 2 d) x − 2y = 6x5
dx dx
dy dy
e) cos2 x + y = tan x f) = x + 2y tan 2x
dx dx
dx
5. [R] Solve = t − x. Sketch the solution curves passing through (0, 1), (0, 0), (0, −1) and
dt
(0, −2).

6. [R] An object falling vertically experiences a resistance which is proportional to its ve-
locity.
dv
a) Explain why its acceleration is given by = g − kv, where g is the acceleration due
dt
to gravity and k is a positive constant.
b) Solve this as a linear equation for the initial condition v = 0.

c 2018 School of Mathematics and Statistics, UNSW Sydney


PROBLEMS FOR CHAPTER 3 95

c) Solve this as a separable equation.


d) What is the terminal (or limiting) velocity of the object?

Problems 3.5 : Exact ODEs and miscellaneous first order ODEs

7. [R] Solve the following exact ODEs.


dy
a) 2xy + (x2 + y 2 ) =0 b) (sin y − xy 2 ) dx + (x cos y − x2 y) dy = 0
dx
8. [R] Determine which of the following differential equations are exact and solve those which
are.
dy
a) (2xey + ex ) + (x2 + 1)ey =0
dx
dy
b) y(x2 + ln y) + x =0
  dx
y y −1 y

c) + e dx + tan x + xe dy = 0
1 + x2
dy
d) exy (y cos x − sin x) + xexy cos x =0
dx
9. [R] (Miscellaneous first order ODEs)
Solve the following ODEs.
dy
a) (2xy − 3 tan x) = 3y sec2 x − y 2
dx
dy
b) x − (x2 y + y) =0
dx
dy
c) x2 + xy = 1, x > 0
dx
dy
d) x2 − xy = y
dx
dy 1 + x2
e) x = , y(1) = 3.
dx y2

10. [HH] Solve the differential equation


dy
(2x − 10y 3 ) +y =0
dx
by first multiplying it through by some function µ(y) to make it exact.

Problems 3.7 : Modelling with first order ODEs


dy
11. [R] The simple population growth model, = ky, is (because of limitations on re-
dt
sources, pollution, . . . ) unsatisfactory over a ‘long’ period. We might look at
dy
= k(y)y (1)
dt
c 2018 School of Mathematics and Statistics, UNSW Sydney
96 CHAPTER 3. ORDINARY DIFFERENTIAL EQUATIONS

(which of course ignores seasonal and other variations with time). Mathematically one of
the simplest assumptions we can make (Verhulst 1839) is that k(y) decreases linearly as y
increases. In this case (1) may be written in the form

dy  y
=k 1− y, (2)
dt K
where k and K are constants.

a) i)Equation (2) has two constant (stationary) solutions. What are they?
ii)Solve (2), given that y = y0 when t = 0 and 0 < y0 < K.
iii)State what happens to y as t → ∞.
iv) For what value of y is the rate of increase of y a maximum?
(Caution — there is a simple, two line, method.)
v) If y0 > K then what happens to y as t increases?
b) [H] It has been found empirically that for certain bodies k(y) decreases linearly with
ln y. (Here y could be the volume, mass or number of cells of the body.) In this case
(1) may be written as  
dy K
= α ln y. (3)
dt y
Solve this differential equation, given that y = y0 when t = 0.

12. [R] An initially unpolluted lake of 109 litres has a river flowing through it at 1, 000, 000
litres per day. A factory is built which discharges 10, 000 litres per day of pollutant into
the lake. Assume that the total volume of liquid in the lake remains constant at 109 litres.

a) What will be the eventual level of pollution in the lake?


b) How long will it take to reach half this level?
c) Is there anything unrealistic about your model?

13. [R] A tank can hold 100 litres. Initially it holds 50 litres of pure water. Brine, which
contains 2 grams of salt per litre, is run in at the rate of 3 litres per minute. The mixture,
which is stirred continuously, is run off at 1 litre per minute. Let x(t) denote the mass of
salt (in grams) present in the tank after t minutes.

a) Set up a differential equation in x and t to model the system.



b) Show that when the tank is at the point of overflowing it contains 50(4 − 2) grams
of salt.

14. [R] A population of size P is subject to seasonal variation. The population has a growth
rate given by
dP
+ P = 100 + 50 sin t.
dt
a) Solve the differential equation given that P (0) = 20.
b) Find the average population size over a long period of time.

c 2018 School of Mathematics and Statistics, UNSW Sydney


PROBLEMS FOR CHAPTER 3 97

15. [R] The equation


dy
= k(1 + a cos(2πt))y.
dt
is an attempt to model seasonal variation. Solve it.

16. [R] It is estimated that the population growth rate of a certain developing country will
fall linearly from 2% per year to 1.5% per year over the next decade.

a) Express the population growth rate as a function of time.


b) Given that the present population is 10 million, find the estimated population in 10
years time.

17. [R] An object falling in a resisting medium has a constant acceleration due to gravity of
9.8 m/sec2 and also a drag force, which is approximately proportional to the speed (see
Question 6). For a stone falling in water with velocity v m/sec., the acceleration from this
drag force is approximately 10v m/sec2 .

a) Given that the stone is dropped from rest at the water surface, write a differential
equation describing this situation, and solve it to find v.
b) Determine the terminal velocity, lim v(t).
t→∞
c) How long does it take before the stone is travelling with 95% of its terminal velocity?
d) What if it starts at a velocity higher than the terminal velocity?

dy y
18. [R] The differential equation = λ is employed as a simple model for comparative
dx x
growth.

a) Solve this differential equation.


b) The mass y of the large claw of a fiddler crab is compared to the mass x of its
body (without claw) over a period of time. The measurements taken (in grams) are
recorded in the following table.
x 55 300 536 1080 1449 2233
y 5 72 175 522 773 1498
By graphing f (x) against f (y) for a suitable function f , show that the above model
appears reasonable in this example. Determine approximately the value of λ and the
constant of integration.

19. [R] An investor puts $500, 000 into Hitek Bonds, which pay a profit of 20% a year,
dP
compounded daily (i.e., if P is the amount of money in the bonds at any time, = 0.2P
dt
approximately).

a) How much money would he own at the end of a year?


b) [H] His tax accountant advises that this is overprofitable, and suggests that he use
$200 a week of the interest towards the hire of a Volvo, which would be a tax write–off

c 2018 School of Mathematics and Statistics, UNSW Sydney


98 CHAPTER 3. ORDINARY DIFFERENTIAL EQUATIONS

under the government’s Small Business Incentive Scheme, and that at the end of each
six months, all the remaining interest should be taken out and invested in the Lake
Eyre Ricegrowers’ Cooperative,
 which loses money continuously at a rate of 10% a
dP
year so that = −0.1P . This would qualify the investor for various advantages
dt
under the Rural Rorts Scheme. If the investor takes this advice, what would the total
of both his investments be after one year? [Take it that there are 52 weeks in a year.]

20. [H] There are n + 1 tanks each containing 100 litres and connected as shown.

...

Throughout, the liquid in every tank is kept well–mixed. The 0-th tank contains 100 litres
of pure water with 50 grams of salt dissolved in it. The remainder contain pure water.
Pure water is pumped into tank 0 at 3 litres per minute and liquid leaves the system from
tank n at 3 litres per minute. Let mk denote the mass (in grams) of salt in tank k.
a) Show that
dmk
= 0.03(mk−1 − mk ), k = 1, 2, . . . , n
dt
and
dm0
= −0.03m0 .
dt
b) Show that
50(0.03)n n −0.03t
mn = t e .
n!

21. [H] The decay of one atom of radioactive element A yields one atom of B which is itself
radioactive. The decay constants for A and B are 0.25 and 2 (per day) respectively. A
pure sample of K atoms of A is placed in a closed container. Let y1 (t) and y2 (t) denote
the numbers of atoms of A and B that are present at time t. Write down two differential
equations to describe this situation. Solve to obtain a formula for y2 . When is the amount
of B in the container a maximum?

Problems 3.8 : Second order linear ODEs with constant coefficients

22. [R] Find the general solutions of the following second order ODEs.
a) y ′′ + 3y ′ + 2y = 0 b) y ′′ + 2y ′ + 10y = 0
c) y ′ + 3y = 0 d) y ′′ + 4y ′ + 4y = 0

c 2018 School of Mathematics and Statistics, UNSW Sydney


PROBLEMS FOR CHAPTER 3 99

23. [R] Find the solutions of the following initial value problems.

a) y ′′ − 6y ′ + 5y = 0; y = 1, y ′ = 0, when x = 0.
b) y ′′ + 2y ′ + 2y = 0; y = 1, y ′ = 0, when x = 0.

24. [R] Solve the following differential equations.


a) y ′′ + 4y ′ + 3y = x b) y ′′ − 6y ′ + 9y = 5e2x
c) y ′′ + 2y ′ + 2y = 10 cos 2x d) y ′′ − y = e−x
e) y ′′ + 4y = sin 2x f) y ′ + 3y = 10e2x
g) y ′′ + 4y = sin x y = 0, y ′ = 1 when x = 0
h) y ′′ − 5y ′ + 4y = 2e2x y = 1, y ′ = 3 when x = 0

25. [R] For each of the following differential equations, find the general solution of the associ-
ated homogeneous equation and write down the form of the particular solution you would
seek. (Do not evaluate the unknown coefficients.)

a) 2y ′′ − 3y ′ − 5y = (x + 4)e5x/2
b) y ′′ + 2y ′ − 24y = e4x sin 6x
c) y ′′ + 6y ′ + 9y = e−3x

26. [H] Find a particular solution for the differential equation y ′′ − 4y ′ + 4y = 6x2 e2x .

27. [R] A cylindrical buoy of 80 cm in diameter floats in water with its axis vertical. When
depressed slightly and released, it bobs up and down according to the differential equation

d2 x
m = −π402 gx,
dt2
where m is the mass (in grams) of the buoy and x is the displacement (in centimetres)
from the equilibrium position. Take the acceleration g due to gravity to be 980 cm/sec2 .
The period of oscillation is observed to be 2.5 seconds. What is the mass of the buoy?

28. [R] A block of wood is attached to a spring and slides across a surface as shown.

Let x(t) denote the horizontal distance of the block from its ‘resting’ position at time t.
The motion of the block is modelled by the initial value problem

d2 x dx
2
+c + 4x = 0, x′ (0) = 0, x(0) = 1,
dt dt
where c is the ‘coefficient of friction’ between the block and the surface.

c 2018 School of Mathematics and Statistics, UNSW Sydney


100 CHAPTER 3. ORDINARY DIFFERENTIAL EQUATIONS

a) By solving the differential equation, describe the motion of the block in the ‘ideal’
situation when there is no friction between the block and the surface (that is, when
c = 0).
b) Solve the initial value problem when c = 2 and when c = 5 and explain why the block
oscillates if c = 2 but does not if c = 5.
c) [H] Find the smallest positive c such that the system does not oscillate.
(This value of c corresponds to what is known as ‘critical damping.’)

29. [R] A circuit consists of an inductor and capacitor connected in series with a sinusoidal
power source. The charge q (in coulombs) stored in a capacitor is given by the differential
equation
d2 q
+ 10 000q = 1000 sin Ωt,
dt2
where Ω/(2π) is the frequency of the power source.

a) Find the solution to the corresponding homogeneous equation.


b) Write down the form of particular solution you would seek for the differential equation.
(Warning: there are two cases, depending on the value of Ω.)
c) What sinusoidal frequency leads to unbounded oscillatory behaviour (known as ‘res-
onance’)?

30. [R]

a) Find the general solution of the vibrating system modelled by the equation

d2 y dy
2
+3 + 2y = 20 sin t.
dt dt

b) The long term behaviour of this system is independent of the initial conditions. What
is this ‘steady state solution’ ?

31. [R] A stationary wave on a guitar string of length L can be (partially) modelled by the
boundary value problem

y ′′ = ky; y(0) = 0, y(L) = 0, L > 0,

where k is a constant. Assume that y is not identically zero.

a) Suppose that k is positive and write k as µ2 , where µ ≥ 0. Show that the boundary
value problem has no nonzero solutions.
b) Are there any nonzero solutions when k = 0?
c) Suppose now that k is negative and write k as −µ2 , where µ > 0. Find all possible
values of µ such that the boundary value problem has a nonzero solution. Give the
corresponding solutions.
(Each such solution corresponds to a natural harmonic of the string.)

c 2018 School of Mathematics and Statistics, UNSW Sydney


PROBLEMS FOR CHAPTER 3 101

32. [H] A simple linear predator-prey model:


Let X denote the number of predators at time t and Y the number of prey. Experience
and theoretical considerations suggest that

(α) there is an equilibrium state (X, Y ) = (X0 , Y0 ) with X0 , Y0 6= 0;


(β) an increase in the number of prey, from Y0 , results in an increase in the number of
predators at a rate (approximately) proportional to the increase in prey, so that

dX
= a(Y − Y0 ), a > 0; (1)
dt
and
(γ) an increase in the number of predators, from X0 , results in a decrease in the number
of prey at a rate (approximately) proportional to the increase in predators, so that

dY
= −b(X − X0 ), b > 0. (2)
dt

[In fact the ‘linearisation’ of a number of complicated models near an equilibrium state
leads to (1) and (2).]
If x = X − X0 and y = Y − Y0 then we obtain
dx
= ay, (3)
dt
and
dy
= −bx. (4)
dt
a) Eliminate dt between (3) and (4) and solve to obtain a relation between x and y (the
‘phase trajectories’ of the system).
b) Eliminate x by differentiating (4) and substituting from (3). Hence solve for y and
then use (4) again to obtain x.
c) Suppose that a = 0.8 and b = 3.2. If x = −1.2 and y = 3.2 when t = 0, then find x
and y in terms of t and also find the phase trajectory.

33. [HH] (Note: do not attempt this question until Chapter 7 of MA1231 Algebra has been
completed.)
Let V denote the vector space of twice differentiable functions on R. Define a linear map
L on V by the formula

d2 u du
Lu = a 2
+b + cu, where a, b and c are real numbers.
dx dx
Suppose that u1 , u2 is a basis for the solution space of L(u) = 0. Find a basis for the
solution space of the fourth order equation L(L(u)) = 0. What can you say about the
kernels of L and L2 ?

c 2018 School of Mathematics and Statistics, UNSW Sydney


102 CHAPTER 3. ORDINARY DIFFERENTIAL EQUATIONS

c 2018 School of Mathematics and Statistics, UNSW Sydney


103

Chapter 4

Taylor series

Polynomials are nice functions to work with. Their values can be easily evaluated using a finite
number of additions and multiplications. They are easy to differentiate and integrate; moreover
their derivatives and antiderivatives are also polynomials and thus have these properties. Some
(but not all) of these properties are shared by a few other classes of functions. For example,
the derivatives of exponential functions are exponentials, but in general exponentials cannot be
evaluated using a finite number additions and multiplications. Many other useful functions share
none of these properties.
If a function can be accurately approximated by a polynomial, then we can use the polynomial
to approximate the values, derivatives and antiderivative of the function. This generalises an idea
met in MA1131, where we saw that a differentiable function can be locally approximated by a
linear function (which is a degree 1 polynomial). In this chapter we will see that many n-times
differentiable functions can be locally approximated by a polynomial of degree n. We will devote
considerable time discussing how accurate such approximations are. Finally, we shall prove that
some functions can not only be approximated by polynomials but are also equal to series consisting
of infinitely many polynomial terms. Such series are known as Taylor series.
The ideas presented in this chapter have a long history, going back to Archimedes’ method
of exhaustion, which he used to approximate π. Beginning in the fourteenth century, a school of
Indian mathematicians based in Kerala found accurate polynomial approximations to trigonometric
functions. This allowed them to solve problems in astronomy. In the seventeenth century, the
Scottish astronomer James Gregory independently employed similar techniques. However, it was
not until 1715 that the English mathemtician Brook Taylor published a theorem which gave a
general method for polynomial approximation, and which described precisely the errors involved. In
the twenty-first century, computers and calculators regularly use algorithms to find the approximate
value of functions; many of these modern computation techniques trace their roots back to Taylor’s
method.

4.1 Taylor polynomials


(Ref: SH10 §12.6, 12.7)

Recall from MA1131 that the function f : R → R, given by f (x) = ex , is defined as the inverse
of the function ln : (0, ∞) → R, and that ln is defined in terms of an integral. How, then, does one

c 2018 School of Mathematics and Statistics, UNSW Sydney


104 CHAPTER 4. TAYLOR SERIES

evaluate e0.1 ? (If the answer given is ‘use a calculator,’ then we merely ask the question, How does
a calculator evaluate e0.1 ?)
One approach is to suppose that y = e0.1 . Then we need to solve the equation ln y = 0.1. By
the definition of ln, this boils down to solving the integral equation
Z y
dt
= 0.1.
1 t

From here we could guess an approximate value for y and use Riemann sums to check whether our
guess is reasonable. Clearly this is an unsatisfactory approach to the problem.
Another method is to locally approximate the function f with a linear function. This technique
was discussed in MA1131 (see Chapter 4 of the MA1131 calculus notes) and is based on the idea
that the tangent lies close to the graph of f near the point of contact. Suppose, once again, that
f (x) = ex . To find an approximate value for e0.1 , we will approximate f using the tangent to the
graph of f at 0. The tangent function p1 at 0 is a polynomial of degree 1 and is given by

p1 (x) = 1 + x.

So when x is close to 0,
ex ≈ 1 + x
and hence e0.1 ≈ 1.1.
The polynomial p1 has the property that its value at 0 and gradient at 0 agree with the value
and gradient of f at 0. That is,

p1 (0) = f (0) and p′1 (0) = f ′ (0)

If we want to improve our approximation, we could generalise this idea and look for a degree two
polynomial p2 such that the value, gradient and concavity of f and p2 agree at 0. That is, if

p2 (x) = b0 + b1 x + b2 x2 ,

then we choose the coefficients b0 , b1 and b2 such that

p2 (0) = f (0), p′2 (0) = f ′ (0) and p′′2 (0) = f ′′ (0).

By calculating the first and second derivatives of f and p, we find that

b0 = 1, b1 = 1 and 2b2 = 1.

Hence
x2
p2 (x) = 1 + x +
.
2
One can see in Figure 4.1 that p2 gives a better approximation to f near 0 than does p1 . Using p2 ,
we obtain the approximation

e0.1 = f (0.1) ≈ p2 (0.1) = 1.105.

One can again improve this approximation by using a polynomial of degree 3. If

p3 (x) = c0 + c1 x + c2 x2 + c3 x3

c 2018 School of Mathematics and Statistics, UNSW Sydney


4.1. TAYLOR POLYNOMIALS 105
y = p3 (x)
y y = ex
y = p2 (x)

y = p1 (x)

y = p2 (x)

y = ex
0 x
y = p3 (x)
y = p1 (x)

Figure 4.1: Polynomial approximations (in gray) for the exponential function (in black) about 0.

then we can determine the unknown coefficients by solving the equations

p3 (0) = f (0), p′3 (0) = f ′ (0), p′′3 (0) = f ′ (0) and p′′′ ′′′
3 (0) = f (0).

These equations imply that

c0 = 1, c1 = 1, 2c2 = 1 and 6c3 = 1


and hence
x2 x3
p3 (x) = 1 + x + +
2 6
(see Figure 4.1). Thus we have the approximation

e0.1 = f (0.1) ≈ p3 (0.1) = 1.10516̇.

The table below compares the approximations to e0.1 given by these first, second and third
degree polynomials.

n pn (x) pn (0.1) Error in approximation (3 s.f.)


1 1+x 1.1 5.17 × 10−3
x2
2 1+x+ 2 1.105 1.71 × 10−4
x2 x3
3 1+x+ 2 + 6 1.10516̇ 4.25 × 10−6

c 2018 School of Mathematics and Statistics, UNSW Sydney


106 CHAPTER 4. TAYLOR SERIES

In fact, e0.1 (rounded to five decimal places) is equal to 1.10517 and so the approximation p3 (0.1) is
accurate to four decimal places. Each of the polynomials p1 , p2 and p3 are called Taylor polynomials
for f about 0.
Using the same technique, one can attempt to approximate any function f at 0 with an n degree
polynomial pn , provided that f is n-times differentiable at 0. Suppose that
pn (x) = a0 + a1 x + a2 x2 + a3 x3 + · · · + an xn .
We require that
pn (0) = f (0), p′n (0) = f ′ (0), p′′n (0) = f ′′ (0), p(3)
n (0) = f
(3)
(0), ..., p(n)
n (0) = f
(n)
(0),
where f (j) denotes the jth derivative of f . By calculating the derivatives of p, one finds that
a0 = f (0), a1 = f ′ (0), 2!a2 = f ′′ (0), 3!a3 = f (3) (0), ..., n!an = f (n) (0).
Hence
f ′′ (0) 2 f (3) (0) 3 f (n) (0) n
pn (x) = f (0) + f ′ (0)x + x + x + ··· + x .
2! 3! n!

Definition 4.1.1. Suppose that f is n-times differentiable at 0. Then the Taylor


polynomial pn of degree n for f about 0 is given by
f ′′ (0) 2 f (3) (0) 3 f (n) (0) n
pn (x) = f (0) + f ′ (0)x + x + x + ··· + x .
2! 3! n!
We also call pn the nth Taylor polynomial for f about 0.

Example 4.1.2. Suppose that f (x) = ex and n ≥ 0. Find the Taylor polynomial of degree n for
f about 0.
Solution. It is clear that
f ′ (x) = ex , f ′′ (x) = ex , f ′′ (x) = ex , ..., f (n) (x) = ex .
Hence f (0) = f ′ (0) = f ′′ (0) = · · · = f (n) (0) = 1 and
x2 x3 xn
pn (x) = 1 + x +
+ + ··· +
2! 3! n!
gives the Taylor polynomial of degree n about 0.
Example 4.1.3. Suppose that f (x) = sin x. Find the Taylor polynomials for f up to degree seven
about the point 0.
Solution. We have
f (x) = sin x f (0) = 0

f (x) = cos x f ′ (0) = 1
f ′′ (x) = − sin x f ′′ (0) = 0
f (3) (x) = − cos x f (3) (0) = −1
f (4) (x) = sin x f (4) (0) = 0
.. ..
. .

c 2018 School of Mathematics and Statistics, UNSW Sydney


4.1. TAYLOR POLYNOMIALS 107

and the pattern will repeat itself. Hence

p1 (x) = x
x3
p3 (x) = x −
3!
x3 x5
p5 (x) = x − +
3! 5!
x3 x5 x7
p7 (x) = x − + −
3! 5! 7!
are the Taylor polynomials for f up to degree seven about the point 0. Their graphs are compared
to the sine function in the following diagram.
y
y = p1 (x)

y = p5 (x)

x
0
y = sin x

y = p3 (x)

y = p7 (x)

Note that the sine function is odd and that its Taylor polynomials about 0 are also odd.

The diagram in Example 4.1.3 shows that the Taylor polynomials about 0 are good approxi-
mations for f near 0. However, the approximations get worse farther away from 0. If one wants
to approximate a function f near a point a, where a is not close to 0, then one can try (i) using
Taylor polynomials about 0 of higher degree (which may or may not give satisfactory results) or
(ii) approximating f with Taylor polynomials about a. Method (ii) is particularly pertinent in the
case when f (x) = ln x; since f is not defined at 0, the Taylor polynomials for f about 0 do not
exist.
Suppose f is n-times differentiable at a. To approximate f about a, we try a degree n polynomial
pn , given by
pn (x) = a0 + a1 (x − a) + a2 (x − a)2 + · · · + an (x − a)n ,
where

pn (a) = f (a), p′n (a) = f ′ (a), p′′n (a) = f ′′ (a), ..., p(n)
n (a) = f
(n)
(a).

By calculating the derivatives of pn at a, the unknown coefficients can be determined. Hence


f ′′ (a) f (3) (a) f (n) (a)
pn (x) = f (a) + f ′ (a)(x − a) + (x − a)2 + (x − a)3 + · · · + (x − a)n .
2! 3! n!
This leads to the following definition.

c 2018 School of Mathematics and Statistics, UNSW Sydney


108 CHAPTER 4. TAYLOR SERIES

Definition 4.1.4. Suppose that f is n-times differentiable at a. Then the Taylor


polynomial pn of degree n for f about a is given by
f ′′ (a) f (3) (a) f (n) (a)
pn (x) = f (a) + f ′(a)(x − a) + (x − a)2 + (x − a)3 + · · · + (x − a)n .
2! 3! n!
We also call pn the nth Taylor polynomial for f about a.

The nth Taylor polynomial for f about a can be expressed using summation notation as
n
X f (k) (a)
pn (x) = (x − a)k .
k!
k=0

Here 0! = 1 (by definition) and we use the convention of writing f (a) as f (0) (a).
Example 4.1.5. Suppose that f (x) = ln x. Find the Taylor polynomial of degree 5 for f about 1.
Solution. Since

f (x) = ln x f (1) = 0
1
f ′ (x) = f ′ (1) = 1
x
1
f ′′ (x) = − 2 f ′′ (1) = −1
x
(3) 2!
f (x) = 3 f (3) (1) = 2!
x
3!
f (4) (x) = − 4 f (4) (1) = −3!
x
(5) 4!
f (x) = 5 f (5) (1) = 4!,
x

we see that
−1 2! −3! 4!
p5 (x) = (x − 1) + (x − 1)2 + (x − 1)3 + (x − 1)4 + (x − 1)5
2! 3! 4! 5!
(x − 1)2 (x − 1)3 (x − 1)4 (x − 1)5
= (x − 1) − + − + .
2 3 4 5
It is preferable to express such a polynomial in powers of (x − 1) rather than in powers of x. There
is usually no need to expand each of the terms (x − 1)k .

4.2 Taylor’s theorem


(Ref: SH10 §12.6, 12.7)

We saw in the last section that e0.1 can be approximated using Taylor polynomials. Suppose
that a calculator (with a 10 digit display) uses Taylor polynomials to calculate the (approximate)

c 2018 School of Mathematics and Statistics, UNSW Sydney


4.2. TAYLOR’S THEOREM 109

value of e0.1 . What degree Taylor polynomial should the calculator use so that the displayed value
is accurate to 10 digits? Importantly, is there a way of answering this question without knowing in
advance the decimal expansion of e0.1 ?
In other words, we seek a method for determining how bad the error can get when approximating
a function by one of its Taylor polynomials without knowing the precise values of the function. The
functions f and g, given in the table below, further highlight the need for such a method.

Function nth Taylor polynomial about 0

x3 x5 x7 xn
f (x) = sin x pn (x) = x − + − + ··· (n odd)
3! 5! 7! n!
x2 x3 x5 xn
g(x) = ln(1 + x) qn (x) = x − + − + ···
2 3 5 n
Suppose that we want to approximate f (7). Although 7 is not close to 0, the graph below shows
that the approximation f (7) ≈ pn (7) is reasonable if n = 19 or n = 21.
y

p17 p21

1
|

| x
7
f
-1
|

p15 p19

By plotting more graphs, one would discover that the approximation f (7) ≈ pn (7) seems to improve
as n increases. We could conjecture that as n → ∞ the error in the approximation approaches 0.
On the other hand, suppose that we want to approximate g(1.5). Although 1.5 is closer to 0
than is 7, the Taylor polynomials do not provide a good approximation to the true value of g(1.5),
as Figure 4.2 shows. The Taylor polynomials approximate g very well on the interval (−0.7, 0.7)
and are not too bad on (0.7, 1). However, to the right of 1 they should not be used to approximate
the function. Moreover, while the higher degree Taylor polynomials give better approximations
near 0, they give larger errors than lower degree polynomials to the right of 1. This surprising
observation highlights the need for establishing a rigorous basis Taylor polynomial approximation.
In particular, we must have some idea whether the error involved in each approximation is going
to be large or small.
In light of the above discussion, we want an exact expression for the difference between a
function and one of its Taylor polynomials. To obtain this expression, we use integration by parts.
Suppose that f has n + 1 continuous derivatives on an open interval I containing 0. We are
about to compute the nth Taylor polynomial of f about 0 in such a way that we keep track of the

c 2018 School of Mathematics and Statistics, UNSW Sydney


110 CHAPTER 4. TAYLOR SERIES

q11
y

q17
q5

1 | g

| | | x
-1 1 1.5

-1
|

q14

q8

Figure 4.2: Taylor polynomials for ln(1 + x) about 0.

c 2018 School of Mathematics and Statistics, UNSW Sydney


4.2. TAYLOR’S THEOREM 111

difference (also known as the error or remainder ) between f (x) and pn (x). Fix a number x in the
interval I and note that Z x
f ′ (t) dt = f (x) − f (0). (4.1)
0
On the other hand, we can evaluate the same integral using integration by parts. If we set

u = f ′ (t) v = −(x − t)
du dv
= f ′′ (t) =1
dt dt
then integration by parts gives
Z x h ix Z x
′ ′
f (t) dt = − f (t)(x − t) + f ′′ (t)(x − t) dt
0 0 0
Z x
′ ′′
= f (0)x + f (t)(x − t) dt. (4.2)
0

Thus, from equations (4.1) and (4.2) we see that


Z x

f (x) = f (0) + f (0)x + f ′′ (t)(x − t) dt.
0

(Note that the first two terms on the right-hand side gives the Taylor polynomial of degree 1, and
that the third term on the right-hand side is the error in the approximation f (x) ≈ p1 (x).) By
applying integration by parts with

u = f ′′ (t) v = − 21 (x − t)2
du dv
= f ′′′ (t) = x − t,
dt dt
we obtain Z x
′ f ′′ (0) 1
f (x) = f (0) + f (0)x + x+ f ′′′ (t)(x − t)2 dt.
2! 2! 0
(The right-hand side is now the second Taylor polynomial of f with the associated error (also
known as remainder)). If we continue integrating by parts then we obtain after n steps
Z x
′ f ′′ (0) f (3) (0) 3 f (n) (0) n 1
f (x) = f (0) + f (0)x + x+ x + ... + x + f (n+1) (t)(x − t)n dt.
2! 3! n! n! 0

That is,
f (x) = pn (x) + Rn+1 (x)
where pn is the nth Taylor polynomial for f about 0 and
Z
1 x (n+1)
Rn+1 (x) = f (t)(x − t)n dt.
n! 0

We call Rn+1 (x) the remainder term.


This argument may be easily adapted for Taylor polynomials about a point a, rather than 0.
We thus have the following theorem.

c 2018 School of Mathematics and Statistics, UNSW Sydney


112 CHAPTER 4. TAYLOR SERIES

Theorem 4.2.1 (Taylor’s theorem). Suppose that f has n + 1 continuous derivatives on an open
interval I containing a. Then for each x in I,

f (x) = pn (x) + Rn+1 (x),

where the nth Taylor polynomial pn about a is given by

f ′′ (a) f (3) (a) f (n) (a)


pn (x) = f (a) + f ′ (a)(x − a) + (x − a)2 + (x − a)3 + · · · + (x − a)n
2! 3! n!
and the remainder Rn+1 (x) is given by
Z x
1
Rn+1 (x) = f (n+1) (t)(x − t)n dt. (4.3)
n! a

Taylor’s theorem tells us that the error in the approximation f (x) ≈ pn (x) is exactly equal
to Rn+1 (x). However, the remainder Rn+1 (x), as given in the integral form (4.3), is usually very
difficult to compute. A more convenient form is known as the Lagrange formula for the remainder.

Corollary 4.2.2 (Lagrange formula for the remainder). Suppose that f has n + 1 continuous
derivatives on an open interval I containing a. Then for each x in I,

f (x) = pn (x) + Rn+1 (x),

where pn is the nth Taylor polynomial for f about a and

f (n+1) (c)
Rn+1 (x) = (x − a)n+1 (4.4)
(n + 1)!

for some real number c between a and x.

The proof of Corollary 4.2.2 is left as an exercise in the tutorial problems.

Remark 4.2.3. Taylor’s theorem with the Lagrange formula for the remainder is a generalisation
of the mean value theorem. To see this, suppose that f is once differentiable. Then

f (x) − p0 (x) = R1 (x),

which means that


f (x) − f (a) = f ′ (c)(x − a).
for some c between x and a. In other words,

f (x) − f (a)
= f ′ (c)
x−a
for some c between x and a.

In most examples, it is difficult to find the exact value of the number c that appears in the
Lagrange formula for the remainder. Instead, one uses the fact that c lies between x and a to find
an upper bound for the remainder term. That is while we may not know what c is, we do know
where c is.

c 2018 School of Mathematics and Statistics, UNSW Sydney


4.2. TAYLOR’S THEOREM 113

Example 4.2.4. Suppose that f (x) = cos x. By considering the second Taylor polynomial for f
about 0, estimate f (1/5) and find an upper bound for the error.

Solution. The second Taylor polynomial p2 is given by

f ′′ (0) 2
p2 (x) = f (0) + f ′ (0)x + x
2!
cos(0) 2
= cos(0) − sin(0)x − x
2!
x2
=1− .
2!

Hence we use the estimate cos( 15 ) ≈ p2 ( 51 ) = 49


50 . Using the Lagrange formula for the remainder, we
calculate an upper bound for absolute error:

|error| = |f (1/5) − p2 (1/5)|


= |R3 (1/5)| (by Taylor’s theorem)
f (3) (c)
= (1/5)3 (for some c in [0, 1/5])
3!
sin c 1
= × (for some c in [0, 1/5])
6 125
1 1
≤ × (since sin c ≤ 1)
6 125
1
= .
750
1
So an upper bound for the error is 750 , which is approximately 0.001333.
This upper bound is actually quite crude due to the estimate sin c ≤ 1. If instead we use the
inequality
sin t < t whenever t > 0
1
(see Chapter 5 of MA1131), then sin c < c < 5 and we obtain the upper bound

1
|error| < .
3750

In summary, cos( 51 ) ≈ 49
50 and the absolute error in this estimate is less than 1
3750 (that is, less than
0.0002667).

Example 4.2.5. A calculator with a 10 digit display uses a Taylor polynomial about 0 to estimate
e0.1 . What degree polynomial should be used to guarantee that e0.1 is displayed accurately?

Solution. We consider the function f given by f (x) = ex . By Taylor’s theorem,

ex = pn (x) + Rn+1 (x)

where
x2 x3 xn
pn (x) = 1 + x + + + ... +
2! 3! n!
c 2018 School of Mathematics and Statistics, UNSW Sydney
114 CHAPTER 4. TAYLOR SERIES

and
ec
Rn+1 (x) = xn+1
(n + 1)!
for some c between 0 and x. Since the calculator will display the first ten digits of pn (0.1), it suffices
if the error in the approximation e0.1 ≈ pn (0.1) is less than 10−10 . That is, we need to find n large
enough so that
|Rn+1 (0.1)| < 10−10 . (4.5)
Now
ec
|Rn+1 (0.1)| = (0.1)n+1 (for some c in [0, 0.1])
(n + 1)!
e0.1
≤ (0.1)n+1 (since exp is an increasing function)
(n + 1)!
2
< (0.1)n+1 (since e0.1 < 30.1 < 31/2 < 2)
(n + 1)!
2
= 10−(n+1) (since 0.1 = 10−1 ).
(n + 1)!
2
Now (n+1)! < 1 whenever n ≥ 1, so we obtain the (very crude) estimate

|Rn+1 (0.1)| < 10−(n+1)

provided that n ≥ 1. Thus if n = 9 then (4.5) is satisfied. That is, if the calculator displays the
first 10 digits appearing in the decimal expansion of p9 (0.1), then the number appearing on the
display will be accurate.
However, we can do better than this. By trial and error we find that the first (positive) integer
n such that
2
10−(n+1) < 10−10
(n + 1)!
is 6. That is, the calculator should display the first 10 digits appearing in the decimal expansion
of p6 (0.1).
(Note that we did not use the decimal expansion of e0.1 to estimate the error.)

4.2.1 Classifying stationary points


Taylor’s theorem can also be applied to the problem of classifying the stationary points of differen-
tiable functions. For example, the function f given by f (x) = (x − 3)4 has a stationary point at 3
(since f ′ (3) = 0). However, since f ′′ (3) = 0, the second derivative test cannot be used to determine
whether the stationary point is a maximum, minimum or horizontal point of inflexion. By using
Taylor’s theorem, one can deduce the following improvement on the second derivative test.
Corollary 4.2.6. Suppose that f is n times differentiable at a and that f ′ (a) = 0. If

f ′′ (a) = f ′′′ (a) = . . . = f (k−1) (a) = 0

but f (k) (a) 6= 0, where k ≤ n, then


(i) a is a local minimum point if k is even and f (k) (a) > 0;

c 2018 School of Mathematics and Statistics, UNSW Sydney


4.2. TAYLOR’S THEOREM 115

(ii) a is a local maximum point if k is even and f (k) (a) < 0;

(iii) a is an horizontal point of inflexion if k is odd.

Sketch proof. Suppose that f is n times differentiable at a, and that

f ′ (a) = 0 = f ′′ (a) = f ′′′ (a) = . . . = f (k−1) (a) = 0 and f (k)(a) 6= 0.

We will make the additional assumptions that f (k) (x) exists for all x sufficiently close to a and that
f (k) is continuous at a. (A proof of the general case is more complicated and will be omitted.)
Taylor’s theorem (with Lagrange’s remainder) implies that

f ′′ (a) f (k−1) (a) f (k) (c)


f (x) = f (a) + f ′ (a)(x − a) + (x − a)2 + · · · + (x − a)k−1 + (x − a)k
2! (k − 1)! k!
f (k)(c)
= f (a) + 0 + 0 + · · · + 0 + (x − a)k
k!
f (k) (c)
= f (a) + (x − a)k (4.6)
k!
for some c between x and a.
We now prove case (i). If k is even then (x − a)k > 0 whenever x 6= a. Since f (k) (a) > 0 and
f (k) is continuous at a, we conclude that f (k)(c) > 0 whenever x (and hence c) is sufficiently close
to a. By combining these inequalities with (4.6), we conclude that f (x) ≥ f (a) for all x sufficiently
close to a. Hence a is a local minimum point for f .
Cases (ii) and (iii) are proved in a similar way.

Example 4.2.7. Suppose that

f (x) = x7 − 17x6 + 101x5 − 229x4 + 3x3 + 621x2 − 297x − 567.

You are given that 3 is a stationary point of f . Classify this stationary point.

Solution. It is easy to check that

f ′ (3) = f ′′ (3) = f ′′′ (3) = 0 and f (4) (3) = −1536 < 0.

By applying Corollary 4.2.6 (with k equal to 4), we conclude that 3 is a local maximum point for
f.

4.2.2 Some questions arising from Taylor’s theorem


To set the agenda for the rest of the chapter, we return now to our solution of Example 4.2.5, where
Taylor polynomials were used to estimate e0.1 . We saw that

(0.1)2 (0.1)3 (0.1)n


e0.1 = 1 + (0.1) + + + ··· + Rn+1 (0.1), (4.7)
2! 3! n!
where
2
0 < |Rn+1 (0.1)| < .
10n+1 (n + 1)!

c 2018 School of Mathematics and Statistics, UNSW Sydney


116 CHAPTER 4. TAYLOR SERIES

Since
2
lim = 0,
n→∞ 10n+1 (n + 1)!

it is seems reasonable to surmise that |Rn+1 (0.1)| (and hence Rn+1 (0.1)) approaches 0 as n → ∞.
By letting n approach infinity in (4.7), this suggests that

(0.1)2 (0.1)3 (0.1)4 (0.1)5 (0.1)6


e0.1 = 1 + (0.1) + + + + + + ··· .
2! 3! 4! 5! 6!

We therefore ask the following questions.

• What do we mean by Rn+1 (0.1) → 0 as n → ∞? More generally, given a sequence of


numbers {a1 , a2 , a3 , . . .}, how do we determine the limiting behaviour of an as n → ∞?

• What is meant by the infinite sum

(0.1)2 (0.1)3 (0.1)4 (0.1)5 (0.1)6


1 + (0.1) + + + + + + · · ·?
2! 3! 4! 5! 6!

Does the sum converge to a real number or (since we are adding infinitely many positive
numbers) does the sum diverge to infinity? If the sum does converge to a real number
then is that number e0.1 ? More generally, given an infinite sum (also called a series)
a1 + a2 + a3 + · · · , how can we determine whether the series converges to a real number
or else diverges?

• Each of these questions may be framed in a much larger context. Given a function f which
is infinitely differentiable at a, Taylor’s theorem gives

f ′′ (a) f (3) (a) f (n) (a)


f (x) = f (a)+f ′(a)(x−a)+ (x−a)2 + (x−a)3 +· · ·+ (x−a)n +Rn+1 (x).
2! 3! n!

For what values of x will lim Rn+1 (x) = 0? For what values of x will the infinite series
n→∞

f ′′ (a) f (3) (a)


f (a) + f ′ (a)(x − a) + (x − a)2 + (x − a)3 + · · ·
2! 3!

converge to a finite number? If the series does converge for some x, is it always true that

f ′′ (a) f (3) (a)


f (x) = f (a) + f ′ (a)(x − a) + (x − a)2 + (x − a)3 + · · ·?
2! 3!

The example of ln(x + 1) given at the beginning of this section suggests that we cannot always
answer ‘yes’ to each of these questions. To appreciate a comprehensive answer to the questions
posed, we must spend some time studying the limiting behaviour of sequences and series. We do
so in the next three sections.

c 2018 School of Mathematics and Statistics, UNSW Sydney


4.3. SEQUENCES 117

4.3 Sequences
(Ref: SH10 §11.6–11.4)

A sequence is a real-valued function defined on (a subset of) the natural numbers. For example,
the function f : N → R, given by f (n) = n2 , is a sequence. Sequences are usually denoted using a
and b, rather than f and g. In the case of sequences, subscript notation is traditionally preferred
over function notation. Thus
a(n) = n2 ∀n ∈ N

and
an = n2 whenever n = 0, 1, 2, 3, . . .

describe the same sequence, but the second notation is used more frequently. Another way of
describing the same sequence is

{an } = {0, 1, 4, 16, 25, . . .},

or more precisely,
{an }∞ 2 ∞
n=0 = {n }n=0 .

In each case, the number an is called the nth term of the sequence.

Example 4.3.1. The sequence  


1 2 3 4 5
, , , , ,...
2 5 10 17 26
n
is described by the rule an = whenever n ≥ 1.
n2 +1
Example 4.3.2. The Fibonacci sequence

{1, 1, 2, 3, 5, 8, 13, 21, 34, 55, . . .}

is described recursively by the rule


(
1 if n = 1 or n = 2
an =
an−1 + an−2 if n ≥ 3.

Example 4.3.3. Suppose that f is m + 1 times differentiable at a. Then for each x in R, the
remainder term Rn+1 (x) from Taylor’s theorem gives rise to the (finite) sequence {Rn+1 (x)}m
n=1 .

Since sequences are a class of functions, we can add, subtract, multiply and divide any two
sequences that share a common domain. For example,
√ √
{n2 }n∈N { n}n∈N = {n2 n}n∈N .
√ √
If the domain (in this case N) is understood, then one can simply write {n2 }{ n} = {n2 n}.

c 2018 School of Mathematics and Statistics, UNSW Sydney


118 CHAPTER 4. TAYLOR SERIES

4.3.1 Describing the limiting behaviour of sequences


Suppose that {an } is a sequence. Our primary objective is to describe the behaviour of an as
n → ∞. There are two main types of behaviour. Either
(a) an approaches some finite number L, in which case we say that the sequence {an } is
convergent and write lim an = L; or
n→∞

(b) the sequence {an } is not convergent, in which case we say that {an } is divergent.
Divergent sequences can be further classified according to the list below.
(i) If an → ∞ as n → ∞ (that is, an grows without bound) then we say that the sequence
{an } diverges to infinity.

(ii) If an → −∞ as n → ∞ then we say that the sequence {an } diverges to negative infinity.

(iii) If {an } has no limit as n → ∞ but remains bounded then we say that {an } boundedly
divergent.

(iv) If {an } exhibits none of the above behaviour then we say that {an } unboundedly divergent.
There are rigorous definitions for each of these cases. We will see one of them later in Remark
4.3.5.
Example 4.3.4. Describe the behaviour of each sequence {an } as n → ∞.
(a) an = n3

(b) an = sin(nπ/2)
3n2
(c) an = n2 +4n+3

(d) an = (−1)n 2n
Solution. (a) Since an → ∞ as n → ∞, the sequence {an } diverges to infinity.
(b) Since
{an }∞
n=0 = {0, 1, 0, −1, 0, 1, 0, −1, 0, . . .}

we see that {an } is bounded but does not have a limit. Hence {an } is boundedly divergent.
(c) Since
3n2 3 3
= →
n2 + 4n + 3 1 + 4/n + 3/n2 1+0+0
as n → ∞, we conclude that {an } converges to 3.
(d) Since
{an }n∈N = {1, −2, 4, −8, 16, −32, 64, −128, . . .}
we see that {an } is not bounded. Moreover, since the even terms of the sequence approach infinity
while the odd terms approach negative infinity, we conclude that the sequence {an } is unboundedly
divergent.

Remark 4.3.5. The formal definition for lim an = L is similar to that for lim f (x) = L (see the
n→∞ x→∞
MA1131 calculus notes) and is given as follows.

c 2018 School of Mathematics and Statistics, UNSW Sydney


4.3. SEQUENCES 119

Suppose that {an }∞


n=0 is a sequence of real numbers and that L ∈ R. We write

lim an = L
n→∞

if, for every positive number ǫ, there is a number M such that |an − L| < ǫ
whenever n > M .

This definition may be interpreted geometrically.


an
b

b
b
b
b

L+ǫ
b
b b b b b b b b b b b b

L
L−ǫ

| | | | | | | | | | | | | | | | | | | | | n
10 M 20

Given any small number ǫ, there is a point M such that the distance between the an and the limit
L is less than ǫ for every n past M . In other words, for every small band about the limit L, there
is a point M such the sequence always lies in the band past M .

4.3.2 Techniques for calculating limits of sequences


Many of the rules and techniques given in MA1131 for calculating limits of functions also apply for
limits of sequences.
The first proposition of this subsection shows that limits behave well under the standard arith-
metic operations.

Proposition 4.3.6. Suppose that lim an and lim bn exist. Then


n→∞ n→∞

(i) lim (an + bn ) = lim an + lim bn ;


n→∞ n→∞ n→∞

(ii) lim (an bn ) = lim an × lim bn ;


n→∞ n→∞ n→∞

an lim an
(iii) lim = n→∞ , provided that lim bn 6= 0 and bn 6= 0 for any n; and
n→∞ bn lim bn n→∞
n→∞

(iv) lim (αan ) = α lim an for every real number α.


n→∞ n→∞

Example 4.3.7. Suppose that an = n2 + 4n − n. Determine the limiting behaviour of an as
n → ∞.

c 2018 School of Mathematics and Statistics, UNSW Sydney


120 CHAPTER 4. TAYLOR SERIES

p
Solution. We proceed in the same manner as if we were asked to calculate lim ( x2 + 4x − x).
x→∞
Now
p
an = n2 + 4n − n
√ √
( n2 + 4n − n)( n2 + 4n + n)
= √ (multiplying top and bottom by the ‘conjugate’)
( n2 + 4n + n)
n2 + 4n − n2
=√ (difference of two squares)
n2 + 4n + n
4n
=√
2
n + 4n + n
4
=p (dividing top and bottom by n).
1 + 4/n + 1
Clearly 4/n → 0 as n → ∞ and so by applying the limit rules of the above proposition we find that
an → 2 as n → ∞.

The next proposition can be used when a function is composed with a sequence.
Proposition 4.3.8. Suppose that lim an = a and that f is continuous at a. Then
n→∞

lim f (an ) = f (a).


n→∞

This proposition is easy to remember if f is continuous everywhere; it amounts to saying that


the function and limit can be swapped, as shown below:
 
lim f (an ) = f lim an .
n→∞ n→∞
 
πn2
Example 4.3.9. Find lim sin , if it exists.
n→∞ 4n2 + 1
Solution. Note that the sine function is continuous everywhere. Therefore
   
πn2 πn2
lim sin = sin lim
n→∞ 4n2 + 1 n→∞ 4n2 + 1
 
π
= sin lim
n→∞ 4 + 1/n2
π
= sin
4
1
=√ .
2

The following rule allows the use of l’Hôpital’s rule when calculating limits of sequences.
Proposition 4.3.10. Suppose that {an } is a sequence and f is a function defined on some interval
(b, ∞). If an = f (n) for all n sufficiently large and lim f (x) exists then
x→∞

lim an = lim f (x).


n→∞ x→∞

c 2018 School of Mathematics and Statistics, UNSW Sydney


4.3. SEQUENCES 121

Note that this proposition only works for limits which are finite. If an = f (n) and f (x) diverges
as x → ∞, one cannot say that an diverges. (Consider, for example, the case when an = 0 for all
n and f (x) = x sin(πx) for all x.)
The next example shows how Proposition 4.3.10 is applied in conjunction with l’Hôpital’s rule.
Example 4.3.11. Suppose that an = (1 + 1/n)n . Determine the limiting behaviour of an as
n → ∞.
Solution. Suppose that f (x) = (1 + 1/x)x whenever x > 0. Then an = f (n) whenever n > 0.
Hence
lim an = lim f (x).
n→∞ x→∞

The method for calculating the limit of f is standard: we first take the logarithm of f (to remove
the power) and then rearrange the resulting function so that we can apply l’Hôpital’s rule. That
is,
 
1 x
lim an = lim 1 +
n→∞ x→∞ x
   
1 x
= lim exp ln 1 + (since ln and exp are inverses)
x→∞ x
   
1 x
= exp lim ln 1 + (since exp is continuous everywhere)
x→∞ x
  
1
= exp lim x ln 1 + (by the log law)
x→∞ x
 
ln (1 + 1/x)
= exp lim (to prepare for l’Hôpital’s rule)
x→∞ 1/x
   
−1/x2
 1+1/x

= exp lim (by l’Hôpital’s rule)
x→∞ −1/x2 
 
1
= exp lim (simplifying the fraction)
x→∞ 1 + 1/x

= exp{1}
= e.

In summary, an converges to e as n → ∞.
 
1 n
Remark 4.3.12. The limit lim 1 + = e is a standard result and should be familiar to
n→∞ n
students.
Finally, we present a version of the pinching theorem for sequences.
Proposition 4.3.13 (The pinching theorem for sequences). Suppose that {an }, {bn } and {cn } are
sequences and that for some positive integer N the inequality

an ≤ bn ≤ cn

is satisfied whenever n > N . If lim an = lim cn = L then lim bn = L.


n→∞ n→∞ n→∞

c 2018 School of Mathematics and Statistics, UNSW Sydney


122 CHAPTER 4. TAYLOR SERIES

The following example is important because sequences involving both factorials and powers
arise frequently in applications of Taylor’s theorem.

n!
Example 4.3.14. Suppose that an = . Discuss the limiting behaviour of an as n → ∞.
nn

Solution. Note that

1 2 3 n
an = · · ···
n n n n
1 n n n
≤ · · ···
n n n n
1
=
n

whenever n ≥ 1. On the other hand, an is always positive. Thus

1
0 ≤ an ≤ .
n

As n → ∞ we conclude that an → 0 by the pinching theorem.

A similar technique was used in Lemma 2.2.5 to prove that

cn
lim =0
n→∞ n!

whenever c > 0.

Remark 4.3.15. It is helpful to have a good intuition of the order of growth of sequences. The
following table compares the growth of various sequences as n → ∞. The lower down on the table
the sequence appears, the faster it grows at infinity.

an growth rate as n → ∞
1 constant: does not grow
ln n grows slowly
nk , where k > 0 growth rate is faster for larger k
cn , where c > 1 growth rate is faster for larger c
n! grows rapidly
nn grows very rapidly

For example, the ordering in the table reflects the fact that

en n!
lim =0 while lim = 0.
n→∞ n! n→∞ nn

The final theorem is of great theoretical importance and will be used in later sections. We begin
with a definition.

c 2018 School of Mathematics and Statistics, UNSW Sydney


4.3. SEQUENCES 123

Definition 4.3.16. A sequence {an }∞


n=0 of real numbers is said to be

(a) increasing if an < an+1 for each natural number n,

(b) nondecreasing if an ≤ an+1 for each natural number n,

(c) decreasing if an > an+1 for each natural number n, and

(d) nonincreasing if an ≥ an+1 for each natural number n.

If any of these four properties holds then the sequence is said to be monotonic.

Theorem 4.3.17. If {an }∞


n=0 is a bounded monotonic sequence of real numbers then it is converges
to some real number L.

This theorem is proved using a property that distinguishes the real numbers from the rational
numbers. Given a bounded monotonic sequence of rational numbers, it is not true, in general, that
the sequence converges to a rational number.

4.3.3 Suprema and infima [X]


In this subsection we summarise some more advanced ideas.

Definition 4.3.18. Suppose that {an }∞


n=0 is a sequence of real numbers.

(a) We say that M is an upper bound for {an }∞


n=0 if an ≤ M for every natural
number n.

(b) We say that M is a lower bound for {an }∞


n=0 if an ≥ M for every natural
number n.

(c) We say that K is the least upper bound for {an }∞


n=0 if K is an upper bound
for {an }∞
n=0 and K ≤ M whenever M is an upper bound for {an }∞
n=0 .

(d) We say that K is the greatest lower bound for {an }∞


n=0 if K is a lower bound
for {an }∞
n=0 and K ≥ M whenever M is a lower bound for {an }∞
n=0 .

Example 4.3.19. Find the greatest lower bound and least upper bound for the sequence {an }∞
n=1 ,
(−1)n n
where an = . Prove your answer.
n+1
Solution. We write out the first few terms of the sequence to get a feel for what is happening:
 
1 2 3 4 5 6 7
− , ,− , ,− , ,− ,... .
2 3 4 5 6 7 8

c 2018 School of Mathematics and Statistics, UNSW Sydney


124 CHAPTER 4. TAYLOR SERIES

It is clear that the odd terms approach −1 (from above) while the even terms approach 1 (from
below).
n
We will prove that 1 is the least upper bound. First, it is clear that |an | = n+1 < 1 for every
positive integer n. So 1 is an upper bound. Suppose now that K is also an upper bound but that
K < 1. Hence K = 1 − ǫ for some positive number ǫ, while

n
<K
n+1

for every positive integer n. Therefore

n
<1−ǫ
n+1

and hence
1
1− <1−ǫ
n+1

for every positive integer n. But rearranging this inequality gives

1
n< −1
ǫ

for every positive integer n, which gives a contradiction since the set of positive integers has no
upper bound. Hence no such K exists. We conclude that 1 is the least upper bound.
Using a similar technique, one can show that −1 is the greatest lower bound for the sequence.
Note that the sequence has neither a maximum nor minimum value.

The fact that every bounded monotonic sequence of real numbers has a limit in R (see Theorem
4.3.17) follows from one of the axioms of the real number system. This axiom is called the least
upper bound axiom and may be stated as

‘Every nonempty set of real numbers that has an upper bound has a least upper
bound.’

Note that this axiom is not true for the rational number system.
To prove Theorem 4.3.17 in the case when {an }∞ n=0 is a bounded increasing sequence of real
numbers, we note that the values of the sequence forms a bounded nonempty set of real numbers.
By the least upper bound axiom, it therefore has an upper bound, which we denote by L. Using
the definition of the limit (see Remark 4.3.5), one can now show that lim an = L. The proof of
n→∞
the other cases is similar.
We now introduce some alternate terminology and new notation for least upper bound and
greatest lower bound.

c 2018 School of Mathematics and Statistics, UNSW Sydney


4.4. INFINITE SERIES 125

Definition 4.3.20. Suppose that {an }∞


n=0 is a sequence of real numbers.

(a) If {an }∞
n=0 has a least upper bound M , then M is also called the supremum
of {an }∞
n=0 and is denoted by
sup an or sup{an : n ≥ 0}.
n≥0

(b) If {an }∞
n=0 has a greatest lower bound M , then M is also called the infimum
of {an }∞
n=0 and is denoted by
inf an or inf{an : n ≥ 0}.
n≥0

The plural for supremum and infimum is suprema and infima.

4.4 Infinite series


(Ref: SH10 §12.1, 12.2)

At the end of Section 4.2, we asked the question What is meant by the infinite sum

(0.1)2 (0.1)3 (0.1)4 (0.1)5 (0.1)6


1 + (0.1) + + + + + + · · ·?
2! 3! 4! 5! 6!

In this section, we will develop a framework that gives meaning to this infinite sum by using existing
notions for convergence (and divergence) of sequences. The key is to recognise that

• the terms of the above series form a sequence {ak }∞


k=0 , where

(0.1)k
ak = ;
k!

and

• if sn denotes the sum of the first n terms in the series (so that

(0.1)2 (0.1)3 (0.1)n


sn = 1 + (0.1) + + + ··· +
2! 3! n!

whenever n ≥ 0) then {sn }∞


n=0 is also a sequence.

Thus questions concerning the meaning of an infinite series can be reduced to studying the limiting
behaviour of {sn }∞
n=0 . (Naturally, the limiting behaviour of {sn } depends on limiting properties of
the sequence {ak }; we will pay more attention to this aspect of the theory in Section 4.5.)

c 2018 School of Mathematics and Statistics, UNSW Sydney


126 CHAPTER 4. TAYLOR SERIES

Definition 4.4.1. Suppose that {ak }∞k=0 is a sequence of real numbers. For each
natural number n, let sn denote the nth partial sum given by
n
X
sn = a0 + a1 + a2 + · · · + an = ak .
k=0
If the sequence {sP ∞
n }n=0 of partial sums converges to a number L then we say that

the infinite series k=0 ak converges to L and we write
X∞
ak = L.
k=0
In this case we also say that the series is summable. If the sequence {sn }∞
n=0 of

X
partial sums diverges then we say that the infinite series ak diverges.
k=0

The following example illustrates this definition.


Example 4.4.2 (Geometric series). Suppose that r ∈ R and consider the geometric series

X
rk = 1 + r + r2 + r3 + r4 + · · · .
k=0

Determine the values of r for which the series (a) converges and (b) diverges.
Solution. If r 6= 1 then sn is given by the formula
1 − r n+1
sn =
1−r
(as is taught in high school). In the case when r = 1, we simply have

sn = |1 + 1 + 1{z+ · · · + 1} = n.
n times
In summary, (
1−r n+1
1−r if r 6= 1
sn =
n if r = 1.
P∞ k,
To determine the convergence (or otherwise) of the infinite series k=0 r we simply determine
the convergence of {sn }∞
n=0 . We break this up into four cases.

• If |r| < 1 then r n+1 → 0 as n → ∞ and so


1 − r n+1 1
lim sn = lim = .
n→∞ n→∞ 1 − r 1−r
Since the sequence of partial sums converges, so does the series and thus

X 1
rk = .
1−r
k=0

c 2018 School of Mathematics and Statistics, UNSW Sydney


4.4. INFINITE SERIES 127

• If |r| > 1 then r n+1 diverges (either to infinity if r > 1 or unboundedly if r < −1). The
X∞
sequence {sn } of partial sums therefore diverges and consequently the series r k also
k=0
diverges.

• If r = 1 then sn = n → ∞ as n → ∞. Consequently the series diverges.

• If r = −1 then it is easily seen that {sn }∞


n=0 = {1, 0, 1, 0, 1, . . .}. Hence {sn } is boundedly
divergent and the series

X
rk
k=0

also diverges.

The next example illustrates the technique of comparing a series with an integral.


X 1
Example 4.4.3 (The harmonic series). Show that the harmonic series diverges.
k
k=1

Solution. This proof uses results from integration. Consider the diagram below.

y
1
y= x

1
|

1
|

(k, k1 )
b

... ...
x
1 2 3 4 5 ... k k + 1 ... n n+1

It is clear that the area of the kth rectangle is 1/k, which is also equal to the kth term of the series.
Moreover, the area under the rectangles on the interval [1, n + 1] is greater than the area under the

c 2018 School of Mathematics and Statistics, UNSW Sydney


128 CHAPTER 4. TAYLOR SERIES

curve under the same interval. From these two observations it follows that
n
X 1
sn =
k
k=1
Z n+1
1
≥ dx
1 x
h in+1
= ln x
1
= ln(n + 1).

Now ln(n + 1) → ∞ as n → ∞, so we conclude that sn → ∞ as n → ∞. Hence the series


diverges.

Using the technique illustrated in the previous example, one can show that

X 1
• converges,
k2
k=1

X 1
• √ diverges, and
k=1
k

X 1
• diverges.
k ln k
k=2

All one needs to do is draw a diagram and compare the series with an appropriate improper integral.
Since a convergent infinite series is the limit of a sequence (the sequence of partial sums), many
results for sequences can be interpreted as results for series. The following proposition illustrates
this point.

X ∞
X
Proposition 4.4.4. Suppose that ak and bk are two summable series. Then
k=0 k=0

X ∞
X ∞
X
(i) (ak + bk ) = ak + bk ; and
k=0 k=0 k=0

X ∞
X
(ii) (αak ) = α ak for every real number α.
k=0 k=0
P P∞
Proof. Let sn and tn denote the partial sums of ∞ k=0 ak and k=0 bk respectively. Now apply
Proposition 4.3.6 (i) and (iv) to the sequences {sn } and {tn }.

Remark 4.4.5. While all the terms of a convergent series contribute to the value of the series, the
convergence (or otherwise) of any series only depends on the ‘tail’ of the series. That is, the first
hundred, thousand or even billion terms of the series are irrelevant to the question of whether the
series converges. More precisely, given any positive integer N ,

X ∞
X
ak converges if and only if ak converges.
k=0 k=N

c 2018 School of Mathematics and Statistics, UNSW Sydney


4.5. TESTS FOR SERIES CONVERGENCE 129

With this in mind, all of the theorems presented in the next section are just as true for series
of the form

X ∞
X ∞
X
ak , ak or ak
k=1 k=50 k=2000

X
as they are for series of the form ak . When the starting point for the series does not matter,
k=0
one sometimes simply writes

X X
ak or ak .

4.5 Tests for series convergence


(Ref: SH10 §12.3–12.5)

To determine whether a series



X
ak
k=0
converges or diverges, mathematicians have developed some simple tests. Typically, these tests
examine the behaviour of the sequence {ak } and thereby deduce the convergence (or otherwise) of
the corresponding series. In this section we introduce three such tests: the kth term test, the ratio
test and the alternating series test.
Remark 4.5.1 (Warning). Care must be taken through this section not to confuse sequences and
series. For example, suppose that ak = k1 . While the sequence {ak } converges, the infinite series
P
ak does not.

4.5.1 Some preliminary results on series summation


The next two results are fundamental to the study of infinite series. They will later be used to
establish some simple tests for convergence or divergence.
Lemma 4.5.2. Suppose that {ak }∞
k=0 is a sequence of positive numbers and let sn denote the partial
sum given by
Xn
sn = ak .
k=0
P∞
If {sn }∞
n=0 is a bounded sequence then the infinite series k=0 ak is convergent.
Proof. For any natural number n,
sn+1 = sn + an+1 > sn ,
since an+1 is positive. Hence {sn }∞
n=0 is a bounded increasing sequence and hence has a limit L
(see Theorem 4.3.17). Therefore
X∞
ak = L
k=0
and the series converges.

c 2018 School of Mathematics and Statistics, UNSW Sydney


130 CHAPTER 4. TAYLOR SERIES

4.5.2 The kth term divergence test


The next test we introduce is a simple test for divergence. One should always use this test first
when trying to decide whether a series converges.

X
Theorem 4.5.3 (The kth term test for divergence.). If ak 6→ 0 as k → ∞ then ak diverges.
k=0

Before proving the theorem, we give an example.



X k2 + 2k
Example 4.5.4. Determine whether the series √ converges.
k=1
k4 + 2

k2 + 2k
Solution. If ak = √ then
k4 + 2
k2 + 2k
lim ak = lim √
k→∞ k→∞ k 4 + 2
1 + 2/k
= lim p (by dividing top and bottom by k2 )
k→∞ 1 + 2/k4
= 1.

Since ak 6→ 0 as k → ∞, the series diverges by the kth term test.

Remark 4.5.5. The kth term test is not a test for convergence. For example, consider the series
P ∞ 1
k=1 k . In this case, lim 1/k = 0 but the series diverges (see Example 4.4.3).
k→∞

The kth term divergence test is equivalent to the following theorem, whose proof we give below.

X
Theorem 4.5.6. If the series ak converges then ak → 0 as k → ∞.
k=0

X
Proof. [H] Suppose that ak converges to the real number L and let sn denote the nth partial
k=0
sum of the series. Then

sn − sn−1 = (a0 + a1 + · · · + an−1 + an ) − (a0 + a1 + · · · + an−1 )


= an . (4.8)

Now lim sn = lim sn−1 = L and so


n→∞ n→∞

lim an = lim (sn − sn−1 ) (by (4.8))


n→∞ n→∞
= lim sn − lim sn−1
n→∞ n→∞
=L−L
= 0,

thus completing the proof.

c 2018 School of Mathematics and Statistics, UNSW Sydney


4.5. TESTS FOR SERIES CONVERGENCE 131

4.5.3 The integral test


The idea from Example 4.4.3, where we bounded a sum by an integral, can be applied more generally
to produce a test for either convergence or divergence.
P
Theorem 4.5.7 (The integral test). Suppose that ak is an infinite series with positive terms.
Suppose f (x) is a positive integrable function decreasing on [1, ∞) such that for each positive integer
k, f (k) = ak .
Z ∞ X∞
(i) If f (x) dx converges then so does ak .
1 k=1
Z ∞ ∞
X
(ii) If f (x) dx diverges then so does ak .
1 k=1

The proof is similar to that given in Example 4.4.3.

Example 4.5.8. Determine whether or not the following series converge.


∞ ∞ ∞
X 1 X k X 1
(a) 2
(b) 2
(c)
k 2k + 1 k(log k)2
k=1 k=1 k=2
Z ∞
1
Proof. (a) Consider the improper integral, dx.
1 x2
 
1 N
Z ∞ Z N
1 1
dx = lim dx = lim − = 1.
1 x2 N →∞ 1 x2 N →∞ x 1

X 1
Since the improper integral converges, so does the series .
k2
k=1
2
(Note: This is a famous series, first summed by Euler. Its value is remarkably π6 . This will be
proven in later courses, but a proof of itZappeared in the NSW Extension 2 paper, 2010.)

x
(b) Consider the improper integral, 2+1
dx.
1 2x
Z ∞ Z N  N
x x 1 2
dx = lim dx = lim log(2x + 1) → ∞.
1 2x2 + 1 N →∞ 1 2x2 + 1 N →∞ 4 1


k X
Since the improper integral diverges, so does the series 2
.
2k + 1
Z ∞ k=1
1
(c) Consider the improper integral, dx.
2 x(log x)2
 
1 N
Z ∞ Z N
1 1 1
dx = lim dx = lim − = .
2 x(log x)2 N →∞ 2 x(log x)2 N →∞ log x 2 log 2

X 1
Since the improper integral converges, so does the series .
k(log k)2
k=1

c 2018 School of Mathematics and Statistics, UNSW Sydney


132 CHAPTER 4. TAYLOR SERIES

4.5.4 The comparison test


The integral test was basically a comparison between each term of a given series and the area of a
corresponding rectangle. This idea can also be applied to the terms of two series. If each term of a
given series is less than each term of another series - whose convergence is easy to determine, then
we can conclude the given series also converges. A similar test can be found for divergence.

Theorem 4.5.9 (The comparison test). Suppose that {ak }∞ ∞


k=0 and {bk }k=0 are two positive se-
quences such that ak ≤ bk for every natural number k.
P P∞
(i) If ∞k=0 bk converges then k=0 ak also converges.
P P∞
(ii) If ∞k=0 ak diverges then k=0 bk also diverges.

The comparison test is often used in conjunction with series of the following type.

Proposition 4.5.10 (Convergence and divergence of p-series). The series



X 1
kp
k=1

converges if p > 1 and diverges if p ≤ 1.

Proof. This theorem may be easily proved by the integral test, or by adapting the proof in Example
4.4.3. The details are left to the reader.

Example 4.5.11. Determine whether or not the following series converge.


∞ ∞ ∞
X k X 1 X 1
(a) (b) √ (c) √
k3 + 1 2
k −1 2
k +1
k=1 k=2 k=1

Typically, one needs some intuition as to whether the series will converge or diverge before the
comparsion test is used to construct a rigorous solution.

Solution. (a) By considering the dominant term (as k → ∞), we see that

k k 1
≈ 3 = 2
k3 + 1 k k
P 1
whenever k is a large positive integer. Since k 2 converges (p-series when p = 2), this suggests

X k
that 3
also converges.
k +1
k=1

X k
To prove that converges, we use part (i) of the comparison test. Note that
k3 + 1
k=1

k k 1
0≤ ≤ 3 = 2
k3 +1 k k

whenever
P k ≥ 1. So suppose that ak = k3k+1 and bk = k12 .PWe have shown that 0 ≤ ak ≤ bk . Since
bk converges, it follows from the comparison test that ak converges.

c 2018 School of Mathematics and Statistics, UNSW Sydney


4.5. TESTS FOR SERIES CONVERGENCE 133

∞ ∞ ∞
X 1 X 1 X 1
(b) Looking at the dominant terms, √ ≈ √ = .
2
k − 1 k=2 k 2 k
k=2 k=2

X 1
Since this series diverges (p-series when p = 1), this suggests that √ also diverges.
2
k −1
k=2

X 1
To prove that √ diverges, we use part (ii) of the comparison test.
k 2−1
k=2
1 1 1
Note that √ ≥ √ = , whenever k ≥ 2. So suppose that ak = √k12 −1 and bk = k1 . We
2
k −1 k 2 k
have shown
P that a k ≥ b k . P
Since bk diverges, it follows from the comparison test that ak diverges.
(c) The same analysis as in (b) suggests that this series also diverges. However, the inequality
1 1 1
√ ≥ √ = is false. To overcome this hurdle, we introduce a ‘fudge factor’ to obtain the
2
k +1 k 2 k
1 1 1
inequality we want. Thus, √ ≥ √ = for all sufficiently large k (in fact k ≥ 1 will do-
k2 + 1 2 k2 2k
you should check this!). So suppose that ak = √k12 +1 and bk = 2k 1
. We have shown that ak ≥ bk .
P P
Since bk diverges, it follows from the comparison test that ak diverges.

4.5.5 [X] The limit form of the comparison test


This form of the comparison test is extremely useful and allows us to rely on our intuition without
having to work with inequalities. The disadvantage is that it does not always work in quite the
same way as the straight comparison test does.
an
Proposition 4.5.12. Suppose an , bn are sequences with positive terms and suppose lim is
n→∞ bn

X X∞
finite and not zero, then an converges if and only if bn converges.
an
Proof. Suppose lim = K > 0. For any given ǫ > 0, we have
n→∞ bn
ak
−K <ǫ
bk
for all sufficiently large k. For such k we have
ak
K −ǫ< < K + ǫ ⇒ (K − ǫ)bk < ak < (K + ǫ)bk .
bk
P P P
Thus, from
P the last inequality,
P if a k converges then (K − ǫ)b
P k converges and hence bk does
also; if bk converges then (K + ǫ)bk converges and hence ak does also.

X k2
Example 4.5.13. Discuss the convergence of
k4 + 3
k=5
k2
Proof. For large k the summand ak = is roughly bk = k12 .
k 4 +3
∞ ∞
an X 1 X k2
Now lim = 1. Hence, since converges (by p-series with p = 2), so does .
n→∞ bn k2 k4 + 3
k=5 k=5

c 2018 School of Mathematics and Statistics, UNSW Sydney


134 CHAPTER 4. TAYLOR SERIES


X 1
Example 4.5.14. Discuss the convergence of sin( )
k
k=1

Proof. Since sin x ≈ x for small x, we try comparing ak = sin( k1 ), (whose terms are positive), with
bk = k1 .

an sin( k1 ) X 1
Now lim = 1 = 1. Hence, since diverges (by p-series with p = 1), so does
n→∞ bn k
k k=1

X 1
sin( ).
k
k=1

X 1
Remark 4.5.15. The series diverges, since, for n ≥ 1, we have log n < n giving log1 n > n1
log n
and so the comparison test may be applied. On other hand, is we try to use the limit comparison
an n
test with an = log1 n and bn = n1 , then lim = lim → ∞ and so the test fails.
n→∞ bn n→∞ log n

4.5.6 The ratio test


We now introduce a simple convergence and divergence test known as the ratio test. It is important
to note that this test can only be applied to series whose terms are positive.
P
Theorem 4.5.16 (The ratio test). Suppose that ak is an infinite series with positive terms and
that
ak+1
lim = r.
k→∞ ak
P
(i) If r < 1 then ak converges.
P
(ii) If r > 1 then ak diverges.

Remark 4.5.17. The ratio test does not specify what happens if r = 1. In this case, the test is
inconclusive; the series may converge or diverge.
P
The reason the ratio test works is that the tail of any series ak with ‘ratio’ r given by
ak+1
r = lim
k→∞ ak

behaves likeP
a geometric series with common ratio r. When r < 1, the geometric series is convergent
and henceP ak also converges. Similarly, When r > 1, the geometric series is divergent and
therefore ak also diverges. Of course, these assertions need to be proved.
Before we see a proof of the ratio test, we shall see how it is applied. As seen in the examples
below, the ratio test is particularly useful when k! or kth powers appear in each term ak .

Example 4.5.18. Determine whether or not the following series converge.


∞ ∞ ∞
X 1 X kk X 1
(a) (b) (c)
k! k! k
k=1 k=1 k=1

c 2018 School of Mathematics and Statistics, UNSW Sydney


4.5. TESTS FOR SERIES CONVERGENCE 135

1
Solution. (a) Suppose that ak = . Then
k!

ak+1 k! 1
r = lim = lim = lim = 0.
k→∞ ak k→∞ (k + 1)! k→∞ k + 1

Since r < 1, the series converges by the ratio test.


kk
(b) Suppose that ak = . Then
k!
ak+1
r = lim
k→∞ ak
(k + 1)k+1 k!
= lim · k
k→∞ (k + 1)! k
k
(k + 1) (k + 1) k!
= lim · k
k→∞ k!(k + 1) k
(k + 1) k
= lim
k→∞ kk
 
k+1 k
= lim
k→∞ k
 
1 k
= lim 1 +
k→∞ k
=e

(see Example 4.3.11 for a calculation of this well known limit). Since r = e > 1, the series diverges
by the ratio test.
k
(c) Since r = lim = 1, we cannot say from the ratio test whether or not the series
k→∞ k + 1
converges. It can be shown using another method that the series diverges (see Example 4.4.3).

Sketch proof of the ratio test. [X] (i) Suppose


n that o r < 1 and choose R such that r < R < 1. Since
ak+1 ak+1
lim = r, the terms of the sequence ak eventually gets so close to r that they must also
k→∞ ak
be less than R. More precisely, there is an integer N such that

ak+1
<R whenever k ≥ N. (4.9)
ak
P
Our goal from here is to show that the tail ∞k=N ak of the series can be bounded above by a
convergent geometric series with common ratio R. From (4.9) we see that

aN +1 < RaN , aN +2 < RaN +1 < R2 aN , aN +3 < RaN +2 < R2 aN +1 < R3 aN ,

and more generally that


aN +j < Rj aN whenever j ≥ 0. (4.10)

c 2018 School of Mathematics and Statistics, UNSW Sydney


136 CHAPTER 4. TAYLOR SERIES

Hence

X ∞
X
ak = aN +j
k=N j=0
X∞
< R j aN (by inequality (4.10))
j=0

X
= aN Rj (which is a geometric series)
j=0
aN
= (since R < 1).
1−R
X
Since the tail of the series ak converges, the series itself must converge.
(ii) If r > 1, then
ak+1
lim >1
k→∞ ak

and so
ak + 1
>1
ak
for all k sufficiently large. That is, ak+1 > ak for all k sufficiently large, which means that the
positive sequence {ak } eventually becomes an increasing sequence. Hence ak 6→ 0 as k → ∞. It
follows from the kth term test that the series is divergent.

4.5.7 Leibniz’ test for alternating series


So far we have given a convergence test for series all of whose terms are positive. If the terms are
all negative, then we simply multiply the series by −1 to obtain series whose terms are positive.
However, if the series has a mixture of positive and negative terms, we cannot apply this trick. In
the next two subsections, we deal with series whose terms have mixed signs. The simplest case is
when the sign alternates from term to term.

Definition 4.5.19. If {ak }∞ k=0 is a sequence of positive real numbers, then the series
a0 − a1 + a2 − a3 + a4 − a5 + a6 − a7 + a8 − a9 + · · ·
is called an alternating series.

An alternating series is often written in the form



X
(−1)k ak .
k=0

The following theorem, proved by Leibniz in the early eighteenth century, is a simple test for
the convergence of alternating series.
Theorem 4.5.20 (Alternating series test). Suppose that {ak }∞
k=0 is a sequence of real numbers
satisfying the following properties:

c 2018 School of Mathematics and Statistics, UNSW Sydney


4.5. TESTS FOR SERIES CONVERGENCE 137

(a) ak ≥ 0;

(b) ak ≥ ak+1 for all k (that is, the sequence is nonincreasing); and

(c) lim ak = 0.
k→∞


X
Then the alternating series (−1)k ak converges.
k=0

Before proving the theorem, we give and example and state a corollary.

X (−1)k k
Example 4.5.21. Determine whether the series is summable.
k2 + 1
k=2

Solution. Since this is an alternating series, one naturally tries the alternating series test. Suppose
k
that ak = 2 . We need to check that {ak } satisfies hypotheses (a), (b) and (c) of the alternating
k +1
series test.
It is clear that (a) and (c) hold. To prove (b), consider the function f given by
x
f (x) = .
x2 +1

Now
1 − x2
f ′ (x) =
(1 + x2 )2
and hence f ′ (x) < 0 whenever x > 1. That is, f is decreasing on the interval (1, ∞). Since
f (k) = ak whenever k ≥ 2, it follows that {ak }∞
k=2 is a decreasing sequence.
We now apply the alternating series test and deduce that the series converges.

If the hypotheses of the alternating sequence test are satisfied, then not only do we know that
the series converges to some limit L, but we can also approximate L with any partial sum sn and
obtain an upper bound for the corresponding error.

Corollary 4.5.22. Suppose that {ak }∞ k=0 is a sequence of numbers satisfying properties
P (a), (b)
and (c) of the alternating series test. Denote the value of the convergent series ∞ k=0 (−1)k a by
k
L and the nth partial sum of the same series by sn . Then

|sn − L| ≤ an+1 (4.11)

for every natural number n.

In effect, the corollary says that if you chop the series off after the nth term, the error in
approximation will be less than the (n + 1)st term. The proof is given at the end of this subsection.

X (−1)k 1
Example 4.5.23. Estimate the value of the series such that the error is less than 100 .
k2 + 1
k=0

c 2018 School of Mathematics and Statistics, UNSW Sydney


138 CHAPTER 4. TAYLOR SERIES

Solution. It is easy to verify that the sequence {ak }, where ak = k21+1 , satisfies the hypotheses of
the alternating series test. Hence the infinite series converges. Denote the value of the series by L.
1
We will use the estimate sn ≈ L, where n is chosen such that the absolute error is less than 100 .
Now

absolute error = |sn − L|


≤ an+1 (by Corollary 4.5.22)
1
= .
(n + 1)2 + 1

So it is enough to guarantee that


1 1
2
< .
(n + 1) + 1 100
Clearly the smallest positive integer n that satisfies this inequality is 9. So

9
X (−1)k 1 1 1 1
L ≈ s9 = 2
=1− + − + ··· −
k +1 5 10 17 82
k=0

1
and the error in this approximation is less than 100 . (Using Maple, one finds that s9 = 0.6305785114
(correct to 10 decimal places) and so L ≈ 0.63.)

We conclude this subsection by proving the alternating series test and its corollary. The follow-
ing diagram illustrates the typical behaviour of the partial sums of a series that satisfies hypotheses
(a), (b) and (c) of the alternating series test. It will be helpful to bear this diagram in mind when
reading the proofs.

sn
· even partial sums
· ·
limit
· · · ·
b b
b
b
b

odd partial sums


| | | | | | | | | | | | n
0 1 2 3 4 5 6 7 8 9 10 11 12

Proof of Theorem 4.5.20. [X] Let sn denote the nth partial sum of the series and suppose that
properties (a), (b) and (c) hold. The proof proceeds in three steps.
Step 1. We will prove that the sequence {s2n }∞ n=0 of even partial sums is bounded above by 0.
Now
s2n = (a0 − a1 ) + (a2 − a3 ) + (a4 − a5 ) + · · · + (a2n−2 − a2n−1 ) + a2n . (4.12)

By property (b) we see that

a0 − a1 ≥ 0, a2 − a3 ≥ 0, ,..., a2n−2 − a2n−1 ≥ 0

and by property (a) it is evident that a2n ≥ 0. It follows from (4.12) that s2n ≥ 0 for every n.

c 2018 School of Mathematics and Statistics, UNSW Sydney


4.5. TESTS FOR SERIES CONVERGENCE 139

Step 2. We will prove that the sequence {s2n }∞


n=0 of even partial sums is nonincreasing. Now

s2n − s2n+2 = (a0 − a1 + . . . + a2n ) − (a0 − a1 + . . . + a2n − a2n+1 + a2n+2 )


= a2n+1 − a2n+2
≥0

since a2n+1 ≥ a2n+2 by property (b). Thus s2n ≥ s2n+2 for all n, which means that {s2n }∞ n=0 is
nonincreasing.
Step 3. From Steps 1 and 2, we conclude that {s2n }∞n=0 is a bounded monotonic sequence and
hence convergent. Call the limit of this sequence L. If we can show that the sequence {s2n+1 }∞
n=0
of odd partial sums also converges to L, then we can conclude that {sn } converges. Now

s2n+1 = s2n + a2n+1 → L + 0

as n → ∞ by property (c). Hence {sn } converges.

Proof of Corollary 4.5.22. [X] Suppose that {ak } satisfies the hypotheses (a), (b) and (c) of the
alternating series test. Since the infinite series converges, lim sn = L for some real number L. If
n→∞
n is odd then
sn+2 = sn + an+1 − an+2 ≥ sn ,
and so the odd partial sums increase towards L from below. If n is even then

sn+2 = sn − an+1 + an+2 ≤ sn ,

and so the even partial sums decrease towards L from above. Hence if n is odd then

sn ≤ L ≤ sn+1 = sn + an+1 ,

while if n is even then


sn − an+1 = sn+1 ≤ L ≤ sn .
That is,
either sn ≤ L ≤ sn + an+1 or sn − an+1 ≤ L ≤ sn .
Both cases imply (4.11).

4.5.8 Absolute and conditional convergence


Consider the series
1 1 1 1 1 1 1 1
1+ − + + − + + − + ··· . (4.13)
2! 3! 4! 5! 6! 7! 8! 9!
Since
1
lim |ak | = lim = 0,
k→∞ k→∞ k!
the kth term test for divergence does not apply. One cannot apply the ratio test (since not all the
terms positive) and clearly this is not an alternating series. Is there a way of determining whether
the series is summable? The theorem given below proves very helpful in this instance. First we
give a definition.

c 2018 School of Mathematics and Statistics, UNSW Sydney


140 CHAPTER 4. TAYLOR SERIES


X
Definition 4.5.24. A series ak is said to be absolutely convergent if the series
k=0

X
|ak |
k=0
is convergent.

Theorem 4.5.25. If a series is absolutely convergent then it converges.


P
Proof. [H] Suppose that the series ∞k=0 ak converges absolutely. For each natural number k,

−|ak | ≤ ak ≤ |ak |

and hence
0 ≤ ak + |ak | ≤ 2|ak |. (4.14)
P P P
Since |ak | converges, it follows that 2 |a Pk | converges and hence 2|ak | converges. By the
comparison test, we deduce from (4.14) that (ak + |ak |) converges. Now

ak = (ak + |ak |) − |ak |.

Since the sum of the terms on the right-hand side


P∞converges (by Proposition 4.4.4), the sum of the
terms on the left must also converge. That is, k=0 ak converges, thus completing the proof.

Example 4.5.26. Determine whether or not the series given by (4.13) is convergent.

Solution. Let ak denote the kth term of the series. By Theorem 4.5.25, it is enough to show that
the series converges absolutely. Now
∞ ∞
X X 1
|ak | =
k!
k=1 k=1

and this series converges by the ratio test (see Example 4.5.18 (a)).

Not every convergent series is absolutely convergent. For example, the alternating series

1 1 1 1 1
1− + − + − + ··· (4.15)
2 3 4 5 6
converges (by the alternating series test) but the corresponding absolute series

1 1 1 1 1
1+ + + + + + ···
2 3 4 5 6
diverges (see Example 4.4.3). In this situation, we say that the series (4.15) is conditionally con-
vergent.

c 2018 School of Mathematics and Statistics, UNSW Sydney


4.5. TESTS FOR SERIES CONVERGENCE 141


X
Definition 4.5.27. A series ak is said to be conditionally convergent if it con-
k=0
verges but the series

X
|ak |
k=0

diverges.

The distinction between conditionally and absolutely convergent series is brought into bold
relief when considering rearrangements of series.

P
Definition 4.5.28. A rearrangement of a series ak is a series that has exactly
the same terms but that is summed in a different order.

For example,
1 1 1 1 1 1 1
1+ + − + + − + + ···
3 5 2 7 9 4 11
and
1 1 1 1 1 1 1
− + 1 − + − + − + − ···
2 4 3 6 5 8 7
are both rearrangements of
1 1 1 1 1 1 1
1− + − + − + − + ··· .
2 3 4 5 6 7 8
If the series is finite, then every rearrangement has the same value (since addition of real numbers is
commutative). However, if the series is infinite, then the value (if it exists) of each rearrangement
is determined by a limit of partial sums, and one cannot appeal to commutativity of addition,
as in the finite case. In fact, some rather surprising phenomena occur with rearrangements of
conditionally convergent series.

X
Theorem 4.5.29. Suppose that ak is an infinite series.
k=0
P
(i) If ak converges absolutely, then every rearrangement
P of the series converges absolutely
and all rearrangements have the same limit as ak .
P
(ii) If ak converges conditionally, then given any real number L, the series has a rear-
rangement that converges to L. Moreover, every conditionally convergent series has a
rearrangement that diverges to ∞, and another rearrangement that diverges to −∞.
This theorem was published in 1867 by Riemann. One of the tutorial problems illustrates that
the conditionally convergent series
1 1 1 1 1 1
1 − + − + − + − ···
2 3 4 5 6 7
can be rearranged to sum to different real numbers. The moral of the story is that one should not
rearrange a conditionally convergent series to determine its value.

c 2018 School of Mathematics and Statistics, UNSW Sydney


142 CHAPTER 4. TAYLOR SERIES

4.6 Taylor series


(Ref: SH10 §12.7)

At the end of Section 4.2 we posed the question, When is it true that
f ′′ (a) f (3) (a)
f (x) = f (a) + f ′ (a)(x − a) + (x − a)2 + (x − a)3 + · · ·?
2! 3!
Having studied sequences and series of real numbers, we now have the tools to deal with this and
related questions. First, we give the above series expansion a special name.

Definition 4.6.1. Suppose that a function f has derivatives of all orders at a. Then
the series
f ′′ (a) f (3) (a)
f (a) + f ′ (a)(x − a) + (x − a)2 + (x − a)3 + · · · ,
2! 3!
which may also be written as

X f (k) (a)
(x − a)k ,
k!
k=0
is called the Taylor series for f about a. In the case when a = 0, the series is also
called the Maclaurin series for f .

Next, we need to define what we mean by the convergence (or divergence) of a Taylor series.

Definition 4.6.2. Suppose that I is an interval and that f has derivatives of all
orders at some point a. We say that

(a) the Taylor series for f about a converges on I if the series



X f (k) (a)
(x − a)k
k!
k=0
converges for each point x in I;

(b) the Taylor series for f about a converges to f on I if for each x in I, x lies
in the domain of f and

X f (k)(a)
f (x) = (x − a)k ;
k!
k=0
and

(c) the Taylor series for f at a diverges on I if the series



X f (k) (a)
(x − a)k
k!
k=0
diverges for each point x in I.

c 2018 School of Mathematics and Statistics, UNSW Sydney


4.6. TAYLOR SERIES 143

Thus the question asked at the beginning of this section may be rephrased as,

For what intervals I will the Taylor series of a function f converge to f ?

The following corollary to Taylor’s theorem helps answer this question.

Corollary 4.6.3. Suppose that f has derivatives of all orders at a and that x lies in the domain
of f . Let Rn+1 (x) denote the remainder term of Theorem 4.2.1 (or its equivalent form as given in
Corollary 4.2.2). If
lim Rn+1 (x) = 0 (4.16)
n→∞

then

X f (n) (a)
f (x) = (x − a)n .
n=0
n!

Proof. Let pn denote the nth Taylor polynomial for f about a. Taylor’s theorem implies that

f (x) = pn (x) + Rn+1 (x). (4.17)

Note that pn (x) is the nth partial sum of the series



X f (n) (a)
(x − a)n .
n!
n=0

So we only have to show that


lim pn (x) = f (x). (4.18)
n→∞

Now

|pn (x) − f (x)| = |Rn+1 (x)| (by (4.17))


→0

as n → ∞ by (4.16). That is, the distance between pn (x) and f (x) can be made as small as we
like. Hence (4.18) follows.

Example 4.6.4. Suppose that x ∈ R. Show that

x2 x3 x4
ex = 1 + x + + + + ··· .
2! 3! 4!
n
Solution. Suppose that f (t) = et and fix x in R. The sum of the terms up to (and including) xn!
is equal to pn (x), where pn is the nth Taylor polynomial for f about 0. So by Corollary 4.6.3, we
only need to show that lim Rn+1 (x) = 0. Now
n→∞

f (n) (t) = et ∀t ∈ R,

and so by the Lagrange formula for the remainder,


ec
Rn+1 (x) = xn+1
(n + 1)!

c 2018 School of Mathematics and Statistics, UNSW Sydney


144 CHAPTER 4. TAYLOR SERIES

for some c between 0 and x. Now ec ≤ e|c| ≤ e|x| . If M = e|x| then

0 ≤ |Rn+1 (x)|
ec
= |x|n+1
(n + 1)!
M |x|n+1

(n + 1)!
→0

as n → ∞ by Lemma 2.2.5. Therefore

lim Rn+1 (x) = 0


n→∞

by the pinching theorem for sequences.

We have just proved that the Taylor series about 0 for the exponential function converges to the
exponential function on R. We say that the exponential function is represented by its Taylor series
about 0 on R. Some other convergent Taylor series representations are given in the next theorem.

Theorem 4.6.5. The following formulae hold whenever x lies in the given interval.
1
= 1 + x + x2 + x3 + x4 + . . . x ∈ (−1, 1)
1−x
x2 x3 x4
ex = 1 + x + + + + ··· x∈R
2! 3! 4!
x3 x5 x7
sin x = x − + − + ··· x∈R
3! 5! 7!
x2 x4 x6
cos x = 1 − + − + ··· x∈R
2! 4! 6!
x3 x5 x7
sinh x = x + + + + ··· x∈R
3! 5! 7!
x2 x4 x6
cosh x = 1 + + + + ··· x∈R
2! 4! 6!
x2 x3 x4
ln(1 + x) = x − + − + ··· x ∈ (−1, 1]
2 3 4
x3 x5 x7
tan−1 x = x − + − + ··· x ∈ [−1, 1]
3 5 7
Moreover, if x lies outside the given interval then the corresponding Maclaurin series diverges.

Most of these formulae can be proved by showing that the Lagrange formula for the remainder
tends to 0 as n → ∞. However, sometimes one must resort to using the integral form of the
remainder (as given by Theorem 4.2.1). One of the tutorial problems illustrates its use. In Section
4.8, we introduce tools that provide an alternate approach to deriving some of these expansions.

Remark 4.6.6. The Taylor series expansions for sin x and ln(1+x) given by Theorem 4.6.5 explain
the phenomena discussed at the beginning of Section 4.2. In particular, the Taylor series for sin x
converges for all x in R, which explains why sin(7) could be approximated by Taylor polynomials

c 2018 School of Mathematics and Statistics, UNSW Sydney


4.7. POWER SERIES 145

of sufficiently high degree. On the other hand, we cannot use Taylor polynomials to approximate
ln(1 + x) when x > 1 (as suggested by Figure 4.2) because the Taylor series diverges when x > 1.
This explains why higher order Taylor polynomials give worse approximations for ln(1 + x) when
x > 1.

Remark 4.6.7. The Maclaurin series given by Theorem 4.6.5 can be used to obtain beautiful series
expansions for some irrational numbers. By substituting particular values for x into an appropriate
Maclaurin series, one finds that

1 1 1 1
e=1+ + + + + ···
1! 2! 3! 4!
1 1 1 1
ln 2 = 1 − + − + − · · ·
2 3 4 5
π 1 1 1
= 1 − + − + ··· .
4 3 5 7

Unfortunately, the last two series converge too slowly to be of high computational value.

Remark 4.6.8. If f equals its Taylor series on an interval I, then the corresponding Taylor
polynomial pn can be used to approximate f on I. However, it is important to appreciate that
some Taylor series (such as that for ex ) converge much more quickly to the function than do others
(such as that for ln(1 + x), which converges slowly). If the series converges very slowly then the
approximation f ≈ pn is only accurate when n is very large.

Remark 4.6.9. If a Taylor series converges to a function f on an interval I, then (obviously)


the Taylor series converges on I. However, the converse is not true. That is, if the Taylor series
converges on I, then one cannot conclude that the Taylor series converges to f on I. In the tutorial
problems we give one example of a function f whose whose Maclaurin series converges on the entire
real line but only converges to f at the origin.

4.7 Power series


(Ref: SH10 §12.8)

A Maclaurin series is a series of the form

a0 + a1 x + a2 x2 + a3 x3 + a4 x4 + a5 x5 + · · · , (4.19)

where each coefficient ak is given by


f (k) (0)
ak =
k!
for some function f that is infinitely differentiable at 0. For the remainder of this chapter, we
study more general series of the form (4.19), where each coefficient ak is not necessarily a Taylor
coefficient. Such a series is called a power series.

c 2018 School of Mathematics and Statistics, UNSW Sydney


146 CHAPTER 4. TAYLOR SERIES

Definition 4.7.1. Suppose that {ak }∞


k=0 is a sequence of real numbers and that
a ∈ R. A series of the form
X ∞
ak x k
k=0

is called a power series in powers of x. A series of the form


X∞
ak (x − a)k
k=0
is called a power series in powers of x − a.

Thus a Maclaurin series is a power series in powers of x, while a Taylor series about a is a power
series in powers of x − a. For the last two sections of this chapter, we discuss the convergence,
addition, multiplication, integration and differentiation of power series. Hence whatever is said
about power series also applies to Maclaurin and Taylor series.
In this section, we focus on the convergence and divergence of power series.

Definition 4.7.2. Suppose that {ak }∞ k=0 is a sequence of real numbers, I is an



X
interval and a is a real number. We say that a power series ak (x − a)k converges
k=0

X
(a) at a real number c if the series ak (c − a)k converges;
k=0

X
(b) on the interval I if the series ak (x − a)k converges for each x in I.
k=0

X
We say that a power series ak (x − a)k diverges
k=0

X
(a) at a real number c if the series ak (c − a)k diverges;
k=0

X
(b) on the interval I if the series ak (x − a)k diverges for each x in I.
k=0

Using the ratio test, one can often determine for what values of x a power series converges
absolutely.

X kxk
Example 4.7.3. Find an interval I such that the power series converges on I.
3k
k=0

c 2018 School of Mathematics and Statistics, UNSW Sydney


4.7. POWER SERIES 147

Solution. We first find an interval I on which the series converges absolutely. To do so, we apply
the ratio test to the (absolute) series

X kxk
.
3k
k=0

Now

(k + 1)xk+1 3k
r = lim .
k→∞ 3k+1 kxk
(k + 1)|x|
= lim
k→∞ 3k
|x|
= .
3

To conclude from the ratio test that the series converges, we require that r < 1, which means

X kxk
that |x| < 3. So the series converges absolutely whenever −3 < x < 3. Hence the series
3k
k=0
converges on the interval (−3, 3).

Remark 4.7.4. In the previous example, one can also conclude that the series diverges when
|x| > 3. To see this, fix x in R such that |x| > 3. Let bk denote the kth term

kxk
3k

of the series. Now, by the same calculation as before,

bk+1 |x|
lim = .
k→∞ bk 3

|bk+1 | |bk+1 |
Since |x| > 3 we deduce that lim > 1. This shows that > 1 whenever k is sufficiently
k→∞ |bk | |bk |
large. Rearranging implies that
|bk+1 | > |bk |

for all sufficiently large k and hence the tail of the sequence
P{|bk |} is increasing. Thus |bk | 6→ 0 as
k → ∞. We conclude that bk 6→ 0 as k → ∞ and hence bk diverges by the kth term test for
divergence.

4.7.1 Radius of Convergence


In the previous example, the power series, in powers of x, converged for |x| < 3. We call the
number 3 the radius of convergence of the power series. It is half the length of the interval of
convergence.

c 2018 School of Mathematics and Statistics, UNSW Sydney


148 CHAPTER 4. TAYLOR SERIES


X
Definition 4.7.5. If a power series of the form ak (x− a)k converges at all points
k=0
in some interval (−R + a, R + a), or equivalently, for |z − a| < R, then the number R
is called the radius of convergence for the power series. The corresponding interval
(−R + a, R + a) is called the open interval of convergence for the power series.
If the power series converges for all real x, we say that the radius of convergence is
infinite.

Notes: 1. The term ‘radius’ is used since, when x is replaced by the complex variable z, the
open interval is replaced by an open disc, |z − a| < R, in the Argand plane. The number R then
is the radius of this open disc.
2. It is easiest to find the interval of convergence first, using the ratio test, and then write down
ak
the radius of convergence. It can be shown that R = lim , provided this limit exists. There
n→∞ ak+1
are, however, power series which have a radius of convergence, but for which this limit does not
exist.
By generalising the solution to Example 4.7.3 and the argument in Remark 4.7.4, one obtains
the following theorem.
Theorem 4.7.6. Suppose that {ak }∞
k=0 is a sequence of real numbers such that

ak
lim =R
k→∞ ak+1

X
for some real number R. Then the power series ak (x − a)k
k=0

(i) converges absolutely whenever |x − a| < R, and


(ii) diverges whenever |x − a| > R.
Proof of Theorem 4.7.6. [H] The proof of (i) is similar to the solution of Example 4.7.3. We apply
the ratio test to the series
X∞
|ak (x − a)k |.
k=0
Now
|ak+1 (x − a)k+1 | ak+1
r = lim = lim |x − a|.
k→∞ |ak (x − a)k | k→∞ ak

We have convergence whenever r < 1, which corresponds to the condition that


ak+1
lim |x − a| < 1.
k→∞ ak
By rearranging we find that the series converges absolutely whenever
1 ak
|x − a| < = lim = R,
lim
ak+1 k→∞ ak+1
k→∞ ak

c 2018 School of Mathematics and Statistics, UNSW Sydney


4.7. POWER SERIES 149

where R is the limit given in the theorem.


The proof of (ii) is a simple modification of the argument given in Remark 4.7.4.

Note that we cannot tell from the theorem whether or not the power series converges at the
endpoints a + R or a − R. Sometimes the power series will converge at one endpoint but not at the
other. Other times it will converge at both endpoints or diverge at both endpoints.

Example 4.7.7. Find the largest open interval on which the power series


X (5x + 2)k
k2 + 1
k=0

will converge.

P∞ (5x+2)k
Solution. We apply the ratio test to the series k=0 k 2 +1 . Now

(5x + 2)k+1 k2 + 1
r = lim
k→∞ (k + 1)2 + 1 (5x + 2)k

k2 + 1
= lim |5x + 2|
k→∞ (k + 1)2 + 1

= |5x + 2|.

We require that r < 1 and so that |5x + 2| < 1. Hence

−1 < 5x + 2 < 1

or in other words,
3 1
− <x<− .
5 5

So the largest open interval of convergence is (− 35 , − 15 ).


Hence the radius of convergence is 15 .

4.7.2 Convergence of power series at endpoints [X]


As the next example illustrates, one deduces the convergence at each endpoint by substituting
the endpoint into the power series and determining whether the resulting series of real numbers
converges.

Example 4.7.8. Find the interval of convergence (including endpoints, if appropriate) for the

X xk
power series .
ln k
k=2

c 2018 School of Mathematics and Statistics, UNSW Sydney


150 CHAPTER 4. TAYLOR SERIES

Solution. First we find the open interval of convergence. Now

xk+1 ln k
r = lim · k
k→∞ ln(k + 1) x
ln k
= lim |x|
k→∞ ln(k + 1)
1/k
= lim |x| (by l’Hôpital’s rule)
k→∞ 1/(k + 1)
k+1
= lim |x|
x→∞ k
= |x|.

The series converges absolutely whenever r = |x| < 1. Hence the largest open interval of conver-
gence is (−1, 1) and the series diverges whenever |x| > 1.
Now we determine whether the series converges at the endpoints 1 and −1. When x = 1, the
series becomes

X 1
,
ln k
k=2
P1
which diverges by comparison with the harmonic series k . When x = −1, the series becomes


X (−1)k
,
ln k
k=2

which is alternating and converges (conditionally) by the alternating series test.


Hence the interval of convergence for the power series is [−1, 1). (Note that the largest interval
on which the power series is absolutely convergent is (−1, 1).)

4.8 Manipulation of power series


(Ref: SH10 §12.9)

In this section we investigate what sense (if any) can be made of adding, multiplying, differen-
tiating and integrating power series. Since differentiation and integration are operations applied to
functions, it is most natural to approach this investigation by viewing a power series as a function.
X∞
Suppose that a power series ak xk converges in the interval (−R, R), where R is its radius
n=0
of convergence. Then one can define a function f : (−R, R) → R by the formula

X
f (x) = ak x k whenever |x| < R.
k=0

Thus the value of f at each point x is a convergent sum of real numbers. Sometimes it is possible
to find a closed form for f , but other times we must approximate each value f (x) by using partial
sums.

c 2018 School of Mathematics and Statistics, UNSW Sydney


4.8. MANIPULATION OF POWER SERIES 151

Example 4.8.1. Suppose that f is given by the rule



X
f (x) = xk .
k=0

By using, say, the ratio test, we see that the series converges whenever |x| < 1 and diverges when
|x| > 1. Hence natural domain for f is (−1, 1).
1
In fact, by summing the geometric series, we find that f (x) = whenever |x| < 1. This is
1−x
the closed form of f (x).
Example 4.8.2. Suppose that f is defined by the rule

X xk
f (x) = .
k!
k=0

We instantly recognise this series as the Maclaurin series for the exponential function. Since this
series converges on R, the maximal domain of f is R. The closed form of f (x) is given by f (x) = ex
whenever x ∈ R.
Example 4.8.3. Suppose that f is defined by the rule

X xk
f (x) = .
k2
k=1

By the ratio test, we find that the series converges whenever |x| < 1 and diverges whenever |x| > 1.
Therefore we take the domain of f to be (−1, 1). (Note that the power series also converges when
x = 1 and x = −1. So the domain could be extended to [−1, 1].)
There seems to be no obvious closed form for f (x) whenever |x| < 1. How, then, does one
evaluate f (− 12 )? Note that

X (−1)k
f (− 21 ) =
2k k2
k=1
1 1 1 1 1
=− + − + − + ···
21 12 22 22 23 33 24 42 25 52
and that the right-hand side is an alternating series. Thus
1 1 1 1 1 1
f (− 12 ) ≈ − + − + − + ··· + ,
21 12 22 22 23 33 24 42 25 52 210 102
1
where the absolute error in this approximation is less than by Corollary 4.5.22.
211 112
It turns out that power series are very well behaved as functions defined on their interval of
convergence. Given two power series with the same interval of convergence, you can add, subtract
and multiply them together in the ‘natural’ way. Power series are also differentiable and integrable,
and their derivatives and antiderivatives can also be expressed as power series in the ‘natural’ way.
The following theorems articulate the precise details. Their proofs are given later in Subsection
4.8.1.

c 2018 School of Mathematics and Statistics, UNSW Sydney


152 CHAPTER 4. TAYLOR SERIES

Theorem 4.8.4. Suppose that the functions f : I → R and g : I → R are defined by



X ∞
X
f (x) = ak (x − a)k and g(x) = bk (x − a)k ,
k=0 k=0

where both power series converge on the interval I. Then, whenever x ∈ I,



X
(f + g)(x) = (ak + bk )(x − a)k
k=0

and

X
(f g)(x) = ck (x − a)k , (4.20)
k=0

where
k
X
ck = aj bk−j .
j=0

Remark 4.8.5. The product formula (4.20) says that

(f g)(x) = a0 b0 + (a0 b1 + a1 b0 )(x − a) + (a0 b2 + a1 b1 + a2 b0 )(x − a)2


+ (a0 b3 + a1 b2 + a2 b1 + a3 b0 )(x − a)3 + · · · .

This is the natural generalisation of polynomial multiplication.

Theorem 4.8.6. Suppose that f : I → R is defined by



X
f (x) = ak (x − a)k
k=0

whenever x ∈ I, where I denotes the open interval of convergence for the power series. Then

(i) f is differentiable on I and



X
f ′ (x) = kak (x − a)k−1
k=1

whenever x ∈ I; and

(ii) f is integrable on I and an antiderivative F for f is given by



X ak
F (x) = (x − a)k+1 + C
k+1
k=0

whenever x ∈ I, where C is a constant.

c 2018 School of Mathematics and Statistics, UNSW Sydney


4.8. MANIPULATION OF POWER SERIES 153

Remark 4.8.7. This theorem says that a power series can be differentiated and integrated ‘term
by term’ inside its open interval of convergence. Another way of saying this is that

! ∞  
d X k
X d k
ak (x − a) = ak (x − a)
dx dx
k=1 k=1

and !
Z ∞
X ∞ Z
X 
k k
ak (x − a) dx = ak (x − a) dx .
k=1 k=1

Students should note that one cannot always swap infinite summation with differentiation (or with
integration). For example, if

X sin(2k x)
f (x) =
2k
k=1

then f is a sum of differentiable functions but f is not differentiable anywhere!

The following corollary follows from Theorem 4.8.6.

Corollary 4.8.8. Suppose that f : I → R is defined by



X
f (x) = ak (x − a)k
k=0

whenever x ∈ I, where I denotes the open interval of convergence for the power series. Then f is
continuous on I and has derivatives of all orders on I.

Proof. By Theorem 4.8.6 (i), f is differentiable on I and is therefore continuous on I.


We now prove that f has derivatives of all orders on I. Suppose that n is any natural number.
It suffices to show that f is n-times differentiable on I. By Theorem 4.8.6 (i), f is once differentiable
on I and its derivative f ′ has a power series expansion that converges on I. Now apply Theorem
4.8.6 (i) to f ′ . We conclude that f ′ is differentiable on I and its derivativef ′′ has a power series
expansion that converges on I. Now apply Theorem 4.8.6 (i) to f ′′ . Continuing in this way, after
n steps we conclude that f (n−1) is differentiable on I with derivative f (n) . Hence f is n-times
differentiable on I, thus completing the proof.

Remark 4.8.9. Suppose that a function f : I → R is defined by



X
f (x) = ak (x − a)k ,
k=0

where I is the open interval of convergence for the power series. By the corollary, f has derivatives
of all orders at a and therefore has a Taylor series about a. One can easily show that the Taylor
series for f about a converges on I to f . Thus the Taylor series for f about a is equal to the power
series that defines f .

Theorems 4.8.4 and 4.8.6 allow us to find valid Taylor series expansions of functions without
having to derive the Taylor coefficients and verify that the remainder term from Taylor’s theorem
vanishes.

c 2018 School of Mathematics and Statistics, UNSW Sydney


154 CHAPTER 4. TAYLOR SERIES

Example 4.8.10. Given the Taylor expansions

x2 x3 x4 x5 x6
ex = 1 + x + + + + + + ··· (x ∈ R) (4.21)
2! 3! 4! 5! 6!
and
1
= 1 + x + x2 + x3 + x4 + x5 + · · · (|x| < 1), (4.22)
1−x
find Taylor expansions for each function f , making sure that you state the interval of convergence.
(a) f (x) = cosh x (b) f (x) = sinh x (c) f (x) = tan−1 (x)

Solution. (a) First note that cosh x = 21 (ex + e−x ). So we aim to add the Maclaurin series for ex
and e−x . By replacing x with −x in (4.21), we find that

x2 x3 x4 x5 x6
e−x = 1 − x + − + − + − ··· (x ∈ R).
2! 3! 4! 5! 6!
So
x2 x4 x6
ex + e−x = 2 + 2 + 2 + 2 + ··· (x ∈ R)
2! 4! 6!
by Theorem 4.8.4. Hence
1 x
cosh x = (e + e−x )
2
x2 x4 x6
=1+ + + + ···
2! 4! 6!
whenever x ∈ R.
(b) By differentiating both sides of the expansion

x2 x4 x6 x8
cosh x = 1 + + + + + ··· (x ∈ R)
2! 4! 6! 8!
we find that
x3 x5 x7
sinh x = x + + + + ···
3! 5! 7!
whenever x ∈ R.
(c) If |x| < 1 then | − x2 | < 1. So we can replace x with −x2 in (4.22) to obtain the convergent
expansion
1
= 1 − x2 + x4 − x6 + x8 − x10 + · · ·
1 + x2
whenever |x| < 1. By integrating both sides this of identity, we find that

x3 x5 x7 x9 x11
tan−1 x = x − + − + − + ···
3 5 7 9 11
whenever |x| < 1.
2
The function f , given by f (x) = e−x , has no antiderivative among the elementary functions.
In MA1131, we used Riemann sums to estimate the area underneath the graph of f . As the next
example shows, the use of Taylor series provides a more efficient approach to the same problem.

c 2018 School of Mathematics and Statistics, UNSW Sydney


4.8. MANIPULATION OF POWER SERIES 155

2
Example 4.8.11. Suppose that f (x) = e−x . By using the Maclaurin expansion for f , estimate
Z 1
f (x) dx and give an upper bound for the absolute error.
0

Solution. We begin with the Maclaurin expansion

x2 x3 x4 x5
ex = 1 + x + + + + + ··· ,
2! 3! 4! 5!
which is valid for all x in R. By replacing x with −x2 we find that

2 x4 x6 x8 x10
e−x = 1 − x2 + − + − + ···
2! 3! 4! 5!
for all real numbers x. By integrating both sides of this equation on the interval [0, 1], we find that
Z 1  1
−x2 x3 x5 x7 x9 x11
e dx = x − + − + − + ···
0 3 5(2!) 7(3!) 9(4!) 11(5!) 0
1 1 1 1 1
=1− + − + − + ··· .
3 5(2!) 7(3!) 9(4!) 11(5!)
P
Hence the integral is expressed as alternating series of the form (−1)k ak , where {ak } is a
positive decreasing sequence. If we estimate the series using a partial sum, then Corollary 4.5.22
gives an upper bound for the absolute error. For example, the absolute error in the approximation
Z 1
2 1 1 1
e−x dx ≈ 1 − + −
0 3 5(2!) 7(3!)
1
is no greater than 9(4!) . One can evaluate this partial sum numerically to obtain
Z 1
2
e−x dx ≈ 0.7429
0

with an error no greater than 0.005.

4.8.1 Proof of theorems in Section 4.8 [X]


In this subsection, we prove Theorems 4.8.4 for the case where a = 0. It is not hard to adapt the
presented proofs to the general case.

Proof of Theorem 4.8.4. We shall only prove the product formula (4.20) when a = 0. Fix x in I
and define the partial sums sn (x) and tn (x) by
n
X n
X
k
sn (x) = ak x and tn (x) = bk xk .
k=0 k=0

Then f (x) = lim sn (x) and g(x) = lim tn (x). So using Proposition 4.3.6, we find that the
n→∞ n→∞
sequence {sn (x)tn (x)} converges and

(f.g)(x) = f (x).g(x) = lim sn (x) × lim tn (x) = lim sn (x)tn (x) .
n→∞ n→∞ n→∞

c 2018 School of Mathematics and Statistics, UNSW Sydney


156 CHAPTER 4. TAYLOR SERIES

But
 
sn (x)tn (x) = a0 + a1 x + a2 x2 + · · · an xn × b0 + a1 x + b2 x2 + · · · + bn xn
= a0 b0 + (a0 b1 + a1 b0 )x + (a0 b2 + a1 b1 + a2 b0 )x2
+ · · · + (a0 bn + a1 bn−1 + · · · + an−1 b1 + an b0 )xn .

As n → ∞, one obtains (4.20).

We move now to the proof of Theorem 4.8.6, which shall be broken into two parts. First we
prove the differentiation result, which is difficult and uses the mean value theorem. After this, the
integration result can be easily deduced from the first part.

Proof of Theorem 4.8.6 (i). Suppose that f : (−R, R) → R is defined by


X
f (x) = ak xk
k=0

whenever x ∈ (−R, R), where R is the radius of convergence for the power series. It can be easily
shown (see the tutorial problems) that the radius of convergence for the power series


X
kak xk−1
k=1

is also R. So define the function g : (−R, R) → R by the formula


X
g(x) = kak xk−1 .
k=1

Fix, now, a number x in (−R, R). Our task is to show that f ′ (x) = g(x), or in other words,
that
f (x + h) − f (x)
lim = g(x).
h→0 h
Now if x + h ∈ (−R, R) and h 6= 0 then

∞ ∞
f (x + h) − f (x) X X ak (x + h)k − ak xk
g(x) − = kak xk−1 −
h h
k=1 k=0
∞ ∞  
X
k−1
X (x + h)k − xk
= kak x − ak .
h
k=1 k=1

By the mean value theorem,


(x + h)k − xk
= k ckk−1
h
c 2018 School of Mathematics and Statistics, UNSW Sydney
4.8. MANIPULATION OF POWER SERIES 157

for some real number ck between x and x + h. Hence


∞ ∞
f (x + h) − f (x) X X
g(x) − = kak x k−1
− kak ckk−1
h
k=1 k=1

X 
= kak xk−1 − ckk−1
k=1
X∞

= kak xk−1 − ckk−1 .
k=2

Again by the mean value theorem,

xk−1 − ckk−1 k−2


= (k − 1)dk−1
x − ck
for some real number dk−1 between x and ck . Hence
k−2
xk−1 − ckk−1 = |x − ck | (k − 1)dk−1 .

Now |x − ck | < |h| and |dk−1 | < M , where M = max{|x|, |x + h|}. So

xk−1 − ckk−1 ≤ |h| (k − 1)M k−2 .

Thus

f (x + h) − f (x) X
g(x) − ≤ |h| k(k − 1)ak M k−2 .
h
k=2
One can show using the ratio test that the series on the right-hand side converges and hence

X
lim |h| k(k − 1)ak M k−2 = 0.
h→0
k=2

Therefore
f (x + h) − f (x)
lim g(x) − =0
h→0 h
(by the pinching theorem for limits) and we conclude that

f (x + h) − f (x)
lim = g(x).
h→0 h
Hence f ′ (x) = g(x) for all x in (−R, R).

Now that we have proved that a power series is differentiable inside its open interval of conver-
gence, it is relatively easy to prove that it is integrable inside this interval.

Proof of Theorem 4.8.6 (ii). Suppose that f : (−R, R) → R is defined by



X
f (x) = ak x k
k=0

c 2018 School of Mathematics and Statistics, UNSW Sydney


158 CHAPTER 4. TAYLOR SERIES

whenever x ∈ (−R, R), where R is the radius of convergence for the power series. It can be easily
shown (see the tutorial problems) that the radius of convergence for the power series

X ak k+1
x
k+1
k=0

is also R. So define the function F : (−R, R) → R by the formula



X ak k+1
F (x) = x .
k+1
k=0

We now apply the differentiability theorem (Theorem 4.8.6 (i)) to F . In particular,


∞  
X d ak k+1
F ′ (x) = x
dx k + 1
k=0

X
= ak x k
k=0
= f (x)

whenever x ∈ (−R, R). Hence F is an antiderivative for f on (−R, R) and hence f is integrable on
(−R, R).

4.9 Maple notes


The following MAPLE command is relevant to the material of this chapter:

sum(f(k) , k=m..n); computes the sum of f(k) as k runs from m to n. For example,

> sum(k^2, k=1..4);

30

> sum(k^2, k=1..n);


1 1 1 1
(n + 1)3 − (n + 1)2 + n +
3 2 6 6
> sum(1/k^2, k=1..infinity);
1 2
π
6
?powseries will give information about the MAPLE package for manipulating formal power series.

taylor(expr, x=a, k); computes the Taylor series for expr about x=a, up to the term of order k.

convert(taylor(expr, x=a, k), polynom); computes the Taylor polynomial of order k-1 for
expr about x=a.

c 2018 School of Mathematics and Statistics, UNSW Sydney


4.9. MAPLE NOTES 159

coeftayl(expr, x=a, k); computes the kth coefficient in the Taylor series expansion of expr
about x=a.

For example,

> taylor(sin(x) ,x=0,8);


1 1 5 1 7
x − x3 + x − x + O(x8 )
6 120 5040
> convert(%,polynom);
1 1 5 1 7
x − x3 + x − x
6 120 5040
> coeftayl(sin(x),x=0,11);
1

39916800

c 2018 School of Mathematics and Statistics, UNSW Sydney


160 CHAPTER 4. TAYLOR SERIES

Problems for Chapter 4

Problems 4.1 : Taylor polynomials


1. [R] For each function f , find the Taylor polynomial of degree 9 for f about 0.
a) f (x) = ex b) f (x) = sin x c) f (x) = sinh x

2. [R] Suppose that f (x) = sin x and m ≥ 0. Using summation notation, find a formula for
the Taylor polynomial p2m+1 of degree 2m + 1 for f about 0.

3. [R]

a) Suppose that f (x) = x. Find the Taylor polynomial of degree 3 for f about 4.
b) Suppose that g(x) = cos x. Find the Taylor polynomial of degree 4 for g about π/4.

4. [R] Let f (x) = 1 + x + x2 . Find the Taylor polynomial pn (x)

a) of degree n = 1 about 1.
b) of degree n = 2 about 1.
c) of degree n = 2 about 2.

Problems 4.2 : Taylor’s theorem

5. [R] Suppose that f (x) = ln(1 + x).

a) Express f (x) in the form p1 (x) + R2 (x), where p1 is the first Taylor polynomial for f
about 0 and R2 is the Lagrange formula for the remainder.
b) Suppose that x ∈ [−0.1, 0.1] and consider the approximation ln(1 + x) ≈ x. Use your
answer to (a) to show that an upper bound for the absolute error in this approximation
is 1/162.

6. [R] Suppose that f (x) = 1 + x and let p2 denote the second Taylor polynomial for f
about 0. If x ∈ [0, 1] then show that the absolute error in the approximation f (x) ≈ p2 (x)
1
does not exceed 16 .

7. [R] Suppose that f (x) = cos x and that n is a positive even integer.

a) Find the nth Taylor polynomial pn for f about 0 and the Lagrange formula for the
remainder Rn+1 .
b) Use the mean value theorem to prove that

sin x < x whenever x > 0.

c) Use parts (a) and (b) to find an upper bound for the absolute error in the approxi-
mation f (1/10) ≈ pn (1/10).

c 2018 School of Mathematics and Statistics, UNSW Sydney


PROBLEMS FOR CHAPTER 4 161

d) Hence find a value for n such that the absolute error in the approximation of (c) is
less than 10−6 .
e) The value of cos 2 is estimated using pn (2) for some n. Explain why it is better not
to use the inequality of (b) to find an upper bound for |Rn+1 (2)|.
f) Find a value for n such that the absolute error in the approximation f (2) ≈ pn (2) is
less than 10−6 .
g) The Taylor polynomial p10 is used to approximate f on the interval [−a, a], where
a is a positive real number. Find a value for a such that the absolute error in the
approximation f (x) ≈ p10 (x) is less than 10−6 whenever x ∈ [−a, a].

8. [HH] Below is a statement of the mean value theorem for integrals:


If f and g are continuous on [a, b] and g is nonnegative on [a, b], then
Z b Z b
f (t)g(t) dt = f (c) g(t) dt
a a
for some real number c in [a, b].
This theorem is used in several of the problems below. We give a proof of it in this
question.
a) Suppose that f is continuous on [a, b] and let m and M denote the minimum and
maximum values of f on [a, b] respectively. If m ≤ z ≤ M , then explain why there
exists a real number c in [a, b] such that f (c) = z.
Rb
b) By considering a lower and upper bound for the integral a f (t)g(t) dt in terms of m
and M , prove the mean value theorem for integrals.

9. [R]
a) Suppose that
f (x) = x7 + 5x6 + 3x5 − 17x4 − 16x3 + 24x2 + 16x − 11.
Verify that 1 and −2 are stationary points for f and use the corollary to Taylor’s
theorem to classify each of these stationary points.
b) Suppose that
f (x) = x7 − 7x6 + 10x5 + 22x4 − 43x3 − 35x2 + 48x + 40.
Verify that −1, 2 and 3 are stationary points for f and classify each of these stationary
points.

10. [H] Use the following outline to show that e is irrational.


p
a) If e were rational, it would be of the form e = , where p and q are positive integers.
q
Select an integer k such that k ≥ 3 and k ≥ q. Use Taylor’s Theorem to show that
p 1 1 1 ez
= e = 1 + + + ... + +
q 1! 2! k! (k + 1)!
for some z in [0, 1].

c 2018 School of Mathematics and Statistics, UNSW Sydney


162 CHAPTER 4. TAYLOR SERIES

b) Suppose that
1 1 1
sk = 1 + + + ... + .
1! 2! k!
Show that k!(e − sk ) is an integer.
c) Show that 0 < k!(e − sk ) < 1.
d) Conclude that e is irrational.

Problems 4.3 : Sequences

11. [R] Describe the limiting behaviour of the following sequences. If the sequence converges,
then state its limit.
n2 − 2n + 1 ln n
a) 2
b) , where a > 0.
2n + 4n − 1 na
n sin(nπ/4) n + cos nπ
c) √ d)
2
n +1 n − cos nπ
n! (2n)!
e) f)
nn (n!)2
g) (an + bn )1/n , where a ≥ b > 0.

n2 − 2n + 1
12. [H] Suppose that an = .
2n2 + 4n − 1
a) Find L, where L = lim an .
n→∞
b) For each positive number ǫ, find a number N such that

|an − L| < ǫ whenever n > N.


 n
1
13. [R] Use the result lim 1+ = e and standard results about limits to evaluate the
n→∞ n
following limits.
   n
1 4n n
a) lim 1 + b) lim
n→∞ n n→∞ n+1

14. [HH] The limit of a recursively √


defined sequence.
Suppose that a1 = 1 and an+1 = 1 + an whenever n ≥ 1.

a) Show that 1 + x ∈ [1, 2] whenever x ∈ [1, 2].
b) Use induction to show that the sequence {an } is bounded.
c) Use induction to show that {an } is an increasing sequence.
d) Explain why lim an exists.
n→∞
q p √
e) Find lim an . (That is, find 1+ 1+ 1 + · · · .)
n→∞

c 2018 School of Mathematics and Statistics, UNSW Sydney


PROBLEMS FOR CHAPTER 4 163

Problems 4.4 : Infinite series

15. [R] Examples of telescoping series.


X 1
a) Consider the series ak , where ak = .
k(k + 1)
k=1

i) Find the partial fractions decomposition of ak .


n
X
ii) Find a simple formula for the partial sum sn , where sn = ak .
k=1

X
iii) Hence find ak .
k=1

X 1
b) Repeat the question for the series ak , where ak = .
k2 −1
k=2

16. [R] Let sn denote the nth partial sum of the series

1 1
1 + √ + √ + · · ·.
2 3

a) Show that sn > n whenever n > 1.
b) Hence explain why the series diverges.


X 1
17. [R] Let sn denote the nth partial sum of the harmonic series series . When n = 2k−1 ,
k
k=1
the terms of sn may be bracketed as shown:
     
1 1 1 1 1 1 1 1
sn = 1 + + + + + ... + + ··· + + + ... + .
2 3 4 5 8 2k−2 + 1 2k−2 + 2 2k−1

Hence use an argument similar to that in Question 16 to show that the harmonic series
diverges.

18. [R] The following three questions are similar to Example 4.4.3.

a) By drawing a diagram and interpreting each term in sum as the area of rectangle,
show that
n Z n
X 1 dx
2
≤ 2
.
k 1 x
k=2


X 1
b) Deduce that converges.
k2
k=2

c 2018 School of Mathematics and Statistics, UNSW Sydney


164 CHAPTER 4. TAYLOR SERIES

19. [R]

a) By drawing a diagram and interpreting each term in sum as the area of rectangle,
show that
n Z n+1
X 1 dx
√ ≥ √ .
k 1 x
k=1


X 1
b) Deduce that √ diverges.
x
k=1

20. [R] By using the technique of the previous two questions, determine whether or not the

X 1
sum converges.
k ln k
k=2

Problems 4.5 : Tests for series convergence

21. [R] Use the integral test to examine the convergence of


∞ ∞ ∞
X k X 1 X 1
a) b) c)
k2 + 4 k(ln k) (k + 9)3
k=1 k=3 k=1

22. [R] Use a comparison test to determine whether or not each series converges.
∞ ∞ ∞
X 1 X 1 X k
a) b) c)
(k + 3)1/2
3 (k − 1)1/3
2 k2 −6
k=1 k=2 k=1
∞ ∞ ∞
X 1 X 1 X 1
d) e) f) sin2
ln k (ln k)9 k
k=2 k=2 k=1

23. [R] Use the ratio test to examine the convergence of each series.
∞ ∞ ∞ ∞
X k2 X 3k X k! X 5k
a) b) c) d)
2k k! kk 2k + 4k
k=1 k=1 k=1 k=1

24. [R] Determine which of the following alternating series converge. Which are absolutely
convergent?
∞ ∞
X (−1)k X (−1)k kk
a) b)
ln k (k + 1)k
k=3 k=1
∞ ∞
X (−1)k+1 X (−1)k
c) p d) [HH] √
k=2
k(k2 − 2) k=2
k + (−1)k


X (−1)k
25. [R] Consider the alternating series . Let L denote the value of the series and
k3 + 1
k=0
let sn denote the nth partial sum of the series whenever n ≥ 0.

c 2018 School of Mathematics and Statistics, UNSW Sydney


PROBLEMS FOR CHAPTER 4 165

a) Verify that the series is convergent.


b) Calculate s4 and give an upper bound for the absolute error in the approximation
L ≈ s4 .
c) Find a value for n such that the absolute error in the approximation L ≈ sn is less
than 10−6 .

26. [R] By using an appropriate test, determine whether or not each series converges.
∞ ∞ ∞
X (−1)k X 3k X 3k
a) √ b) c)
k k3 1 + 7k
k=2 k=1 k=1
∞ ∞ ∞ 
X 2k k! X (−1)k+1 k2 X sin (2k − 1)π/4
d) e) √ f)
kk 4k4 + 1 2k
k=2 k=2 k=1

27. [H] Discuss the convergence of the series



X 1 1 1 1
= + + + ··· ,
a1 a2 . . . ak a1 a1 a2 a1 a2 a3
k=1

where {ak } is a strictly increasing sequence and a1 > 0.

Problems 4.6 : Taylor series

28. [R] Find, in each case, the Maclaurin series for f . Express your answer using summation
notation. (You may find your answers to some questions of Problems 4.1 : Taylor polynomials
helpful.)
a) f (x) = ex b) f (x) = sin x c) f (x) = sinh x
1
d) f (x) = ln(1 + x) e) f (x) =
x−1

29. [R] Suppose that f (x) = ex .

a) Express f in the form f (x) = pn (x)+ Rn+1 (x), where pn is the nth Taylor polynomial
for f about 0 and Rn+1 is the Lagrange formula for the remainder.
b) Fix x in R and show that Rn+1 (x) → 0 as n → ∞.
c) Hence write down the Taylor series expansion for f (x), stating clearly where the
expansion is valid.

30. [H] Repeat the previous question in the case when f (x) = sinh x.

31. [H] Suppose that f (x) = ln(1 + x).

a) Express f in the form f (x) = pn (x)+ Rn+1 (x), where pn is the nth Taylor polynomial
for f about 0 and Rn+1 is the Lagrange formula for the remainder.
b) Suppose that 0 ≤ x ≤ 1 and show that Rn+1 (x) → 0 as n → ∞.

c 2018 School of Mathematics and Statistics, UNSW Sydney


166 CHAPTER 4. TAYLOR SERIES

c) Hence write down the Taylor series expansion for f (x), when 0 ≤ x ≤ 1.
d) [HH] We will show that this Taylor series expansion is also valid on (−1, 0). Suppose
that −1 < x < 0.
i) By using the integral form for the remainder, show that
Z x 
t−x n 1
Rn+1 (x) = dt.
0 1+t 1+t

ii) Use the mean value theorem for integrals (when g(t) = 1; see Question 8) to
show that    
cn + |x| n |x|
|Rn+1 (x)| <
1 + cn 1+x
for some number cn between x and 0.
iii) Deduce that  
n |x|
|Rn+1 (x)| < |x|
1+x
and hence that Rn+1 (x) → 0 as n → ∞.

32. [H] Let I denote the interval (x0 − R, x0 + R), where x0 and R are real numbers. Suppose
that a function f has derivatives of all orders on I and that all these derivatives have a
common bound (that is, |f (n) (x)| ≤ M for all x in I and for all positive integers n). Show
that f is represented by its Taylor series about x0 on I.

33. [H] (This exercise illustrates that a conditionally convergent series, when rearranged, can
have a different sum.)
Consider the series s and t, given by

1 1 1 1 1
s=1− + − + − + ···
2 3 4 5 6
and
1 1 1 1 1 1 1 1
t=1− − + − − + − − + ··· .
2 4 3 6 8 5 10 12
Note that second series is a rearrangement of the first.

a) Explain why s is conditionally convergent.


b) By considering an appropriate Maclaurin series (see Theorem 4.6.5), find the exact
value of s.
c) Denote the sum of the first n terms of s by sn and of t by tn . By using induction,
show that t3n = 21 s2n whenever n ≥ 1.
d) Hence find the value of lim t3n .
n→∞
e) Explain why lim t3n+1 = lim t3n+2 = lim t3n .
n→∞ n→∞ n→∞
f) Hence write down the value of t.

c 2018 School of Mathematics and Statistics, UNSW Sydney


PROBLEMS FOR CHAPTER 4 167

Problems 4.7 : Power series

34. [R] Determine the open interval of convergence for each of the following power series.

∞   ∞ ∞
X x k X xk X kxk
a) b) c)
6 k2 + 1 2k
k=0 k=0 k=0
∞ ∞ ∞
X (x − 2)k X (3x − 2)k X (−1)k xk
d) e) f)
k3 k ln k (k + 1)3k
k=1 k=2 k=1

X (ln k)k xk
g) [HH]
kk
k=1

35. [R] Consider the power series


X n! X nn
(i) xn and (ii) xn .
nn n!
Show that their radii of convergence are e and e−1 respectively.

X
36. [HH] Suppose that the power series ak xk converges on the interval (−R, R). Show
k=0
that each of the series
∞ ∞
X X ak
kak xk−1 and xk+1
k+1
k=0 k=0

also converges on (−R, R).

Problems 4.8 : Manipulation of power series

37. [R] Use your answers to Question 28 to deduce the Maclaurin series for each function g.
a) g(x) = (x + 1)ex b) g(x) = sin(x2 ) c) g(x) = (x − 1)−2

38. [R] Suppose that f (x) = (1 − x)−1 . Write down the Maclaurin series for f and hence
find the Maclaurin series for each function g given below. On what open interval is each
function represented by its Maclaurin series?
a) g(x) = (1 + x)−1 b) g(x) = (1 + x2 )−1 c) g(x) = tan−1 x

39. [R] Suppose that f (x) = x2 sin(x3 ).

a) By using the Maclaurin series for sine, find the Maclaurin series for f .
b) Hence show that 0 is a stationary point for f .
c) Is 0 a local maximum point, local minimum point or a horizontal point of inflexion?
Explain.

c 2018 School of Mathematics and Statistics, UNSW Sydney


168 CHAPTER 4. TAYLOR SERIES

40. [R] Consider the Maclaurin series representation

1
= 1 + x + x2 + x3 + x4 + · · · ,
1−x

which is valid whenever |x| < 1.

a) By first integrating the above Maclaurin series, deduce that


   
1+x x3 x5 x7
ln =2 x+ + + + ···
1−x 3 5 7

whenever |x| < R, for some real number R.


b) What is the largest possible value of R?
c) Use the first two terms of the series of (a) to find a rational number that approximates
ln 2.

41. [R] The function Si : R → R is defined by


Z x
Si(x) = f (t) dt,
0

where (
sin t
t if t 6= 0
f (t) =
1 if t = 0.
The Si function is used in signal processing and by surveyors for GPS.

a) Show that Si has a stationary point at π and classify this stationary point.
b) By first writing down the Maclaurin series for the sine function, find the Maclaurin
series for Si.
c) Hence find an estimate for the value of Si(π) such that the absolute error is less than
1/100.

42. [H] A function f is defined by the rule



X
f (x) = kxk .
k=1

a) What is the largest open interval I on which the function well-defined?


b) By manipulating the power series expansion

1 X
= xk , |x| < 1,
1−x
k=0

find a closed formula for f (x).

c 2018 School of Mathematics and Statistics, UNSW Sydney


PROBLEMS FOR CHAPTER 4 169

43. [H] Consider the differential equation

d2 y dy
x2 +x = ex − 1.
dx2 dx
Suppose that a solution y has a power series representation given by

X
y= ak x k ,
k=0

where the coefficients ak are to be determined.

a) Write down, in summation notation, the Maclaurin series representation of ex − 1.


dy d2 y
b) Write down the power series representations of and .
dx dx2
c) By expressing both the left- and right-hand sides of the differential equation as a
power series, determine the value of each coefficient ak .
d) Hence write down a solution to the differential equation, stating the values of x for
which the solution is valid.

Note: This method for solving differential equations will be developed in some second
year courses.

c 2018 School of Mathematics and Statistics, UNSW Sydney


170 CHAPTER 4. TAYLOR SERIES

c 2018 School of Mathematics and Statistics, UNSW Sydney


171

Chapter 5

Averages, arc length, speed and


surface area

In this chapter we look at the application of calculus to the following problems:

• finding the average height of a cable, or the average temperature over a certain time
interval;

• finding the length of a curve;

• finding the speed of a particle that travels along a curve in the plane; and

• finding the surface area of certain solids.

Each of these applications involves integration, either through approximating a quantity with a
Riemann sum, or through approximating the rate of change of a quantity and thereafter applying
the fundamental theorem of calculus.

5.1 The average value of a function


(Ref: SH10 §5.9)

A cable is suspended between two poles as shown.

3 metres
2 metres

What is the average height of the cable above the ground? Clearly it must be somewhere between
2 and 3 metres. To obtain a precise answer, recall from MA1131 that any suspended cable is the

c 2018 School of Mathematics and Statistics, UNSW Sydney


172 CHAPTER 5. AVERAGES, ARC LENGTH, SPEED AND SURFACE AREA

graph of a function f of the form


1
f (x) = cosh(cx)
c
over some interval [a, b], where c is a constant that depends on the tension in and mass of the cable,
and where the coordinate system is suitably chosen. Thus we rephrase the question as, ‘What is
the average value of f on the interval [a, b]?’
To answer this question, we need a suitable definition for the average value of a function f
over an interval [a, b]. To motivate such a definition, consider the function f whose graph is shown
below.
y

| | x
a b

One way to proceed is the following. Divide the interval [a, b] into n subintervals of equal length.
We sample the height of the graph in the kth subinterval by choosing a point ck in that subinterval
and calculating f (ck ).
y

f (ck )

| | | | | | | | | | | x
a b
c1 c2 c3c4 c5 ··· ck · · · cn−1 cn

The average (that is, arithmetic mean) an of these sampled heights is given by

1 
an = f (c1 ) + f (c2 ) + f (c3 ) + · · · + f (cn ) .
n
As the number n of subintervals increases, an should get closer to what we intuitively understand
by ‘the average height of the graph.’

c 2018 School of Mathematics and Statistics, UNSW Sydney


5.1. THE AVERAGE VALUE OF A FUNCTION 173

Now, by multiplying and dividing an by (b − a), we find that


n
1X
an = f (ck )
n
k=1
n  
1X b−a
= f (ck )
n b−a
k=1
n  
1 X b−a
= f (ck ) . (5.1)
b−a n
k=1

b−a
Note that f (ck ) and is the height and width of the kth rectangle in the following diagram.
n
y

b−a
n

f (ck )

| | | | | | | | | | | x
a b
c1 c2 c3c4 c5 ··· ck · · · cn−1 cn

So the sum in (5.1) is a Riemann sum. If f is Riemann integrable then


n   Z b
1 X b−a 1
lim an = lim f (ck ) = f (x) dx.
n→∞ b − a n→∞ n b−a a
k=1

This leads to the following definition.

Definition 5.1.1. Suppose that f is integrable on a closed interval [a, b]. Then the
average value f of f on [a, b] is defined by the formula
Z b
1
f= f (x) dx.
b−a a

Remark 5.1.2. By rearranging this formula, we see that f is the unique constant such that
Z b
(b − a)f = f (x) dx.
a

Interpreted geometrically, f is the unique y-value such that the area of the shaded rectangle is
equal to the area under the graph of f .

c 2018 School of Mathematics and Statistics, UNSW Sydney


174 CHAPTER 5. AVERAGES, ARC LENGTH, SPEED AND SURFACE AREA

| | x
a b

We now answer the question posed at the beginning of this section.


Example 5.1.3 (The average height of a suspended cable). The suspended cable illustrated at the
beginning of this section is a curve given by the equation
y = 2 cosh(x/2), −a ≤ x ≤ a,
where the x-axis runs along the ground, the y-axis passes through the vertex of the curve and
a = 2 cosh−1 (3/2). Find, to the nearest centimetre, the average height of the cable above the
ground.
Note: The fact that the x-axis runs along the ground is special to this example. This will not
necessarily be the case for any given suspended cable.

Solution. (a) Suppose that f (x) = 2 cosh(x/2). The average value f of f on the interval [−a, a] is
given by
Z a
1
f= 2 cosh(x/2) dx
a + a −a
Z a
2
= 2 cosh(x/2) dx (since cosh is even)
2a 0
1h ia
= 4 sinh(x/2)
a 0
4
= sinh(a/2)
a
2 
= −1 sinh cosh−1 (3/2) .
cosh (3/2)
Now cosh2 (t) − sinh2 (t) = 1 and so

−1
 q  5
sinh cosh (3/2) = cosh2 cosh−1 (3/2) − 1 = .
2
Hence √
2 5
f= −1 × .
cosh (3/2) 2
By using a calculator, we find that f ≈ 2.32. So the average height of the cable above the ground
is approximately 2.32 metres.

c 2018 School of Mathematics and Statistics, UNSW Sydney


5.2. THE ARC LENGTH OF A CURVE 175

We saw in MA1131 that every continuous function f defined on a closed interval [a, b] attains
its maximum and minimum values. (This result is called the maximum-minimum theorem; see
Chapter 2 in the MA1131 calculus notes). The next theorem says that such a function also attains
its average value.

Theorem 5.1.4 (The mean value theorem for integrals). Suppose that f is continuous on [a, b].
Then there is a number c in (a, b) such that
Z b
f (t) dt = f (c)(b − a).
a

Restated, the conclusion of the mean value theorem for integrals says that there exists a point
c in [a, b] such that f (c) = f , where f is the average value of f on [a, b].

Proof. Define F : [a, b] → R by the formula


Z x
F (x) = f (t) dt.
a

By the fundamental theorem of calculus, F is continuous on [a, b], differentiable on (a, b) and
F ′ (x) = f (x). By the mean value theorem, there exists c ∈ [a, b] such that

F (b) − F (a)
= F ′ (c). (5.2)
b−a
But Z b
F (a) = 0, F (b) = f (t) dt and F ′ (c) = f (c).
a

Hence (5.2) implies that


Z b
1
f (t) dt = f (c)
b−a a

as required.

Remark 5.1.5. A more general version of the mean value theorem for integrals is given in the
tutorial problems for Chapter 4 and is used to prove the Lagrange formula for the remainder in
Taylor’s theorem.

5.2 The arc length of a curve


(Ref: SH10 §10.7)

Suppose that P0 (x0 , y0 ) and P1 (x1 , y1 ) are two points in R2 . The distance between P0 and P1
is given by p
dist(P0 , P1 ) = (x1 − x0 )2 + (y1 − y0 )2 .
Suppose that the points P0 and P1 are the endpoints of a straight line segment P0 P1 , as shown.

c 2018 School of Mathematics and Statistics, UNSW Sydney


176 CHAPTER 5. AVERAGES, ARC LENGTH, SPEED AND SURFACE AREA

P1 (x1 , y1 )

P0 (x0 , y0 )

Then we define the length of the line segment P0 P1 to be the distance between P0 and P1 . In other
words,
p
length(P0 P1 ) = (x1 − x0 )2 + (y1 − y0 )2 .

The line segment P0 P1 is a special example of a curve in R2 . In this section we study the
lengths of curves that are not necessarily straight line segments. We begin by presenting an intuitive
derivation of a formula that gives the arc length of a curve. (A rigorous approach to proving the
validity of such a formula would involve giving a formal definition for arc length and considering
the limits of some technically difficult Riemann sums; we shall not delve into this here.) The
subsections following this derivation present variations of this formula and some examples.

5.2.1 An intuitive derivation of the arc length formula


Suppose that C is a curve in R2 . The goal is to give an heuristic derivation of a formula for the arc
length of C. We make the assumption that C can be expressed in parametric form as

C = (x(t), y(t)) ∈ R2 : a ≤ t ≤ b ,

where x and y are differentiable functions of t.

C (x(b), y(b))

(x(a), y(a))

We also assume that the parametrisation is chosen so that the path traversed by the moving point
(x(t), y(t)) does not retrace its steps (either forwards or backwards).
When a ≤ t ≤ b, let ℓ(s) denote the arc length of the curve Cs , given by

Cs = (x(t), y(t)) ∈ R2 : a ≤ t ≤ s .

The segment Cs corresponding to the arc length ℓ(s) is illustrated in black in the diagram below.

c 2018 School of Mathematics and Statistics, UNSW Sydney


5.2. THE ARC LENGTH OF A CURVE 177

C (x(b), y(b))
Cs

(x(s), y(s))
b

(x(a), y(a))

The idea is to take a small segment of the curve and approximate its length with the length of
a secant. Suppose that a < t < b and that h is a small real nonzero number. Consider the points
P (x(t), y(t)) and Q(x(t + h), y(t + h)).

Q b

(x(b), y(b))

P b

(x(a), y(a))

The length of the arc from P to Q is approximately equal to the length of secant P Q. That is
p
ℓ(t + h) − ℓ(t) ≈ [x(t + h) − x(t)]2 + [y(t + h) − y(t)]2 ,

where the length of the secant is calculated using the distance formula. If we divide both sides by
h then s   
ℓ(t + h) − ℓ(t) x(t + h) − x(t) 2 y(t + h) − y(t) 2
≈ + .
h h h
This approximation gets better as h gets smaller. If we make the assumption that ℓ is a differentiable
function of s then, by taking the limit as h approaches zero, one obtains
p
ℓ′ (t) = [x′ (t)]2 + [y ′ (t)]2 .

Hence Z sp
ℓ(s) = [x′ (t)]2 + [y ′ (t)]2 dt + K
a
for some constant of integration K, by the fundamental theorem of calculus. To evaluate K, note
that ℓ(a) = 0. So if s = a then
Z ap
0 = ℓ(a) = [x′ (t)]2 + [y ′ (t)]2 dt + K = 0 + K = K.
a

c 2018 School of Mathematics and Statistics, UNSW Sydney


178 CHAPTER 5. AVERAGES, ARC LENGTH, SPEED AND SURFACE AREA

Hence K = 0 and thus Z sp


ℓ(s) = [x′ (t)]2 + [y ′ (t)]2 dt.
a

Finally, the length of the entire curve is ℓ(b). So the arc length of C is
Z bp
[x′ (t)]2 + [y ′ (t)]2 dt.
a

Our findings are summarised at the beginning of the next subsection.

5.2.2 Arc length for a parametrised curve


Suppose that a curve C can be expressed in parametric form as

C = (x(t), y(t)) ∈ R2 : a ≤ t ≤ b ,

where x and y are differentiable functions of t. Then its arc length ℓ is given by the formula
Z bp
ℓ= [x′ (t)]2 + [y ′ (t)]2 dt (5.3)
a

The next example shows how this formula is applied. We consider the cycloid, which is closely
related to the so-called ‘curve of fastest descent’ (see Section 7.2 of the MA1131 calculus course
notes).

Example 5.2.1 (The arc length of a cycloid). Find the arc length of one arch of the cycloid

x(t) = r(t − sin t), y(t) = r(1 − cos t), 0 ≤ t ≤ 2π.

2r
|

| x
2πr

Solution. We begin by calculating the derivatives:

x′ (t) = r(1 − cos t), y ′ (t) = r sin t.

Hence

[x′ (t)]2 + [y ′ (t)]2 = r 2 (1 − 2 cos t + cos2 t) + r 2 sin2 t


= 2r 2 (1 − cos t),

c 2018 School of Mathematics and Statistics, UNSW Sydney


5.2. THE ARC LENGTH OF A CURVE 179

since cos2 t + sin2 t = 1. We want to substitute this into formula (5.3). Before doing so, it is best
to express 1 − cos t as a square. Now 1 − cos 2θ = 2 sin2 θ and so

[x′ (t)]2 + [y ′ (t)]2 = 2r 2 (1 − cos t)


= 4r 2 sin2 (t/2).

Hence (5.3) gives


Z 2π p
ℓ= [x′ (t)]2 + [y ′ (t)]2 dt
0
Z 2π q
= 4r 2 sin2 (t/2) dt.
0

At this point we should be careful with taking the square root, since a2 = a only when a ≥ 0.
Now sin(t/2) is positive whenever 0 < t < 2π, and so taking the squareroot in the ‘naı̈ve’ way
causes no problems. Therefore
Z 2π
ℓ= 2r sin(t/2) dt
0
h i2π
= 2r − 2 cos(t/2)
0
= 8r.

So the arc length of one arch of the cycloid is 8r units.

Remark 5.2.2. For parametrisations of closed curves, one should be careful with the limits of
integration. For example, a circle of radius r and centre (0, 0) may be parametrised as

x(t) = r cos t, y(t) = r sin t, 0 ≤ t ≤ 2π.

Hence
Z 2π p Z 2π
ℓ= 2 2
[−r sin t] + [r cos t] dt = r dt = 2πr,
0 0

which shows that the circumference of the circle is 2πr, as expected.


On the other hand, if we use the parametrisation

x(t) = r cos 2t, y(t) = r sin 2t

then
Z 2π p Z 2π
[−2r sin 2t]2 + [2r cos 2t]2 dt = 2r dt = 4πr,
0 0

which is not the circumference of the circle. The reason for this is that, as t varies from 0 to 2π, the
point (x(t), y(t)) moves around the circle twice! To find the arc length using this parametrisation,
one should instead integrate from 0 to π.

c 2018 School of Mathematics and Statistics, UNSW Sydney


180 CHAPTER 5. AVERAGES, ARC LENGTH, SPEED AND SURFACE AREA

5.2.3 Arc length for the graph of a function

Suppose that f is a function of one variable. To find the arc length of the graph of f on the interval
[a, b], we parametrise the curve
y = f (x)

by
x(t) = t, y(t) = f (t), a ≤ t ≤ b.

Now
x′ (t) = 1 and y ′ (t) = f ′ (t).

By using the arc length formula (5.3), one finds that

Z bp
ℓ= 1 + [f ′ (t)]2 dt
a

We usually write the variable of integration as x.


In summary, the arc length ℓ of the graph of a function f on the interval [a, b] is given by

Z bp
ℓ= 1 + [f ′ (x)]2 dx. (5.4)
a

The use of this formula is illustrated below. We remind readers that a catenary is the shape
of a hanging cable and is described using the hyperbolic cosine function. See Chapter 10 of the
MA1131 calculus notes for further details.

Example 5.2.3 (The arc length of a catenary). Find the arc length of a catenary whose graph is
given by
1
y = cosh(ax), x ∈ [−b, b].
a

1/a
| | x
−b b

c 2018 School of Mathematics and Statistics, UNSW Sydney


5.2. THE ARC LENGTH OF A CURVE 181

1
Solution. Suppose that f (x) = a cosh(ax). By formula (5.4),
Z b p
ℓ= 1 + [f ′ (x)]2 dx
−b
Z bq
= 1 + sinh2 (ax) dx
−b
Z bq
= cosh2 (ax) dx (since cosh2 t − sinh2 t = 1)
−b
Z b
= cosh(ax) dx (since cosh is always positive)
−b
Z b
=2 cosh(ax) dx (since cosh is even)
0
 b
1
=2 sinh ax
a 0
2
= sinh(ab)
a
1  ab −ab

= e −e .
a
1

So the arc length of the catenary is a eab − e−ab units.

5.2.4 Arc length for a polar curve


Suppose that a curve is described using polar coordinates by

r = f (θ), θ0 ≤ θ ≤ θ1 .

Since
x = r cos θ = f (θ) cos θ and y = r sin θ = f (θ) sin θ,
we have a parametrisation for the curve in terms of θ. Now

x′ (θ) = −f (θ) sin θ + f ′ (θ) cos θ, while y ′ (θ) = f (θ) cos θ + f ′ (θ) sin θ.

Hence

[x′ (θ)]2 + [y ′ (θ)]2 = [f (θ)]2 sin2 θ − 2f (θ)f ′ (θ) sin θ cos θ + [f ′ (θ)]2 cos2 θ
+ [f (θ)]2 cos2 θ + 2f (θ)f ′ (θ) sin θ cos θ + [f ′ (θ)]2 sin2 θ
= [f (θ)]2 + [f ′ (θ)]2 ,

where we have used the fact that sin2 θ + cos2 θ = 1. So by using the parametric form (5.3) for arc
length, we find that the arc length ℓ of the polar curve is given by
Z θ1 p
ℓ= [f (θ)]2 + [f ′ (θ)]2 dθ.
θ0

dr
We usually write f (θ) as r and f ′ (θ) as dθ .

c 2018 School of Mathematics and Statistics, UNSW Sydney


182 CHAPTER 5. AVERAGES, ARC LENGTH, SPEED AND SURFACE AREA

In summary, the arc length ℓ of a polar curve is given by


s  2
Z θ1
dr
ℓ= r2 + dθ.
θ0 dθ

Example 5.2.4. The spiral graphed below is given by the polar equation r = e−θ/10 , where θ ≥ 0.
Is the total arc length finite? Explain.

x
1

Solution. We begin by calculating the arc length for the segment of the curve when 0 ≤ θ ≤ θ1 .
Now
dr 1
r = e−θ/10 and = − e−θ/10 .
dθ 10
Hence
Z θ1 q
2 
1 −θ/10 2
ℓ= e−θ/10 + − 10 e dθ
0
Z θ1 q
1

= 1 + 100 e−2θ/10 dθ
√0 Z
101 θ1 −θ/10
= e dθ
10 0
√  
= 101 1 − e−θ1 /10 .
√ √
Now as θ1 → ∞, ℓ → 101. Hence the total arc length is finite and equals 101 units.

5.3 The speed of a moving particle


(Ref: SH10 §10.7)

In Chapter 4 of the MA1131 calculus notes, we discussed the speed of a particle that moves
along a straight line. Now we consider the speed of a particle that moves along a curve in the plane.

c 2018 School of Mathematics and Statistics, UNSW Sydney


5.4. SURFACE AREA 183

Suppose that a particle P is moving in the plane and that its position at time t is given by
(x(t), y(t)). The distance s(t) that the particle has travelled from time zero to any later time t is
given by the formula Z tp
s(t) = [x′ (u)]2 + [y ′ (u)]2 du
0
(which is simply the arc length formula for the path that P traverses in this time interval). By
definition, the speed of P is the rate of change of its distance with respect to time. So if v(t)
denotes the speed of P at time t then
p
v(t) = s′ (t) = [x′ (t)]2 + [y ′ (t)]2
by the fundamental theorem of calculus.
In summary, the speed v(t) of a particle P at time t is given by
p
v(t) = [x′ (t)]2 + [y ′ (t)]2 ,

where the functions x and y give the position (x(t), y(t)) of P at time t.
Example 5.3.1. A stone is thrown horizontally from the deck of the Sydney Harbour Bridge at
20 metres per second. Its position (x(t), y(t)) exactly t seconds after the stone is thrown is given
by √
x(t) = 20t, y(t) = 50 − 5t2 , 0 ≤ t ≤ 10,
where y(t) is the height above the water (see Example 7.2.1 in the MA1131 calculus notes). Find
the speed of the stone an instant before it hits the water.
Solution. We have
x′ (t) = 20 and y ′ (t) = −10t.
So the speed v(t) of the stone at time t is given by
p
v(t) = 202 + 100t2

whenever
√ 0 < t < 10. Now the stone hits the water when y(t) = 0, which is precisely when
t = 10. Hence the speed of the stone an instant before it hits the water is given by
q √ √
lim
√ v(t) = 202 + 100( 10)2 = 10 14 ≈ 37.42.
t→( 10)−

So the speed of the stone just before it hits the water is approximately 37.42 metres per second.

5.4 Surface area


(Ref: SH10 §10.8)

The problem of finding the surface area of a surface or solid in R3 is not easy. In this section,
we focus on finding the surface area for a surface (or solid) that is formed by rotating a curve
about one of the axes. In the first subsection we derive, intuitively, a formula for the area of such
a surface. In the second subsection, the relevant formulae are summarised and examples given.
The formulae presented all rely on the formula for the surface area of the frustum of a right
circular cone.

c 2018 School of Mathematics and Statistics, UNSW Sydney


184 CHAPTER 5. AVERAGES, ARC LENGTH, SPEED AND SURFACE AREA

r
b

b
R

Given a frustum of slant height s and radii r and R, the surface area A of the ‘curved surface’ is
given by
A = π(r + R)s. (5.5)

This formula may be proved using elementary methods and is left as an exercise in the tutorial
problems.

5.4.1 An heuristic derivation for the surface area of a surface of revolution


Suppose that a curve C has parametrisation given by

C = (x(t), y(t)) ∈ R2 : a ≤ t ≤ b .

We will assume that

• the curve lies in the upper half-plane (more precisely, x(t) ≥ 0 and if the curve meets the
x-axis then it does so at only a finite number of points); and

• the curve C is simple: if (x(t0 ), y(t0 )) = (x(t1 ), y(t1 )) then t0 = t1 (that is, the curve does
not intersect itself).

An example of such a curve is shown below.


y

If we rotate the curve about the axis, then a surface of revolution is formed.

c 2018 School of Mathematics and Statistics, UNSW Sydney


5.4. SURFACE AREA 185

The goal of this subsection is to derive a formula for the area of this surface.
Let A(s) denote the area of the surface formed when the curve segment

(x(t), y(t)) ∈ R2 : a ≤ t ≤ s

is rotated about the x-axis. We make the assumption that A is a differentiable function.
Our immediate goal is to compute the derivative of A. Fix t in (a, b) and suppose that h is a
small nonzero real number. Consider the points P (x(t), y(t)) and Q(x(t + h), y(t + h)) and note
that A(t + h) − A(t) is the area of the surface formed by rotating the curve segment from P to Q
about the x-axis.
y

C
Q
P

Since h is small, this surface area is approximately equal to the area of the surface formed when
the secant P Q is rotated about the x axis.

c 2018 School of Mathematics and Statistics, UNSW Sydney


186 CHAPTER 5. AVERAGES, ARC LENGTH, SPEED AND SURFACE AREA

C
Q
P

This area may be calculated using formula (5.5), where


p
slant height = [x(t + h) − x(t)]2 + [y(t + h) − y(t)]2 .
Hence p
A(t + h) − A(h) ≈ π y(t + h) + y(t) [x(t + h) − x(t)]2 + [y(t + h) − y(t)]2 ,
and dividing both sides by h gives
s 2  2
A(t + h) − A(h)  x(t + h) − x(t) y(t + h) − y(t)
≈ π y(t + h) + y(t) + .
h h h
Note that approximation improves as h gets smaller. Moreover, since y is differentiable at t, it
follows that y is continuous at t and so y(t + h) → y(t) as h → 0. By taking the limit as h
approaches zero, we obtain
p
A′ (t) = π y(t) + y(t) [x′ (t)]2 + [y ′ (t)]2 ]
p
= 2πy(t) [x′ (t)]2 + [y ′ (t)]2 ].
This gives an expression for the derivative of A. By applying the fundamental theorem of calculus,
we find that Z s p
A(s) = 2πy(t) [x′ (t)]2 + [y ′ (t)]2 ] dt + K
a
for some constant of integration K. To evaluate K, note that A(a) = 0. So the substitution s = a
yields Z a p
0 = A(a) = 2πy(t) [x′ (t)]2 + [y ′ (t)]2 ] dt + K = 0 + K = K.
a
Thus K = 0 and hence Z s p
A(s) = 2πy(t) [x′ (t)]2 + [y ′ (t)]2 dt.
a
Finally, the substitution s = b yields
Z b p
A(b) = 2πy(t) [x′ (t)]2 + [y ′ (t)]2 dt,
a
which is a formula for the area of the surface of revolution formed by rotating C about the x-axis.

c 2018 School of Mathematics and Statistics, UNSW Sydney


5.4. SURFACE AREA 187

5.4.2 Surface area formulae and examples


Assume that a curve C lies in the upper-half plane and is simple (see the assumptions stated at
the beginning of Subsection 5.4.1). We present formulae for the area of the surface of revolution
about the x-axis when C is described either parametrically, as the graph of a function or using polar
coordinates. In each case we assume that the appropriate derivatives exist.
If C is described parametrically by

C = (x(t), y(t)) ∈ R2 : a ≤ t ≤ b ,

then the area A of the surface of revolution about the x-axis is given by
Z b p
A= 2πy(t) [x′ (t)]2 + [y ′ (t)]2 dt. (5.6)
a

If C is the graph
y = f (x), x ∈ [a, b],
of a function f on [a, b] then the area A of the surface of revolution about the x-axis is given by
Z b p
A= 2πf (x) 1 + [f ′ (x)]2 dx. (5.7)
a

If C is described using polar coordinates by

r = f (θ), θ0 ≤ θ ≤ θ1 ,

then the area A of the surface of revolution about the x-axis is given by
s  2
Z θ1
dr
A= 2πr sin θ r2 + dθ. (5.8)
θ0 dθ

Remark 5.4.1. Formula (5.6) was derived heuristically in Subsection 5.4.1. Formula (5.7) may be
easily deduced from (5.6) by using the following parameterisation of the graph of f :

x(t) = t, y(t) = f (t), a ≤ t ≤ b.

Formula (5.8) may be easily deduced from (5.6) by using the following parameterisation of the
polar curve:
x(θ) = f (θ) cos θ, y(θ) = f (θ) sin θ, θ0 ≤ θ ≤ θ1 .

Remark 5.4.2. In parametric form, the formula for the area A of surface of revolution about the
y-axis is given by
Z b p
A= 2πx(t) [x′ (t)]2 + [y ′ (t)]2 dt.
a
Other versions of this formula may be easily deduced using the parametrisations given in the
previous remark.

c 2018 School of Mathematics and Statistics, UNSW Sydney


188 CHAPTER 5. AVERAGES, ARC LENGTH, SPEED AND SURFACE AREA

Remark 5.4.3. Each of these formulae only give the area of the surface of revolution. To find
the surface area of the solid of revolution, one must also add the surface area contributed by any
circular ‘caps’ appearing at each end of the surface of revolution. See, for example, Example 5.4.5.

Example 5.4.4. Find the surface area of a sphere of radius r.

Solution. A sphere of radius r is formed by rotating the curve

x(t) = r cos t, y(t) = r sin t, 0≤t≤π

about the x-axis.


y

By using formula (5.6), we find that the surface area A is given by


Z π p
A= 2πr sin t [−r sin t]2 + [r cos t]2 dt
0
Z π q
= 2πr sin t r 2 (sin2 t + cos2 t) dt
0
Z π
= 2πr 2 sin t dt
0
h iπ
= 2πr 2 − cos t
0
= 4πr 2 .

So the surface area of a sphere of radius r is 4πr 2 .

Example 5.4.5. A solid S is formed by rotating the curve given by



y= 2 − x, x ∈ [0, 2],

about the x-axis. Find the surface area of the solid, making sure that the every face of the solid is
accounted for.

Solution. The solid S is drawn below.

c 2018 School of Mathematics and Statistics, UNSW Sydney


5.4. SURFACE AREA 189

y

2

x
2

It has two faces: the truncated paraboloid (shaded in lighter gray) and the circular cap (shaded in
darker gray). The area A1 of the truncated paraboloid is given by
Z 2 p √
A1 = 2πf (x) 1 + [f ′ (x)]2 dx (where f (x) = 2 − x)
0
Z 2  2 !1/2
√ −1
= 2π 2 − x 1 + √ dx
0 2 2−x
Z 2  1/2
√ 1
= 2π 2 − x 1 + dx
0 4(2 − x)
Z 2p
=π 4(2 − x) + 1 dx
0
Z 2

=π 9 − 4x dx
0
" #2
(9 − 4x)3/2

−6
0
13π
= .
3
The area A2 of the circular cap is given by

A2 = πr 2 = π( 2)2 = 2π.

Hence the total surface area of the solid S is given by


19π
A1 + A2 = ,
3
which is approximately 19.9 square units.

We end with a simple but interesting example. Recall from high school that the volume V of
the solid formed when the graph of a function f : [a, b] → [0, ∞) is rotated about the x-axis is given
by
Z b
V = π[f (x)]2 dx. (5.9)
a

Example 5.4.6 (Gabriel’s horn). Suppose that the function f : [1, ∞) → R is defined by f (x) = x1 .
Rotate the graph of f about the x-axis, as shown.

c 2018 School of Mathematics and Statistics, UNSW Sydney


190 CHAPTER 5. AVERAGES, ARC LENGTH, SPEED AND SURFACE AREA

The surface of revolution formed is known as Gabriel’s horn (after the biblical figure Gabriel) or
Torricelli’s trumpet (after the mathematician and philosopher Evangelista Torricelli, who was a
pupil of Galileo). Even though the length of the horn is infinite, it may still be possible to calculate
its surface area and the volume of the corresponding solid.
We begin with the volume. First, consider the volume VR of the truncated solid shown below.
y

| x
1 R

Using formula (5.9),


Z R
π
VR = 2
dx
1 x
 
1 R
=π −
x 1
 
1
=π 1− .
R
Now lim VR = π, and so the volume of the solid of revolution is finite and equal to π cubic units.
R→∞
We now examine the surface area. The area A of the surface of revolution for the truncated
curve is given by
Z R r
1 1
A = 2π 1 + 4 dx.
1 x x
Finding an antiderivative for the integrand looks difficult. However, we are mainly interested in
whether or not the improper integral
Z ∞ r
1 1
1 + 4 dx
1 x x
converges. Note that r
1 1 1√ 1
1+ 4 > 1+0=
x x x x
whenever x ≥ 1. Since the improper integral
Z ∞
1
dx
1 x

c 2018 School of Mathematics and Statistics, UNSW Sydney


5.4. SURFACE AREA 191

diverges, so too does the integral r


Z ∞
1 1
1+ dx
1 x x4
by the comparison test for integrals (see Chapter 8 in the MA1131 calculus notes). Hence the
surface area of Gabriel’s horn is infinite.
The fact that Gabriel’s horn has finite volume (π cubic units) and infinite surface area leads to
the following paradox. To paint the outside surface of the horn, one requires an infinite amount of
paint since the surface area is infinite. However, to paint the inside surface of the horn, one only
needs at most π cubic units of paint. Simply fill the horn with paint and then remove whatever
paint is not touching the surface. This is sometimes called the painter’s paradox.
Question: How is the paradox resolved?

c 2018 School of Mathematics and Statistics, UNSW Sydney


192 CHAPTER 5. AVERAGES, ARC LENGTH, SPEED AND SURFACE AREA

Problems for Chapter 5


Problems 5.1 : The average value of a function
1. [R] It can be shown that when a cable is hanging between two poles the curve that it
forms is always the graph of a hyperbolic cosine function. Suppose that the height h (in
metres) of a cable above the ground is given by
 
x − 10
h(x) = 4 cosh ,
20
where 0 ≤ x ≤ 20. Find the average height of the cable above the ground.

2. [R] Suppose that the air temperature T (t), measured in degrees Celsius t hours after noon,
is given by
t2
T (t) = 25 + 2t − .
3
Find the average temperature between noon and 5 p.m.

Problems 5.2 : The arc length of a curve

3. [R] Calculate the lengths of the given arcs given by


a) y = x3/2 , where 0 ≤ x ≤ 1 ;
b) x = t − sin t, y = 1 − cos t, where 0 ≤ t ≤ 2π ; and
c) x = t3 , y = t2 from (0, 0) to (8, 4).

4. [R] The astroid


x2/3 + y 2/3 = a2/3 (1)
has a parametrisation given by
x(θ) = a cos3 θ, y(θ) = a sin3 θ.
Its graph was sketched, in the case when a = 1, in one of the problems from Chapter 7 of
MA1131.
a) Use the parametric form to calculate the arc length of the astroid.
b) [H]
Z 1
i) Show that the improper integral x−1/3 dx converges to 3/2 by calculating the
0
limit Z 1
lim x−1/3 dx.
h→0+ h

ii) Hence calculate the arc length of the astroid by using the implicit equation (1).

5. [R] Find the length of the curve r = eθ , where 0 ≤ θ ≤ 2π.

6. [R] Find the length of the cardioid r = 1 + cos θ.

c 2018 School of Mathematics and Statistics, UNSW Sydney


PROBLEMS FOR CHAPTER 5 193

Problems 5.3 : The speed of a moving particle

7. [R] A projectile is fired from an elevated cannon. Its horizontal distance x (in metres)
from the cannon and height y (in metres) above the ground, exactly t seconds after it is
fired, is given by

x(t) = 40t, y(t) = −5t2 + 40t + 45, 0 ≤ t ≤ t1 ,

where t1 is the time the projectile hits the ground.

a) Find t1 .
b) Find the speed of the projectile immediately prior to impact.
c) What was the average height of the projectile above the ground during the period
after it was fired and before impact?
d) [HH] What distance did the projectile travel during this period?

8. [H] The position (x(t), y(t)) of a particle P at time t is given by


π  π 
x(t) = cos (cos πt − 1) , y(t) = − sin (cos πt − 1) ,
2 2
where t ≥ 0.

a) Find a formula for the speed v(t) of the particle at time t.


b) For what values of t is the speed of the particle (i) a maximum and (ii) a minimum?
c) What curve does the trajectory of the particle trace out?
d) What is the length of the curve of (c)?
e) Find the distance that the particle travels during the time interval [0, 3].

Problems 5.4 : Surface area

9. [R] In this question we will show that the surface area of the frustum of a right circular
cone is given by π(R + r)s. (For a diagram, see the beginning of Section 5.4.)
Consider a truncated right circular cone with slant height s and base radius R. Cut a line
from the vertex Q to the base and flatten the cone as shown below.

b
Q
R

c 2018 School of Mathematics and Statistics, UNSW Sydney


194 CHAPTER 5. AVERAGES, ARC LENGTH, SPEED AND SURFACE AREA

a) Explain why the flattened surface is the sector of a circle.


b) Find, in terms of R and s, the area of the sector and hence the surface area of the
cone.
c) Hence show that the surface area of a frustum of radii r and R and of slant height s
is given by π(R + r)s.

10. [R] Find the area of the surface of revolution formed when the given curve is rotated
about the x-axis.
a) y = x3 , where 0 ≤ x ≤ 2. b) x = t − sin t, y = 1 − cos t, where 0 ≤ t ≤ 2π.

11. [R] Show that if −a ≤ b < c ≤ a then the surface area of the sphere x2 + y 2 + z 2 = a2
between the planes x = b and x = c is 2πa(c − b).

12. [R] Suppose that 0 < r < R. A surface (doughnut) is formed by rotating a circle of
radius r and centre (0, R) about the x-axis. By finding a suitable parametrisation for the
circle, show that the area of the surface is (2πR)(2πr).

13. [R] Find the area of the surface formed when the polar curve r = 1 + cos θ, where
0 ≤ θ ≤ π, is rotated about the x-axis.

c 2018 School of Mathematics and Statistics, UNSW Sydney


195

Answers to selected problems

Chapter 1

1. a) cup shaped b) unit sphere c) umbrella stand


d) cone with semi-vertical angle π/4 e) saddle
2 2 2
2. 2xyex y , x2 ex y , (2x + 2x3 y)ex y .

∂z ∂z ∂2 z ∂2 z ∂2 z ∂2z
∂x ∂y ∂x2 ∂x∂y = ∂y∂x ∂y 2
a) 2xy x2 + 2y 2y 2x 2
3. −y x 2xy (y 2 − x2 ) −2xy
b)
(x2 + y 2 ) (x2 + y 2 ) (x2 + y 2 )2 (x2 + y 2 )2 (x2 + y 2 )2
c) cos(x − cy) −c cos(x − cy) − sin(x − cy) c sin(x − cy) −c2 sin(x − cy)

4. a) z = 6x + 10y − 34, n = (6, 10, −1)T


b) z = 32 − 16x + 16y, n = (−16, 16, −1)T
c) 4x − 6y − 7z − 14 + 7 ln 7 = 0, n = (4, −6, −7)T
√ √
d) 2x + 3y + 23z − 6 = 0, n = (2, 3, 23)T

5. 0.05
217π
6. a) 784π cm3 b) 15 cm3 c) 1.85%

7. 5.012 (calculator gives 5.012115)

8. |∆S| ≤ 0.0404

9. 9% decrease.

10. 0.21%

11. a) et (t2 + 2t) b) 2t

12. 7.5π cubic centimetres per second

13. b) F (x, y) = sin(y − x2 )

14. a) uxx (x, t) = g ′′ (x + λt), utt (x, t) = λ2 g ′′ (x + λt)

c 2018 School of Mathematics and Statistics, UNSW Sydney


196 CHAPTER 2

b) 4, −4

15. a) y = ±1, dy
dt = 0.
b) ∇F = (2x, 2y, −2z)T .
 T
dy dz
c) The vector dx , ,
dt dt dt representes the velocity of the raindrop. So the equation states that
the velocity is perpendicular to the normal to the curve.

Chapter 2

1 2x2 1 1
1. a) e b) − cos(x2 ) c) sin(2x3 )
4 2 6
1 1 f) ln(ln x)
d) ln |5x2 − 11| e) − cos4 x
10 4
p 1 3 1 3
g) x2 + 4x + 7 h) (1 + x2 ) 2 i) − (9 − 4x3 ) 2
3 18
1 1 1 −1
j) − (9 − 4x3 ) 2 k) − l)
6 8(1 + x4 )2 3 tan3 x
−1 1 4 −1
m) n) (4 + 3e2x ) 3 o)
2 sin2 x 8 4(ln x)4

a) −e−x (x2 + 2x + 2) 1 4 1 c) x tan x + ln(cos x)


2. b) x ln x − x4
4 16
(ln x)2 ln x 2 1 x f) x ln x − x
d) − −2 − e) e (sin x + cos x)
x x x 2
1
g) x tan−1 x − ln(x2 + 1)
2

3. a) 1/8 b) 4/15
c) 13 sec3 x + C d) 14 sin 2θ + 21 θ + C
1 1 1 1

e) − 99 (sin x cos 10x − 10 cos x sin 10x) + C or 2 9 sin 9x + 11 sin 11x + C
1 1
f) − 10 cos 5x + 2 cos x + C

4. a) ln | tan x + sec x| + C
1 2
b) i) 3 sec2 x tan x + 3 tan x + C
1 3 3
ii) 4 sec3 x tan x + 8 sec x tan x + 8 ln | tan x + sec x| + C

5. a) 3π/512 b) 1/60 c) 2/35

6. 6 − 16e−1

7. 5/12 − (ln 2)/2, π/4 − 76/105

8. (e2 + 3)/8

9. 35π/256, 16/35

10. In = (2 2 − 2nIn−1 )/(1 + 2n)

c 2018 School of Mathematics and Statistics, UNSW Sydney


ANSWERS 197


13. a) π/3 − 3/2; x = 2 sin θ

b) sinh−1 x−3
2 +C or ln(x − 3 + x2 − 6x + 13) + K; complete the square.
c) 9π/4
√ Z
x2 + 16 cos θ
d) − + C; x = 4 tan θ to obtain dθ.
16x sin2 θ

e) x/ 1 − x2 + C
f) tan−1 2

14. x2 − 4 + C

1 x+1 b) 3 log |x − 2| + 2 log |x − 1| + C


15. a) 2 ln x+3 +C
 
1
c) 2 log |x| + x + 2 log |x − 1| + C d) − 41 2x
x2 −1 − log x+1
x−1 +C

e) x + ln x−1 f) ln |x−3|− 21 ln(x2 +9)−tan−1 x3 +C


x+1 + C
(x+1)2 4 h) −1
+ 1
= x
+C
g) ln |x+2| + x+2 + C (1+x)2 1+x (1+x)2


16. a) 21 ln(x2 + 2x+ 10)− 31 tan−1 x+1
3 +C b) x2 + 2x + 10 − sinh−1 x+1
3 +C
√ √ 6
c) 2 x − 2 ln(1 + x) + C d) 11 − 6 ln(3/2); x = u first.
 
1 √1 2x+1
18. a) ln x − 2 ln(x2 + x + 1) − 3
tan−1 √
3
+C
8 5
b) 5 cosh (x) + C
3 2 1 −1 x+2

c) 2 ln(x + 4x + 8) − 2 tan 2 +C
1
√ 25 −1 x

d) 2
2 x 25 − x + 2 sin 5 +C
e) ln |x − 1| + ln(x − 2x + 2) + tan−1 (x − 1) + C
2

1+x2
f) − x +C
1 √ x
g) 3 x2 +3
+C
1
h) − 14 cos(7x) + 21 cos(x) + C
i) 2/e

Chapter 3

1. a) y = tan(t3 /3 + C) b) y = −2/(x2 + A)

c) y = 3 A − 3 cos x d) y = C(x − 1)/x
e) ex+y + Cey + 1 = 0 f) y 2 = tan2 x+ 4 tan x− 1, where y > 0
g) (ln x)2 = 2 ln y + C h) y = 1/(1 − x3 )

2. Let a and b be arbitrary real numbers with a < b. Then there are solutions of the form

3
(x − a)
 if x < a
y= 0 if a ≤ x ≤ b .

(x − b)3

if x > b

c 2018 School of Mathematics and Statistics, UNSW Sydney


198 CHAPTER 3


3. 2 2

4. a) y = (x3 /3 + C)e2x b) y = e−3x (tan−1 x + C)


c) y = (2 + Ce−x )/x d) y = 2x5 + Ax2
e) y = tan x − 1 + Ae− tan x f) y = x2 tan 2x + 14 + A sec 2x

5. x = t − 1 + Ce−t

7. a) 3x2 y + y 3 = A b) x sin y − 21 x2 y 2 = C

8. a) (x2 + 1)ey + ex = C b) Not exact


c) y tan−1 x + xey = C d) exy cos x = C

9. a) xy 2 − 3y tan x = C b) y 2 = ln(x2 + 1) + C
ln x + C d) y = Axe−1/x
c) y =
 x 1/3
x2 17
e) y = 3 ln |x| + +
2 2

10. xy 2 = 2y 5 + C

11. a) i) y = 0, y=K
y0 K
ii) y=
y0 + (K − y0 )e−kt
iii) y is strictly increasing and approaches K.
iv) y = K/2; work from the differential equation.
v) The solution is the same as for ii); y is strictly decreasing (and concave upwards) with
y = K as a horizontal asymptote.
b) y = K exp {− ln(K/y0 )e−αt } ; one way, let z = ln y.

12. Let y litres of pollutant be present in the lake after t days.


dy y(t) 109  3

= 104 − 9 × (106 + 104 ), giving y= 1 − e−1.01t/10
dt 10 101
a) y → 109 /101 litres or just under 1%
105 ln 2
b) ≈ 686.3 days ≈ 1.88 years
101
c) That there is perfect mixing, that the pollutant does not precipitate or dissolve, that the
pollutant does not itself create more pollution, that ....

13. With an inflow of 3 litres per minute and an outflow of 1 litre per minute, the volume of liquid in
the tank at time t is 50 + 2t litres. The inflow of salt is 3 × 2 grams per minute. In running off 1 litre
per minute with a concentration of x/(50 + 2t) grams of salt per litre, the rate of removal of salt is
dx
1 × x/(50 + 2t) grams per minute. So the net rate of increase of x is given by = 6 − x/(50 + 2t)
dt
dx 1
or + x = 6. This is a first order linear ODE. (You may find it helpful to consider the
dt 50 + 2t
outflow over a small time interval [t, t + ∆ t].)

14. a) P (t) = 100 − 25 cos t + 25 sin t − 55e−t


b) 100

c 2018 School of Mathematics and Statistics, UNSW Sydney


ANSWERS 199

n a o
15. y = A exp k(t + sin(2πt))

16. a) r(t) = 2% + (1.5% − 2%)/10t = 0.02 − 0.0005t, where t is measured in years.


dy
b) The differential equation is = (0.02 − 0.0005t)y
dt
y = 10 exp(0.02t − 0.00025t ). When t = 10, y = 107 e0.175 ≈ 107 × 1.19
7 2

dv
17. a) = g − kv; with g = 9.8, k = 10. So v = Ae−kt + g/k. With v = 0 at t = 0,
dt
v = kg (1 − e−kt ) = 50
49
(1 − e−10t )
b) g/k = 49/50
ln 20
c) t ≥ (≈ 0.3 seconds)
k
d) A > 0 and v decreases (rapidly) towards g/k.

18. a) y = Axλ
b) Graph ln y against ln x. From the graph, λ ≈ 1.54 and ln A ≈ −4.55 (so that A ≈ 0.0106).

19. a) $610701.38
dP
b) Treating the car payments as continuous at the rate of $10400 a year, = 0.2P − 10400.
dt
0.2t
Then P = 52000 + 448000e , for 0 ≤ t ≤ 1/2. At t = 1/2, P = 547116.57. The capital
remaining in the cooperative after 6 months is 47116.57 e−0.05 = 44818.67. At the end of one
year, the total is 547116.57 (capital plus new interest in Hitek) + 44818.67 (in the co-op) =
591935.24 dollars.
dy1 dy2
21. = − 0.25y1, = 0.25 y1 − 2y2 with y1 (0) = K, y2 (0) = 0. Thus y1 = Ke−0.25t
dt dt
and hence y2 = K7 (e
−0.25t
− e−2t ). The maximum value of y2 occurs for t = 12
7 ln 2. That is, after
about 1.188 days.

22. a) y = Ae−2x + Be−x b) y = e−x (C cos 3x + D sin 3x)


c) y = Ae−3x d) y = (Ax + B)e−2x

1
23. a) 4 (5e
x − e5x ) b) y = e−x (cos x + sin x)

24. a) y = Ae−3x + Be−x + 13 x − 94 b) y = (Ax + B)e3x + 5e2x


c) y = e−x (A sin x+B cos x)+2 sin 2x−cos 2x d) y = (A − x/2)e−x + Bex
e) y = A cos 2x + B sin 2x − 41 x cos 2x f) y = Ae−3x + 2e2x
g) y = 31 (sin x + sin 2x) h) y = ex + e4x − e2x

25. a) Ae−x + Be5x/2 ; seek yP = x(ax + b)e5x/2


b) Ae4x + Be−6x ; seek yP = e4x (a cos 6x + b sin 6x)
c) (Ax + B)e− 3x ; seek yP = x2 ae−3x

26. y = 12 x4 e2x .

27. 502 g/π grams; about 780 kilograms

28. a) x(t) = cos 2t, so the block oscillates with fixed amplitude.

c 2018 School of Mathematics and Statistics, UNSW Sydney


200 CHAPTER 4

√ √
b) If c = 2 then x(t) = e−t (cos 3t + √13 sin 3t), so the system has damped oscillations.
If c = 5 then x(t) = 13 (e−t − e−4t ), so the system does not oscillate.
c) If the characteristic equation has real roots then the solution has no oscillating terms. This
happens whenever c ≥ 4. So the smallest value of c is 4.

29. a) q(t) = A cos 100t + B sin 100t


b) xP = a cos Ωt + b sin Ωt if Ω 6= 100; xP = t(a cos Ωt + b sin Ωt) if Ω = 100.
c) 50/π (which corresponds to when Ω = 100).

30. a) y = Ae−t + Be−2t + 2 sin t − 6 cos t


b) y = −6 cos t + 2 sin t

31. b) No
c) µ = nπ/L, where n = 1, 2, 3, . . .. The corresponding solutions are yn (x) = Bn sin(nπx/L).

x2 y2
32. a) + = C, a family of ellipses.
a b
d2 y
b) + aby = 0, y = A cos ωt + B sin ωt, where ω 2 = ab
dx2
and x = (Aω/b) sin ωt − (Bω/b) cos ωt.
c) ω = 1.6, A = 3.2, B = 2.4
x = 1.6 sin ωt − 1.2 cos ωt, y = 3.2 cos ωt + 2.4 sin ωt or
x = −2 cos(ωt + φ) = 2 sin(ωt + φ − π/2) and y = 4 sin(ωt + φ)
4 x2 y2
where φ = sin−1 , and + = 1. The peaks in the predator population lag behind the
5 4 16
peaks in the prey population by a quarter of the period.

33. Care is required if the characteristic equation of Lu = 0 has a double root. Otherwise a basis for
ker(L2 ) is {u1 , xu1 , u2 , xu2 }.
The two dimensional kernel of L is a subspace of the four dimensional kernel of L2 .

Chapter 4

x2 x3 x9
1. a) 1 + x + + + ··· +
2! 3! 9!
x3 x 5
x 7
x 9
b) x − + − +
3! 5! 7! 9!
x3 x5 x7 x9
c) x + + + +
3! 5! 7! 9!
m
X (−1)k x2k+1
2. p2m+1 (x) =
(2k + 1)!
k=0

3. 1
a) 2 + 41 (x − 4) − 64 1
(x − 4)2 + 512 (x − 4)3
1 1  π  1  π 2 1  π 3 1  π 4
b) √ − √ x − − √ x− + √ x− + √ x−
2 2 4 2 2 4 6 2 4 24 2 4

c 2018 School of Mathematics and Statistics, UNSW Sydney


ANSWERS 201

4. a) 3 + 3(x − 1)
b) 3 + 3(x − 1) + (x − 1)2
c) 7 + 5(x − 2) + (x − 2)2

x2
5. a) p1 (x) = x and R2 (x) = − for some c between 0 and x.
2(1 + c)2

x2 x4 x6 xn
7. a) pn (x) = 1 − + − + · · · + (−1)k where n = 2k;
2! 4! 6! n!
(−1)k+1 sin c n+1
Rn+1 (x) = x for some c between 0 and x.
(n + 1)!
1
c) |Rn+1 (x)| < n+2
10 (n + 1)!
d) n = 4
e) The estimate sin x ≤ 1 (whenever x ∈ R) is less crude in the case when x ≥ 1.
f) n = 14
a11 √
< 10−6 gives a <
11
g) Rearranging the inequality |error| ≤ 11!10−6. So a less than 1.398
11!
will do.

9. a) Horizontal point of inflexion at 1; local maximum at −2.


b) Horizontal point of inflexion at −1; local minima at 2 and 3.

11. a) 1/2 b) 0 c) boundedly divergent d) 1


e) 0 f) diverges to ∞ g) a

12. a) 1/2 b) N = 2/ǫ works

13. a) e4 b) 1/e

14. e) (1 + 5)/2

15. a) iii) 1 b) iii) 3/4

20. diverges

21. a) divergent b) divergent c) convergent

22. a) convergent b) divergent c) divergent


d) divergent e) divergent f) convergent

23. a) convergent b) convergent c) convergent d) divergent

24. a) conditionally convergent


b) divergent (by the kth term test)
c) absolutely convergent

(−1)k (−1)k k 1
d) diverges to ∞; √ = −
k + (−1)k k − 1 k − 1

c 2018 School of Mathematics and Statistics, UNSW Sydney


202 CHAPTER 4

25. b) s4 = 9677/16380 ≈ 0.59078; |error| ≤ 1/126


c) n equal to 99 will do.

26. a) convergent b) divergent c) convergent


d) convergent e) divergent f) convergent

27. Converges if lim ak > 1 and diverges otherwise.


k→∞

∞ ∞ ∞
X xk X (−1)k x2k+1 X x2k+1
28. a) b) c)
k! (2k + 1)! (2k + 1)!
k=0 k=0 k=0
∞ ∞
X
k+1 xk X
k
d) (−1) e) − x
k
k=1 k=0

x2 xn ecn xn+1
29. a) ex = 1 + x + ···+ + , for some cn between 0 and x.
2! n! (n + 1)!

sinh cn n+1 cosh cn n+1


30. a) Rn+1 (x) = x if n is odd and Rn+1 (x) = x if n is even. In each case,
(n + 1)! (n + 1)!
cn lies between 0 and x.

(−1)n xn+1
31. a) Rn+1 (x) = for some cn between 0 and x.
(n + 1)(1 + cn )n+1

33. b) ln 2
1
f) 2 ln 2

34. a) (−6, 6) b) (−1, 1) c) (−2, 2)


d) (1, 3) e) (1/3, 1) f) (−3, 3)
g) (−∞, ∞)

∞ ∞
X (k + 1)xk X (−1)k x4k+2
37. a) b)
k! (2k + 1)!
k=0 k=0

X
c) Differentiate 28(e): kxk−1
k=1

38. All series are valid on (−1, 1).


∞ ∞ ∞
X X X x2k+1
a) (−1)k xk b) (−1)k x2k c) (−1)k
2k + 1
k=0 k=0 k=0


x11 x17 x23 X (−1)k+1 x6k−1
39. a) f (x) = x5 − + − + ··· =
3! 5! 7! (2k − 1)!
k=1
c) A horizontal point of inflexion.
56
40. R = 1, ln 2 ≈ 81 .

41. a) A local maximum


x3 x5 x7
b) Si(x) = x − + − + ···
3!3 5!5 7!7

c 2018 School of Mathematics and Statistics, UNSW Sydney


ANSWERS 203

π3 π5 π7
c) Si(π) ≈ π − 3!3 + 5!5 − 7!7 ≈ 1.84

x
42. a) (−1, 1) b) f (x) =
(1 − x)2
∞ ∞ ∞
X xk X X
43. a) b) y ′ = kak xk−1 , y ′′ = k(k − 1)ak xk−2
k!
k=1 k=1 k=2

1 X xk
c) ak = 2 whenever k ≥ 1 d) y = whenever x ∈ R.
k k! k 2 k!
k=1

Chapter 5

1. 8 sinh(1/2) ≈ 4.17 metres

2. 27 92 ◦ C

8

3. a) (133/2 − 8)/27 b) 8 c) 27 (10 10 − 1)

4. 6a
√ 2π
5. 2(e − 1)

6. 8

7. a) 9 seconds

b) 10 41 ≈ 64.03 metres per second
c) 90 metres
√ √ √ √
d) 80 2 − 80 ln( 2 − 1) + 25 41 + 160 ln 2 − 80 ln( 41 − 5) ≈ 427.53 metres

π2
8. a) v(t) = 2 | sin(πt)|
1
b) (i) t = 2 + k, where k is a positive integer. (ii) t = n, where n is a positive integer.
c) A semicircle of centre (0, 0) and radius 1 in the upper half-plane.
d) π
e) 3π
π 3/2
10. a) 27 (145 − 1) b) 64π/3

13. 32π/5

c 2018 School of Mathematics and Statistics, UNSW Sydney


204

c 2018 School of Mathematics and Statistics, UNSW Sydney


205

Past class tests

The information booklet for MA1231 lists the material available for examination in the current
schedule of class tests, see also page xii of these notes.
The following tests are samples only and simply are a guide to style and level of difficulty. They
are not a replacement for doing the tutorial problems.

c 2018 School of Mathematics and Statistics, UNSW Sydney


UNIVERSITY OF NEW SOUTH WALES
SCHOOL OF MATHEMATICS AND STATISTICS
MATH1231/MATH1241 CALCULUS S2 2009
TEST 1 VERSION 7a
This sheet must be filled in and stapled to the front of your answers

Student’s Family Name Initials Student Number

Tutorial Code Tutor’s Name Mark

Note: The use of a calculator is NOT permitted in this test

QUESTIONS (Time allowed: 20 minutes)


1. (2 marks)
dz
Let z = xy, where x = 2 cos 3t and y = 4 sin 3t. Use a chain rule to find .
dt
2. (3 marks)
Find a normal vector n and the equation of the tangent plane to the surface

z = 3x2 − y 2 − 2

at the point (−1, 2, −3)

3. (2 marks)
Z
Find sec4 θ dθ.

4. (3 marks)
Z 2p
Use a trigonometric substitution to find 4 − x2 dx.
0
UNIVERSITY OF NEW SOUTH WALES
SCHOOL OF MATHEMATICS AND STATISTICS
MATH1231/MATH1241 CALCULUS S2 2011
TEST 1 VERSION 1a
This sheet must be filled in and stapled to the front of your answers

Student’s Family Name Initials Student Number

Tutorial Code Tutor’s Name Mark

Note: The use of a calculator is NOT permitted in this test

QUESTIONS (Time allowed: 20 minutes)


1. (1 mark )
2 ∂z
Let z = exy . Find .
∂y
2. (2 marks)
∂2z ∂2z
Let z = cos(x + 2y). Show that z satisfies the differential equation 4 − = 0.
∂x2 ∂y 2
3. (2 marks)
dz
Let z = x2 + 3y 2 , and x = 2t2 , y = t3 . Use a chain rule to find as a function of t.
dt
4. (3 marks)
Find a normal vector n and the equation of the tangent plane to the surface
p
z = x2 + 2y 2

at the point (−1, 2, 3)

5. (2 marks)
Z 2
1
Use a trigonometric substitution to find dx.
0 (4 + x2 )3/2
UNIVERSITY OF NEW SOUTH WALES
SCHOOL OF MATHEMATICS AND STATISTICS
MATH1231/MATH1241 CALCULUS S2 2011
TEST 1 VERSION 1b
This sheet must be filled in and stapled to the front of your answers

Student’s Family Name Initials Student Number

Tutorial Code Tutor’s Name Mark

Note: The use of a calculator is NOT permitted in this test

QUESTIONS (Time allowed: 20 minutes)


1. (2 marks)
dz
Let z = 2x2 + y 2 , and x = t2 , y = 4t3 . Use a chain rule to find as a function of t.
dt
2. (3 marks)
Find a normal vector n and the equation of the tangent plane to the surface

z = x2 y − 2y 2 + 3x

at the point (1, 1, 2)

3. (2 marks)
Z 3
1
Use a trigonometric substitution to find dx.
0 (9 + x2 )3/2

4. (1 mark )
∂z
Let z = ln (x2 + y 2 ). Find .
∂x
5. (2 marks)
∂2z ∂2z
Let z = sin(x + 2y). Show that z satisfies the differential equation 4 − = 0.
∂x2 ∂y 2
UNIVERSITY OF NEW SOUTH WALES
SCHOOL OF MATHEMATICS AND STATISTICS
MATH1231/MATH1241 CALCULUS S2 2011
TEST 1 VERSION 2a
This sheet must be filled in and stapled to the front of your answers

Student’s Family Name Initials Student Number

Tutorial Code Tutor’s Name Mark

Note: The use of a calculator is NOT permitted in this test

QUESTIONS (Time allowed: 20 minutes)


1. (2 marks)
2 y3 ∂z ∂2z
Let z = ex . Find and .
∂x ∂y∂x
2. (4 marks)

x+1
Let z = . The measured values of x and y are 9 cm and 1 cm respectively and each
y+1
of the measurements is made with an error whose absolute value is at most 0.03 cm. Use
the total differential of z to estimate the maximum error in the calculated value of z.

3. (2 marks)
Z π/2
Find sin3 θ cos2 θ dθ.
0

4. (2 marks)
Given that Z Z
1 1
2n
(1 − x2 )n dx = (1 − x2 )n−1 dx
0 2n + 1 0
Z 1
for n ≥ 1, find (1 − x2 )4 dx. [Note that you are NOT being asked to prove the recurrence
0
relation.]
UNIVERSITY OF NEW SOUTH WALES
SCHOOL OF MATHEMATICS AND STATISTICS
MATH1231/MATH1241 CALCULUS S2 2008
TEST 2 VERSION 3b
This sheet must be filled in and stapled to the front of your answers

Student’s Family Name Initials Student Number

Tutorial Code Tutor’s Name Mark

Note: The use of a calculator is NOT permitted in this test

QUESTIONS (Time allowed: 20 minutes)


1. (2 marks)
Solve the differential equation
p p
y 2x2 + 3 dy + x 4 − y 2 dx = 0

given that y = 1 when x = 0.

2. (2 marks)
Find the general solution of
d2 y dy
+ 8 + 16y = 0.
dt2 dt
3. (3 marks)
Z
x R du 1 u
Find 2
dx. [You are given that 2 2
= tan−1 + C for a 6= 0]
x + 2x + 10 u +a a a

4. (3 marks)
Solve
dy
2 − y = ex
dx
given that y = 0 at x = 0.
UNIVERSITY OF NEW SOUTH WALES
SCHOOL OF MATHEMATICS AND STATISTICS
MATH1231/MATH1241 CALCULUS S2 2009
TEST 2 VERSION 3a
This sheet must be filled in and stapled to the front of your answers

Student’s Family Name Initials Student Number

Tutorial Code Tutor’s Name Mark

Note: The use of a calculator is NOT permitted in this test

QUESTIONS (Time allowed: 20 minutes)


1. (3 marks)
Z
x+4
Find dx.
(2x + 1)(x − 3)

2. (3 marks)
Show that the differential equation

(2x + 3y)dx + (3x + 4y)dy = 0

is exact, and find the general solution.

3. (4 marks)

(i) Find the general solution of the equation

d2 y dy
− 7 + 12y = 0
dt2 dt
dy
= 10 at t = 0.
(ii) Find the solution to the equation in part (i) that satisfies y = 3 and
dt
(iii) If the 0 on the right hand side of the equation in part (i) were changed to e3t ,
what form of particular solution would you seek? (Do not evaluate the unknown
coefficients.)
UNIVERSITY OF NEW SOUTH WALES
SCHOOL OF MATHEMATICS AND STATISTICS
MATH1231/MATH1241 CALCULUS S2 2013
TEST 2 VERSION 1a
This sheet must be filled in and stapled to the front of your answers

Student’s Family Name Initials Student Number

Tutorial Code Tutor’s Name Mark

Note: The use of a calculator is NOT permitted in this test

QUESTIONS (Time allowed: 20 minutes)


1. (3 marks)
Z
x−3
Find dx.
(2x − 1)(x + 2)

2. (3 marks)
Show that the differential equation

(y − y sin xy) dx + (x − x sin xy)dy = 0

is exact and find the general solution.

3. (4 marks)

(i) Find the general solution of the equation

d2 y dy
− − 12y = 0.
dt2 dt
dy
= 2 at t = 0.
(ii) Find the solution to the equation in part (i) that satisfies y = 3 and
dt
(iii) If the 0 on the right hand side of the equation in part (i) were changed to e−3t ,
what form of particular solution would you seek? (Do not evaluate the unknown
coefficients.)
UNIVERSITY OF NEW SOUTH WALES
SCHOOL OF MATHEMATICS AND STATISTICS
MATH1231/MATH1241 CALCULUS S2 2013
TEST 2 VERSION 1b
This sheet must be filled in and stapled to the front of your answers

Student’s Family Name Initials Student Number

Tutorial Code Tutor’s Name Mark

Note: The use of a calculator is NOT permitted in this test

QUESTIONS (Time allowed: 20 minutes)


1. (3 marks)
Show that the differential equation

(x + 1)yex dx + (xex + y 2 ey )dy = 0

is exact and find the general solution.

2. (4 marks)

(i) Find the general solution of the equation

d2 y dy
+ − 6y = 0.
dt2 dt
dy
(ii) Find the solution to the equation in part (i) that satisfies y = 1 and = −4 at
dt
t = 0.
(iii) If the 0 on the right hand side of the equation in part (i) were changed to e−3t ,
what form of particular solution would you seek? (Do not evaluate the unknown
coefficients.)

3. (3 marks)
Z
2x + 6
Find dx.
(3x + 1)(x − 1)
UNIVERSITY OF NEW SOUTH WALES
SCHOOL OF MATHEMATICS AND STATISTICS
MATH1231/MATH1241 CALCULUS S2 2013
TEST 2 VERSION 2a
This sheet must be filled in and stapled to the front of your answers

Student’s Family Name Initials Student Number

Tutorial Code Tutor’s Name Mark

Note: The use of a calculator is NOT permitted in this test

QUESTIONS (Time allowed: 20 minutes)


1. (3 marks)
R 1 R du 1 u
Find 2
dx. [You are given that 2 2
= tan−1 + C for a 6= 0]
x + 4x + 8 u +a a a

2. (3 marks)
Show that the differential equation

2e2y dx + (4x − y − 1)e2y dy = 0

is exact and find the general solution.

3. (4 marks)

(i) Find the general solution of the equation

d2 y
+ 4y = 0.
dt2
dy
(ii) Find the solution to the equation in part (i) that satisfies y = 2 and= 6 at t = 0.
dt
(iii) If the 0 on the right hand side of the equation in part (i) were changed to cos 2t,
what form of particular solution would you seek? (Do not evaluate the unknown
coefficients.)
215

c 2018 School of Mathematics and Statistics, UNSW Sydney


216

c 2018 School of Mathematics and Statistics, UNSW Sydney


217

Index

absolutely convergent, 140 implicit solution, 59


alternating series, 136 initial value problem, 60
alternating series test, 136 integrating factor, 65
answers, 195 order, 58
arc length, 178 ordinary, 58
of a catenary, 180 particular solution, 58, 86
of a cycloid, 178 second order, 80
of a polar curve, 182 separable equations, 62
of the graph of a function, 180 solution, 58
Archimedes, 103 differential form, 68
area of the surface of revolution, 187 divergent sequence, 118
average height of a suspended cable, 174 diverges to negative infinity, 118
average value of f , 173
e, 161
bounded monotonic sequence, 123 is irrational, 162
exact differential equations, 68
chain rule(s), 18–21
chain diagram(s), 18, 21 first order linear differential equations, 65
characteristic equation, 81 frustum, 183
classifying stationary points, 114
Gabriel’s horn, 189
second derivative test, 114
general solution, 58
closed form, 151
greatest lower bound, 123
comparison test, 132
Gregory, James, 103
conditionally convergent, 141
growth of sequences, 122
contour, 1
contour lines, 1 harmonic series, 127
convergence and divergence of p-series, 132
convergent sequence, 118 increasing, 123
increment, 15
decreasing sequence, 123 Indian mathematicians, 103
differential approximation to ∆f , 14 infima, 125
differential equations, 57 infimum, 125
applications of, 73 infinite series, 125
exact equations, 68 absolutely convergent, 140
explicit solution, 59 alternating series, 136
general solution, 58 comparison test, 132

c 2018 School of Mathematics and Statistics, UNSW Sydney


218

conditionally convergent, 141 nondecreasing, 123


converges to L, 126 nonincreasing, 123
diverges, 126 normal vector, 11, 13
integral test, 131
kth term test for divergence, 130 open interval of convergence, 148
nth partial sum, 126 order of growth of sequences, 122
p-series, 132
π, 35, 103
ratio test, 134
is irrational, 37
summable, 126
painter’s paradox, 191
tail of the series, 128
partial derivative(s), 8, 21
initial conditions, 60
mixed derivative theorem, 10
initial value problem, 60
of F with respect to x, 6
integral test, 131
of F with respect to y, 6
integrating factor, 65
second order, 9
integration
particular solution, 58, 86
powers of sin and cos, 27
pinching theorem for sequences, 121
by hyperbolic substitutions, 37
population growth, 75
by trigonometric substitutions, 37
multiple angles of sin and cos, 30 power series, 152
of rational functions, 40 closed form of, 151
of trigonometric functions, 27 differentiable, 152
powers of tan and sec, 31 in powers of x, 146
reduction formula, 33 in powers of x − a, 146
irreducible, 41 integrable, 152
open interval of convergence, 148
Lambert, Johann Heinrich, 35 radius of convergence, 148
least upper bound, 123, 124
least upper bound axiom, 124 radius of convergence, 148
Leibniz, 136 ratio test, 134
length of a curve, 176 rational function(s), 40
level curve, 1 distinct linear factors, 43
limit of sequence, 118 improper, 40
linear combination, 80 irreducible, 40
logistic curve, 79 irreducible quadratic factor, 44
lower bound, 123 partial fractions decomposition, 41, 43
proper, 40
Maclaurin series for f , 142 repeated irreducible quadratic factor, 45
Malthus, Thomas, 76 repeated linear factor, 43
mathematical model, 73 rearrangement of a series, 141
mean value theorem for integrals, 161, 175 reduction formula, 33
Millennium problems, 80 remainder term, 111
monotonic, 123 Lagrange formula, 112
resonance, 88
Navier–Stokes equations, 80 Riemann sum, 173
Newton’s law of cooling, 63 right circular cone, 183
non-homogeneous differential equations, 84,
86 second derivative test, 114

c 2018 School of Mathematics and Statistics, UNSW Sydney


219

second order linear differential equations summable, 126


characteristic equation, 81 suprema, 125
homogeneous equations, 80 supremum, 125
linearly independent solutions, 81 surface of revolution, 184
non-homogeneous equations, 84 suspended cable, 171
particular solution, 58, 86
tail of the series, 128
resonance, 88
tangent plane(s), 11, 13, 21
with constant coefficients, 80
Taylor polynomial
separable differential equations, 62
about a, 107
sequence(s), 117
for f about a, 108
bounded monotonic, 123
of degree n, 106
boundedly divergent, 118 Taylor series
convergent, 118 converges on I, 142
decreasing, 123 converges to f on I, 142
definition of limit, 118 diverges on I, 142
divergent, 118 for f about a, 142
diverges to −∞, 118 function represented by, 144
diverges to ∞, 118 Taylor’s theorem, 112
greatest lower bound, 123 remainder term, 111
infimum, 125 Lagrange formula, 112
least upper bound, 123 Taylor, Brook, 103
lower bound, 123 Torricelli’s trumpet, 190
nth term of, 117 Torricelli, Evangelista, 190
order of growth, 122 total differential, 14
pinching theorem, 121 approximation ∆F , 21
supremum, 125 approximation to ∆F , 15
unboundedly divergent, 118 use with measurement errors, 16
upper bound, 123
series, see infinite series upper bound, 123
simple curve, 184 Verhulst, Pierre, 79
sine integral Si(x), 168
speed v(t) of, 183 Wallis’ product, 53

c 2018 School of Mathematics and Statistics, UNSW Sydney

You might also like