Mathematical Techniques An Introduction For The Engineering, PH PDF
Mathematical Techniques An Introduction For The Engineering, PH PDF
TECHNIQUES
An introduction for the engineering,
physical, and mathematical sciences
SECOND EDITION
34 Sets 605
PART VI 35 Boolean algebra: logic gates and switching functions 615
36 Graph theory and its applications 626
Discrete mathematics
37 Difference equations 648
38 Probabilty 666
PART VII 39 Random variables and probability distributions 683
40 Descriptive statistics 701
Probability and statistics
Index 779
Mathematical Techniques
Mathematical
Techniques
An Introduction for the Engineering,
Physical, and Mathematical Sciences
Second edition
This book is sold subject to the condition that it shall not, by way of trade or
otherwise, be lent, re-sold, hired out, or otherwise circulated without the publisher's
prior consent in any form of binding or cover other than that in which it is published
and without a similar condition including this condition being imposed on the subsequent
purchaser.
A catalogue record for this book is available from the British Library
previous encounter with the subject; if so, the text can be used for
revision as well as extension of various topics. Most of the chapters
are short (the average length is about 18 pages), and the sections
within the chapters include not more than one or two new ideas.
All the principal results are displayed in summary form in numbered
and shaded ‘boxes’. For revision purposes, or in desperate cases,
progress could be made by attending only to the boxes.
The reader is encouraged to look out for some kind of geometrical
or numerical reality to illustrate symbolic statements. Where poss¬
ible we make use of graphical justifications; science students in
particular should benefit by cultivating geometrical reasoning.
Numerical methods for equation-solving, integration, and the solu¬
tion of differential equations and systems are introduced at the
points where they can effectively illustrate the main text, rather than
being collected together in a separate chapter on numerical analysis.
Attempts to generate interest by using specialized examples from
physics, chemistry, engineering, etc., are liable to misfire with many
students, who have enough to do at first in grasping the underlying
mathematical processes, and are confused by layers of scientific
vocabulary and unfamiliar notations. We have therefore taken out
into separate chapters certain technical applications such as the
harmonic oscillator, phasors, and circuit analysis, and given these
topics a fuller treatment. Certain other applications are confined to
separate sections, so that they can be avoided if they do not suit a
particular class. Most of the applications in the main text are drawn
from common knowledge, or are such as can easily be understood.
The last chapter contains a collection of projects to introduce the
use of symbolic computation and graphics manipulation, following
the text chapter by chapter. A short first-year course at Keele
University introducing mathematics students to Mathematical soft¬
ware has proved successful with students who often have no previous
experience of computing. Symbolic computation is a useful inter¬
active facility for graph plotting and routine manipulations in, for
example, linear algebra, differentiation, and integration, although it
is no substitute for understanding methods and principles. Almost
all the graphs of curves and surfaces in this book have their origins
in Mathematica graphical outputs. Specific Mathematica programs
which provide solutions for these projects are available on the
web or on disk (see p. 716). Mostly they incorporate standard
Mathematica commands, and they are readily adaptable to a
variety of alternative inputs for specific functions, matrices, vectors,
determinants, Fourier series, Laplace transforms, etc.
There are nearly 500 fully-worked examples in the book, a large
number of exercises and problems including simple programming
applications, over 120 projects for symbolic computation, and
Keele D.W.J.
March 1997 P.S.
'
Contents
1 Standard functions and techniques
PART I
1.1 Number line, intervals 1
Elementary methods, 1.2 Coordinates in the plane 2
1.3 Straight lines and curves, 3
differentiation,
1.4 Functions 6
complex numbers 1.5 Radian measure of angles 8
1.6 Trigonometric functions 9
1.7 Inverse functions 12
1.8 Exponential functions 14
1.9 The logarithmic function 15
1.10 Exponential growth and decay 17
1.11 Hyperbolic functions 18
1.12 Partial fractions 20
1.13 Summation sign; geometric series 24
Problems 26
2 Differentiation
2.1 The slope of a graph 30
2.2 The derivative: notation and definition 32
2.3 Rates of change 34
2.4 Derivative of x" (n = 0, 1, 2, 3,...) 36
2.5 Derivatives of sums: multiplication by constants 37
2.6 Three important limits 39
2.7 Derivatives of e*, sin x, cos x, In x 41
2.8 A basic table of derivatives 43
2.9 Higher-order derivatives 44
2.10 An interpretation of the second derivative 44
Problems 45
4 Applications of differentiation
4.1 Function notation for derivatives 64
4.2 Maxima and minima 66
4.3 Exceptional cases of maxima and minima 69
4.4 Sketching graphs of functions 70
4.5 Estimating small changes 75
4.6 Numerical solution of equations: Newton’s method 77
Problems 81
6 Complex numbers
6.1 Definitions and rules 96
6.2 The Argand diagram and complex numbers 100
6.3 Complex numbers in polar coordinates 102
6.4 Complex numbers in exponential form 103
6.5 The general exponential form 105
6.6 Hyperbolic functions 107
6.7 Miscellaneous applications 108
Problems 109
7 Matrix algebra
PART II
7.1 Matrix definition and notation 112
Matrix algebra 7.2 Rules of matrix algebra 113
7.3 Special matrices 118
and vectors
7.4 The inverse matrix 122
Problems 126
8 Determinants
8.1 The determinant of a square matrix 129
8.2 Properties of determinants 132
8.3 The adjoint and inverse matrices 137
Problems 139
12 Linear equations
12.1 Solution of linear equations by elimination 196
12.2 The inverse matrix by Gaussian elimination 201
12.3 Compatible and incompatible sets of equations 202
12.4 Homogeneous sets of equations 205
12.5 Gauss-Seidel iterative method of solution 208
Problems 210
31 Double integration
31.1 Repeated integrals with constant limits 543
31.2 Examples leading to repeated integrals with constant limits 544
31.3 Repeated integrals over nonrectangular regions 546
31.4 Changing the order of integration for nonrectangular regions 548
31.5 Double integrals 550
31.6 Polar coordinates 553
31.7 Separable integrals 555
31.8 General change of variable; the Jacobian determinant 557
Problems 561
xvi Contents
32 Line integrals
32.1 Illustrating a line integral 564
32.2 General line integrals in two and three dimensions 567
32.3 Paths parallel to the axes 570
32.4 Path independence and perfect differentials 571
32.5 Closed paths 572
32.6 Green’s theorem 574
32.7 Line integrals and work 576
32.8 Conservative fields 578
32.9 Potential for a conservative field 580
32.10 Single-valuedness of potentials 581
Problems 584
34 Sets
PART VI
34.1 Notation 605
Discrete 34.2 Equality, union, and intersection 606
mathematics 34.3 Venn diagrams 608
Problems 612
37 Difference equations
37.1 Discrete variables 648
37.2 Difference equations: general properties 650
37.3 First-order difference equations and the cobweb 652
37.4 Constant-coefficient linear difference equations 653
37.5 The logistic difference equation 658
Problems 662
38 Probability
PART VII
38.1 Introduction 666
Probability and 38.2 Sample spaces, events and probability 667
38.3 Sets and probability 669
statistics
38.4 Counting and combinations 673
38.5 Conditional probability 675
38.6 Independent events <577
38.7 Total probability 678
38.8 Bayes’ theorem 679
Problems 680
40 Descriptive statistics
40.1 Representing data 701
40.2 Random samples and sampling distributions 705
40.3 Sample mean and variance, and their estimation 707
40.4 Central limit theorem 708
40.5 Regression 710
Problems 713
Projects
41.2 Projects 716
xviii Contents
Appendices
A Some algebraical rules 767
B Trigonometric formulae 769
C Areas and volumes 770
D A table of derivatives 771
E A table of integrals 772
F A table of Laplace transforms, inverses and general rules 773
G A table of Fourier transforms and general rules 774
H Probability distributions and tables 776
Index 779
PART I ELEMENTARY METHODS,
DIFFERENTIATION,
COMPLEX NUMBERS
Standard functions
and techniques
Contents
1.1 Number line, intervals 1
1.2 Coordinates in the plane 2
1.3 Straight lines and curves 3
1.4 Functions 6
1.5 Radian measure of angles 8
1.6 Trigonometric functions 9
1.7 Inverse functions 12
1.8 Exponential functions 14
1.9 The logarithmic function 15
1.10 Exponential growth and decay 17
1.11 Hyperbolic functions 18
1.12 Partial fractions 20
1.13 Summation sign; geometric series 24
Problems 26
theorem,
OP = J(OU2 + UP2),
where U is the base of the perpendicular from P onto the x axis
(Fig. 1.2b). If we put OP = r, then
r = yj(x2 + y2). (1.2)
Note that distances, such as OP and r, are always non-negative
numbers.
Similarly, for any two points Pl:(xl,y1) and in the
plane, the distance PXP2 between them - see Fig. 1.2b-is given by
X -3 -2 -1 0 1 2 3
y -27 -8 -1 0 1 8 27
We then plot the points corresponding to this set of coordinates and draw a
smooth curve through them, as shown in Fig. 1.3. The greater the number of
values of x in the interval, the greater is the reliability of the graph. It is assumed
that the curve has smooth or regular behaviour between consecutive plotted
points.
Example 1.2. Find the equation of the straight line through the points A: (1, 2)
and B:(-1, -1).
The line is shown in Fig. 1.4. Let P: (x, y) be any point on the line. The triangles
ABR and PBQ are similar, so that
PQ _y+ 1 _ AR _ 3
QB ~ x + 1 ~ RB~ 2’
Therefore
PQ _ BR
AQ ~ AR ’
or
y-yi = y2 - yi (1.4)
X — Xj x2 — xt
y2 -y 1 *2?! ~ *1^2
m (1.5)
X2 - Xj x2 - Xj
\
In the right-angled triangle ABR of Fig. 1.5, the angle a is given by
t y2-yi n
tan a =-, (1.6)
*2 - *1
y-yi n
-= m. (1.8)
x — xj
x2 - x = (x - I)2 - i
(this process is used in many different contexts and is called completing the
square). Treat the terms in y similarly:
y2 + 2y = (y+ l)2- 1.
(x-i)2-i + (y + I)2 - 1 =
or
(x-!)2 + (y + l)2 = 4.
1.4 Functions
The area A of a circle depends on its radius r, and the dependence
is expressed in the formula A = nr2. In general, suppose that the
values of a certain independent variable x, say, determine values
of a dependent variable y in such a way that if a numerical value
of x is given, a single value of y is determined. Then we say that y
is a function of x, and write for example,
y = f(x), y = g(x),
and so on, where the letter /, g, etc. can be used to distinguish
different forms of dependence, which can be thought of pictorially
in terms of different graphs. The letter /, g, and so on, standing
alone, need not be associated with a formula in the usual sense. They
can stand for any rule, programme, or calculation process which
produces a definite single value for y when we offer a number x to
it. A function can be thought of as an input-output device as in
Fig. 1.9.
Functions can also be defined implicitly by means of formulae.
For example
x2 + y2 = 1
Fig. 1.8 (a) An ellipse
x2/a2 + y2/b2 = 1. represents a circle, centre the origin and radius 1. But if we sort out
(b) A hyperbola y from the relation we obtain y = +(1 — x2)\ which is not a single
x2/a2 — y2/b2 = 1. function, but two separate, single-valued, functions:
(c) A parabola y2 = x.
y = (1 — x2)* and y = — (1 — x2)%
representing the upper and lower semicircles respectively.
The following result is frequently required. Suppose that c is a
positive constant, and that we are given a function /, with graph
Input x Processor Output y
y = fix). The graph y — f(x — c) is exactly the same as that of fix),
X
/ y=f(x)
except that it is moved, or translated a distance c to the right along
the x axis. There is a similar result for /(x + c), the movement being
Fig. 1.9
to the left. Therefore
Thus y = x2 and y = (x + 2)2 have the same shape, but the second
is a distance 2 to the left of the first. In an expression such as fix + c)
the part in the brackets is called the argument of /.
1.4 Standard functions and techniques 7
when t < 0,
H(t) = (1.13)
when t ^ 0;
-1 when t < 0,
1 when t > 0;
(a) (c)
O -1 O
1 --1
1.5
For
still
360
desirable. The absolute unit is the radian, which represents about
57°. The special property which makes the unit valuable is its
connection with length. Figure 1.13 shows a circle of radius R with
a sector AOB containing an angle 9. The length of the arc AB is
obviously proportional to R, and it is proportional to 9 whatever
the angular units, so it is proportional to the product R9. One radian
is the unit of angle such that AB is numerically equal to R9.
Then if 9 is measured in radians
AB = R9.
AB = 2nR.
Therefore the radian measure of angle for the whole circle must be
9 = 2k.
360 ’ = 2n radians,
or 1 radian = 180/tt degrees (57.29578 ..,°).
/J radians = degrees,
(1.14)
360° = 2k rad, 180° = n rad, 90° = \k rad,
45° = In rad, 60° = ^7t rad, 30° = gjtrad.
(b) The arc-length on a circle of radius R subtended
by 8 radians is R0.
AOP = 8, OP = r > 0.
x . „ y „ sin 0 v
cos 8 = -, sin 8 = -, tan 8 =-= -,
r r cos 8 x
(1.15)
(where r > 0).
sec 8 = 1/cos 8, cosec 8 = 1/sin 8, cot 8 = 1/tan 8.
Example 1.5. Obtain (a) sin (b) tan (c) cos In. (The angles are in
radians.)
From (1.14) we obtain the values of the angles in degrees. Use the familiar
triangles in Fig. 1.15.
(a) sin fn = sin 60° = J3/2. (b) tan = tan 30° = 1/^3. (c) cos jti = cos 45° =
i/ V2-
Example 1.6. Obtain (a) cos 2n, (b) sin §7t, (c) sin( — fjc).
Fig. 1.15
From Fig. 1.16, and eqn (1.15):
(a) sin 45° = cos 45° = 1/^/2.
(b) sin 60 = cos 30° = ^3/2. (a) P is (r. 0), so cos 2n = x/r = r/r = 1;
cos 60° = sin 30° = 1 /2. (b) P is (0, — r), so sin |ti = y/r = — 1;
(c) P is (-r/yj2, —r/yj2), so sin(-|tr) = y/r = -1 /J2.
The graphs y = cos x and y = sin x are shown in Fig. 1.17. The
following points should be noticed.
5rei !ni
also Section 20.1).
3. y = cos x is symmetrical (or even) about the y axis; y = sin x is
_
(c)
X \ X Trigonometric identities
Graphs of tan x, cot x, sec x, and esc x are shown in Fig. 1.18.
A function of the form
c cos(cox + <p),
Fig. 1.18 (a) y = tan x.
(b) y = cot x. (c) y = sec x. where c, to (Greek omega), and 0 (Greek phi) are constants, is called
(d) y = esc x. a harmonic function or a sinusoidal function. It includes sine
functions, by virtue of (1.17). Any function of the form
a cos cox + b sin cox
can be put into this form. Numbers c and (p can be found graphically
by plotting the point P : (a, b) in cartesian coordinates as in Fig.
1.19. Let c = (a2 + b2y > 0 be its distance from 0, and choose cp as
minus the polar angle 9: <p = —9. Then
a cos cox + b sin cox = c cos( — (p) cos cox + c sin( — (p) sin cox
= c cos <p cos ox — c sin </> sin cox
= c cos(cox + (p),
after using (1.18a). Therefore we have the following result.
12 1.6 Mathematical techniques
An important identity
a cos cox + b sin cox = c cos(a»x + (fr),
where the point (a, b) has polar coordinates r, 0, and
c = r (>0) and cp = —9.
f{x + p) = f{x)
i-1
shown in Fig. 1.21c: the appropriate axis is the 45° line y = x, since
the x and y scales are the same. The resulting graph is the graph of
the inverse function of y = x3, namely y = xK In the end we have
simply reflected the graph in the line y = x to obtain the graph
of the inverse, as shown in Fig. 1.21c. (By the same token, the inverse
function for y = x* is y = x3).
Back to Fig. 1.21a, follow the sequence of operations indicated
by the path ABCBA from the point A : (a, 0). In following ABC we
find a3 at C, then on CBA we find its cube root, and are back to a
again; algebraically
(a3f = a;
and similarly
((F)3 = b
y = sin x.
The inverse function would answer the question: what angle has its
sine equal to x? Evidently — 1 ^ x ^ 1, or there is no such angle.
Moreover if — 1 ^ x ^ 1, then there is an infinite number of angles,
not just one (for example, sin gjt = but sin -g3n and sin §k also
equal j). The universal convention in use for tables, computers and
calculators is to offer only the smallest angle in magnitude, positive
or negative. This is done by restricting the angle to the range — jn
to 571 (in radians). The resulting function inverse to y = sin x is
denoted by arcsin (the notation sin-1 is also widely used):
way (with a different range for cos .x) so as to make the inverse
functions single-valued.
The various inverse functions are connected, as in the following
example.
so that
arcsin(cos x) = — x.
NQ ex + h - ex
— - t- .
PN h
which is equivalent to
e se (1 + h)1/h.
e = 2.7182818 ....
y = cx or y = exp(x)
X -9 -6 -3 0 3 6 9
ex 1.25 x 10-4 2.5 x 10^3 5.0x 10~2 1 2.0x10* 4.0 xlO2 8.1 xlO3
ey = x.
16 1.9 Mathematical techniques
ev = 3
y = In 3.
Fig. 1.27
In 1 = 0, In e = 1; (1.22)
In ab = In a + In b. In - = In a — In b. (1.23)
b
(To obtain the second result, use the result (a/b)b = a.)
From (1.21), elna = a; so, if m is any number, then
am = eln(am)
In am = m In a. (1-24)
or
y _ e31nx e2 _ ^glnx^3
or
There exist logarithms using bases other than e, which have occa¬
sional use. Their properties are analogous to those involving e.
ecT = 2.
Therefore cT = In 2, or
T= - In 2.
c
(1.25)
y = A ec' doubles in every interval of length T=- In 2.
18 1.10 Mathematical techniques
Example 1.11. The number N of scientists and engineers in the U.S.A. doubled
every 10 years between 1900 and 1935, and in 1935 they numbered about 1.5 x 105.
This suggests exponential growth N = A ec'. Find c, and predict the number N for
1990 on the assumption that the trend continued.
Suppose that we count 1900 as t = 0. The doubling period is 10 years; so
N = A ec', where, by (1.25),
c = ^012 = 0.0693.
Thus
N = A e0 0693'.
or A = 13265.
Therefore
N = 13265 e0 0693'.
N = 6.8 x 106.
y = Ae~ct = A/ect,
Hyperbolic functions
Since
sinh x cosh x
tanh x =-, coth x =-,
cosh x sinh x
(1.27)
Graphs of tanh x, coth x, sech x, and cosech x are shown in Fig. 1.29.
From the definitions, a number of identities follow which parallel
those for trigonometric functions but with important sign differences.
Some are derived below.
For (a):
For (b):
e2y — 2x e^ + 1 = 0,
x2 + 2 = — 3x,
x2 + 3x + 2 = (x + l)(x + 2)
1.12 Standard functions and techniques 21
_ 1 _si_J 1
(i)
X2 — 1 X — 1 2X+l’
(ii)
* _ 1 1 , 1 1
4x2 — 1 4 2x — 1 4 2x + 1 ’
3x + 2 _ 1 2 1
(iii)
x2(x +1) X x2 X + 1 ’
The terms on the right are individually simpler than the function
on the left. This break-up into simpler constituents is useful for many
purposes. In this section, we show how to break up a complicated
function into simpler terms of the type above.
A rational function is a function which takes the form
/(x) = P(x)/Q(x),
P(x) is involved in these rules only to the extent that it will affect
the values of the coefficients K etc. The following examples show
how to determine the values of the coefficients.
x = 1 gives 1 = 3A + 0, so A =\.
x
A 13 23
- a —
(x — 1 )(x + 2) x — 1 x + 2
3x - 1 A B C
x = 1 gives 2 = 0 + 0 + 3C, so C = §,
x = —2 gives — f = %A + 0 + 0, so A = —^,
x = 0 gives — 1 = A — B + C, so B=l+ + + C = g.
Finally,
_3x-l s_10 1 1 1
(2x + l)(x — l)2 tr2x+l 9x-l 7(x-l)2'
1 A Bx+C
-i-b —,-•
x(x2 +1) X x2 + 1
Then x = 0 gives 1 = + + 0, so
A = 1.
There are no other very easy values of x to choose. Put the value of A just
found into (i) and rearrange: we get
— x = Bx + C. (ii)
B = —1 and C = 0.
Therefore
1 _ 1 x
x(x2 +1) X x2 + 1
Example 1.1 5. Put (x3 + l)/x(x — 1) into the form of a polynomial plus partial
fractions.
Carry out polynomial division, until the remainder is of lower degree than the
divisor:
x + 1
x2 - x |x3 + 1
subtract x3 — x2
x2 + 1
subtract x2 — x
remainder x + 1
Therefore
x3 + 1 x + 1
- = X + 1 +
x(x — 1) x(x — 1)
24 1.12 Mathematical techniques
The last term is of the right type for partial fractions, and finally
x3 + 1 1 2
- = x + 1-h-•
x(x - 1) X x - 1
ui + t<2 T a3 + W4 + + ttg
is denoted by
6
I u„,
n= 1
1, x, x2, x3,...,
S = \ + x + x2 + ■■■ + xN~1 + xN
Then
xS = x + x2 + x3 + • • • + xN + xN+1.
Subtract the second line from the first. All the terms cancel except
for two; we obtain
4 6 1 N
Example 1.1 6. Find the following sums, (a) £ (0.1)", (b) £ —. (c) X e"X’
n—0 n = 0 2" n—0
1—(0.1)’=099999 =
1 — (0.1) 0.9
(as becomes obvious if you write out the terms individually).
1 — l1!7
c_
^
'2' _2(1—
1
-J—1
128/
=m
64 •
* 2
(c) e"x = (e-*)", so the common ratio is ex, in place of x in (1.32):
l_(e*yv+1 i_e(v+i)x
S=
1 — ex —e
(d) Here x = — 1, so
1 -(- 1)N+1
S ^-- = |[l-(-l)/v + 1].
1 -(-1)
26 1.13 Mathematical techniques
1 + 2 + 22 + 23 + 24 + 25 = 1 ~ -- = 63.
1 -2
The bracket contains a series of type (1.32), with common ratio r3 and with the
number of terms N + 1 equal to 5: therefore N = 4. We have
1 — (r3)5 2l~r15
S = ar-= ar -.
1 - (r3) 1 - r3
4
Problems
1.1. (Section 1.3). Sketch graphs of the following equa¬ 1.5. Show that the following pairs of lines are mutually
tions over the intervals stated: perpendicular:
(a) y = X4, -1.5 <x < 1; (a) 2x + 3y — 2 = 0 and — 3x + 2y — 3 = 0;
(b) y = x(l — x), — 1 ^ x ^ 2; (b) y = 2x + 1 and y = 2(3 — x);
(c) y = 1 + x + x2, \x - 1| ^ 2; (c) y = 2x and y = —\x\ (d) y = +x.
(d) y = \x — 1|, -3 x < 3;
(e) y = |x| + |x - 3| + |x + 2|, — 3 ^ x ^ 4;
(f) v = IM - 11, -2 x ^ 2;
1.6. (Straight line, Section 1.3). Show that the equation
(g) y = V(x2+ 1), |x|<2. (x + >’ + 1) + oc(2x - 3y - 2) = 0,
where a is a constant, represents a straight line through
1.2. (Straight lines, Section 1.3). Find the straight lines
the intersection of x + y + l= 0 and 2x — 3y — 2 = 0.
through the following pairs of points:
Find the line joining this point with the point (1, 1).
(a) (1,1), (-1,5); (b) (0,1), (2,1); (c) (2,1), (-1, - 1).
Sketch the triangle formed by these lines. Find the
lengths of each side of the triangle. 1.7. (Circles, Section 1.3). Find the centre and radius
for each of the following circles:
1.3. (Straight line, Section 1.3). What are the slopes (a) x2 + y2 = 9; (b) (x — l)2 + y2 = 4;
of the following straight lines, and where do they cut (c) x2 + y2 — 2x — 2y — 21 = 0;
the coordinate axes? (d) 4x2 - 4x + 4y2 + 4y = 9.
(a) y = x — 1; (b) 3y = x — 2; (c) 2x + 5y = 4.
1.8. (Circles, Section 1.3). Find the equation of the circle
1.4. (Straight line. Section 1.3). Find the equations of
centred at (1, —2) with radius 3.
the following straight lines:
(a) passing through (1, 2) inclined at 45° to the x-axis;
(b) passing through (—1, —2) with slope —2; 1.9. Find the points of intersection of the following
(c) with slope 0.5 and x axis intercept x = 1; circles and lines:
(d) through (1,2) parallel to the line y = 3x — 4; (a) x2 + y2 = 8 with x = 2;
(e) through ( — 1,3) perpendicular to the line (b) x2 + y2 — 2x + 2_v — 4 = 0 and y — 2x + 1;
y — 4x — 1. (c) x2 + y2 = 1 and x + y = Jl.
Standard functions and techniques 27
1.10. The following table contains experimental data: to express the following in terms of the cos and sin
X 1.06 0.84 0.72 0.44 0.23 of i(* + y) and §(x - y):
0 0.53 0.71 (a) cos x + cos y; (b) sin x — sin y; (c) cos x — cos y.
y 0.78 1.1
The hypothesis is that the points should lie on a circle
1.18. State where the graphs of the following functions
centre at the origin in the (x, y) plane. Find the distance
cross the x-axis:
of each point from the origin. Calculate the average of
(a) sin x; (b) cos x; (c) sin \x\ (d) cos 3nx;
these values, and write down the equation of the circle
(e) cos(2x — §7t); (f) e~* sin froc.
approximation.
'0 (r < — 1), 1.21. Sketch a graph of the function inverse to the
function x3 — x + 1. (There is no need to try to solve
(a) /(f) = 1 (-1 < f < 2), the equation x3 — x + 1 = y for x.)
10 (t > 2);
1.22. (Sections 1.8, 1.9). Solve the following equations
0 (f < 0),
for x:
(b) m =
2t (f > 0); (a) e2x = 3; (b) In 3x = 2;
(c) In x-5 = 1; (d) 3 e3x = 1;
0 (f < 0),
(e) ex + e~* = 2 (hint: multiply through by ex first);
r (0 < t < 1), (f) eln2x = 4; (g) In e2x + 3 In e5x = 2;
(h) ln(x + 1) + ln(x — 1) = 0;
(c) /(f) = { 1 (1 < f < 2), (i) ln(x + 1) + ln(x — 1) = e;
(j) 2X = 3; (k) 32x = j;
—t + 3 (2 < f < 3),
(1) sinh 2x = 4; (m) 2 sinh x = 2 cosh x + 3.
0 (f > 3).
1.23. Express 2X as a power of e.
1.13. (Section 1.5). What are the radian measures of
the following angles: (a) 30°, (b) 100°? 1.24. (Section 1.10). Prove that 10x doubles its value
in any interval of length equal to
1.14. (Trigonometric functions, Section 1.6). Using the In 2
methods of Examples 1.5 and 1.6, obtain
In 10‘
(a) sin In- (b) sin \n\ (c) sin 7r;
(d) sin( —j7t); (e) cos ^n- (f) cos §7t.
1.25. Sketch regions in the (x, y) plane defined by the
following inequalities:
1.15. (Trigonometric functions, Section 1.6). Use
(a) (x - l)2 + y2 ^ 9;
(1.18c) to show that
(b) x ^ 0, y ^ 0 and x + y ^ 1;
(a) cos4 A = f(3 + 4 cos 2A + cos 4/1);
(b) sin4 A = |(3 - 4 cos 2A + cos 4A).
1.16. (Trigonometric functions. Section 1.6). Use (1.18) (d) x2 + y2 ^ 1 and x > 0; (e) |x| + |y| ^ 1
to express the following in terms of sin x and cos x:
(a) cos(x + frr); (b) sin(x + ^Tt); (c) sin(x - \n)\ 1.26. Prove that sinfD1 x = ln[x + -J(x2 + 1)].
(d) cos(x ± 7t); (e) sin(x ± n).
1.27. Figure 1.30 shows a cross-section of a simple
1.17. (trigonometric functions, Section 1.6). Use (1.18) model of a piston and crankshaft. The crankshaft rotates
28 Mathematical techniques
at 4000 rpm (revolutions per minute). If AB = 2.5 and (b) the folium r = (4 sin2 0 - 1) cos 0;
BC = 5 (in cm), show that the displacement AC is given (c) the four-leaved rose r = sin 20;
by (d) the Archimedean spiral r = 0.040 (extend the in¬
terval in 0 to [0, 6tc]);
AC = 2.5[sin cot + y/(4 — cos2 cut)]
(e) the equiangular spiral r = O.le019 (extend the inter¬
(in cm), where t is measured from 0 = 0, and state co in val in 0 to [0, 6jt]).
radians per second.
1.32. Sketch the graphs of the following functions:
(a) sgn sin x; (b) sgn cos 2x; (c) H(x) sin x;
(d) sin2 x; (e) |sin x|; (f) sin|x|; (g) H(x - n) sin x.
1.30. A yacht, which has a draught of 2 metres, is 1.37. (Partial fractions, Section 1.11). In the following
anchored in a tidal estuary, in which the depth of problems with irreducible factors, express the functions
water around the yacht is in partial fractions:
5 4- 4.5 sin 0.5t 1 x
(a) -; (b) -;
(in metres), where the time f is measured in hours. What x(x2 + x + 1) (x — l)(x2 + 1)
is the tidal period in hours? Over how many hours in x
one period can the yacht float free of the estuary? (C) ---.
(x + l)(x2 + 2x + 6)
1.31. Draw sketches of the graphs of the following curves 1.38. Express the following in partial fractions:
given in polar coordinates, by constructing a table of
values of r for equally spaced angles (say 15° intervals): 1 x3
(a) r-i (b) -;
(a) the cardioid r = 0.5(1 + cos 0); x2(x~ + 1) (x + l)(x + 2)
Standard functions and techniques 29
Contents
2.1 The slope of a graph 30
2.2 The derivative: notation and definition 32
2.3 Rates of change 34
2.4 Derivative of x"(n = 0, 1, 2, 3,. ..) 36
2.5 Derivatives of sums: multiplication by constants 37
2.6 Three important limits 39
2.7 Derivatives of ex, sin x, cos x, In x 41
2.8 A basic table of derivatives 43
2.9 Higher-order derivatives 44
2.10 An interpretation of the second derivative 44
Problems 45
P2 - >T
tan a = (2.1)
x, - x.
(see (1.6)). The value of tana remains the same whether Q is
to the right or left of P, since the value of the fraction on the
Fig. 2.1
right is unchanged. The angle a itself will differ in the two cases by
an amount equal to n (or 180°), but this does not affect the value
of tan a. (If we refer to a itself to indicate the steepness of a line, we
choose the value that lies between ±90°, but normally we only need
tan a). Notice that if the x and y scales differed, the angle a as
depicted would not satisfy (2.1); it would be too great or too small.
The slope or gradient of a straight line is defined to be the
quantity tan a. If the line is horizontal, tan a is zero. It is positive
or negative according as the line slopes upwards or downwards as
we go from left to right. It increases or decreases as the inclination
increases or decreases, becoming +oo when a = ±90°.
Consider now the slope or gradient of a curve at a point.
Figure 2.2a shows a typical curve. By the slope of the curve at
the point P we mean the slope of the tangent line to the curve
at P. We can think of the tangent line as the line joining two points
on the curve which are ‘infinitely close together’; but it is no use
making P and Q coincide, since we simply get tan a = 0/0, which
has no definite meaning. It is necessary to carry out an indirect
process.
2.1 Differentiation 31
(a) Let P be the fixed point (see Fig. 2.2b). Take any other point Q
on the curve and join PQ by a straight line, called the chord PQ.
If Q is some distance from P, then the slope of PQ will not be close
to that of PT; but if we take a succession of points Q closer
and closer to P, then the slope of the chord PQ can be made as
close as we wish to that of PT. The points Q that we consider are
said to approach P. The corresponding value of the slope of PQ
then approaches a limit or a limiting value, and this is equal to
the slope of the curve at P. We use the sign —> to signify ‘approaches’;
so we can write:
fix
fiv
slope of PQ = —. (2.4)
fix
(j+5x. | +5y) Example 2.1. Find the slope of the curve y = x2 at the point F : (3, 9) on
the curve (Fig. 2.4).
At P, we have x = j and y = f We shall make a table of values of 8y/8x for
diminishing values of 5x; that is, for points Q which are approaching P (from
either side). We first need to express 8y in terms of 8x:
O ^+5;c x
3 by = (y at Q) - (y at P) = (i + 5x)2 - (|)2
1
Fig. 2.4 = (9 + I 8x + 5x2) — 9 = § 8x + 8x2. (2.5)
32 2.1 Mathematical techniques
Q to the left of P:
5y f 5x + 5.x2 2
— = -= f + 5.x
5.x 8x
Therefore
the process:
Limit notation
lim —.
Sx->o 8x
Read this as ‘The limit, or the limiting value, of 8y/Sx as 8x -> O’.
(The lim sign is used in many other contexts too.)
The result of the process lim6jc_0 8y/8x, where 8y = /(x + Sx) —
fix), is called the derivative of y with respect to x, or the derivative
of /(x). The process is called differentiation. We worked out earlier
that, if y = /(x) = x2, then the derivative is equal to 2x. The
following notations are standard short ways of indicating a derivative:
dy d fix) 8y
or — /(x) signify lim
dx ’ dx dx 8x
dy d/(x) d df
—, -, — fix) or —
dx dx dx dx
means the result of taking the limit of 8y/8x as Sx -> 0:
lim —.
dx §jc-*o 8x
(b) The slope m of a curve at any point (x0, y0) is (2.8)
given by
y -
x - x0 X-XQ
34 2.2 Mathematical techniques
dy d(x2)
or or
dx dx
d
dx
Dx2 = 2x.
x = fit).
The smaller that 8f is, the more nearly will this ratio approximate
to the instantaneous velocity v at time t. Therefore, let 8f -> 0; using
2.3 Differentiation 35
5x
v = hm —,
8r-»0 bt
or alternatively, by (2.8),
dx
v = —.
dt
x = t2.
Equation (2.6) says in effect that
if y = x2 then — = 2.x,
dx
, dx
if x = t then — = 2f.
dr
Therefore the velocity is
v = 21.
dv
a — —.
df
Example 2.2. Find the rate of change of the area of a circle with respect to its
radius.
Call the radius r and the area A. The rate of change of A with respect to r is
dA 5A
-- or hm —.
dr 6r-*o 5r
Therefore
5A
= n[2r + 5r].
8r
d/1 .. 5/1
— = lim — = 2nr.
dr 8r-o 5r
This result could have been obtained by using our previous result
d(f2)
= 2t.
dt
^ = 0.
dx
(2.9)
(b) If y = x", where n = 1, 2, 3,..., then
dy
— = nx"n- 1 .
dx
dy 5y 1
— = lim — = lim — {(x + 8x)" - x"}.
dx 8x~*0 OX 8x-*0
a — b = (x + 8x) — x = 8x.
2.4 Differentiation 37
5v 1
—^ = —(8x)[(x + 5x)"_1 + (x + Sx)"_2x + • • • + x"-1]
ox Sx
= (x + 8x)"_1 + (x + 8x)"_2x + • • ■ + x"_1
dv 8y
— = ltm ' = x" 1 + x" 1 + • ■ ■ + x" 1.
dx 8x->o 8x
dy .
dx
(In Section 3.4 we show that (2.9b) is in fact true for all values of n.)
Example 2.3. Obtain (a) the general expression for dy/dx when y = x3; (b) the
slope of the curve y = x3 at P : (2, 8); (c) the angle of inclination of the tangent
line to y = x3 at the point P; (d) the equation of the tangent line through P; (e)
the velocity v and acceleration a of a point with coordinate x, when x = f3.
(a) From (2.9) with n = 3, we have
dy
= 3x.-3- 1 3x2.
dx
(b) The slope of the curve at P is equal to the value of dy/dx at x = 2, which
is 12.
(c) The slope is equal to tan a, where a is the angle of inclination, so a = 85.2°.
(d) Let (x, y) now represent any point on the tangent line at (2, 8). The
slope of the tangent is equal to 12, so from (2.1)
dr
a = —
dt
= 3 = 61.
A little thought about the process of finding lim6(_0 8i>/8f will persuade the
reader that it is right to take the constant 3 from under the differentiation sign
in the last line; see also the next section.
The result (2.10c) follows easily by repeated use of (a) and (b). We
can use this rule together with (2.9) to obtain the derivatives of
polynomials, as in the following example.
Example 2.4. Obtain dy/dx when (a) y = 3x3 — jx2 + 5; (b) y = 3x(x2 — 2).
(a) From (2.10c),
dy d(x3) 1 d(x2) d(5)
+ 5) = 3 —-— + —
dx dx 2 dx dx
= 3(3x2) - \(2x) + 0 = 9x2 - x.
(b) It is necessary in this case to express y without brackets, i.e. as a
polynomial:
dv d d
— = — [3x(x2 - 2)] = - (3x3 - 6x)
dx dx dx
d(x3) dx
= 3-6— (from (2.10c))
dx dx
= 9x2 - 6.
These derivatives, of course, represent the slopes of the corresponding graphs.
Example 2.5. A car travels along a straight road with varying velocity v for one
hour. At time t hours, its displacement from the starting point 0 is given by
x = 60f2(3 — 2t) kilometres. Find expressions for (a) the velocity v; (b) the
acceleration a.
(a) The velocity is the rate of change of displacement with time:
dx d
v = — = - [60r2(3 - 20]
df dt
d(r2) „ d(t3)
= 60 — (3t2 - 2t3) = 60( 3 -2
df ' df df
= 60[3(2f) - 2(3r2)] = 360(f - f2)) in km hr'1.
(b) Acceleration is the rate of change of velocity with time:
dt;
a =
df
2.5 Differentiation 39
Therefore
£^o £
eE - 1 _ RQ - OP _ NQ
e ~ PN ~ PN’
which represents the slope of the chord PQ. When e -> 0, the slope
of the chord PQ approaches the slope of the tangent PT, which is
Fig. 2.5 equal to 1. Therefore we have proved that
40 2.6 Mathematical techniques
lim6--1 = 1. (2.11)
£-*o £
.. sine
lim —,
e-*o £
arc PR = PQ x PQR = PQ e.
Therefore
sin £ PN
(2.12)
£ arc PR
(2.13)
Fig. 2.7 Figure 2.7 shows the graphs of y = In e, and y = ln(l ± e). The graph
2.6 Differentiation 41
y = In £ (see Fig. 1.27) passes through the point (1, 0) at 45° to the
a axis. The graph y = ln(l + e) is the same graph moved over to the
left by a distance 1, so it passes through the origin 0 at 45°: that is
to say, it has slope equal to 1 at the origin. Therefore
ln(l + e)
lim (2.14)
£-o e
dy
,jc + Sjc
e- — e„x
= lim
dx $x—*o 8x
e* q^x — qx g5x _
= lim lim ex-
8jc->0 8x Sx~*>0 8x
Now put
Sx = 8.
The previous expression becomes
e£ — 1
e* lim-- e*,
£ —* 0 ^
by (2.11). Therefore
d
= e (2.15)
dx
sin \5x / . . .
= lim —-cos(x + jdx).
5x-*0 I<5X
dy ..sine . . .. sine,. / .
— = lim-cos(x + e) = lim-lim cos(x + e)
dx £-> 0 £ £~>0 £ £->0
= cos x.
Therefore
y = In x.
Then from (2.8),
dy ln(x + 5x) — In x
— = lim
dx Sx-*o bx
.. 1 X + 5x
= lim - In lim — lnl 1 +
8jc-»0 8jc-*0 5x \
By putting
8x
e, or 5x = xe,
x
dy 1 ln(l + e)
— = lim -
dx £-o -x e
2.7 Differentiation 43
d
(2.18)
dx
Example 2.8. Obtain the equation of the tangent line at the point (\n, 7t) on the
graph of y = 2x — 3 cos x.
At a general point on the curve,
dy d dx d
— = — (2x — 3 cos x) = 2-3 — cos x (by (2.10))
dx dx dx dx
= 2 — 3( — sin x) = 2 + 3 sin x
2 + 3 sin fit = 5,
and this is the slope of the tangent line at the point. The equation of the tangent
line is therefore
44 2.9 Mathematical techniques
if y — x4,
then — = 4x3,
dx
d /dy\
12x2,
dx \dx/
(Notice where the indices 2 are placed: the locations are different
above and below.) If we differentiate again, we get
and so on.
dy d2y
= 6x2 + 6x, = 12x + 6,
dx dx2
d3y d4y
= 12, = 0.
dx3 dx4
Example 2.10. Write down the sequence y, dy/dx, d2y/dx2,..., d7y/dx7 when
y =sin x.
The sequence is sin x, cos x, —sin x, —cos x, sin x, cos x, —sin x, —cos x (and
it continues in this regular way).
d2y d /dy\
dx2 dx\dx/
dy/dx represents the slope of the graph, so d2y/dx2 gives the rate
2.10 Standard functions and techniques 45
Example 2.1 1. Sketch one period 2n of the graph of sin x and indicate the signs
(b) of dy/dx and d2y/dx2.
dy We have
^>0 <0
dx dv
dy d2y
y = sin x, — = cos x, —- = — sin x.
dx dx2
The signs of the derivatives are shown in Fig. 2.9a; dy/dx is zero at the points
marked Z. In Fig. 2.9b, dy/dx is sketched to show explicitly how it varies.
dy
Problems
2.1. (Computational). A point P is given on each of the estimate the slope of the curve at P. (Consider points on
following curves. Choose a sequence of points Q which both sides of P.)
lie closer and closer to P on the curve, and make a table (a) y = x3 at P : (1, 1); (b) y = x* at P : (1, 1);
giving the slopes of the chords PQ. From this table, (c) y = cos x at P : (^tc, 2”*);
46 Mathematical techniques
(d) y = ev at P : (0, 1); (e) y = e2v at P: (0, 1); (c) x + C (where C is a constant);
(f) y = x3 + x* at P : (1, 2) (compare (a) and (b)); (d) x(x — 1); (e) x2(x2 + 1) — 1;
(g) y = In x at P : (1, 0). (f) ax2 + bx + c (where a, b, c, are constants);
(g) (x - I)2-
2.2. (Sections 2.1, 2.2). Obtain dy/dx in each of the
following cases at the given point P. Do this from first 2.10. Prove that the following pairs of curves intersect
principles; that is, find 8y in terms of 8x, simplify in a right angle at the points given. (Hint: find dy/dx
5j*/5x, and let 8x -* 0 to obtain limgx^0 5y/5x, or dy/dx. at the point for each curve.)
(a) y = 3x at P : (2, 6); (b) y = 3 — 2x at P : (1, 1); (a) y = 1 + x — x2 and y = 1 — x + x2 at (1, 1);
(c) y = 3x2 at P : (1, 3); (d) y = x3 at P : (1, 1); (b) y = 2(1 — x2) and y = x — 1 at (1, 0);
(e) y = 1/x at P : (2, 4); (f) y = 3x + 2x2 at P : (1, 5); (c) y = 1 — 3X3 and y = g + jx2 at (1, 2).
(g) y = (1 + 2x)2 at P : (- 1, 1).
2.11. Find the angle between the following curves at their
2.3. (Sections 2.1, 2.2). Obtain dy/dx from first principles points of intersection. (Hint: the angle of intersection is
(see Problem 2.2) at a general point P : (x, y) on the given the angle between the tangents to the curves at the point;
curves. then consider (1.7) and the tangent formula of (1.18a) for
(a) y = 3x2; (b) y = x3; (c) y = 1/x; the difference of angles.)
(d) y = x + 4; (e) y = x + 1/x; (f) y = 2x2 — 3. (a) y = x2 and y = 1 — x2;
(b) y = 3X3 and y = x2 — 2x + 4
2.4. (Section 2.3). Let x be the displacement of a point
moving on a straight line, and let t represent the time 2.12. (See Section 2.6). Find the limits of the following
elapsed. Form a table by taking the given value of f and functions when e —> 0. (Remember: 0/0 has no definite
calculating the average velocity between f and t + 51 for meaning.)
diminishing values of 5f. Use the table to estimate the
(a)£; (b) —; (c) —;
velocity at time f. s 2e s
(a) x = 3f at f = 1; (b) x = 5r2 at t = 3;
e2e — 1 e2£ — 1 sin 2s
(c) x = 2t — 5t2 at t = 1; (d) x = 2t — 5t2 at t = 0.2.
(d) -; (e)-; (f)-;
2e e 2s
2.5. Use the formula (2.9) to find dy/dx at the given
sin 2s ln(l + e2)
points in the following cases. (g)-; (h)-;-;
(a) y = x at any point; (b) y = x3 at x = 3; 6 £
2.16. Find the equations of the tangent lines in tne (e) e* — 1 — x — ^x2.
following cases.
(a) y = .x3 at (1, 1); (b) y = x4 - 2x2 + 1 at (2, 9); 2.18. Show that, if N is a positive whole number, then
(c) y = cos .x at (fit, 0); (d) y = In x at (e, 1); (dN/d.xN)xN = N\
y(x) = u(x)v(x),
x becomes x + 8x.
we obtain
8y _ (u + 8u)(V + 8l>) ■- uv uv + u dv + v bu + bu bv — uv
8.x Sx bx
8n 8u 8v
= U-ft) -bu -#
8.x 8x 8x
Now let 8x —► 0, so that Sy/8x, bu/bx, bv/bx become dy/dx, du/dy,
dv/dx respectively. Also, since Sir -> 0 when 8x -*■ 0, the final term
becomes zero, and we obtain the product rule:
Product rule
u(x)
y(x)
v(x)
5y {u + bu u\ 1
5x \ v + bv v) bx
_ uv + v bu — uv — u bv v bu — u bv
v(v + bv) bx v(v + bv) bx
1 ( bu bv\
—- u-u-I.
v(v + bv) \ bx bx)
Let 6x ->• 0; then 5y/5x, bu/bx, bv/bx become dy/dx, du/dx, dv/dx,
and bv 0. Therefore
dy _ d /u\ _ 1 / du dv\
dx dx \v) v2 \ dx dx)
By (3.2),
(a) Put v = x into the reciprocal rule (3.2b) (or u = 1 and v = x into (3.2a)):
dy 1 dy 1
dx v2 dx x2
52 3.2 Mathematical techniques
— (x") = nx"~1,
dx
proved only for positive integer n, the correct result in Example 3.6
is obtained. The formula is in fact correct for all values of n, as will
be shown in Section 3.4.
An example of this is
y = cos(.x3),
dy dy •
dx • dx’
8y 5y 5u
5.x 5u 5.x
since the terms 5u cancel. Now let 8x -> 0. Then 5u -t- 0, and
consequently 5y/8x, 8y/5u, 8u/5x approach dy/dx, dy/du, du/dx
respectively. Thus we obtain
dy dy du
dx du dx
Example 3.7. (a) You are given that (d/dx) e* = ex (see the table, (2.19)).
Deduce that (d/dx) eax = ae“, where a is any constant, (b) Find the derivative
of e~x. (c) Use this result to obtain the derivatives of sinh x and cosh x (see (1.26)
for the definitions of these functions).
dy du
= e and — = a.
du dx
dy dy du
= e a — ae
dx du dx
d
= —e
dx
(c) sinh x = \(ex — e x) and cosh x = ^(ex + e x), so the result (b) gives
d d
— (sinh x) = — [|(ex - e~x)] = i(ex + e“x)
dx dx
= cosh x,
d d _
— (cosh x) = — [f (ex + e x)] = ^(ex — e x)
dx dx
- sinh x
y = u1 °, where u = x2 + 1.
Then
3.3 Mathematical techniques
dy du
— = cos u and — = 3x ,
du dx
dy = 3u 2
— a
and du
— = cos x.
du dx
dy dy du 2
— =-= 3u cos x = 3 sin x cos x.
dx du dx
dy
-- and — = 2x,
du u2 dx
(where the reciprocal rule (3.2b) was used for differentiating 1/u.)
By the chain rule,
dy 1 2x
— --- 2x =---
dx u2 (x2 + l)2
Example 3.11. Find du/dt when u = a cos k(x — ct) where a, k, c, and x are
constant, t and u being the only variables.
We should not use u for the intermediate variable in the chain rule (3.3), because
it is already in use (as the name of the dependent variable). Instead of u, use an
uncommitted letter such as w as the intermediate variable, putting
du du dw
dt dw dt
in which
du dw
— = — a sin w and — = — kc.
dw df
Therefore
3.4 Further techniques for differentiation 55
Derivative of xn
If y = x", where n may take any value whatever, then
(3.4)
dy
= nx n- 1
dx
To prove (3.4), we use the chain rule (3.3). Note that x = e,nx (see
(1.21)), so that
y — e“, where u = n ln x,
so that
dy u , du n
— = e and
du dx x
Then
dy dy du n n
— =-= e - = x - = nx'n- 1
dx du dx x x
Example 3.1 2. Find dy/dx when (a) y = xf, (b) y — l/xf, (c) y = 1/^/x, (d)
y = l/(2xi + x).
d
(x”f) = —jx
dx
, , -i dT i -i
(c) y = x , so — = - jx 2.
2
dx
(d) Write y = (2xi + x)-1. We can use the chain rule: put y = u-1, where
u = 2xf + x. Then
dy
= —u (by (3.4)), — = fx“i + 1 (by (3.4)).
dx dx
dy dy du 2X 3 + 1
— = — — = ( — u 2)(§x f + 1) = - 3
dx du dx (2xi + xY
56 3.5 Mathematical techniques
3.5 Functions of ax + b
A frequently occurring application of the chain rule (3.3) is in
connection with functions like eax+b, sin(ax + b), (ax + b)n, and
in general f(ax + b). The spirit of the chain rule is to say: ‘If
the functions were e\ sin x, x", f(x), then they would be easy.
Therefore, try the chain rule with u = ax + b.'
Suppose that, in general, we want to differentiate y when
y = f(ax + b),
u = ax + b, y = /(«)•
dy dy du df(u)
dx du dx du
Function Derivative
y = ev, v = sin u, u = x2 + 1.
dy dy du du
dx dv du dx
We have
du
— = cos u,
du
3.6 Further techniques for differentiation 57
so
Suppose that
y = y(v), v = v(u), and u = u(x).
(3.6)
Then
dy dy du du
dx dy du dx
In y = In(uuw) = In u + In v + In w.
d 1 du
— In u =-,
dx u dx
1 dy Id u 1 dy 1 dw
- — +-+
y dx u dx v dx w dx
Logarithmic differentiation
If y = uvw, then
dv /id u 1 dy 1 dw\ (3-7)
— = uvw[-1-H-
dx \u dx v dx w dx/
(and so for any number of terms).
58 3.7 Mathematical techniques
Then
Notice that we did not just copy the formula (3.7) rigidly: the logarithm is useful
for getting rid of awkward powers and we might have missed this. Differentiate
this expression:
1 dy 1
(sin x) — (x2 + 1)
y dx 2x sin x dx x2 + 1 dx
1 + 2 cos x 2x
2x sin x x2 + 1'
dy _ xi sin2 x / 1 + 2 cos x _ 2x \
dx x2 + 1 \2x sin x x2 + 1/
/(x, y) = c (a constant)
~/(x, y(x)) = 0,
dx
d 2 dy d . dy
— y = 2v — and — cos y = — sin y —.
dx dx dx dx
Example 3.1 5. Find a general expression for dy/dx at any point on the curve
given by f(x, y) = x + y + sin x 4- cos y = 1.
So long as we stay on the curve, /(x, y) does not change when x changes, so
d/(x, y)/dx = 0. Therefore
, dy dy
1 +-1- cos x — sin v — = 0,
dx ' dx
so finally
dy cos x + 1
dx sin y — 1
dy = 1 /dx
(3.8)
dx / dy
are different ways of saying the same thing; the two graphs
depicting the relation between x and y are the same graph. For
small corresponding increments 5x and 5y on this graph,
5y j/5x
5x / 5y
x = ey.
Then
dx
e y.
dy
60 3.9 Mathematical techniques
so, by (3.8),
dy 1 1
dx ev x
dx 1
dy cos2 y
so, by (3.7),
dy
— = cos y.
2
dx
To express cos2 y in terms of tan y (i.e. in terms of x) draw the triangle in Fig.
3.1, in which y is represented by the angle A. This is a right-angled triangle
because the sides conform with Pythagoras’ theorem. Evidently cos2 y = 1/(1 +
tan2 y), as can be checked by putting tan2 y = (sin2 y)/cos2 y. Therefore
dy 1 1
dx 1 + tan2 y 1 + x2
Fig. 3.1
x = x(t), y = y(t),
then the point (x(f), y(f)) follows a curve as t varies. Suppose that
t changes from t to t + 51; then x changes to x + 5x and y to y + by.
Obviously
8y 5y / 8x
5x bt I bt ’
Then
dx , .
— = —sin2 9 + cos2 9 = cos 29
d9
(by the chain or product rule and the identity in Appendix B). Therefore
dy d y dx
= tan 29.
dx dOj d0
At the point where 9 = ^7t,
— = tan t7i = 1.
dx
Example 3.1 8. The map coordinates of a moving vehicle are given by x = —t2,
y = ^f3, where t is time and t > 0. Find the direction the vehicle is facing when
Fig. 3.2 t = 2.
From (3.8),
dy dy I dx t2 x
dx dt I df —21
This equals — 1 when t = 2. The slope of the curve is negative at this point, so
the tangent to the path slopes downwards from left to right as shown in Fig.
3.2. The actual direction in which the vehicle is moving is, however, from right
to left. It is facing north west as shown.
x = x(t), y = y(t),
where t represents time. Figure 3.3 shows the effect of changing t
Fig. 3.3 to t T 51, where 8f is small: the point moves from P to Q, a short
62 3.10 Mathematical techniques
distance 5s say along the curve (5s is called an element of arc length).
Then the average speed over this short time is given by
arc length PQ 5s
~5f ~~ St
straight distance PQ
St
_ (5x2 + 5y2)*
~5t~
Now let 51 -> 0. Then 5x/51 and 5y/5f become dx/dt and dy/dt, and
finally we have the result:
Example 3.1 9. Find the speed of the vehicle in Example 3.18 when t = 2.
In general
ds r/dx\2 /dyVli
Problems
3.1. (Product rule, (3.1)). Obtain df(x)/dx for the follow¬ (g) (sin x + cos x)/(sin x — cos x);
ing f(x): (h) secx ( = 1/cos x); (i) cosec x (= 1/sin x);
(a) x ev; (b) x sin x; (c) x cos x; (d) ex sin x; (j) x/(3x2 - 2); (k) l/x(x3 + 1); (1) 1/ln x;
(e) x In x; (f) x2 In x; (g) eA In x; (h) x2 ex; (m) x" where n is a negative whole number
(i) sin x cos x; (j) x2x3 (this is the same as x5: show (x" = 1/x-"); (n) l/(x + 1); (o) e“x (= l/ex);
that the result is the same for both forms). (p) 1/tan x; (q)x-2lnx.
3.4. (Chain rule, (3.3)). Obtain d/(x)/dx for the follow¬ (a) ecos2 *; (b) e“cosx2; (c) ln(cos x2); (d) (e*2 - l)4.
ing /(x). (Set out the calculation systematically, as in the
examples in Section 3.3.)
3.10. (Logarithmic differentiation, Section 3.7, is
(a) sin2 x; (b) cos2 x; (c) sin x2; (d) cos x2;
easiest). Differentiate the following.
(e) tan2 x; (f) tan x2; (g) cos(l/x);
(a) x ex sin x; (b) t e‘ cos f; (c) x4 e2x sin4 3x.
(h) e_x (compare Problem 3.2(o)); (i) (x + l)5;
(j) (x3 + l)4; (k) sin 3x; (1) cos jx;
3.11. (Implicit differentiation. Section 3.8). Proceed as
(m) tan Tx; (n) e_3x; (o) sin(2x + 1);
in Example 3.15 to obtain expressions for dy/dx in the
(p) cos(3x - 2); (q) tan(l - 2x); (r) e1/x;
following.
(s) ax (write as a power of e).
(a) Show that if x2 + y2 = 4, then dy/dx = — x/y. Check
the correctness of the expression by testing it with
3.5. (General powers of x, Section 3.4). Differentiate the y = ± (4 — x2)4. Interpret the result geometrically by
following. sketching the circle x2 + y2 = 4 and considering the
(a) x-2; (b)x_1; (c) x4; (d) x~4; (e) x4; meaning of dy/dx in terms of slope, (b) xi + y4 = 1;
(0 V*; (g) v(*3); (h) i/x; (i) i/Vx. (c) x3 + xy — y3 = 0; (d) x sin y — y sin x = 1.
3.6. Differentiate the following (the independent 3.12. The same expression for dy/dx in Problem 3.11a
variable is not always x, and more than one rule is obtained when the radius is changed; for example,
is needed). if x2 + y2 = 9, we still get dy/dx = —x/y. Is this para¬
(a) x4 sin x; (b) sin4 x; (c) (x2 + 1)“4; doxical? (Notice that even in the general case of /(x, y) =
(d) sin2(3f + 1); (e)e"'cosr; (f)e“'sinf; c, a constant, the expression for dy/dx will not depend
(g) e~2' cos 3f; (h) e-3' cos 2f; on c: think of the difference between the form of the
expression and the values it takes.)
(i) sin x cos2 x; (j) sin2 x cos x; (k)
(1) x sin3 x; (m) x cos3 x. 3.13. Find expressions for dy/dx and then d2y/dx2 if
xy — x y = 1.
3.9. (Chain rule (3.3); or, more easily, the extension Express dy/dx in terms of f. Suppose that t represents
(3.6)). Differentiate the following functions. time. Express the speed as a function of f.
Applications of
differentiation
Contents
4.1 Function notation for derivatives 64
4.2 Maxima and minima 66
4.3 Exceptional cases of maxima and minima 69
4.4 Sketching graphs of functions 70
4.5 Estimating small changes 75
4.6 Numerical solution of equations: Newton’s method 77
Problems 81
By itself the symbol /' stands for the derivative function, because
it is ‘derived’ from the original function f. Think of /' in the
following way. Choose a ‘neutral’ letter for the independent variable,
u say, which is not being used for anything else at the moment, and
specify / in terms of u. For example, suppose that
f{u) = u2 — 3 u.
Knowing now the form of the function /' (i.e. its formula), we can
put anything we like in place of u, so that
Example 4.1. The function f is defined by f(u) = sin u. Obtain (a) /(x2); (b)
dx dx
d d
/ (u) = — f(u) — — (sin u) = cos u.
du ‘ du
Notice that the result (c) is different from the result (b): f'(x2) is not
the same as (d/dx)/(x2). In (b) we first find /(x2) and then differentiate with
respect to x; in (c) we first find f'(u) and then put u = x2.
Example 4.2. Express (a) the product rule (3.1); (b) the quotient rule (3.2a); (c)
the chain rule (3.3); in terms of the ‘dash’ notation.
d
— [u(x)u(x)] = u(x)v\x) + v(x)u'(x).
dx
or simply
-p/(«(*)) = /'(w(-1c))w'W-
dx
It is awkward to express the right-hand side without using the dash notation.
One alternative is to write it as
_dU Ju = 5j:-3
f'(u) = cos u.
66 4.1 Mathematical techniques
(d/d.x) sin(5x — 3)
y = fix)
Therefore
fix) = 0
f'(c) - 0,
(a) then x = c is called a stationary point of fix). A stationary point
such as A in Fig. 4.1a is called a maximum of the function /(x).
More precisely, the function is said to have a local maximum at
x = c, because the value of fix) at x = c is greater than its value at
any point in the immediate neighbourhood. (There may be local
maxima elsewhere that are either greater or smaller than this one.)
Similarly a point such as B in Fig. 4.1b is called a local minimum
of fix).
To distinguish between types of stationary point algebraically,
(b)
consider also the second derivative /"(x) at x = c. Suppose
that
_ d2y _ d /dyN
fix)
dx2 dxvdx,
(d) then fix) is increasing, and therefore goes from negative to positive,
across x — c. The point is therefore a minimum, like the point B in
Fig. 4.1b.
In the special case when
3x2 — 3 = 0, or x = +1.
fix) = 6x.
Then
/"(D = 6,
/"( —1)-6
so the graph has the shape shown in Fig. 4.3. Alternatively, we could simply
have checked the signs of f\x) = 3x — 3 on both sides of the stationary points
directly, instead of using the test (4.2).
Example 4.5. In the circuit shown in Fig. 4.4, V is a constant voltage and R and
x represent two resistances: R is fixed and x is variable. The rate of heat generation
y in resistance x is equal to I2x where I is the current. Show that y is a maximum
when x = R.
V
MV I =-.
R + x
R
V2x
= fix).
(R + x)2
say. If there is a maximum, it will occur when /'(x) = 0. From the quotient rule
Fig. 4.4 (3.2)
4.2 Applications of differentiation 69
V2
/'(*) = l(R + x)2 - x -2(R +x)]
(R + x)4
R — x
= V (>)
(R + x)3
V2
/"(x) = HR + x)3(-l) — (R — x)-3 (R + x)2]
(R + x)6
V2
(-4 R + 2x).
(R + x)4
Therefore
/"(/?) = -V2/SR3,
Example 4.6. x and y are two numbers subject to the restriction that x + y = 1.
Find the maximum possible value of xy.
There are two variables, x and y, but we can reduce the problem to one involving
only x by using the fact that x + y = 1, so that
y = 1 - x. (i)
In that case,
xy = x(l - x) = x - x2 = f(x),
1 — 2x = 0, or x =
By (4.2), this value of x delivers a maximum, because f"(x) = — 2 (for any value
of x) which is negative. From (i), y = j when x = so the maximum value of
xy is l.
Fig. 4.5 y = x - x2, The graph of y = /(x) = x — x2 between x = 0 and x = 1 is shown in Fig. 4.5.
0 < x < 1. The maximum of /(x) = x — x2 which we found in Example 4.6 at x = \ can
70 4.3 Mathematical techniques
Example 4.8. Find the maximum and minimum values of x2 — y2 on the circle
x2 + y2 = 1.
It is evident that the point (x, y) can only be on the circle if x and y both have
values between — 1 and 1 inclusive, that is if
say. To find the stationary points of /(x) we see that fix) = 4x, which is zero
when x = 0. Also /"(0) = 4 > 0, so x = 0 is a local minimum of /(x), whose
value is /(0) = — 1.
However, we have overlooked something. In Fig. 4.6, we show the graph of
f(x) = 2x2 — 1, within the permitted interval — 1 < x ^ 1. The local minimum
at x = 0 can be seen, but there are also maxima at the end points x = — 1 and
x = 1, where /(x) takes the values +1.
Alternatively, the maxima at x = ± 1 can be found by substituting for x
instead of y at the first stage. Put x2 = 1 — y2, so that
x2 - y2 = 1 - 2y2 = g(y),
Fig. 4.6
f{x) = 2x2 - 1, -1 < x 1. say, and solve g'(y) = 0: we then find a local maximum at y = 0, where x = ± 1.
However, we also lose sight of the minima we found before. The subject is
discussed again in Section 27.2.
gets closer and closer to 1. The same is true when x becomes large
and negative. This is obviously an important feature of the graph.
It can be seen to be true by thinking what happens to y when we
put a large value of x into the formula for y (think of a very large
number: x = 1,000,000 rather than x = 10). Then obviously 1/(1 4- x)2
is very small, so y gets very close to 1, and the larger x becomes,
the nearer y is to 1. The same is true when x is large and negative.
We say that, as x increases, the graph approaches the line
y — 1, which in general terms is called an asymptote of the graph.
When x approaches —1, the graph approaches the vertical line
x = — 1; this is also called an asymptote. The two continuous halves
of the graph to the left and right of x = — 1 are called branches.
Suppose that y = /(x) is to be sketched. A general question to be
asked is ‘What happens to y when x increases towards infinity
(or decreases towards minus infinity)?’ We normally say ‘as x
approaches ±oo’, and as usual indicate the approach by
X -> ± 00.
x — 1 x j
3x + 2 ^ 3x _ 3'
The limit notation can be used in this context (see Section 2.2).
We can write, for example
1 — 2x
lim - 2.
X~* 00 1 + x
The reasoning is the same as in the earlier case: think of a very large
value of x.
72 4.4 Mathematical techniques
Very often the function has no definite limit as x —> go. For
example lim^...^ sin x does not exist; no definite single number is
approached, since sin x simply goes up and down between ± 1 for
ever. However, it is quite usual to write, say.
lim x2 = oo,
X~> 00
lim flx"e““ = 0,
X-> 00
We shall not prove (4.3); but, to convey the feel of it, a table of
values is given for the special case of x3 e~x:
x 0 1 2 3 4 8 10
x3 e~x 0 0.36 1.08 1.34 1.17 0.18 0.05
Fairly large values are needed before the function settles down to
approach zero, because x3 is increasing, and therefore competes with
e~* in the early stage. However, e~x will beat any power of x down
to zero eventually. In the following example, we sketch the graph
of the function in the table without using the calculated values above.
— = 3x2 e x — x3 e x = x2(3 — x) e x.
dx
Fig. 4.10
dy 1 d 2x — 1
C(x - 2)(x + 1)] =
dx (x 2)2(x + l)2 dx (x — 2)2(x + l)2'
This is zero at x = \ and nowhere else. There is no need to use the test (4.1);
the point can only be a maximum since there are no other stationary points.
The value of y there is — f.
x2-l
37 ~~ 2x + f
2x + 1 2x + 1
y = 2* - i
when x is large. As in the earlier instances we have seen, the line
y = 2X ~i is said to be an asymptote of the original graph. The
notation
y ~ — j when x + oo
1 1 .
y =-- sin x,
x x
then
y = /(*)•
Fig. 4.13
Suppose that the value of x changes by a small amount 5x. Then y
will change by a small amount §y. There is a simple approximate
relation between 5y and 8x which is important for practice and
theory.
Fix a particular value of x: say x = a; the small deviation 8x will
be made from this value of x. The derivative at x = a is f\a).
According to (2.8), to obtain f'(a) we take a nearby point x = a + 5x
and form the ratio
and
by
f'(a) as 5x -> 0.
bx
jp * /'(<>),
ox
so that
5y f'(a) 8x.
76 4.5 Mathematical techniques
8y « - 5.x,
dx
near a general point x (which again shows the usefulness of the
dy/dx notation in suggesting true results). We call this the incre¬
mental approximation for functions of a single variable.
Incremental approximation
Put
y = X + ~ = f{x).
X
Then
dy 1
or f'{x) = 1 -
dx
(The exact value is given by 8y = (1.8 + 1/1.8) — (2.0 + 1/2.0) = —0.1444 • ■ •.)
V=jnr3 = f(r).
Then
dV
f (r) = — = 47tr2,
dr
so, by (4.4b),
(Notice that 47tr2 is the formula for the surface area of a sphere: the change in
volume is nearly equal to the surface area times the thickness 8r.) Now put r = 2:
Then, by (i),
c2 = 25 — 24 cos C
or
c = (25 — 24 cos C)* = /(C),
/'($*) = 6V3/V13.
Therefore, by the incremental approximation (4.4),
x4 + x3 — 1 = 0 and e~x — x = 0.
78 4.6 Mathematical techniques
y For such cases, there are many methods for obtaining numerical
>> = x4+x3-l
1 1.5 I solutions, which are applicable no matter how complicated the
l 1 equation is. We describe one of them here.
1.0 t
\ To apply the method, it is necessary first of all to obtain at least
♦ 1
a rough idea of the location of the solution we are seeking. There
0.5 1
\
1 are various ways of doing this: for example we can plot a rough
,
-1.51 -1.0 - 0.5 O 0.5 U.O x graph. Taking the first example above, the graph
\ 1
-0.5 / y = x4 + x3 - 1
\
\ -1 0 4
y- is sketched in Fig. 4.14 using only five values of x; namely —1.5,
— 1,0, 0.5, and 1. The solutions occur where it crosses the axis; there
-1.5 -
seems to be one not far from —1.3 and one not far from 0.8.
Fig. 4.14 y = .v4 + x3 - 1. Suppose now that we have a general equation to solve:
fix) = 0;
and that, by drawing its graph, or by some other method, we have
established that one of its solutions is not far from the value
x = x0,
y - fix0)
= /'(*<>).
x — x0
At Ax (x = Xi), we have y = 0, so
-fix o)
= fix o).
fix o)
Xj - x0
f'ixo)'
fix l)
X2 = Xj
fix,)'
3. Once the nth approximation x„ is available, the (n + l)th value
xn+1 is given by
fjx„)
^« + i =
f\xny
n 0 12 3
x„ 0.80000 0.81976 0.81917 0.81917
/(xj -0.07840 0.00247 0.00000 0.00000
Evidently we do not have to pursue the sequence any further.
Example 4.1 8. The equation e~x = x has a solution near to x = 0.5. Find the
solution accurately to five decimal places.
We have
x0 = 0.5, fix) = e~x — x, fix) = -e“x - 1.
From (4.4),
e“*" - x„ _ x„ + 1
X/i +1 xn ,
- e Xn — 1 e " + 1
(the last step for simplicity of calculation). We obtain the following sequence:
X0 Xj x, x3
0.50000 0.56631 0.56714 0.56714.
Problems
4.1. (See Section 4.1 on the ‘dash' notation). The func¬ 4.8. Sketch the graphs of the following functions.
tion / is defined by f(u) = u2. Obtain the following. (a) l/(x2 + 1) (this is an even function: see (1.12)).
d (b) e~*2. (c) x/(x — 1). (d)xe_x.
(a)/'(f); (b) /'(f); (c) — /(f2); (e) x2 e~-v. (f) x3 e~x. (g) e2x — 4 ex.
df
(h) (In x)/x for x > 0 ((In x)/x —> 0 when x -* oo; this
d can be proved by putting x = e“ and letting u —► oo).
(d)/'(f*); (e) — /(fT); (f)/"(p). (i) [ln( —x)]/x for x < 0 (compare (h)).
df
(j) x In x — x for x > 0 (x In x -> 0 when x -> 0; this
can be seen by writing x = e_" and letting u -> oo).
4.2. (See Section 4.2). Find the stationary points of (k) sin 1/x (Start by finding where it crosses the axis,
the following functions and classify them as maxima, using the fact that sin u = 0 when u = 0, + 7t, ±271,
minima, or points of inflection. ... .)
(a) -Y2 — y; (b) y2 — 2y — 3; (c) y In x (y > 0); (l) (x2 — l)2 (This is an even function: see (1.12)).
(d) .re/ (e) 1/(y2 + 1); (f) y2 — 3y + 2; (m) x(x2 — l)2 (This is an odd function: see (1.12)).
(g) ex + e~v; (h) y2 + 4y + 2; (i) y — x3; (n) (sin x)/x (You will not be able to find the exact
(j) y2(y — 1); (k) sin y — cos y (in 0 < y < 2ti). positions of the maxima and minima; be content
(1) sin y cos y ( —7i < y < 7i); (m) e~x sin x; to indicate the trend. It is an even function: see
(n) e~ >x sin 2x (see Example 4.11); (1.12) . For the value approached at x = 0, see
(o) x — cos y; (p) 2 ev — \ e2v; (2.13) .)
(q) y2 e-A; (r) (In x)/x (y > 0); (s) (1 — x)3;
(t) sin3 y; (u) e~x’; (v) ev’ v; 4.9. Sketch the graphs of the following functions.
(w) y + x- *; (x) y3 e~x. (a) l/(x2 — 1) (Hint: write x2 — 1 = (x + l)(x — 1), and
then follow Example 4.12; alternatively, sketch y =
x2 — 1 and imagine taking its reciprocal).
4.3. Let v = J'(u{y)). Use two successive applications
(b) x/(x2 — 1). (c) l/x(x — 2).
of the chain rule in the form of Example 4.2c to show
(d) x3/(l — x) (Hint: see the note on curved asymp¬
that
totes following Example 4.12)
d2 (e) (x + 2)/(x — 1) (See the hint in (d)).
y = /"(«(Y))[U'(x)]2 + /'(t/(Y)X(x). (f) l/(x + 1) + l/(x + 2).
d.\-
Show that if/'(«) is always greater than zero, or always 4.10. (See Section 4.5). Find the approximate value of
less than zero, then /(«(y)) and u(x) have the same the change 8y in y due to a small change 5x in x using
stationary points. Consider, e.g. Problem 4.2v in this the incremental approximation (4.4) in the following
connection, with f(u) = e" and u(x) = x1 — x: it becomes cases. Compare the approximate and exact values of 8y.
rather obvious. (a) y = x3 when x = 2 and 8x = 0.1;
(b) y = x sin x when x = §7i and 8x = —0.2;
4.4. A rectangular piece of ground is to be marked out, (c) y = cos x when x = 5J1 and 8x = 0.1;
which must have a given area A. Find the dimen¬ (d) y = (1 + x)/( 1 — x) when x = 2 and 8x = —0.2;
sions of the plot which requires the minimum length of (e) y = tan x when x = and 8x = 0.1;
perimeter fence. (This is a ‘restricted’ problem, like (f) y = 1/(1 — x2) when x = 0.5 and 8x = +0.1.
Example 4.6. Call the sides x and y.)
4.11. (a) If the focal length of a lens is f and a viewed
object is at distance u, then the image is at distance v
4.5. A tunnel cross section is to have the shape of a
where v = uf/(u — /). Let / = 0.75 (m). Find approxi¬
rectangle surmounted by a semicircular roof. The total
mately the change in v if u changes from 1.25 to
cross-sectional area must be A, but the perimeter mini¬
1.30 (m).
mized to save building costs. Find its dimensions.
(b) In a Wheatstone bridge circuit, the out-of-balance
voltage v is given by
4.6. A circular-cylindrical oil drum is required to have a
given surface area (including its lid and base). Find v = £(P,P4 - + R2)(R3 + R4),
the proportions of the design which contain the greatest where E is the applied voltage and R,, R2, R3, R4
volume. represent the resistances in the branches. Suppose that
E = 5, Ri = 4, R2 = 2, R3 = 6, and R4 = 3, so that
4.7. Solve Problem 4.6 for the case when the lid is not the circuit is initially balanced. Obtain an approximate
included in the restriction. expression for 5v in terms of a small change 8R, in R,.
82 Mathematical techniques
(c) In a triangle ABC with corresponding sides a, b, c, and make the construction based on Fig. 4.15 to explain
the formula a = b sin A/sin B applies. Show that 5a x why this is so.
— a cot B 5B.
(d) In a triangle ABC with corresponding sides a, b, c, 4.15. (a) Supposing y = /(x) to have a continuous graph,
the area A is given by illustrate graphically that the following principle is true:
A = [.■>(.<> — a)(s — b)(s — c)]±, If f(a) and f(b) have opposite signs, then there is at
least one solution of the equation /(x) = 0 in the range
where s = \(a + b + c). Find an approximate expression
for 6/4 in terms of 5a. (Hint: use logarithmic differentia¬ a < x < b.
tion to shorten the working.) Estimate 8/4 when a = 2, (b) (Computational) The equation ex — 3x = 0 has
b = 4, c — 5, and 8c = 0.1, with a and b remaining exactly two solutions, and they are in the range 0 < x <
constant. 2.5. Use the principle in (a) to narrow the ranges in which
they are known to lie, so as to produce starting values
4.12. (Computational). Growth on a deposit by com¬ x0 for Newton’s method. One systematic technique is to
pound interest is given by the formula C — P( 1 + r)", start with the given end points x = 0 and 2.5, then to
where P is the amount deposited, r is the compound- halve the interval repeatedly, considering the signs at the
interest annual growth rate, n is the time of deposit ends of the subdivisions.
in years or fractions of a year, and C is the accumulated
balance. Obtain approximating expressions for 5C when 4.16. (Computational), (a) Suppose that an equation
(a) r changes by a small amount 5r; (b) n changes by a /(x) = 0 is known to have exactly one solution in a
small amount 5n. (c) Consider plausible values of P, r, particular finite interval a < x < b. Write a program,
and n, and experiment with the accuracy of the formulae using the principle described in Problem 4.15, to obtain
for various values of 8r and 5n. a closer starting value x0 for Newton’s method. (Since
there is only one solution, any subdivision you find
4.13. (Newton's method. Section 4.6). It is not too across which the sign of /(x) does not change can be
difficult to make these calculations on a hand-held ignored. Arrange for the process to stop when the
calculator. Find the solutions of the following equa¬ solution is located within a small preset interval of length
tions within the broad ranges indicated, which contain £.)
exactly one solution. (b) Try this with, say, the equation x(ex — 1) = 1,
(a) x4 + 2x2 — x — 1 = 0 (range 0.5 < x < 1); whose single solution lies between 0 and 1.
(b) x4 + x* - 1 = 0 (0.5 < x < 0.75); (c) By choosing E to be very small, the process can
(c) x In x = —0.3 (0.1 < x < 0.2); by itself locate the solution to any degree of accuracy
(d) ev = 4x3 (0 < x < 1); if E is small enough. (This is called the bisection method
(e) tan x = 2x (0 < x < jn); for solving equations.) Obtain the number of iterations
(f) (e'sin x)/(l + x) = 2 (1.5 < x < 1.9). required to locate the single solution of /(x) = 0 in
0 < x < 1 to 2, 4, and 6 decimal accuracy. (The number
4.14. The equation /(x) = xe"'+ 1 = 0 is known to of iterations is the same for any such equation.)
have exactly one solution (not far from x = —0.6). (d) Solve the equation in (b) by Newton’s method
Demonstrate numerically that it is of no use to start to 2, 4, and 6 decimal accuracy, starting with x = 0.5,
off Newton’s method for this equation with a value and compare the number of iterations required with
of x greater than 1. Sketch the graph of the function, the number required by the bisection method.
Taylor series and
approximations
Contents
5.1 The index notation for derivatives of any order 83
5.2 Taylor polynomials 83
5.3 A note on infinite series 86
5.4 Infinite Taylor expansions 88
5.5 Manipulation of Taylor series 89
5.6 Approximations for large values of x 92
5.7 Taylor series about other points 92
Problems 94
fix) = —— •1
1 — X
1 - x
so long as x is small enough. This is shown in Fig. 5.1a. It is, of
course, a poor approximation, acceptable only very close to x = 0.
Fig. 5.1 A better approximation near x = 0 is given by the equation of
84 5.2 Mathematical techniques
the tangent line at x = 0 (Fig. 5.1b). Since f(1)(x) — 1/(1 — x)2, the
slope at x = 0 is /(1)(0) = 1.
The equation of the tangent line at x = 0 is therefore y = 1 + x, so
-% 1 + x,
1 — X
when x is small enough.
We need a way to continue improving the approximation, P(x)
say, to a further stage and beyond. At present we have reached the
tangent approximation P(x) = 1 + x, which was chosen so that
P(0) = /(0) and P(1)(0) = /a)(0). To obtain the next approximation
choose a P(x) which also matches the second derivative at x = 0:
P( 0) = /(0), P(1)( 0) = /(1)( 0), P<2)(0) = /<2)(0).
This involves adding a term in x2, and we can choose its coefficient
so that the extra condition is satisfied without disturbing the two
terms we have already found. Continuing with the example,
—1— ~ 1 + x + x2
1 - X
Derivatives of a polynomial in x at x = 0
a0 = P( 0) = /(0),
o, =Ip»>(0) = I/<‘»(0),
«2 = 2,P'2’(0) = 21|/,2’«».
a, = 2 P,3>(0) = 2 /,3»(0),
1 1_ 1, 1. 1,
ex « 1 H— x H— x2 H— x3 + — x4 H— x5 = P(x).
1! 2! 3! 4! 5!
(If we take higher degree approximations, the terms continue according to the
same rule.) We show ex and its approximation P(x) in the following table for
a few values of x.
X 4 -3 -2 -1 -0.5
ex 0.0183 0.0498 0.1353 0.3679 0.6065
P(x) 3.533 -0.6500 0.0667 0.3666 0.6065
X 0 0.5 1 2 3 4
ex 1 1.6487 2.7183 7.3891 20.086 54.598
The approximating polynomial P(x) clings to the true values for a considerable
range around the origin.
86 5.2 Mathematical techniques
Example 5.2. (a) Obtain the Taylor polynomial approximation of any degree N
for the function 1/(1 - x) near x = 0. (b) Obtain an expression for the error in
the approximation.
(a) Putting 1/(1 — x) = /(x), the sequence of derivatives of /(x) is
2-1 3-2-1
fa>(x) = 1 , /(2,(x) /<3,(x)
(1 - x)2 (1 -x)3’ (1 - x)4
and in general
n\
r\x)
(1 -x)n+1
1 + X + x2 + x3 + • • • + xN.
„ 1
P(x) - /(x) = 1 + X +-Ix*-
1 -X
(1 - x)( 1 + X + X2 + • • • + x*) - 1
1 - X
-xN+l
1 - X
The reader should experiment with this expression using various values of N
and x. (i) If x is very small, the error involved is very small even if N is only 2 or
3. (ii) If we take any fixed value of x in the range — 1 < x < 1, the error will
approach zero when we take approximations of higher and higher degree
(because, when —1 <x< 1, xN+1 approaches zero as N increases: try this
numerically with, say, x = 0.9). (iii) The approximation fails altogether if x > 1
or x < — 1. The error will be large, and to increase N will make it still larger
because |xA,+ 1| increases when N increases.
, 1 1
1 + — x -I— x2 + — x3 +
1! 2! 3!
2 1 3
or
n
z
= 0 nl
x
1 + 1 + 1 + • ■ •,
then we obtain
1,2,3,4, ... ,
1 - 1 + 1 - 1 +•••
88 5.3 Mathematical techniques
1 + x + x2 + • • • =-.
1 — X
Example 5.3. Find how many terms of the Taylor series for sin x are needed to
obtain three-decimal accuracy over the range — 1 < x < 1 (in radians).
The intuitive requirement is that we should stop at the point where we can see
that taking further terms is not likely to affect the third decimal place. The
magnitude (modulus) of the terms in (5.4b) increases when the magnitude of x
increases, so it should be sufficient to provide an approximation good for the
largest value, x = 1. The magnitudes of successive terms when x = 1 are equal to
It is therefore enough to retain three terms of the series; that is to say we should
retain powers of x up to x5. To three decimals, then,
Example 5.4. Find the Taylor expansion about x = 0 for the function (2 — x)*,
and state its range of validity.
Write
We can use the binomial expansion (5.4d), with a = and with — \x in place
of x. The expansion will be valid, provided that — 1 < — fx < 1 i.e. when
— 2 < x < 2. Therefore
+ Kt-na-2>
3!
= 2±(1 - \x - ^x2 - 72gX3 + • • •)
when — 2 < x < 2.
To find the first few terms in the Taylor series for a composite
function /(x) such as
/(*) =
(1 +x)*’
Write
/(x) = e-*(l + x)~T
Use (5.4a) with — x in place of x, and carry it to degree 2:
e~x % 1 - x + — x2.
2!
5.5 Taylor series and approximations 91
f(x) « 1 - §x + V*2.
when x is small. (Reject powers higher than 2 in the final product - they would
not be correct since we neglected such terms in the original approximations.)
Example 5.7. Obtain the first three nonzero terms of the Taylor expansion for
1/cos x.
There are several ways of doing this problem.
Working from (5.3). The reader might try this, but it is rather arduous.
1 1
COS X 1,1.
1 - - x2 + - X4 -
2! 4!
The problem is to find the first three terms in the reciprocal of the infinite series;
we then have a Taylor polynomial. Anticipate that only the even powers of x
will occur, as in the expansion of cos x. Then we expect
1 1
= b0 + b2x2 + b4x4 + •
cosx 1 2 , 1 4
1-x2 H— x4 - •
2! 4!
1 1
1 = ( 1 - 11 x2 + - x4 ^ (b0 + b2x2 + fc4x4 + • • •)
2! 4!
b2 = 2 and bA = 2i-
Finally
1 + W + 24X*
\X2 + ^X 4
subtract: 1 - w
iv2 , J_v4
+
iv2
X — 24■'
lv2 Iv4
subtract: 'X — IX
^-x4
24A
if1
2\2 1)
(1 — 1 + \u + u2 + when — 1 < u < 1,
2!
1 1
1 + 1 +
2x 8x2’
f(x) - —-— = 1 + x + x2 + x3 H-
1 — x
Example 5.9. Find a Taylor-type series which represents 1/(1 — x) for values of
x near x = 2.
1
= b0 + bj(x - 2) + b2(x - 2)2 + ■ • •,
1 —x
5.7 Taylor series and approximations 93
because we want a series that works when x is close to 2; which is to say when
x 2 is small, rather than when x is small as before. Therefore we need a series
consisting of powers of x — 2. We can bring the element x — 2 into view by
writing
1 1 _ 1
l^c _ f- (x - 2 + 2) ~~ ~~ 1 + (x - 2)'
Now expand the final term by using (5.4d) (the binomial theorem) with a = — 1,
and x — 2 in place of x, obtaining
, — = - 1 + (x - 2) - (x - 2)2 + (x - 2)3 + • • •,
1 —x
1 < x < 3.
Example 5.10. Obtain a Taylor series about the point x = n for the function
COS X.
There exists already the series (5.4c) which is valid at x = n. However, if we are
interested in approximating to cos x near x = n, an expansion in powers of
x — 7i should be more economical and expressive than one consisting of powers
of x. We show two ways of finding the series.
1 7 1 ,
cos x = — cos(x — jt) = — 1 H— (x — k)~ — (x — 7t) + • • •.
2! 4!
This is valid for all values of x. A two-term approximation shows that cos x has
a parabolic shape near x — n — 0 or x = 71, where cos x has a local minimum.
(b) Matching the value and the derivatives at x = n. The derivatives of /(x) =
cos x at x = 7i are given by
/<2,(71) = —cos 71 = 1,
and so on. The same relations hold good between the coefficients of a polynomial
in powers of x — 7r and the values of its derivatives at x = 7t, as was stated in
(5.3) for polynomials in x at x = 0. We simply put x — n in place of x in (5.3).
The required Taylor series is
Problems
5.1. Obtain a four-term Taylor polynomial approxi¬ 5.6. (See Section 5.5). Find the first three nonzero terms
mation valid near x = 0 for each of the following. in the Taylor series at x = 0 for the following.
Estimate the ranges of x over which three-term poly¬ (a) e~x/(l + x); (b)(l-x)*ex;
nomials will give two-decimal accuracy (you cannot (c) [ln(l - x)]2/x2.
usually tell until you have seen the next-higher term),
(a) e*x; (b) (1 + x)*; (c) (1 + x)“/
5.7. (See Example 5.7). Find the first three nonzero
(d) sin 2x; (e) cos /x; (f) ln( 1 + x);
terms in the Taylor expansions at the origin for the
(g) (1 + x2/ (hint: consider (1 -I- u)/ then put u = x2); following.
(h) ln(l + 3x) (see the hint in (g)).
(a) 1/(1 + ln[l + x]); (b) tan x; (c) 1/(1 + ex);
(d) tanh x, or (ex — e_x)/(ex + e~x). (It is less compli¬
5.2. Verify the coefficients of each of the infinite Taylor cated if you firstly reduce this to a more manageable
series shown in (5.4) (taking the ranges of validity for form);
granted); namely (e) x/sin x.
(a) ex; (b) sin x; (e) cos x;
(d) (1 + x)a; (e)ln(l+x).
5.8. (See Section 5.6). Find a three-term approximation,
valid for large enough values of x, in each of the following
5.3. For each of the following series give the Taylor
cases.
polynomial having the lowest degree which you think
will safely give four-decimal accuracy over the ranges
given.
(a) ex over — 2 ^ x ^ 2;
«(,-!)/ (b,ta(.+l):
(b) sin x over — 2 ^ x < 2; (c) x*/(l + *)/ (d) ln(l + x + x2)
(c) cos x over — 2 ^ x < 2; (e) 1/sin (x_1).
(d) (1 + x)* over — 0.5 ^ x ^ 0.5;
(e) ln(l -F x) over — 0.5 ^ x ^ 0.5.
5.9. (a) Show that 1/sin x % (1/x) + £x when x is non¬
zero but small enough.
5.4. Obtain the first two nonzero terms in the Taylor
(b) Show that, when x is large enough, (1 + x)* «
series at the origin for the following.
x* + l/2x*
(a) arcsin x; (b) arccos x; (c) arctan x;
(c) Show that, when x is large enough, (2 + x/ —
(d)e_xsinx; (e)e_xcosx.
(1 + x)* % l/2x*.
(d) Show that, when x is nonzero but small enough,
5.5. (See Section 5.5). Find three nonzero terms in the
then 1/(1 - cos x)* % (Jl/x) + (x^/2/24).
Taylor series at x = 0 for the following functions and
state the ranges of validity.
(a) 1/(1 + 3x); (b) 1/(2 — x); (c) (3 - x)+; 5.10. (a) (See Section 5.6). Write
(d) (x - 3)’; (e) ln(9 - x); (f) cos ^x;
In x = ln(l + [x - 1]),
(g) sin xi (Consider the series for sin u; then put u = xi).
This is not strictly a Taylor series - it is spoken of as ‘a and so obtain the Taylor series for In x about x = 1.
Taylor series in x*’ - but it still is useful for approxima¬ State the range of validity.
tions. (b) Obtain the Taylor series about x = for cos x,
(h) cos xi. and state the range of validity.
Taylor series and approximations 95
(c) Obtain the Taylor series about x = 1 for the (a) By considering the first three terms, rediscover
function (1 + x)-, and state the range of validity. the conditions on /"(c) which determine the type of
stationary point (see (4.2)).
5.11. Suppose that /(x) has a stationary point at x = c. (b) By considering further terms of the Taylor series,
Write down the form of its Taylor series about x = c, extend the criteria to obtain a general rule which covers
taking this into account. the case /"(c) = 0.
Complex numbers
Contents
6.1 Definitions and rules 96
6.2 The Argand diagram and complex numbers 100
6.3 Complex numbers in polar coordinates 102
6.4 Complex numbers in exponential form 103
6.5 The general exponential form 105
6.6 Hyperbolic functions 107
6.7 Miscellaneous applications 108
Problems 109
x2 — 2x + 2 = 0
(x - l)2 = -2 + 1 = -1
x— \ = 1 or x=l+N/— 1.
x = 1 ± j
x = 1 + j, and x = 1 — j, or x = 1 + j.
ax2 + bx + c = 0, (6.1)
b bY b2
ax2 + bx + c = a[x2 + -x) + c = a\x-\- -he —
\ a J 2a)V 4a
6.1 Complex numbers 97
/ b\2 b2 — 4 ac
\ 2a) 4a2
2a ~ 2a
x = 4 ac).
2 a 1 2 a^ib
The roots are distinct real numbers if b2 > 4ac, equal and real if
b2 = 4ac, and complex numbers if b2 < 4ac. In the last case they
can then be written in terms of j as
x = - ± j - y/(4ac - b2),
2a 2a
z = x + jy,
where x and y are real numbers. In this expression x is the real part
of z, written as x = Re z, and y is the imaginary part, written as
y = Im z (note that it is y, not jy, which is called the imaginary part.)
If y = 0, then z is a real number, and if x = 0, then z is an
imaginary number.
We need to put together rules for manipulating complex numbers:
the rules are natural consequences of operations of addition, multi¬
plication, etc. on numbers containing j. The only exception to
normal algebra is that, whenever j2 appears, we can substitute — 1.
Example 6.1. Express j2, j3, j4, j5, and j6 in standard form.
The standard forms are
Example 6.2. Express the following in standard form, and state the real and
imaginary parts in each case:
its real part being the sum of the real parts, and its imaginary part
the sum of the imaginary parts of zx and z2.
^ * + jy
This is not in standard form a + jb: to reduce it to standard form,
6.1 Complex numbers 99
x-jy
x-jy’
x-J y x-j y
z x+j y x-jy x2 + y2
x . y
J (from (6.2))
x2 + y2 x2 t y2
1 1 2 + 3j 2 + 3j 2 3
(b) — H-
2 - 3j 2 — 3j 2 + 3j 22 + 32 13 13
1 “j_ 1-j 1 — j _ 1 — 2j + j2
(c) J^
1 +j 1+j 1-j l2 + l2
1 1 -j _ _ ■
(d)
J J
Zi _ Ui +iyi)(x2 - jyi)
z2 (x2 + iyiK^z -jy2y
Example 6.4. Find the standard form of the complex numbers (a) z1 + z2, (b)
2zj — 3z2, (c) ZjZ2, (d) zj/z2, where z1 = — 1 + 2j and z2 = 2 — 3j.
(a) z, + z2 = (-1 + 2j) + (2 - 3j) = 1 - j.
(b) 2zj — 3z2 = 2( — 1 + 2j) — 3(2 — 3j)
= -2 + 4j-6 + 9j= -8 + 13j.
(c) ZjZ2 = (-1 + 2j)(2 - 3j)
= -2 + 4j + 3j - 6j2 = -2 + 4j + 3j + 6 = 4 + 7j.
100 6.1 Mathematical techniques
(d) First
zf = -3 - 4j _ ( — 3 — 4j) (2 + 3j)
z2 2 — 3j (2 — 3j) (2 + 3j)
_ — 6 — 8j — 9j — 12j2
4 — 6j + 6j — 9j2
_ 6 - 17j _ 6 17 .
“ 4 + 9 _T3_l3J'
(a) zx + z2 = Zj + z2.
we do not have to work the whole thing out first and then find the
conjugate. These rules become important later.
y
A complex number z = x + jy can be regarded as a pair of real
P: (x,y), representing
numbers (x, y) known as an ordered pair. The pair of numbers
can be interpreted as the cartesian coordinates of a point in the
plane in the usual way. The complex number z = x + jy has
an abscissa x and an ordinate y. In Fig. 6.1, the x axis is known as
the real axis and the y axis is the imaginary axis. The number
z = x + jy is represented by the point P : (x, y). A figure showing
complex numbers is known as the Argand diagram of the complex
numbers.
The length OP = r = J(x2 + y2) is called the modulus of z (or
Fig. 6.1 The Argand diagram. simply ‘mod z’) and written |z|.
6.2 Complex numbers 101
|1 — 3j| _ 710
(that is, the same as (e)).
|3 - 2j| 713
The following results hold good for the modulus; they are
illustrated in Example 6.6 above.
The identity (6.4b) follows directly from (6.2). We shall defer the
proof of (c) and (d), but the truth is illustrated in Example 6.6c,d,e,f.
A sum or difference cannot be split in this way: contrast the results of
Examples 6.6a and 6.6b.
The sum of two complex numbers can be interpreted by the
parallelogram law of addition in the Argand diagram, as in Fig. 6.2.
Construct a parallelogram on OPx and OP2, where P1 and P2
correspond to the complex numbers zl and z2. The corner P of the
parallelogram represents the sum zl + z2. This follows from the
Fig. 6.3 Argand diagram showing z addition rule for complex numbers. If you know anything about
and its conjugate z. vectors, you will recognize that complex numbers add like vectors.
102 6.2 Mathematical techniques
— n < Arg z ^ n.
cos 9a = -,
x ■ a
sin 9 = y
-,
r r
Example 6.7. Find the moduli and principal values of the arguments of the
following complex numbers: (a) Z[ = 2j; (b) z2 = — 1 — j; (c) z3 = — 2; (d)
^4 = 2 +i)V3'
The moduli are given by:
(a) |zfl = |2j| = 2;
(b) |z2| = |-i -j| = V(i + i) = V2;
(c) |z3| = |-2| = 2;
(d) |z4i = ii+iiV3i = va +1) = i.
A sketch of the Argand diagram for the complex numbers helps to decide their
arguments. Figure 6.4 shows their locations. Thus
(a) Arg z1 = 0j = ire; (b) Arg z2 = d2 = -frc; (c) Arg z3 = 03 = n; (d) Arg z4 =
04 = 3tr.
In Fig. 6.1, the coordinates (x, y) and the polar coordinates (r, 9)
are related by
x = r cos 9, y = r sin 9.
Hence the complex number z = x + jy can be written
z = r cos 9 + jr sin 6 = r(cos 9 + j sin 9), (6.5)
which is the polar form of the complex number z. Note that r ^ 0.
Example 6.9. Obtain (a) |cos 0 + j sin 0|; (b) 11 /(cos 0 + j sin 0)|.
(a) |cos 0 + j sin 0\ = (cos2 0 + sin2 oji = 1.
(b) |l/(cos 0 + j sin 0)| = l/|cos 0 + j sin 0\ (by (6.4d))
= 1 (from (a)).
d f(9)
--= — sin 9 + j cos 9 — j(cos 9 4- j sin 9) = jf(9).
for some value of k. In particular this must be true for the value
0 = 0, from which k = 1. Hence, we obtain the important result
applying the rule of replacing j by —j. Hence, from (6.5), any complex
number can be written in the exponential form (‘Euler’s formula’)
Example 6.10. Express the following in standard form (a) 2 einj; (b) 3 e nj; (c)
e3*j; (d) 2e~i"j; (e) 3e±”j.
Remember that, in re's, the numbers r and 9 are polar coordinates. For these
simple cases, we can therefore put the points straight on an Argand diagram
and read off the coordinates, without needing to work out cos 6 and sin 9.
(a) r = 2, 9 = \n (90°). Hence 2 ei7tj = 2j.
(b) r = 3, 9 = — 7i (- 180°). Hence 3 e“J" = —3.
(c) r = 1, 9 = 3tl Hence e3,tj = — 1.
(d) r = 2, 9 = —in (-90°). Hence 2 e~inj = -2j.
(e) r = 3, 9 = kn (45°). Hence 3 e^ = i/2 + ji/2.
(6.10)
De Moivre’s theorem
In each example, we put r cos 0 equal to the real part and r sin 9 equal to the
imaginary part of the given complex number. In each case we shall find 9 by
plotting the point on an Argand diagram.
(a) r cos 9 = 0, r sin 0=1. Hence r = 1 and, in the interval —n<9^n, we obtain
9 = \n. The exponential form is
j = eh*.
(b) r cos 9 = 0, r sin 9 = — 5. Hence r = 5 and 9 = — ^jt. The exponential form
is
— 5j = 5 e"h’T.
-3 = 3ej\
Hence
4 — 4j = 4^/2 e~4jIt.
(e) r cos 0 = 3, r sin 0 = —4. Hence r = ^/(9 + 16) = 5 while the angle a is the
principal argument such that
cos a = f, sin a = — f.
3 - 4j = 5 eja.
-1 + j = V2e^.
Then
(-1 +J)"8 = (V2e^jr8 = (V2)~8e-67tj = ^e-6nj.
On an Argand diagram the polar coordinates are r = yj and 0 = —671= ■— 3(27t).
This value of 0, equivalent to 3 complete revolutions, puts us on the positive
real axis again, so that
("I +J)'8=T6-
The real and imaginary parts of the two sides of the equation must be
respectively equal, and so we have the result immediately.
it follows that
=!ii!
-2 N
eJ"' _ ej(9,-<m
z2 r2 er2
Therefore
zi = 1 = ]£i!
z, r2 |z2|’
as required.
z = c ep+iq,
Write this in the form of (a) the imaginary part of a complex function; (b) the
real part of a complex function.
y = Im z = Re(—jz).
Therefore
= Re(c
It follows that
by (6.10). Similarly
e2" + le1 + 1 = 0,
or
Hence
Here we have considered all the representations of the number —1, in the
form e(2n+ 1)7tj. It is important when finding all the roots of an equation to include
all possible arguments, not just the principal one. By matching the exponents,
the roots are
r$ gSjfl _ 2f gj^(-J+2n)
or
Five successive values of n give distinct roots: other values of n merely duplicate
existing roots. In full, the roots are
1
z" = cos nO + j sin nO, = cos nO — j sin nO.
Hence
(2 cos 0)6 = I z + - 1 ,
= z6 + 6z4 + 15z2 + 20 + ^ + 4 4-
+ 46
z z z
+ i) + 6(-'4 + ?)+15(:! + ?) + 2°
= 2 cos 60 + 12 cos 40 + 30 cos 20 + 20,
We can also use the polar form to sum certain series as in the
following example.
A0)=E~-
n=0 n\
the real part of whose sum is the required sum /(0). Thus
(eje)2 (eje)3
S(0) = 1 + ejfl + + +
2! 3!
using the formula (5.4a) for the power series of the exponential function. Thus
Problems
6.1. (Section 6.1). Find the roots of the following quad- (a) x2 + 2x + 5 = 0; (b) x2 - 6x + 10 = 0;
ratic equations: (c) -’c" + 2jx + 3 = 0.
110 Mathematical techniques
6.2. (Section 6.1). Find all the complex roots of x4 + 6.11. (Section 6.4). Express the following complex num¬
3x2 -4 = 0. bers in exponential form with principal arguments:
,\'2 + px + q = 0,
6.14. Let f(0) = cos 0 + j sin 0. Verify that
where p and q are real parameters. Of the real roots,
d 7(0)
where in the (p,q) plane do the roots which are both
d 02
= -m.
negative lie?
Show that it is still true if
6.5. (Section 6.1). Let z, = 3 — j and z2 = 1 + 2j. Find,
f(d) = a cos 0 + b sin 0,
in standard form, the complex numbers
where a and b are arbitrary complex numbers.
(a) Zj + z2; (b) z{z2; (c) zjz2, (d) zjz\.
(a) z| + z2; (b) zxz2, (c) zx/z2, (d) zjz2. 6.16. Find all the complex roots of the following equa¬
tions:
(a) cosh z = 1; (b) sinh z = 1;
6.7. Let z = l+j. Find the following complex numbers
in standard form and plot their corresponding points (c) e2 = — 1; (d) cos z = ^2.
in the Argand diagram:
6.17. The logarithm of a complex number z = r eie is
(a) z; (b) z2; (c) z2; (d) 1/z; (e) z/z. defined by
log z = In r + jO,
6.8. (Section 6.5). Three complex numbers are given
by z,=2e1+j, z2 = 3e“j, and z3 = ^e_1+2j. Express which will be a multivalued function because of the
the following complex numbers in standard form: term j0. The principal value of the logarithm is denoted
by Log z (note the capital letter L), and defined by
(a) z, + z2 + z3; (b)z,z2 + z3; (c) z,z2z3;
(d) z,z2/z3; (e) z2z2 — 2z2. Log z = In r + j0,
where n < 0 ^ n.
6.9. (Section 6.3). Find the modulus and principal argu¬ (a) Find the principal value Log(l + j%/3), and indic¬
ment of each of the following complex numbers: ate its location on the Argand diagram.
(b) Find all roots of the equation log z = jij.
(a)z, = -2 + 2j; (b) z2 = 4 - 4^/3j; (c) z3 = — 5j; (d)
z4 = -3; (e) z5 = 3 + 4j. (c) Express Log(ej) in standard form.
(d) Show that e'08 2 = z.
6.19. (Section 6.4). Find all complex roots of z5 = — 1, 6.25. Show that the mapping
and sketch their locations on the Argand diagram.
c
w = z + -,
z
6.20. (Section 6.5). Find the modulus, argument, real
and imaginary parts of each of the following complex where z = x + ]y and w = u + ju and c is a real number,
numbers: maps the circle |z| = 1 in the z plane into an ellipse in
the w plane; and find its equation.
(a) 2e3 + 2j; (b) 4ej; (c) 5ecosFt + jsini’'; (d)e1+j.
Matrix algebra
/ Contents
7.1 Matrix definition and notation 112
7.2 Rules of matrix algebra 113
7.3 Special matrices 118
7.4 The inverse matrix 122
Problems 126
12-1
0 3-4
an an n
a21 a22
= [fly], (1 < i < m, 1 < j < n),
aml am2
where atj is the element in the ith row and jth column of A; or by
A = [iau:i= 1 l,...,n],
or simply
A = [fly],
for brevity, if it is clear in context that the matrix is m x n.
7.1 Matrix algebra 113
-1.1
[1.3 2.9 4.6] and 6.5
-2.0
a b ~e f
A = and B =
c d _lj h_
Since A and B must have the same elements, if follows that x = 1 and x2 — y = 2.
Hence, y = x2 — 2 = — 1. The solution is x — 1 ,y— — 1.
Example 7.2. If
” 1 3~ " -4 -6
A- 2 2 and B =
1
_3 1_ _ —6 -4.
We have
1
ON|
1
U>
4^
LO
1
" 1 f
A + B = 2-5 2-5 = -3 -3 = -3 1 1
_3 - 6 1 - 4_ _-3 — 3_ _ 1 1_
Also
-4+1 -6 + 3~ ” -3 -3~
B + A = -5 + 2 -5 + 2 = -3 -3 A + B.
.-6 + 3 -4 + 1. _ -3 -3.
Further
1
ON|
-P^
” 1 3_
1
1
m
cn
A + 2B = 2 2 + 2
1
1
_1
'O
.3 1.
1
1 3 -12
2 2 + -10 -10 (by Rule 2)
3 1 -12 — 8 .
7.2 Matrix algebra 115
—7 -9
-8 -8
-9 -7.
A + B = B + A.
04
04
m
n -1 2i
1
A = 1_ B=
o
K>
1 0 - 1_
1
i
We have
04
CO
1-1 2~ "2
1
0 2 — 3_ _1 0 - 1_
04
0-1 2-0 —3 + 1_
1
Also
2A - 3 B
bu
A = [a n al2 fli3], B — b 2\
b3i
bn
b21
bn
an fl12 a i3
A = B = b2 i
_a21 a22 fl23_
b3i
The product AB is now a 2 x 2 matrix C given by
bu b 12
'ii 12 an
AB b 2\ b22
La21 22 fl23_
b3i
anbn + 6*12^21 + fli3^3i anb l2 + «n^22 + ai3b32
_a2lbu + <322^21 + a23bil a2\b\2 + a22^22 + fl23^32_
= C- (7.2)
Note that each row in A ‘operates’ on each column in B giving
four elements in the 2 x 2 matrix C.
We have
1 -1
AB =
2 1
7.2 Matrix algebra 117
Z<*
i= 1
where i runs through all the integers between the lower limit on i
under the £ symbol, and the upper limit above. Thus, for example,
8
Z = h3 + /i4 + h5 + h6 + h7 + h8.
i=3
Multiplication rule
The element in the ith row and j'th column of the
product consists of the row-on-column product of the
ith row in A and the yth column in B.
AB is a 5 x 5 matrix.
BA is a 4 x 4 matrix.
AC is not defined since A has 4 columns and C has 6 rows.
CB is a 6 x 5 matrix.
(AB)C is not defined since AB is a 5 x 5 and C is a 6 x 4 matrix.
CB is a 6 x 5 matrix; hence (CB)A is a 6 x 4 matrix.
Example 7.6. If
1 2
ri - i on
B = 1 2
1 2.
calculate AB and BA.
We have
” 1 2
'1 0~ 0 0~
AB = 1 2 —
_3 -2 -1 0 0_
_ 1 2
and 2
" 1 ‘7 _
1 1 0
BA = 1 2 —
7 _
3 2 -1
_ 1 2_ _7 —
The transpose of any matrix is one in which the rows and columns
are interchanged. Thus the first row becomes the first column, the
7.3 Matrix algebra 119
second row the second column, and so on. We denote the transpose
of A by Ar. Hence,
a a
i i 12
a a a
11 21 31
A = a a then At —
21 22
a a a
L. 12 22 32-1
a a
L 31 32J
3 l"
1 0 -r
, B1 = -1 2
2 1 1
0 — 2_
1 2" 3 l”
V 4 3"
(A + B1)1 = 0 1 + -1 2 -1 3
=
. -1 1_ 0 — 2_ / _ -1 - 1_
~4 -1 -1
= AT + (Bt)t = AJ + B,
3 3-1
( 1 2“ \T 5 3 -4'
3 -1 0
(AB)T = 0 1 —
1 2 -2
1 2 -2J
\ .-1 i_ . -2 3 — 2_
—
5 1 -2
= 3 2 3
-4 -2 — 2_
3 r 5 1 -2“
_1 0 -r
Bt^t = -1 2 = 3 2 3
_2 1 1
0 — 2_ _ -4 -2 — 2_
1 3 -2
A = 3 2 4
-2 4-1
is a 3 x 3 symmetric matrix.
A square matrix A for which A = — AJ is said to be skew-
symmetric. Note that, if A is any square matrix, then A + A1 is
symmetric and A — AT is skew-symmetric. The elements along the
leading diagonal of a skew-symmetric matrix must all be zero. Thus
0 1 2
-10-3
-2 3 0
is skew-symmetric.
ai
a2
bJ = lbx b2 ... bj
Example 7.8. If
" 1 -1 2“ - x~ ~ 2~
A = 3 1 -4 , X = y , d= 1
- -1 2 1- - z- - -1-
find the set of equations for x, y, z represented by Ax = d.
The matrix equation in full is
3 1 -4 y = 1
1 2 1- - z- - - 1-
x — y + 2z " 2"
3x + y — 4z = 1
- —x + 2 y + z- - -1-
7.3 Matrix algebra 121
x — y + 2z = 2,
3x + y — 4z = 1,
— x + 2y + z = — 1.
1 0 0
A = 0 -2 0
0 0 3
1 0 0
h 0 1 0 (7.4)
0 0 1
Similarly \3A = A.
A need not be square: provided that the products are defined,
AI = A and IA = A for the appropriate identity matrix in each case.
If A is diagonal, as in
dx 0 0
A - 0 d2 0
0 0 d2
then
1-
1_
<N
o
o
0 ~d\ 0
a2 = 0 d\ 0 A3 = 0 d2 0 etc.
po m 1
"e
0 0 d\_ 0 0
1
l
O'
X
IN
A = d=
II
-1
1
d^
Cj
a\2
_a21 a22_ _*2_
or
1_
1
1 a22^l a\2^2
x = = Cd
1—
1_
X
to
alla22 ~ a2lal2 ^21^1 ^11^2
where
a22 — a 12
C = with det A = ana22 — fl2ifli2-
det A ~a21 in
If Ax = d is multiplied on the left by the inverse A \ then
A 1 Ax — \2x = x = A yd.
1 l22 — Cl 12
A'1 = C = (7.7)
det A — a 21 lll J
It is worth remembering the rule for 2 x 2 matrices by which A 1
can be constructed from A.
ai i an
det A = det
_Cl2i «22_r
or, more briefly, as
a21 a22
Since det A # 0, then A is nonsingular. Its inverse is, by the rule above,
4 -3
=4
1
Example 7.10. If
1 3 1 2"
A = B =
-1 4_ 1 -1
Hence
4 -3 1 -2
A'1 =k B 1
1 1 -1 1
Also
1 3 1 2 '4 -1
AB =
-1 4 _1 -1 _3 -6
-6 f
(AB)'1 =
■3 4
Note that
-1 -2 4 -
B'A
-1 1 1
1 -6 1
'21
(-4B)
-3 4
This last result suggests the following correct rule for the inverse
of the product of two square matrices, namely
(AB)~l =
The result is
x = A~1 d,
where
with
-2 O'
B = -1 -1
1 1_
Check the matrix product BA :
1
O
O
BA=\ 2 -1 -1 -1 11 = 0 1 0
0
0
_0 1 1. .1 - 11 .
Hence B = A~ ’.
Note that we need only verify that either BA = I3 or AB = I3, not both. If
BA = I3, then AB = I3, and vice versa.
2 1 0
A = 1 -15
-1 -1 2_
126 7.4 Mathematical techniques
det A = 2 x [(— 1) x 2 — (— 1) x 5]
— 1 x [1 x 2 - (-1) x 5]
+ 0 x [1 x ( — 1) — (— 1) x (-1)]
= 2 x 3 - 1 x 7
= - 1.
3 -2 5~ " -3 2 — 5~
-7 4 -10 = 7 -4 10
_ -2 1 — 3_ 2 -1 3_
Problems
i
Find a matrix C such that A + C is the identity matrix 4
I3. Deduce that AC = CA. Find AC, and hence the 1
B = ' 4
matrix A2 + C2.
l
' 2j
1 3
7.14. (Section 7.4). Using the rule for inverses of 2 x 2
-1 2 matrices, write down the inverses of:
0 1^ 1 2 3
(a) (b)
Write down AJ, and find the products AAr and ATA. -1 -7 11
1
O
1 O'
1
7.10. (Section 7.3). If (c) * (d)
— — 8 0
—
_0 —2_
1 -1 2 X
f —99 1001
A = 0 1 , X = y ’ (e)
97 98_
2 -3 7
d= 0 0 10 0
-1 0 0 10
A =
write down the set of equations defined by Ax = d. 10 0 0
Confirm that the same set of equations is given by 0 0 0 1
xTAr = d\
Thinking about the row-on-column rule for matrix
7.11. (Section 7.3). Let multiplication, can you guess the columns in the inverse
matrix A-1? How would this rule generalize to the
1 0 0
matrix
A = a -1 0
0 a 0 0
b c 1
0 0 b 0
A = 9
Find A2. For what relation between a, b, and c is
c 0 0 0
A2 = I3? In this case, what is the inverse matrix of A?
What is the inverse matrix of A2"-1 (n a positive 0 0 0 d
integer)?
7.16. (Section 7.4). Write down the set of equations
7.12. If given by Ax = d, where
2 0 1 0 1 1 X
A = 1 -2 2 , X = y
2-2 2
1_
_ 1 0 1_ z
O
1
1
128 Mathematical techniques
Contents
8.1 The determinant of a square matrix 129
8.2 Properties of determinants 132
8.3 The adjoint and inverse matrices 137
Problems 139
‘n ‘12
A =
Lu21 **22
*' n **12
det A — — **11**22 a2lal2• (8.1)
a2\ a22
(The notation \A\ is also used extensively for the determinant.) For
the 3x3 matrix
In (8.2) there are six terms, each of which is the product of three
130 8.1 Mathematical techniques
aljia2j2a3j3’
+ an(a2ia32 ~~ a3la22)-
a 11 a 12 a113
>
*31 u3 2 *33
22 a23
C 11
32 a33
where the signs attached should be noted. In the same way the
cofactors of the elements in the second and third rows are defined
as follows:
_ «12 a 13 au a13 _ An a 12
^21 — 5 ^22 ~ > Q23 9
a32 a 33 a31 a33 a31 a 32
+ - +
- + - .
+ - +
2 k
det A = 2—1 3
4 -2
1 3 2 2
= 1 x —2 x +k x
4 -2 -1 -1
= 1 x (2 - 12) - 2 x (-4 + 3) + k x (8 - 1)
Hence det A = 0 if k = §.
a21 a31
and all terms in this expansion can be identified with those in (8.2).
Hence det AT = det A.
det + = 0 -4
0-2 5
Since the determinant has two zeros in the first column, it is advantageous to
use Rule 1. The determinant of the transpose of A is given by
1 0 0
det AT = 28 1 -2
-29 -4 5
8.2 Determinants 133
which now has two zeros in the first row. Hence the expansion by the top row
becomes particularly easy:
1 -2
det Ar = 1 x = 5 - 8 = -3.
-4 5
given by
+ a33a2lal2 — a33a22all-
These are the same terms as those present in (8.2) except that the
sign of every term is changed. Therefore in this case
det B = —det A.
The same is true whichever row or column pairs are exchanged.
The rule applies to a determinant of any order.
example,
+ a33(alla22 ~~ al2a2l)
Here the elements a31, a32, a33 constitute the third row, and we call
this the expansion of det A by the third row.
It can be shown that the expansion can be written down similarly
using any row or column. Thus
Since column 3 contains three zeros, expand by this column. The cofactor of
the element in row 3, column 3, is the 3x3 determinant obtained from A by
deleting the third row and third column in A. It is associated with a + sign.
Hence
1 3
det A = 2 1 0 (remember the sign rule)
2 1
(expanding by row 2)
99 18 63 11 2 7
-2 3 4 -2 3 4
0u a12 013
(expanding by row 3)
an 012 013
= det A + k 021 022 023 9
01 1 012 013
= det A,
decision is taken at each step in the light of the new matrix. By Rule 5, these
operations do not affect the value of A. Hence
2 99 -99
999 1000 1001
1000 1001 998
2 0 -99
999 2001 1001 (C2 = C2 + C3)
1000 1999 998
2 0 -99
-1 2 3 (r2 = r2- r3)
1000 1999 998
2 0 -99
fc'l = Cj - |c
-2 2 2
\C3 = C3 - jc
0.5 1999 —
1.5
2 0 -93
-2 2 -4 (c3 = c3 + 3cj)
0.5 1999 0
= 387 899.
Note that while r2 = r2 + kr3 does not affect the value of the
determinant, r'2 = kr2 + r3 will change its value by a factor k.
Cn C21 C31
adj A = Q2 C22 ^32 (8.4)
_ Cl 3 ^23 ^33 _
i _ adj^ A
det A ’
a2l^-l 1 + @22^12 + a23^13 a21^-21 T a22^22 + a23^-23 Cl21 ^31 A U22^32 4" a23^33
det A
A- a32^~ 22 A a31^3l + CI32C32 T a33^33-
_ fl31^1 1 + 032^12 @33(^13 @3 l ^2 1 ”1” U33C23
det A 0 0
1
0 det A 0 = I3, using (8.4).
det A
0 0 det A _
This confirmation uses the results that the sum of the products
of the elements of one row and their cofactors is the value of the
determinant whilst the sum of the products of one row and the
cofactors of another row is zero.
" 1 2
A = 0 1
- 1 -1
Hence
" -3 5 -1"
1 -1 -1 1
A~l = 4
_ -1 3 1_
(a) (determinant of A)
a31 a32
(b) (adjoint of A) (8.5)
Cm C3I
adj A = Ci 2 ^22 C32
A-1 _ ad-M
det A
Problems
1 0 1 12 10 0
1 2
0 1 0 (f) 0 12 10
(a) (b)
1 3
1 0 1
0 0 12 1
0 0 0 12
1-1 2
2 3 4 -l 2 3
2 1 0 -1
(a) 4 6 8 ; (b) 3 1 -2
0 0 2 0
(d) •> 1 -1 2 -2 -3 -1
3 -1 2 1
0 1 -1 1 a b C
(c)
0 10 0 0
a—b b—c c—a
10 0 0 0
(e) 0 0 0 0 1 1 1 1
0 0 10 0 (d) 3 0 0
0 0 0 10 5 0 0
140 Mathematical techniques
a2 b2 1
c a b
represents the equation of the straight line
what is the value of through the points (a,, br) and (a2, b2) in the (x, y) plane.
a3 ab ac2
If Jfj and X2 are the cofactors of x and y, what
is the slope of this line in terms of the cofactors? Using
ab c ac this method, find the equation of the straight line
through the points:
ac a be
(a) (1,-1) and (2, 3); (b) (- 1, 0) and (4. - 1).
in terms of A?
8.8. Find the value of a which makes the determinant
8.4. Simplify first and then evaluate the following deter¬ 1 1-1
minants:
I a 2
99 100
II 2
(a) 98 102
equal to zero.
-1 2
8.9. Explain why
77 84
x 2 -2
(b) 75 87
2 x 3 =0
1 -2
X — 1 X
2 -1 1
will be at most a cubic equation in x, but that
(c) 99 98 55 1 1 2
200 197 3 x 2 = 0
87 84 83 81 X 1 X
1 i 1 a3 1 a32 a 33
has factors b — c, c - a. and a — b. Express the value of a3i °12 «33 a3i a32 <*33
A as the product of factors.
8.11. The determinant
p o Q
•-1-'-1-♦-1---
-2-10 1 2 x
Example 9.1. A pedestrian wanders up and down the high street, which extends
east and west. Starting at the bus stop, she strolls 80 m east, 25 m west, 50 m east,
then races 100 m west, at which point the returning bus drives off. Where was she,
relative to the bus stop, at this timel
JV
w £
80 m
1 25 m
1 A C
CL 1
o 1
11 50 m
m 1
1 F 100 m
L _i
Fig. 9.2 5m
There is no difficulty about this question: Fig. 9.2 shows that she ends up east
of the bus stop with 5 more metres to go. Notice how natural it is to count one
direction as positive and the other as negative. We shall formalize this,
because can get useful illustrations about handling displacements from this
problem.
B F D C . E
4 m I i i 1 i•i I^J i•I_J—
O x
f'9* 9.3 (in io m steps)
In Fig. 9.3 we have drawn an east-pointing axis .x. The origin is at O (it will
make no difference where it is) and the bus stop is at B. The direction changes
at C, D, E, and the end-point is F.
We want to find the displacement of F from B. This is defined by xF — xB.
Write it in the form:
xF- xB = (xF - xE) + (xE - xD) + (xD - xc) + (xc - xB)
which is identically true because xE, xD, and xc cancel out. The quantities in
the brackets are relative displacements: for example, (xD — xc) represents the
displacement of D relative to C.
The data of the problem consists of these displacements; all we have to do
is to get the signs right. For example, since we chose the positive direction to
be east, and the movement from C to D is west, the displacement of D from C
is —25. By substituting all the information we obtain
xF - xB = 80 + (-25) + 50 + (-100) = 5.
We did not need to know the actual coordinates of any of the points B
to F; the position of the origin O makes no difference to relative displacements.
Displacement of Q from P = xQ — xP
(a) Go 50 km east;
(b) continue 20 km north;
(c) continue 20 km north west to D.
The navigator can plot the route as in Fig. 9.4. The axes point
east and north for convenience, and the origin 0 may be anywhere
we please. The three stages are drawn to scale, with their directions
indicated by the arrowheads.
Each instruction prescribes a displacement in two dimensions
relative to the initial point of each stage. A notation for the
displacements is
AD = CD + BC + AB.
AD = AB + BC + CD,
or reorder them in any other way: the boat will still arrive at the
same point. This is true for any number of displacements.
y Example 9.2. Figure 9.6 shows the track of the ferry boat again, (a) Find the
x displacement q displacement vector AD in component form, (b) Express AD in terms of its length
^ y displacement
jy = 50 + 0 - 20/^2 = 50 - 20/^2,
= 49.5 (km).
ax = bu a2 = b2, a3 = b3.
JC = PB = b
a + b = PA +AC = PC.
For subtraction.
a — b = a + ( — b), (9.9)
which is illustrated in Fig. 9.11b using the triangle rule and in Fig.
9.12b using the parallelogram rule.
Also,
a + b = b + a. (9.10)
z
We can also use brackets in the usual way:
a + (b + c) = (a + b) + c. (9.11)
(a + b) — (c + d) = (b — c) — (d — a).
a + b = (al + bu a2 + b2).
\a — b\ = magnitude of a — b
= _ M2 + («2 - M2]-
Example 9.4. M is the midpoint of the side AB of the triangle PAB (Fig. 9.13).
Put PA = a and PB = b. (a) Express the vector PM in terms of a and b. (b)
Deduce that the diagonals of a parallelogram bisect each other. (You can think
of this in two dimensions, but it applies equally in three.)
(a) PM = PB + BM (triangle rule)
Fig. 9.13 M is the midpoint of AB. Also BA = BP + PA (triangle rule; note the direction of BP)
= — PB + PA (see (9.6)).
= —b + a (ii)
Substitute for BA in (i):
PM — h + )f — b + a)
B (b) In Fig. 9.14 we have added a fourth vertex D to form a parallelogram. The
point N is the midpoint of PD. Then
FiV = \T5
= \(a + b) (parallelogram rule).
TN = FM,
Fig. 9.14 N is the midpoint of PD.
so the mid-points of PD and BA coincide.
Example 9.5. (In two dimensions.) In the (x, y)-plane, a and b are two vectors
which are not parallel, and c is another vector, (a) Prove that c = la + pb, where
X and g are constants, (b) Find X and g when a = (1, 1), b = (2, 0), and c = (3, 4).
(a) Take any point Q. Draw a, b, and c radiating from it, and then complete
B the parallelogram QBCA, as in Fig. 9.15. Then
c = QC = QA + QB (parallelogram rule).
But QA and QB point respectively in the directions of a and b so they are equal
to certain (unique) multiples of a and b.
QA = Xa and QB = gb,
(b) a = (1, 1), b = (2, 0), and c = (3, 4), so from (a)
1 = 21 + 3/i,
C = 8«+ lb
c — /m + iib, (9.12)
Example 9.6. (Figure 9.17) A river of width 0.2 km flows with uniform speed
3 km hr"1 from west to east. A boat sets off from a point S on the south bank,
wishing to land at a point N on the north bank directly opposite S. It can travel
at a speed of 5 km hr"1 relative to the water. In what direction should it point
in order to arrive at N by a straight line route? How long does it takel
N
T
I
I
Fig. 9.17
The true path of the boat (i.e., as seen from the bank, or relative to fixed axes)
is not along the direction it is pointing, because it is also being carried
downstream. However, viewed from axes which travel along with the water, it
does go in the direction it is pointing, at an apparent speed of 5 km hr-1. To
visualize this, imagine there is a dense fog, so that the banks cannot be seen and
the pilot is not aware of the current.
With B denoting ‘boat’ and W denoting ‘water’, put
VBW = — VW’
or vB = vBW + vw.
OP = r = (2, 3, 1)
Example 9.7. (Two dimensions.) A circle has radius c, and its centre C at the
point (a, b). (a) Obtain a vector equation for the circle, (b) Deduce the ordinary
cartesian equation.
(a) The circle is shown in Fig. 9.20. P is any point (x, y) on its circumference,
so its position vector in component form is
r = (x, y).
rc = (a, b).
k- rc\ = c■ (i)
This is the vector equation required.
(b) To turn (i) into x, y form write r and rc in component form:
which is the usual form for the equation of a circle. (This is not an efficient way
of obtaining it, of course. We are simply checking that (i) makes sense.)
9.6 Elementary operations with vectors 153
Example 9.8. Three points, A, B, and C (which do not lie in a straight line), have
position vectors a, h. and c. (a) Obtain a parametric vector equation for the plane
through the points A, B, C, (b) Deduce parametric cartesian, (i.e., x, y, z), equations
for the plane in the case where the points are A: (1, 2, 1), B: (2, 2, 0), C: (2, 1, 2).
(c) Deduce the ordinary cartesian equation for this plane by eliminating the
parameters occurring in (b).
(a) Figure 9.21 shows the points A, B, C, and their position vectors. The point
P: (x, y, z) with position vector r is any point in the plane through A, B, and
C. By the triangle rule
BA = a-b, BC = c-b, BP = r - b.
By using the result (9.12). which relates any three coplanar vectors, we obtain
BP = 1BA + pBC,
where 2, g are two constants which depend on the position of P. We find every
point r in the plane by letting the parameters 2, g run through all possible values
between — oo and + oo, so (i) is a parametric vector equation for the plane
Fig. 9.21 through A, B, C.
(b) Since r, a, b, c are position vectors, their components are given by the
coordinates of P, A, B, C, so equation (i) becomes
Take the vector (2, 2, 0) over to the right-hand side, and then match the x, y, z
components separately:
x = 2 — 2, y = 2 — g, z = 2 + 2g (ii)
where /. and g may take any values. These are cartesian parametric equations
for the plane.
(c) We obtain an x, y, z equation by eliminating 2 and g from the equations
(ii). From the first two equations we have
2= 2—x and g = 2 — y.
z = (2 - x) + 2(2 - y),
x + 2y + z = 6. (iii)
Equation of a plane
ax + by + cz = d, (9.14)
Example 9.9. (Three dimensions) Two points, A and B, have position vectors a
and b. (a) Obtain a parametric vector equation for the straight line joining A and B.
(b) Deduce parametric cartesian (i.e., x, y, z) equations for the case where the points
are A: (2, 2,-1) and B:(0, 1, -2). (c) By eliminating the parameter between the
equations in (b),find cartesian equations for this line.
(a) Figure 9.22 shows the points A and B and their position vectors a and b.
z
The point P:(x, y, z) with position vector r represents any point on the line
joining AB. Also,
AB = b — a, and AP = r — a.
AP = XAB,
or r — a — X(b — a).
Therefore
r = (1 — X)a + Xb. (*)
= (2 - 22, 2 - 2, - 1 - 2).
x = 2 — 22, y = 2 — 2, z = — 1 — 2. (ii)
These are parametric cartesian equations, in which the parameter ranges from
— OO to +00.
(c) In order to get rid of the parameter 2 in (ii), write them successively in the
form
; _ x - 2 ; _ y - 2 ; _ z +1
Since the three fractions are equal (equal to the current value of 2) we obtain
the relation between x, y, z which holds on the line:
x — 2 y — 2 z+1
-2 ~~ -1 ~~
which simplifies to
-jx+ 1 = — y + 2 — — z - 1. (iii)
The shape of the result (iii) of Example 9.9 might strike you as being
peculiar. It really consists of two simultaneous equations, represent¬
ing two planes which intersect along the required line AB. The
expression cannot be reduced to a single equation. The general case
will be given in Chapter 10.
9.6 Elementary operations with vectors 155
2x — 2 = y + 1 = — 2z, (i)
(a) Find any one point on the line, (b) Find a parametric equation for the line.
(c) Find the coordinates of the point where the line crosses the plane
x — y + z = 0. (ii)
y = 22 — 3 and z = —A + 1.
x = A, y = 2A — 3, z = — A + 1. (iii)
(c) From (ii) and (iii), at the point where the line meets the plane the value of
A must be given by
0 = x — y + z = A — (2 A — 3) + ( — A + 1).
At this point A = 2, so from (i) again, the line meets the plane at
x = 2, y = 1, z = — 1.
a = V{M)2 + ®2 + ®2} = l-
The vector (1, 0, 0) is a unit vector; it points in the direction of
z the x axis, since if it is drawn as a position vector it would join the
2 , origin to the point 1 unit along the x axis. Similarly, (0, 1, 0) and
(0, 0, 1) are unit vectors in the y and 2 directions respectively. These
vectors have the special symbols 1, j, and k, and are called basis
vectors for the given coordinates:
1 = (1, 0, 0),j = (0, 1, 0), k = (0, 0, 1). (9.14)
(They are sometimes spoken of as ‘/-hat’, and so on.) Figure 9.23
shows them as position vectors.
Any vector can be expressed in terms of i, j, and k. Suppose that
a = (al9 a2, af) in component form. Then
= aj + a 2} + a2k. (9.15)
Fig. 9.23 Basis vectors, i,j., k. The components become the coefficients of 1, /, and k.
156 9.7 Mathematical techniques
= -¥-\l
The components of x are therefore (—|, — §, 0).
a = a/\a\,
Example 9.12. Obtain the unit vector pointing in the direction of the force
F=2i- 3/ - 6k.
F = (2i - 3j - 6k)/I = p - fy - f k,
p — ti
r — v7’ 7> 71-
Unit vectors
A unit vector is a vector of unit magnitude. The unit
vector in the direction of a is denoted by a (a-hat).
(a) If a is any vector, then
a = a/\a\. (9.i6)
(b) The vectors i, j, k (basis vectors) are the unit
vectors in directions Ox, Oy, Oz. If a = (au a2, u3)
is any vector, then
a = aj + ap + ci^k.
(For two dimensions, use only i and /.).
Example 9.1 3. Find the point Q where the straight line joining A: (2, 3, 1) and
B: (1,2,2) intersects the plane x + y + z = 0.
The position vectors of A and B, in terms of f, J, k, are a = 2/ + 3/ + k and
b = i + 2j + 2k respectively. Let r = xi + yj + zk be the position vector of a
general point on the line AB. Then from Example 9.9(a), the parametric equation
of AB is
x = 2 X, y — 3 — 7, z = 1 -f- X. (ii)
(2 - X) + (3 — X) + (1 + X) = 0.
x = — 4, y = —3,z = 7.
— 4i — 3/+ Ik.
K0 = + y(t)j + z{t)k.
T — dr(t)/dt. (9.17)
Derivative of r(t)
Example 9.1 4. (Motion in the (x, y)-p\ane.) The position vector of a point P is
given by
where c and to are positive constants. Find (a) the velocity v(t) and the speed
of P; (b) the acceleration a(t) of P.
(a) |r(f)| = cy/[cos2 cot + sin2 cur] = c, so P is moving around a circle of radius
c in the (x, y)-plane.
= —cu2r.
The acceleration is therefore directed towards the centre of the circle (perhaps
unexpectedly).
By using the chain rule, and writing 9 for d9/dt, we obtain from
(9.22) and (9.23) the time variation of e, and ee:
dejdt = 9ee and dejdt = -9er. (9.25)
This result is used in the following example.
Example 9.1 5. The polar coordinates of a point moving in a plane are r(t), 0(t),
where t is time. Find the polar components (a) of its velocity and (b) of its
acceleration.
(a) The position vector is r(t) = r(t)er. The velocity v is dr/df:
v(f) = dr/df = d(r<?r)/df.
Both r and er depend on 0, so we use the product rule for differentiation:
v = rer + r der/dt = re, + rOee (i)
Problems
9.1. Sketch the two-dimensional displacement vectors the same sense (positive direction), and similarly for Q Y
PQ and QP, and state their x and y components, when and QZ. The frame QX YZ is said to be a translation (a
the coordinates of P and Q are as follows. motion without rotation) of the frame Oxyz.
(a) P: ( — 2, 3), 0: (3,0), (b) P: (3, 4), Q: (2, 1), Suppose that ~OQ — (2, -1,3). (a) Find the coordi¬
(c) P: (0, 1). Q: (— 1, -2), (d) P: (- 1, -1), 0:(O,O). nates of the point P in QXYZ if it has coordinates
x = 5, y = 2, z = — 3 in Oxyz. (b) Find the equation
9.2. (a) to (h) represent two-dimensional displacement of the sphere x2 + y2 + z2 = 1 in terms of X, Y, and
vectors expressed in terms of their x, y components. For Z.
each one obtain the length, and the angle of inclination
0 to the positive direction of the x axis in the range — 180°
9.11. ABCD is any quadrilateral in three dimensions.
to 180 .
Prove that if P, Q, R, S are the mid-points of AB, BC,
(a) (3,0). (b) (0, 2), (c) (— 1, 1) (d) (1. 1),
CD, DA respectively, then PQRS is a parallelogram.
(e) (— 1, — 1), (f) ( — 3, 4), (g) ( — 3, —4),
(h) (-2, 1).
(Make sure that these angles are in the right quadrant 9.12. ABC is a triangle, and P, Q, R are the mid-points
by means of a rough sketch.) of the respective sides BC, CA, AB. Prove that the
medians AP, BQ, CR meet at a single point G (called
9.3. Obtain the components of the vectors a in (a) to the centroid of ABC', it is the centre of mass of a uniform
(d) , where L is the magnitude and 0 the angle made triangular plate.)
with the positive direction of the x axis (—180° < d ^
180"): (a) L = 2, 0 = 45°, (b) L = 3, 0 = 120°, (c) L = 3,
0 = 60', (d) L = 3, 0 = -150°. 9.13. Show that the vectors OA = (1, 1, 2), OB = (1, 1, 1),
and OC = (5, 5, 7) all lie in one plane. Show that the
9.4 Two ships, and S2 set off from the same point same is true if OA = (a, a, p), OB = (b, b, q), OC = (c, c, r),
Q. Each follows a route given by successive displace¬ where a, b, c, p, q, r may stand for any numbers. Explain
ment vectors. In axes pointing east and north, S, follows this result geometrically.
the path to B via OA — (2, 4), and AB = (4, 1). S2 goes
to E via QC = (3, 3), CD = (1,1) and DE = (2, —3).
9.14. A glider is moving with a velocity v = (40, 30, 10)
Find the displacement vector BE in component form, the
relative to the air and is blown by the wind which has
distance BE, and the final bearing of S2 seen from S,.
velocity relative to the earth of w = (5, — 10, 0). Find the
velocity of the glider relative to the earth.
9.5 Find the distances between the pairs of points whose
coordinates are: (a) (0, 0, 0) and (1, 2, 3), (b) (1, 2, 3) and
(3, 2, 1), (c) (1,0, -1) and (-1, 1,0). 9.15. The captain of a boat at night can tell that it is
moving relative to the sea with velocity (5, 4) km hr-1,
9.6 State the projections on the three axes of the vector and by observation of lights on shore its true velocity
PQ when P is the point (1, 2, 1) and Q is (2, 3, 3). is found to be (4, 1). What is the velocity of the current?
9.19. Find the angle 6, where 0^0^ 180°, made by 9.26. Find the cartesian equation of the planes passing
the position vector r with the positive directions of the through the following points: (a) (1,0, 1), (0, 1, 0), (0, 0, 1),
axes Ox, Oy, Oz in the following cases: (a) r = (1,0, 0), (b) (0,0, 0), (1,2, -1), (2, 2, 2).
(b) r = (0, 1, 1), (c) r = (0, 0, -1), (d) r = (1, 1, 1), (e)
<• = (1, 1,-1). 9.27. Find the shortest distance from the origin of the
line given in vector parametric form by r = a + th,
where a = (1, 2, 3), b = (1, 1, 1), and t is the parameter.
9.20. P: (1, 1.0), Q: (1, 1, 1), and R:{ 1,2, 1) are three of
(Hint: use a calculus method, with t as the independent
the vertices of a parallelogram with sides PQ and
variable.)
PR. Use vector methods to find the coordinates of (a)
the fourth vertex. S, (b) the mid-point of PS, (c) the
9.28. For each of the following cases find a unit vector
mid-point of QR. Show that (b) and (c) have the same
which has the same direction as a, and a unit vector
coordinates (it is where the diagonals intersect).
which has the opposite direction, (a) a = (3, 4, 3), (b)
Find the mid-points A, B, C, D of the four sides
a = 2i + 3j + 6k, (c) a = (— 1, — 1, 2), (d) a = i — 2j + k,
PR, RS, SQ, QP respectively. Show that ABCD is a
(e) 3i - 6j + 3k.
parallelogram.
9.36. a and h are two position vectors. Find in terms of 9.39. A particle describes an elliptical plane path with
a and b a position vector which bisects the angle position vector r — ia cos cot + jb sin cut, where t is time
between them. and co, a, b are constants. Show that the acceleration is
always directed towards the centre.
9.37. An aircraft A is flying along a path given by the
position vector 0.41/ + 148r/ + 0.99/r, where t is the
time in hours, and distance is in km. Another aircraft, 9.40. The position vector of a particle is given in polar
B, takes ofT from an airfield at the origin 0 at time coordinates by r = sec t, 0 = t. Sketch the path for
f = 0 and follows the path given by the position vector 0 < t < jn. Find the radial and transverse components
lOOrf + 250tj + 250tk. (a) Show that A and B are moving of acceleration.
along straight lines at constant speeds, and find the
speeds, (b) Show that a near miss between A and B will
9.41. The position vector of a particle P is given by
occur, and find the time that this happens.
9.38. Two moving points A and B have position vectors r = ia cos cot sin vt+j sin cot sin vt + ka cos vt,
rA(t) = xA(t)t + yA(t)j + zA(t)k and rB(t) = xB{t)i +
yB(t)j + zB(t)k respectively, which depend on the time t. where a, co, v, are constants and t is time. Show that P
(a) Show that the velocity of B relative to A is drB(t)/dt — moves on a sphere of radius a. Find the velocity of the
drA(t)/dt. (b) Suppose that the two points are A: (t, — t2, t) particle and show that its magnitude is a(v2 + co2 sin2 vt)*.
and B: (f3, 2f2, 1 + 31). Find the velocity of B relative to Deduce that the minimum speed occurs at the highest
A and the velocity of A relative to B. (c) Find the time and lowest points of the sphere, and find where the
t at which the relative speed is a minimum. maximum occurs.
The scalar product
Contents
10.1 The scalar product of two vectors 163
10.2 The angle between two vectors 164
10.3 Perpendicular vectors 165
10.4 Rotation of axes in two dimensions 167
10.5 Direction cosines 167
10.6 Rotation of axes in three dimensions 169
10.7 Direction ratios and coordinate geometry 171
10.8 Properties of a plane 173
10.9 General equation of a straight line 175
10.10 Forces acting at a point 176
10.11 Curvature in two dimensions 178
Problems 180
(It is necessary to write the dot, because there is also another form
of product, called the vector product.) The dot product is not a
vector, but an ordinary number, or a scalar quantity. Some simple
properties are:
Therefore
BA = a — b,
and the lengths of the sides of the triangle ABP are given by
\PA\ = |a|, \PB\ = \b\, \BA\ = \a — b\.
or cos 9 = a"b/\a\\b\.
If a and b are not at the same point to start with we may still
refer to 9 as being the angle between them. The result (10.4b) can
also be written in the form cos 9 — a-b where a and b are the unit
vectors in the directions of a and b.
Example 10.3. Given three points A: {l, 1, 1), B:(3,2,3), and. C:(0, —1, 1),
find the angle 9 between CA and CB.
Put C4 = a, CJ3 = b.
From (10.4),
ab _ 9
cos 9 = = 0.858.
H^rvno
Finally 9 = 30.9°
Example 10.4. Show that the vectors a = (1, 2, 3) and b = ( — 5, 1, 1) are per¬
pendicular.
We have
and
a-b = (1, 2,3)• (— 5, 1, 1) = -5+ 2 +3 = 0.
Therefore
9 = 90°, by (10.4).
Perpendicular vectors
If a and b are nonzero vectors, they are perpendicular if ‘
Scalar products of i, j, k
(a) i-i=j-j=k-k = 1;
i-j = j-k = k-i = 0.
(10.8)
(b) The components of any vector a are given by
= i-a, a2 = j-a, a3 = k-a.
Example 10.5. Find the numbers a, /?, and y which make the vectors
mutually perpendicular.
We require that a-b = b-c — c-a = 0.
a + P = 2, (i)
- P - y = -1, (ii)
a + 2y = 1 (iii)
a = i + j + 2k, b = i +j — k, c — i ~ j.
10.4 The scalar product 167
Therefore
i = /cos 9 — /sin 9,
XI + YJ = xi + yj
Fig. 10.2 (a) Change of axes in 2 = x(I cos 9 — J sin 9) + y(/sin 9 + J cos 9)
dimensions, (b) The associated
unit vectors. — (x cos 9 + y sin 9)1 + ( — x sin 9 + y cos 9)J.
OP = r = (a, b, c).
Fig. 10.3 Angles made by OP The angles between r and /, j, k respectively (chosen for definite¬
with the axes. ness between 0° and 180°, as for 9 in Section 10.2) are a, /?, y. These
168 10.5 Mathematical techniques
These are called the direction cosines of r, and also specify the
direction of r uniquely.
Referring to Fig. 10.3,
Also
l = cos a = a/\r\, m = cos f = b/\r\, n = cos y = c/|r|.
Therefore
l2 + m2 + n2 = cos2 a + cos2 /? + cos2 y
= (a2 + b2 + c2)/|r|2 = 1.
Example 10.6. Obtain the direction cosines of the vector s = i + 2j — 2k. Find
the angles between s and the coordinate axes.
The components of s are (1,2, —2), so its length is given by
s = Vfl2 + 22 + ( —2)2] = 3.
Therefore
1 0.5 The scalar product 169
By inverting our view of the two sets of axes, we can also specify
the components of i,j, k in the axes OXYZ:
/
/ in the axes Oxyz. We need to find the components of r in the axes
/
/ OXYZ. By substituting
/
/
/ i = ij + l2J + l3K, etc.
\
(l-^x + m^y + nxz, l2x + m2y + n2z, l3x + m3y + n3z). (10.12a)
\
\
The inverse relation is obtained in a similar way. Given a fixed
X
point Q, with coordinates (X, Y, Z) in the axes OXYZ and position
Fig. 10.4 (a) Change of axes in 3 vector /?, then
dimensions, (b) Angles between
i and the X, Y, Z axes. R = (X, Y, Z) = X/+ YJ+ ZK.
[x t m\ ni\( x\
(a) Y = m2 n2 y (10.13)
\z, \ m3 nj\ z)
( X^ / h iA/x\
(b) y m2
\J \ n2
Example 10.7. In axes Ox, Oy, Oz, l— (^, —f, f), J = (f, — f, —f), K =
(§, §, j) are perpendicular unit vectors which are basis vectors for a new set of
axes. Find the new coordinates of the point P: ( — 3, —3, 3).
From (10.13), the new coordinates are
i2 m2 and m2 m3
are inverse matrices, where /= (/,, mx, nx), J= (/2, m2, n2) and K - (/3, m3, n3)
are mutually perpendicular unit vectors.
(b) Find the equation of the plane 3x + 3y + 3z = 1 in the new axes, using
the basis vectors given in Example 10.7.
l\ + l\ + li mi + m\ + m\, n\ + n\ + nj,
all of which are equal to unity since /, J, K are unit vectors. The other elements
have the typical form
All of these are zero because /, J, K are mutually perpendicular. Therefore, the
product is the unit matrix.
10.6 The scalar product 171
= X - Y+5Z.
X - Y+ 5Z = 1.
Example 10.9. Find the angles made with Ox, Oy, and Oz by a line with
direction ratios 2, 3, —6.
Put s = 2f + 3/ — 6k: this is parallel to the line. Since |s| = 7, the corresponding
unit vector s is given by
where cos a, cos /?, cos y are its direction cosines. Therefore, the inclination of
the line is specified by the angles
Example 10.10. (Two dimensions) Find a set of direction ratios for the straight
line y = 2x + 1.
We are looking for any vector which is parallel to the line. The points A: (0, 1)
and B: (1, 3) lie on the line, so the vector s = AB given by
s = OB — OA = (/ + 3j) -j = i + 2j
is parallel to the line. Therefore one set of direction ratios is given by the numbers
1, 2.
r = OA + AP,
AP = Is.
Therefore
r = a + as, (i)
(x - a)/p = (y - b)/q.
a = OA = aj + aj + a3k. (10.15)
n = pi + qj + rk (10.16)
r = OP = xi + yj A zk. (10.17)
tr(r — a) = 0,
ax + by + cz = d, (10.19)
p-r = d. (10.20)
Now let ^4: (al5 a2, a3) be any point we like that satisfies the equation
(10.19), and put a = aj + aj + a3k. From (10.20), this means that
d = p-a.
Example 10.l 3. Find the angle of intersection between the two planes 2x + 3 y +
4z = 5 and 2x — 6y — 3z = 0.
From (10.22c), the vector p — 2i + 3/ + 4k is a normal to the first plane (i.e., it
is perpendicular to it) and q — 2i — 6j — 3k is a normal to the second plane.
From Fig. 10.7, one of the angles between the two planes is equal to the
standard angle 9 (with 0° ^ 9 ^ 180°) between the two normals, p and q. By
(10.4a)
p q = \p\\q\ cos 9,
or — 26 = y/29 x 7 cos 9.
The planes are perpendicular if their normal vectors are perpendicular. Taking
the equations in order, by (10.22c) the vectors
Fig. 10.7 The angle between the
p = 2/ + 2/ — k and q = 3/ — 2J + 2k
planes, 9, is equal to the angle
between the normals p and q. are normal to the planes. Then
p-q = 6 — 4 — 2 = 0,
Origin
To find the distance D of the plane ax + by + cz — d from the
O
origin, consider Fig. 10.8. Drop a perpendicular ON from the origin
O to the plane at N. The equation of the plane may be written
p-r — d
p-ON = d.
P‘ON = d/\p\,
Fig. 10.8 The distance from the
origin 0 to a plane. where p = p/\p\ is the corresponding unit vector. Also OiV = ±Dp
10.8 The scalar product 175
±Dp-p = d/\p\.
Dq = |P’q - d\/\p\.
s = pi + qj + rk
is parallel to the line by (10.14), and is shown with its initial point
at A, so that it lies along the line. P:(x,y,z) is any point on the
line, and has position vector r.
By the triangle rule
r = a + Xs
This is the cartesian equation of a straight line, since any line passes
through some point A and has some direction p, q, r. This
expression is not unique, because (a1,a2,a3) and p, q, r are not
unique.
The equation (10.25) really consists of two simultaneous equa¬
tions: for example the pair
These are the equations of two planes, and the line is their line of
intersection.
A zero force has zero effect. Together with (10.25), this gives the
F
condition for equilibrium of a particle under the influence of several
forces Fx, F2,..that the resultant force F must be zero, or
Therefore
F = \mg and R =
(You would usually go straight for the commonsense way of writing the
components given by (i) and (ii), avoiding the cosines of large angles,)
178 10.1 1 Mathematical techniques
P
|s| = arclength SP,
|<5r| ~ |<5s|,
approximately, and so
O
Therefore, in the case when the parameter used is s, dr/ds is a unit
tangent vector, which we can write as t, pointing in the direction
Fig. 10.13 The approach to a of increasing s.
tangent at P.
Since t is a unit vector,
t't = 1.
t’dt/ds + (d?/ds)*f = 0,
or 2(f*df/ds) = 0.
The three cases in Fig. 10.14 relate to the sign of k. In Fig. 10.14a,
the curve is concave as viewed from the side of «, implying that
if we make a small increase in s, then dt points in the direction of
n; therefore k is positive. In Fig. 10.14b, the curve is convex as
viewed from the side of n; and in the same way it follows that
k is negative. In the case of a point of inflection (Fig. 10.14c), k is
zero.
The number k is called the curvature of the curve at P. The
greater is \k\, the more sharply the curve is turning. The positive
quantity p given by
p = l/|/c|,
Example 10.1 7. Obtain expressions for t and dt/ds for the case of a circle of
radius a with centre at the origin, and confirm that p = a (Fig. 10.15).
Measure s from the point S; then
s = ad.
t = — / sin 9 -f / cos 9.
To differentiate with respect to s use the chain rule with dd/ds = 1/a (because
ds/d0 = a)
— = - (— i cos 9 — j sin 9)
ds a
(observe that f-df/ds = 0). The unit normal n in the right-hand direction has
components (cos 9, sin 9), so
h = i cos 9 +j sin 9.
Evidently
1
dr/ds = —h,
a
so K = — 1/a (consistent with a curve that is convex viewed from the side of the
normal n). Also
p = 1/|k| = a,
Problems
10.1. Obtain the scalar products of the pairs of vectors a — b all on the same diagram: there are two theorems
given in component form by: (a) (2, 2, 1) and (3, 1, 2), (b) to be had, depending on whether you think of the triangle
(2, -3, 2) and (-2, 3,-1), (c) (2, 2, -3)and(-l, 1, -2), or the parallelogram rule.
(d) (2,3,4) and (1, —2, 1), (e) (p - q, p + q, p) and
(p + 4, q, -p - q)- 10.12. Show that the component of a vector F in the
direction of another vector a is given by F-a/\a\. Find
10.2. (Two dimensions) Obtain the scalar products of the components of F = (8, 15, 9) in the directions of
the pairs of vectors given in component form by (a) the three vectors a, b, c, where a = (2, 3, 6), b = (0, 3, 4),
(2,3) and (3,4), (b) (1,0) and (0,1), (c) (5,6) and and c = (2, 2, 1). Express F in the form F = Aa + pb +
(0, -4), (d) (2, 3) and (3, -2). vc, where A, p, v are constants.
10.3. Prove that |a + b\2 + |a — b\2 = 2(|a|2 + |ft|2). 10.13. Show that the vectors a = i + 3/ + 4k and b =
(Hint: see equation (10.1c).) Sketch the vectors a,b,a + b, — 2/+ 6/ — 4k are perpendicular. Obtain any vector
a — b on one diagram in order to obtain a geometrical c = cli + C2J + c3k which is perpendicular to a and b,
theorem from this result. (There are two possible and derive from it two unit vectors (their senses will be
theorems, depending on what diagram you draw.) opposite).
10.4. Let a = (2, -3, 4) and b = (- 1, -2, 3), or 10.14. Let a = / + j — k and b = 2i — j + 2k. Find the
in the alternative form a = 2i — 3/ + 4k and b = —i — angle (in the range 0° to 180°) between a and b,
2J + 3k. Evaluate a b, (a) using the first form, (b) using and construct any vector perpendicular to a and b.
the second form with (10.8).
10.15. Find the value of X such that the vectors (A, 2, — 1)
and (1, 1, — 3A) are perpendicular.
10.5. Given that a = i + 2/ — k and b = i + 3/ + k, eval¬
uate the following scalar products: (a) a-b, (b) (a — b)-(a+
10.16. Determine numbers a, ji, y which ensure that
b), (c) (« — b)-{a — b), (d) a-a + 2crb + b-b, (e) (a-a)a —
the vectors a = (a, 2, — 3), b = (— 1, 2/3, 2) and c =
(b-b)b.
(2, 1, —3y) are mutually perpendicular.
10.6. Find the angles, in the range 0° to 180°, between
10.17. The points A:(l, 0, 0), B: (0,1,0), C: (0, 1, 1),
the pairs of vectors (a) i +j + k and i + j, (b) i — j + k
and Z): (0, y, z) are the vertices of a tetrahedron. Find
and i + j. (c) 2/ — j + 3k and i + 3J + 2k.
y and z such that ABD is an equilateral triangle and
BCD is a right angle.
10.7. (Two dimensions) Find the angle 9 (0° ^ 9 ^
180°) between the pairs of vectors: (a) 3/ -I- 4/ and
4i — 3j, (b) / — 2j and 2i—j, (c) i — 2j and — 6/ + 3/. 10.18. (Change of axes in two dimensions.) Oxy and
OXY are two sets of right-handed axes with the same
origin O. OX is reached from Ox by an anticlockwise
10.8. Find the angle between one of the edges of a cube
rotation 45°. (a) Obtain the X, Y coordinates of a
and a diagonal line through one end.
point P whose coordinates in Oxy are (2, 2). (b) Find
the values of x and y for the point Q for which X = 1,
19.9. A circular cone has its vertex at the origin and its
Y = — 1. (c) Find the equation of the circle (x — l)2 +
axis in the direction of the unit vector a. The half-angle
y2 = 1 in the axes OX Y.
at the vertex is a. Show that the position vector r of a
general point on its surface satisfies the equation
10.19. Find the lengths, and the direction cosines /,
«t= |r| cos a. m, n, of the following vectors, (a) j, (b) i + j + k, (c)
/ - 2j - 2k, (d) t-J+ k, (e) 1 — y — k, (f) 2i + 3j + 6k,
Obtain the cartesian equation when a = (2/7, —3/7, (g) * — 2/ — 2k, (h) 3k, (i) -3k.
— 6/7) and a = 60°.
10.20. (Change of axes.) (a) Show that the vectors
10.10. A: (2, 2,-1), B: (0,1,1), C:(- 1,2,0) are three with components in Oxyz given by X = (6, 15, 10)/19,
points. Find the angles in the triangle ABC. Y = (15, — 10, 6)/19, Z = (10, 6, — 15)/19 are mutually
perpendicular unit vectors, (b) A sketch will show that
10.11. Confirm the fact that a-b = ^(|« + b\2 — [A/ Y,Z] is a right-handed system, so it defines a new
|a — b\2). (Hint: it is easier to start with the right-hand set of right-handed axes OX YZ. Write down the change-
side.) Test the result using any two vectors. Deduce a of-axes matrices in (10.13a) and (10.13b). (c) Find the
simple geometrical theorem by sketching a, b, a + b, coordinates of the point x = 1, y = 2, z = 2 in the new
The scalar product 181
10.25. (b) Find any constant vector parallel to the 10.32. (Two dimensions) A mirror Mx stands upright
line given parametrically by x = 1 — 2, y = 2 + 32, z = on a table (sketch it as a straight line Mx through the
1 + 2. (Hint: see eqn (10.25).) (b) Find the equation of origin O in the (x, y)-plane). s is a unit vector along
the plane which is perpendicular to line in (a) and which M pointing away from O, and n is the unit normal
passes through the origin. (Hint: see eqn (10.22b).) (c) vector to M pointing to the left of s.
Find the equation of the plane such that the line in (a) (a) A ray of light in the plane, with direction vector
lies in the plane, and the plane passes through the origin. u, falls on the mirror and is reflected in the direction
(Hint: the new plane must be perpendicular to the plane By considering its vector components in the directions
in (b).) of s and n show that
ux = — u A 2(u-s)s.
10.26. Find the angle 9, in the range 0° ^ 6 ^ 90°,
between the pairs of planes given as follows: (a) 2x — (b) Find ux when u = — (i+J)/j2, and the mirror
3y + z = 2 and x — y = 0, (b) x + y + z = 0 and z = 0. lies along the line y = 0. (c) Suppose there are two
(Hint: consider the normals.) mirrors, Mx and M2, forming a wedge of angle 60° in
the sector x > 0, y > 0, Mx being along y = 0 and M2
10.27. The vector equations of two planes are a-r = u along y/x = J3. A ray enters the wedge in the direction
and b-r = v, where a and b are constant vectors and u = — fcos 9 — /sin 9. Use the result in (a) to find the
u and v are constants. What is the vector relation direction of the twice-reflected ray.
between a and b for the planes to be perpendicular?
(Hint: see 10.22(b).) Obtain any plane perpendicular 10.33. (a) Find any two points on the line of inter¬
to x + y + z = 0. section of the planes x + y + z = 2 and 2x + y — 2z =
1 (e.g., one point is obtained by starting with x = 0).
10.28. (a) Show that the planes ax + by + cz = d, where (b) Obtain a parametric vector equation for the line of
a, b, c are fixed and d may take any value, are all parallel. intersection, (c) Deduce cartesian equations of the form
(b) Show that the straight line through 0 and perpen¬ (10.25) for the straight line. (Notice that the equations
dicular to the plane 2x + y — z = 2 has the parametric in (a), taken together, already define the line in cartesian
equation r = 2(2, 1, — 1), where 2 is a parameter, (c) For form, but the form (10.25) is more informative since it
(b), find the point at which the line intersects the plane, contains the direction ratios.)
and deduce its length (this is the distance of the plane
from the origin), (d) Find the distance between the plane 10.34. Obtain, in parametric form, the line of
in (b) and the plane 2x + y — z = 1. intersection of the planes 2x + 3y — z = 1 and x +
y + z = 0. Deduce the standard form (10.25).
10.29. Let p r = d, where p = (a,b,c) and r = (x, y,z),
be a plane, and Q be a point with position vector q. 10.35. Find direction ratios for the line of intersection
Show that the distance of Q from the plane is equal of the planes 2x + 3y — 2z = 1 and x — 3y + 2z = 2.
182 Mathematical techniques
(Notice that the line cannot be represented in the form that ds2 x Sx2 + Sy2, where s represents arc length.
(10.25).) Deduce that
Vector product a x b
(a) a x b = (a2b3 - a3b2)i + (a3bt - axb3)j
+ (axb2 - a2bx)k,
i Ji k
(11.1)
(b) a x b = a, a2 a3
bi b2 b3
«3
= i +J + k
b2 b3 b-, bi bi b:
(11.1a), so the sign of each of the three bracketed terms changes. Therefore
Algebraic properties of a x b
(a) a x b = —b x a (the vector product does not
commute).
(b) ax (b + c) = axb + axc (distributive law).
(c) a x (Xb) = Xa x b where X is any number.
(d) a x b = 0 if b and a are parallel: in particular,
a x a — 0.
Vector products of i, j, k
(a) i x j = k, j x k = i, k x i = j.
(11.3)
(b) j x i = —k, i x j = —i, i x k = —j.
Notice that for the group in (11.3a), the cyclic order *, j, k, i, j,...
is maintained, and for the group in (11.3b) there is a different cyclic
order j, i, k, j, /,.... To prove, for example, that i x j = k, put
i = (1,0,0) and j = (0,1,0) into the definition (11.1b) (or into
(11.1a) if you are not sure about determinants). Then we obtain
i J k
ixj = 1 0 0 = Of + Oj + 1 k
0 1 0
= k.
a-p = a-(a x b)
+ (a1b2 — a^b^k
= 0.
z emerge from Q, set up a special set of right-handed axes Qx, Qy, Qz,
as in Fig. 11.3. The axes satisfy the following conditions:
The unit vectors are i,j, k. From the conditions (i) and (ii), with
the usual notation,
J k
0 0 = axb2k. (11.5)
bn 0
Therefore, Fig. 11.1a is the correct one, and Fig. 11.1b gives the
direction of p incorrectly.
Moreover (see Fig. 11.3),
b2 = |6| sin 9,
ai — W\-
Properties of p = a x b
(a) p is perpendicular to a and b, in the direction
making [a, b,p~\ right-handed.
(b) \p\ — |a||Z>| sin 9, where 9 is the angle in the range
0° to 180° between the directions of a and b.
Invariance of a x b
a x b is invariant with respect to changes from one
(11.9)
right-handed set of axes to another.
Fig. 11.4 The area of a Example 11.3. Two planes have normals n1 and n2 respectively, and pass
parallelogram. through a point A with position vector a. Obtain a vector parametric equation
for their line of intersection.
O
Figure 11.5 shows the two planes and their line of intersection LM, which
contains the point A. P: (x, y, z) with position vector r is a general point on the
line.
Let p be any vector parallel to LM. Then AP is always a multiple of p, so
r — a = Xp (i)
where A is a parameter.
We may choose p to be given by
r = a + Xnx x n2 (iii)
ax a2 a3
(a) a-(b x c) = bl b2
al a2 a3
(b) In
a-(b x c), b-(c x a), c-{a x b),
= |a'(b x c)|
from (10.2).
Volume of a paralellepiped
If the adjacent sides at a vertex Q are QA = a, QB = b,
QC = c, then (11.11)
Vectors are said to be coplanar if, when drawn from the same
point, they lie in the same plane. The condition for this is
Coplanar vectors
(If they are not at the same point, then this is the condition that
they should be parallel to a common plane.) The result follows from
(11.11): the volume of the corresponding parallelepiped is zero.
Example 1 1.5. Show that the points A: (1, 2, 2), B: (3, 4, 5), C: (— 1, 0, — 1) lie
on a plane through the origin.
Suppose the three points A, B, C have position vectors a, b, c. To show a, b, c
are coplanar, evaluate a-(b x c):
a-(b x c) = (1, 2, 2)*{(3, 4, 5) x (-1,0, -1)}
1 2 2
3 4 5
-1 0 -1
3 5 3 4
= 1 - 2 +2
-1 -1 -1 0
4-2x242x4 = 0.
190 1 1.3 Mathematical techniques
Therefore, A, B, C, and 0 are all in the same plane, so the points A, B, C are
on a plane through the origin.
M = \F\d, (11.12)
d — |/?| sin 9.
so
M = \F\\R\ sin 9. (11.13)
M=RxF (11.14)
Example 11.6. A force F=i — j+2k acts at P: (1,2,1). Find its vector
moment M about the point Q : (2, 1, 1).
In these axes the position vectors of P and Q are
p = i+2J+k, q = 2t+J+k,
so
R = QP=p-q = -i +j.
t J k
M = R x F= -1 1 0 2t+2j.
1 -1 2
0, P, and Fall lie in the (x, y)-plane, so the physical problem is two-dimensional.
Fig. 11.8 The Oz axis points towards you, out of the page, in Fig. 11.8.
1 1.4 Vector product and derivatives of vectors 191
J k
M= R x F— 1 2 0 -3k.
1 -1 0
Thus M is parallel to Oz and its z component is —3. Figure 11.8 shows the
A F2j
negative sign corresponds to F having a clockwise influence on a wheel
turning about the point 0.
A
Example 11.8. (Generalizes Example 11.7.) A force F = FJ + Fj acts at
V
P: (a, b, 0). Find its vector moment about the origin.
We have
i J k
M— R x F= a b 0 = (F2a — F^b)k.
P F2 0
§M = s(RxF) (11.14)
Thus any point on the axis and any point on the line of action of
F may be put into the triple scalar product without affecting its
value.
The freedom given by (11.15) allows us to choose Q' and P' such
that Q'P' = R is perpendicular both to s and to the line of action of
F, as in Fig. 11.11. Put
\R'\ = \W\ = d\
Fig. 11.11 this is the distance between the two skew lines.
192 1 1.4 Mathematical techniques
F=F2j + F3k,
Also
= \R'\j = dj.
Therefore
M = F-dj = (FJ+F3k)-(dj)
— F2d. (11.16)
The expression (11.16) corresponds to what we should expect
about the turning effect of F about the given axis. There is no
contribution for f3 because F3k is parallel to the axis of rotation,
and F1 is zero in these axes. What remains is is/, which is
perpendicular to the axis of rotation Q'z, and d is the perpendicular
distance of F from it.
For this reason the scalar quantity M = §'(R x F) is called the
moment of F about an axis of rotation AA', as in Fig. 11.10.
Dropping the dashed quantities, the unit vector s is the direction
AA', and R = QP, where Q is any point on AA' and P any point
on the line of action of F (A/ being independent of the choice of
these points, by (11.15)).
h’ = a x (A x c) (11.17)
a = a3k,
tv = a x (b x c)
Fig. 11.12 The third components of b and c (b3k and c3k) are missing in the
brackets: to make them appear, add to the right-hand side the term
A A
= (a-c)b — (a-b)c.
a-c = (i + j)-(i +f + k) = 1 + 1 = 2.
Therefore
a x (b x c) = (a-c)b — (a-b)c = 2b — c
= 2(2i-/) — (t +y + k) = 3/ - 3y - A.
(The product could also be worked out directly.)
Problems
11.1. In component form let a = (l, — 2,2), A = the point with position vector a. (b) Obtain the equation
(3,—1,-1), and c = (—1,0, — 1). Evaluate the to the line when a = / + 2J + k, b = i—y and c = j + k.
following:
(a) a x b (b) b x a (c) a x a 11.4. Show that the vector a x u, where a = (aua2, a3)
(d) a-(b x c) (e) c(a x A) (f) A-(« x c) and u is any vector, is parallel to the plane atx + a2y +
(g) (a x A)-A (h) a x (a x A) (i) (c x A) x a. a3z = d. Obtain two vectors parallel to the plane 2x —
3y — z = l.
11.2. Given two planes, *-•/!, = d1, r-n2 = d2; show that
the plane through the origin perpendicular to their line 11.5. Under what conditions will a x A = 0?
of intersection is given by r-{tt1 x n2) = 0.
11.6. Show that the vectors a = 2f+3y + 6A and A =
11.3. (a) Use the vector product to obtain a vector 6i + 2y — 3A are perpendicular. Find a vector c which is
parametric equation for the straight line which is per¬ perpendicular to A and c and such that [a. A, c~\ is a
pendicular to the vectors A and c, and passes through right-handed set.
194 Mathematical techniques
11.7. (a) The vertices of a triangle are A, B, C, with be found such that v = Xb x c + Yc x a + Za x h.
position vectors a, b, c. Show that the area of the (Hint: start by forming a-v from this expression.) (b)
triangle ABC is given by ^\b x c + c x a + a x b\. (Hint: Find X, T, Z if v = 2i + j — 2k, a = i — j, b = i + 2j,
see Example 11.2.) (b) A second triangle has vertices at c = j- 2k.
a + X(b — c), b, c. where X is a scalar. Show that the areas
of the two triangles are the same. What simple geo¬ 11.13. The equations r = a + Xu and r = b + fiv, where
metrical result does the equality exhibit? (c) Find the X and /< are parameters, represent two skew lines Lx and
area of the triangle whose vertices are at / — 2j — k, L2 (straight lines which do not intersect), (a) Write down
i—j + 2k, i + 2j — k. a vector w which is perpendicular to both Lx and L2. (b)
Show that values of X, /r, and v can be found so that
11.8. A, B, C are three points which do not lie on a
straight line, and D is another point. Put AB = b, (a + Xu) + vw> = (b + )iv),
AC = c, and AD = d. Show that the distance of D
from the plane passing through A, B, C is equal to and explain why this implies that there actually exists a
\d-(b x c)\/\b x c|. straight line L3, which joints Lx and L2 and is perpen¬
dicular to both, (c) For the case when a = — u = k,
11.9. Show that, if QA, QB, QC are adjacent edges of b = t—j,v = i + J+k, find the values of X, fi, v. Deduce
a rectangular parallelepiped with coordinates the points where L3 meets L, and L2. Find an equation
for L3, and the perpendicular distance between L1 and
Q:(x0,yo,z0), A: (xt, y{, zQ. B: (x2, y2, z2),
L2.
C:(x 3, y3,z3),
11.14. Find the vector moments M of the given forces F
then its volume is given by the modulus of the determinant
acting at the points P as specified. Make sketches,
Xi - x0 X2 -X0 X3 -x0 indicating the direction of M.
(a) F = (2, 0, 0) at P: (0, 3, 0). Find M about the origin
y\ — Fo y2 ~~ Lo F3 ~ Fo O.
f=»'(cx a)/D, 11.16. Find the moment M about the axes specified,
where the force is F = (2, 0, 0) acting at P: (0, 3, 0). (Note
Z = v(a x b)/D,
that the sense of the axis needs to be specified. If the
where sense is reversed, then the sign of s-(/? x F), changes.)
D = a‘(b x c). (a) The z axis, taken in the positive direction, (b) The z
axis, taken in the negative direction, (c) The x axis, in
(Hint: start by forming, say, v(a x b). Equation (1 l.lOd)
the positive direction, (d) The y axis, in the positive
gets rid of two terms.) (b) Check the formulae for the
direction, (e) The axis through the origin, direction
case a = (1, 1, 0), b = (1, 1, 0), c = (1, 0, 1). v = (1, 1, 1),
s = (l/V3, 1/V3, 1/V3).
by solving the three equations obtained by splitting the
vector equation into components.
11.17. Find the magnitude of the moment M of the force
11.11. (Cramer’s rule.) In Problem 11.10, write the vector F = (1, 1, 2) acting at P. (2, —3, 1), about the axis AB,
equation v = Xa + Yh + Zc in the form of three simul¬ where A:(2,3,2) and B: (1,1,1). Verify directly that
taneous equations involving the components of a, b, c. the component of F in the direction of AB makes no
Now write the formulae for X, Y, Z in determinant form. contribution. Show that the component of F along any
This is known as Cramer’s rule (see Section 12.1), for line joining P to the axis AB makes no contribution.
solving any three simultaneous equations provided D ^0.
11.18. A fixed force Facts at a fixed point P with position
11.12. (a) show that if three vectors a, b, c are non- vector r. An axis passes through the origin, but it can be
coplanar and v is any vector, then constants X, T, Z can adjusted so as to take any direction s. Show that the
Vector product and derivatives of vectors 195
magnitude |M| of the moment M about the axis is a 11.21. Supposing that a and b emerge from the same
maximum when s is perpendicular to the plane contain¬ point, show geometrically that a x (a x b) and
ing r and F. (Hint: remember a-b = |a||A| cos 9 in the b x (a x b) are in the plane qf a and b.
usual notation.) Under what conditions is \M\ a mini¬
mum, and what is its value? 11.22. If v = (a x b) x (c x d), then v can be written
in either of the forms v = pc + qd or v = ma + nb.
Justify this expectation geometrically, then obtain the
11.19. A rigid lamina in the (x, y)-plane rotates at co constants by using eqn (11.18).
radians per second about the z axis in axes Oxyz, in
the manner of a wheel on an axle, (a) Show that if r 11.23. Prove that
and 9 are the polar coordinates of any point P, then the
velocity of P is given by v = — icor sin 9 + jtor cos 9. a x (h x c) + b x (c x a) + c x (a x b) = 0.
(b) Show that v may be written v = to x r, where
to = tok (co is called the angular velocity vector in two 11.24. (a) Find a vector which is perpendicular to n
dimensions.) and in the plane of n and b, where n and b are
(c) Choose any point Q which travels round with the any two vectors, (b) Show that the straight line r = b +
/.in x [(a — b) x «], where p is a parameter, passes
lamina, and let QXYZ be another set of axes which
remain parallel to Oxyz. Show that, viewed relative to through the point with position vector b, and meets the
QXYZ, any point P has velocity Vgiven by V = to x R,
straight line given parametrically by r = a + hi in a right
where R is its position vector in OXYZ. angle.
-xy — zx H = (r — q) x (mv).
(y2 + z2
Show that dH/dt = (r — q) x F — mu x r. Deduce that
S7S = -xy x2+z2 -yz
if w(f) = 0, then dH/dt = M, where M is the moment of
\ — zx -yz y2 + z F about the point Q.
Linear equations
Contents
12.1 Solution of linear equations by elimination 196
12.2 The inverse matrix by Gaussian elimination 201
12.3 Compatible and incompatible sets of equations 202
12.4 Homogeneous sets of equations 205
12.5 Gauss-Seidel iterative method of solution 208
Problems 210
Ax = d, (12.1)
_1
K>
*i 1 "
(N
-S5
-7
II
II
1
*2
i_
1 4 -2.
1
-*3-
i
is
det A
using the formula for the inverse given in Section 7.4. Let n = 3;
12.1 Linear equations 197
A = a2 1 a22 a23
-1
<3
- a31
ro
a32
we have
adj A
x-
det A
x 3 -I
where Cu, C12,... are the cofactors of allf al2,... (see Section 8.1).
Thus, comparison of elements in the vectors leads to
12 ai3
32 a3 3
d! ai3 ai i a\2 d,
1 1
x2 a2l <^2 a23 , x3 = - a2i a22 d2
det A det A
Xj + 2x2 + x3 = 1, (12.3a)
Xi + 2x2 + x3 = 1,
7x2 + x3 = -5 (r2 = r2 + 2^),'
Xj + 2x2 + x3 — 1,
7x2 + x3 = —5,
Xj + 2x2 + x3 = 1,
X3 = 2 (r3 = — 2lr3)-
Step 4. Starting from the third equation, we can now solve the
equations by back subsitution. Since x3 = 2, from the second equation,
x2 = — f - tX3 = — f — j x 2 = -1,
Xj 1, x2 = 1, x3 = 2.
matrix
12 1 1
-2 3 -1 -7
14-2-7
1 2 1 r "l 2 1 r
-2 3 -1 -7 - 0 7 1 -5 /r'2 = r2 + 2r1
1 4 -2 — 7_ _0 2 -3 -8. \r'3 = r3 - iq
' 1 2 1 1
- 0 7 1 -5
23 46 (ri = r3 - fr2)
_0 0 7 7
12 1 1
0 1 7 —f 7r2 \
0 0 1 2 —2lr3/
where the arrow means ‘is transformed into’. The final matrix
is said to be in echelon form, that is, it has zeros below the diagonal
elements starting from the top left. We can now solve the equations
by back substitution as before.
The elements underlined are known as pivots and they must be
nonzero. They are used to clear the elements in the column below
them. If any pivot turns out to be zero as the method progresses,
then that equation or row is replaced by the first row below which
has a nonzero coefficient in the column. If there are no further
nonzero coefficients, then the pivot moves across to the next column.
It is possible to complete the Gaussian elimination by using
further row operations on the echelon matrix. Thus, continuing from
the echelon form above
0 1 i 5
0 1 0 -l
7 7 - \r'2 = r2- jr3J
_0 0 1 2. _0 0 1 2_
- 0 1 0 -1
_0 0 1 2_
where the pivots are bold again. The final matrix now represents
the solution set x 1 - 1, *2 = -1, *3 = 2-
200 12.1 Mathematical techniques
Example 1 2.1. Using Gaussian elimination and back substitution, solve the set
of equations
X| + x2 4- 2x3 = 4,
2xj + 2x2 + x3 — x4 = — 1,
X 2 + x3 + x4 = 6,
x2 — x3 + 2x4 = 5.
We first perform the pivotal row operations on the augmented matrix as follows:
"1 1 2 0 4~ " 1 1 2 0 4n
2 2 1 -1 —1 0 0 -3 -1 -9
0 1 1 1 6 0 1 1 1 6
_0 1 -1 2 5. _ 0 1 -1 2 5_ (f 2 = r2 -2r,)
" 1 1 2 0 4~
0 1 1 1 6
(r2 ^r3)
0 0 -3 -1 -9
_0 1 -1 2 5_
' 1 1 2 0 4“
0 1 1 1 6
0 0 -3 -1 -9
" 1 1 2 0 41
0 1 1 1 6
*
0 0 -3 -1 -9
5
-0 0 0 3 5_ (t'a = U - It)
" 1 1 2 0 4“
0 1 1 1 6
—►
0 0 i i 3 = -ir3X
C'3 - 1 /
-0 0 0 1 3- u — 5r4 /
(Note the row change r2 <-> r3 because of the zero pivot.) Back substitution now
gives
x4 = 3, x3 = 3 — jx4 = 2, x2 = 6 — x3 — x4 = 1,
x, = 4 — x2 — 2x3 = — 1.
x2 1
^3 2
-X4J - 3-
1 2.2 Linear equations 201
10 10
A =
0 10 1
_ 1 0 2 0_
We reduce A to I4 and perform the same row operations on I4.
Thus, we can write down the steps in parallel as follows:
0 10 2 1 0 0 o"
10 1 0 0 1 0 0
h =
0 10 1 0 0 1 0
1 0 2 0_ 0 0 0 1 _
10 1 o' 0 1 0 o"
(ri r2)
0 10 2 1 0 0 0
0 10 1 0 0 1 0
10 2 0_ 0 0 0 1 _
10 1 0 “ 0 1 0 o-
0 1 0 2 1 0 0 0
0 10 1 0 0 1 0
0 0 1 0_ (U = r4 - r,) 0-10 1 _
10 1 o" 0 1 0 o"
0 10 2 1 0 p 0
0 0 0 -1 (r3 = r3 - r2) -1 0 1 0
0 0 1 0_ 0-10 1_
10 1 o" 0 1 0 o"
0 10 2 1 0 0 0
0 0 1 0 0-10 1
(r3 «-»■ U)
0 0 0 -1 0 I 0
202 1 2.2 Mathematical techniques
" 1 0 1 o’ 0 1 0 0
0 1 0 2 1 0 0 0
—>
0 0 1 0 0-1 0 1
_0 0 0 1_. _1 0 -1 0_
”1 0 1 o" 0 1 0 0
0 1 0 0 -1 0 2 0
0 0 1 0 0-1 0 1
_0 0 0 1. 1 0 —1 0_
” 1 0 0 o" 0 2 0 - 1~
0 1 0 0 -10 2 0
0 0 1 0 0-101
_0 0 0 1 1 0-1 0_
= u = A'1.
We conclude that
0 2 0 -1
-10 2 0
A-1
0-101
1 0-1 0_
3x — y + 3z = 5,
x — y + 2z = 2.
We can sense that there might be a problem by first evaluating the
determinant of the coefficients of x, y, and z. Thus
1 1 1 1 -1
3 -1 = 4 0 2
1 -1 2 0 1
4 2
= 0.
Thus Cramer’s rule will fail, although there still may be solutions.
We can determine whether solutions exist more readily by using
Gaussian elimination. In this case the application of row operations
1 2.3 Linear equations 203
1 -1 3 1 1 3
3 3 5 0 -4 -4 = r2 - 3r
1 2 2 0 -2 -1 - ri
1 1
0 -4
0 0 1 J (1-3 = r3 - 2r2)>
which is the echelon form for this set of equations. However, row 3
is inconsistent since 0/1. Hence these equations can have no
solutions.
On the other hand, consider the following set:
x + y — z = 1,
3x — y + 3z = 5,
x — y + 2z = 2,
(this is the previous set with one change to the first equation).
Gaussian elimination now gives
3-1 3 5 - 0 -4 6 2 Y2 = r2 - 3iy
_ 1 -1 2 2_ _ 0 -2 3 1_ vr3 = r3 - r1
‘ 1 1 -1 r
- 0 -4 6 2
0 0 0 0- (r) = r3 - ir2).
y = ~i(2 - 6z)
and, from row 1,
x = 1 - y + z = § - \z.
Thus z can take any value, say /, so the full solution set is
1-
1_
m|<N
H<N
X
1
= 1,1;
y — 2 + 2a
_z _ A
for any value of /. It can be seen in this case that there exists an
infinite number of solutions, a different one for each different value
of A.
Geometrically, in three dimensions, it can be seen why equations
can have a unique solution, no solution, or an infinite set of
204 1 2.3 Mathematical techniques
ax + by + cz = d
Example 1 2.2. Determine the complete sets of values for a and h which make
the equations
x — 2y + 3z = 2,
2x — y + 2z = 3,
(b)
x + y + az = b,
have (i) a unique solution, (/';') no solutions, (in) an infinite set of solutions.
Reduce the augmented matrix to echelon form using pivots to clear each column
successively:
"l -2 3 2~ ” 1 -2 3 2
2 -1 2 3 - 0 3 -4 -1 r2 — 2r1"
_1 1 a b_ _0 3 a — 3 b-2_
’ 1 -2 3 2
- 0 3 -4 -1
.0 0 a + 1 b - 1_ (C = U - U).
We can now interpret the echelon matrix.
(i) If a ^ — 1, then z has the unique solution
Fig. 12.1 (a) Unique solution, b- 1
(b) no solution, (c) line of
solutions. a + 1
x + y — z = 1
3x — y + 3z = 5,
x — y + 2z = 2,
x + z = 3.
12.3 Linear equations 205
1 1 -1 r "l 1 -1 l"
3 -1 3 5 0 -4 6 2 (r 2 = r2 -3r^
1 -1 2 2. 0 -2 3 1 C = r3 -c
1 0 1 3_ _0 -1 2 2. \ C = r4
/
“ 1 1 -1 1"
0 -4 6 2
0 0 0 0 As = r3 - ir2\
i 3
_0 0 f 7 -1 VC = r4 - hv
' 1 1 -1 r
0 -4 6 2
0 0 i 3
t 7
_0 0 0 0_ (r3 r4)
Xj + x2 + x3 + 2x4 = 1,
x: - 2x2 + 3x3 - x4 = 4,
Proceed as before, and successively reduce the augmented matrix by pivots. Thus
”l 1 1 2 r ’ 1 1 1 2 1 ’
1 -2 3 -1 4 —» 0 -3 2 -3 3
_3 -3 7 0 7_ _0 -6 4 -6 4_ \r3 = r3 - 3rly
1 1 12 1 r
0-3 2-3 3
0 0 0 0 ■2 J (r3 = r3 — 2r2).
Example 1 2.5. Find the value of a for which the following equations have
nontrivial solutions:
x + y + z = 0,
x + 2y =0,
x — 3y + az = 0.
Proceed in the usual way using Gaussian reduction. Thus
1 1 1 0 1 1 1 0
1 2 0 0 - 0 1 -1 0 r2 = r2 — fj
1 -3 a 0_ 0 —4 a — 1 0
1 1 1
0 1 -1
0 0 a — 5 0 (C = r3 + 4r2).
Hence z can only be nonzero if a = 5. Hence, nontrivial solutions exist if, and
only if, a = 5. Back substituting, we find that the solution is
z = X, y = z = X, x = — y — z = — 2X,
for any X.
x det A = 0.
Example 1 2.6. Find all conditions on the constants a, b, and c in order that
x + y + z = 0,
ax + by + cz = 0,
should have nontrivial solutions. Find the solutions in the cases (a) a = 1, b = 1,
c = 2; (b) a = 1, b — 1, c = 1.
This system of equations will have nontrivial solutions for x, y, and z if, and
1 2.4 Linear equations 207
only if,
1 0 0
= (b - a)(c - a) a 1 1
a2 b + a c + a
= (b — a)(c — a)(c + a — b - a)
x + y + z = 0,
x + y + 2z = 0,
-x + y + 4z = 0.
1110 1110
112 0 0 0 10
114 0 0 0 3 0
1110
0 0 10
0 0 0 0 (1-3 = r3 - 3r2).
X —X -1
y = X = 1
z 0 0
for any X.
(b) (a = 1, b = 1, c = 1) Applying Gaussian elimination, we find that
1 1 1 0 1 1 i 0
1 1 1 0 —> 0 0 0 0
1 1 1 0_ 0 0 0 0 ■rs = r3 - G
x + y + z = 0.
208 1 2.4 Mathematical techniques
X — X — /.t -1 -i
= /< = 0 2 “b l
z X 1 0
for any X and any /r. Note that this is a two-parameter solution set.
3*! + x2 + x3 = —1,
— x3 + 4x2 + x3 = —8,
where x1? x2, and x3 are now the subjects of the three equations.
To start the iteration choose initial values for x2 and x3, say,
x20) = 0 and x^0) = 0, without thinking about the equations. Calcu¬
late x(11) from equation (12.7) as
i 0 1 2 3 4 5 6 7
x«1) = i(-x<0)-xf-1),
X*1' = !(x<°> - x<0) - 8),
"3i r
-14 1.
.215.
Ax = d,
A = + D + A]j,
0
1
O
0 ...
an 0 . 0
a21 0 ... 0
0 «22 . 0
a32 0 , D
II
*31
L 0 0
- anl an2 0 _
0 0 a2 3 aln
IK
II
C
_ 0 0 0 0 _
Alx + Dx + Avx = d.
It is easy to find x from an equation of the form Dx = • • *, since D
is a diagonal matrix with a simple inverse. This is the matrix which
is updated by Jacobi's method. Assuming that .r,0) = [x1/”,..., xj,°’]T
is the given initial estimate, the approximate solution at step r will
be computed from
Dx(r) = -Alx(r) - + d.
Problems
12.1. (Section 12.1). Solve the following systems of linear (e) x, + 5x2 +2x4=1,
equations using Cramer’s rule:
- 3x2 - x4 = 1,
(a) x, + x3 = 1,
3x2 + x3 + x4 = 1,
X2 ~ x3 = 3,
2x2 + x3 + x4 = 2.
2*! + x2 = — 1;
(b) -x, + 7x2 + x3 = 1, 12.2. (Section 12.1). The currents i,, i2, i3 (in amps) flow
in parts of a circuit which contains a variable resistor of
*2 - *3 = 3,
resistance R (in ohms). The equations for the currents
2.x, + x2 + 10.x3 = — 1; are given by
(c) x, + 5x2-x3 = 1, - i2 - i3 = 12,
— 3.x, + x2 — x3 = 1, — i, + Ri2 = 24,
3.x, + -x2 + .x3 = — 3; h +5i3= -12,
(d) -x, + ,x2 + -X 3 = 1,
in terms of the voltages on the right-hand side. For
ax, + bx2 + cx3 = d,
design reasons, the current i3 should be 2 amps. How
a2x, + b2x2 + c2x3 = d2\ many ohms should the resistance R be?
Linear equations 21 1
12.3. (Section 12.3) Show that the following sets of 12.9. (Section 12.2). Find the inverses of the following
equations are inconsistent. matrices.
(a) x1 + 2x2 + x3 = 3,
6-3 6
x, - 3x2 + 2x3 = 4,
(a) 3 6 6;
5x, + 5x2 + 6x3 = 1;
(b) X, + x2 + x3
_ —12 -3 6_
— 2,
X, + X3 + 2x4 = 3, 1 -1 2"
*l+x2 + II (b) 1 2 1;
- *2 + 2x3 = 2; _ -4 -1 2_
(c) Xj + X2 = 1,
"2-1 20"
X2 + *3 = 1,
1 0-12
*3 + x4 = 1, (c)
x4 + x5 -1, 0 0-12
x, + 3x2 + 5x3 + 7x4 + 4x5 = 1. _-1 0 1 0_
" 1 1 0 0 0 0"
12.4. (Section 12.3). Determine the complete set of values
for a and b that make the equations 0 1 0 0 0 0
x + y — z = 2,
0 0 1 0 0 0
2x + 3y + z = 3, (d)
0 0 0 1 0 0
5x + 7 y + az = b,
have (i) a unique solution, (ii) no solutions, (iii) an 0 0 0 0 1 1
infinite set of solutions. _0 0 0 0 0 1_
x- y + 2z = 1, 110 0 0
x + y + 3z = 2,
(e) 1110 0.
x + 2 y — z = 3,
11110
x — 2y + 6z = 0.
11111
12.6. (Section 12.3). Show that the following equations
are inconsistent. 12.10. Show that
xt + x2 + x3 — x4 = 10, ”10101
*1 - X2 - X3 = 1.
0 10 10
4x! — 2x2 — 2x3 — x4 = 5.
10 10 1
12.7. (Section 12.1). Solve the following equations by
0 10 10
Gaussian elimination.
x2 + 2x3 — x4 = 11, 10 10 1
x + 2y — az = 2, 2x + y — z = 1,
4x + y — 2z = 2, are the faces of a tetrahedron. Find the coordinates
have no solutions. of all its vertices.
212 Mathematical techniques
12.12. A light source is situated at the point P:(3,2,2). 12.17. (Section 12.4). Show that
A triangle has the points A:(l, 1, 1), B:(1,0, 1), a2 +1 ab ca
C:(2, 1, 1) as vertices. Find the coordinates of the vertices
of the shadow of the triangle on the coordinate planes ah b2 -1-1 be
x = 0, y = 0, and z = 0.
ca be c2 +1
x + y + 2z = 3,
0 1 A and P 1 0
x y =1; _0 0 1_ _0 F 1_
What are the values of k for which the following set 10.21. (Section 12.4). Express the determinant
of equations has nontrivial solutions? 1 1 1
(1 — k)x + 2y — z = 0, a2 b2 c2
In this case
2-2 -2
det(/4 — XI2) = = (2 - 2)(4 - 2) + 2
1 4-2
= 22 — 62 4- 10 = 0,
and the quadratic equation has the roots
2 = i[6 ±7(36 -40)] = 3 ±j.
Thus real matrices can have complex eigenvalues.
1 2 1
A = 2 1 1
1 1 2
Here
1 - 2 2 1
det(4 2 1 -2 1
1 1 2-2
4-2 4 —2 4—2 (ri = H + r2 + r3)
2 1 -2 1
1 1 2-2
1 1 1
= (4 - 2) 2 1-2 1
1 1 2-2
1 0 0
= (4 - 2) 2 -1-2 -1
1 0 1-2
Eigenvalues
The eigenvalues of the n x n square matrix A are the
solutions 2 of the determinant equation (13.2)
det(A — 2I„) = 0.
1 3.2 Eigenvectors
Associated with each eigenvalue 2 of A, there will be an infinite
number of nontrivial solutions of the equation (A — 2I„)jc = 0.
216 1 3.2 Mathematical techniques
(A-Xln)s = 0.
1 3'
A =
2 2
From Example 13.1, the eigenvalues are A, = 4 and A2 = — 1. Let the cor¬
responding eigenvectors be
1 - 4 3 ai 0 f — 3a j + 3 bx = Oj
2 2-4 0_T °r 1 2a, - 2ft, = OJ'
1
*i
1
'1 + 1 3 2a2 + 3 b2 = 0
= 0, or
2 2 + 1_ iAj la2 + 3 b2 = 0
rpi
for any nonzero jS. As before, we choose a particular value of f which makes
the eigenvector specific and simple. In this case we could put /? = 3 to give the
eigenvector
1 2 1
A = 2 1 1
1 1 2
1 3.2 Eigenvalues and eigenvectors 217
S: = bi (i = 1, 2, 3).
c,
In each case, we need to solve (A — At-I3)«f = 0. If 2, = 4, then
— 3a, + 2 b{ + cl = 0,
2a, — 3 £>, + c, = 0,
a, + b1 — 2c, = 0.
Gaussian elimination leads to
-3 2 1 0 -3 2 1 0
—> 5 5
2 -3 1 0 0 3 3 0 r2 — r2 + fr,
1 1 -2 0_ 5 5
0 3 3 0_ G = r3 +
-3 2 1 0
0 f o
0 0 0 0 (r3 = r3 + r2).
By back substitution, c, = a, b1 = c, = a, a, = ^(2£>, + c,) = a. Thus, with
a = 1, an eigenvector is
s, = 1
1
The other eigenvectors corresponding to 2, are simply multiples of s,. Using
the same procedure shows that the two eigenvectors corresponding respectively
to X2 A-3 can be chosen to be
-1 1
*2 =
-1 > *3 =
-1
2_ 0_
1 2 -1
A = 1 2 -1
2 2 -1
In this example,
-2 2 -1
2 2 -1-2
— 2 2 0 (ri = r, - r2)
1 2-2 -1
2 2 - 1-2
218 1 3.2 Mathematical techniques
-A 0 0
1 3 —A -1 (c'2 c2 + c,)
2 4 -1 - X
= — A[(3 — A)( — 1 — A) + 4]
= — A(A - l)2.
s, = (/= 1,2).
LCU
For A, = 0,
a, + 2b, — c, = 0,
a, + 2b, — c, = 0,
2 a, + 2b, — c, = 0.
For A2 = 1,
2b2 — c2 = 0,
u2 + b2 — c2 = 0,
2 a2 + 2 b2 — 2c2 = 0.
A = 0 1
2 0
Thus
3-2 0 -1
2 0-2
(3 — 2)(1 — 2)( —2) + (—1)(—2)(1 — 2)
(1 — 2)[ —32 + 22 + 2]
-(2-2X2- l)2.
Let 2j = 2 and 22 = 1 with corresponding eigenvectors
a,
s, = *>i (i = 1, 2).
Ci
For 2j = 2,
ax - c, = 0,
-hi =0,
2fl! — 2c! = 0.
= 0
For 22 = 1,
la2 — c2 = 0,
0 = 0,
2a2 — c2 = 0.
If a2 = Pi then c2 = 2f but b2 can then take any value y, say. Hence, the
eigenvector set is
P 1 0
*2 = y =P 0 + 7 1
2P 2 0
that is, it contains two parameters f and y. The choices of /J = 1 with y = 0, and
{} = 0 with y = 1, say, give two independent eigenvectors
1 0
0 and 1
2 0
220 1 3.2 Mathematical techniques
Eigenvectors
The eigenvectors of a square matrix A are the non¬
trivial solutions s of the homogeneous equations (13.3)
(.A — Xrln)s — 0, for each eigenvalue Xr.
_1
1
Q-
Cl i
a2 b2
*1 = > S2 ~
_1
-Cl
-am-
1
=
then Sj and s2 belong to Vm, and so does + (ls2 for any constants
a and /J.
An important set of vectors in Vm is the set of base vectors
■ i -
o
i
_l
"0“
0 1 0
o
’ * • * ? (> —
o
II
II
<N
••
• •• o
•
■•
_1
o
_ 1 _
Any vector in Vm can be expressed as a linear combination of these
vectors. Thus
L am
1 3.2 Eigenvalues and eigenvectors 221
The set of vectors {el5 e2, ■ ■ ■, em} is said, therefore, to form a basis
of'l'. None of the vectors ex, e2,..., em can be expressed as a linear
combination of the others, so that they are said to be linearly
independent. A set of n column vectors su s2,..., sn is said to be
linearly dependent if there exist constants a,, a2,..., a„, not all
zero, such that
x +y =0,
x + z = 0,
y + z = 0.
1 1 0
D = 1 0 1 -2/0.
0 1 1
1 2 1
A = 2 1 1
1 1 2_
which has the eigenvalues = 4, X2 = 1, 23 = — 1 and eigenvectors
222 1 3.4 Mathematical techniques
1-1 1
C = [«! s2 s3] = 1 -1 -1
1 2 0_
where
D = 0 X2 0
0 0 ^-3 -
that is, D is a diagonal matrix with eigenvalue elements. If we
premultiply this equation by C_1, then
1 1 1
C”1 = 1 -1 -i =
6 6 3
1 1
_ 1 2 0_ L 2 2 0_
1 2 0. _1 2 0_ _0 0 -1.
It might appear at first sight that there is not a unique answer
for D since C is not uniquely defined. However, if C is replaced by
kC, with k / 0, then (ZcC)-1 = /c_1C~1, from which it still follows
that
3 0-1
0 1 0
2 0 0
2 0 0
D = 0 1 0
0 0 1
1 1 0
C= [s, *3] = 0 0 1
1 2 0
Its inverse is
2 0-1
C"1 -10 1
0 1 0
2 0 -1 3 0 -1 1 1 0
C~‘AC = -1 0 1 0 1 0 0 0 1
0 1 0 2 0 0 1 2 0
2 0 0
0 1 0 = D.
0 0 1
Following the remarks just before this example
2 3 0
2 6 0
-1 +j
The eigenvalues and eigenvectors are complex-valued but this does not affect
the method. The matrix C becomes
1+j -1-j
C = [*! s2] =
1 1
Its inverse is
1 1 1 + jl i 1
1 +J1
det C L-i -i+jJ 2j _-l -1 +jJ
C"1
1 1 i +r ~2 —2 '-1+j -1-j'
2j -1 -i +j_ _1 4 1 1
"3+j 0
0 3 — j_
Diagonalizing a matrix
To diagonalize a matrix A:
(i) find the eigenvalues of A;
(ii) find n linearly independent eigenvectors sn of A (13.4)
(if they exist);
(iii) construct the matrix C of eigenvectors;
(iv) calculate the inverse C-1 of C;
(v) compute C~lAC.
1 2 -1
A 1 2 -1
2 2 -1
then
1-
'2
o
o
o
'-i 0 '-1 0 'T 0
D2 = 0 X2 0 0 X2 0 = 0 z.2 0
<N O
_ 0 0 '-3- . 0 0 x3. _ 0 0
1
and, in general,
A'' 0 0
D" 0 X\ 0
0 0 XI
In the previous section we showed that, if a 3 x 3 matrix A has
three linearly independent eigenvectors, then we can find a matrix
C such that
AC = CD,
where D is a diagonal matrix, its elements consisting of the
eigenvalues of A. Thus by multiplying on the right by C_1 we find
that
A = CDC~X.
Hence
A2 = CDCXCDC~X = CDI3DC_1 = CD2C_1,
and, in general,
A" = CD"C~ 1.
1 2 1
A = 2 1 1
1 1 2
(See Examples 13.3 and 13.5 and Section 13.5.)
The eigenvalues of A are =4. = 1, /.3 = —1: and the diagonalizing
transformation, with its inverse, is
1 1 1
1 - 1 1 3 3 3
_1 _1 i
C = 1 - 1 - 1 c 1 = 6 6 3
1
1 0 r -1 o
2 2 v _
226 1 3.5 Mathematical techniques
Hence
n 1 1 I
1-1 1 4 0 0 3 3 3
1 -1 -1 0 1 0 1 1 1
/4" = CDnC~1 = 6 6 3
1 _i o
<N
O
o
L 2 2
1
1
1
1
i i
4" -1 (-1)" 3 3
_JL i
4" -1 -(-1)" 6 3
4" 2 0
1 1 1 1 1 -2 1 -1 0
4" -If
— 1 1 1 + 6 1 1 -2 +- -1 1 0
3 2
_1 1 1_ _ -2 -2 4_ 0 0 0_
— a a
P =
P 1 - PS
where 0 < a,/l < 1. Find P" and lim„_a P".
The matrix P is an example of a row-stochastic matrix, that is, all elements
are non-negative and the sum of the elements in each row is 1. The eigenvalues
of P are given by
1 — a —X
P 1 - p-A
Hence
(1 — a — 2)( 1 — P — X) — a/S = 0,
or
a1 — /.(2 — a — /?) + 1 — a — /? = 0.
"11 r-«“
LiJ L p J
Let
1 —a
C = [S, 52]
j p
Its inverse is given by
1 P ot
C'1
a+ P 1 1
1 3.5 Eigenvalues and eigenvectors 227
Thus
1 —a 1 0 P 1
P" = CDnC~1 =
.1 /5 J 0 p" _-l lja + p
1 1 -ap" P a
a + PH ppn _ -1 1
1 P + ap" a — ap"
a + p IP - pp" a + Ppn_
1 P a a —a
a_
+
a + P l-p p J
Since 0 < a < 1 and 0 < P < 1, it follows that
that is, |p| < 1. As n -> go, then p" -> 0 and
1 P a
P"
a + P \-P a_
x\ + 8x^2 + X2 + 6x2x3 + x\
xTAx.
Xi
[Xj x2 x3] 4 1 3 ^2
_1
m
o
-^3-
1
228 1 3.6 Mathematical techniques
1 0 0
A = 8 1 2
0 4 1
1 - A 4 0
4 1 -2 3 = 0.
0 3 1 -2
Hence
(1 - /.)[(! - A)2 - 9] — 4-4 (1 — A) = 0
or
(1 - A)[(l - A)2 - 25] = 0.
1
_1
3" 1
1
*1 = 0 . *2 = 5 . S3 = 5
i_
_l
m
_ -3.
1
i
i
a1 b = 0,
sjs2 = [3 0 -12 + 0 + 12 = 0,
Theorem 1 3.1. If A is a symmetric real matrix, then its eigenvalues are real.
Multiply the first equation in (13.8) on the left by sT, and the second
equation on the right by s. Thus
(I — I)sTs = 0. (13.9)
To show that srs / 0, put sr = (ax,..., an). Then, since a„a„ = |a„|
ai
Proof. Let Xl and X2 be the distinct eigenvalues, and st and s2 their corresponding
eigenvectors. Then
since A is symmetrical. Multiply the first equation by sj on the left, and the
second equation by s, on the right. Hence
sjTs, = Xisjsl, sjASi = X 2s2Sj.
C = [«! s2 s3],
so that
0 0
C~lAC — D — 0 0
0 0 23_,
= $[[>! s2 *3]^
CTC = c= 0 1 0
-4. _0 0 1_
xTAx = (CXfACX
= XTCTACX
3 -1 0
A = -1 3 0
0 0 1
3-7 -1 0
det(T 3 - 7 0
0 1 - 7
0 i/V2 -i/V2
*1 = 0 » *2 = i/V2 . *3 = 1/V2
1 0 0
0 1/V2 -1/V2
C = j>x s2 s3] 0 1/V2 1/V2
1 0 0
x == CX —— [Ti s2
where the eigenvectors s1; s2, s3 are orthogonal unit vectors, can be
z seen as follows. Put X = 1, Y = 0, Z = 0, which is a point on the
Z\
\ X axis. Since
\
since the eigenvectors are unit vectors and orthogonal. Hence, by the
theorem of Pythagoras, A1OA2 is a right angle. Similarly, the other
angles A2OA3 and A3OAl are right angles. Hence the new axes are
mutually perpendicular. It can be shown that the det C = ±1. If
det C = 1, then the X coordinates can be obtained from the x
coordinates by a rotation about the origin 0. If det C = — 1, then a
reflection and rotation are required.
C
'-' = 13 2 1 -2
2 -2 1
is an orthogonal matrix. If x = CX, what does the point x = l, y = 2, z = — 1
map into in the (X, Y, Z) coordinates?
In this example,
1 2 2
S1 = 3 2 > v - 13
^2 1 ’ v -
-*3 ~ 13 -2
_2_ _ —2_ 1_
Clearly
s]$i = |[1 2 2] = 1.
*1*2 = Kl 2 2] 1
-2
= i[lx2 + 2xl+2x (-2)] = 0.
X=C~1x = CT x
V 1 1 X l + 2x2 + 2x(-l)
= [1 2 -1]T.
Hence X = 1, Y = 2, Z = — 1.
1 3.8 Eigenvalues and eigenvectors 233
Fig. 13.2
Longitudinal oscillations.
mrr—
system is
X 2k -k
x = K =
Ly. -k 2k
The eigenvalues of K are given by det(/C — /I2) = 0, that is,
2k — X —k
= 0, or (2k — X)~ — k — 0.
2k - X
Hence, the eigenvalues are = k and X2 = 3/c, which are both
positive, implying that the potential energy is a positive-definite
quadratic form. This is not surprising, since we might expect the
potential energy to take a minimum value in equilibrium. The
corresponding eigenvectors are
1 f 1 1
N =
_1_
1 1 1
C = [Sl s2] =
V2 L> -i.
The transformation x = CXintroduces the coordinates V1 = (X, T)
234 1 3.8 Mathematical techniques
in which
\{kX2 + 3kY2).
These are known as the normal coordinates of the system, and are
related to x and y by
x ~(X + 7)/V 2"
y. _(X- Y)/j2_'
Normal coordinates are often more convenient coordinates to use.
For the same problem, we can also derive the equations of motion
of each particle. If Tu T2, and T3 are the tensions in each of the
springs, then applying Newton’s law (force equals mass times
acceleration) for each particle gives the differential equations
T2 — Ty = mx, (13.10)
Ti — T2 = my. (13.11)
where x and y stand for d2x/dt2 and d2y/dt2 respectively. The
tension in a spring is k times the extension, by Hooke’s law, where
k is the stiffness of the spring. Thus
X+ CTACX = 0,
or
X + DX = 0, (13.14)
where
O' k/m 0
_1
O
_ 0 3k/m_
CS
i
Y + 3(k/m) T = 0,
1 3.8 Eigenvalues and eigenvectors 235
Problems
13.2. (Section 13.1). Show that the eigenvalues of the 13.7. (Sections 13.1, 2). Show that the matrix
symmetric matrix —1 —1 CL T 1
A = fl 4 1 —a -1
—a a + 1 —a
where a, b, and c are real numbers, are real. has a zero eigenvalue. For design reasons, a second
eigenvalue must be 3. For what values of a does this
13.3. (Section 13.1). Find the eigenvalues of occur? Find the third eigenvalue in each case.
6 3
A = 13.8. (Sections 13.1, 2). A matrix is said to be idem-
2 7
potent if A2 = A. Explain why all eigenvalues of A
(see Problem 13.1b). Find the inverse of A and find its must be either 0 or 1. Show that
eigenvalues. What relationship, would you guess, exists
1 0 0
between the eigenvalues of A and those of A '? Find the
eigenvalues of A2. How do they relate to those of A1 A = 0 3 6
0-1-2
13.4. (Sections 13.1, 2). Find the eigenvalues and eigen¬
is idempotent. Find the eigenvalues and eigenvectors of
vectors of
A and A2 and confirm the above result.
"l 1 2~ ~2 1 2~
_2 1 1_ 2 1 2 ”1111“
0 2 -1 5 5 6 1-1-1 1
Show that A2 = I4. Explain why the eigenvalues of A
13.5. (Sections 13.1, 2). Find the eigenvalues and
must be either 1 or —1. Can A be diagonalized?
eigenvectors of
3 2 0 0 "l 2 1 ’
0 0 3 1 A = 2 1 1
1 1 2
_0 0 1 3_
The trace of a square matrix is the sum of the elements
13.6. (Sections 13.1, 2). Show that in the leading diagonal. Thus if B = is an n x n
236 Mathematical techniques
Confirm for .4 above that trace A = /.t + k2 + /.3. Also A = 0 cos a — sin a
verify that det ,4 =
_0 sin a cos a
13.11. (Section 13.3). Show that the vectors is an orthogonal matrix. Describe the mapping defined
1_
1-
I
by
" 1 ’
V — A i
i
= 3
05
II
H = , 52 -l
rn
Which set of points remains unaffected by the map¬
1_
_1
kyi
1
ping?
1
1
are linearly dependent.
13.18. (Section 13.7). Show that
13.12. (Section 13.5). Let
“1 -1 1 - 1”
'-4 1-2
1-1-1 1
.4 = 1 A =\
1 1-1-1
0 1 0
Find a formula for .4". How does A behave as n -*■ oo? 13.22. Find the eigenvalues and eigenvectors of
Eigenvalues and eigenvectors 237
5 - 1 -3 3~ 13.26. Let
-1 5 3 -3 ”o 1 o"
A =
—3 3 5 -1 A = 0 0 1
3 -3 -1 5_
1 0 0
Calculate 7 2 and A3. F
Construct a matrix C such that C 'AC is the diagonal Show that A has two complex eigenvalues, and
matrix of eigenvalues. Write down det A. find the corresponding eigenvectors. Construct a
matrix C which diagonalizes A and find a formula for
13.23. (Section 13.6). Express the following quadratic A". Compare this result with the ad hoc method above.
forms in the form xT.4x, where A is a 3 x 3 symmetric
matrix: 13.27. Let A be a square matrix, and let S represent the
(a) a? + x2 + .Y3 + 4.y1.y2 — 4.y,.y3 + 4x2x3; sum of the powers of A from A up to A":
(b) ;y,.y2 - .y,.y3 + x2x3. S = A + A2 + A3 + ■ ■ ■ + An.
Find eigenvalues of A in each case, and find also
By multiplying the equation by A and subtraction,
a matrix C which transforms each into the form 21Xj +
show that
}.2x\ + /.3xi
S = A(1 + An)(I - A)'1,
and state any cases for which this method fails.
13.24. (Section 13.6). Which of each of the following
If
quadratic forms is positive-definite?
(a) 4a'i + x2 — 4.y,.y2;
(b) x2 + x2 + 2a3 + 2.y2.y3 + 2a'3a-, + 4.y1x2;
(c) 6xj + 2xf — A3A,.
(see Examples 13.1 and 13.4), find a formula for Am and
the sum
13.25. (Section 13.8). Consider three particles, each of
mass in, and four equal springs stretched in a straight S= t A"
m = 1
line between fixed supports distance 4a apart by four
springs each with unstretched lengths a (as in Fig.
13.28. Let
13.2, but with three particles). Consider longitudinal
oscillations of the systems and let a, y, z be the extensions 1 2 1
of the springs, assuming Hooke's law with stiffness k for A = 2 1 1
the tension in each spring, show that a, y, : satisfy the
differential equations 1 1 2
Find the eigenvalues of A and confirm that
k( — 2a + y) = mx,
~2~ " -l" " -3~
k(x — 2y -f z) — my,
*i = 2 , S2 = -1 . *3 = 3
k(y — 2 z) = mz. 2 2 0
Express the equations in the matrix form are eigenvectors of A. Construct the matrix C and verify
that
x + Ax = 0.
D = C~' AC,
Find the eigenvalues and eigenvectors of A. Construct where D is the diagonal matrix of eigenvalues. (This is a
a matrix C such that C7AC is diagonal. Obtain differen¬ reworking of the problem at the beginning of Example
tial equations for the normal coordinates X, Y, Z. 13.5, but with different eigenvectors.)
INTEGRATION AND
DIFFERENTIAL EQUATIONS
Antidifferentiation
and area
Contents
14.1 Reversing differentiation 238
14.2 Constructing a table of antiderivatives 241
14.3 Signed area generated by a graph 244
Problems 246
d
Problem A: — sin x = /(x); what is /(x)?
dx
d
Problem B: — F(x) = cos x; what is F(x)?
dx
/(x) = cos x.
F(x) = sin x.
y = x2 + C
for then we have dy/dx = — i ( — 2 sin 2x) = sin 2x, which is right. Therefore,
one antiderivative is — \ cos 2x, and the rest are of the form
Example 14.3. Solve the equation dy/dx = e 3jc (that is to say, find a
collection of antiderivatives of e~3jc.)
Try y = e^3A'; then dy/dx = — 3 e_3x. To avoid the unwanted factor ( — 3) we
should have taken
y =-e 3a = -y e 3a
(-3)
Antiderivatives of f(x)
A function F(x) is called an antiderivative of f(x) if
~ F(x) = f(x).
dx
If F(x) is any particular antiderivative of /(x), then (^.1)
all the antiderivatives are given by
F(x) + C,
where C can be any constant. (Therefore, any two
antiderivatives differ by a constant.)
Velocity is the rate at which displacement changes with time: v = dx/dt. In this
case
v = dx/dt = t — t2.
14.1 Antidifferentiation and area 241
x = \t2 - ir3 + C,
2 = 0 - 0 + C.
x = \t2 — |f3 + 2.
Example 1 4.7. Find the equation of the curve which passes through the point (k,
— 1) and whose slope is given by dy/dx = sin 2x.
Since the required y is an antiderivative of sin 2x, the equation of the curve must
take the form
y = — | cos 2x + C,
where C is some (not ‘any’) constant. Since also we know that the curve passes
through the point x = ji, y = — 1, we must require
— 1 = — \ cos 27t + C = —j + C,
y = —2 cos 2x —
The factor 12 is unwanted; we really needed y = yj(3x — 2)4. Therefore all the
antiderivatives are given by y — j^Cix — 2)4 + C.
sin ax a cos ax
-.ax
a eax
fix) Fix)
a cos ax sin ax
~ax
a tax
However, these entries are not yet in the form we should like
them. For example, for the first entry we would prefer to have
cos ax in the left column, instead of a cos ax. Therefore divide
both entries by the constant a, remember to introduce the arbitrary
constant C to register all the antiderivatives, and we have a more
convenient table:
fix) Fix)
1 .
cos ax - sin ax + C
a
ax
1
e - eax + C
a
m F(x)
a (constant) ax + C
m+ 1
* .x"'( unless m = 0 — --X + c
m + 1
Jin x + C if x > 0
** x 1 i.e. - (14.2)
[ln( — x) + C ifx < 0
or In | x | + C (x ^ 0)
- eax + C
a
1 .
cos ax - sin ax + C
sin ax — cos ax + C
a
Notice particularly the two starred entries. The formula * covers most
cases, but it does not produce antiderivatives of the function x-1
(i.e. of 1/x). Here m = — 1, so the entry on the right becomes infinite
and therefore meaningless. Therefore the antiderivatives of x~1 must
be given by some different formula, and this is shown under **. All
we have to do is to verify the formula ** as in the following example.
(The modulus or absolute value notation |x| is explained in Section
1.1.)
Example 14.9. Confirm that the antiderivatives of x_1 (i.e. 1/x) are given by
In x + C if x is positive and by ln( — x) + C if x is negative, and that In |x| + C
covers both cases.
(Remember that In x does not have a meaning if x is negative or zero). All we
have to do to verify the correctness of the formulae is to differentiate the
proposed antiderivatives. Since (d/dx) In x = x“', the result is right when x is
positive.
Suppose now that x is negative. Then — x is positive, so ln( —x) has a
meaning. Using the chain rule (3.3) with u = — x,
d 1 1
— ln( —x) =-(-1) = -,
dx —x x
dx 2x — 3 ’
The unwanted factor 2 will not appear if we try again with y = yln(2x - 3).
Also 2x - 3 might be negative, so we introduce a modulus sign. Finally we have
y = j In |2x — 31 + C.
A = Aj + A2 + A3 + • • • + An. (14.3)
is naturally called ‘the geometrical area between the curve and the
x axis’.
We require a different quantity, A, called the signed area between
the curve and the x axis. This is defined by
A = Al-A2 + A3-An. (14.4)
In forming A, we use the rule: If y is positive, the contribution
takes a positive sign; if y is negative, the contribution takes a negative
sign. This quantity has a far more useful range of applications than
has geometrical area. For example, suppose that a point is moving
on a straight line; then the signed displacement from its starting-
point is equal to the signed area^of its velocity-time graph.
We show how to calculate the signed area A of the graph of
y = f(x) between two given points, x = a and x — b (Fig. 14.3a).
Let A(x) represent the signed area between a and a variable point
with coordinate x (Fig. 14.3a). Increase x by a small step Sx; the
signed area from a to x + 8x is A (x + 8x). The change in signed
area, 8A = A(x -h 8x) — A(x) (positive or negative), is equal to the
Fig. 14.3 signed area of PQRS in Fig. 14.3a and b. This is very nearly
14.3 Antidifferentiation and area 245
equal to the signed area of the rectangle PQRN in Fig. 14.3b (in
this case the required sign is negative) so
5A se /(x) 8x
SA
~ /(*)•
8x
Now let 8x —> 0; ‘ ~ ’ becomes ‘ = and bA/6x becomes dA/dx,
so that
- = fix). (14.5)
dx
A (a) = 0.
or
A (a) = 0 = F(a) + k,
k = —F(a), (14.7)
F(x) - l x3.
246 14.3 Mathematical techniques
Square-bracket notation
Example 14.11. Find (a) the signed area, and (b) the geometrical area,
between y = sin x and the x axis from x = 0 to x = 2n.
(a) f(x) = sin x, so F(x) = —cos x is an antiderivative. From (14.8) and (14.9),
with a = 0 and h = 2n, the signed area A is given by
J4 = [ — cos x] 5n = — [cos x] o" = — (cos 2n — cos 0) = 0,
as is expected from Fig. 14.4: the positive and negative sections cancel.
(b) The geometrical area A can be obtained by splitting the range into a
positive section 0 to n, and a negative section from k to 2k (see Fig. 14.4). The
negatively-signed section k to 2k must have its sign reversed in order to give
the geometrical area:
A = [geometrical area of 1st loop]
+ [geometrical area of 2nd loop]
= [signed-area of 1st loop] — [signed area of second loop].
This is equal to
[T(x)]S - [F(x)]27t = [-cos x]g - [-cos x]2lt
= ( — COS 71 + cos 0) — ( — cos 2tc + COS 71)
= (1 + 1) — (— 1 + (-l)) = 2 + 2 = 4.
Problems
Note: In case you have already met the term ‘indefinite (j) x(x + l)(expand by removing the brackets);
integral’, the term ‘antiderivative’ has the same mean¬ (1 + 2x)(l - 2x); (x + l)2; (1 + x)(l - 1/x);
ing. x2(x + x2).
(k) (x + 1 )/x (turn it into the sum of two terms);
14.1. Obtain all the antiderivatives of the following (2^/x - l)/y/x (put jx = xi and l/^/x = x"4 then
functions, and check their correctness by differentiating simplify as the sum of two terms);
your results. (x + l)2/x3.
(a) x5; 3x4; 2x3; ix2; 6x; J\x) - 3; /(x) = 0. (l) e-v + e‘-v; 2e2x - 3e3jr; e"v(l + e"**);
(b) —Tv 3; 2x 2; 3x 1 when x > 0 (if in doubt, see l/e2jc( = e~2-x); (e2- - e~2*)/e2*.
(14.2)). (m) 2 cos 2x; 3 sin \x — 4 cos jx; 2 + sin 2x.
/ v 4 4 -i ± -i
(c) .x2; x2; x 2; x3; x 3.
(d) 1/x2 (write as x“2); 1/x4; 1/x when x<0
(see (14.2)). 14.2. Find all the antiderivatives of the following by trial
(e) 7-x(=xi); l/Jx; 1/xl and error, as explained in the text. Confirm your answers
(f) 3x; ix2; l/3x2; 3/4x* by differentiation.
(g) ev; e"-v; 5e2-v; e”^-v; de-2-". (a) (x + 1 )3 (start by trying (x + 1 )4); (3x + 1 )3; (3x - 8)3.
(h) cos x; cos 3x; sin x; sin 3x; (b) (1 - x)4; (8 - 3x)*; (1 - x)*.
(i) 1 - 3x; 1 + 2x - 3x2; 3x4 - 4x2 + 5. (c) (2x + l)”2; (1 - x)“i; 2/(3x + l)3; 1/4(1 - x)[
Antidifferentiation and area 247
(d) 2 cos(3x — 2) (try first sin(3x — 2)); 3 sin(l - x); (f) y — x_ — 2 x < — 1 (note that x is negative in
2 sin(2 — 3x). this range);
(g) y = sin 3x, 0 x sc § n;
14.3. (See Example 14.10). Find the antiderivatives of the (h) y = 1/(1 — x), 2 ^ x ^ 3 (note: 1 — x is negative
following. over this range, so make sure you understand
(a) 1 /(x + 1); l/(x - 1); 3/(3x - 2); 2/(5x - 4). Example 14.10; alternatively, write
(b) 1/(1 - x); 1/(4 - 5x). 1/(1 — x)-l/(x — 1)).
(c) x/(x + 1) (it can be written as 1 — l/(x + 1));
(d) (x + l)/(x — 1) (compare (c)).
14.7. Obtain the geometric area between the graph and
14.4. Use the identities cos2 A = ^(1 4- cos 2A), sin2 A = the x axis in each of the following cases. It is necessary
|(1 — cos 2A), and sin A cos A = \ sin 2 A to get rid of to treat each positive or negative section separately.
the squares and products in the following expressions, (a) y = — 3, 0 ^ x ^ 1 (this is negative all the way);
and in that way obtain the antiderivatives. (b) y = x3, — 1 < x < 1;
(a) cos2 x; sin2 x; sin x cos x. (c) y = 4 — x2, — 1 < x ^ 3;
(b) 3 cos2 2x; sin2 3x; sin 2x cos 2x. (d) y = cos x, 0 ^ x < 2k.
14.5. (a) Show that (d/dx)(x ex) = ex + x ex. By 14.8. Find the most general function which satisfies the
rearranging the terms, show that the antiderivatives of d2x d dx d3x d d2x
x ev are eA'(x — 1) + C (use the fact that ex can be written following equations. (Note: —- =-, —- =--
df2 df dr dr3 df df2
as (d/dx) ev). Confirm the result by differentiation.
etc. Work in several steps, finding the next lowest
(b) Differentiate x2 ex. By rearranging the terms and
derivative in each step.)
using the result in (a), find the antiderivatives of x2 ex. d2x d2x d2x
(a) — = 0; (b) — = f; (c) — = sin f;
14.6. Use the result (14.8) to obtain the signed areas dt2 df2 df2
between the given graphs and the x axis. By roughly d3x d3
(d) -= 0; (e) -= cos t
sketching the graphs of the functions for which you dr3 df3
obtain zero, explain this fact.
(a) y = x, 0 ^ x ^ 2; (f) -= g (g is a constant);
df2
(b) y = x, — 1 ^ x s$ 1;
d4y
(c) y = — x2, 0 sg x ^ 1; (g) —- = vvq (w0 is constant; this relates to the displace-
(d) y = cos x, — n^x^n; dx4
(e) y = cos x — 1, 0 < x ^ 2k; ments y(x) of a bending beam.).
The definite and
indefinite integral
Contents
15.1 Signed area as the sum of strips 248
15.2 Numerical illustration of the sum formula 249
15.3 The definite integral and area 250
15.4 The indefinite-integral notation 251
15.5 Integrals unrelated to area 252
15.6 Improper integrals 255
15.7 Integration of complex functions: a new type of integral 256
15.8 The area analogy for a definite integral 258
15.9 Using the area analogy 259
15.10 Definite integrals having variable limits 261
Problems 263
b — a
8x =
N
x—b
A = X
Fig. 15.2
We shall specify the sum in (15.1) in more detail, with the idea of
obtaining a specific algorithm for actually calculating such a sum
on a computer. In Fig. 15.2 we show the graph y = f(x). There are
N equal subdivisions: we shall call the length of a subdivision h
rather than 8x as in Fig. 15.1, since this is conventional when making
numerical calculations:
x0 = a, xl= a + h, x2 = a + 2h , ... ,
xN_! = a + (N — 1 )h,
x„ = a + nh for n = 0, 1, 2,..., N — 1.
(The point xN = b is not wanted for a sum of type (15.1).) Then the
area of the nth approximating rectangle in (15.1) is f(xn)h, and the
approximating sum in (15.1) becomes
Definite-integral notation
x=b 'b
Notice that in a definite integral any letter can be used for the variable
of integration, because the letter itself disappears in the course of
evaluation; for example
x dx = [ix2]^ = [ix2];^ = \\
Jo
' i
Indefinite-integral notation
cos u du — sin u + C
Example 1 5.2. Find the signed area FI associated with the graph y = 3e2x from
x =1 to x = 3 using the new notation.
We shall need an antiderivative F(x) (i.e. an indefinite integral) of 3e2x. Using
the notation (15.5), we may write
(for this purpose any antiderivative will do, so we have put C = 0). Then, from
(15.4),
'3
3? = 3e2 v dx = [|e2x],
1
(15.6)
fix) dx fix) dx
Ja LJ
ative) of /(x).
Example 1 5.3. A small object P is pushed steadily along the x axis from x = 0
to x = 1, against a resistive force f(x) = x2. Find the work done against the
resistance.
Divide the range x = 0 to 1 into a large number of short steps of length 5x. In
general, if the resistive force is constant the work done over a distance is
(force) x (distance moved). Although the force on P is not constant, over a short
distance 5x the work dlV done by the applied force is given approximately by
5 W % f(x) 8x - x2 5x.
But this expression matches equation (15.1): it represents the signed area of the
curve y = x2 between x = 0 and 1. Consequently we can say immediately that
W= x2 dx = [|x3]J, = f (15.8)
0
The reader should think very carefully about the step from (15.7)
to (15.8), because it can be generalized to apply to any similar
problem. Suppose that there arises, in any context whatever, a sum
of the type
x=b
In all cases
*b
Example 1 5.4. An object is driven along a straight line with velocity v(t) = eT'
between times t = 0 and t = 2. There is a resistive force g{v) = 3v2, where v is
velocity. Find the total work done against the resistance.
In a short interval between times t and t + 5r, the distance travelled, 5x, is given
approximately by
W = lim £ 3e2' 51
5i-0 ( = 0
'2
= 3e2,dt = 2[e2']2 = 2(e3 - 1).
Jo
(‘approximately’ because the rate of fall r varies a little even through a short
time). The total rainfall from t = 0 to 10 days is equal to the sum of all the
contributions as the steps 51 tend to zero (while becoming proportionately more
numerous):
* 10
Example 15.6. Suppose that, in Example 15.5, the rainfall rate is given by
r(t) = t* e~‘ (cm per day). Obtain the total rainfall R between t = 0 and 10 days.
Proceeding as before, the total rainfall is given by
pio
R = De 'dt.
10 N~l , _ /10\
R ~ T7 Z $ e where f„ = n( — ).
IV n=0 \N /
1 5.5 The definite and indefinite integral 255
The following computed values show how the exact result is approached when
we take N larger and larger:
N 5 10 100 1000
5.x 2.00 1.00 0.10 0.100
R 0.4701 0.7070 0.8796 0.8859
The exact answer is 0.88607
i
dx= -i[e-2\|0* = -i(0 1) = 2‘
In Examples 15.7 and 15.8 we have (see Fig. 15.4) two cases of
y y
Fig. 15.4
'x d.x
Example 1 5.9. Consider
. i v
We have
fx
x~1 d.x = [In x]f.
Ji
The logarithm becomes infinite as x becomes infinite, so the integral is
meaningless. The function x_1 does not tend to zero fast enough to keep the
area finite as we extend the range to infinity.
256 1 5.6 Mathematical techniques
The case when the integrand becomes infinite at some point in its
range has similar features:
(a) We have
to interpret. The only sensible meaning that we could attach to sin oo is that it
stands for lim^,*,
lim*^ sin X. But sin X has no definite limit as X -» oo; it goes up
and down between +1 for ever.
and
f . 1 .
eJ dx = - eJX + C = -jeJX + C,
J J
where C is an arbitrary constant (which in this context we would
allow to be itself a complex number). Suppose that a and b are real
numbers, and that
c = a + ]b.
1 5.7 The definite and indefinite integral 257
Then
ecx = ce“,
dx
and
e(a + jb)x dx
Ja + jb)x
(from 15.10)
a + )b
a —)b
eax(cos bx + j sin bx)
a2 + b2
1
eax(a cos bx + b sin bx) + C,
a2 + b2 (15.11)
-b
= cos 6 and = —sin 9
(a2 + b2Y (a2 + b2)2
into (15.11b). Notice also that (p and 0 must therefore be related by
6 — <t> ~ 2n-
S(-1+2J)X dx
I = e x cos 2x dx = Re
„( - 1 +2j)*
Re
1-H2j
1 + 2j _ i
= Re 0- = Re
-1 + 2)
* - fit).
sin at, sin3 at,..., and tan at, tan3 at,..., where a is constant.
also even powers of any odd function, such as tan6 at. It is also
useful to realize that
(odd function) x (even function) = (odd function),
ri
(c) (c) (e2' — e 2') df
(a) The function f4 is even and sin 3r is odd, so the integrand is odd. Since
the range is symmetrical about the origin, the integral is zero.
(b) r5 is odd, cos 31 is even, and cos jt is even, so the integrand is odd and
the integral is zero as in (a).
(c) e2' — e~2' is odd (put —t in place of t in the function—it just changes its
sign). Therefore the integral is zero.
(b)
These ideas may also be useful if there is special symmetry about
X
some point other than the origin.
% 2n
Example 15.14. Show that cos3 t df = 0.
Jo
In the graph of x = cos t (Fig. 15.7) the parts OB A and DBC are congruent,
and similarly for the other pair of divisions; in fact all four divisions are
Fig. 1 5.7 congruent. For the graph of x = cos3 t the shape is changed, but the four pieces
15.9 The definite and indefinite integral 261
remain congruent and retain their original sign. The resulting cancellation gives
zero for the integral.
dx dv dx dx
with a similar result for F(u(x)), and finally we have the results
Differentiation of integrals
d du(x)
f(t) df =f(v(x)) -/(m(x))
(a) T
dx jU(X) dx dx
(b) (Special cases):
(15.20)
d
f(t) df = /(x)
dx
and
d
/(f) df = -/(x).
dx
262 15.10 Mathematical techniques
'3x2
Example 1 5.1 5. Obtain d//dx when I(x) = e' df.
X2
= 0 + 0 df = 0, (iii)
J2
where we used the value of (ii) at x = 2. The resulting graph of /(x) is shown
in Fig. 15.8b.
The definite and indefinite integral 263
Problems
2 x + x2
15.1. Sketch each of the following curves; then express (c) x(x2 — 1) dx; (d) dx;
o A"
the signed areas under them firstly as the sums of
strips, as in (15.1), and secondly as definite integrals, ,’2 f(f + 1) f4 y/u - 1
as in (15.3); and finally evaluate them by (15.4). (e) | —— dt; (f) J du;
fT
(a) y = a-3, - 1 < x < 2; (b) y = a5, - 1 ^ a ^ 1;
•o dw -i
(c) y = sin a, — n ^ a ^ 0; (d) y = e~2x, 0 < a ^ 1.
(g) (h) dx;
_ ! 2w + 3
15.2. Evaluate the following indefinite integrals (remem¬
ber the arbitrary constant). (i) cos2 3f dt (cos2 A = y(l + cos 2A)).
'n f cos f
x(x2 + x + 1) dx; (b) (x — l)(x + 1) dx; (c) df = 0; (d) t2 sin(f3) df = 0.
(a)
1 + t2
264 Mathematical techniques
15.8. (Computational: See Section 15.2 and Examples 15.10. (Section 15.10). Find d//dx where I(x) is given
15.1 and 15.6). Write a simple program based on the by the following integrals.
rb
algorithm (15.2) to evaluate a definite integral fix)dx-
a (a) t2 dt; (b) sin5f dt; (c) dt;
Assume that you have a subroutine for evaluating fix), o 1 +1
and that you input a, b, and N (the number of subdivi¬
fV(J[+1>
sions); also either a permissible error E, or a parameter (d) f In t dt; (e) sin(f2) dt.
M which determines the number of iterations. If you use
E, the process might be written to print out when two
successive iterations are within E of each other. Check 15.11. (See Example 15.17: it is necessary to split up
the correctness of the program by using a function such
as x1 as integrand. the integrals.) Obtain /(f) dt where /(x) is defined
Estimate the values of the following integrals.
by the following.
Reminder: The short table (12.2) provides all the indefinite integrals
(antiderivatives) required for this chapter.
Natural length
Tension T
I \_ -►
String \_-_t
Fig. 16.1 Extension
Example 1 6.2. A car runs from rest to rest in 1 hour, its velocity v being given
by v = 200r(l - f) (in kilometres per hour). The rate of fuel consumption, f (in
litres per kilometre), is related to the velocity by f = 10 - 4 v2. Find (a) the distance
travelled and (b) the fuel used.
266 16.1 Mathematical techniques
Fig. 16.2 nr
— x2 dx = — [i-x3] h0
h2 h2 3
nr2 h3
in r2h.
If 3
Example 1 6.4. Find the geometrical area enclosed between the curves y =
2x2— 1 and y = x2.
16.1 Applications involving the integral as a sum 267
This problem is complicated if we have to think all the time about the difference
between signed and geometrical area as in Chapter 15.
Here it will be done in a different way. Divide the interval — 1 ^ x < 1 into
short steps of length 5x and consider the area elements indicated in Fig. 16.3.
They are nearly rectangular, and the geometrical (positive) area 5/1 of each is
given by
(we may drop the modulus signs since —x2 + 1 ^ 0 in the given range).
The total geometrical area A is therefore given by
x=i r i
A = lim Y, (~x2 + 1) 5x = ( — x2 + 1) dx
§x —► 0 x = — 1 t — 1
Fig. 16.3
r = /(0), a ^ 0 ^ /?.
Form a new, nonrectangular type of area element 8/1 by dividing
the 0 range, 0 = a to 9 = fi, into small angular steps 89, expressed
in radians. (We use A rather than A because, in polar coordinates,
we always regard r as being positive, and we shall count the area
elements as positive.) A typical area element has the shape OPQ.
When 80 is small, OPQ has very nearly the same area as a narrow
circular sector of radius r and angle 80 radians. Its area is therefore
a fraction 80/2tt of a complete circle of radius r and area nr2:
zn
8/1 % — nr2 = \r2 80.
2tt
The total area is obtained by adding all the elements and letting
80 tend to zero:
e=p rp
A = lim Y i1"2 = ir2
50->O 6=a Ja
where r = f(9).
Example 1 6.5. Find the area of the loop of the curve r = 3 sin 29 in the first
quadrant.
For the loop shown in Fig. 16.5, the range of 9 is 0 =$ 9 ^ j n- Thus in
268 1 6.2 Mathematical techniques
(16.2)
A = | (1 — cos 40) d0
= I [^ — z sin 40 ] if =Itt.
b — a
h =
N
16.3 Applications involving the integral as a sum 269
* b — a
a ~ X -TT)-(y«-i + y«)
„=1 in
b — a
[(To + yi) + (yi + y2) + • • • + (y^-i + yjv)]
~2TsT
b — a
[£yo + (y 1 + y2 + • • ■ + yjv-1) + 2yjv] •
N
Trapezium rule
'b b — a ri . .
/(x) dx « L2yo + (y 1 + y2 + ■ ■ • yjv-1) + 2yxJ
L n
(16.4)
The interval is divided into N equal steps:
x0 ( = fl), xl5..., xN ( = b) are the division points;
and yn = /(x„) (n = 0, 1,2,..., N).
b — a
/(x) dx ~ (y0 + yi + • • • + yjv-i)-
J
N
16.3 Mathematical techniques
Example 16.6. Compare the efficiency of the trapezium rule (16.4) with the
N 10 100 1000
h = (b — a)/N 0.1 0.01 0.001
Rectangle rule 0.66 0.635 0.6324
Trapezium rule 0.632 657 0.632 125 0.632 120
The exact value is 0.632 120 5 .... For three-decimal accuracy, the rectangle rule
requires about 1000 divisions and the trapezium rule only about 12. There are
many formulae which are far more efficient than even the trapezium rule - one
of the best of these, for combining simplicity with accuracy, being Simpson’s
rule (see Problem 16.21). The reader should look at books on numerical
analysis for others.
N N N N
JV
*= M„=i
A, Z mnxm y = -.
M „= i
Z mny„-
B (b)
lim Y (x — x) V(x)n 8x = 0,
8jc-»0 x = a
x=b
1 x=b 1 fb
x = — lim Y xC(x)8x = — xC(x)dx.
^ 5i-*0 j = n /l Ja
Similarly, by dividing the y axis into steps 8y, and considering the
moments of horizontal strips of length H(y) (see Fig. 16.8b) about
a horizontal axis CD through G, we obtain
'd
1
y - yH(y) dy,
A Jc
b
v = + — x;
- 2/7
therefore the length of the strip at x is given by
b
V(x) = - x.
Fig. 16.9 h
Therefore by (16.6),
- x dx = — <2 dx = \h.
bh h J h2
The moment of inertia of the strip distance x from the y axis is therefore
x2 5m = 4x2 8x.
/ = lim V 4.x2 5x = 4 x2 dx
Sx-*0 x = 0 Jo
= 4[;jX3]o = 288.
b
F(x) = — x + b,
h
8/1 % b Sx.
Since the plate is uniform, the mass per unit area is (total mass)/(area), or M/jbh,
so the mass element 8m is approximated by
M b \
5m —x + b dx.
\bh h J
Therefore the moment of inertia / is given by
x=h
2 Mf
/ = lim Y. x2 = X x2 —I 1 — I 8x
8x-0 x = 0 5x->0 .x = 0 b \ h.
2M ph 2M
2 1 - dx = x2 — x3 ) dx
h h
2M
ix —
2M If
= \Mh2.
h 4/j h 12
Example 1 6.1 0. Find the moment of inertia of a circular disc of radius R and
mass M about an axis through its centre and perpendicular to the plane of the
disc.
The usual (x, y) coordinates are not natural to this problem. In Fig. 16.13, the
polar coordinate r ranges from 0 to R. Break this range into ring-shaped steps
as shown, the representative ring or annulus having inner radius r and thickness
8/\ These constitute the area elements 5,4.
We have 8/1 % 2nr 5r, and the mass per unit area is M/nR2, so that the mass
of the ring 8m is approximately
8m % - - 2nr 8r.
kR2
Fig. 16.13 The moment of inertia of the ring must be equal to that of a suitable
274 16.4 Mathematical techniques
sr 2x 2M 3
§/ x r~ dm x —— r or.
R2
Finally
r = R 2M 2M
I = lim Y - r3 5r = — r3 dr
Br-o r=o R2 R2
2M
= -I-lR* = iMR2.
R
Problems
(Units are kilogram, metre, second (SI units) (b) If the x and y scales of the profile ellipse in (a)
where they are unstated). are contracted or expanded by suitable factors, it becomes
a unit circle. Deduce from this fact the formula for the
16.1. The resistance R of a compression spring is given volume of the ellipsoid of revolution.
by R = 100.x + 1000.x2, where x is the displacement from
its natural length. Find the work done in compressing it
through a distance of 0.01. 16.6. The curve y = \x between y = 1 and y = 2 is
rotated about the y axis to profile a vertical spindle, or
16.2. The velocity v of a point moving along the x axis truncated cone. Find its volume.
is v = 20 — 1 Or, where t is the time. The displacement x
taking place in a short time 8f is approximated by
16.7. A uniform beam AB of length L has mass m per
8x ~ v 8f. Express the displacement which takes place
unit length. It is cemented horizontally at A into a wall
between f = 2 and t = 4 as a definite integral, and
at the end A. Sum the moments about A of elements of
evaluate it. What is its x coordinate at f = 4 if it was at
length 5x, form a definite integral, and so find the
x = 3 when t = 2?
moment supporting the beam at A.
3x-2 = u. (17.1)
Then the integral becomes
p
u3 dx.
V
dx = 3 du.
Put this into the integral, and it works through straightforwardly:
I (3x 2)3 dx =
Try
u — 2x — 1.
We shall need to express dx in terms of u. Since du/dx = 2, we have
dx = 2 du.
The integral therefore becomes, in terms of u.
dx (f du)
= i In ltd + C
2x - 1
= fin |2x - 1| + C.
Put
u = 3x + 2,
then du/dx = 3, so du = 3 dx, or dx = 3 du. The integral becomes
= ( —f cos u) + C = —f cos(3x + 2) + C.
Type /(ax + b) dx
dn 1
Put u = ax + fi; then — = a, or dx = - du. The (17.2)
dx a
This is not quite of the form (17.2) because of the presence of the loose x.
Nevertheless, put
u = 2x — 1,
with the object of simplifying at least the most complicated part. Then
du = 2 dx, or dx = f du.
17.1 Systematic techniques for integration 279
= ^(2x-l)5+^(2x-l)4 + C.
f1 + X
-dx: put u = 1 — x, dx = — du.
J 1 -x
Try putting
u = x2,
with the objective of simplifying the unfamiliar-looking term e*\ It is then
necessary to deal with x and dx in the integral. We have
j e“ du = |e“ + C = §e*2 + C,
x dx
Example 17.5. Evaluate
3x2 + 2'
Notice that the integral can be written in the form
r 1
(x dx).
3x2 + 2
i
du
(x dx) - (e d“) 6
3x2 + 2 u u
\ ln|u| + C = £ ln(3x2 + 2) + C,
where C is an arbitrary constant. The modulus sign in the logarithm can be
discarded because 3x2 + 2 is always positive.
We have
c r •
sin x ,
tan x dx = dx - (sin x dx).
\) «. COS X J cos x
17.3 Systematic techniques for integration 281
This technique can be used for products cos'" ax sin" ax, when
either m or n (or both) are odd numbers, either positive or negative,
and for certain other cases as well.
u = sin x
(not cos x as possibly expected). Then du/dx = cos x, so that
du = cos x dx.
The remaining part of the integrand is cos2 x, and we can transform this by
writing
cos2 x = 1 — sin2 x = 1 — u2.
Then we have
— sinx — 51 sin- x + C,
where C is arbitrary.
The reader should try also the substitution u = cos x. It leads to an integral
in terms of u that is correct but worse than the original.
= — £ cos4 2x + cos6 2x + C,
with C arbitrary.
282 17.3 Mathematical techniques
= sin x — ^ sin3 x,
cos3 x dx = (1 — u2) du
17.4 Systematic techniques for integration 283
(1 — u2) du.
Jo
This would imply that we were going to put u equal to 0 and
after integrating.
Example 1 7.11. Find the centroid (centre of mass) of the uniform semicircular
y plate shown in Fig. 17.1.
The symmetry shows that the centroid G lies on the x axis. From (17.6), the x
coordinate of G is given by
1 CR
x =- F(x)x dx.
i-n-P2
2UR- Jo
f dx
Example 17.12. Find a substitution to evaluate -—.
J (1 - x2)*
Try to simplify (1 — x2)* first, hoping that dx will work out conveniently. To
do this try
x = sin u; (17.5)
then (1 — x2)1 = (1 — sin2 u)* = cos u. Also dx/du = cos u, so
dx = cos u du.
Therefore
os u du .
-= u + C = arcsin x + C,
cos u
a result which can be confirmed from the table of derivatives in Appendix D.
You might try putting u = 1 — x2 instead: the resulting integral is different from,
but no better than, the original.
284 17.5 Mathematical techniques
' dx
Example 1 7.1 3. From Example 17.12, we know that arcsin x + C.
(1 - x2)*
dx
Use this result to obtain
(4 — x2)*
Aim to convert (4 — x2)* into something like (1 — u2)*, so as to be able to use
the result in the table.
(4 - x2)* = 2(1 - ix2)* = 2[1 - (ix)2]*,
and make the substitution
u = \x.
Then du/dx = j, so that dx = 2 du. Therefore
’ dx ’ 2 du du
J J
1
s:to
(4 - X2)* (i - u2F
f
= arcsin u + C = arcsin \x + C.
dx
Example 17.14. From Appendix E, = arctan x + C. Use this result
1 +x2
to evaluate
1 + 9x2
We want to transform 1 + 9x2 to a form close to 1 + u2, so put
u = 3x,
so that dx = f du. Then
dx f 5 du
= \ arctan u + C = i arctan 3x + C.
1 + 9x2 1 + u2
In3 x
Example 17.15. Evaluate dx.
We can simplify the logarithm (at the risk of extra complexity elsewhere) by
putting
x = eu
so that In x = In e“ = u. Since dx/du = e“, we have dx = e“ du. Therefore
In3 x
dx = e“ du u3 du
= iu + C = f In x + C.
du
f (x) dx = c g(u) — dx = c g(u) du.
dx J
The important thing is to spot that (d/dx)(x* + 1) is like the remaining factor,
x_i. This suggests that u = x* + 1 is the right substitution. Specifically, put
u = x* + 1; then
du _
— = \x T and so x 2 dx = 2 du.
dx
The integral becomes
dx
Example 17.17. Evaluate
c2- 1
By the methods of Section 1.10, we find that
1 J_1 i 1
x2 — 1 (x — l)(x + 1) X— 1 2X + 1
Therefore
dx dx dx
x — _ x + 1
= 2 In |x — 1| | In lx + II + C.
x - 1 x - 1 x - 1
Other equivalent forms are j In + C, In + C and i In B
X + 1 x T 1 X + 1
where C and B are arbitrary.
cx + d
px2 + qx + r
286 17.6 Mathematical techniques
(x + 1) dx
Example 1 7.1 8. Evaluate I =
x2 + 4x + 8'
The quadratic form x2 + 4x + 8 has no real factors. ‘Completing the square’
in the denominator consists of writing x2 + 4x + 8 in the form (x + a)2 + b.
The first two terms, x2 + 4x, can be written
x2 + 4x = (x + 2)2 — 4,
so
x2 + 4x + 8 = (x + 2)2 - 4 + 8 = (x + 2)2 + 4.
f* (x + 1) dx j [* (x + 1) dx
dx = 2 du.
Then
2u - 1
/ = i du = du — -k du.
u2 + 1 u2 + 1 u2 + 1
d du du
— (UV) = U — + V —.
dx dx dx
Since both sides are equal, their indefinite integrals can only differ
by a constant, so
f d , , , f dr f du
— (uu)dx= u — dx + u — dx + C. (17.6)
J dx J dx J dx
dr du ,
uv = u — dx + v - dx + C.
dx dx
dr du
u — dx = uv v — dx + C.
dx dx
Integration by parts
dr f du
u — dx = ur — r — dx + C, (17.7)
dx J dx
where C is an arbitrary constant.
First observe that the integrand consists of the product of two factors, x and ex,
both of which we can integrate and differentiate any number of times. We relate
this fact to (17.7) by identifying them with u and dr/dx respectively: put
, dv
u = x and — = e*. (i)
dx
Then
du
= 1 and
dx
= x ex ex dx + C = x ex — e* + C,
where C is arbitrary.
that the right side of (17.7) might be simpler than the left. (To see
what happens when we put u = ex, dt>/dx = x, see Example 17.21.)
As in Example 17.19, you should always write out stages (i) and
(ii) in full, and do the subsequent working in full, or you will make
mistakes.
du
= 1, cos 2x dx = j sin 2x.
= jx sin 2x + l cos 2x + C.
Example 1 7.21. For x e v dx (see Example 17.19), try the effect of assigning
«J
x and ex to u and dv/dx the ‘wrong way round\
In Example 17.19, we successfully put u = x and du/dx = ev. Now try instead
dr
u = ev, — = x,
dx
then
du
— = e\ v = x dx = jx2.
dx
x ex dx = ex(jx2) - (jx2) ex dx + C
= ix2 ex - i x2 ex dx + C,
which is a true result, but the transformed integral is worse than the original.
Then
r
(In x)( 1) dx = (In x)(x) - (x) dx + C
= x In x — dx + C = x In x — x + C,
u = x2, — = sin x;
dx
then
— = 2x, v = —cos x.
dx
From (17.7),
fb u —
dr dx = r du,
uv — v — dx
L dx dx
The operation [ • • • ] applies to the two terms separately, so we have:
(17.8)
dw
= 2x, v = —cos x.
dx
From (17.8),
%±K
x2 sin x dx = [x2( —cos x)]^ ( — cos x)(2x) dx
Jo 0
fin
= 2 x cos x dx,
Jo
because the bracketed term is zero; we did not have to wait to the end of the
calculation to see it go. To evaluate the remaining integral, integrate by parts
again, putting u = x and dv/dx = cos x; we have
— = 1, v = sin x.
dx
= 71 — 2.
The following result is important for Chapter 24, and involves the
use of (17.8):
•go
e“'fNdr = JV!
Jo
(17.9)
when N = 0, 1, 2, 3,..., .
(0! is defined to be 1)
e“'fkdt = F{k),
J0
m= dr = [ —e = 1. (17.10)
= k e 'tk 1 dr
and so on (each line uses the result of the previous line). So, if we
are given N, we shall reach F(N) after N lines, and find that
F(N) = N\,
until we arrive at F(0), which is 1, and we are left with TV! on the right.
Equation (17.11) is an example of a reduction formula, by which
an integral can be systematically reduced, one step at a time,
to progressively simpler integrals. (See Problems 17.14, 17.15,
17.16.)
Problems
17.1. (Section 17.1). Obtain f(x) dx when the /(x) (g) (j + 2x)n\ (h) x(x - l)4; (i) (1 - xf\
are as follows. (j) (2x — 3)“* for x > (k) l/(3x + 2)2;
(a) sin 3x; (b) cos 4x; (c) e (1) l/d - x)4; (m) 1/(1 + x); (n) l/(2x + 3);
(d)(l+x)10; (e) (1 — x)9; (0 (3 — 2x)5; (o) x/(l — x)2; (p) (1 + x)/(l - x);
292 Mathematical techniques
(q) x/(x — 1)* for x > 1; (r) cos(l — 2x); 17.6. Use the identities cos2 A = ^(1 + cos 2A),
(s) sin(2x — 3). sin2 A = j(l — cos 2A), or sin A cos A = \ sin 2A to eval¬
uate the following.
fit Cn
17.2. (Section 17.1). Evaluate the following indefinite sin2 r df; (b) cos2 f df;
(a)
integrals. o Jo
in 'in
(a) (21 — 5)5 df; (b) j sin f(3f — 1) df; (c) sin2 2f df; (d) cos2 If df;
writing the integrand as /(x)( 1), to obtain f(x) dx for Evaluate F(0) and F( 1). Use the reduction formula
repeatedly, together with F(0) and F(l), to evaluate
each of the following /(x).
(a) In2 x; (b)arcsinx; (c)arccosx; cos4 x dx and cos5 x dx.
(d) arctan x.
17.13. (Integration by parts; definite integrals. Section Show that F(/c) = 2(^2)* — kF(k — 1) for k ^ 1, and
17.8). Evaluate the following. *2
15e + 24F(0) = 9e —24. any antiderivative (so naturally we always take the
F(4) = x4 e* dx =
simplest one, with C = 0 in the tables). Confirm that
Jo
294 Mathematical techniques
this is true for Example 17.19, in which u = x and (b) solid uniform sphere, mass m, radius a, about a
dii/d.x = ev, by choosing v(x) = ex + A instead. diameter: I = \ma2\
Prove that the truth of (15.7) is always unaffected (c) thin spherical shell, mass m, radius a, about a dia¬
by the choice of antiderivative for u(x). meter: / = § ma2;
(d) thin rectangle, mass m, side lengths 2a and 2b, about
17.19. (Integration by parts: an apparent paradox). Con¬ a diagonal: / = 5m(a2 + b2)\
sider the following calculation. (e) solid uniform cone, mass m, base radius a, height h,
about its axis: / = ^ma2.
x - i dx x ‘(l)dx
17.21 Assume that
(~x 2)x dx = 1 + dx.
17.20 Verify the following moments of inertia / about where A, B, and C are constants. By differentiating this
the axis stated (Section 16.4): expression and matching both sides, obtain the constants
(a) thin circular disc, mass m, radius a, about a diameter: A and B in terms of a and b. Compare your result with
I = \ma2\ eqn. (15.11).
Unforced linear
differential equations
with constant
coefficients
Contents
18.1 Differential equations and their solutions 295
18.2 Solving first-order linear unforced equations 298
18.3 Solving second-order linear unforced equations 301
18.4 Complex roots of the characteristic equation 304
18.5 Initial conditions for second-order equations 307
Problems 308
dx
— = 3x
dt
x = e3!
solves the equation, because then dx/df = 3 e3!, and this is equal to
296 18.1 Mathematical techniques
x — A e3(,
dx d2x dx d3x x2
-b 2Xt = 1,-1-b X = 0, — .
df dt2 df df3 f2
dx
L -b Rx — E(t).
dt
Here we have collected all the terms that involve x (including dx/df)
Fig. 18.1 on the left side and have put the term that does not involve x,
namely £(f), on the right. This is the conventional arrangement.
The term independent of x which comes on the right is then called
the forcing term, the reason being obvious in this case, since £(f)
drives the circuit.
The differential equation with the same left-hand side, but with
a zero forcing term on the right, plays a key role in obtain¬
ing solutions of the original equation. Such equations are called
unforced differential equations, or sometimes homogeneous equations,
and are the subject of this chapter. Also, for the present, we shall
further restrict ourselves to linear equations with constant coefficients,
which have the form:
(a) First-order:
dx
-b cx = 0 (c constant). (18.1)
df '
(b) Second-order:
d2 x dx
- + b -- + cx = 0 (b, c constants).
df2 df
18.1 Unforced linear differential equations with constant coefficients 297
These are called linear because there are no squares, products, etc.
involving x and its derivatives. Such equations have comparatively
simple characteristics. The simplest instance of all is
— = 0.
dt
Example 1 8.1. For the differential equation dx/dt + 2x = 0, verify that (a)
x = e2' is not a solution, (b) x = 2 e“2' is a solution.
(a) Test x = e2'. Then dx/dt = 2 e2' and so
~V 4- 2x = — 4 e _ 21 + 4 e ~ 21 = 0.
dt
Example 1 8.2. Verify that the following functions are solutions of the second-
order equation d2x/dt2 + 4x = 0: (a) x = cos 21, (b) x = sin 21, (c) x = A cos 21 +
B sin 21, where A and B are any constants.
Note that ‘verify’ means ‘try out’: you are not expected to show how the
solutions were obtained.
(a) If x = cos 21, then dx/dt = —2 sin 21, and d2x/df2 = —4 cos 21. There¬
fore
d2x
-+ 4x = —4 cos 2t + 4 cos 21 = 0
dt2
as required.
d2x
-+ 4x = — 4 sin 2f + 4 sin 2f = 0.
dt2
d2 y H2
_h 4x = — (A cos 2t + B sin 2t) + 4(A cos 2f + B sin 2t)
dr2 dt2
/ d2 \
\dt2 J
+ bQ*— sin + 4 sin 2tj,
by rearranging the terms. We already know that the two bracketed expressions
are zero, so the whole expression is zero as required.
The separation of d2x/df2 + 4x into an ‘A’ part and a ‘B’ part in this way
is possible only because the equation is linear.
dx
— + cx = 0 (c a fixed constant). (18.2)
dt
dx
= (-c)x,
df
This quantity must be zero for all values of t in order to fit the
differential equation (18.2). Ignoring the possibility A = 0, which
gives us the so-called trivial solution x(f) = 0, we must have
m = — c,
and in that case it does not matter what value is given to A. We have
therefore found a collection of solutions x(f) = A e~ct, where A is an
arbitrary constant. It can be proved that there are no other solutions,
and so we call the solutions we have found the general solution of
the equation.
18.2 Unforced linear differential equations with constant coefficients 299
dx
— — 4x = Am em' — 4A emt = A emt(m — 4).
df
This is zero for all time if m = 4, whatever the value of A. Therefore the general
solution (which includes the trivial one mentioned above) is
d.x
+ 3 x = 0.
dr
x = A e4'.
A = 2 e“4
We will look first for absolutely basic solutions. Test whether there are any
solutions of the form x(t) = em', where m is constant. Because dx/df = m em< and
d2x/df2 = m2 em\ we have
d2x dx ,
—- H-— 2x = m2 e + me —2 e
dt2 dt
= em!(m2 + m — 2).
m = 1 or — 2.
From this basis, we can obtain more solutions. Guided by Example 18.2c, we
show that also
x(t) = A e1 + B e 21,
= 0,
d2x , dx
—- + b - + cx = 0.
dr dt
H2Y H v
—- + b —+ cx = emt(m2 + bm + c).
df2 dt
m2 + bm + c = 0, (18.6)
where A and B are arbitrary. It can be proved that there are no more
solutions: this gives the general solution. The pair of functions
(e'"ir, em2f) is called a basis for the general solution.
d2x dx
Example 1 8.7. Find the general solution of 2 — x = 0.
dt2 dt
To correspond with the standard form, (18.7), we should have to write the
equation in the form d2x/dt2 — \ dx/df — \ x = 0, but there is no need to do
this if we directly test for solutions of the form x = emI. The characteristic
equation then takes the form 2m2 — m — 1 = 0, or (2m + l)(m — 1) = 0, so that
m, = m2 = 1. Therefore the basis for the general solution is the solution pair
(e~21, e'), and the general solution is
d2.x
+ cx = 0
d7 df
(a) There exist two linearly independent solutions.
(b) If u(t) and v(t) are any two linearly independent
(18.9)
solutions, these form a basis for the general solution;
that is to say, the general solution is given by
d2x dx
Example 1 8.8. Find the general solution of—- + + 4x = 0.
df2 df
The characteristic equation, formed by substituting x(f) = emI, is
m2 + Am + 4 = (m + 2)2 = 0,
x(f) = re-2'.
Then
^ = (1 -2f)e"2',
df
and
d2x
-r = (“4 + 4f)e“2'.
df2
Therefore
(e-2', fe"2'),
The second solution always takes the same form (see Problem
18.8):
304 1 8.3 Mathematical techniques
ml = a + j/f, m2 = a - j/1,
can be written
and the real and imaginary parts give a basis for the real solutions:
d2x dx
Example 1 8.10. Find the general solution of —— 4- 2-h 2x = 0.
dr dt
Setting x = e"" gives the characteristic equation m2 + 2m + 2 = 0, so that
m = — 1 ± j. Therefore
e_!cos t, e“'sin f.
These form the basis for the real solutions. The general solution is
If we chose instead to take the real and imaginary parts of e(~1 ~j,!, we would
obtain (e-' cos t, —e-' sin t) as a basis. The minus sign will be absorbed into
the arbitrary constant B: no new solutions appear.
d2x dx
—— + b-1- cx = 0, when m2 + bm + c = 0 has
dr dt
complex roots m1,m2 — a ± j/5 (i.e. b2 < 4c)
Complex basis: e(a+j/i)r, e(a~j/?,r.
Real basis: eat cos fit, e" sin (it.
General solution:
k2 < co2.
dx
— +2k-b co2x — 0 where k2 < <x>2
df2 df
General solution:
Initial-value problem
. ,, d2x , dx
(i) Equation: - + b- + cx = 0.
dt2 df
1 = A + 0, so A = 1.
2 = 0 + 2 B, or 6=1.
The required solution is therefore x(t) = cos 21 + sin 21.
Problems
(For the ‘dash’ notation x'(f) = dx/df etc., see (4.1).) 18.5. A radioactive element disintegrates at a rate pro¬
portional to the amount of the original element still
remaining. Show that if A{t) represents the activity of the
18.1. Say which of the following equations are linear,
element at time f, then
unforced, with constant coefficients, i.e. can be rearranged
to conform with (18.1a). dA
- + kA = 0,
(a) x' = 3f; (b) x' = jx; (c) x' + fx = 0; df
(d) 3x' — 2x2 = 0; (e) x' — x = 0; (f) x' = 0;
x' dy , 1 dy where A: is a positive constant.
(g) - = 3; (h) - + iy =1; (t) - -f-« 2; (a) Solve the initial-value problem for A if A = A0
x2 dx y dx
(given) at time f = 0.
dl v' + v + v~
(j) L - + RI = 0; (k)-- = 1. (b) The time taken for the activity to drop to half of
dt v' — v + v the starting value is called the half-life period. For
Uranium 232, it is found that 17.5% has decayed after
20 years. Show that its half-life period is about 72 years.
18.2. Write down all the solutions of the following
equations. Check one or two of them by substitution
into the differential equation. 18.6. (Gotterdammerung) Once upon a time, rabbits in
(a) x' + 5x = 0; (b) x' — jx = 0; Elysium reached maturity instantly and bred with a
(c) x' — x = 0; (d) x' + 3x = 0; birthrate of 20 rabbits per year per couple. No rabbit
(e) 3x' + 4x = 0; (f) x' = 2x; (g) x' = 3x; ever died. At the start of the experiment Zeus released
(h) x'/x= -3; (i) (x'+ 1 )/(x + 1)= 1. 50 male and 50 female rabbits.
By treating the number of rabbits as a continuously
varying quantity and considering the number born in a
18.3. Solve the following initial-value problems. short time 5r, construct a differential equation and then
(a) x' + 2x = 0, x = 3 when f = 0; an initial-value problem for R{t), the rabbit population.
(b) 3x' — x = 0, x = 1 when t = 1; Find how many rabbits there were at the end of Year 4.
(c) y' — 2y = 0, y = 2 when x = —3; Appalled by this result and assisted by Pluto, Zeus
(d) x' + x = 0, x( — 1) = 10; launched another similar experiment, in which any rabbit
(e) 2? - 3y = 0, y(0) = 1; was allowed to live for one year only. Construct the
(f) Find the curve whose slope at any point (x, y) differential equation for the population. Did this alleviate
is equal to 5x, and which passes through the point the situation appreciably?
(1, -2).
18.7. Obtain all solutions of the following equations.
18.4. Suppose that the generator in Fig. 18.1 is short- (The characteristic equations all have real roots, not
circuited and cut out at a moment when the current in necessarily distinct.)
the circuit is I0. Find an expression for the current (a) x" — 3x' + 2x = 0; (b) x" + x' — 2x = 0;
subsequently. Show that the ratio L/R provides a (c) x" — x = 0; (d) x" — 4x = 0;
measure of the time it takes for the current to die away. (e) 3x" - jx = 0; (f) x" - 9x = 0;
Unforced linear differential equations with constant coefficients 309
(g) x" + 2x' - x = 0; (h) x" - 2x' - 2x = 0; Problem 18.12, the equation of motion takes the form
(i) 2x" + 2x' - x = 0; (j) 3x" - x' - 2x = 0;
d 20 d0 g
(k) x" + 4x' + 4x = 0; (1) x" + 6x' + 9x = 0; - + K — + -6 = 0,
(m) 4x" + 4x' + x = 0; (n) x" = 0. d t2 dt l
d2x dx
-+ b— + cx = f{t).
dt2 dt
Try for a solution containing the same exponential as that on the right-hand
side of the equation:
x(f) = p e2',
where p is some constant - not an arbitrary constant, but one whose value we
shall settle by substitution: only one value will do. Then
dx - „ , d2x
df dr2 f
so that
d2x dx
—j +-2x = 4p e2' + 2p e2' — 2p e2'
dr df
This must equal the given right-hand side, 3 e2' for all values oft, which is only
possible if 4p = 3, or
P =l
19.1 Forced linear differential equations 311
x(t) = |e2'.
There are many other solutions, as we shall see in Section 19.15, but they are
all based on this particular solution.
d2x
Example 1 9.2. Find a particular solution of-+ 4x = 2 cos 31.
dr2
Guess that there might be a solution of the form
x = p cos 3r.
Then
dx d2x
— =— 3p sin 3r, and —-= — 9pcos3r,
df dr
so that
d2x
+ 4x = — 9p cos 3r + 4p cos 3r = —5p cos 3f.
dr'
This must be the same as the right-hand side of the equation in order for the
guessed function to be a solution, so
d2x dx
—- H-2x = 2 cos 3r.
df2 dr
The form p cos 3r cannot be made to fit this equation because the dx/dr term on
the left produces a sin 3r term, making the left and right sides impossible to
match for all t. Try instead
Then
dx
= — 3p sin 3r + 3q cos 3r,
dr
and
d2x
= —9p cos 3r — 9q sin 3r.
dr2
Therefore
d2x dx
2-T -i—— 2x = ( — 9p + 3q — 2p) cos 3r
dr2 dr
+ ( — 9q — 3p — 2q) sin 3r
= 2 cos 3f
312 19.1 Mathematical techniques
(the last expression being the right-hand side of the equation) for all t.
The only way to satisfy this condition is to require both
— 1 Ip + 2q = 2, — 3p — 11<? = 0.
P = ~ 65' Q ~ fs-
It will be necessary in nearly all cases to take both sine and cosine
terms into account.
x(r) = p (a constant).
0 + 0 + 4p = 3,
so that p = §, and the particular solution is just x(t) = which is obvious after
it has been worked out.
d2.x dx
Example 1 9.5. Find a solution of—--h x = 3 + 2r.
dr dr
Try a solution of the form x(r) = p + qt + rt2, where p, q, and r are constants.
It is normally necessary to try a polynomial of the same degree as the forcing
term, which in this case has degree 2, and to include all the lower-degree terms
in the trial solution.
Since
dx d2x
r = q + 2rF and — = 2 r,
dr dr2
we must have
r = 2, —2r + q — 0, 2r — q + p = 3.
x(r) = 3 + 4r + 2r2.
19.1 Forced linear differential equations 313
Particular solutions of
d2x , dx „ x dx
-— + 6 — + cx = /(0 and + cx = ./(f)
dr df dt
(a) /(f) = K e5": try a solution x(f) = p e“'.
(b) /(f) = K cos /if or K sin ft: try a solution
x(f) = p cos ft + g sin /if.
(c) /(f) is a polynomial of degree N: try a polynomial
of the same degree, with all its terms present.
X(t) = P ej/J‘
Look for a solution of the form X(t) = Pe2i‘. To find P, substitute this
expression into the left-hand side of the differential equation;
This must be the same as the right-hand side of the equation, 3 e2j(, for all values
of f. Therefore, P( —3 + 2j) = 3, so
?__ 3( —3 — 2j)
P = 3(3 + 2j).
— 3 + 2j ( —3)2 + 22
d2x dx
dr2 + b dt + CX = a C°S ^19‘3^
cos ft = Re QiPt
d2X dX
+ - 2X = 2e3j‘.
dT2" dt
In the case when the right-hand side of the equation has the form
a sin cot, the calculation is the same, but the imaginary part of the
complex solution must be extracted instead of the real part. The
following example demonstrates also how right-hand sides of the
form
a e*' cos fit, a eot' sin fit
can be handled in the same way.
d2x
Example 19.10. Find a solution of—- + x = e-2' sin 3f.
and
X(t)= -^(1 -3j)e(-2 + 3J>'.
If we take the imaginary part of X(t), we obtain a solution of the original
equation:
x(t) = Im[-^(1 - 3j)(e"2' e3j')]
= — jo e“2'( —3 cos 3t + sin 3t).
The same result could be obtained by substituting
x(t) = p e ~21 cos 3t + q e “ 21 sin 3f,
d2x
Particular solution of + CX = /(f)
dt2
(a) /(f) = a cos /f or a sin /if
Put X(t) = P eipt to solve
X" + bX' + cX = a ej/?!.
(19.5)
Then x(f) = Re X(t) or Im X(t), corresponding to
cos /f or sin /if respectively.
(b) /(f) = a eat cos /if or a eaI sin /f.
Solve X" + bX' + cX = a e(a+j/!)t, and continue as in
(a).
19.3 Forced linear differential equations 317
d2x
+ fi2x = a cos 18t (or a sin fit).
d7
,d2x
Example 19.12. Find a particular solution of 9x = 5 sin 31.
dt2
Here, x = p cos 3f and x = q sin 3t both give d2x/df2 + 9x = 0, so the standard
solution form does not work. From (19.6), with /? = 3 and a = 5, the required
solution is
x
3
-3
—g t cos 3t
Fig. 19.1 -x=±ii
d2Y
—- — x=— 2 cost. (19.7)
dt2
(19.9)
d2
—- cos t — cos t — —2 cos t,
d t2
as demanded by (19.7).
Suppose now that we can find another function, x(t) = xc(t) say,
which produces zero out of (19.9). For example, x(t) = xc(t) = e!
makes d2x/df2 — x equal to zero. It is then obvious that if we put
into (19.9), we again obtain (-2 cos t) on the right: that is to say,
we have found another solution of (19.7).
19.4 Forced linear differential equations 319
But we already know, from Chapter 18, all the functions xc(t) that
give zero when they are put into (19.9): they are the solutions of the
equation
d2x
— x = 0, (19.10)
d?
and are given by
x(t) = xc(r) = A e1 + B e_I,
where A and B are any constants. Therefore
x(f) = cos t + A e' + B e~‘ (19.11)
is always a solution of (19.7). The differential equation (19.10) is
called the unforced equation corresponding to the original equation
(19.7), and its solutions x(r) are called the complementary functions
of the problem (they complement or extend the particular solution
of (19.7) that we obtained).
To show that we have obtained all possible solutions of (19.7),
take the particular solution cos t that we obtained, and suppose
that xp(f) is any other solution of (19.7). Evidently the function
x(f) = xp(t) — cos t satisfies (19.10), so x(f) must be a complementary
function. Therefore
xp(f) = cos t + (a complementary function),
so xp (t) must be one of the solutions already expressed by (19.11).
Therefore (19.11) is the general solution of (19.7). Exactly the same
argument would have applied in the general case:
d2x dx
General solution of — + b— + cx = m
dr dr
(i) Obtain any particular solution, xp(t).
(ii) Obtain all the solutions Axcft) + Bxc2(t) of the
corresponding unforced equation
(19.12)
d2x
+ cx = 0
dr2
(the complementary functions).
The sum of these gives the general solution:
x(t) = xp (r) + Axcl(t) + Bxc2(t).
The theory and method is exactly the same for linear equations of
the first order, and of any order, whether the coefficients are constant
or not.
Particular solution xp(t). Looking forward into the calculation, it can be seen
320 1 9.4 Mathematical techniques
(e2j',e'2j')
constitutes a complex basis. To get a real basis, choose either one, say e2jI, and
find its real and imaginary parts. These are
and this is the required real basis. Therefore, all the complementary functions
are given by
(a) Complementary functions xc(t). These are the solutions of d2xc/dt2 + 4xc = 0.
We found them in Example 19.13: they are
Particular solution xp(t). There are two terms on the right, so find a particular
solution for each term separately, and add them.
Therefore for a solution, xpl(f) say, of d2xpl/dt2 + 4xpl = 3, we can obviously
take
3
-Xpl(t) 4-
General solution.
x(r) = A cos 2f + B sin 2t + | + \t sin 21.
(b) Initial-value problem. We require also dx/dt:
dx
— = — 2A sin 2t + 2B cos 2t + i sin 21 + t cos 2t.
df
The initial conditions prescribe x(0) = 0, or
A + l = 0,
and x'(0) = 0, or
2 B = 0.
Therefore A = — | and B = 0, so the required particular solution is
x{t) = — |cos 2t +1 + 31. sin 2t.
(19.14)
identically (that is, for every function x(f) and for all values of f).
The following example shows the meaning of this idea and the
way it is used.
322 19.5 Mathematical techniques
Example 19.15. (a) Show that I(t) = e' is an integrating factor for the
expression dx/dt + x. (b) Use it to find the general solution of the equation
dx/d t + x = e2'.
(a) We have to confirm (19.14), that
(i)
e'(^ + x) = ^<e'x>-
Work from the right-hand side of (i). Differentiate the product e' x:
d ,dx fdx \
— (e x) = e-h e x = e'-lx ,
dr dr \dt J
which is the same as the left-hand side of (i), so e' is an integrating factor,
(b) Multiply both sides of the differential equation by e':
Y dx
e' I-h x 1 = e' e2' — <“3'
Idr
Because of the result in (a), we can write this as
d
- (e'x) = e~
dr
Therefore
or
x ^ + A c
)(dx ' d
/(O^ + 0(f)XJ==dr[/(°X]'
This is the same as
HO ^ + HOglOx = HO ^ + x
dt dr dr
or
d/(Q
H0g( 0 =
dr
dx
(after cancelling /(f) —, and dividing through by x). This can be
written
1 d/(t)
- = g( 0
/(t) dr
or
d In /(f)
= g(0-
dr
Therefore
or
I(t) = e$a(t)dt.
(In the case of Example 19.15, we had g(t) = 1, and the present
formula gives /(£) = e-fdt = et+c; the choice C = 0 gives the inte¬
grating factor suggested - any other choice would do.)
dx
Solution of-F g(t)x = f(t).
dt
Multiply both sides by I(t) (see (19.15)): the equation
becomes
(19.16)
- [/(£)X(£)] =/(o/(0;
dt
dx 1
Example 1 9.1 6. Find the general solution of — — - x = t ,for t > 0.
dt t
Here g(t) = — 1 ft. Then g(t) dt = C — In t (we need only consider t positive),
so that
7(t) = e"ln‘ = r\
where we have chosen C = 0 for convenience. Multiply both sides by I{t) = t
^-(t_1x) = t2.
dr
Therefore
t2 dt = yf3 + C,
324 1 9.5 Mathematical techniques
so that
arbitrary constant, when working out - df: we only need any integrating factor,
J t
not all possible ones.
d
r1
dt
dy x + y
dx x + 1
is the same as
dy 1 x
dx x + 1 x + 1
Problems
19.1. Find a particular solution of each of the follow¬ (g) x" — 4x = e“' cos t (note: e~' cos t = Re e(_I+j)');
ing equations by trial as in Section 19.1. (h) x" — 4x = 3 e! sin 2t (note: e' sin 21 = Im e(1 + 2j)‘);
(a) x' + x = 3 e2!; (b) x' — 3x = t3 + 1; (i) Show that a solution of x" + x’ + 4x = 5 cos 3r is
(c) 2x' + 3x = t + 3 e'; (d) x" + x = 3 e2'; (5/^34) cos(3f + </>), where 4> = arctan f.
(e) x" — |x = 2 e' + 3 e-'; (f) x" — 2x' + x = 3;
(g) x" + 4x' - x = 3r2 - t:
(h) x" — x = 2 cos f; (i) 2x" + 3x = 2 sin 3t; 19.3. The following differential equations are examples
(j) 2x" + x' = sin t — cos f; of the exceptional cases treated in Section 19.3. Find
(k) x" + 2x' + x = cos 21; a particular solution in each case.
d 2y (a) x" + x = 3 cos f; (b) x" + 4x = 3 sin 2r;
(l) —- — y = 1 — 3 e2N d2 v
dx (c) x + 4x = 1 + 3 cos 21; (d) — + 9y = 2 sin 3x.
d2y dy dx2
(m) —-1 + 2y = 3 sin 2x. d2y dy
dx2 dx (e) —- — 2-1- 2y = ex cos x.
dx2 dx
19.2. Use the method of Section 19.2 to find a particular
solution of the following. 19.4. The following are exceptional cases of types not
(a) x" — x = 3 cos 2f; (b) x" + x = 2 sin 3f; described in Section 19.3. Find a particular solution
(c) x" + 2x + x = 3 sin f; (d) x" — x' — x = 3 cos r; for each.
(e) 2x" + x' + 2x = 2 cos 2t; (a) x" — x = e!; try a solution of the form pt e'.
(f) 3x" + 2x' + x = 2 sin 2f; (b) x" - 2x' + x = e'; try a solution of the form pt2 e'.
Forced linear differential equations 325
(In this case, both e' and t e' are complementary functions, 1
so the form in (a) will not work.) (j) x'-x = In f; (k) £x' — x = 1 + t;
t
(c) Consider the simple differential equation d2.x/df2 = f.
dy x + y
A first try with the form pt + q suggested by (19.1) does (/) — =-(m) x' + x cos t = cos t;
not lead to a result. Try polynomials of higher degree dx x -F 1
than 1. dy 1 —y
(n) x — =-(o) (1 — f2)x' -p tx = t.
d2y dv d.x 1 —x
(d) -—— H—1 = x. The absence of a term in v causes
d.x“ dx
the second-degree trial function px2 + qx + r to fail. 19.7. Show that the general solution of
Try a third-degree of polynomial instead.
dy 1
(e) x" — 2x' + lx = e' cos f. Try f e‘(p cos t + q sin f), or — + - y = f(x)
modify the complex-number approach of Section 19.2 to d.x x
obtain a particular solution. is given by
(f) First-order equations also have exceptional cases.
1 f C
dy y(x) = - xf (x) dx H—,
Consider the equation-y = e\ (If you have read x J x
dx
as far as Section 19.5, you can also handle it by using where C is any constant. Find the solution of the
an integrating factor.) equation
dy 1
19.5. Find the general solution of the following equa¬ -F - y = In x
tions. dx x
(a) x" + 9.x = 3 e2'; (b) x" - 4x = for x > 0, for which y = 0 when x = 1.
(c) 4.x" — x = 1 + 3 cos 21;
d2_y dv 19.8. (a) Use an integrating factor to show that the
(d) —-- + 2 — + 2y = 3;
dx d.x general solution of
(e) x" — 2x' + 2x = 3 sin 21; dy
(f) 4x" — 2.x' — 2x = 312. — + V = /(*)
dx
(g) x" -p x' = 2 — 3 e~' cos f;
(h) 2x" T x' — x — + 3e is
d 2y dy
(k) -F 4 — + 5y = e x sin x. y(x) = y0 e x + e e“/(n) du.
d.x2 dx o
19.6. Use an integrating factor (Section 19.6) to find 19.9. (Newton cooling). An object is heated or cooled
the general solution of the following equations. above or below the ambient air temperature T0. Under
(a) x' — 3.x = 0; (b) x' -F 2x = 3; certain physical assumptions, the body temperature T
(c) x' - 2tx = t; (d) x' — t_1x = t + te"1; satisfies the equation
(e) x' — t lx — t — 1; (f) tx' — 2x + 3 = 0; dT/dr = -k(T-T0),
dy 1 where k is a positive constant. Find the general solution
(g) — -|-y = sin x (you will need to use mte-
dx x -P 1 of the equation.
gration by parts to perform the integration); The body is at 100° C in an atmosphere at 40° C.
After 3 minutes, its temperature is 85° C. Find the
dv 1 . dy ; 2 value of k, and determine when the body will reach
(h) 3 — -F - y = x; (i) (x - 1) --y = (x - 1) ;
dx x dx 60° C.
Harmonic functions
and the harmonic
oscillator
Contents
20.1 Harmonic oscillations 326
20.2 Phase difference: lead and lag 328
20.3 Physical models of a differential equation 329
20.4 Free oscillations of a linear oscillator 330
20.5 Forced oscillations and transients 331
20.6 Resonance 333
20.7 Nearly linear systems 335
Problems 337
We now have positive C, but <p is still out of range according to (20.2). To bring it
20.1 Harmonic functions and the harmonic oscillator 327
T = OOt
(t is the Greek letter ‘tau’) rather than against f. Thus z will be the
name of the new time-like axis, so that
x = C cos(t + <p)
The x, r graph is drawn in Fig. 20.2.
0 X
The new graph has z period 2n: it repeats itself when r increases
by 2n. It is the same as the graph of x = C cos z displaced through
an interval in z of length </>. Expressed in terms of the period or
wavelength in Fig. 20.2, it is clear that cj) = n represents a displace¬
ment of half a wavelength, 4> = ^ represents a displacement of a
quarter of a wavelength, and so on.
Choose one of the curves, say the v curve, and select a prominent feature, say
the maximum at B. Now search an interval within ±7i of B (that is to say,
within half a period on either side of B) for the corresponding feature of i. This
Period 271
is the maximum of i at A.
Fig. 20.3-v = v0 cos r; Now, as we move from left to right (time increasing) through the interval,
-/ = (vJcoL) cos(t — y7l). B appears before A—that is to say, at a quarter period (^7t) earlier than A. This
The period inspected is symmet¬ will be true for any feature of v within its own symmetrical corresponding interval
rical about the chosen feature of ±n. It is equivalent to saying that, when the two variables to be compared
at B. are in standard form, the one with the greater phase leads, and the other lags,
by the phase difference (taken positively).
Example 20.3. Two waves described by C cos cot and C cos(cof + f) are
superimposed (added). Show that the result is a harmonic wave of the same
frequency, and show how the amplitude varies as f varies between ± n.
From Appendix B the sum can be written
This is a harmonic oscillation with angular frequency co, phase |</>, and amplitude
2C cos \cj). As f goes from —n through zero to n, the amplitude goes from zero
Fig. 20.4 -x = (cancellation) through the value 2C and back to zero.
C cos(cof + (j))\-x =
C cos(a>f + <p ± n). This type of superposition is of importance in describing inter¬
ference and diffraction phenomena. If the amplitudes of the compo¬
nents are not the same, a similar calculation applies (see Problem
20.4 at the end of this chapter).
d2x K dx s F(t)
or - + + x —-. (20.5)
dt2 m dt m m
This equation is of the type discussed in Chapter 19:
d2x , dx .. .
Fig. 20.5 (a) Mass-spring 2 + b — + cx — J (t), (20.6)
system. The arrows indicate the dr dt
actual direction of the forces in which
when F(t), sx, and K dx/df take
positive values, (b) Schematic
K F(t)
b = c = and f(t) =
representation: the spring and m m in
the frictional element must be in
Figure 20.6 represents an LCR circuit driven by a voltage source
parallel.
of zero impedance, V(t). If Q is the charge on the capacitor, then
d2Q
+ m,
dt2 dt
330 20.3 Mathematical techniques
„ d-!f
dt2
+ *^
L dt
+ ±e
LC
= !no.
L
(20.7)
x = Q. b = ~, c = m = 7 v(o.
L rr:
These two physical systems serve as models of the differential
equation (20.6). They are also models of each other, for by choosing
the same values of b and c and the same forcing term f(t) the
circuit would serve as a precise analogue of the piston and mimic
its behaviour exactly. A vast number of systems share the governing
equation (20.6), at least approximately. Such a system is called a
linear oscillator.
+ 2k — + <x>lx = 0 (20.8)
dt2 dr
(in which we have put K/m = 2k, s/m = cOq, F(t) = 0). This equation
describes the free oscillations of the mass-spring system.
The parameter k is a measure of the amount of friction in the
system. We shall consider the case when k is ‘small’. This is not very
meaningful because k is not dimensionless, so we could change our
units so as to make it as large as we wished. The only thing that
makes sense is to compare it with another parameter having the
same dimensions. We specify that
where C and (f) are arbitrary. These are called the free oscillations
or natural oscillations of the system represented by the equation.
If the friction, or so-called damping, is zero then k = 0 and the
equation for the free oscillations becomes
d2x ,
~ + oF0x = 0 (20.11)
dt2
with solutions
Example 20.4. The circuit shown is initially quiescent and uncharged. Find
the charge Q(t) on the capacitor after switching the circuit on.
We shall rework the problem from first principles. The equation is
,d2Q ,dO
10“3 ^ + 81(T3+ 10() = 2cos90r,
dr2 dt
d22 dO
or ~ + 8-- + 1042 = 2103cos90t.
dt2 dr
Complementary functions Qc (natural oscillation). The characteristic equation is
m2 + 8m + 104 = 0, so that m = — 4 + 99.92j and the complementary functions
are Qc = B e~4t cos(99.92r + f), where B and f are arbitrary.
Particular solution Qv (forced oscillation). Look for a solution to the correspond¬
ing complex equation
Initial conditions. At t = 0, Q and dQ/dt are zero. After obtaining dQ/dt and
substituting t = 0 into Q and dQ/dt, we obtain the equations
B cos 0 = —0.9204,
4B cos 0 + 99.92B sin 0 = 31.389.
20.6 Resonance
Return to equation (20.14) for the linear oscillator and its solutions
and examine the forced oscillation, which is all that is left after the
transient has died away. Its amplitude, A say, is given by
K
[(a>o — tt*2)2 + 4/c2g)2]*
Different values for the forcing frequency co will produce different
334 20.6 Mathematical techniques
(a) Figure 20.10 shows schematically how the amplitude A, and also
oo
the phase 0 in (20.14), vary with forcing frequency co. Different
curves are obtained according to the amount of friction or damping
(or resistance in the case of a circuit) in the system, measured by
the size of k; as the damping decreases, the maximum increases.
When the condition for a maximum is satisfied, the system is said
to be in a state of resonance.
Resonating system
d2x d.x ,
-(-2k — + cokx = K cos cot.
dt2 dt
Resonance amplitude
2k(co2 - k2t2
k = 0,
so that
d2x
—- + (jOqX = K cos cot, (20.17)
d t2
(20.18)
d2x
— + coqX = K cos co0f, (20.19)
d?
K
x(t) - t sin conf, (20.20)
2 co0
— + 9 sin 9 = 0, (20.22)
dr l
where g is the gravitational constant.
This equation is nonlinear since sin 0 is not of the form a6 + b,
Fig. 20.11 so the methods of Chapter 19 do not apply to it. However, the
336 20.7 Mathematical techniques
sind — 9 — %93 + • • •,
(6 in radians), so provided that 6 remains small enough we can
approximate sin 0 by
sin 9^9.
The error is about 10% when 9 = 45°, and 0.1% at 5°. Put this into
(20.22); we obtain the approximate linearized equation
d'° + -0 = 0. (20.23)
dr2 1
d2x 2s
or —- + — (1 -l/L)x = 0.
dr m
20.7 Harmonic functions and the harmonic oscillator 337
This is the linearized equation, good for small amplitudes. It has solutions
x(t) = C cos
Problems
20.3. Obtain the free oscillations of the following in the 20.7. (Heavy damping.) Find the general solution of
form C cos(ojf + 0). State (i) the natural frequency if the the equation
damping coefficient is put to zero; (ii) the frequency
x" + 2 kx' + cox = 0
that actually occurs in the cosine term of the solution;
(iii) the number of complete cycles needed for the when k2 > co2. Describe the general character of the
amplitude to drop to 0.1 of its value at t = 0. solutions, contrasting them with the case when k2 < co2.
(a) x" + 20x' + (2.5 x 105)x = 0.
(b) x" + 0.5x' + 4x = 0. 20.8. Solve the equation
(c) x" + 0.15x' + 3x = 0.
x" + 10x' + 24x = 0
(d) x" + x' + 20x = 0.
subject to the initial conditions x(0) = — 3, x'(0) = 20.
20.4. Express A cos u)t + B sin(cuf + 571) in the standard Show that the solution curve crosses the f axis only
form C cos(ojf + 0) when (a) A = 3*, B = 1; (b) A = 3*, once, at the point t = In 2.
B= —1; (c) A = -3* B=U(d)A = -3* B = -1.
20.9. (‘Critical damping’.) Find the general solution
20.5. (a) Show that the maxima and minima of x(f) = of the equation
C e~k‘ cos(cof + 4>) occur at times TN given by
x" + 2 kx' + of x = 0
k
o)Tn + /= — arctan —I- Nn, for the case when k2 = co2.
co
where N is any integer. 20.10. The following equation could represent the
(b) Show that the values of x(f) at these points are damped vertical motion of a mass supported by a spring
338 Mathematical techniques
x" + 2 ax(g + 2ax,2)/(l + 4 a2x2) = 0. 20.14. A particle moves in a plane under a central
attractive force y/rx per unit mass, where r and 9 are its
Show that for small oscillations the period is 2^n/{ag)^.
plane polar coordinates relative to an origin in the
attracting body. Its equation of motion can be ex¬
20.12. A particle is balanced at the topmost point, pressed in the form
x = y = 0, of an inverted parabolic cylinder whose shape
is described by y = —ax2, y being measured vertically
upward. Its equation of motion is
where u = r_1 and H is its (constant) angular mo¬
x" -I- 2ax(2ax'2 — g)/( 1 + 4a2x2) = 0.
mentum per unit mass.
By linearizing the equation show that, if the particle Show that the equation has a constant solution u = u0,
is slightly disturbed, it starts to move away from its which is equivalent to a circular orbit. Does it stay close
initial position (0, 0) at an increasing rate. (This condi¬ to this orbit if its position u is slightly changed from u0,
tion is called unstable equilibrium.) while H keeps its original value? (Hint: put u = u0 + x
and linearize the equation for small x. You may assume
20.13. The equation for the displacement x(f) of an that for small values of x/u (see (5.4d)).
electrical circuit fixed on springs and influenced by a
current-carrying conductor is (u0 + xY~2 % uS"2(l + (a - 2)— ^
21.1 Phasors
We shall consider circuits driven by an applied harmonically
alternating voltage, with resistances placed so that any free oscilla¬
tions set up by switching on the circuit die away, leaving only
a periodic forced oscillation, as described in Section 20.5. It is only
this remaining, steadily-oscillating state that is discussed here.
Let x(t) represent any variable in the circuit, such as the current
in a particular branch. If the frequency of the applied voltage is
co/2k, then all these possible variables x(t) share the same frequency
co/2ti once the transients have died away, though in general the
phases and amplitudes of different variables are different. Here we
adopt the standardized amplitude/phase form of (20.2), assuming
that
x(t) = c cos (cot + 4>), with c > 0 and — 71 < cf) (21.1)
The complex coefficient c ei4> that multiplies ej"' is called the phasor
corresponding to x(t), and it is independent of time t. Every
variable x(t) will have its own phasor, but the factor ej<or is the
same for each one. In a circuit, and c usually depend on co, so the
values of the corresponding phasors will depend on co.
Corresponding to each variable denoted by a lowercase letter, we
use a bold capital letter to denote the phasor. This style is traditional,
and emphasizes that phasors, being complex numbers, can be treated
as vectors in the Argand diagram.
340 21.1 Mathematical techniques
Example 21.2. Given that the prevailing angular frequency is to = 104, find
the functions x(t) having the following phasors. (a) X = l/( — 1 +j), (b) X =
(i-V3M-i +j)-
(a) Put X into polar form:
1 -1 -j
X =- _i _ ij _ _L e
-1 +J (-D2 + l2 2 2J~V2
Therefore
(b) 1 — x/3j = 2e_*7tJ (as can be seen by putting the point 1 — ^/3j on an
Argand diagram). Therefore, using (a),
X = (2 e_i7tj)^ e“i,tj^ = J2
The phase (-}§7t) is out of the standard range (21.1), so add 27r to it, leaving
X unchanged. We obtain X = J2 e A so
Example 21.3. Let x(t) = 3 cos tot — sin cot. Find the corresponding phasor.
Take the terms separately:
Therefore
*=V3-e-^ = V3-(-j)
= 2e^j or 2/30°.
For j*x(t) df, we find in the same way that the phasor is X/jco. Here
dx d2x
Variable; x x df
df df2
(a) From (21.4) and the addition principle (21.3), the phasor is
Therefore
x(t) = Re[0.984 e_0-362j e90jI]
Example 21.6. Let u(t) = 2 cos lOr, v(t) = cos(10r — \n), and w(t) =
3 cos(10f + jtc). Find p(t) = u(t) + v(t) + w(t) by means of a phasor diagram.
The phasors corresponding to u, v, and vv are U = 2, V — e~i,Ij, and W = 3 eiItj.
In the polar-coordinate notation they are U = 2/0° V = 1/ —90°, W = 3/45°.
They are shown as position vectors in Fig. 21.1a, and in Fig. 21.1b they are
strung together as usual for addition. The vector OP can be measured
off from the diagram, or calculated using the dimensions shown. We have
, 3/72 - 1
<p = arctan-= 0.479 (radians).
Fig. 21.1 (a) Argand diagram 3/72 + 2
showing U, V, W. (b) The sum Therefore p(t) = 4.27 cos(10f + 0.479).
U + V + W = OP.
21.4 Steady forced oscillations: phasors, impedance, transfer functions 343
with phasor
/=ce^
di 1
Voltage drop: v = Ri v=L— v—— i df
df cJ
1
Voltage phasor V: Rc ej<^ = RI j co LI /
jcoC
Complex impedance Z
Resistor Z — R
Inductor Z=jcoL (21.6)
1
Capacitor Z =-.
j coC
344 21.4 Mathematical techniques
Example 21.7. Show that the complex impedance Z of two elements in series,
whose complex impedances are Zx and Z2, is given by
Z — Zt + z2.
Suppose that the impedance of the unit is Z; we mean by this that, if V is the
v phasor of the voltage drop across the unit and I is the phasor of the current
-1
If the two impedances are in parallel, the analogy with Ohm's law
again exists:
Example 21.8. Show that the complex impedance Z of any two elements Zx
1 1 1
and Z2 in parallel is given by — —-1-.
Z Zj Z2
From Fig. 21.3, i = h + i2; so, by (21.3), I = f + I2. The voltage drop is the
same for both branches, so
h = V/Zu I2=V/Z2, I = V/Z.
Therefore I = (l/Zi + l/Z2)V = (l/Z)V, from which the result follows.
(ii) that the resultant current entering any junction is zero. There
is also a linear voltage/current relation for each branch. In terms of
phasors and complex impedances for a circuit in a state of steady
harmonic oscillation, these conditions become the following.
These rules have the same form as the rules for resistive direct-
current circuits, with V, /, and Z appearing in them in place of v, i,
and R. It follows that general rules applicable to DC circuits
may be borrowed for the purpose of the circuits we have been
considering. Such rules are the Wheatstone bridge rules, Thevenin’s
theorem, and the structure of equivalent circuits. However, the
restriction to steady harmonic oscillation must be remembered:
many circuits can be made to ‘balance’ like a Wheatstone bridge
for steady oscillations, but not for more general disturbances.
Example 21.9. Find the steady AC current in the circuit shown in Fig. 21.4.
1 _ i 1
Z~ R (jcoC)-1 ’
which gives
R
Z =-.
1 + jcoRC
Z is in series with the other impedance, jcoL, so the impedance of the circuit is
given by
coL
cf)l = arctan coRC, 02 = arctan
R( 1 - co2LC)
Finally,
i(t) = Re(/ej“‘)
»0(1 + co2R2C2)i
COS (cot + (/>!— 4>2).
[R2(l - co2LC)2 + co2L2¥
Example 21.10. Find the steady AC current entering the circuit shown in
Fig. 21.5.
346 21.4 Mathematical techniques
The phasor of the voltage source is V = v0. By (21.6) the impedance of MNPQ
is R +jcoL, and that of MQ is 1/jcoC. These are in parallel, so by (21.7) the
impedance Z of the circuit viewed between M and Q is given by
1 1 1
— --b -.
Z R + jcoL 1/jcoC
Therefore
V_ ( i + jmC .
Z V°\R+itoL
The simplest way to get an expression for i(f) is to treat the two terms in the
parentheses on the right separately (though this does not give the answer in
U=UQ COS (Ot standard form). We obtain
(a)
Vq
‘(t) cos ^cot — arctan
(R2 + ca2L2f
+ v0coC cos(a>f + §7r).
Example 21.11. (Balanced bridge circuit.) (a) For Fig. 21.6a, show that (i) if
i(t) = 0, then Z,/Z2 = Z3/Z4, (ii) if Zv/Z2 = Z3/Z4, then i(t) = 0. (b) Check that
i(t) = 0 in the circuit of Fig. 21.6b.
(a) The analogy (21.8) between resistive and general circuits for steady harmonic
oscillations enables us to borrow ordinary Wheatstone-bridge theory, substitut¬
ing current and voltage phasors and complex impedances for the usual
constant currents, voltages, and resistances. We can therefore say immediately
that the circuit is balanced (i(f) = 0) if, and only if.
1 1 1 „ 1
- =-— + - or Zx=-.
Z\ (jm) 1 1 1+jw
Also
Z2=jcn, Z3 = —, Z4=l+jw.
jcu
Therefore
i
—
R has a phasor V2 = c2 e-^2.
Consider the ratio of these two phasors, denoting it by C12 (G
i \L
standing for voltage gain):
V2 _ c2 ej02
G 12 C1 gj(02 -0l)
Fig. 21.7 Vx cx ej<Al Cl
21.5 Steady forced oscillations: phasors, impedance, transfer functions 347
Then
Zu= VJh,
where /2 is the phasor of i2(t). This quantity, a voltage divided by
a current, is called a transfer impedance. Alternatively, we could
consider the ratio
Y2l=I2/Vu
in which Y21 is called a transfer admittance (whose parallel is
conductance in DC theory).
In general, the ratio of an output (such as a current in a selected
branch) to an input (such as a voltage driving a network) is called a
transfer function in the frequency domain. A different class of
transfer functions is discussed in Chapter 25, on Laplace transforms.
Example 21.12. Find the transfer impedance Z12 = VJI2 for the circuit of
Fig. 21.8 when the prevailing angular frequency w is 200.
The currents indicated take account of Kirchhoff’s second rule (21.8), that the
sum of the currents entering a junction is zero. The first law expressed in terms
of the phasors (see (21.8)), that the sum of the voltage drops round closed circuits
is zero, gives for the circuits ABCDEA and BCDEB respectively:
1
2/, + : + 3 )I2=Vi,
200 x 0.0 lj
and
2/1 + (3 — 2j)/2 = L,
j h + (3 - |j)/2 = 0.
The solution for /2 is
Problems
(j) L R
(a)
-AHv-
(k) L
-'W-
f-
R
A\V
(1)
(c)
Fig. 21.9
21.8. In Fig. 21.10, numerical values are given to the Fig. 21.10
Graphical, numerical
and other aspects of
first-order equations
Contents
22.1 Graphical features of first-order equations 350
22.2 The Euler method for numerical solution 351
22.3 Nonlinear equations of separable type 354
22.4 Differentials and the solution of first-order equations 356
22.5 Change of variable in a differential equation 360
Problems 363
y
^=f(x,y), (22.1)
dx
y
Example 22.3. Sketch the solution curves of — = ——.
dx y
The isoclines are the radial straight lines —x/y = K (see Fig. 22.4), or
1
Therefore:
and over again. The procedure which produces a new (x, y) from
the preceding (x, y) is called a recurrence relation (compare Newton’s
method for solving equations in Chapter 4). Such a process is easy
to program on a computer, and Fig. 22.7 is the skeleton of a flow
diagram. The program should contain a method for stopping itself
when x has gone far enough; also, since small intervals h are usually
necessary, it is useful to include a means of recording only the results
for preset values of x to avoid voluminous output.
Example 22.4. Use the Euler method to obtain a solution of the initial-value
problem
dy ,
— = xy , with y = 1 at x = 0,
dx
between x = 0 and x=l. Compare the result with the exact solution y = ( 1 — \x2}~1
when steps of h = 0.2, 0.1, 0.01, and 0.001 are adopted.
The following results are obtained.
dy _ y2
dx x2
dy dx
y2 1?'
On the left only y appears, and on the right only x appears. The
form looks like an invitation to integrate both sides:
dy dx
C,
x1
x
y = 1 - Cx
dy
— = g{x)h(y);
dx
where the right-hand side is the product of two terms, one a function
of x only, and the other a function of y only. Alternatively, you
-2 might see it more easily as an equation which can be put into the
Fig. 22.8 Solution curves form
y = x/(l - Cx) for
dy/dx = y2/x2. Values of C T(y) dy = X(x) dx,
indicated on the curves.
2f(x) and T(y) being functions respectively of x only and y only.
For example the equations
dy i. + dy y dy
- = x2y2, — = e sin y,-= cos(y )
dx dx x dx
Separation of variables
dv
Equation type: — = g(x)h(y).
dx
dy
Separate the terms: g(x) d.x. (22.3)
h(y)
y(x + l)
Example 22.6. Find solutions
x(y + l)
After separating, we have
*1 +x
dx + C,
x
or
dy = + dx + C.
dy
Example 22.7. Find solutions of = 2y*.
dx
y* = x + C. (22.4)
y = (x + C)2. (22.5)
d dy
(xy) = y + x - . (22.7a)
dx dx
d
(C) 0 (C constant) dC = 0
dx
d
(x2) 2x d(x2) = 2x dx
dx
d dy
O'2) 2y d(y2) = 2y dy
dx dx
d dy
(xy) x— + y d(xy) = y dx + x dy
dx dx (22.9)
d
d( In - J = — — (y dx — x dy)
dx xy \ dx V x) xy
d(uv) = u dy + v du;
for the first term, (d/dx)x3 = 3x2, and in differential form this becomes
d(x3) = 3x2 dx. For the second term, we can use the product rule in the form
(iii) above (or write it in standard form first):
Finally,
x3 dx + y2 dy = 0.
But
i*4 + iy3 = C,
where C is, in this case, any constant. The equation is in fact separable; you
should compare this with the process in Section 22.3.
0 = (x — y) dx — (x + y) dy
= x dx - y dx - x dy - y dy.
0 = x dx - y dy — (y dx + x dy)
1X2 _ ly2 _ xy =
dy
Example 22.11. Find a family of solutions of x V-
dx
y dx — x dy = 0,
and we cannot do anything with the left-hand side as it stands. However, the
remark above suggests we multiply by 1/x2, obtaining
Therefore
— y/x = C, or y = —Cx,
dy
+ y = o,
dx
dy
Example 22.1 2. Find a set of solutions of x y + y2x.
dx
Equivalently, y dx — x dy + y2x dx = 0. The first two terms cannot be written
as df(x, y). The table (22.10) offers three integrating factors, x-2, y-2, and
(xy)-1 to choose from. It is, however, also necessary to be able to manage the
remaining term, y2x dx, after multiplying by the integrating factor, so we choose
y-2, which gives
0 = (l/y2)(y dx — x dy) + x dx
. d2 v ( dy\2
Example 22.1 3. Find solutions of—— + — ) =0.
dx2 \dx/
The variable y is not independently present, so put
dy
w
dx
dw ,
-hv2=0.
dx
dw 1
dx, or — = x + A,
w
where A is constant, so that
1
w =-.
x + A
For the second stage, remember that w = dy/dx, so we have
dy 1
dx x + A
Therefore
y — ln\x + A\ + B,
where A and B are constants which we see, in retrospect, may be chosen entirely
arbitrarily.
dy /y\
Equation of the form = f - I.
dx \x/
Change to a new dependent variable v by
v = y/x (22.14)
and solve the resulting separable equation.
(To make the change write y = xv, so that
dy/dx = x dv/dx + v.)
362 22.5 Mathematical techniques
dy 3y — x
Example 22.14. Find solutions of — =
dx 3x — y
This equation can be written in the form
.V
dy 3 y/x — 1
dx 3 — y/x ’
which has the form /(y/x), so change the dependent variable from y to v = y/x.
To obtain dy/dx in terms of v, write y(x) = xv(x). Then dy/dx = x dv/dx + v,
and in terms of v the equation becomes
dv 3v — 1 dv v2 — 1
X-h V = or x—
dx 3 - v ’ dx 3 —v
This new equation is separable (Section 22.3) (a separable equation will always
be obtained at this stage). Following (22.3):
dm
v+ 1
Fig. 22.11 Solution curves for
Therefore In | [(u — l)/(n + 1)2]| = In |x| + C, where C is an arbitrary constant.
dy 3y — x After returning to y and simplifying, we have
dx 3x — y (y - x)/(y + x)2 = c, (22.15)
Notice the special solutions where c = +ec. The solution curves are shown in Fig. 22.11, plotted by working
y = +x. directly from the differential equation and using a numerical method (see Section
22.2).
d2y _ du _ dr dx du 1 d(u2)
df2 dt dx dt dx ' dx
22.5 Graphical, numerical and other aspects of first-order equations 363
dx
We could put v2 = u and separate, but for the sake of adventurousness we shall
leave v2 as it is and turn the equation upside down:
„ dx , ,
2-- = K~1v2.
d(v2)
Now integrate both sides, courageously using v2 as the variable:
or
v4 = 4Kx - 2CK.
The initial condition x(0) = r(0) = 0 then gives
v(x) = (4 Kx)*.
Problems
In these problems, y' means dy/dx. to use smaller intervals h over some sections than over
others.
22.1. Sketch a lineal-element diagram for the solution
(a) y' = y(x + l)/x(y + 1). This refers to Example
22.6, with the ‘solutions’ ye}’ = Axex, where A is an
curves of each of the following.
arbitrary constant.
(a) >•' = -y; (b) y' = x - y; (c) y' = x/y; (b) y' = 2y*. This refers to Example 22.7.
(d) y' = xy; (e) y' = -y/x; (f) y' = y/x; (c) y' = (y/x)* has solution curves in the first and
1 third quadrants. Sketch a lineal element diagram to
(g) y' = (x - l).v; (h)/ = —-2; obtain the broad pattern, then compute a few repre¬
x- + y
sentative curves. (The general solution is
(i) y' = i . 2 i (j) y' = (i - y2)*; |y| = (M* - C)* for |x|* > C. )
x + y — 1
(k) y' = (y/x)T Make sure that not all your curves 22.4. (Separation of variables). Obtain solutions of the
lie in the first quadrant. following equations.
(a) y' = x/y; (b) y' = 2x/y;
(c) y' = x/(y + 2); (d) y' = (x + 3)/(y + 2);
22.2. (Computational). Use the Euler method to com¬
(e) y' = x2/y2; (0 y' = -x2/y2\
pute approximate solutions to the following initial-
(g )y' = y2/x2\ (h )y'=—y2/x2;
value problems. Try various values of the step h. Compare
(i) 2xy' = y2; (j) yy' + x = 1;
the results with the exact solutions provided.
dx , . dx
(a) / = -iy with y = 1 at x = 0, over the range 0 ^ (k) — = 3f2x3; (1) (sin x) — = t;
x < 2. (The exact solution is y = e~*x.) dt df
(b) y' = — x/y with y = -1 at x = -1, over the range
- 1 <Cx< 1. (The exact solution is y= — (2 — x2)U (m) ex+J’ — = 1; (n) (1 + x2) — + (1 + y2) = 0,
Try to extend your results forward and backward dx dx
(using negative h) to the range — 2 < x 2.) with y(0) = — 1.
(C) y' = (l - y2)*, with y = 0 at x = 0, over the range
22.5. Show that the solution of the initial-value prob¬
0 x ^ jn. (The exact solution is y = sin x.)
lem
dy
- = g(x)h(y) (d) d- = -— (divide by y2);
dx dx y2 - x
where y — b when x = a. dy = y(x2 + y2 - y)
(e) (divide by x2y2);
dx x(x2 + y2)
22.6. Solve the following equations and sketch the solu¬
tion curves. Take care to avoid spurious solutions as in dy y x3 — y
(0 (show that this reduces to
Example 22.7. Look out for solutions you might have dx x x3 + y
lost in the process: these are usually suggested by the
sketch. x3y2 d(x/y) = y d(xy);
dv , , dy
(a) x = 2yT; (b) — = xy% now put u = xy and v = x/y).
dx dx
d2y/Ax2 + (b/x) dy/dx + (c/x2)y = 0 22.16. (Computational). As in Problem 22.15, but con¬
is called equidimensional (the d.x2, x dx, and x2 in struct a differential equation for a stream having a
the denominators are considered to have the same parabolic distribution of velocity, greatest in the middle
dimensions). It is a linear equation with zero on the and zero at the banks, of the form
right, so we expect a general solution of the form v(x) = ax(H — x).
4yi(x) + By2(x), where A and B are arbitrary. Show Put in plausible values for V, v, H, and a, and
how a basis of solutions (y,(x), y2(x)) can be obtained compute the path.
in two ways:
(a) Look for solutions having the form y = xM, 22.17. A mouse M enters a room at O and rushes to
where M is an unknown constant. Note that M might its hole at H with speed v, pursued by the cat C, who
be complex: in that case, to obtain real solutions, use
^„a + jP _ g(a + ]fi) In x _ In * ^j/J In *
as in Section 16.5.
(b) Change the independent variable to f, where
f = In x, or x = e'. The new equation has constant
coefficients.
(c) Use either method to find the solutions of the
equations
Fig. 22.13
22.15. (Computational). A boat enters a river at O, and
tries to reach the point A on the other bank, directly
starts from B at the same moment as the mouse
opposite O and distant H from O, by keeping its nose
pointed towards A, at an angle 6 from OA (see Fig. appears (see Fig. 22.13). The cat runs with speed
22.12). The speed of the boat in still water is V, and the V > v, always directly towards the mouse. Show that
uniform stream speed is v < V. dr/dr = v cos 0 — V and d0/dr = — (v sin 0)/r,
Show that, when the boat is at (x, y),
where r and 0 are polar coordinates for the cat relative
dx/dt = V cos 6, Ay/At = v — F sin 9 to the (moving) mouse. Construct a differential equa¬
where t is time. By dividing one equation by the other tion for r in terms of 9, and solve it (it is really only
find a differential equation for y in terms of x. Given the a question of integration).
Nonlinear differential
equations and the
phase plane
Contents
23.1 Autonomous second-order equations 367
23.2 Constructing a phase diagram for (x, x) 368
23.3 (x, x) phase diagrams for other linear equations; stability 371
23.4 The pendulum equation 373
23.5 The general phase plane 375
23.6 Approximate linearization 377
23.7 Limit cycles 379
23.8 A numerical method for x = P, y = Q 380
Problems 381
d2x dx
+ c(x2 - 1) + x = 0,
df1 df
dx d2x
x = —, x = -.
23.1 Nonlinear differential equations and the phase plane 367
(*o> yo)
the state of the system at t0.
Subsequently the system moves smoothly through a succession of
states: x and x will vary in time. Catch the system at any moment
tA; then the state (x(tj), x(tt)) serves as fresh initial conditions for
all the subsequent motion, but there can never be any conflict with
what was predicted from the original initial conditions. It is the
succession of states which is the subject of this chapter; the precise
time that the states occur takes a secondary place.
To track the succession of states (x(t), x(r)) for the initial-value
problem (23.4), we could in principle begin by finding its solution.
The solution (Example 23.1) is
x(t) = x0 cos cot + w-1j/0 sin cot,
so
x(t) = — cox0 sin cot + y0 cos cot.
x = y. '■ (23.5a)
Since x = — co2x, and x = (d/df)x, we have
y= oo2x. (23.5b)
23.2 Nonlinear differential equations and the phase plane 369
(23.6a)
Time has disappeared from the problem, and we now have a single
first-order equation connecting x and y (i.e. connecting x and x).
Separate the variables in (23.6a), and we obtain
y dy = — co2 x dx,
or
co2x2 + y2 = C, (23.6b)
where C is a positive, but otherwise arbitrary, constant.
The motive for introducing y as the symbol for x now becomes
r-
r--X
clear. Set up a pair of axes x and y as in Fig. 23.2. This framework
is called the (x, x) phase plane. The solution (23.6b) represents the
family of ellipses displayed in the figure, and is called an (x, x) phase
diagram for the differential equation x + co2x — 0.
Any point on the diagram, say A : (x0, y0), represents an initial
i1 iii
(IK Y\\\
Cc\ state. If we follow the curve passing through A, we obtain the
the second time. However, from the discussion in Section 23.1, the
time to complete any circuit, or to go repeatedly between any two
fixed points on the circuit, is invariable because the equation is
autonomous. This argument does not depend on what equation we
started with, so we can say in general: any closed phase path
represents a periodic oscillation.
Finally notice in Fig. 23.2 the bullet at the origin. This point
represents a true solution, namely
x(t) = 0, y(t) = 0.
x(f) = k, x(t) = 0,
Example 23.2. Sketch an (x, x) phase plane for the equation x + cx3 = 0,
where c > 0.
This represents small lateral oscillations x(t) of a mass attached to the middle
of an elastic string that is fixed at the ends and is unextended when x = 0. It is
the same as Example 20.5, with l = L, and c = 4s/ml. We can regard explicit
solutions as being unobtainable.
Put y = x. Then x = y, and we have two first-order equations, together
equivalent to the original equation:
x = y, y = —cx3,
Therefore
dy dy Idx x3
dx dr / dr y
ydy = x3 dx,
y = ±(c/2)*(A - x4)*,
where A is arbitrary. This is the equation for the phase paths shown in Fig. 23.3.
i = di = oj1-
x dx y
x dx,
or
y2 — w2x2 = A,
y
where A is arbitrary. This represents the family of hyperbolas in Fig. 23.4, having
asymptotes y = ±cox. The directions of the arrows follow the rule in Section
23.2: left to right in the upper half plane.
dx y
This is hard to solve. To produce a phase diagram, we could solve the original
equation for x(t) by the methods of Chapter 18, and then obtain y — x(t). These
are parametric equations for (x, y) curves. However, this would not be in the
spirit of this chapter, because almost never are we able to solve the original
equation. Instead, the Euler method of Section 22.2 can be used to obtain
solution curves for (ii). (As we shall see later, it is easier to work from (i) using
Section 23.8.) We obtain the pattern of spiral curves surrounding the origin
shown in Fig. 23.5.
x = y, y= -\y - §x,
or
d.V = -\y- 2-x
dx y
y The phase paths, calculated numerically, are as shown in Fig. 23.6.
In Fig. 23.6, the origin is called a stable node. All solutions fall
straight into the origin without any oscillations: the system is
deadbeat. Notice the structure of the node. There are two straight-
line solutions to the equation
dy = -b - ?x
d.x y
x + co2 sin x = 0,
where x is the angle of inclination and co2 = g/l; here g is the
gravitational acceleration. This equation can be solved, but only
with difficulty, and by using recondite functions. From (23.7), the
equations for the phase paths are
x — y, y = —co2 sin x. (23.9)
The equilibrium points solve the equation sin x = 0, so
Fig. 23.7
x = 0, ±7i, ±2n,..., with y — 0. (23.10a)
If
x = 0, ±2n, ±471,..., (23.10b)
co2x2 + y2 = C,
where C is an arbitrary non-negative constant. This family will be
repeated (for small C) around x = ±2n, ±4n,... in a progressively
developing phase diagram; see Fig. 23.8 below.
where A is (to an extent) arbitrary. Since cos x has period 2n, the
Fig. 23.9 Phase diagram (x, x) for
the pendulum equation repetitious nature of Fig. 23.8 is explained. Notice that (cos x — A)*
x + to2 sin x = 0, given by is real only when cos x ^ A. Therefore 4^1. With that limitation,
y = ±x/2co(cos x — 4)* with
4 ^ 1. The figure extends with
period 2n. The undulating
curves (for A < — 1) represent a
whirling motion. The
separatrices correspond to
4=1. There are centres at
x = 0, ± 2rc,..., and
saddles at x = +71, ±3ji, ....
— = ax — bxy. (i)
dr
For the foxes, assume that a shortage of prey causes a death rate c from
starvation, offset by a fecundity factor dxy among those who get something to
eat. Then, in time fit,
— = — cy + dxy. (ii)
df
(i) and (ii) form a simultaneous (nonlinear) first-order system:
with a, b, c, d, > 0.
376 23.5 Mathematical techniques
Therefore (x, y) = (0, 0) and (x, y) = (c/d, a/b) are the constant
solutions: on the (x, y) phase plane, they are the equilibrium points.
’ As before, divide the two equations, obtaining
dy dx dy _ (c — dx)y
(23.14)
dtj dr dx (a - by)x
- d dx.
or
a In y — by + c In x — dx = C. (23.15)
P(x, y) = Q(x, y) = 0,
and might therefore appear anywhere in the phase plane, not just
on the x axis as with the (x, x) plane. The following statements recall
the main features encountered in this section.
x = k + X, y = l+Y, (23.19)
dT cX + dY
-- (23.21)
dX aX + bY
1 - xy = 1 - (1 + X)(l + Y)x -X - Y
for X and Y small. Therefore, in (23.21),
a = 1, b=— 1, c = — 1, d=— 1;
x — y = X — Y, 1 -xyw-X-Y,
rr = xx + yy,
J>0 iO<l,
j<0 if r > 1,
so the circle is approached from points inside by means of expanding spirals,
and from points outside by contracting spirals. The phase diagram is shown in
Fig. 23.12 Fig. 23.12.
380 23.7 Mathematical techniques
If we start from any initial conditions except for the equilibrium point (0, 0),
the system settles down gradually to the regular oscillation represented by the
circle. This behaviour has a physical explanation. The ‘coefficient’ x2 + x2 — 1,
although variable, serves the purpose of a damping coefficient. Outside the circle,
when .x2 + y2 — 1 > 0 (remember y = x), energy is lost and the paths tend
to drift inwards. When x2 + y2 — 1 < 0 there is negative damping; energy is
being supplied, so the amplitude of paths within the circle increases. For points
on the circle x2 + y2 — 1 = 0 the damping is zero, so the motion is harmonic
(the solutions are x = cos(f + </>), with (f) any constant), consistent with the
circular path.
Since, approximately,
Fig. 23.13 (a) Limit cycle for -x«+i ~ xn = hx(tn) = hP(x„, yj,
x + 10(x2 - l)x + x = 0.
(b) The solution x(r) and similarly for y„+1 — y„, the rule for getting from Pn to P„ + , is
corresponding to the limit as follows.
cycle.
df
fiV-
dr
Therefore
dx dx ds P dy Q
-=- = —— ——— and — = — -——
d: dr dr (P~ ~ Q2)i ds (P2 4- <22)^
art ec . • a tm eq uations for the path, in terms of arc length s. This
av ts * at follow ing method.
dx ~ av -
= P(x, yh ■= Q(x, y),
ds ds
< 23.25 j
vbeit
p = p <P2 - Q2f. Q = Q (P2 4- Q2)*.
Problems
««'-/ prvdwens* ir/v to— prvtc-'-;on. The are . = 4 jc It is difficult to make sense of the diagram
-mtr*+K*e yf 13.5 a os/t e h»gh- ■without this information.)
cy" 5yer/ ^OiAd slew the (e) x = >, ,v = — 2x — 3y. (Stable node. Find the
y< mgc 1 vf erii *t»r«fore S>e two solutions > = —x, v = 2x, which are radial straight
—.y % sr^itie'’4. lines as in ■ These represent /our paths since the}
are interrupted by the origin.)
23. U Cwyxaiinii fbaaree roaynw^ a phase diagram tdt x = >. > = — 3x — >'. (Stable spiraL)
- -a vv -'i ca - ' - ; ' 1*. a- t • . .. ■. (ej x = y, y = — 2x — y. (Unstable spiraL)
'1,4 jsEuagir* '.a*. you be ". 'A-t A. The ev jhhor.um (f) Recompute (a), marking off a time scale on
• a t'-r'. : ■ -a' 'i- - y.- each of the paths, showing interv als in f of around 0.3.
ms '.j »•* a. * v*y • a'': a. *• t ti 'onward*. by (g) Recompute (b) with a time scale as in (f).
thfc' K 'i .£T. ' (h) x = y. y = — 2y. A different type: w hat is the
<sM ^ * J5./ * -4x (A cw«*e,4rz 4 f2 = C If yoor second-order equation that it comes from?
pari» do m( atari? dose, tty a Mdkr rirml i)
% jf * / * x t taotfe. x' ■— y2 = C. Find the
a. mp.uvsi t. r.j *./ ' 'j* ev-i ivr.s ’he} 23.2. Sketch the phase paths for the following equa-
382 Mathematical techniques
tions by first solving for them: form dy/dx and separate (b) centre at (0, 0), saddles at (+ 1, 0);
the variables. (c) unstable node at (0, 0), stable node at (1, 0);
(a) x = y, y = x; (b) x = x, y = y; (d) centres at (±1,0).
(c) x = —y, y = x; (d) x = —x, y = y;
(e) x = 2y, y = x; (f) x = -2y, y = x. 23.8. (Computational). Obtain a phase diagram for the
following (in some of these the linear approximation
23.3. Solve the following by using the energy trans¬ point is zero, so it gives no information);
formation d2x/dr2 = \ d(x2)/dx (Example 20.15), and (a) x + |x|x + x = 0; (b) x + |x|x + x3 = 0;
sketch the (x, x) phase diagrams. (c) x = x4 — x2; (d) x = 2xy, y = y2 — x2;
(a) x = ev; (e) x = 2xy, y = x2 — y2;
(b) x + x2 + x = 0 the transformed equation is linear (/) x ± x(x2 + x2) + x = 0 (notice that the origin is a
in y2); spiral, although the linear approximation has a centre
(c) x - 8xx = 0; - see the remark following (23.22)).
(d) x = ex — e~x (the Poisson-Boltzmann equation).
/
23.6. (Computational). Check some of the phase dia¬
grams you sketched in Problem 23.5 by computing (h2 + x2)*
representative phase paths. Look out for separatrices,
which end at equilibrium points.
A
23.13. (Computational). Solve Problem 23.12 modified Explain why the circle x2 + y2 = 1 does not represent
so that there is friction between the bead and the wire periodic motion.
equal to kx. Classify the equilibrium points and construct
the phase diagrams. 23.19. Verify that the differential equation
23.16. As in Problem 23.7, sketch phase diagrams for 23.21. The linear system given by (23.22), namely
the general (x, y) phase plane compatible with the follow¬
ing information. The equilibrium points and limit cycles x = ax ± by, y — cx + dy,
specified are the only ones allowed. can be expressed in matrix form as
(a) (0, 0) is a spiral and x2 4- y2 = 1 is a stable
x = Ax,
limit cycle.
(b) (0, 0) is a spiral, x2 + y2 = 1 a stable limit cycle, where
and x2 + y2 = 4 another limit cycle.
X a b
_1
(c) (±1,0) are saddles, (0,0) is a centre, and x2 + X = , A =
y2 = 4 is a stable limit cycle.
1
(d) (±1,0) are centres, (0, 0) is a saddle, and x2 4- Try an exponential solution in the form
y1 = 4 a stable limit cycle.
X = C 6^*,
(e) (0,0) is a centre; the only closed path with
x2 4- y1 > 1 is the stable limit cycle x2 + y2 = 4. where C is a constant column vector, and show that
X must satisfy
23.17. Show that, in polar coordinates, the system det(A — Xl2) = 0.
x = -y ± x( 1 - x2 - y2), In other words, the solutions for X are the eigenvalues
y = x + y{ 1 - x2 - y2) of A (see Chapter 13). If Xt and X2 are distinct eigen¬
values, show that the general solution is
becomes
x = Cj e2lt + C7 eX2t.
r = r( \ — r2), 0=1.
By investigating the sign of r, explain why the system What is the solution if Xx = A2?
has just one limit cycle, which is stable. Sketch the Write down the roots of the quadratic equation,
phase diagram. and discuss how the possible cases (e.g. real roots,
imaginary roots, complex roots, etc.) fit in with the
23.18. Find the locations of all the equilibrium points centre, saddle, node, and spiral, as classified in (23.22).
PART IV Transforms and Fourier
Series
The Laplace
24 transform
Contents
24.1 The Laplace transform 384
24.2 Laplace transforms of f", e±(, sin f, cos t 385
24.3 Scale rule; shift rule; factors t" and ekt 387
24.4 Inverting a Laplace transform 390
24.5 Laplace transforms of derivatives 392
24.6 Application to differential equations 394
24.7 The unit function and the delay rule 396
Problems 400
, — (s — 2)t
F(s) = e~st e2' df df
Jo Jo
00
>-(s~2)t
s — 2 JO
(e‘ e°) = (0 - 1) =
s — 2 s — 2
This result is true only if s > 2; otherwise the integral is infinite. We
shall always assume that s is large enough to ensure that the integrals
we encounter remain finite, or converge (see Section 15.6).
We also use the symbol L to stand for the ‘Laplace transform of’.
We have just proved that
1
F(s) = L{e2t}
s — 2
24.1 The Laplace transform 385
L f" = tn df.
t = - u and df = - du.
s s
Since s is positive, the limits of integration f = 0 and oo correspond
to u = 0 and oo respectively. Therefore
u\n du 1
rftn\ — e u un du
„n+ 1
nl
~ s" +1
for n — 0,1, 2,... (from the standard integral, (17.9)). Note that 0!
is to be interpreted as being equal to 1.
Example 24.1. Find the Laplace transform F(s) of /(f) when f(t) = 1 — f +
1 2 1 3
— t2-r.
2! 3!
Composite expressions are dealt with in the following way.
(which follows from the fact that each £{■••} stands for the integral (24.1))
386 24.2 Mathematical techniques
1 1 1 2! _ 1 3!
s s2 2! s3 3! s4
1111
-^ + “I-7-
±t
(b) Exponential e
00
£{e±!} = 1 (0-1)
s + 1 S + 1
r fp'f -
(24.3)
/ -
£{e-'} =
s - 1 s + 1
2l{sin f} - (24.4)
L{cos t} =
s2 + 1 s2 + 1
Since cos t + j sin t = ej;, both of these can be verified at the same
time by working out £{ej*} and then separating the real and
imaginary parts:
» — (s — j)t
£1\eJt} e SI ej' df = df
Scale rule
If L{f{t)} — F(s), and k > 0, then
(24.5)
L{f(kt)} = e stf(kt)dt.
Hf(kt)} = -s(u/k)
m i du
1
e (s/t)u/(u) du.
k
Ml
since F(s) = e su/(w)du.
The following are special cases.
(a) L{ekt} = M
s — k
1 1 _ 1
m s/m +1 s + m
The result (24.6a) therefore holds good for both positive and
negative k.
388 24.3 Mathematical techniques
s
L{cos t}
s2 + 1
Therefore by (24.6)
1 / s 3 1 s - 3
T{cos(3r + \k}
V2V^+9_?T9 V2^T9'
2
Zisin 2d =
s2 + 4
2 2
TLfe 3' sin 21) =
(s + 3)2 + 4 s2 + 6s+13
24.3 The Laplace transform 389
Multiplication by t"
The simplest way to prove this is to start with the right-hand side.
Since
then
d F(s) d
e_s( /(f) df
ds ds
d(e_s()
fit) dt
ds
( — t e~s,)f(t) df e“s'(r/(0) df
then, by (24.8),
d s 9 — s2 s2 — 9
L{t cos 3f}
ds s2 + 9 (s2 + 9)2 (s2 + 9)2
s2-k2
L{t COS kt}
<VTfc¥’ (24.9)
Iks
L{t sin kt)
(s2 + k2)2
Example 24.7. Find £{£3 e-3'} (a) by using the shift rule, (b) by using (24.8),
(c) by working directly from the definition of the Laplace transform.
6
L{e~3' f3}
(s + 3)4
(b) From (24.6) with k = — 3
1
L{e-3'}
s + 3
3!
(s + 3)4
m = m. ■
We shall assume here that there is only one answer to this problem.
The process of finding f(t) from F(s) is called inversion of F(s).
The notation
fit)«- F(s)
24.4 The Laplace transform 391
1
ekt (any k)
s — k (24.10)
s
cos kt (any k)
s2 + k2
\
sin kt (any k)
s2 + k2
1
- sin kt (any k =£ 0)
s2 + k2
A much fuller table which also includes the various rules can be
found in Appendix F. Remember that everything we do with
Laplace transforms refers to f ^ 0 only: the defining integral (24.1)
calls only for values of f ^ 0.
Partial fractions are often useful for inverting transforms.
1 _ 1 1
s(s + 1) s S + 1
so that
-?-<-> 1 — e-'.
s(s + 1)
s + 1 A Bs + C
-S- = - 3-T-7" '
s(s2 + 4) s s + 4
When the constants are determined by the method of Section 1.12, we find that
A = j, B = — j, C = 1, so that
s+ 1 i —i;s 4- 1
_= _ -I---?
s(s2 + 4) s s2 + 4
~ s 1
_+
s 4 s2 + 4 s2 + 4
From (24.2),
1
-<-► 1.
s
From the Table (24.10),
s 1 . .
-<-> cos 21, -<->isin2r.
s2 + 4 s2 + 4 -
Therefore
s+ 1 . , . .
-<-> i — t cos 21 + j sin 2t.
s(s2 + 4)
The quadratic denominator does not have real factors, so partial fractions are
not available. Instead we complete the square:
s2 + 2s + 2 = (s + l)2 — 1 + 2 = (s + l)2 + 1.
3s + 2 = 3(s + 1) - 3 + 2 = 3(s + 1) - 1,
3(s + 1) - 1
(s + l)2 + 1
If we had s instead of s + 1, we could invert the transform:
3s — 1 3s 1
—-«-► 3 cos t — sin t.
s2 + 1 s2 + 1 s2 + 1
3(s + 1) - 1
e '(3 cos t — sin t).
(7+ i)2 +7
In the definition.
dm
M d t.
m- dt
Integrate the right-hand side by parts. Using the notation of Section
17.7, put
df = d f{t)
u = e
dt dt
so that
du
= -se v = /(t).
dt
Then
L<
Jd/Wl ° -sr d/(0
dt
I dr dt
= 0 - e° /(0) + s /(t) dt
= -m + sL{f(t)}.
In other words, if L{f{t)} = F(s), then
fd/(t)]
M- = sF(s) — /(0). (24.11)
i dt 7
(Note that it is /(0), not F(0), that arises here.)
We can use (24.11) again and again to obtain successively
fd2/(0i Id d/(f)|
= £
i dt2 [dt dt J
L{
fd/(0l = sF(s)-m,
tdTJ
d2/(0l
■ =' s2F(s) — 5/(0) — /'(0), <24l2>
dr2 J
d3/(r)l
L< ■ = s3F(s) - s2/(0) - sf( 0) - /"(0),
dt3
and so on.
394 24.5 Mathematical techniques
dx
— + 2x = e
dt
dx
+ 2x = e‘
dt
fdx
^idf' + 2L{X) =£{e
Write
L{x(t)} = AT(s).
sX- 3 + 2X = 1
s + 1
(where we put x(0) = 3 as specified by the initial condition). The transform X(s)
of x(t) is therefore given by
3s + 4 1
X{s) = +
(s 4- l)(s + 2) s + 1 s + 2
x(t) = e~‘ + 2 e_2!,
which is the required solution.
d2x „ dx
— + 2 — + 4x = 1.
dr2 dt
It is initially quiescent and is then switched on. Find the subsequent time
variation of x.
s2X + 2sX + 4X = -,
s
_= i1 _ i
1 s +2
z =
s(s2 + 2s -I- 4) 4 s 4 s2
°2 + 2s + 4
The quadratic has no real factors; therefore the second term is rewritten in the
manner of Example 24.10:
il _i (S+D+ l
x = i-s (s + l)2 + 3
.Li
4 4
s + 1 1
S ,(s + l)2 + 3 (s + l)2 + 3
s 11
COS y/3t. sin yj3t.
s2 + 3 s2 + 3 J3
s+1 . 11
(s + l)2 + 3
e cos V21, (S + l)2 + 3 yj 3
e 'sin^/3t.
Therefore
x(t) - l - l(e~' cos yj3t + e“' sin J31).
d2x ,
—- + WqX = a cos co0t,
dr2
with x(0) = x'(0) = 0.
If we put L{x(t)} = X(s), then the equation transforms into
s2X + oj1oX = ~
S
-,
+
j
(Do
396 24.6 Mathematical techniques
so that
x- as
(s2 4- Wo)2'
.. a
x(t) —-t sin co0t.
2 co0
This equation is one of the exceptional resonant types discussed in Section 19.3.
The advantage of using the Laplace transform is easy to see.
dx dy
— = x~y, — = * + y,
dt dt
sX — 1 = X- Y, sY= X + Y.
Therefore
(1 -s)X - y= -1,
X + (l — s) T = 0.
X = ■ ~l +S , Y = --1-.
s2 — 2s + 2 s2 — 2s + 2
x - 5-1 y = —L—
(s — i)2 + r (s -1)2 + r
so that the shift rule (24.7) can be used to invert them. By (24.10),
s 1
-r—- <-> cos r, —-<->sint.
s2 + 1 s2 + 1
Therefore, by the shift rule with k = 1,
x(t) = e' cos t, y(t) = e' sin t.
(a) x
It is shown again in Fig. 24.1a. Figures 24.1b-e show how it can be
1 used to describe various step functions and switching functions.
For example, the composition of the three segments of Fig. 24. le
is specified by:
O t
e'(0 - 0) = 0 if t < 1,
x
(b)
1 e'[H(f — 1) — H(f — 2)] e'(l — 0) = er if 1 t < 2,
e'(l — 1) = 0 iff 2s 2.
O1 c t
Related Laplace transforms are given as follows.
The various combination rules such as the shift rule (24.7) work for
H(f) in the same way as for smooth functions /(f).
This is the function shown in Fig. 24.le. Then, from the definition,
X *00
e — <s —1 df =-[e-(s-1,'](
i s- 1
- 1 (e-2>»-i>-e-(,~1)).
s— 1
Fig. 24.1 (a) x = H(t).
Alternatively, we could use the shift rule (24.7), though it has no particular
(b) x = H(f - c),
advantage.
(c) x = H(r — d) — H(f — c),
(d) x = r[H(f) — H(r — 1)],
(e) x = e'[H(r — 1) — H(f — 2)]. Example 24.1 7. Find the Laplace transform of the function shown in Fig. 24.2.
By considering the segments one at a time and using Fig. 24.1c, we have
From (24.14)
H(f — n) <->-.
5
1 i t i
i i Therefore
i i
i_i
o i: 12 31 14 t 12 ,
i i i
i i 1 L{x[t)} =-(e^s — e-2s + e“3s — •
s s
Fig. 24.2 The brackets contain an infinite geometric series with first term e s and common
398 24.7 Mathematical techniques
ratio — e s. Therefore
1 2 e-s 1 — e~s
L(x(t)) = -
s sF+ e"s s(l + e“s)
0 c t e 51 g(t — c) dr.
J C
Delay rule
(s + l)(s + 2)
Put
) = e_I — e-2'.
dx
— + 2.x = f(t)
dt
7
with x(0) = 0, where (Fig. 24.4)
( 0 when t < 1,
0 when t > 2.
Therefore
X = (e-(s+1) - e~2(s+1)) 1
(s + l)(s + 2)
1 1
= (e“(s+1) - e~2(s+I))
s + 1 s+ 2
1 1 1
e 1 e s — e 2 e 2s
vs + 1 s + 2 s+1 s + 2
1 1
- «-> e ' — e 21.
s+1 s + 2
We obtain
x(t) = - e"2('_1)H(t - 1)
— e~2(e~('~2) — e_2(<_2))H(f — 2)
Both terms are zero before ‘switch-on’ at t = 1. Between t = 1 and 2, only the
first term contributes. For t > 2 both terms are present, the second being
stimulated by ‘switching off’.
Problems
The dot notation, x = dx/dt, x = d2x/dt2, etc. is used (e) 2x + 3x — 2x, where x(0) = 5, x(0) = — 2;
in some of the questions. (f) 3x — 5x + x — 1, where x(0) = 0, x(0) = 0.
24.1. Write down L{x(t)}, where x(t) is as follows, 24.7. Use the Laplace transform to solve the following
(a) e'; (b)4e_I; (c)3e'-e"'; initial-value problems.
(d) 3f2 - 1; (e) it3 + 2f2 - 3; (f) 3 + 214; (a) x + 3x + 2x = 0, x(0) = 0, x(0) = 1;
(g) 3 sin t — cos f; (h) 2(cos t — sin f); (b) x + x — 2x = 0, x(0) = 3, x(0) = 0;
. , 1 1 , 1 (c) x + 4x = 0, x(0) = x0, x(0) = y0;
(i) 1 H— t H— t + ■ ■ ■ -i— t" (you get a geometric (d) x + co2x = 0, x(0) = c, x(0) = 0.
1! 2! n!
(e) x + 2x + 5x = 0, x(0) = 3, x(0) = — 3;
series; see Section 1.13).
(f) d4y/dx4 — y = 0, y(0) = 1, y'(0) = 0, y"(0) = 0,
y"'(0) = 0 (use x instead of t as the variable in the
24.2. (Scale rule). Find L{x(t)} for the following cases Laplace transform).
of x(t).
(a) e3'; (b) 1 — 2 e~2'; (c) sin cot;
24.8. Use the Laplace transform to solve the following
(d) cos cor; (e) 3 cos 2t — 2 sin 2t;
initial-value problems.
(f) cos2 t (express it in terms of cos 21);
(a) x = 1 + t + e', x(0) = 0, x(0) = 0;
(g) sin2 t (see (f)).
(b) x + x = 3, x(0) = 0, x(0) = 1;
(c) x + 2x -I- 2x = 3, x(0) = 1, x(0) = 0;
24.3. (See Section 24.3). Find L{x(f)} in the follow¬ (d) x — x = e2'. x(0) = 0, x(0) = 1;
ing cases of x(t). (e) x — x = t e'; x(0) = 1, x(0) = 1;
(a) t2 e' (easiest to start with f2); (b) t e~2'; (f) x — 4x = 1 — e2', x(0) = 1, x(0) = — 1;
(c) f2e“'; (d)e2'cosf; (e)e“'sinf; (g) x - 4x = e2' + e“2', x(0) = 0, x(0) = 0;
(f) e' sin 3f; (g) e~2' sin 3f; (h) e~3' cos 2r; (h) x + co2x = C cos cot, x(0) = x0, x(0) = y0;
(i) fcos3f; (j) r sin 3r; (k) t2 sin f; (i) x — 2x - x + 2x = e’2', x(0) = 0, x(0) = 0,
(1) t4e-' (compare the three methods: (i) start with f4 x(0) = 2 (look out for factors in the denominator of
and use the shift rule, (ii) start with e-' and use (24.8), X(s)).
(iii) work directly from the definition (24.1)).
24.9. Solve the following simultaneous first-order
24.4. Obtain the Laplace transform for t sin kt by differ¬ differential equations, for the given initial values.
entiating that of cos kt with respect to k. (a) x = x — y, j> = x + y, x(0) = 1, y(0) = 0;
(b) x = 2x + 4y + e4', y = x + 2y, x(0) = 1,
y(0) = 0;
24.5. Invert the following Laplace transforms.
(c) x = x - 4y, y = x + 2y, x(0) = 2, y(0) = 1.
(a) 1/s2; (b) 1/s; (c) 3/2s; (d) 3/s5; (e) l/(s - 3);
(f) l/(s + 4); (g) 3/(2s - 1); (h) 2/(2 - 3s);
(i)l/s(s-l); (j) l/(s2 + s - 1); (k) s/(s2 — 1); 24.10. Find the general solution of the following by
(1) (2s - l)/(s2 - 1); (m) s/(s2 + 1); (n) l/(s2 + 4); putting x(0) = A, x(0) = B, where A and B are arbitrary,
(o) (2s - l)/(s2 + 4); (p) (2s - l)/s(s - 1); (a) x + x = e'; (b) x - x = 3; (c) x - 2x + x = e.
(q) (s2 - l)/s(s - l)(s + 2)(s + 3);
(r) s/(s - l)(s2 + 1); (s) l/(s - l)3; 24.11. Find the general solution of d4y/dx4 — y = e',
(t) (2s + l)/(s2 - 2s + 2); (u) s/(s2 + l)(s2 + 4). by putting y(0) = A, y'(0) = B, /(0) = C, y"'(0) = D,
where A, B, C, D are arbitrary. (Let the variable in
the Laplace transform (24.1) be x instead of f.)
24.6. Find the Laplace transform of the following ex¬
pressions involving x(t), where L{x(t)} = 3((s).
(a) x(t), where x(0) = 6; (b) x(t), where x(0) = 0; 24.12. This is a system of first-order equations for x0(t),
(c) x(t), where x(0) = 3, x(0) = 5; x,(f), ...,x„(t):
(d) x(f), where x(0) = 0, x(0) = 0;
*0 = fi(xr-1 xr)
The Laplace transform 401
for r=l, 2,Solve them by using the Laplace (a) x + x = fit), where
24.14. Find the functions which give rise to the following (c) x — 4x = /(r), where
Laplace transforms: t for 0 < t < 1,
(a) e-27(s + 3); (b) (1 — se~s)/(s2 + 1);
(c) e-27(s — 4); (d) se~s/(s + l)(s + 2); fit) = \ 2 - t for 1 < t ^ 2,
(e) e"7(s- l)(s2 — 2s + 2).
to for t > 2.
(d) x + x = /(r), where
24.15. Solve the following differential equations
assuming that the initial state is, of quiescence x(0) = fcos t for 0 < t ^ 7t,
fit) =
x(0) = 0: [O for t > n.
Applications of the
Laplace transform
Contents
25.1 Division by s and integration 402
25.2 The impulse function 404
25.3 Impedance in the s domain 406
25.4 Transfer functions in the s domain 408
25.5 The convolution theorem 413
25.6 General response of a system from its impulsive response 415
25.7 Convolution integral in terms of memory 416
25.8 Discrete systems 417
25.9 The z transform 419
25.10 Behaviour of z transforms in the complex plane 424
25.i i Difference equations 428
Problems 430
Division rule
*r
(25.1)
If G(s) <-»■ g(t), then - G(s) g(z) dr.
s Jo
sF(s) = G(s).
Example 25.1. Find f(t) when F(s) — l/s(s2 + 1), (a) by using partial frac¬
tions, (b) by using (25.1).
25.1 Applications of the Laplace transform 403
1
(a) <-> 1 — cos t.
s(s2 + 1) s s2 + 1
I
G(s) = sin f.
s2 + 1
Therefore
1 1 1
F(s) =
s(s2 + 1) ss2 + 1
t
sin t dr = 1 — cos t.
o
i(t) dr + q0
m = 'c -J o
Since q0 +-> s 1q0, this transforms into
1 1
V(s) = [/(s) + q0~]. (25.3)
C~s
1
v0 cos tot = Ri(t) + i(t) dr.
C o
Such an equation is called an integral equation for i(t). The Laplace transform
of the equation is
= RI(s) + -11(s),
Fig. 25.2 s2 + to2 ' ' Cs
404 25.1 Mathematical techniques
so
R (s + 1 /RC)(s2 + co2)
The first two terms represent a steady forced oscillation and the final term is a
transient.
O £ t
The impulse or delta function 5(f)
X
In Figure 25.4, 8(f) is moved to the right so as to be at f = c; the
vertical strip therefore represents 5(f — c). An ordinary function /(f)
crosses it at C. Consider the integral
'b
^ *c+e
If c does not lie between a and b, then the integral is zero. The delta
function is sometimes called a sifting function because of this
property.
25.2 Applications of the Laplace transform 405
Example 25.3. The equation d2x/df2 + co2x = /(f) represents the displace¬
ment x of a particle of unit mass on a spring of stiffness to with external force f(t).
Find the motion for t > 0 if the particle is subjected to an impulse I 8(t — 1) at
time t = 1, assuming equilibrium at t — 0. (/ has dimensions [force x time).)
The equation is d2x/df2 + co2x = / 8(f — 1). Its transform is
I
X(s) =
s2 + at2
We know that
1 1 .
-j *-> — sin cof;
S + CO CO
where H stands for the unit function (24.13). There is no motion until t= 1,
when the impulse sets up free oscillations (I/co) sin co(t — 1).
Example 25.4. Find the current resulting from an impulsive voltage Iv8(t)
R applied to the circuit of Fig. 25.5, the current being zero before application of the
voltage. (The dimensions of f are \_emf x time).)
The equation for the current is L di/dt + Ri = /v 5(f). After transformation, with
i(0) = 0, it becomes
Therefore
L -Rt/L
I(s) =
L(s + R/L)
The great, though brief, applied voltage gives only a finite current because of
the counter-emf generated by the coil.
406 25.2 Mathematical techniques
dH (0 (25.7)
(b) - 8(0.
dr
H(0) = 1,
O t
Table (25.8) should be compared with the Table (25.5) for the case
of steady forced oscillations of frequency co/2k. The impedances
Z(s) in the s plane are analogous to the complex impedances R,
jcoL, and 1/jojC of (21.6) for the steady case. One can pass from
one to the other by substituting jco for s, or —js for co. However,
the s forms allow arbitrary inputs to the circuit to be considered.
25.3 Applications of the Laplace transform 407
Impedances in series
Z — Zj + Z2 + • • • .
Impedances in parallel
(25.9,
1 1 1
-h-(-•••.
Z Zx z2
(a) Example 25.5. The circuit shown in Fig. 25.7a is initially quiescent, with zero
charge on the capacitor. The constant voltage v0 is switched on at t = 1 and off
at t = 2. Find the current i(t).
The corresponding s domain impedances are shown in Fig. 25.7b, in which the
elements R and C are grouped. They are in parallel, so (25.8) and (25.9) give
t _1 1 _l,s_s+4
Y^R (Cs)_1 _3 12 _ 12
Hence
„ . ,12 4(s+l)(s + 3)
(b)
s+ 4 s + 4
Therefore
s +4
/(s) = V(s).
4(s + l)(s + 3)
Vpjs + 4)
I(s) = (e_s — e~2s)
4s(s + l)(s + 3)
1
-+ 24 (e-s e~2s).
s + 1 5 + 3
408 25.3 Mathematical techniques
and, by using the delay rule (24.15) to deal with the exponentials,
Nothing happens until the system is switched on at t = 1, when the first term
(only) is activated. At t = 2, when it is switched off, the second term comes in
also; some current persists but it dies away to zero.
Xn(s) = Gn(s)F(s),
Q(s)/P(s) = Gpq(s),
Example 25.6. Find the transfer function G(s) from the voltage transform P(s)
over R, regarded as the input, and the voltage transform @(s) over C, regarded as
the output, in Fig. 25.9a.
(b)
Let the current i(t) be as indicated. The impedances of the various groups are
shown in Fig. 25.9b; these are in fact transfer functions between current and
T T voltage for each unit. In terms of the transforms,
1
Pis) = RI(s), Q(s) = I is).
Cs
Therefore
m 1
G(s) =
Fig. 25.9 Pis) RCs'
410 25.4 Mathematical techniques
Thus
<20 = — - P(s),
PCs
(a) circuit A
1
and so q(t) = p(r) dr, as expected.
RC Jo
Suppose now that we have a circuit such as the one in Fig. 25.10a,
called Circuit A, where p(t) is the input voltage and q{t) the output
voltage. Figure 25.10b schematizes the arrangement and specifies
the transfer function G(s) = Q(s)/P(s) between p and q.
(b) circuit A,s domain We could also symbolize the dependence of q on p by the scheme
in Fig. 25.10c. However, this figure suggests the beginnings of some
kind of series arrangement: it looks as if we could attach another
G Q L*S circuit to the original one without altering the transfer function, and
P(s) A P RA+LAs Q(s)
so get an easy calculation for the combined circuit. This is not true
0 in general, but sometimes it is a useful approximation.
To illustrate this question, we will append to Circuit A another
Circuit B. It is shown in Fig. 25.11a, together with its s domain
(c) representation and its transfer function. In Fig. 25.11b, A and
B are connected across MJV; here p, q, r, and their transforms
V P, Q, R represent the actual voltages across the terminals indicated.
G
A R+Ls
P A A
' Q The question is, do the transfer functions written in the boxes
still correctly give (2(s) in terms of P(s), and then R(s) in terms
Fig. 25.10 of <2(s)?
(a)
circuit B circuit B, 5 domain
G„= V
vv
(b)
circuit A circuit B
N
o—
c = V r V
P(s)
w Q(S)
B VV
R(s)
Fig. 25.11
M
Example 25.7. The two circuits A and B shown in Fig. 25.12 are connected
to form a composite circuit C. Show that
G(s) a GA(s)GB(s)
(where the G(s) are the transfer functions for the voltages shown) if 1/R is much
smaller than 1/r + 1/r,.
—? VA— -O O--Wv- r- O
1
®-
ft * f f' rl
f
vvv
r -
vvv
> V V r*
J*.
V
VB V
v r vc
1 1 1
1
Fig. 25.12 circuit A circuit B circuit C
r r r
Ga(s) =
V*(s)
K (*) r + r,
FB(s) impedance of C
Gb(s) =
V2(s) total impedance
1 1
Cs R + Ls+ l/Cs
Therefore
1 1
GA(s)GB(s) =
Cs r + r, R + Ls + 1 /Cs
For Circuit C, by following the voltage drops around closed subcircuits as usual,
we get
from which
Vr
h =
(r + r,)(r + R + Ls + l/Cs) — r2
Vc(s) 1 r
Gc(s) = m2’
F(s) Cs (r + r,)(r + R + Ls + l/Cs) — r*
which we have to compare with GA(s)GB(s) above. Rewrite Gc(s) in the form
1 r 1
Gc(s) =
Cs r + r, R + Ls + l/Cs — rr,/(r + rj
It can be seen that Gc(s) % GA(s)GB(s) if rr,/(r + r,) is much smaller than R. But
r + r.
and this is much smaller than R if 1/r + l/r1 is much greater than 1/R. The
relation between the circuits could be represented in this case approximately by
Fig. 25.13, as if they processed the voltage signals independently.
412 25.4 Mathematical techniques
G * * -►-
—>— A r+r] -W ~
B Cs R+Ls+WCs
V
Fig. 25.13
Example 25.8. Figure 25.14 shows a chain of three systems, which act
independently upon their inputs according to the transfer functions GA(s), GB(s),
and Gc(s) indicated in the boxes. Find the transfer function G(s) between F(s) and
Fc(s). Find fc(t) when /(f) = H(f),/or zero initial conditions.
Fig. 25.14
We have
1 1 1
Fc{s) = G(s)F(s) =
s(s + l)(s + 2) s s2(s + l)(s + 2)
In partial fractions,
, 1 , 1 1 1
Fc (s)=-l- + ±~2 +---i--■
s s s + 1 s + 2
Example 25.9. In a particular system, the output X(s) in the s domain is related
to the input F(s) by X(s) = G(s)F(s). Find the general character of x(t) if
f(t) = cos 2f, G(s) = s/(s + l)(s2 + 4s + 5).
Since /(f) <-> s/(s2 + 4), we have
X(s)
(s + l)(s2 + 4s + 5) s2 + 4
Is .1
, and (from G),
s + 1 (s + 2)2 + 1 (s + 2)2 + 1
and
S
-=-and A
——1 (from F).
s' + 4 s2 + 4
25.4 Applications of the Laplace transform 413
e~', e-2' sin t, and e_2! cos t from G (which are transients),
Example 25.10. The transfer function between an input F(s) and an output
X(s) is l/(s2 + 1). Find the amplitude and phase of the steady forced oscillation
produced by an input /(f) = 3 sin 21.
As pointed out in Section 25.3, the complex impedance is simply the s domain
impedance with jco substituted for s. The same is true for any transfer function.
In the to domain representation, the input and output will be represented by
phasors F(co) = 3 e~i7Ij and X(co), corresponding to circular frequency co = 2
in this case. Then
Convolution theorem
This result will be proved in Chapter 31, Example 31.12. For the
present we shall verify that it is true in some special cases.
1
F(s) =
(s + l)(s + 2)
1 1
G(s) = H(s) =
s + l’ sTT
41 4 25.5 Mathematical techniques
,-(l-t) p-2r
F(s) <-> fit) = e 2t dt
(s + l)(s + 2) s+1 s + 2
1 — cos f.
s(s- + 1)
To confirm that (25.11) gives the same result, put
1
G(s) = and H(s) = -,
s+1 s
say. Then (for t > 0) g(t) = sin t and h(t) = 1, so
g(t — t) = sin(f — i) and h( i) = 1.
Therefore, by the convolution theorem.
as expected.
which is the integral required, merely using u instead of t for the variable of
integration.
Use the convolution theorem, (25.11), putting G(s) = l/(s + 1). Then
9(t) = e '.
The current resulting from this special voltage (an impulsive input)
will be called x*(t), with transform X*(s). Now put F(s) = 7V and
X* for X into (25.12), and it becomes
2f(s) = 7v-12f*(s)F(s).
= / 1 e‘ er sin t dx
i r1
7 [cos(2t — 3t) — cos(2f t)] dr,
Jo
by using the identity (1.18b). In the end, we find
for f > 0. The first term is a transient, and the second an induced free oscillation,
while the third term represents the forced oscillation.
9(t ~ Tt)/(Ti)8t.
The factor g(t — xf) takes into account the time elapsed between
the cause and its effect - in some problems it would be appropriate
to call t — tj the ‘age’ of /(rq) at the moment t of observation, and
g an ageing factor. Depending on the type of problem, this factor
might weaken or amplify the contribution of f(xf) to the integral
as time t passes. The elapsed time is increased if either we take an
earlier x1, or delay the time of observation by increasing t. Figure
25.15a shows a representative function g((x), where a stands for ‘age’,
and Fig. 25.15b illustrates its effect on the influence of / at time xt
on x at a later time t.
where
{x(O),x(D,x(270, x(3T),...},
x*w = m
(or x*(t) = {1} or {1, 0, 0, 0,...} in the sequence form). Since the
device generates only discrete outputs, g(t), which is equal to the
response to x*(£), must also have a discrete form:
m M
y(t)
Output
O T IT 3T 4T t
(b)
5(t-T)
Fig. 25.17
0 T t
(a) If the input is x(f), then the ouptut is y(t) = x(t — T). Therefore, if
x(t) = S(t), the output is d(t — T) as in Fig. (25.17b), and by (25.17), we must
have g(t) = 5(t — T), so the transfer function is G(s) = e-Ts.
(b) To check that this transfer function really works for a general discrete
X
In the general case when the transfer function takes the form
{0i,02the inPut x(t) = S(t), represented by x(t) = {1},
M
generates a string of impulses £ gm&{t — mT), delayed by intervals
m=0
mT, m = 0 to M. We shall look at this case in the next sections.
z = eTs. (25.22)
N N y
X(s)= X xn e~"Ts = I
n=0 n=0 2
X(z) = x o + - + ^ + ^ + • • • (25.23)
z z z
is called the z transform of x(t). Given x(t) we can write down the
z transform. On the other hand, given a function X(z), we can
expand it by Taylor’s theorem in powers of z_1 in order to obtain
the sequence of coefficients {x0, x1? x2,...} in (25.23), which defines
x(t). This sequence is called the inverse transform of X(z).
Suppose that {x„} is supplied as input to a discrete linear system.
The z transform of the output y(t) = {y0, y1? y2,...} is
T(z) = y0 + - + ^f + • • • (25.24)
z z
£(z) = do + — + +• • • • (25.25)
z z
Finally (since all we have done is to write a shorthand for eTs), the
z transforms of output and input are related by
nt \ . 9l . 02 .
Q{z) — do H-1 y + ' ‘ •
z z
(25.28)
(b) The input/output relation is
7(z) = g(z)X(z).
(e) The inverse of g(z) is the response to an input
<5(f), and has the form {g0, gx, g2,..
Example 25.17 Obtain the z transform of the discrete signal x(t) defined by
the sequences (a) {1}; (b) x„ = 1 for n ^ 0; (c) x„ = 1 if n is even, xn = 0 if n is odd.
0 0
(a) X(z) = 1 H-1—- + • ■ • = 1.
z z
This is an infinite geometric series with common ratio z_1 (it converges only if
|z| > 1, but do not worry about this). From Section (5.4):
X(z) =
1 1
(c) X(z) — 1 + -j + + • • • •
z z
1
X(z) =
l-z“2 z2 - T
2 3 4
X(z) =1-1-+ +
z z z
422 25.9 Mathematical techniques
1 12 3
-X(z) = - + ~2 + -3 H ■
z z z zJ
1\ 1 1
1 - - \x(z) ={+- + - +
z Z z 2
z — 1
X(z) =
- 1/ zj (z - l)2
Example 25.19. (a) Obtain the inverse z transform of the function X(z) =
z/(z — 2). (b) Deduce the time function x(t) which it represents.
(a) We need to find the coefficients in the infinite series form for X(z):
X(z) =
x
X0 + — + -y +
, x2
• ‘ ‘ •
z z
This is a Taylor expansion ofX(z) in powers of 1/z for large z (see Section 5.6).
To obtain it, we start by expressing X(z) in terms of 1/z:
2 22 23
X(z) — 1-1-b — + — + • • ■ .
z z z
Therefore the sequence of coefficients (i.e., the inverse) is {1, 2, 22, 23,...}.
(b) The corresponding time-function x(f) is therefore
Example 25.20. The response of a discrete system to the input x(t) = <5(t) +
(5(f — T) is found to be y(t) = <5(t) + 2S(t — T) + d(t — 2T). Find (a) the transfer
function Cj{z), (b) the transfer function G(s), (c) the response to a unit impulse S(t).
1 2 1
(a) PutX(z) = 1 H—, flz) = 1 -|-1—-, and Q(z) = g0 + — + ~ + ■ ■ ■ (for
z z z z z
all we know at this stage, there might be an infinite number of terms in (/(z)).
Since J{z) = Q(z)X(z),
G(s) = 1 + e Ts.
25.9 Applications of the Laplace transform 423
{l,ej“r, e2j“r,...},
gjcoT q2jcoT
= 1 + (ej“Tz_1) + (ej“Tz-1)2
This is an infinite geometric series with common ratio ejra7z-1, so its sum is
equal to
z _ z z — e~j“T
z — ejraT z — ejtuT z — e~jtuT
The transform of cos coT and sin ojT are the real and imaginary parts respectively
of this expression, so:
z sin coT
transform of sin coT = —-.
z2 — 2z cos toT + 1
Ti
To + + • • • + — + ••■
z z
obtain:
y0 = 0oxo>
y i = 0ixo + 0oxi>
(25.29)
y 2 = 02*0 + 01X1 + 0 0X2 ’
= Z 0r^n-r-
r=0
<5(0 g(t)
S(t-T) g(t-T)
Output
Input function
function
A
followed by
B
Fig. 28.18 O O 2T 3T
of z:
aMzM + aM-iZM 1 + • • • + a0
£(*) = (25.31)
bftZN + bN_1zN 1 + • • • + b0
are
For simplicity, we shall assume that these numbers are all different.
The denominator of (25.31) then has N different factors of the form
426 25.10 Mathematical techniques
(z — z„), for n = 1 to N, so
aMzM + aM_±zM 1 + • • • + a0
g(z) (25.33)
bN(z - zx)(z - z2)---(z- zN)
Notice that Q(z) is infinite at the points zu z2, .. ., zN. These points
are called the poles of (fi(z). Some of them may be complex numbers.
If so, they occur in pairs: if z„ is a solution of (25.32), then so is its
complex conjugate z„.
Equation (25.33) may now be expressed as the sum of partial
fractions (now in general complex) just as in Section 1.12:
Q{z) = C0 + + • • • + C— (25.34)
Z Z Z2 Z
C
(25.35)
z —c
C C/ cV1 C Cc Cc2
— (l j --+ H—•
z — c z \ z) z z zJ
If |c| > 1 the terms are increasing in magnitude, and the system is
said to be unstable. If |c| < 1 they are decreasing in magnitude. The
rate of increase or decrease is actually exponential, because
= 2 Re + • • • (25.36)
z
25.10 Applications of the Laplace transform 427
o = In |c|, co — arg c,
so that
c = eff e^,
and
c" - e"ff eJna\ (25.38)
T taken from
Fn+1 — yn + -X«>
or
■Vn + 2 +j yn + xn,
yn+i = yn + xn,
given that
>'n = 3 + (l-|-2 + 3 + -- - + n)
= 3 + ^n(n + 1)
as with a differential equation. The sequences and their transforms are given by
{y„} = {y0,yi,y2,---},
9tz) = y0 + y^'1 + tv-2 + • • •;
Therefore the z transforms of the sequences obeying the relation (i) are con¬
nected by
az2 + bz + c
Problems
(a)
25.1. Invert the transforms (a) 1 /s(s2 + 1), -VvV-
(b) l/s“(s“ + 1), (c) l/s3(s2 + 1), by using (25.1). R=2
Ht-
C= 2
25.2. The equation for the current i(t) in an RLC
circuit for zero initial charge is
L= 3
't (b)
di L= 2
L + Ri + - /'(t) dr = v(t).
df C Jo —VW
C=3
(a) Solve this equation when L = 2, R = 3, C = 3, v(t) = *
3 cos r in conveniently scaled units, for zero initial
current and charge. -^nrrr-
(b) Adapt the equation to the case when v(t) = 0 and R=2
there is an initial charge q0 on the capacitor, and
solve it, given that i(0) = 0.
(c) The circuit in (a) is quiescent with zero charge;
then, at f = f0, a voltage of 300 units acts in it for
0.01 time units. Approximate the applied voltage
by a suitable impulse function, and solve the equa¬
tion for i(f).
(b) R=2 L=2 25.11. (a) A student learning a language aims to memor¬
O-WV— -'TIF'-I -o ize 50 new words a day, starting at t = 0. She is successful
f 'l(s)
► C=2
1
1
in this but, after a time lapse a, remembers only a fraction
e-o.ou those iearne(i at any time. Express the number
V,(J) R=3 3 =■ v2( Nit) of words still in her vocabulary in terms of a
convolution integral, and evaluate it.
■ o- -0 l Fig. 25.22 (b) The student decides to increase the number of
words available by attempting 50 + O.lt words per day.
Find the new Nit), assuming the same initial success and
25.7. Evaluate the convolution integral
the same rate of forgetting.
•t
git) hit - t)c1t, 25.12. A population pit) for t > 0 develops as follows.
Jo The p0 individuals in existence at t = 0 die out on
or average via a factor e~v', so that at time t only about
•t p0e~yt are still in existence. For the rest, take any
h(T)g(t - t) dr, time t < t. The number born between z and i = 5r is
Jo bpi%) 5t, where b is the birthrate; these individuals die
in the following cases. Sometimes it might be easier out through a factor e~Pit~z\ where /? < y and t — t
to invert the corresponding Laplace transform (25.11). is the time elapsed from birth. Show that
(a) 0(f) = e‘, h(t) = 1; (b) g(t) = 1, h(t) = 1; 't
(c) 0(r) = e', h(t) = e‘; (d) g(t) = e_t, hit) = t; Pit) = p0 e yt + b p(x) e~w-t) dr,
(e) g{t) = r, h(t) = sin t; (f) g(t) = cos t, h(t) = t; o
(g) g(t) = sin 31, h(t) = e“2‘; and solve the equation.
(h) g(t) = sin t, hit) = sin t;
(i) git) = t4, h{t) = sin t; (j) 0(0 = tn, hit) = tm.
25.13. A simple harmonic oscillator with displacement
x is subject to a constant force F0 for 0 < t < t0, and
25.8. Use the convolution theorem (25.11) to obtain allowed to oscillate freely for t > t0. Its equation of
an expression, in the form of an integral, for a particular motion is
solution of the following equations.
mx + kx = F0[//(t) — Hit — t0)].
(a) ~ + co2x = fit); (b) ^ - co2x = f(t).
dr dr If the system starts from rest in equilibrium, show that
the Laplace transform is
25.9. Use the convolution theorem (25.11) to find a
Fp (1 - e-«)
solution x(0 of the following Volterra-type integral equa¬ L{xit)}
tions. m sis2 + co2) ’
where co = y/ik/m). Show that, for 0 < t < t0, the solu¬
(a) x(r)(t — t) dr = tA. tion is
f
(b) Xit) = 1 + x(r)(t — t) dr; xit) = — (1 — cos cot),
k
(c) xit) = sin t +
f x(t) cos(t — t) dr. and find the solution for t > t0.
expansion, and show that 25.20. Obtain the output y(t), when the transfer function
is G(s) = 1/(1 — ie~Ts) and the Laplace transform of the
2 W. (t - nf + input is X(s) = e~Ts + 2e“2Ts. [Hint: expand G(s) in the
-o (n + 2)! form of an appropriate infinite series in powers of e_s7/]
(b)
Pit)
since the range —jn to also covers a period n. But the integrand is an odd
function about the origin, so that the value of the last version is zero (Section
15.9).
For n — 0, we obtain
'n/co ' 7t/co
1 71/co 'k/O)
cos ncot cos Ncot dt + bn sin ncot cos Ncot dt ).
11= 1 -n/o) J -n/co
(26.5)
Firstly consider the case N = 0. According to (26.3a), all terms
under the summation sign in (26.5) are zero; so, after putting
cos Ncot = cos 0 = 1, we are left with
rn/c> k/co
K
P(t) dr = \a0 dt — — a o-
J - nlo> V - n/o>
co
Therefore
* 71/(0
cu
Cln = P(t) dt. (26.6)
^ J k/co
Fourier coefficients:
a (26.9)
an P(t) cos ncot dt (n = 0,1, 2,...),
J — TC/CO
CO
bn = — P(t) sm ncot df (n = 1,2,...),
tt J — k/cj
(in place of the range of integration, —n/co to rr/co,
any other one-period interval may be used).
an =
2U0 P(t) df = Pit) df,
2 n J.. -n/co
_ TJ -±T
Notice the case of period 2ft, which often occurs. In such cases
co = 2n/T = 1:
1 \
bn = ~ Pit) sin nt df.
TC J — -n
(The integrals may be taken over any one-period
interval instead of [ — ft, ft].)
440 26.5 Mathematical techniques
Example 26.2. Find the Fourier series of the function P(t) shown in Fig. 26.4.
P{t)
Coefficients bn. P(t) is an even function about the origin (see Section 15.9), and
sin nt is odd; therefore P(t) sin nt is odd. Hence the integrals defining bn are all
zero:
bn = 0 (n = 1,2,...). (i)
Coefficients an. Since P(t) is even and cos nt is even, P(f) cos nt is even; so (26.11)
gives
2
= - P(t) cos nt dr = - f cos nt df,
n o Jt
t sin nt sin nt
dr , (ii)
2 .. 2 ( — 1)" — 1
an = ~ [cos nr] S =-r-.
nn~ n n1
Therefore
_ f0 if n is even,
{ —4/nn2 if n is odd. ^
2 * K
a0 = - t dr = jt. (iv)
n J0
Collect the coefficients from (i), (iii), and (iv) and put them back into the Fourier
26.5 Fourier series and Fourier transforms 441
series:
n \ 1
(a) n In Fig. 26.5, we show how P(t) is gradually shaped as we take more
and more terms of the Fourier series in Example 26.2. Here
-i
n \ l2 32 52 /
-JC O
= 1.571 — 1.273 cos t — 0.141 cos 31 — 0.051 cos 51-
Example 26.3. Find the Fourier series for the function shown in Fig. 26.6.
The period is T = 2n, so that co = 1 and the Fourier series is
OO
1 1
(d) a„ = P(t) cos nt dt = t cos nt dt.
1 1 1
- f sin nt H-cos nt
JO
1 \ f 1
OH-cos nn — 0 H- [(-!)"-!]•
Fig. 26.5 (a) 1.571; n2 J \ n2 nn
(b) 1.571 - 1.273 cos t; (c)
The sequence has every even-order term zero:
1.571 —1.273cost —0.141 cos 3f;
(d) 1.571 - 1.273 cost-0.141 2 2 2
a1 = —, a2 = 0, a3 = ——, a4 = 0, a5 = ——,
cos 3f — 0.051 cos 5t. n n32 n52
P(t)
n
1
a0- p(t) dt = -[it2]s = itt.
K t
Coefficient bn.
1 2n
br, = -- P(t) sin nt dt = - f sin nt dt
n
442 26.5 Mathematical techniques
7t
t cos nt 1
-1—- sin nt
71 n n2 o
The series is difficult to write if the cosine and sine terms are kept together. By
separating them, we obtain
To see what values are generated by the series at such points put,
say t = n into the series we obtained. All the cosine terms become
( —1) and all the sine terms are zero, so that at x = it the series
delivers
A few minutes with a calculator makes it clear that this series for
P(n) cannot add up to tt, and plainly it does not give zero either.
In fact its sum is jn, half way between these values. The general
rule is as follows.
Fig. 26.7 shows how the function is fitted by the series when the
six terms up to cos 31 and sin 31 are taken.
These results follow from (26.9) and (26.11), because P(t) sin neat
is odd if P(t) is even, and P(t) cos neat is odd if P(t) is odd.
Example 26.4. Obtain the Fourier series for the switching function P(t)
shown in Fig. 26.8.
For the bn, from (26.9), since the integrands are even functions,
Fig. 26.8 b=- P(t) sin nnt df = 2 sin nnt dr = —— [cos mrf]o
nn
=-[(-!)"-!]
m:
4 “ sin(2r — l)nt
n r=i 2r — 1
Example 26.5. Obtain the Fourier series for the switching function P(t)
Pit) shown in Fig. 26.9.
1
The period is 2, so that co = tl Choose [—1, 1] as the representative interval;
1 1 1 1
1 1 1 1 then
1 1 1 1
1 1 1 1
1 1 1 1
1 1 if-*<*<*,
P(t) =
-2 -4 -l -1 o i 1 1 2
2 2 2 2 elsewhere on the interval.
Since P(t) is an even function, by = b2 = b3 = = 0. The coefficients an are
Fig. 26.9
given by
-l f* 2l
an P(f) cos nnt df cos nnt dr
-i J ~T
As we have seen before, a0 gives trouble since this formula is meaningless when
n — 0. We have, in fact.
r*
a0 =
ldt = l.
*
Then
2 ( 1
P(t) = \ + -1 cos nt-cos 3rcf + - cos 5nt —
1
3i \ 3 5
when our only concern is whether the series fits /(f) between 0
and ft, the behaviour of the series elsewhere being a matter of
indifference.
Figure 26.10 illustrates a technique for producing such series. We
hold on to the given function inside the interval of interest, but
extend it by means of an artificial function which is periodic. This
extended function will have a Fourier series of its own, and it
will agree with /(f) on the interval 0 to n.
In Fig. 26.10b we have extended the nonperiodic function /(f) = f
on 0 ^ f ^ n to an artificial function /s(f) which has period 2k and
is an odd function. Being odd, it has a Fourier series consisting of
sine terms only, and this will correctly reproduce /(f) on 0 ^ t ^ ft.
Alternatively, Fig. 26.10c shows how to get a series of cosine terms
by an even extension fc(t), keeping /.(f) = /(f) on 0 ^ f < n.
Again, Fig. 26.10d shows a fairly arbitrary extension of period 3k,
which will have a Fourier series containing both sine and cosine
terms. Obviously there is an infinite number of possibilities, the most
important being the so-called half-range sine and cosine series,
corresponding to odd and even extensions respectively.
26.7 Fourier series and Fourier transforms 445
\
/ n
[/
\
\
-3k /-2k -k / 0 k /'lK 3k t
/ / / /'
x / -K / /
(c)
Fig. 26.10 (a) /(f) = f on
0 < f ^ n, with natural
m
\ n
nonperiodic extension. \ / \
(b) /(f) = f on 0 ^ f ^ n, has
period 271 and is an odd
-371
i
\
-2k
/
i
-k
\
S A
o k 2k 3k t
function.
(c) /(f) = fon0^f^7r has
period 2k and is an even (d) /a(f)
function.
(d) Z(f) = f on 0 ^ f < 7i,
and has an arbitrary extension
of period 3 it.
Example 26.6. Obtain a Fourier sine series for f(t) = t on the interval
0 ^ f < rr.
Extend /(f) on 0 < f ^ x as an odd function /(f) with period 27t (not ti) as
shown in Fig. 26.10b. Then to = 1 in (26.9). Choose the interval -it to r as
basic. Then since /(f) is odd, we know in advance from (26.13) that
3D
Ut) = X bn sin nt
n= 1
1 rn
b„ = /(f) sin nt df
71
2
/(f) sin nt df (since /(f) is odd; see (15.17))
K
2
/(f) sin nt df (since /(f) agrees with /(f) on 0 ^ f < n)
K
2 2 1 1 . T
f sin nt at = - — f cos nt 9—- sin nt
K
446 26.7 Mathematical techniques
2
-COS Ml 2(-l)"+1
n n n
2/ . 1 . . 1 . , (-l)n + 1 sin nt
- sin f-sin It + - sin it — ■ ■
it V 2 3 71 n = 1 n
and this is equal to t on 0 ^ t < n, but nowhere else. (By (26.12), the value
delivered by the series at t = 7t is zero.)
co = 2n/2t0 = n/t0,
00
fft) = Z b„sininnt/t0),
n= 1
where
u 1
bn = -
P° // x • nizt j 2
ff) sin — dt = —
f'° fit) sin. —
nut
dt,
to J -to to t0 J 0 f0
\ i £ nut
J(t) = ja0 + ^ a"cos—.
n= 1 t0
2 to
nut
an = ~ f(t) cos — dr.
to J o t0 (26.15)
(b) Half-range sine series for 0 ^ t ^ t0
to
S , . tmr nnt
/(0 = L bn sin —, f(t) sin — dr
n=l t0 Lo J o to
then the series for P(t — t0), whose graph is the same shape as P(t)
but moved to the right a distance f0, is
00
Fig. 26.13
Example 26.7. Find the Fourier expansion of the function Q(t) shown in Fig.
26.14.
Q(t) This is the same as Fig. 26.13 except that the vertical dimension is reduced by
a factor 1 /n. Therefore, from (26.16),
1 - A *
, 4 ( 1
Q{t) = i-cos t 4-cos 3f + ■ • •
-2n -n On 2n 3n t 7t2 V 32
Fig. 26.14 Example 26.8. Find the Fourier expansion of the function Q(t) shown in Fig.
26.15.
Here the t scale is changed by a factor n. We obtain, from (26.16),
Q(t)
Q(t) = \n-(cos nt + — cos 3nt + — cos 5nt 4-).
n\ 3" 52 /
t As n goes through the sequence 1, 3, 5, 7,..., cos \nn = 0 and sin \nn
becomes the alternating sequence 1, - 1, 1, - 1,..., . Therefore
fig. 26.16
Q(t) = \n - - (sin t - -1 sin t + — sin
re V 32 52
5t- Y
26.10 Fourier series and Fourier transforms 449
T— — and co = 2nf0.
fo
Xp(t)= I ei2nnfot
n = — co
(26.18)
(b) Coefficients Xn
X. = f» Xp(t) e i2nnfot dt
J Period
450 26.10 Mathematical techniques
The coefficients are in general complex even if xP(f) is real, and the
series runs from n = — oo to n = oo.
To prove (26.18) we shall work backwards from it to arrive at
(26.17). Start with (26.18a):
= iK - jbn), (26.20)
where
and (26.21)
>
X„ = i(a„ - }bH),
where an and bn are the same numbers as the coefficients in the original
series (26.17).
Finally, (26.19) becomes
After using Euler’s formula (6.8) for the exponentials, and carrying
out the multiplications, the terms in which j appear cancel, and we
are left with
X
xP(f) = ja0 + Y, (an cos 2nn/0f + bn sin 2nn f0t),
n= 1
26.10 Fourier series and Fourier transforms 451
Example 26.10. Obtain the two-sided Fourier series for the function xP(t),
yo having period T, of which a single period is shown in Fig. 26.17.
i In (26.18) /0 = 1/r. Therefore
i
J ji 1 iT . 1
X=- xP(t)e i2nn,lT dt = — e >2Kn,IT dt
i n
is j
T J* _i21T T
i i 1 T j-g-j2nm/r-jiri 2
_ _^gjicnt/T _ g-jTtnt/r-j
-I7 _!r oft It ' T(-j2nn) 2nn
Fig. 26.17
= — sin (nm/T) (from (6.10)).
nn
Finally
00 1 TMT
Xp(t) = X — sin eJItn,/T.
n = — oo T
x(t) =
J — 00
x(t) = X(f)d2*ftdf.
(26.25)
J — oo
(b) X{f) is the Fourier transform of x(t):
We cannot prove this result here, but some idea of the process
involved can be obtained by comparing the following, nonperiodic,
example with its periodic counterpart, Example 26.10.
1, — jZ<t<
x(t) =
(0, elsewhere.
Figure; 26.19a shows x(t). The spectral distribution function, or Fourier transform,
of x(t) is given by
it
e~)2nft dt
X(f) = x(t) e i2Kft dt =
“it
1
[e ]tV = -4[e -jjt/t _ eJtt/t]
-j2tt/nit
j 1
(— 2j) sin 7t/i = — sin nfx.
2nf nf
sin nf z
x(t) = X(f) oi2nft d/ = eJ2tt/< df
Figure 26.19b shows the Fourier transform X(f), which in this case is real.
Fig. 26.19
26.1 1 Fourier series and Fourier transforms 453
00 1 nut
xP(t)= X — sin ej2ro,t/T
n — — oo T
x(t) = (26.27)
fo = 5/ and nf0 = /.
f" e„w.d/i
J-„ it/
and this is the same as the result (26.27) for the nonperiodic case.
The following properties follow from the definitions (26.25b):
x(t)~X(f).
' 00 -1
g-(a +j2Jt/)f 00
0
J0 a + }2nf
1
a + )2nf
Therefore
J[e-“'//(r)]= (26.33)
a + )2nf
Since x(r) is neither even nor odd the spectral distribution is a
complex function. Its real and imaginary parts are shown in Fig.
(26.22b).
Example 26.19. Find the Fourier transform of the function given by x(t) = e 1,1
(see Fig. 26.23a)
We have
X(f) = e ^ e >2Kfl dt
- oo
•0
e' e *2nft dt + e~‘ e~i2nft dt
Signal Transform
*(0 X(f) = r[x(f)]
(a) Linearity Ax.it) + Bx2(t) AX.it) + BX2(t)
(b) Time scaling x(At) Xif/A)/\A\
Time-reversal x(-t) X(~f)
(c) Time delay x(t — B) X{f) Q~)2nBf
(d) Frequency scaling x(t/C)/\C\ X(Cf)
(26.34)
(e) Frequency shift x(t) e)2nDt Xif - D)
(f) Modulation x(t) cos 2nKt [X{f - K) + X(f + K))/2
We have
Example 26.22. Obtain the signal x(t) produced by the spectral distribution
X{t) X(f) shown in Fig. 26.24.
■ ■ 1 I
1 The two rectangular pulses are arrived at by extending the range of FI(/) by a
1 1 1
1 1 factor 2 to give FI(f/2), then shifting this graph along the / axis a distance 2 to
-3 -2 -1 0 1 2 3 t the left and 2 to the right to give
Fig. 26.24 X(f) = FI(i{/ + 2}) + ri(F[/ - 2}).
(The modulation rule (26.34f) could have been adopted for the final stage
instead.)
Given that
use the duality theorem (26.34g) to deduce the Fourier transform of t/( 1 + t2).
Put
Divide by (— 2j) and rename the functions obtained Y{f) and y(t):
Y(t)<^-y(-f) =}nx(-2nf),
so we must substitute {-2nf) for t into (i) (including the inequalities t < 0 and
t > 0) giving:
Example 26.24. (Sidebands) The voltage signal x(t) = v(t) cos 27i/0r repre¬
sents an audiofrequency signal v(t) used to modulate a carrier wave of high
frequency f0. Suppose that T[e(0] = T(/), where f lies in the ran9e ~fm< f <
fm < /o- Use the modulation formula (26.34/) to illustrate the general nature of
the spectral distribution function X(f) = Tt^(01-
From (26.34f)
— Q~j2nfa
(26.35a)
26.14 Fourier series and Fourier transforms 459
Timi = 1 • (26.35b)
Next, consider a spectral distribution function consisting of very
narrow band of frequencies /, of width e, about the value f0 (see
Fig. 26.26), so that the range of/ is
and similarly
e -j2nfot §(y _|_
so
does not work with a periodic function, because the integral does
not have a definite value when we apply the infinite limits of
integration. Exact justification and interpretation of these questions
is far beyond the scope of this book. You should regard relations
such as (26.36) as being usually safe, and call on them as if you
were using a dictionary, as did the original inventors of these
methods.
In this sense we can obtain the Fourier transform of a general
periodic function. The result is:
J[xP(t)]= I XMf-nfo).
n = — oo
26.16 Convolutions
Suppose that we have a spectral distribution X(f) which can be
written as the product of two simpler functions Xx(f) and X2(f),
whose inverses we know:
x(t) = (26.40)
J ~ 00
26.15 Fourier series and Fourier transforms 461
in which
* 00
^‘-“^(u) d« I2(/)d/
“ ej2«/(»-->AT2(/)d/ du
J — CO
so the two integrals on the right of (26.42a and b) are equal. This
enables us to invert products of spectral distributions.
The integrals
Example 26.25. Obtain x(t) = x^t) * x2(t) when Xj(t) = 11(f) and x2(t) =
l/d +f2).
Write the convolution in the form
1
x(f) = xj(u)x2(t — u) du = n (u) du.
1 + (t - u)2
Since n(w) = 0 unless -j < u < the limits of integration become ±5, so
l 1
x(0 = n(«) du = du
1 + (f - uf -* 1 +(t-u)2
', + * du
(i)
,-i 1 +v2
(after putting t — u = v)
= arctanfi + 5) — arctan(r — j)
4
= arctan
4f2 + 3
H(u)
-Il(r-u) for various t
1
1
t
!
1
1
l
1
1
u = —3 and u =
26.15 Fourier series and Fourier transforms 463
u — \ ^t<u + \.
u = t + 3 and u — t — \.
Current
value of t
the t line intersects the sides, and the u values are already written
on these sides. (The limits of integration are therefore different
functions of t for values of t on either side of a vertex.)
Other ways of interpreting convolution integrals will be found
elsewhere, but this is by far the simplest way for working them out.
It can be adapted for use whatever the nonzero intervals for the two
functions may be. In practice it is used as follows:
Example 26.26. (a) Show that FI(f)* 11(f) = /1(f), where (Fig. 26.30a)
{1 + t, — 1 < t < 0,
1 - f, 0 < t < 1,
0, elsewhere.
y (a) Put x(t) = n(t) * n(t), and use the diagram Fig. 26.29 as described in (iii)
above.
If t < — 1 or t > 1, there is no overlap, so x(f) = 0.
464 26.15 Mathematical techniques
x(t) = 1.1 du = 1 + t.
J -i
If 0 < t < 1, the limits of integration are from u = t — \ to so
’•i
x(t) = 1.1 du = 1 — t.
Ji-i
Therefore the convolution is equal to A(t).
(b) From the convolution theorem, (26.43),
y[UM0]= t *,5(/(26.47)
n = — oo
e-J2iw/otIUr(t) dt
Xn = fo
(b) J Period
(/o== 1/7)
= /<> Z Q-i2nnfot8(t-nT)dt = f0,
n = — oo J — \T
by the sifting rule (26.35a), since the only delta function within the
period is the one where n — 0. Therefore, from (26.47),
t 7[mr(0] = f0mfo(f)
r*V
>°
1
Example 26.27. The function x(t) is zero when t < — \T and t > \T. Show
the convolution y(t) = ILLr(f) * x(f) is the periodic function, having period T, which
agrees with x(t) in the range < t < \T.
Write
% CO
00 r co 00
using the shifting theorem (the critical points are where t — u — nT = 0). The
term with n = 0 reproduces x(t), which is zero outside the range — \T to \T.
The term with n = 1 slides that graph a distance T to the right, and we have a
non-overlapping copy of x(t) in the range \T to §7) and so on. The general
picture is shown in Fig. 26.32: y(t) is a periodic copy of x(t), with period T.
_Ir _Lt 0 Lt It t
2 2 2 2 26.17 Energy in a signal: Rayleigh’s theorem
Fig. 26.32 (a) x(t) (nonperiodic)
The total energy E carried out by a signal, from t = — 00 to t = 00, is
(b) HLr(r) * x(t).
E = \x(t)\2dt.
Rayleigh’s theorem
o r co
[x«)l2dt= [V(/)|2d/
or (26.49)
x(t)x(t) dt = X(f)X(f)df.
J — CO
We have
E = l*(OI2dt = x(t)x(t) dt
— 00 J — 00
‘ 00
-j2nft
x(t)| x(f) e df dt,
00
X(f)X(f) df.
~ 00
466 26.17 Mathematical techniques
Parseval’s theorem extends this result for cases when the energy
depends on two functions, x(f) and y(t), as in the case of current
and voltage in circuits. It states that
* 00 r oo
Problems
26.1. Draw a sketch of the following odd 2jt-periodic 26.5. Show that the Fourier series of the 2n-periodic
functions defined for and find a general function
formula for their Fourier coefficients:
0 ( —n < f ^ 0),
—1 ( — n < t < 0), /(f) =
(a) /(f) = U (0 < f ^ n),
1 (0 ^ f ^ 7t); , 2/ 1 1
i + - sin f + - sin 3f + - sin 5f + ■
(b) f{t) = f (-7t < t < ?r); nV 3 5
— t2 ( — n < t < 0), What value does the Fourier series take at f = 0?
By choosing a particular value of t, find the sum of
t2 (OsSf^Tt);
the series
e* — 1 ( — n < t < 0),
1 1 1
-(e' - 1) (0 ^ t < 7t); 1-1-b
3 5 7
1 ( — 7i < t < — \n),
26.6. A signal F sin f with amplitude F > 0 is fully
-1 ( —J7t<f<0),
(e) fit) = (f) fit) = sin if. rectified into F|sin f|. Find the Fourier series of the
1 (0<f^7t), rectified signal. What is the amplitude of its first harmonic?
-1 (^7i<f^7t);
26.7. A Fourier series is given by
(a) fit) =< 1 (-in < t s£ in), have amplitudes in the ratio 2:1. What is the amplitude
of the next harmonic?
(in < f sC n);
26.8. The two 27i-periodic signals shown in Fig. 26.33
(b) fit) = f2; (c) fit) = cos if.
1
26.4. A half-rectified sine wave is given by the 2n-
periodic function
-■Jt 7t
[0 (-n<f«SO),
/(0 = -1
[sin f (0 < f ^ n).
are added. Find the Fourier series of the combined 26.14. From Problem 26.13, or by direct means, obtain
signal. What value should F take in order that the the Fourier series valid for — n ^ f ^ 7t:
leading harmonic should disappear?
x (-1)"
f2 = ^n2 + 4 X — - cos nt.
26.9. A F-periodic function is defined by n= 1 n2
Q(t) = iT2-t2 for-fF^r^F. By integrating all the terms in this expression from
f = 0 to f = x, obtain a Fourier series for x3 — tt2x.
Find the Fourier series of Q(t). What is the error (It is always valid to integrate a Fourier series in
between the sum of the first four terms of the series this way in order to obtain a new one, but differenti¬
and Q(t) at (a) f = 0, (b) f = \T! ation of the terms does not always lead to a valid
series.)
26.10. A 2tt-periodic function is defined by
j7?f(jr — f) (0 < t ^ 7t), 26.15. Obtain the Fourier series of the function having
At) = period F which is defined for —\T^t<\T by
|/f(fr + f) ( —7i < f ^ 0).
\-2t (—^F < f < 0),
Find the Fourier series for /(f). What is the ratio of Pit) = <
{ 2t (O^tc^F).
the amplitudes of the third and first harmonics? Compare
the values of /(f) and the Fourier series up to and Display its spectrum as in Fig. 26.12.
including the coefficient b3 at f = Iff-
26.16. The function /(f) is defined on the interval 0<f ^ 1
26.11. Find the Fourier series of the 27i-periodic function by /(f) = 1. Express /(f) as a half-range Fourier series
defined by /(f) = t(n2 — t2) for — n<t^ n. Find the on 0 < t ^ 1, (a) as a sine series, (b) as a cosine series.
derivative of /(f) for —n < t ^ n and find its Fourier Sketch the sum of the series on — oo < f < oo in both
series. Confirm that the derivative of the Fourier series cases.
of /(f) obtained by term-by-term differentiation is the
same series as the Fourier series of /'(f). 26.17. The function /(f) is defined on 0 < f < 1 by
Consider now the function g(t) = f3 defined for — n < /(f) = f. Express /(f) as a half-range Fourier series
t < 7i. Find the Fourier series of g(t) and g'(t). Confirm on 0 ^ f < 1, (a) as a cosine series, (b) as a sine series.
that the derivative of the Fourier series of g(t) is not the
same series as the Fourier series of g\t). 26.18. Express /(f) = sin tot on 0 ^ f < n/to as a half¬
Comparing the functions of /(f) and g(t), what range cosine series. Sketch the sum of the series on
feature of g{t) do you think causes the problem with — oo < f < oo.
its differentiated Fourier series?
26.19. Express /(f) = cos wt on 0 ^ f < n/to as a half¬
26.12. Sketch the rectified sine wave defined by range sine series. Sketch the sum of the series on
— oo < f < oo.
f0 (-7t<f<0),
Pit) = <
(Jsin 2f| (0 < f < tt), 26.20. Express /(f) = cos f on 0 < f ^ 2n as a half¬
range sine series.
extended so as to have period 2n. Find its Fourier
series. (The identities
26.21. Express /(f) = cos f on 0 ^ f ^ 2n as a half¬
sin A cos B = i[sin(A + B) + sin(A — B)], range cosine series.
sin A sin B = j[ — cos(A + B) + cos(A — B)],
26.22. Express the function /(f), for 0 ^ f ^ 7i, (a) as
will be needed.)
a half-range sine series, (b) as a half-range cosine series:
1 (0 ^ f < \k),
26.13. Show that
At)
(jit ^ f ^ 7l).
, a (-ir1 . ,
r = 2 / -sin nt
0
(see Example 26.2). Deduce from this the Fourier expan¬ (a) Let T = n, and
ions of the following periodic functions. (“2^ <t^0),
(a) Q(t), period 4, where /«) =
(0 < t s= §n).
— 31 (-2<t<0),
<2(0 = Show that
31 (0 ^ t ^ 2);
y 1 _ n2
(b) R(t), period 2, where
„h(2n +l)2 ~J'
1 + t (-lsStsjO), (b) Let f(t) — t (— 7i < t < jc) be a 27r-periodic func-
R(t) =
1.1 — f (0«St<l). ion. Find its Fourier series (see Problem 26.1b), and
deduce the corresponding Parseval identity.
(Sketch R(t) to understand the connection with P(t)-)
(c) Check that P(t), Q(t), R(t) have similar spectra.
26.27. The function /(f) with period T has the Fourier
series
26.24. The Fourier series for the function P(t), period
2, given by
/(t) = + X (an cos ncot + bn sin ncot).
(-1 sS t < 0),
P(t) =
Find the Laplace transform of the function as the sum
(0<t< 1),
of a series of Laplace transforms of the trigonometric
for one period, is terms. Hence find the Laplace transform of the 2ti-
,
2 l 1 1 periodic function defined by
P(t) = -1 sin nt + - sin 3nt + - sin 5jtf + •
7i \ 3 5 — t2 ( — 71 < t < 0),
/(£) =
(see Example 26.4). f2 (0 < t ^ 7l).
Deduce the expansion of the function Q(t), period (See Problem 26.1c.)
T, defined on one period by
26.26. The Fourier series of a function with period T 26.29. (a) Prove that
is given by '±T
{ T, m = n,
ej27ln/0r g _
OO
fit) = 2«o + X ian cos M + b„ sin cot), J ~iT (0, 777 n.
n= 1 (b) Confirm that the expansion (26.18) is valid by
where T = In/ao. Multiply both sides of the equation multiplying both sides of (26.18a) by e_j27tN/o' and
^ fit) and integrate between — \T and \T, to obtain integrating the result over one period.
(•arscval’s identity
2 r ^ °° 26.30. Obtain the two-sided Fourier series for the saw¬
tooth function xP(f) defined by xP(t) = t/T for 0 < t < T,
- fit)2 = 2«o + I (a2n + b2).
1 J -iT n= 1 together with its periodic extension of period T.
Fourier series and Fourier transforms 469
26.31. Prove that if x(f) is an even function then 7~[x(t)] (b) Given that e |!| <-> 2/(1 + An2/2), obtain
is an even function of /. Use this fact to reduce the J-1D//(l + 47t2/2)].
Fourier transform pair to a real form. [Hint: split the
ranges of integration into two parts; — oo to 0 and 0 to 26.39. From the result e_"H(f) <-> l/(a + j2n:/), use the
co.] time-reversal rule (26.34b) to obtain i7”[e_a|,)], where
a > 0.
26.32. Prove that if x(f) is an odd function, then X(f)
26.40. (a) Obtain
is a pure-imaginary odd function. Show that the Fourier
transform pair can then be reduced to a pair of real J\Q~at cos fit H(t)] and jF[e_<" sin fit H(£)],
equations.
where ot > 0. (Hint: look at the table of simplifying rules
26.33. Prove the time-scaling rule, (26.34b) and the (26.34) before trying to tackle these directly.)
time-delay rule, (26.34c). (b) Obtain ^[e-”' cos (2nf0t + (/>)], where a >^0.
26.34. By (26.31), iF[n(f)] = sine /. (a) Use the time- 26.41. Prove that
delay rule (26.34c) to obtain the transform of
H(f) * (x(f) H(t)} x(t) dr.
0 < t < 1, o
x(t) =
elsewhere.
26.42. (a) Obtain x1(t)*x2(.t) when x1(£) = x2(t) = e_1 H(t).
(b) Confirm the result (a) by evaluating ^7~[x(£)] directly. (b) Use your result together with the convolution theorem
(c) Use the time-delay rule and the time-scaling rule (26.44) to obtain the transform of a new function, t e~'.
(26.34b) to obtain iF[x(r)] where b > 2C and (c) Obtain J[t e_a<] from (b), where a > 0.
{—1, —b — ^c<t<—b + jc,
(d) Obtain the same result as in (c) by noticing that
d
1, b — jc < t < b + fc, — (e-0") = -f e“a<.
dx
0, elsewhere.
[Hint: sketch a diagram.] 26.43. (a) Prove that
(d) Use the result obtained in Problem 26.32 to confirm n(t-i)*n(t + i) = /i(t- i).
your answer.
[Hint: use the convolution theorem, (26.44).]
26.35. Given that J[/l(t)] = sine2 / (proved in Example (b) Show that
(26.26)), where n(t — a) * n(f — b) = A(t — a — b).
(l+t, -1 < t < 0, (c) Show that
A(t) = < 1 - t, 0 < t < 1, 0, t < — | and t > §,
H<N
rO|<N
[0, elsewhere,
V
V
2 + t,
1
1
n(t)*n(io
obtain (a) J[A{2t/\\ (b) J[4l(2t — 3)]. 1, -2 < t < i
equal to — arctan(2tr/0/a).
26.37. (a) Given that A(t) <-> sine2 /, obtain J[sinc21] 7ta
either by using the duality rule (26.34g), or by a direct
method. 26.45. Prove the result of Example 26.27 by using the
(b) Use the result (a), together with the time-shift and convolution theorem (26.44) together with the expression
time-scaling rules, to find ?\A{at + fi)]. (A(t) is defined (26.47) for J[HIT(t)].
by
26.46. Use the Fourier transform to obtain a particular
(l + t, -1 < t < 1, solution of the differential equation
A(t) = <1 - t, 0 < t < 1, d2x 1
[ 0, elsewhere.) dt2 X_l + £2’
26.38. (a) Prove the differentiation rule (26.34h). in the form of a convolution integral.
PART V
Differentiation of
functions of two
variables
Contents
27.1 Functions of more than one variable 470
27.2 Depiction of functions of two variables 471
27.3 Partial derivatives 473
27.4 Higher derivatives 476
27.5 Tangent plane and normal to a surface 478
27.6 Maxima, minima, and other stationary points 480
27.7 The method of least squares 483
27.8 Differentiating an integral with respect to a parameter 484
Problems 486
Fig. 27.2
(a) The plane (b) The hemisphere (d) The saddle
7 7
r = 2.x + 4v - 2 z = (4 - .x2 - r)* z — x — y
very easy to pick out; there are peaks at A and B, a pass at C (which
is a ‘saddle’ as in Fig. 27.2d), valleys north-west and south-east
of C and ascents north-east and south-west of C. At E the contours
are close together, so the slope is steep, and at F the contours are
widely spaced so the slope is comparatively gentle.
Consider again the function f(x, y) — x2 + y2 depicted in Fig.
27.1. The contour of height c is the circle
x2 4- y2 - c,
Fig. 27.4
27.3 Differentiation of functions of two variables 473
Fig. 27.5 I
The contour of height c is given by the equation
- = xy = c,
or
y = c/x.
By varying c, taking positive and negative values, the contour map or level
curves of Fig. 27.5 are obtained.
(a) A
7 A
yj-
5
O x
Fig. 27.6
474 27.3 Mathematical techniques
df dz
— or —
dx dx
Partial derivatives
If z = fix, y), then
df dz f(x,y + by)-fix,y)
— or — = lim -.
dy dy 8y->o dy
z = x2y + 2x2 - 3y + 4.
For dz/dx, y has the status of a constant for the purpose of the differentiation, so
dz
— = 2 xy + 4x — 0 + 0 = 2 xy 4- 4x.
dx
*)
dyJ(a,b)
or m
\dy/(a.b)
=lim
y^b y -b
1
Example 27.3. Obtain (a) ;(b)
dx\x + yj dy \(x2 + y2)*
u = x2 + y2, z = u
then
dz dz du
dy du dy
(We write du/dy instead of du/dy in the chain rule because both x and y are
present in u, and x is being held constant.) Continuing, we have
* - y) = -y(x2 +
dy
Example 27.4. The potential function V(x, t) = A e~q‘ sin k(x — ct) represents
an attenuating wave travelling to the right along a cable with speed c. Here
A, q, k, c are constants. Find (a) the rate of change of V with time t at any fixed
point x; (b) the ‘potential gradient’ dV/dx along the wire at any moment.
(a) For 8V/dt, use the product rule (3.1) with u = A e~ql and v = sin k(x — ct).
We treat x as constant, so dv/dt instead of da/dt will be written into the product
rule:
dV d{uv) dv du
— =-= u-h v -—
dt dt dt dt
z = x3y + xy2 + x + y2 + 1.
Therefore
d2z
A f8!) = 6Xyt
fa2 dx \dxj
d2z d fdz\ _
3x2 + 2 y,
dy dx dy \dx
d2z d (dz
= 3x2 + 2 y,
dx dy dx \dy
d2z d (5z\
2x + 2.
dy2 dy \dy.
d2f _ d2f
dy dx dx dy (27.3)
In higher derivatives, the dx and dy in the denominator
may be arranged in any order.
27.4 Differentiation of functions of two variables 477
For example
d3/ d3f d3f
2
and so on.
’ dx dy dy2 dx dy dx dy ’
The next example shows how to manage a problem in notation.
Often a function f(x, y) is used in which the variables x and y only
occur in a fixed combination u = h(x, y), so that
df dg du du dh , N
0'(«) — g\h(x, y)).
dx du dx dx dx
% = 5g'(5x - 3y).
dx
dz dg du ,,, / N, dh
dx du dx dx
(27.4)
dz dg du (/I. dh
T = iLT = 9'(Kx,y))--
dy du dy dy
Example 27.6. Prove that if z = 4>(x — ct), where f is any function, then
d2z 1 d2z
dx2 c2 dt2
dz df du
— =-= <p (u).
dx du dx
d2z 8 XU 8u X'U ^
—- =— <b (u) =-= ffl (u).
dx2 dx du dx
Similarly
dz df du
— = — —= 0(m)(-c),
dt du dt
so
Therefore
d2z 1 d2z
dx2 c2 dt2
The equation
d2z 1 d2z
dx2 c2 dt2
where </> and tj/ are arbitrary functions. The general solution of
partial differential equations involves arbitrary functions rather than
the arbitrary constants which occur in ordinary differential equations:
even the simple equation dz/dx — 0 has the general solution z = f(y),
where f(y) is an arbitrary function.
z = Ax + By + C.
z =
27.5 Differentiation of functions of two variables 479
Example 27.7. Find the equation of the tangent plane at the point Q: (2, 1, —2)
on the sphere x2 + y2 + z2 = 9.
Recast the equation into the form z = f(x, y), noticing that Q is on the lower
half of the sphere:
z = -(9 -x2-y2)i.
Then the chain rule gives:
dz , , (dz\
= -(-2x)-i(9 -x2-y2)~*, and ' 1 = 1:
dx (2,1)
dz dzN
= -(-2}'H(9 - x2 ~ y2) and ( —
dy (2,1)
x + (j^) y + (-l)z = C,
(27.6)
Example 27.8. Find the cartesian (x, y, z) equation of the straight line normal
to the surface x2 + y2 + z2 = 9 at (2, 1, —2).
From Example 27.5 (which has the same data), the direction ratios in (27.6) are
1, 2> "I-
(27.7)
(a)
x2 - y2 = 0, xy + 1 = 0.
y = +x = +1.
Therefore there are two stationary points, (1, —1) and ( — 1, 1). The values
of f{x, y) at these points are
/(l,-l) = f, /(-l, 1) = f-
(a)
d2fd2f ( d2f^2
(a) a saddle if ~-~f~ — ( -—Y~ ) < 0 at P,
dx2 dy2 \dx dyy
x2 - 2x = 0, y2 - 2y = 0.
d2fd2f ( d2f\2
—r- —— = —4 < 0;
dx2 dy1 \dxdy)
y — ax + b,
en = yn - (ax„ + b).
The criterion we shall use to determine the best straight line is to
N
choose a and b so that Z e2n is as small as possible; that is to say,
n= 1
we want to minimize
N
n=1
Z (7. axn — b)2 = f(a, b) (say).
eUl
dadb
= o.
The derivatives are given by
N
N
Noting that Z b = b + b + -- - + b = Nb, we find the conditions
n= 1
for a minimum as the following pair of simultaneous equations for
a and b:
484 27.7 Mathematical techniques
N N
a Z *„ + bN = Z yn-
n= 1 n= 1
Example 27.1 2. Find the straight line which best fits the data:
xn 0.0 1.1 3.2 3.9 7.1 8.9
y„ 1.1 1.6 1.6 2.8 2.9 3.8'
Here N = 6, and the coefficients in (27.10) are
Z xn ~ 24-2, Z^n=13.8,
n = 1 n= 1
n
t
= 1
x2n = 156.28, Z
«= 1
*„y„ = 72.21.
Then
T rb
f(t,a + 5a) dt — f(t, a) dt
5a Ja
df
Example 27.13. Evaluate 1(a) , where a > 0, and use (27.11) to
t2 + a2
df
evaluate J(a) =
o (t2+oc2)2
From Appendix E,
df
1(a) = = [a 1 arctanp/a)]? = —.
r + a 2a
By (27.11),
d/ _ d 1 d it
df
da o dat2 + a2 da 2a
or
— 2a
df = —
o (t2 + «2)2
Therefore
df
J(a) =
o (f2 + a2)2 4a3'
486 Mathematical techniques
Problems
Bz Bz
27.1. Sketch contour maps of the following functions: (b) Let z = g(x — y); show that — / — •= — 1.
BxI By
(a) 2x - 3y + 4; (b) —x + 2y — 1; '
(c) (x - l)(y - 1); (d) x2 + jy2 - 1;
(e) x2 + 2x + y2 (complete the square in x); 27.7. Show that, if z = g(x/y), then
(f) y/x; (g) y2 - x2; (h) y/x3; Bz Bz
x-h y — = 0,
(i) x3 + 4y2; (j) y/(x + y). dx By
and check the result in the case z = sin x/y.
27.2. By sketching rough contour maps, indicate the
paths of steepest ascent (the paths on which z in¬
B2f B2f B2f s2f
creases most rapidly), starting at the point (1,1): 27.8. Find—, in each of the following
(a) z = 2x — 3y + 4; (b) z = x — y; dx2 By2 By Bx Bx By
(c) z = x2y2; '(d) z = (x - l)2 + \(y - l)2. cases (note (27.3)).
(a) ax + by + c; (b) x2 + 2y2 + 3xy — x + 1;
27.3. Obtain df/Bx and Bf/By at the point (2, 1) for (c)sin(x-y); (d) y/x; (e) e2x+3>';
the following functions. (f) 1/x + 1/y; (g) sin 3x + cos 2y; (h) (3x — 4y)4;
(a) 3x + ly — 2; (b) — 2x + 3y + 4; (i) 1/(x + y); (j) In xy; (k) l/(x2 + y2)A
(c) 2x2 — 3y2 — 2xy — x — y + 1;
(d) ^x3 + y3 — 2y — 1; (e) x4y2 - 1; 27.9. Confirm that, if r = (x2 + y2)* and z = In r, then
(f) (x - l)(y - 2); (g) 1 /(xy); Bz x B2z 1 2x2
x —y 3 — = — and — =-.
(h) x/y; (i)-; (j) —- dx r2 Bx2 r2 r4
x + y x- + y Show that z = In r is a solution of the equation
(k) (x2 + y2)*; (1) (2x - 3y + 2)3;
d2z d2z
(m) ex2+>'2; (n) cos(x2 — y2); -+ — = 0.
(o) sin(x/y); (p) arctan(y/x). dx2 By2
(This is called Laplace’s partial differential equation in
27.4. (a) Let z = g(ax + by), where a and b are con¬
two dimensions.)
stants. Express Bz/Bx and Bz/By in terms of g\ax 4- by)
(which means g'(u) when u is subsequently put equal
to ax + by). Check your result for the cases when 27.10. Obtain the tangent plane and a normal vector for
g(u) = cos u and g(u) = e“.
the following surfaces at the points given.
(b) Let z = #(sin xy). Express Bz/Bx and Bz/By in terms (a) z = x2 + y2 at (1, 1, 2); (b) z = xy at (2, 2, 4);
of x, y, and </'(sin xy). Check the result by differ¬ (c) z = x/y at (2, 1,2);
entiating es,nxy directly. (d) z = (29 - x2 - y2)± at (3, 4, 2);
(c) A certain physical quantity V is a function only (e) z = x2 + y2 — 2x — 2y at (1, 1, —2);
of the radial coordinate r in plane polar coordinates: (f) z = exy at (0, 0, 1).
V = g(r), where r = (x2 + y2)C Express BV/Bx and BV/By,
firstly in terms of x and y, then in terms of r and 0. 27.11. The two surfaces z = x2 + y2 andz = x — y +
2intersect at the point Q : (1, 1, 2). Find normal vectors
27.5. In plane polar coordinates (r, 0) in the first quadrant, at Q to each of the two surfaces, nx to the first and
r = (x2 + y2)* and x = r cos 0. Form Br/Bx and Bx/Br, /i2to the second. By considering the scalar product
and show that nx -n2,find the angle between the normals and hence the
angle at which the surfaces cut at Q.
Br Bx
-±\.
Bx Br 27.12. Find the stationary points of the following func-
By considering the meaning of the derivatives Br/Bx ions, and classify them using (27.9).
and Bx/Br near a particular point P in the manner of Fig. (a) (x - l)(y + 2); (b) x2 + y2 - 2x + 2y;
27.6. show why it is not to be expected that the product (c) i*3 - ik3 - * + y + 3;
should equal 1. (In the case of a single variable and (d) cos x + cos y; (e) ln(x2 + x) -I- ln(y2 + y);
(f) s*2+y1-2x+2y. (g) XJ, + 1/JC + l/y;
ordinary derivatives, we often get true results by formally
cancelling out symbols like dx, du, etc., as in the chain (h) x3 + y3 — 3xy +1; (i) sin x + sin y;
rule. This almost never works when more variables are (j) xy2 - x2y + x - y + 1;
present: see for example the next problem.) (k) (x2 - y2) + 2xy; (1) (2 - x2 - y2)2;
(m) x4 + y4 + y — x;
„ . Bz I Bz (n) x4 -I- y4 (this eludes the test (27.9) - the point is
27.6. (a) Let z = sm(x — y); show that —/ — = — 1. obviously a minimum).
BxI By
Differentiation of functions of two variables 487
27.13 Classify the stationary point of ax2 + 2hxy + by2 (d) A rectangular container is required to have total
at (0, 0) for various relations between a, b, and h. surface area S, and a volume as large as possible. Find
its dimensions (i) if it has a lid, (ii) if it does not
27.14. Find positive numbers a, b, c so that have a lid.
(a) a + b + c = 21 and abc is a maximum.
(b) abc = 64 and a + b + c is a minimum. 27.19. Find the straight line which best fits the
experimental data in the sense of Section 27.7:
27.15. Find the absolute maximum value of x 1 2 3 4 5
(2 — x2 — y2)2 in the ‘box’ -1 < x sg 2, — 1 ^ y < 1. (It y 3.1 2.1 2.0 1.8 1.2.
will be necessary to investigate the function on the four
edges of the box separately, since the absolute maximum 27.20. The population P of a fast-breeding rodent was
will not be revealed by the conditions (27.9) if it is on observed over a period of 12 months, and the following
the edges.) estimates obtained:
t (months) 0 2 3 5 8 10 12
27.16. Find the shortest distance between the straight P (pop’n) 12 23 26 60 170 300 690.
lines x = y = z and 2x = y = z + 2, by using a simple
Assume that the underlying growth law takes the form
parametrization of each line. (Use different letters for the
(see Section 1.10)
two parameters: these will be the new variables for the
minimization.) P = Aeb‘,
where A and b are constants.
27.17. N points (xl5 jq), (x2, y2),(xN, yN) are given in To estimate A and b, take the logarithm of this
a plane, and P : (x, y) is a general point. Find P so that expression and treat y = In P as a variable in the least-
the sum of the squares of its distances from the N given squares method of Section 27.7.
points is as small as possible.
27.21. For the least-squares method of Section 27.7,
27.18. (a) A rectangular box with a lid must hold a given use the test (27.9) to show that the values of a and b
volume V, and have the smallest possible surface area. obtained do minimize the sum of squares. (This is, of
Show that it must be a cube. (Call the lengths of two of course, rather obvious intuitively.)
its sides x and y.)
(b) An open-topped rectangular box must have a 27.22. Using Laplace transforms with respect to t, solve
the partial differential equation
given volume V and its surface area must be as small as
possible. Find its dimensions. dz dz
(c) A circular-cylindrical box must have a fixed -I- x -— + z = 2x,
dt dx
volume V and minimum surface area. Find its dimen¬
sions (i) if it has a lid, (ii) if it has no lid. for x > 0 and t > 0, where z(0, t) = 0 and z(x, 0) = 0.
Functions of two
variables: geometry
and formulae
Contents
28.1 The incremental approximation 488
28.2 Small changes and errors 490
28.3 The derivative in any direction 493
28.4 Implicit differentiation 496
28.5 Normal to a curve 498
28.6 Gradient vector in two directions 499
Problems 502
— c = (x (y-b)
(a.b) (a.b)
(see (25.5)). We will set up new axes with origin at Q, parallel to the
old ones, and call them 5.x, 8y, 8z (see Fig. 28.1), anticipating that
we shall be concerned with small distances from Q. Then
5 x = x — a, 8 y = y — b, 8z = z — c.
6x + (A
\SyJ(a.b)
Now consider the quantity 8/, where
fix, y) - f(a, b) = 8f * 5x + 5y
This will be the source of almost all our results from now on.
dz dz
In general, — = 2x and — = 6y.
dx dy
Example 28.2. Find the exact algebraic form of the error incurred by using
(28.2) to estimate 8z at (2,1) when z = x2 4- 3y2 (see Example 28.1 a).
1
(.x2 + y2f
8T % — 8/ + — 5t/.
SI eg
28.2 Functions of two variables: geometry and formulae 491
~~ = (-tl^luoi = -0.099.
eg
Then
Therefore
8x = — Ax, 8y = — Ay, 8z = — Az
go into (28.2). Every term has then a negative sign, so the formula
in terms of Ax, Ay, Az has the same shape as the incremental formula:
492 28.2 Mathematical techniques
Small-error formula
Az = — Ax + — Ay (approximately), (28.3)
8x dy
where x and y are measured values, and A stands for
error = (measured value) — (exact value).
Put
sin A
a = f(A, B) = 10
sin(T + B)
Then
da sin(v4 + B) cos A — cos(T + B) sin A sin B
dA sin2(T + B) sin2(T + B)
Similarly
da sin A
— = _10—--.
dB sin2(T + B)
When taken at the measured values A = 45° and B = 30° (these are the only
values available), we get da/d A = 5.36 and da/dB = —7.58. The error formula
(28.3) becomes
A a = 5.36 AA - 7.58 A B
approximately, where A A and A B must be measured in radians.
The greatest possible magnitude occurs if AT and AB happen to have the
opposite signs and their greatest possible magnitudes; that is, if AT = —AB =
±0.087 radians. In that case, Aa = ±1.13. Therefore
a = 7.32(± 1.13),
(b) Since b and c are rounded numbers, all that we know about them is that
b = 3.1( ±0.05), c = 2.1 (± 0.05),
28.2 Functions of two variables: geometry and formulae 493
meaning that the error might be anywhere in the range indicated. Putting the
face values b = 3.1 and c = 2.1 into (a), we obtain
cbc dx
_ = 0.909, -=-0.909;
db dc
so, by (28.3),
This takes its greatest possible magnitude when Ab and Ac take their maximum
values and have opposite sign: that is, when
Ab = ±0.05, Ac =+0.05.
dz dz
5z « - 5x + by.
dx dy
5z dz 5x dz by dz dz .
— %-d-= — cos 9 + sin 9
5s dx 5s dy 5s dx dy
from Fig. 28.2. Now let 5s -> 0; the approximation becomes exact,
and we have an expression for the slope in any direction. Using the
notation for the directional derivative,
5z dz
hm — = —,
8s->o bs ds
Directional derivative
The slope of z = f(x, y) at P in direction 8:
(28.4)
dz (dz\ „ (dzN
cos 8 + sin 8.
ds \dxjp \dyy
dz7 \
) = (y + 2x)(2-3) = 7,
dxj,(2,3)
dz
= (X)(2,3) = 2.
Gy) (2.3)
Also
and
Example 28.8. The temperature distribution in a plate heated at the point (0, 0)
is given by T = l/(x2 + y2)T (a) Find the temperature gradient at the point (3, 3)
in a direction of 45° to the positive x axis, (b) In polar coordinates, T = 1/r. Show
that the result (a) is the same as dT/dr taken at any point where r = (32 + 32)T
(b) T = 1/r, so dT/dr = — 1/r2. At the given point, r = 3V2, so the result is
the same.
(a) dz/dx = V2 and dz/dy = — 1; and these are the same at every point. By
(28.4),
dz
V3 cos 0 — sin 0.
ds
28.3 Functions of two variables: geometry and formulae 495
o, /’/
/’/ descent), in directions such that
V
s/
cy
r?/
-30°
or -J3 sin 9 - cos 0 = 0, or tan 9 = - 1/^/3. Therefore 9 = -30° or 9 = 150°,
-120° these directions being directly opposed: see Fig. 28.4. By considering the sign of
o .r
Fig. 28.4
or just by thinking about it, it can be seen that the directions of steepest ascent
and descent are as shown.
dz
= A cos 9 + B sin 9,
ds
where A and B are the values of dz/dx and dz/dy at P. This is zero
in the directions 0, where
tan = — A/B.
or in directions 02 where
tan 92 = B/A,
tan 9X tan 92 — — 1,
lim
dx §.x—>o bx
Since P and Q both lie on the curve, §/ = 0; so the incremental
approximation (28.2) gives
dl,x+dU
dx dy
0,
or
by df
bx dy'
Now let bx —> 0. The ‘ ~ ’ becomes * = ’, and by/bx becomes dy/dx,
from which we obtain:
Example 28.10. Find an expression for dy/dx at a general point (x, y) on the
circle x2 + y2 = 4.
df df
= 2x, — 2y.
dx dy
28.4 Functions of two variables: geometry and formulae 497
Therefore, by (28.7),
dy 2.\- x
dx 2y y'
Example 28.1 1. Find dy/dx on the curve x3y — xy3 = 6 at the point (2,1).
(You can check that the point (2,1) is really on the curve.) Putting /(x, y) =
x3y — xy3, we have
of , 2 3 df 3*2
— = 3x y — y , — = x — 3xy .
ex ' dy
(-)
Vdx/,2.,) —*■
(This is not a differential equation: it is a numerical value which holds
at only a single point.)
y2 - x2 = B,
(by (28.6)).
Fig. 28.6
Example 28.1 3. Find several normal vectors at the point (2, 1) on the curve
x2 + y2 = 5.
= 2.
n = (4, 2)
and from this any number of other normal vectors can be constructed by taking
28.5 Functions of two variables: geometry and formulae 499
multiples. For example, (2,1), (—2, —1) and are also normals, the last
one being a unit normal (one having unit length), which is often important.
n\ 'w2 _(4,2)-(4,-2)_3
grad f or \f
grad f{x, y)
dx dy
500 28.6 Mathematical techniques
Example 28.1 5. Lei f(x, y) = x2 + y2. Obtain (a) the vector function grad /:
(b) the value of grad / at the point (1, 2); (c) an expression for the magnitude, or
length, of grad / at (x, y).
df df
(a) grad f = -L( + —j= 2xi + 2yj;
ox oy
or we can use the alternative notations, and even the operator viewpoint:
uel+vdl.
dx dy'
df df df .
— = — cos 0 H-sin 0.
ds dx dy
i cos 0 + j sin 0.
so put
i cos 0 + j sin 0 = s,
Directional derivative
— = S‘grad/; (28.11)
ds
(see (10.4)). If we put a = s and b = grad /, and use the fact that
|s| = 1, we obtain an alternative form of (28.11).
df
— = Igrad /| cos f,
ds (28.12)
Problems
28.1. Use the incremental approximation (28.1) or (28.2) Suppose that nominally b = 2, A = 30°, C = 60°, but
to estimate the change 5z due to changes 8x and 8y as that C is found to be too large by 5%. By what amount
specified, and check the percentage error by calculating should A be changed so that S would be restored to
the exact result. the correct area?
(a) z = ,\-2 + y2 at (3,1), 8x = 0.1, 8_v = 0.3;
(b) z = sin xy at (0.5, 1.2), 8x = 0.1, 8y = —0.05; 28.8. A certain type of experiment to measure surface
(c) z = ev2 + 3v2 at (1,1), Sx = 0.1, Sy = 0.2; tension S requires the formula S = ahr3/p2, where a
(d) z = l/(x2 + y2)1 at (2,1), 8x = —0.2, 8y = 0.1. is a constant and h, r, and p are measured quantities.
Take the logarithm of the formula to find the fractional
28.2. Given z = x2 — y2 and two points P: (1.0, 2.1) change in 8S/S in S, in terms of simultaneous fractional
and Q : (1.1, 2.0), (a) estimate the change in z in going changes in h, r, and p.
from P to <2; (b) estimate the change in going from
Q to P; (c) explain in general terms why the second 28.9. Find the directional derivative df/ds of each of
estimate is not precisely the negative of the first. the following functions according to the data. Also,
for the given point, find the directions of the contour
28.3. (See Example 28.2). Obtain the exact algebraical and the direction of steepest ascent.
form of the error incurred in 8/ where (a) /(x, y) = x2 -f y2 at (1, 2), direction 9 = 30°;
(b) /(x, y) = x2y2 at (2,1), direction 9 = —45°;
5/ = /(x + Sx, y + by) - /(x, y),
(c) /(x, y) = x2y - xy2 + 2 at (-1,1),
by using the approximation 8/ % df * + — 8y direction 9 = 120°;
— ox
fix fiy (d) /(x, y) = sin xy at (^, k), direction 9 = —90°;
(e) /(x, y) = cos(x2 — y) at (0, — n), direction 0 = 0;
(a) for /(x, y) = xy near the point (2,1);
(f) /(x, y) = ex-y at (1,1), direction 0 = —45°.
(b) for f(x, y) = x/y near the point (2,1).
28.4. The relation between the object distance u, the 28.10. Find — at the prescribed points on the curves
image distance v, and the focal length / of a thin lens is dx
1 1 _ 1 given.
(a) xy = 1 at (2, |); (b) x2 + y2 = 25 at (3, 4);
u + v~f'
(c) 1/x - 1/y = i at (1, 2);
Suppose that the measured values of u and v are (d) to*2 + -hy2 = 1 at (2, 3);
u — 0.31( +0.01), v = 0.56( + 0.03); calculate the greatest (e) x3 + 2y3 = 3 at (1,1);
possible error in estimating f and the corresponding (f) x3y + 3x2 - y2 - 19 = 0 at (2,1);
percentage error. (g) xy2 - x2y + 6 = 0 at (3, 2);
(h) x2 + y2 = 4 at (2 cos 0, 2 sin 0);
28.5. A viscous liquid is forced through a tube of diameter (i) x2/a1 + y2/b2 = 1 at (a cos t, b sin f);
d = 10(±0.05 x 10-3) and length / = 0.1 under a press¬ (j) x cos y = y sin x at (k/2, 0);
ure p = 10(±5 x 104), and is found to pass fluid at a (k) y2 — 4nx = 0 at (at2, 2at).
rate ;■ = 0.625 x 10~9 per unit time. The viscosity p is
given by the formula 28.11. The ideal-gas equation is PV = RT, where R is a
K pci4 constant. There are three variables; P is pressure, V is
I] =-• volume, and T is absolute temperature, for a fixed mass
128 vl of gas. Show that
Find the maximum error in the viscosity estimate.
28.7. The area S of a triangle with base b and base angles 28.12. Find the cartesian equation of the tangent line
A and C is given by at a point (x,, yj on each of the following curves. (Find
dy/dx first.)
\b2 tan A tan C
S = --. (a) x2 + y2 = a2; (b) x2/a2 + y2/b2 = 1;
tan A + tan C (c) a2x2 — b2y2 = c;
Functions of two variables: geometry and formulae 503
of eg of eg
— — + — — = 0.
28.19. Find normal vectors to the curves below, and
ex ex ey ey find the angle between them at the intersection given.
(a) xy = 2, a2 — y2 = —3, at intersection (1, 2).
Use this result to confirm that, in the following cases,
(b) y = a3, a2 + \y2 = 36, at intersection (2, 8).
the two systems of curves are orthogonal (i.e. they always
(c) a2 + xy + y2 = 3, x + y = 2, at intersection (1,1);
intersect at right angles). Here a and jl are the parameters
interpret your result geometrically.
for the two systems - by varying them we obtain all the
(d) ax2 + 2hxy + by2 + c = 0 and
curves for the systems.
(a) a-2 + y2 = a, y/x = /?; ax0x + h( x0 + x)(y0 + y) + by0y + c = 0,
(b) a2 - y2 = a, .xy = /?; at any point (x0, y0) which lies on the first curve.
(c) y3 — a3 = a, 1/y + 1/a = /i;
(d) (a2 + y2)/a = a, (a2 + y2)/y = [}. 28.20. Find d2y/dx2 on the following curves.
(a) x4 — y4 = 1; (b) xy = 1; (c) xy exy = 1.
28.14. Let (a, y) be any point on the curve y3 — a3 = 1.
Find an expression for dy/dA at the point. Since this 28.21. Obtain grad f where /(a, y) is given by the
expression holds good for every point on the curve, it is following. Give its components, its direction, and its
a differential equation, having the given curve as one of magnitude at the points specified.
its solution curves. Verify this by solving it, and obtain (a) l/(x + y) at (1, -2); (b) y/x at (2, 0);
the other solutions. (c) y2 — 3a2 + 1 at (0, 0); (d) 1/x — 1/y at (2,1);
(e) 1 /r, where r is the polar coordinate, r = (a2 + y2)*;
28.15. (Numerical). Form the differential equation for confirm that the gradient vector points in a radial
the following families of curves, in which c is the direction.
parameter; then use the numerical solution method of
Section 20.2 to obtain a contour map of the functions 28.22. Use the gradient vector to obtain a unit vector
concerned. perpendicular to the following curves at the points
(a) a2 + 2y2 = c, c > 0; (b) a2 + xy — y3 = c; given
a2 + y
(a) 2x — 3y + 1 = 0 at any point;
(c) -- = c; (d) Ay e * = c. (b) a2 + y2 = 5 at (2,1);
x + y- (c) a2 + y2 = r2 at (x0, y0) on the circle;
(d) x2/a2 + y2/b2 = 1 at (x0, y0) on the ellipse;
28.16. Form the differential equation for each system (e) y = 3a2 — 2 at (2,10).
of curves, and deduce the differential equation for the
orthogonal (perpendicular) system. Solve it to obtain 28.23. Use the property (28.9) to find the angle of
the orthogonal system. intersection of the following curves at the point of
(a) y2 — a2 = c; (b) y3 + a3 = c; intersection given.
(c) y2 = ca; (d) ey — ex = c. (a) y2 — a2 = —3 and a3 — y3 = 7 at (2,1);
(b) x2y — xy2 = 0 and x/y — y/x = 0 at (2, 2);
28.17. Find the curves of steepest ascent from an arbitrary (c) a2 + y2 + 2x — 4y + 4 = 0 and y = a2 + 2x + 2 at
point (a, b) for each of the following functions. (—1,1); explain the result geometrically.
(a) ix2 + y2; (b) A3y3; (c) iy2 - y - a2.
28.24. Use (28.12) to prove the results given in Section
28.3 for a general /(a, y): that (a) the directions of
28.18. Implicit differentiation of y with respect to x can
most rapid increase and decrease through a point (a, y)
be carried out as follows when /(a, y) is given explicitly.
are perpendicular to the direction of the contour through
Consider /(a, y) = a2 + 2.xy + y2 = c. Then, by differen¬
the point; (b) the maximum rate of increase from the
tiating this equation and treating y as a function of a, we
point is equal to |grad /1 at the point.
Chain rules, restricted
maxima, coordinate
systems
Contents
29.1 Chain rule for a single parameter 504
29.2 Restricted maxima and minima: the Lagrange multiplier 506
29.3 Curvilinear coordinates in two dimensions 511
29.4 Orthogonal coordinates 513
29.5 The chain rule for two parameters 514
29.6 The use of differentials 517
Problems 519
x = x(t), y = y(t).
As f varies, the point (x, y) follows a curve of some sort which is
said to be defined parametrically. The curve also has a character¬
istic direction, which is the direction the curve is described as t is
increasing, and is indicated by an arrow. We then have a directed
path.
(a) y
Example 29.1. Show that both of the following parametrizations define a unit
semicircle, centred at the origin, in the upper half-plane, traced anticlockwise: (a)
x = cos t, y = sin t, where t increases from 0 to tc, (b) x — — u, y = (1 — u2)A
where u increases from — 1 to 1.
so the points lie on the unit circle. Also, as f increases from 0 to n, y is positive
and x decreases from 1 to —1. The path is the upper semicircle from (1,0) to
( — 1,0), described in a single direction, as shown in Fig. 29.1a.
(b) x2 + y2 = (— u)2 + (1 — u2) = 1. As u increases from — 1 to 1, y remains
positive while x decreases from 1 to —1. The path is as in (a): see Fig. 29.1b.
Given a function f(x, y) which can take values all over the x, y
plane, the function
this path, the function value varies, and we might be concerned with
the rate at which it changes with f. (This is generally different from
the rate at which /(x, y) changes with distance along the path, which
is equal to the directional derivative (28.4), and corresponds to using
arclength s as the parameter.)
To find df/dt, suppose that t increases from t to t + b1. Then, on
the curve (x(f), y(f)), x changes from x to x + 5x and y to y + 5y.
Divide (28.2), the incremental approximation, by 51\
5/
_
df 8x
_ _ I
df by
_ _
bt dx bt dy bt
dy
Let bt —► 0. Then becomes * = —, and — —,and we
bt dt bt df
have the chain rule (or total derivative):
This expression is like the chain rule (3.3) for functions of a single
variable with an extra term in it for the variable y. Partial derivative
rather than ordinary derivative signs are then written as necessary.
Example 29.2. Let f(x, y) = xy — y2, x = t2, y = t3. (a) Find df/dt using the
chain rule; (b) find df/dt by substitution.
df
(a) = x — 2 y,
dx
Therefore, by (29.1),
(This expression can be written in various ways in terms of x and y, for example
as 5x2 — 6xy, or 5yx* — 6x2yL These all look very different, but they all take
the same values since x and y are connected by the fact that (x, y) lies on the
given curve.)
(b) By substitution,
Therefore, as before
506 29.1 Mathematical techniques
f(x, y(x)) = c
d /(x, y(x)) = Q
dx
Comparing this with (29.1), the chain rule, we have x in place of t for the
parameter. In terms of the chain rule, we therefore have
df dx df dy _ 8f + df dy
0 = — — + T-—- = + —-
dx dx dy dx dx dy dx
/(.x, y) = x + y.
Example 29.4. Find the maximum possible area a rectangle may have if the
perimeter is restricted to length 10 units.
Call the sides x and y. Then we require the maximum of the area A:
A = f(x, y) = xy (i)
A = x(5 - x).
5 - 2x = 0,
~ (2x2 — 1) = 0;
dx
which is at x = 0. At x = 0, the curve equation (i) gives y = +1, so we have
found the points A : (0,1) and A': (0, — 1). These are in fact minima, and they
are shown on the path in Fig. 29.3a.
However, there are plainly two maxima also, at B and £?', which are
completely missed by the process above. We could have found them (but lost
A and A') if we had substituted for x instead of y by means of x2 = 1 - y2. You
can see the reason for losing A and A' if you sketch the function 2x2 - 1 between
x = i 1- The maxima are at the ends, but cannot be found by differentiating; see
also Example 4.8.
29.2 Chain rules, restricted maxima, coordinate systems 509
d/(jc(0, y(t))
0 =-= 2 cos t( — sin t) — 2 sin t cos t
dr
= — 4 sin t cos f = — 2 sin 2f.
The solutions of this equation in the range 0 ^ t < 2n are t = 0, -/k, k, frc,
which correspond to the points (1,0), (0,1), ( — 1,0), (0, — l).Therefore this
approach successfully found all the stationary points on the path, which the
method of Example 29.5 failed to do.
g(x, y) = c. (29.3c)
g(x, y) = c. (i)
el-ieA = o. (iii)
dy dy
x2 + y2= 1, (i)
Therefore we have found the points (1,0) and ( — 1,0) which we called B' and
B in Example 29.5.
29.2 Chain rules, restricted maxima, coordinate systems 51 1
If x = 0, then (i) gives y = ± 1. We have therefore found the points (0,1) and
(0, —1) which we called A and A' in Example 29.5.
Example 29.8. Find the rectangle of maximum area which can be placed
symmetrically in the ellipse x2 + 4y2 = 1 as shown in Fig. 29.4.
Suppose that one of the vertices, say A, is at (x, y). We shall require that x and
y be positive, since this is sufficient for the geometrical condition. The area is
equal to 4xy = /(x, y), while x and y are subject to g(x, y) = x2 + 4y2 = 1.
The three equations, taken in the order of (29.4), become
x2 + 4y2 — 1, (i)
2y — Ax = 0, (ii)
Fig. 29.4
x — 2 Xy = 0. (iii)
Suppose that neither x nor y is zero (that could not give a maximum). Then,
from (ii) and (iii),
so x = ±2y. However, these must have the same sign for positive area, and we
postulated that x and y should be positive. Therefore
x = 2y > 0; (v)
1=1. (vi)
Use (v) to substitute for x in (i): we get 8y2 = 1, or (rejecting negative values
of y)
y = 1/2V2,
and (v) gives correspondingly
X = l/y/2.
x = u cos v, y = u sin v,
v = /?,
say, and let u vary. Then
x = u cos P, y = u sin ft.
Here u is the only active parameter; as it varies, (x, y) traces a radial
straight line. Suppose instead that u is held constant, say
u — a;
then, as v varies, (x, y) follows the circle
x — oc cos v, y — a sin v.
The point where the two curves intersect can be described either by
(a) u = a, v = P
in the new (polar) coordinates, or in the original coordinates by
x — a. cos p, y = a sin p.
In general, if we have
x = x{u, v), y = y(u, v),
and vary u and v together in an arbitrary way, then the corresponding
points (x, y) will completely cover some area in the x, y plane. If,
however, we put u = a and vary v, then put v = P and vary u, we
obtain two curves in parametric form:
Therefore
y = x - 2/E
which gives another family of parallel straight lines, obtained by taking various
values for the constant /?, as in Fig. 29.5b.
The two families happen to be at right angles. Taken together, as in Fig.
29.5c, they form a left-handed system of cartesian coordinates (u, v) with origin
at x = 0, y = 0.
Fig. 29.5
29.3 Chain rules, restricted maxima, coordinate systems 513
du dv du dv (29.5)
-+-= 0;
dx dx dy dy
dx dx dy dy
-+ — — = 0.
du dv du dv
514 29.4 Mathematical techniques
Example 29.1 1. Confirm that the following coordinate systems (u,v) are
orthogonal, (a) u = y2 — lx2, v = x^y; (b) x = 2uv, y = u2 — v2.
For (a), use (29.5a). We have
ou CV ou cv
= — 4x, = | x~*y. 2 y, —=
dx dx dy oy
so
du dv du dv
— — + — — = — 4.x((x _ iy) + 2y(x*) =
ox dx dy dy
For (b), use (29.5b); notice how this condition is differently structured from
(29.5a). We have
ox ox oy cv
— = 2 li, — = 2 u, — = 2m, — = — 2v;
du dv du dv
so
ox ox dy dy
- + —-= 2v(2u) + 2u( — 2v) = 0.
du dv du dv
then
z = f(x, y),
then the derivatives dz/du and dz/dv indicate how z, or f(x,y),
changes as we move around in the new coordinates. Consider the
derivative
dz
du
dz dz dx dz dy
du dx du dy du ’
(29.6)
dz dz dx dz dy
dv dx dv dy dv
Example 29.1 2. Use the chain rule (29.6) to obtain dz/dv where x = u2 — v2,
y = 2uv, and z = xy; check the result by substitution.
dz dz dx _ dy
— = v, — = x, — = — 2v, — = 2 u.
dx dy dv dv
Then
dz dz dx dz dy
-H- — 2yv + 2 xu = 2u3 — 6 uv2.
dv dx dv dy dv
Example 29.1 3. Find expressions for dz/dr and dz/d9 when x = r cos 6,
y — r sin 6, and z is a function of position.
dz dz 8x dz dy ,dz . dz
--I-- cos 6-h sm 0
Jr dx dr dy dr dx By’
dz dz dx dz dy . n dz dz
-H-- = — r sin 0 — + r cos 0 —.
Jo dx dO dy dO dx dy
Example 29.14. Find expressions for dz/dx and dz/dy in terms of dz/dr
and dz/dO, where x = r cos 0, y = r sin 0.
dz dz dr dz d6 dz dz dr dz dO
dx dr dx + 06 dx’ dy dr dy 06 dy
To find dr/dx etc., use the alternative form for polar coordinates:
then
dr x r cos 6
— = —-— =-= cos 0;
dx (x2 + y2p r
80 1 f y\ y r sin 6 sin 0
dx 1 + (y/x)2 \ -v2/ x2 + y2 r2 r
Therefore
dz sin 6 dz
- = cos
dx
dz . ndz cos 9 dz
— = sm 6-1-.
dy dr r dO
(These can also be obtained by treating the pair of expressions for dz/dr and
dz/88 obtained in Example 29.13 as if they were a pair of simultaneous equations
for dz/dx and dz/dy, and solving them:)
dP 8U OP dV
JtiJM dVdM'
We may understand from the notation that
P = P(U, V).
at least one more variable being present: the expression does not tell us its name.
The chain rule automatically simplifies the expression to
dP dU dP dV _ 8P
dU~dM + dVdM~ dM'
Example 29.1 6. Prove that if (x, y) and (u, v) are coordinates related by
x = x(u, v) and y = y(u, v), (i)
or alternatively by
then
dx dx du du
du dv dx dy
dy dy dv dv
CD |
<2 1
^1
1_
§*1
1
1
dx du dx dv dx du dx dv
du dx dv dx du dy dv dy
dy du dy dv dy du dy dv
_ du dx dv dx du dy dv dy _
Each of these elements has the right shape for the representation of a derivative
by the chain rule (29.6), though the variable combinations occupying the various
positions may seem unusual. The matrix becomes
dx dx
dx dy 1 0
dy dy 0 1
dx dy
8z « — 8x H-8y.
dx dy
This can be more fruitful than searching for a chain rule or other
formula which will work. It is customary in certain applications,
particularly in thermodynamics, to write this formula in the form
dz dz
dz dx + dy.
dx 3.y
in which becomes ‘ = ’ and dx, dy, dz are put in place of 8x, Sy,
8z. Such expressions can be manipulated in the same way as the
differential forms described in Section 22.4 for functions of a single
variable (the theory, however, is somewhat difficult). Here we shall
adopt * = ’ for brevity, but retain 8x etc.
Example 29.1 7. Find a vector normal to the curve f(x, y) = c at a point (x, y)
on the curve. (Compare Section 28.5.)
Let P be (x, y) and Q a nearby point (x + 8x, y + 5y) also on the curve (see
f(x,y)= c
Fig. 29.7). Put
z = fix, y)-
Then, since z is constant on the curve (it equals c),
dz
5z = 0 = — 8x + 5y,
dx dy
/ dz dz\
•(8x, 8y) = 0.
\3x’ dy)
But (8x, Sy) = PQ is in the direction of the tangent at P (more and more nearly
as PQ becomes smaller, of course), so (dz/dx, dz/dy) is a vector in the direction
of the normal, as we found in Section 28.7.
x = 2 uv and y — v2 — u2
is orthogonal.
But u does not vary on the curve u = a, so 8m = 0 and (i) becomes 8x = 2u 8v,
8y = 2v 8v.
The vector PQ points nearly in the direction of the tangent at P:
= 4uv 8u 8v — 4uv 8u 8v = 0,
Problems
29.1. Find a parametrization (x(f), y(t)) suitable for (h) Find the stationary points of (x — y + l)2 on
the following curves, specifying the range of t required y = x2.
to traverse the curve exactly once, in the anticlockwise (i) Show that in general there are three normals to a
direction if the curve is closed. parabola from any given point inside it.
(a) x2 + y2 = 25; (b) ^x2 + \y2 = 1; (c) xy = 4;
(d) x2 — y2 = 1 (try using the identity
1 + tan2 A = 1/cos2 A); 29.5. Find the stationary points of f(x,y) on
g{x, y) = c (i) by parametrizing the given path as in
(e) ^x2 - gy2 = 1; (f) y2 = 4ax;
Example 29.6, (ii) by using the Lagrange-multiplier
(g) (x - l)2 + (y - 2)2 = 9; (h) 2x - 5y + 2 = 0.
technique, in each of the following cases.
(a) f(x, y) = x2 + y2 on gix, y) = xy = 1;
29.2. For each of the following cases, obtain df/dt in (b) f(x, y) = x2 + y2 on (x - l)2 -I- y2 = 1;
terms of t by means of the chain rule (29.1). (c) fix, y) = x2 + 4y2 on x2 + y2 = 1;
(a) /(x, y) = x2 + y2, x(t) = t, y(t) = l/t; (d) fix, y) = 3x — 2y on x2 — y2 = 4;
(b) /(x, y) = x2 — y2, x(t) = cos t, y(t) = sin t; (e) fix, y) = xy on gix, y) = x2 + y2 = 1 (compare this
(c) /(x, y) = xy, x(f) = 2 cos t, y(t) = sin f; with (a).)
(d) f(x, y) = x sin y, x(t) = It, y(t) = f2;
(e) fix, y) = 4x2 + 9y2, x(t) = j cos t, y(t) = j sin f.
29.6. Show by means of sketches that, for the restricted
stationary-value problem, a stationary point can be
29.3. Two athletes run around concentric circular tracks
expected at any point where the curve g(x, y) = c is
of radius r and R with speeds v and V respectively. They
tangential to a contour of fix, y).
start on the same radial line. By using time as a
Use this observation to derive the Lagrange-
parameter, find the rate of change with time of the
multiplier principle. (Flint: consider the normals at the
distance between them.
point of tangency; or use implicit differentiation to get
expressions for the directions of the curves there.)
29.4. Use the Lagrange-multiplier method to solve the There are cases when a stationary point can occur
following problems. although the curves are not tangential there. Try to
(a) Find the maximum area of a rectangle having identify these cases by sketching various possibilities.
perimeter of length 10. (Hint: they correspond to X = 0.)
(b) Find the rectangle with area 9 which has the
shortest perimeter.
(c) Find the stationary points of x2 + 2y2 subject to 29.7. A change of coordinates from (x, y) to (u, v) is
x2 + y2 = 1. specified by each of the following. Show that the new
(d) Find the largest rectangle in the first quadrant coordinate system is orthogonal.
of the (x, y) plane which has two of its sides along x = 0 (a) u = 2x + 3y, v = — 3x + 2y;
and y = 0 respectively, and a vertex on the line 2x + y = 1. (b) u = xy, v = x2 — y2;
(e) Find the minimum distance of the straight line (c) u = x2 + 2y2, v = y/x2;
x + 2y = 1 from the point (1,1). (It is easier to consider (d) u = xy2, v = y2 — 2x2;
the square of the distance.) (e) u = x + 1/x + y2/x, v = y - 1/y + x2/y;
(f) Find the shortest distance from the origin to the (f) x = 2m — v, y = u 4- 2v,
curve x2 + 8xy + ly2 = 225. (g) x = u2 — v2, y = 2uv,
(g) With reference to Fig. 29.4, find the rectangle (h) x = u/iu2 + v2), y = v/iu2 + ir);
in the ellipse which has the minimum perimeter. (i) x = u2 — v2, y = — 2uv.
520 Mathematical techniques
29.8. Let r(f) and 0(t) be polar coordinates which are (c) f(x, y) = y2, x = uv, y = v.
functions of a parameter t.
(a) Express dx/df and dy/dr in terms of dr/df, dO/dt, 29.11. Find expressions for df/du, df/dv, d2f/du2, d2f/
r, and 9. dv2, and d2f/du dv if
(b) Use (a) to obtain expressions for d2x/dt2 and f(x, y) = g(x2 - y2), x = u + v, y = u-v.
d2y/dt2.
(The expressions will involve the functions g'(x2 — y2)
(c) Prove that
etc.)
n d2* ■ n d2y d2r
cos 9 —- + sin 6 —-
d t2 dr2 dr2 29.12. Let w = w(u, v), u = u(x, y), v = v(x, y), where u
and v are related in such a way that
d2p . d2x
cos 9 —- — sin U —— du dv du dv
dr2 dr2
dx dy ’ dy dx
(These two equations express the radial and tangential
Prove that
components of acceleration, given on the left, in terms
of polar coordinates.) d2u d2u d2v d2v ^
dx2 dy2 ’ dx2 dy2
..
29 9 Use the chain rule (29.6) to find df/du and df/dv
Use the chain rule (29.6) to prove that
in terms of u and v in each of the following cases.
(a) f(x, y) = 2x — y, x = uv, y = u2 — v2;
d2w d2w du\2 2 dv[A2" d2w d2w
d3f _ d d df
dx dy dz dx dy dz
It follows from the result for second derivatives (Section 27.4) that
dx
Similarly dw/dy = B, and so on, which gives the result (30.1).
The incremental approximation (30.1) can be used to estimate
errors as in Section 28.2.
Small-error formula
If w = fix, y, z,...), then (approximately)
dw A dw A dw
Aw = — Ax H-Ay + — Az + • • •,
dx dy ' dz (30.3)
a b
w = cos C = —
lab Yb 2a
Then
. dw , dw dw
A(cos C) = Aw % - - An H-Ab H-Ac,
da db dc
where
cw 1
-+
da 2 a2b 2b 2 a2
and similarly for the other two derivatives. From the measurements,
dw dw dw
— = -0.323, — = -0.388, — = 0.458.
da db dc
where C is in radians. The value of C estimated from the cosine rule using the
measured values is 1.350 radians, and sin 1.350 = 0.976. Therefore
and then
AC * ±0.120.
This condition implies that any one of the variables depends on, or
is a function of, all the others. For example, if the variables are x, y, z,
and r, and
x2 + y2+z2-r2= 0,
then
y = ±(r2 — x2 — z2)+
Subject to (30.4) we can therefore talk about partial derivatives such
524 30.2 Mathematical techniques
dl 6* + S1 iy + dl Sz + • ■. » 0. (30.5)
dx dy dz
Suppose next that all the variables except x and y are kept constant,
so that 5x # 0 and 8y ^ 0, but 8z = • • • = 0, Equation (30.5)
becomes (df/dx) 5x + (df/dy) 8y % 0, so that
5y
_
df Idf
''N*'_/
Sx dx/ dy
dl=J±ldl.
dx dxj dy
Implicit differentiation
Example 30.2. For a fixed mass of gas, an equation of the form f(P, V,T) = 0
holds (the ‘equation of state'), where P, V, and T represent the pressure, volume,
and temperature respectively. Show that
dPdT dP , dPdTdV
a)-=-, (b-= -1.
STdV dV dTdVdP
and
dT dTI dP dV dv/dT
dPdr_dfldf_ dp
(using (30.6) again).
dTdV~dVI ~dP~ ~dV
30.2 Functions of any number of variables 525
dP dTdV _
dfdVdP~
Notice that (x(f), y(t), z(t)) defines a directed path in three dimen¬
sions.
In the case of more than one parameter, the results of Section
29.1 may be extended as follows.
'df df df\
or —?+—/ +
dx ’ dy’ dz) dx dy
as a vector function—the gradient of /, now in three dimensions—
and denote it by
grad / or \f,
as before. As in Section 28.6, we can also think of grad or V standing
alone as an operator: an instruction to carry out the process
d „ d f d 'd d dN
+ + or
dx dy dz ydx ’ dy ’ dz,
on some scalar function f(x,y,z). The definition is stated for
^reference as follows.
or
Example 30.3. Let f(x, y, z) = x2 + y1 + z2. Obtain (a) the vector function
grad f(x, y, z); (b) the value of grad /(x, y, z) at the point (1, 2, 3); (c) an expression
for the magnitude (or length) of grad f(x, y, z).
3 $ \
i- + J — + k — )(x2 + y2 + z2)
dx dy dzJ
= i(2x) + j(2y) + k(2z).
(b) At x = 1, y = 2, z = 3,
(c) The magnitude or length |v| of a vector v = (a, b, c) is |v| = (a2 + h2 + c2)F
so
jgrad /1 = [(2x)2 + (2y)2 + (2z)2]* = 2(x2 + y2 + z2 f.
Ual+yal+wdl, (30.10)
dx dy dz
30.4 Functions of any number of variables 527
v*Uval+wa±-w,v,w)-(al££
dx dy dz \dx dy dzy
= S grad /,
dC dC
— =-h v-grad C,
dC dC dx dC dy dC dz dC
df dx dt dy df dz df dt
after putting dr/dr = 1 into the final term. The whale’s velocity is
/dx dy dz\
v
\ d7 ’ dt ’ df/
so that
dC
-b vgrad C.
dt dt
(If the whale drifted with the motion of the sea, v would represent the velocity
of the current. This case is related to the concept of material derivative in fluid
mechanics. Instead of C there is a quantity such as the density or momentum
of a particular piece of fluid, whose variation we follow as the fluid moves
around.)
or
5 g = 0.
n dS x
0 = — , dcJ * H-6z
ox H-oy , dcJ s
dx dy dx
= (grad g)-(8x, 5y, 8z).
This shows that grad g is perpendicular to the vector (5x, 5y, 5z).
But PQ can be chosen to point in any direction from P in the surface,
so the only possibility is that grad g is perpendicular to the surface
itself at P.
We already know (from (27.7)) that a vector normal to a
surface described in the form z = /(x, y) is
(df df
\<j'x ’ dy ’
g(x, y, z) = /(x, y) - z = 0.
(x — a) + (y-b) + (z — c) — 0. (30.12)
= [g^d sQp
5x by bz
- — cos a, — = cos p, - = cos y,
bs bs bs
where cos a, cos /?, cos y are the direction cosines of PQ (Section
10.5). Now divide the incremental approximation (30.1) through by
bs and take the limit as 5s —► 0. We obtain an expression for the
rate of change of /(x, y, z) with distance in any direction:
Sf df df a df
— = — cos a 3-cos B H-cos y.
ds dx dy dz
The direction cosines cos a, cos ji, cos y have the property cos2 a +
cos2 /? + cos2 y = 1 (see Section 10.5), so they are the components
of a unit vector s which points in the desired direction. Therefore
(30.14) can be written differently:
530 30.7 Mathematical techniques
Now take a function f(x, y, z), and a point P : (xx, yx, zfl as in
z Fig. 30.3. By means of (30.16), we can explore the rate of variation
of f(x, y, z) in all directions, by pointing s in the required directions.
The only thing that changes when we do this is the angle f. It can
be seen from (30.16) that (i) If = 2n> then df/ds = 0, which is
consistent with s pointing tangentially to the surface f(x, y, z) = fP,
where fP is the value of / at P. (ii) df/ds takes its maximum
value Igrad /1, when </> = 0. That is to say, grad / points in the
direction of most rapid increase of/; i.e. it is normal to the surface
fix, y, z) = fP.
It is worth noticing that, for a fixed angle the unit vector s
may point anywhere along the generators of a cone having axis
grad /, as shown in Fig. 30.3. The directional derivative df/ds is the
same in all these directions.
'df 5f df\
(a) grad f(x, y, z)
dx dy dz)
= ( —2 x, —y, —z), or —2 xi — yj — zk.
(b) By (ii) above, grad / always points in the required direction; at the point
30.7 Functions of any number of variables 531
(1, 1, 1), its components are ( — 2, —1, —1). To obtain the corresponding unit
vector s, divide by the length [(-2)2+ (—l)2+ (-l)2]i = %/6, obtaining s =
(-2/V6, -1A/6, - 1/V6)-
(c) The insect moves a distance 8s from the point P: (1,1,1) along s
(see Fig. 30.4), so its vector displacement PQ is
z
(2 1 1 \
s 8s = (-— 8s,-8s,-8s ).
V V6 V6 V6 /
The components of this vector are the x, y, z displacements
2 1 1
8x =-— 8s, Sy =-8s, 8z =-8s.
6 V ’ 6 V 6 V
The new coordinates are therefore
2 1 1
x = 1-8s, v = 1-8s, z = 1-8s.
6 V ' 6 V 6 V
Example 30.6. Using Example 30.5(c) as a model, give a systematic method,
suitable for computation, for approximating to the path of an insect which always
flies in the direction of most rapidly increasing concentration.
Figure 30.5 shows notionally the path of such an insect. It starts at P0 : (x0, y0, z0),
and the path consists of short steps of equal length h (instead of 8s, for the
purpose of programming). The progression is P0, Pu P2,..., P„, Pn + 1 ..., with
coordinates numbered (x„, yn, z„) for n = 0, 1, 2,.... At each Pn, the insect moves
in the unit-vector direction sn, where sn = grad f(x, y, z) and, as in Example
30.5c,
in = [(grad/)/|grad/|]Pn
(Xn+l,yn+UZn+l) = (Xn + Zn + K)
Equations (30.17)—(30.18), with the starting point (x0, y0, z0) given, form a
step-by-step process which is easy to computerize. The following table of the
early stages was calculated with h = 0.05; the starting point in this case is the
point (1, 1, 1), where /(x, y, z) = 4 — x2 — \y2 — \z2 as in Example 30.5.
n X„ yn
yn z,
0 1 1 l
f(x, y,z) = c,
where c is a constant, it is called a level surface of the function
/ (it is the analogy of a contour in the theory for functions of two
variables). According to (30.11), therefore, we can say in different
language:
(30.20)
dx dy dz
since all our previous formulae have been merely extended versions
of the two-dimensional case. To show that this criterion is the right
one, choose any path through Q, and suppose that we describe it
parametrically by
Then, if (30.20) holds at Q, the chain rule (30.7) together with (30.20)
gives
df df dx df dv
+ — — + --- = 0.
df ox df dy df
Therefore a turning point of /(x(f), y(t), z(t),...) is encountered at
Q on every path passing through Q, and this is what we should wish
to happen for the point Q to be described as stationary.
J\x, y, z) = x2 + y2 + z2 — xy — 2yz — zx — z.
of'/dx = 2.x — y — z = 0,
df/dy = —x + 2y — 2z = 0,
df/dz = —x — 2y + 2z — 1 =0.
Then the stationary points peculiar to the path are where df/dt = 0.
By the chain rule (30.7), these are the points where
df dx df dy df dz
—-h — — + — — = 0.
dx dt dy df dz df
g{x, y, z) = c,
d/ = 0 at Q
in all directions s from Q which do not point into the body of the
sea, but are tangential to the surface g(x, y, z) = c.
Figure 30.6 shows such a point Q, and various tangential
directions denoted by unit vectors s pointing away from Q. From
(30.15), the required condition is
grad f — A grad g at Q,
df . 8g df ,Sg df .Sg
— - a — = 0, — - /— = 0, — — /— = 0.
dx dx dy dy dz dz
(30.24a,b,c)
We now have three equations for the four unknowns: (x, y, z) (the
position of Q) and /. To find another equation, notice that (30.24a,b,c)
would be unaffected if we had g(x, y, z) equal to some constant other
than c, so it is necessary to reassert the particular surface:
g(x,y,z) = c. (30.24d)
cf
II
(i)
df dg n (30.25)
— - A— = 0, (ii)
dx dx
df „ dg n
— - X— = 0, (iii)
dy dy
df . dg
— - X~ = 0. (iv)
dz dz
x + y — z- = 1, (i)
2x + z — 22x = 0, or (2 — 2 2)x + z = 0; (ii)
2 y + z — 2 Ay = 0, or (2 - 22)y + z = 0; (iii)
y + x + 2 2z = 0, or x + y + 2 2z = 0. (iv)
Equations (ii), (iii), and (iv) constitute a set of homogeneous linear algebraic
equations for x, y, z. The only possibilities are either that x = y = z = 0, which
is excluded since these values do not satisfy (i), or that the determinant of the
coefficients is zero:
2-2;. 0 1
det 0 2 — 22 1 =0,
1 1 22_
We shall not give the proof in full. Briefly, the situation is shown in
Fig. 30.7. Q is a stationary point on the curve of intersection and s
a unit vector tangential to it at Q. Since
— = s*grad / = 0 at Q,
ds
grad / is perpendicular to s at Q. For the same reason as in the
earlier case, grad g and grad h are also perpendicular to s at Q.
Therefore the three vectors grad /, grad g, grad h all lie in the same
plane (which is perpendicular to §), so grad f can be expressed in
intersection.
terms of the other two vectors:
Fig. 30.7
grad / = X grad g + g grad h,
where X and g are certain constants, the Lagrange multipliers for
this problem. Then split this equation into its components to obtain
(30.26).
x2 + y2 = 1, (i)
x + y + z = 1,
(ii)
2x — X2x — p = 0, or 2x(l — X) = p. (iii)
2y - 22y — p = 0, or 2y{\ - 2) = p, (iv)
2z — p. = 0. (v)
30.8 Functions of any number of variables 537
fix, y,cc) = 0.
To find the envelope (Fig. 30.9) consider two close values of the
parameter, a and a + 5a, the corresponding curves of the family
being
Parameter
a+ba
f(x, y, a) = 0 and f(x,y, a + 5a) = 0.
f(x, y, a) = 0. (30.28)
(We had not so far used the fact that / is zero rather than some other
constant.) If we eliminate a between (30.27) and (30.28), we obtain
an equation in x and y which describes the envelope.
Example 30.10. Find the envelope of the family of straight lines y = a — a2x,
where a is the parameter. (See Fig. 30.8.)
— = — 1 + 2ax = 0
dot
Therefore
a = l/2x. (i)
y — a + a2x = 0; (ii)
y = l/4x,
which is a rectangular hyperbola (see Fig. 30.8b).
Problems
30.1. Write down the incremental approximation for 30.2. The distance d between two points {x„y„z,)
5/ in the following cases. and (x2,_y2,z2) in a plane is given by d2 = (x, — x2)2 +
(a) /(x, y, z) = 2x + 3y2 + 4z2 - 3; (y, — y2)2 + {z, — z2)2. Find approximately the change
(b) f{x, y, t) = (x2 + y2)_ie“'; from (1, 1,2), (1,2, 1) to (1.1, 0.9, 1.8), (0.9, 2.1, 1.1).
(c) f{r, 0,t) = e~'r cos 0;
(d) J\x, y, z, t) = x2 + y2 + z2 - t2;
30.3. Rx, R2, R2, R4 are resistances in a circuit whose
(e) fix,, y„ x2, y2) = (xj - x2)2 + (y, - yf)2\
overall resistance is R, arranged so that
(f) f(x,y,z, t)=il/r) e <-v2+F>/i Compare with the expres¬
sion for 8g when g{r, t) = (1/r) e^r2/l in polar coordinates. 1/R = 1/R4 + (Rj + R2)/iR\R2 + R2R2 + R2R,).
Functions of any number of variables 539
Find an expression for 5R in terms of 8-Rj, 8R2, 8R3, 8x, 8y, 8z at the points prescribed. Without solving for
and 8R4. z, deduce dz/dx and dz/dy at the points.
Suppose that initially Rl = 3, R2 = 10, R3 = 5, and (a) 2x — 3y ± 4z = 1 at points satisfying the condi¬
R4 = 10, and that R{ becomes 3.2 and R2 becomes 9.8. tion;
Estimate the change in R3 necessary if R is to remain (b) x2 + y2 + z2 = 14 at (1, 2, —3);
unaltered. (c) 4x3 + / + 9z3 - xyz2 = 13 at (1, 1, 1);
(d) x2 — z2 = 9 at x = 5, y = y0, z = 4. (this is a hyper¬
30.4. The equation 2x3 — 3x — 45 = 0 has a solution bolic cylinder).
x = 3. Find an approximate solution to the equation
2.lx3 - 2.9x - 47 = 0. 30.9. (a) Compare the result of using the chain rule
(30.7) with that of direct substitution in order to find
30.5. Estimate the maximum possible error and the df/dt when f(x, y, z) = xy/z and x = t, y = 4t, z — It.
corresponding percentage error in w for the following (b) The same parametrization as in (a), but with the
cases. function f(x, y, z) = sin(xy/z).
(a) w = yz + zx + xy, x = 2 (±0.1), y = 3 (±0.2), (c) Obtain an expression for df/dt on the path in
z = 1 (±0.1). (a) when f(x, y, z) = g(xy/z), g being any function, and
(b) w = (x — y)(y — z)(z — x), x=l(±0.1), y = confirm that it works with case (b). (Hint: express
2( ±0.1), z = 3( ±0.1). the result in terms of g'.)
(c) w = (x + y + z — f)_1, where it is known only that
x = 1.2, y = 2.9, z = 1.9, and f = 2.1 after rounding to
30.10. Cylindrical coordinates r, 8, z are shown in Fig.
one decimal place. Compare with the exact maximum
30.10. They are related to x, y, z by x = r cos 6, y =
and percentage errors.
r sin 9, z = z.
30.7. (Section 24.2). If f(x, y, z,w) = c (a constant), then (a) Given f(x,y,z), use the chain rule (30.8) with r,
any of the four variables is a function of the other 9, z as the parameters to express df/dr, df/dO, df/dz
three. Use (30.6) to show that in terms of df/dx, df/dy, df/dz.
ox dy ox dy dx (b) Regarding (a) as a pair of equations for df/dx
(a)-= 1; (b)-= - —.
dy dx dy dz dz and df/dy, show that
dx dy dz dw sin 9 df
df adf
(c) Simplify-• and
dy dz dw dx dx dr
Test the truth of the results in the cases: df . a8f cos 6 df
(i) x + 2y + 3z + 4w = 5; (ii) xy2z3w = 1.
dy dr r 50'
30.8. Assume that the following relations define z implicitly (c) The results (b) show that the differentiation opera-
as a function of x and y. Write down the relation between tions d/dx and d/dr are equivalent respectively to the
540 Mathematical techniques
polar forms 30.16. Find df/ds for the following functions /, taken
at the point (2, 3, 2) in the direction § = i^j2, ^2,
. d sin 0 d . c cos 0 d
cos 0-— and sin (/-1— . W3).
dr r dO dr r dO (a) x - y + 2z; (b) xy + yz + zx;
(c) (xy + yz + zx)2;
Use this fact to confirm that
(d) x2 — y2 + 5 (in three dimensions: this represents
dl + dl = Bl + lJl + Ldl a vertical cylinder).
dx2 dy2 dr2 r dr r2 cO2
30.17. The equations for two surfaces, f(x, y, z) = a,
30.11. Obtain the vector function grad / for each of g(x, y, z) = b, where a and b are constants, together
the following. represent their curve of intersection, C. Show that the
(a) .v + v + z; (b) 2x — 3y + 5z — 6; vector product grad / x grad g, evaluated at a point on
(c) x2+y2 + z2; (d) x3 + 3z3—1 (in three dimensions); C, points in the direction of C. Use this to find a unit
(e) x2 — \y2 + gz2; vector § in the direction of C in the following cases;
(f) 1 jr, where r = (x2 + y2+z2)/ confirm that the gradient (a) 2x + 3y— z=l, x — y—z = 0, at any common point.
vector points in the direction of the position vector (b) x + y = 0, x — z = 0, at any common point.
(x, y, z). (c) x2 + y2 + z2 = 6, x — y + z = 0, at (1, 2, 1).
(d) x2 + (y - l)2 = 1, x2 + (y - 2)2 = 4, at x = 0, y = 0,
30.12. Obtain a vector which is normal to the follow¬ and any value of z. Explain what is happening here.
ing surfaces at the points specified, and construct a (e) xy + yz + zx = 3, x + y + z = 3, at (1, 1, 1).
unit vector from it:
(a) x — 2y + z = 0 at any point; 30.18. Find the stationary points of the following func¬
(b) y2 + z2 = 2 at any point; tions with respect to all the variables named in /:
(c) x~ + y~ + z~ = 9 at (2, 1, —2); (a) /(x, y, z) = x2 + y2 + z2;
(d) ±x2 + h'2 + TSZ2 = 3 at (2,3,4); (b) f{x, y, z) = x3 - 3x + y3 - 3yz + 2z2;
(e) x3v + zx3 = 5 at (1, 2, 3); (c) /(x, y, z) = xy A- yz A- zx A- y — z;
11 1 (d) f(x, y, z) = x/z + y/x + z/y;
(f) — + - H— = 1 at (2, 3, 6); (e) fix, y, z, /.) = (x + y + z) - 2(x2 + y2 + z2 - 1);
x y z
(f) f(x, y, z) = x4 + y4 + z4 - 2(x - y + z)2.
(g) (x2 + 4y2 — z2)-1 = jg at (4,1,2).
30.14. (a) Find grad / for s = C exp{ —a[2(x — l)2 + 4y2 + z2]},
and deduce that grad u points either in the same or 2(x - 1) _ 4y ~ 7'
in the opposite direction to grad /. (c) By letting 8f -*• 0, show that its path is described
by the two differential equations
30.15. Write down expressions for the directional deriva¬
dz z dz z
tive of the following at the point (x, y, z), in terms of a
unit direction vector s. dx 2(x — 1) ’ dy 4y
(a) x + 2y -I- 3z; (b) x2 — y2 — 3z; (Such simultaneous equations would often be written
(c) (x - l)3 + y3 + z3. dx/2(x — 1) = dy/4y = dz/z.)
Functions of any number of variables 541
where c = to/{kx + k2 + k3). (This is called the wave 30.27. The cross-sectional profile of a long cylindrical
equation in three dimensions, and /(x, y, z, t) is one of its mirror is the semicircle x2 + y2 = 1 in the right-hand half
solutions.) plane. Rays from the left, parallel to the x axis, fall on
Prove that g(kxx + k2y + k3z — tot), where g is any the mirror.
function of a single variable, is also a solution. (a) Show that the equation of the ray reflected from
the point (cos 0, sin 0) on the mirror is x sin 20 —
30.26. Find the envelopes of the following families. y cos 20 = sin 0.
(a) y = xx + or.x (parameter a); (b) By regarding 0 as the parameter, show that the
(b) y + orx = a (parameter a); envelope of these reflected rays is given by x2 + y2 =
-X y j(3y^ + 1). (In optics, this envelope is called the caustic
(c) - +-= 1 (parameter a); of the reflected rays.)
a 1 — a
(d) .x cos 0 + y sin 0 = 1 (parameter 0).
am
Double integration
Contents
31.1 Repeated integrals with constant limits 543
31.2 Examples leading to repeated integrals with constant limits 544
31.3 Repeated integrals over nonrectangular regions 546
31.4 Changing the order of integration for nonrectangular regions 548
31.5 Double integrals 550
31.6 Polar coordinates 555
31.7 Separable integrals 555
31.8 General change of variable; the Jacobian determinant 557
Problems 561
1 = (xy + y2 — 1) dx dy.
o \J
I = (xy + y2 — 1) dx dy.
7=0 x=0
(iii) Evaluate the inner integral with respect to the first variable
(here x), treating the other variable (y) as a constant:
* 2
(xy + y2 - 1) dx = Qx2y + y2x - x]2=0
Jx=0
= 2y + 2y2 — 2.
(iv) Use the result of (iii) as the integrand of the outer integral:
= 6y + 2.
(b) Here the order of the symbols j*=2 and j*=0 has been reversed, and also
the order of dx and dy. In other words, the same processes are to be carried
out, but in the reverse order. The details, however, look different.
We have
J = (xy + 1) dy dx.
x=2 \J y = 0
(xy + 1) dy (x constant).
y=0
This is equal to
[*(fy2) + y]'. = o = \x + 1 ■
J= | (fx+l)dx = 5,
When we take the sum of all the elements 8F and let 8y -> 0, we
obtain in the usual way
rs
V= (A*2 + 16 y2 + 2) dx )dy.
v=0
Finally
It can be seen that, if we had taken the slices parallel to the (y, z)
plane, the process would have led to the integral
V 16 y2 + 2) dy dx.
The integrand is the same, and the result must be the same, when
the integrations over x and y are carried out in the opposite order.
In general, any repeated integral with constant limits,
fd fb
/(x, y) dx dy,
Jc Ja
(a)
r1 r2
Example 31.2* Evaluate I x exy dx dy.
o Jo
The inner integral is
f2
x ex> dx,
Jx=0
which, though not very difficult, does involve integration by parts. To avoid
this, try the alternative order of integration:
/ = xe dy dx.
>' = o
Then
/ = (ev — 1) dx = [eA
The slices all have different x values at their starting points, and
these values depend on y, so the limits of integration are not
constant in this case. In order to determine the range of integration
of the slice at level y, it is necessary to refer to the triangular area
in Fig. 31.2c, called the region of integration for this problem.
The equation of the side OQ is
y= 2*
x = 2y,
1 = (x + y) dx Ay,
r = 0 \J x=2y
(x + y) dx = [ix2 + yx]2=2).
= 2y
(• 2 (* y
Let
xy dx dy
>■ = 0 [= 0
»•
xy dx = ljx2yVx=o = iy3-
Jx=o
(a) Therefore
/ = i y3 dy = i[/]o =2-
A sketch of the region of integration can be constructed in the following
way. The region of integration consists of the points (x, y) which simultaneously
satisfy
One way of finding these is to sketch the boundaries of the required region.
These are the lines
y = 0, y = 2, and x = 0, x = y,
and they are shown on Fig. 31.3a. The region consists of any points which lie
(b) between both pairs of boundaries (i) and (ii). This is the triangle shown in Fig.
31.3b.
Vertical strip, This is obviously nonsense: the answer contains y, whereas we ought
width 8x
to get the answer 2 again. In fact the new form means nothing at all.
If the region of integration is nonrectangular we have to write
f(x, y) dy dx
J ..
' 2
/(*» y) dy.
Fig. 31.4 J y=x
31.4 Double integration 549
/ y dx ) dy.
)- = 0 -4)4)
These are shown in Fig. 31.5 (the curved part can be written x2 + 4y2 = 1: an
ellipse with semi-axes equal to 1 and I). Figure 31.5a shows how the form given
is obtained, by starting with horizontal strips which end at x = ±(1 — 4y2)T
In Fig. 31.5b, the position with regard to vertical strips is shown,
(a)
Fig. 31.5
for which the inner integral will be over y. When the order of integration is
changed by this means, we obtain
r Wo “*4
I = y dy dx.
Jx= - 1 >• = o
5V^f(P) 5/4.
V=Z SF,
V= f(P) dA,
Example 31.6. A flat plate occupying a region Qis acted on at every point
P on the plate by a variable normal stress o{P) per unit area. Express the total
(resultant) force F on the plate as a double integral.
8F=cr(P)8A The position is as in Fig. 31.7: ^is the plate. The force 5F acting on a typical
area element 5/4 at P is given by
5F % a(P) 5/4.
Add up the contributions of all the elements covering f_, and take the limit as
the mesh becomes finer and finer. We obtain
Example 31.7. We have shown in Example 31.6 that the resultant force F on
any flat plate R subject to a normal distribution of stress o{P) is given by
F = a(P) d/4. Find the force on a rectangular plate of sides 2 and 3 units
when a = 3(r2 — 2), where r is the distance from one of the corners.
3(x2 + 3
,2 _ 1 ) d.v ) 5)’
after letting 5x -> 0. When we add the contributions from all the strips and let
5y -> 0, we have the repeated integral
'3
x2cr(P) dA.
5/1 « r 5 r 5 9.
fir, 9)rdr bd
'P
f(r, 9)r dr d 9.
J6=a
Example 31.8. Find the volume V between the two planes x + y + z = 4 and
z = 0, over the quadrant 0 < r < 1,0^0^ i71-
Then by (31.4),
-j7l
(2 — 3 cos 0 — 3 sin 0) d0 = it — §.
Example 31.9. A circular disc of radius 0.1 m has a surface charge density
a = 10-6 (1 + 103 r3 sin \0) coulomb m~2. Find the total charge.
* f
The total charge Q is given by a(P) dA, where the region is the disc
J J
0 r ig 0.1, 0 ^ 0 < 2k (if in doubt, sketch it). Remembering that, in polar
coordinates, 5/1 = r dr d0 (or reading straight from (31.4)), we have
0.1
<2 =
a(r, 0)r dr d0
0 J
I'm
3.94 x 10'8.
Since the repeated integral has constant limits, the same result would be
obtained by integrating in the reverse order (see (31.1)).
Example 31.10. The curve r = cos 0 (0 ^ 0 ^ 571), together with the radii
from the origin to its ends, forms the boundary of the region and is shown in
Fig. 31.10. Obtain (a) the area of and (b) its moment about the y axis.
We can indicate this, together with the range for r and 0, by writing
0 = in r = cos 0 0 — -jTt r = cos d
A= X I 8/4 « X X (rbrSO).
0=0 r=0 0=0 r=0
When we let 5r and 50 tend to zero, we have a repeated integral with a variable
limit:
• in P cos 0 'in
A = r dr d0 = [|r2]-so°d0 = i cos20 dO
O
II
i
= To71 + 8-
(b) The moment 5M, about the y axis, of an area element 5/1 is
5M % x 5/4;
so, as a double integral, the total moment M is given by
M = x d/4.
'K.
x = r cos 0,
we have
71 (* COS 0
h(y) g(x) dx dy
Ic \Ja
rb
The integral g(x) dx, once worked out, is just a constant, so we
Separable integrals
* d ffc -b 'd (31.5)
g(x)h(y) dx dy = g(x) dx h(y) dy.
Jc Ja Ja Jc
Put / = dx.
/ = j” e">,2dy.
/2=[
Jo
e~x’ dx j*
Jo
e->'2dy.
I2 = e x e y dx dy. (31.6)
The area element is dA = r dr d0, and the same region is described in polars by
0 ^ r < oo, 0 ^ 0 ^
Then
I2 = e rl r dr d()
Jo
= 2^i[e"r']rx=o = 471'
Therefore / =
Example 31.12. Prove the convolution theorem (see (25.11), Laplace trans¬
forms): that is, if F(s) and G(s) are the Laplace transforms of f(t) and g(t)
L(s) = f{x)g{t ~ t) dr dt
Jo
- T) dr dr.
The region of integration is the triangle in the (t, r) plane shown in Figure 31.12.
Change the order of integration by summing vertical strips: we find that
* 00 P 00
= e_s“g(u)du e_SI/(i)dr
Jo Jo
(since the integral is separable)
= F(s)G(s).
/ = f{x, y) dx dy (31.7)
where ^ is the region of integration in the (x, y)-plane and the area
elements 5/1 are small rectangles of side 5x and 8y as in Fig. 31.13.
The shape of ^ might suggest the use of another system of
coordinates to evaluate /. The special case of polar coordinates was
illustrated in Section 31.6.
Suppose that new coordinates u and v are defined by the relations
(a) 5/4', is of the type appropriate for the new coordinates, and when
u=u +8u V-V +8v
p v=v 5u and 8v are small, PQRS is nearly a parallelogram, as indicated
P in Fig. 31.15(b).
The area of the parallelogram PQRS is given by
Xq Xp X$ Xp
5,4' = det
yQ-yP Ps - yP~
where the verticals stand for the modulus of the determinant between
them (see Problem 31.17).
The elements of the determinant are given approximately by
Q-(xQ,yQ) dx
Xq — Xp = x(Up + 5U, Vp) XyUp, Vp) = —— 0U,
Cli
8x
Xc Xp = x(ttp, Vp T 5tt) x(uP, Vp ) ~ 8v,
ov
Fig. 31.15(a) Area element 54' for
the u, v coordinates. (b) When 5u
dy o
and 8i> are small, PQRS is yo“ - yP = y(up + ^ _ vp) = —
cu
5u,
nearly a parallelogram.
dy ?
ys~ yp = y(up, Vp + 8v) — y(uP, vP) = — 5y,
ov
/ dx dx\
du Tv
5/4' = det 8u 8v
dy dy
\ du dv J
( dx dx\
du dv
det 8u 8v, (31.9)
dy dy
\ du dv )
d(x, y)
d(u, v)
(dx dx\
d(x, y) _ det du dv
(31.10)
d(u, v) dy dy
\du dv)
d(x, y)
8/4' = §u bv (or | J\ bu bv) (31.11)
d(u, v)
f{x, y) dx dy
Jjl
(31.12)
d(x, y)
f{x{u, v), y(u, «)} du dv,
Js d(u, v)
I = \ f(x) dx
x = r cos 0, y = r sin 9,
ox dx .
— = cos 0, — = — r sin 0,
or 89
cy cy
= sin 9, — r cos 9.
or 89
= r cos2 9 + r sin2 9 = r.
5/1' = r 8r 80,
/(x, y) = x- + y~ = r-.
Finally
I = r3 dr d0 = r3 dr d0
o
(since the integral is separable)
= [K]l[«]5’t = iIn-
dx dx
d(x, y) 8u ~8v -1 1
= det
a = det = -2.
8(u, v) oy 8y 1 1
Fig. 31.18 8u 8v
31.8 Double integration 561
Therefore
s , ^(x, y)
oA = - 8u 8v = 2uv 8u 8v
5(u, v)
The corresponding regionS in the (u, r)-plane is shown in Fig. 31.19. Therefore
u=0 'i p p p
I = uv du dr = 8 udu v dr
Jo Jo Jo Jo
= 8xfxf = 2.
Problems
31.1. Evaluate the following repeated integrals with con¬ (c) z = x + y, — 1 < x ^ 2, — 2 < y < 1;
stant limits. (d) z = — 1, a < x ^ b, c ^ y < d;
(e) z = 2x — y + 3, 0 < x ^ 1, 0 < y < 1;
xy2 d.x d v; (b) y txy d.x dy; (f) z = l/(x + y), l^x^2, 0 < y ^ 1;
o J 1 Jo Jo (g) z = (x + 2y - l)2, —2 ^ x < 1, - 1 < y ^ 1.
~d
31.5. Reverse the order of integration in each of the is the area element at the point P in (see Section
following cases. It is necessary to sketch the region of 31.5). In the following cases, the region % is described,
integration and to indicate a typical strip correspond¬ and /(F) given in cartesian coordinates. Evaluate the
ing to the new order of integration, as in Section 31.4. integrals.
(a) is the rectangle with corners at (1, 1), (2, 1),
(a) /(x, y)dxdy; (b) f(x, y) dx dy; (2, 4), and (1,4), and /(F) = x2 + y2.
0 J0 (b) J{_ is the equilateral triangle with vertices at
(0, — 1), (3-, 0), and (0, 1), and f(P) = x.
(c) /(.v, y) d.v dy;
(c) is the circle of radius 2, centred at the origin,
\ 0 -v-l and /(F) = y2.
(d) /(x, y) dx dy;
o J -v (1 -.v2) 31.8. As in Problem 31.7, but polar coordinates are
*4 fi.v to be used for the evaluation (see Section 31.6). Remember
(e) /(x, y) dx dy; (f) /(x, y) dy dx; the change in the area element; see (31.4).
0 J -v3 (a) is the disc x2 + y2 < 1, and /(F) = x2 + y2.
(b) is the disc x2 + y2 < 1, and /(F) = y2.
(g) /(x, y) dy dx (it becomes the sum of two
(c) is the area whose boundary consists of the
Jo J - 1 +.Y
integrals); x axis between x = 0 and 2, the y axis between y = 0
1 + v (x~ - 1 I and 2, and a quarter of the circle x2 + y2 = 4. Also
(h) /(x, y) dy dx. fix, y) = xy.
1 - N (.v3 - 1 ) (d) 3^ is the sector 1 ^r^2, OsSd^irt, and /(F) = xy.
(e) is the disc x2 + y2 ^ 4, and /(x, y) = arctan
31.6. Change the order of integration in the following, y/x.
and hence evaluate them. It is necessary to sketch the (f) 3^, is the first quadrant of the plane, and /(x, y) =
e-4(*2+.v2)
region of integration 1{ and to indicate the strip corre¬
sponding to the new inner integral. (g) Show that the volume of a sphere of radius a
is yna3. (Consider the hemisphere
(a) x sin xy dx dy;
0 z s$ (a2 — x2 — y2)/)
r 2<v -1) (h) is the half plane y 0, and /(F) = y e-(x2+>,2).
(b) x2 dx dy; [Hint: separate the integral: see (31.5).]
1 %
31.9. A circular hole of radius \a is drilled through a
(c) x2 evv dx dy;
sphere of radius a in such a way that the edge of the hole
passes through the centre of the sphere. Let the equation
(d) x2y e ■v2-''2 dx dy; of the sphere and the cylinder be x2 -I- y2 + z2 = a2 and
o (x — ja)2 + y2 = \a2. If x = r cos 0 and y = r sin 0, show
pi r2
that the volume Vc of material removed (the section
(e) y(l — x2 — y2)2 dx dy;
in the (x, y)-plane is shown in Figure 31.20) is given by
5(x, y) _ r
of the following transformations:
(a) x = u2 — v2, y = mu; d(r, 9)
(b) x = u — v, y = 2u;
Show that r and 9 are given by
(c) m = 2x — y, v = x + 2y;
(d) x = u — e~v, y = u — er. i- V
r = y/x2 + y2, tan 9 = -.
x
31.11. Find the Jacobian of the transformation x = u/v,
y = mu. Let ^ be the region bounded by y = 2x, y = x, Show that
xy = 1, xy = 8. Express d(r, 9) _ 1 _ ld(x, y)
d(x,y) r I 8(r, 9)
where f^is the region bounded by the square |x| + |y| = 1. 31.17. Let PQRS be a parallelogram with P at (xP,yP),
Q at (xQ, yQ), and S at (xs,ys). Show that its area is
given by the modulus of the determinant
31.14. A plastic component is cut from a solid plastic
rod which is cylindrical with cross-section bounded by Xn - Xp
Contents
32.1 Illustrating a line integral 564
32.2 General line integrals in two and three dimensions 567
32.3 Paths parallel to the axes 570
32.4 Path in dependence and perfect differentials 571
32.5 Closed paths 572
32.6 Green’s theorem 574
32.7 Line integrals and work 576
32.8 Conservative fields 578
32.9 Potential for a conservative field 580
32.10 Single-valuedness of potentials 581
Problems 584
h- I a = W (32.2)
Divide up the path into many short segments such as PP' (Fig.
32.1). The increment 5/ over a typical segment is given by
Given a specific function /(x, y) and a specific path (AB), I(AB) could
in principle be computed by carrying out the summation (32.3)
numerically, taking 8x very small, and allowing for the fact that 8x
is sometimes positive and sometimes negative. We have to split up the
path for this purpose: in Fig. 32.1, 8x is negative along (AC) and
positive along (CB). If the path is vertical along a section, then 5x
will be zero, and there will be a zero change in the bonus along this
part despite the fact that y is changing.
In imagination, let 8x -> 0. Then ‘«’ becomes ‘ = ’. It is natural
to write the result as a kind of integral:
(in suitable units). Suppose that the museum starts off at state A in
Figs 32.2a,b; it thrives in Fig. 32.2a and declines in Fig. 32.2b.
Consider the case (a). The graph AB can be expressed in principle
as a function of x, and the curve chosen for illustration is
y = x2 — 7x + 15.
Then
f*
Now 5x is positive all the way; so, regarded as the limit of the sum
in (32.4), this is just an ordinary integral. After simplifying the
integrand, we have
r5
/ = 5x + 15) dx = 11.33.
Jx= 3
y = x2 — 3x + 3,
566 32.1 Mathematical techniques
In this case, however, the 8x in the sum (32.4) are all negative: x is
decreasing. To turn this into an ordinary integral, we have therefore
to reverse the sign:
r3
l(AC) — hcA) —
y(x2 — x + 3) dx = —5.33. (32.5)
Jx= 1
y = x.
Then
(x + 2)0 dx = f fx dx = §Qx2] 3 = — 6.
J (AC) J3
This is different from (32.5), so we must in general expect that line
integrals will be path dependent.
The following summary generalizes the special case we have
discussed.
(a) On (AB), y = x and 8x > 0. Here A = (2, 2) and B = (4, 4); so, by (32.6),
U.4B) — xy dx x2 dx = [^x3]* =
(AB)
(b) The path (ACB) has to be broken into two parts: (AC), on which 5x < 0,
and (CB), on which §x > 0, where C = (0, 4). Then
/,(ACB) xy dx - xy dx + xy dx.
(ACB) (AC) (CB)
l(ACB) x(4 — x) dx + 4x dx
(b) (AC) (CB)
y >»=4 ‘o 4
(4x — x2) dx + 4x dx
g(x, y) d y
J (AB)
are to be understood in a similar way:
f
g(x,y)by means lim £ g(x,y)3y,
J (AB) £>y -* 0 (AB)
(/ dx + g dy + h dc).
J (AB)
(a) (/ dx + g dy + h dz)
J (AB)
(b) (/ dx + g dy + h dz)
J (AB)
(/ dx + g dy + h dz).
f(x, z) dx,
J (AB)
dr
and Sx automatically has the right sign. Now put (dx/dr) 8r into
the defining sum in place of Sx; correspondingly (dx/dr) dr will go
into the original integral in place of dx. After doing the same thing
with the y and z integrals, we have the following result.
32.2 Line integrals 569
(32.8)
(/ dx + g dy + h dr)
J (AB)
d t.
j tA
*
Example 32.2. Evaluate I = (X2 + y) dy, where (AB) is the path shown
J{AB)
in Fig. 32.4.
On (AB), y = —x, so we can use x = t, y = —t, with t running from t = 1 to
t = — 1. This covers (AB) once in the right direction (it is like using x as the
parameter). Then
dy
+ y = t2 — t and = -1,
df
so
1/21-1 _ 2
/ = (r - t) dt = B'3 2l Jl — 3 '
dx dy
— = — sin t — = cos f.
dt dr
Then
(b) x = (1 — f2)i y = r; so
dx dy
= -fd t2r = 1.
dr df
570 32.2 Mathematical techniques
Then
/ = Id -f2)*-t[-r(i -f2r*]}df
- i
M df
[arcsin r]!_ i = n.
We have
dx . dy dz
— = — a sin t, — = a cos t, — = b,
dr dr dr
so the integral becomes
= b2 t dr = 8b2n2.
(a) over the path (AOB)\ (b) over the path (AQB).
On (OB), x = 0; so x dy = 0.
(OB)
Therefore
(* f*
x dy = X dy + x dy = 0.
J (AOB) . (AO) J
(b) On (AQ), x = 1; so x dy = 1 dy = 1.
(AQ) (AQ)
x dy = x dy + x dy = 1.
J (AQB) '(AQ) I (QB)
32.4 Line integrals 571
We can write the integrand in terms of a perfect differential (see Section 20.4):
y dx + x dy = d(xy).
Now express the integral in the form
As we travel along (AB), the value of (xy) starts at xAyA, where the values are
taken at A, then goes by steps 8(xy) until it attains the value xByB. In other
words,
I = [(y + z) dx + (z + x) dy + (x + y) dz]
J (A B)
We can use the idea of differentials in exactly the same way: it is suggested by
the incremental approximation (30.1). If we put
f(x, y, z) = yz + zx + xy,
8/ = (y + z) 5x + (z + x) 5y + (x + y) 5z,
7 = [(y + z) dx + (z + x) dy + (x + y) dz]
V (AB)
d (yz + zx + xy)
J (AB)
the suffices A and B meaning the values of the brackets at the end points A and
B. This is independent of the path.
, , asJ
8S A dS ,
f dx + g dy + h dz — — dx + —- dy + — dz = dS.
dx dy dz
(/ dx + g dy + h dz) = dS = SB — SA.
J (AB) J (AB)
Provided that there is no ambiguity in the values to be assigned to
SB and SA (this possibility is discussed in Section (32.10) below), this
provides a way of evaluating the integral and possibly demonstrating
path independence.
If / dx + g dy + h dz = dS, then
(32.9)
(/ dx + gdy + h dz) = SB~SA
J (AB)
(/ dx + g dy + h dz).
Jc
Fig. 32.7 (a) A simple closed path,
(b) Closed paths which are not In three dimensions, the direction along C is specified by extra
simple. information, such as by an arrow on a sketch of the curve. However,
32.5 Line integrals 573
dx dy
= —asm t. = b cos t;
dt dt
so
= ab df = 2 nab.
(a) M To prove this, see Fig. 32.8a. Here A and B are any two points,
B
while (AMB) and (ANB) are any two paths from A to B. If we
reverse the direction of the path (ANB) we have Fig. 32.8b, which is
a closed curve C. Suppose that we know the integral around every
closed curve to be zero. Then
0 = (/ dx + g dy + h dz)
(AM BN A)
(b) M
(/ dx + g dy + h dz) + (/ dx + g dy + h dz)
I (AMB) (BNA)
(f dx + g dy + h dz) — (/ dx + g dy + h dz).
i (AMB) J (ANB)
The fixed points A and B are shown on Figure 32.9, and (P, Q) is
any other pair of points. (AKB), (AP), (QB), and (PRQ) are arbitrary
paths joining the points specified by their brackets. Since I(AB) is
independent of the path joint A and B,
I(APRQB) = AaX'B)’
so
or
dP
Consider dJ4. We shall integrate it by vertical strips as in
dy
Fig. 32.10b. Suppose that the top part AMB of C, between x = a
and b, has the equation y = f(x), and the lower part ANB is
y = g(x). Then
BP f/w dP
— dLA. = dv dx
* dy Ja J g(x) dy
Pb
= I [P(x, f{x)) - P(x, 0(x))] dx
P(x, y) dx — P(x, y) dx
(AMB) (ANB)
P(x, y) dx — P(x, y) dx
J (BMA) (ANB)
rr dQ r* rhiy)dQ
— cLT = dx dy = Q dy. (ii)
A dx k(y) dx c
Example 32.9. Show that if C is a simple closed curve, the geometrical area it
8 8
(-ydx + xdy) = \ — (x)--(-y) )d*
A ox dy
dJ4
(P dx + Q dy) =
) a\dx dy )
A
Fig. 32.11 X
32.7 Line integrals 577
The total work W(AR) done on the particle by F along the path
(AB) is given by
WIab)= I
(AB)
51F* X
(AB)
PS'-
When the step length goes to zero the sum can be written as an
integral.
W —
yy(AB) ~ F’dr.
(AB)
Then
F'8r = Fx 5x + F2 5y + F3 8z,
and
Finally, taking the limit as 8x, 5y, 5z approach zero, we obtain the
exact result.
Example 32.10. A field of force F is constant everywhere. Show that the work
done by F alone on a particle which moves from a fixed point A to a fixed point
B is independent of the path followed.
Put F = ai + bj + ck where a, b, c are constants. Then, by (32.14), W(AB) is given
by
W,
(AB) (a dx + b dy + c dz) = d(ax + by + cz)
(AB) (AB)
5) A
5(r ') « — (r~ *) 8x + — (r~ ‘) 8y + — (r~ *) 5z
dx cy oz
=-- 8x-; Sy
x y s
(x2 + y2 + z2)i (x2 4- y2 + z2)i
-r 8 Z
(x2 + y2 + z2)i
(b) Refer to Fig. 32.12 and (32.14). The components of F, are (Fu F2, F3) =
( — myx/r3, —myy/r3, -myz/r3), obtained by splitting r into its components.
Therefore the work fV(AB) done is
=
(Fl dx + F2 dy + F3 dz)
(AB)
Fig. 32.12
= my d(r ') (from (a))
= my(rB 1 - r~').
Examples 32.10 and 32.11 illustrate cases where the work done
by a force between two fixed points is independent of the path
between them, but this is not a universal state of affairs: for example,
it is not the case for the force field (y, — x, 0).
particle we put into it. When the field strength is specified, we should
be able to deduce its effect on any particle.
This is not always quite straightforward, because the introduction
of a new particle into (say) an electrostatic field might change the
distribution of charge that constitutes the source of the field, so
that in effect we would be putting the particle into a modified
situation. The case is similar with gravity: if an asteroid enters the
moon’s gravitational field, the moon will respond by moving, and
the field entered will change, if only by a little. For the purpose of
defining field intensity, we imagine that somehow such an effect is
prevented from taking place. Subject to this, we have the following
definition.
Field intensity fP at P
The total work along the path is the limit of the sum of the 8v,
which can be expressed as a line integral as before:
v(ab) —
(/i dx + f2dy + f3 dz),
'(AB)
(32.10).)
v(ap) -
f’dr,
J(AP)
V(AQ) ~ V(AP) ~ ~ /i
and similarly
dV dV
f2 = and /3 = -
dy dz
Therefore
[sv dV , dV
— J H-*
<3y dz y
or
/ = —grad V. (32.19)
We call V a potential function for the field /, or simply a
potential. The single scalar function V(x, y, z) contains all the
information necessary to define the three scalar components of /:
fi(x, y, z), /2(x, y, z), /3(x, y, z). The point ,4 is commonly taken to
be at infinity: the reader might recognize the idea of ‘the work
required to bring a particle in from infinity’ in mechanics. However,
if we choose a different reference point A, it only changes V by an
additive constant, and does not, therefore, affect the truth of (32.19);
we get the same / whatever location A has. We sum up this result
as follows.
Vp = /'dr,
J(AP)
There exist fields f(x,y,z) which have a potential, but are not
conservative, because they do not satisfy the condition (32.17), that
Potential field
' dV JV
I — + j— + k — (i dx + j dy + k dz)
(AB) v dx dy dz j
dV , dV J dV \
— dx + dy H-dz = dV (see (30.1))
J (AB) dx dy dz J (AB)
= VB- VA.
Provided that j(4B) dV is independent of the path from A to B, the
value to be assigned to VB — VA is unambiguous and we say that V
is single-valued. However, the values of V may depend not only on
the position, but also on the way in which the position was reached
(analogously to the time spent reaching a point on the other side
of a road being dependent on whether you cross directly or via the
underpass). For example, in the plane, let
v = e.
where 9 is the polar angle traversed in reaching the current position,
measured continuously from a given starting point. What do we
mean by
dei
J (AB)
32.1 0 Line integrals 583
d9 = lim Y, 50,
J (ab) 5e-*0(aB)
where the summation is carried out by taking small steps along the
path. On (ACB), 9 passes smoothly from 0 = 0 to 9 = jn, so
dV = do = ef m.
(ACB) I (ACB)
dF = de = eR - eA 171
= ■ .
(ADB) J (ADB)
v=e.
where 9 is the traversed polar angle, then the field is strictly not
conservative: various paths from A to B involve different amounts
of work by a unit particle moving in the field.
-y „ *
fix, y)
x2 + >-2' x2 +ylJ
Apart from physical constants this represents the circumferential magnetic field
around a straight wire carrying a current, or the velocity field of a vortex. Put
r = xf + yj\ then
f-r 5+y = 0.
x + jA x2 + y2
Problems
(b) (x dy — y dx); T is x = cos t, y = sin f; 32.6. (Section 32.4.) The integrands given are perfect
«. !P differentials; T represents any path having the right
0<t< 7t.
direction which joins the two given points.
r
(c) (z dx — x dy + y dz); T is x = t + 1, y = t. (a) (x dx + y dy + z dz); T is (—1, 1, — 1) to
32.4. (Section 32.2). The line integral /(x, y) dy, (d) [(y + z) dx + (z + x) dy + (x + y) dz]; T is
l(AB)
where the path (AB) is described by the curve y = k(x), (1,1,1) to (0,1,0).
can be written formally as
(e) [cos(xy + yz + zx)]
^ x d/c
f(x, k(x)) — dx. x [(y + z) dx + (z + x) dy 4- (x + y) dz]; P is
J (AB) dx
(1,0, 7t) to (0, 71, 1).
(*
Apply this formula to (x + y) dy, taken over the
(AB |
(f) (xy2 dx + x2y dy); IP is (1, 1) to (2, 2).
parabolic path in Fig. 32.19b. Express it as the sum
of two ordinary integrals over x. (This is like using x
as the parameter in Section 32.1.) 32.7. (Section 32.5). Evaluate the following two-
dimensional line integrals over the closed paths C given,
the direction being anticlockwise.
x y \
(b) - dx + - dy ; C is the ellipse ^x2 + ^y2 = 1;
y x /
use the parametrization x = 2 cos 0, y = 3 sin 0.
32.10 Show that if (/ dx + g dy) is independent 32.18. A force / is given by f(x,y,z) = yzi+xzj +
J (.4B| xyk. Show that it is conservative. Find the work done
of the path (AB) for every two points A and B, then against / along the path x = cos t, y = sin t, z = sin t
the integral around every closed path is zero. [Hint: A cos f; — j ^ t ^ jn. Are you doing this the easiest way?
and B may coincide.]
32.19. Prove that a force field / having the form / = rxr,
32.11. Show that if the variables are changed in a
where a is any constant, r is distance from the origin, f
perfect differential form, it remains a perfect differ¬
is the unit position vector and f = r/r, is a conservative
ential. Illustrate this by transforming the identity y dx +
field. [Hint: start by putting r = (x2 + y2 + z2)*, and
dy = d(xy) into polar coordinates.
guess something that / might be the gradient of. If you
cannot guess, then use the fact that grad F(r) = r{dF/dr).~\
32.12. (Green’s theorem. Section 32.6.) Confirm the truth
of Green’s theorem (32.12) for some very simple cases
32.20. Generalize Problem 32.19 to a field / = rf(r).
for which you know you can work out both the line
What is the potential of such a field?
integral and the double integral involved.
32.13. (Green’s theorem, Section 32.6.) Check the cor- 32.21. Confirm that Green’s theorem still holds for
rectess of the area formula. Example 32.9, by evaluating boundary C of the annular region 34 between the circles
x2 + y2 = 1 and x2 + y2 = 4 for the line integral
the line integral j (x dy — y dx) taken around the
[(2x — y3) dx — xy dy].
following closed paths.
J c
(a) The circle x2 + y2 = 4.
(b) The ellipse \x2 + ^y2 = 1. What are the directions on CP.
(c) The triangle with vertices ( 1,0), (2, 0), (0,4).
»
dr
— = Kt)F(x, y, z)
Fig. 33.2 Field lines. df
588 33.1 Mathematical techniques
dx dy dz
xy2z xz x
dx , dy
—=y , — = z,
dy dz
and
Equations (33.2) and (33.3) are two families of surfaces (both are cylindrical) and
their curves of intersections are the field lines of F.
„ „ d „ d f d
V = i — + j-h k
dx dy dz
again. Here V‘F is the ‘scalar product’ of the operator and the
vector field.
d . d d
div F = — (sin(xy)) + — (y cos z) + — (zx cos z)
dx dy dz
(* (*
f(x, y,z)&S,
J Js
Fig. 33.4
o
SA
Hence
Thus
dA
fix, y, z) dS = fix, y, z) (33.5)
ri'k\
Example 33.3. The roof of a building has the cylindrical shape z = h — bx2
z over a square floor plan given by |x| ^ a, |y| ^ a, where h > 2 a2b (see Fig. 33.5).
Find the surface area of the roof.
S = 6S.
In this case we use cartesian coordinates to define the element ST, which is the
rectangle with sides parallel to the axes with lengths bx and 5y. Thus 8T = 8x 8y.
The integration takes place over the square |x| ^ a, |y| < a in the (x, y)-plane
(Fig. 33.6). We also require the unit normal n. By (27.7) the unit normal will be
„ (— 2bx, 0, — 1)
n =- —
y/4b2x2 + 1
Hence
\n-k\= , =,
JA b2x2 + 1
and by (33.5)
*a _
S = x Ab2x2 + 1 dx dy.
J —a
The remaining integral can be evaluated using the substitution x = (sinh u)/(2b).
The result is
dl J1
dx' dy'
tJJl.JL
\ 8x dy
Hence
k-n = +
dx dy,
= a^/[sin2 v + cos2 u] = a,
which means that the position vector r traces out a sphere of radius
a, centre at the origin. We need to specify u and v to determine
which part of the sphere is defined. For the whole surface, the
parameters must lie in the intervals 0 ^ u ^ 2n and 0 < v ^ n.
More complicated surfaces can be generated in this way, and their
graphical representation has become easier using symbolic computer
592 33.3 Mathematical techniques
software (see Chapter 41, projects for this chapter). For example,
the position vector r defined by
r = (3 + cos v) cos u i + (3 + cos v) sin uj 4- sin v k,
generates a torus (like the shape of a doughnut) with its axis in the
k direction (Figure 33.7a). The vase-shaped surface in Figure 33.7b
is generated by
r = (1 + a sin bu) cos vi +
+ a sin bu) sin vj + uk,
(1
/ = m dv
Jv
Example 33.4. A cube of metal occupying |x| ^ a, |y| ^ a, \z\ ^ a has a radial
8‘V=8x8y8z density distribution given by
where a and are positive constants. Find the mass of the cube.
The total mass is therefore the sum or integral of these elements within the cube.
The integral, with 8x, 8y, and 8z parallel to the axes, sweeps out the interior of
the cube if it is integrated in the x, y, and z directions, in turn, between —a and
a in each case. Hence the mass M of the cube is
*a
= [4xa2 + 4+ 3a4 + a2z2)] dz,
J —a
= 8 a3(a + a2).
Divergence theorem
SF,
/3 dx dy dz.
’ dz
integral,
* 'z = g 2(x,y) ap
f
h = 3 dz dx dy,
Jj X. _ % z = gi(x,y) 02
F^k'h dj>.
/1 + /2 + I3
J JJv dx dy dz J
div F dV,
‘V
/* p
(FJ + F2j+ F2k)-ndS,
J Js
F-fidS.
of area 85 on the surface will be vnbS per unit time. The total
outflow through S will be
rp
v • n dj>.
J JS
Assuming that fluid is neither being created nor destroyed within
S, it follows that
v-n dS = 0,
Js
that is the net outflow is zero. By the divergence theorem it must
be true that
f div v dV = 0
Jv
for every such surface 5. Therefore
div v = 0
throughout the flow. This is known as the equation of continuity in
fluid dynamics. A vector field which satisfies div v = 0 is said to be
solenoidal. Generally the divergence of a vector field at a point P
measures the rate at which the vector field spreads out from P.
It is not difficult to generalize the divergence theorem to regions
which have corners or parts of S parallel to an axis as in Figure
33.12a, or to regions for which the two-point rule does not apply
as in Figure 33.12b. This region can be split into regions to each of
which the divergence theorem applies, and the theorem applies to
the whole region by addition. The surface integrals over the joins
cancel out.
(b) z
SF2\ „ fdFl
curl F =
dz)l + \dz
\dx dy J (33.8)
i J k
d d d
dx dy dz
Fi Fs
Fig. 33.12
596 33.4 Mathematical techniques
curl F = Vxf.
exyz x2 + y xz ey
+ (A
\ox
(xl +y)~T~
dy
(eX3“)V
J
i J A
d s 8
curl v = — ok,
dx dy dz
coy 0 0
Fig. 33.13
which is a vector perpendicular to the surface. The fluid as a whole
does not appear to rotate but a small leaf placed on the flow will
rotate in a clockwise sense as it is carried along with the stream.
For example, if it is placed so that y > 0 for all points on the leaf,
then the points furthest from the x axis will be moving faster than
those nearest. The rate of spin turns out to be
2 curl v = —jtok
everywhere.
A vector field which satisfies curl v = 0 is said to be irrotational.
There are two important identities for special vector fields.
33.4 Vector fields: divergence and curl 597
i J k
d 8 d
curl grad 0 =
dx dy dz
dtfi d(j> 50
dx dy dz
d2(f) d2(j)
+
Kdx dy dy dxy
= 0
assuming that scalar field is smooth enough to ensure that all the
mixed partial derivatives cancel.
For the second result
div curl F =
±(aj3 dJ^) + l(dJ±
dx \ dy dz ) dy \ dz
+ l(dh-?lA
dz V 8x dy J
^ ^ ^ ^ , ^2 d2Fx
dx dy dx dz dy dz dy dx dz dx dz dy
= 0.
i j *
d d d
curl grad cp =
dx dy dz
d 5 \
— (xy2 + x)-(2xyz + x ex>) ?
dy dz J
= 0.
d(p ,
— = y z + z + y ex>',
dx
d(p
— = 2xyz + x ex>',
dy
d(p 2
— = xy + x.
oz
Here the ‘constants of integration’ become functions of the other two variables
in each case since partial derivatives are being integrated. Finally, cp given by
(33.11), (33.12), and (33.13) must all result in the same answer. This can be
achieved by the choices
cp = xy2z + xz + ex>' + C.
Cylinder p =constant Along the p-increasing line through P, (p and z are constant.
The vector dr/dp, evaluated at P, is a tangent to this curve at P,
pointing in the direction of increasing p. The corresponding unit
vector in this direction is
dr _ 1 dr
dp hp dp
dr
cos (pi + sin (pj
dp
Fig. 33.15 Similarly, /i0 = p and h, = 1. Therefore the unit vectors in cylindrical
polars are
1 dr
(33.15)
pd(p’
8C 8C dU .
5(7 = — 8p H-50 H-5z. (33.16)
dp 80 dz
Also, from (30.15), the directional derivative of U is
dU
- s-grad (7,
ds
where s represents an arbitrary direction. Since |5s| = |5r|,
dr dr dp dr d0 dr dz
ds dp ds dcp ds dz ds
, dp „ d0 „ dz „
= hU-se’ + h*Tse* + KIse*-
Therefore,
d(7 dp d0 , dr
— = hp 9P - + h0 gf — + h2 g,_ —,
ds ds ds ds
or, expressed in increments,
Compare (33.16) and (33.17), which are true for arbitrary 5p, 50, 5z.
In turn, put one of 8p, b(f), bz to a nonzero value, and the other two
to zero. We obtain
1 dU _ 1 dU 1 dU
9p
hp dp ’ J(p hf dcp h„ dz ’
so that grad (7 is given by
_dU „ 1 dU dU
+ e„.
dpCp p 80 8z
The divergence and curl also have their cylindrical polar forms.
For the vector field F = Fpep + F^e^ + F,e:, these are
1 " 0 3 c)
div F = (pFp) + (F<l>) + (pFz)
_dp dcp dz
and
eP PU
d d d
curl F
dp 80 dz
Fnp pF(j> Fz _
r = r(«ls u2, u3) = x(ul5 u2, u3)t+y{uu u2, u3)j+z(ux, u2, u3)k.
dr dr dr
K = , h2 — 5 h3 —
dux du2
Fig. 33.16 Orthogonal
curvilinear coordinates. 1 dr „ 1 dr 1 dr (33.18)
e, =
hx dux' h2 du2 ’ h% du3
We simply state the formulas for grad, div, and curl in general
curvilinear coordinates without derivation. They are given by:
Gradient of U
1 dU „ 1 dU „ (33.19)
I dU „
grad U -e -e2 3-T-e
hx dux h2 du2 h3 du3
1 ^ C'
+ 4~(hth2F3)
du3
602 33.7 Mathematical techniques
Mi h2e2 Ms
1 d d d (33.21)
curl F =
h1h2h3 dul du2 du3
Example 33.7. In terms of (x, y, z), spherical polar coordinates (r,8,cp) are
given by
r ^ 0, 0 ^ 8 ^ n, 0 ^ 0 < 2rt.
z
The coordinates are shown in Fig. 33.17: the coordinates are orthogonal with
coordinate surfaces of a sphere, r = constant, a vertical plane, <f> = constant and
a cone, 8 = constant. Find the scale factors of these curvilinear coordinates.
Hence, obtain the gradient of the scalar field U, and the divergence of the vector
field F = Frer + Fgee + F^e# in spherical polar coordinates.
The scale factors are
or
K= = |sin 8 cos cp i + sin 8 sin cpj + cos 8 k\
or
Or
h* = = | - rsin0sin0 i + rsin0cos0/| = rsin0.
dtp
From (33.19)
dU 1 dU 1 dU
grad U =—er + - — ee + - — — v
or r dd r sin 0 d(p
By (33.20)
3 . „ 10
div F = — — (r2Fr) + — (sin0Fe) + ——■ (F0).
r2 or r sin 0 00 r sin 0 dtp
Problems
33.1. Find the surface area of the spherical cap of height 33.2. Evaluate the following triple integrals as repeated
h whose equation for z 0 is integrals:
M fx r 2y
(a) x dx dy dz;
z = j[a2 - x2 - y2] - a + h, (0<h^ a).
JO Jo J y
Vector fields: divergence and curl 603
» : fvn -.>■’]
P1 Show that 0 = 1/V*2 + y2 + z2 is a solution of
(b) x dx dy dz;
0 J0 J0 Laplace’s equation.
f 1 f = (Vn - .v2--2]
(c) X3 dx dy dz 33.10. Prove that
• 0 J 0 J -yv n -.v2-:-]
(a) div(F + G) = div F + div G;
33.3. It is intended to evaluate the integral (b) curI(F + G) = curl F + curl G.
33.17. Show that Laplace’s equation in spherical polar ence theorem to show that the surface area of 5 is given
coordinates is given by by
1 8 2dU 1 d ( . 8U
7 >■>
+ — sin 0 — div F d'U,
r or or r2 sin 9 80 \ 86
82U where V is the interior of S.
+-= 0.
r2 sin2 0 6(j)2
A solution with spherical symmetry is sought for U, 33.21. Let S be a closed surface surrounding a region V
that is with U = f(r). Show that f(r) = A + (B/r), where for which the divergence theorem holds. By using the
A and B are constants. vector field r = xi + yj + zk, show that the volume
enclosed by S is
33.18. A vector field is given by F = xy2i + xzj + xyzk.
Let S be the surface of a cube bounded by the planes
,\-= + 1, y = ±Lz= ± 1. Use the divergence theorem to
evaluate
where n is the outward normal to S.
Using this result verify that
F-h dA,
(a) the volume of the sphere enclosed by x2 + y2 + z2 = a2
is %na .
where h is the outward normal to the cube. (b) the volume of a cone with vertex at the origin and
plane base of area A in the plane z = h is jAh.
33.19. Prove that
Sets
Contents
34.1 Notation 605
34.2 Equality, union, and intersection 606
34.3 Venn diagrams 608
Problems 612
34.1 Notation
We are often interested in grouping together objects that have
common characteristics or features. We might be interested in the
integers 1, 2, 3, 4, or in all the integers. The set of all points in a
plane would consist of pairs of numbers of the form (x, y), where x
and y are coordinates which can take any real values. These
examples all involve numbers, but the elements of sets can be other
objects such as functions, or matrices, or Fourier series, or Laplace
transforms, etc.
A set is a collection of objects or elements. The elements in the
set can be defined by a rule or in any descriptive manner. Sets are
usually denoted by capital letters such as S, A, B, X, etc, and their
elements by lowercase letters such as s, a, b, x, etc. The elements in
a set are listed between braces {...}. If the set A consists of just
two numbers 0 and 1, then we write
A = {0,1}, or A — {1,0}, (34.1)
the order being a matter of indifference. We say that 0 and 1 are
the elements or members of the set A, or belong to A. We write
0 e A, 1 e A,
read as ‘0 belongs to the set A \ etc. The number 2 does not belong
to A, and we write
2 4 A,
that is, ‘2 does not belong to the set A\
The set defined by (34.1) is the binary set which could represent
the on and off states of a system. This could be the state of a light
switch, for example.
Sets can be either finite, having a finite number of elements, or
infinite, in which case the set contains an infinite number of
606 34.1 Mathematical techniques
elements. Thus the set given by (34.1) defines a finite set A, while
5 = {1,2, 3,...},
the list of all positive integers, defines an infinite set.
Some of the more common sets have their own special symbols:
Example 34.2. Find the intersection of the sets A and B in Example 34.1.
The elements in the intersection have to belong simultaneously to both intervals,
that is, to the overlapping part of the intervals [0, 2] and [1, 3], which is [1, 2],
Thus
/lnB = {x|xelR and 1 ^ x ^ 2}.
/4 u 4 = /4, /I n /l = y4.
Commutative laws:
A u B = B u A, A n B = B n A.
Associative laws (see Fig. 34.4):
(A u B) u C = T u (B u C), (34.4)
(/4 n B) n C = A n (B n C).
Distributive laws:
A n (B C) = {A n B) u (A n C),
A u (5 n C) = (A u B) n (/I u C).
Example 34.3. Using Fig. 34.6 as the Venn diagram of two sets A and B, mark
by shading the following sets:
(a) A u B. (b) An B, (c) A n B, (d) du B, (e) A u B, (f) An B.
Q (b) (c)
Example 34.4. Using Fig. 34.8 as the Venn diagram of three sets A, B, and
C, shade the following sets:
Fig. 34.8
Fig. 34.9
(A n B) u {A n B) = A n {B u B)
= A n U (by the complementary law)
= A (by the identity law).
34.3 Sets 61 1
(A u B) u (A\B) = (A v B) u (A n B)
= A u (B u (/4 n 6)) (associative law)
= A u ((B u A) n (B u B)) (distributive law)
= .4u ((B u A) nU)
= A u (B u A) (identity law)
= (B u /l) u (commutative law)
= Bu(4u4)=Bu4=3uB.
Alternatively, and more intuitively, we may notice that, since A\B is a subset
of A, it is therefore also a subset of 4uB, and so adds nothing to A u B when
united with it.
k = 796.
Of the 1000 products manufactured, 796 passed all the quality checks.
(34.8)
Problems
34.1. (Section 34.1). List the elements in the following (t)(A\B)nC; (g)4\(BnC);
sets: (h) (A\B) u (B\C).
(a) S = {x | x e N + and 3 < x ^ 10};
(b) S = {x j x e M + and - 2 ^ x ^ 4};
34.3. (Section 34.2). Determine the union A u B of
(c) S = {x\xeZ and — 2 < x < 4};
each of the following pairs of sets A and B:
(d) S = {x\xeN+, and -2 < x ^ 4};
(a) A = {x | x e R and — 1 < x < 2},
(e) S = {1/x | x e N + and 3 ^ x ^ 8};
B = {x | x g R and — 1 ^ x < 4);
(f) S - {x21 x e N + and |x| ^ 3};
(b) A = {x | x e 05 and - 1 ^ x < 0}, B = {x | x g IR
(g) 5 = {x+jy |xeN+, yeN+, 1 ^ x ^ 4, 2 < y ^ 5}.
and 0 < x < 1};
(c) A = {1, 2, 3, 4}, B = {— 4, -3, -2, -1};
34.2. (Section 34.3). Show on Venn diagrams the follow¬ (d) A = {y | y = cos x, x e IR, and 0 x ^ jn},
ing sets: B = {y \ y = sin x, x e U, and -?n x ^ £n}.
(a) A u B; (b) A n B\ (c) A n (B uC);
(d) (A n B) u (B n C); (e) A n B:
34.4. (Section 34.2). Determine the intersections An B
Sets 613
of the following sets: 34.6. The set S consists of products, each of which is
(a) A = {x | x e R, and — 2 ^ x ^ 1}, given n pass/fail tests, numbered 1 to n. The' set Sr
B = {x | x e R, and — 1 ^ x ^ 2}; consists of those products that pass test r. What is the
(b) A = {x|xe[\l + and -5<x^2}, B = {x | x e R, set of products that
and — 5 ^ x ^ 2}; (a) fails all tests,
(c) A = {n\n = 1/m and m e N + }, B = {n | n = 1/m2 and (b) fails only test 1,
m e l\l + }; (c) fails some tests?
(d) A = {x | x e R and x2 — 3x + 2 = 0},
B = {x | x e R and 2x2 + x — 3 = 0}; 34.7. At Keele University, all first-year students must
(e) A = {x | x e R and |x| ^ 2},
take three subjects of which at least one must be a
B = {x | x e R and |x — 11 < 1}. science subject, and at least one must be a humanities
or social science subject. Let A be the set of all first-year
34.5. (Section 34.3). Construct a set formula for the students in a given year, 4, the set of students who take
shaded sets of Fig. 34.12: exactly one science subject, B, the set of students who
take just one humanities subject, and B2 the set of those
who take two social science subjects. Draw a Venn
diagram to represent the different sets of students classi¬
fied by groups of subjects. Give set formulae for students
who take
(a) just one social science subject
(b) no humanities subject,
(c) one subject from each group.
A n B n C = (A n C) u (B n C).
Let A = {1, 2, 3}, B = {0, 1}, and C = {1, 2}. Write down
all the elements in
A x B x C, A2 x C, (A u B) x C, (A n B) x C.
614 Mathematical techniques
34.12. At the end of a production process, 500 electri¬ 34.15 The menu in a restaurant contains three courses:
cal components pass through three quality checks P, 4 starters (set A), 5 main courses (set B), and 3 sweets
Q, and R. It is found that 38 components fail check (set C). Customers can choose either the full menu or,
P, 29 fail Q. 30 fail R, 7 fail P and Q, 5 fail Q and R, alternatively, a main course and a sweet. In terms of
8 fail R and P and 3 fail all checks. Determine how cartesian products what is the set of all possible meals
many components: (the answer is really a set of pairs and triples). For
(a) pass all checks, (b) fail just one check, how many different orders can customers ask?
(c) fail just two checks.
34.13. (Section 34.4). For three finite sets A, B. and C, 34.16. Given A = {1,2,3}, B = {3,4}, and C =
show that the number of elements in the union of the {2, 3, 4, 5}, find the elements in the sets B u C, B n C,
sets is given by and the cartesian products A x B and A x C. Verify
n(A u B u C) = n(A) + n(B) + n(C) that
+ n(A n B n C) — n(B n C)
A x (B u C) = (A x B) u (A x C),
— n(C n A) — n(A n B).
34.14. If A and B are two finite sets, explain why, for A x (B n C) = (A x B) n (A x C).
the cartesian product (defined in Problem 34.10
above), (This example suggests general results which are true for
n(A x B) = n(A)n(B). all sets.)
Boolean algebra:
logic gates and
switching functions
Contents
35.1 Laws of Boolean algebra 615
35.2 Logic gates and truth tables 617
35.3 Logic networks 619
35.4 The inverse truth-table problem 621
35.5 Switching circuits 622
Problems 623
0 0 0 0 0 0 0 1
0 1 1 0 1 0 1 0
1 0 1 1 0 0
1 1 1 1 1 1
Commutative laws:
a © fi = © a, a*b = b * a;
Associative laws:
a © (b © c) = (a 0 b) © c, a*(b*c) = (a*b)*c; (35.1)
Distributive laws:
a * (b © c) = (a * b) © (a * c),
a © (b * c) = (a © b) * (a © c).
Absorption laws:
a@(a*b) = a, a * (a © fr) = a;
= a * (1 © b) (distributive law).
Now
1 © b = (1 © b) * 1 (identity law)
= 1 (complement law).
Finally
a® a*b = a* 1 = a.
a® b, a® b, a® a*b,
are Boolean expressions. For the binary set, the elements 1 and 0
can represent ‘on’ or ‘off’ states in digital circuits. The basic
components in a computer are logic gates which can produce an
ouptut from inputs. All the outputs and inputs can be in one of two
states, usually either low voltage (0) or high voltage (1).
The fundamental Boolean operations of ©, *, and " correspond
to devices known respectively as the or gate, and gate and not gate.
As with circuit components such as resistance and inductance, each
has its own symbol.
The or gate has two inputs and a single output represented by
the symbol in Fig. 35.1. The output is / = a © b. The inputs a and
b can each take either of the values 0 or 1. Hence there are four
possible inputs into the device as listed in Table 35.2. The final
column / can be completed using the sum rule in Table 35.1. Then, if
a is ‘on’ (1) and b is ‘off’ (0), the output / is ‘on’ (1). Table 35.2 is
known as the truth table of the or gate.
618 35.2 Mathematical techniques
a b / = a®b
a f=a(&b
0 0 0
b 0 1 1
1 0 1
Fig. 35.1 The OR gate. 1 1 1
a b f = a*b
a f-a*b
0 0 0
b 0 1 0
1 0 0
Fig. 35.2 The and gate. 1 1 1
The symbol and truth table for the and gate are shown in Fig.
35.2 and Table 35.3. Again the device has two inputs and the single
output / = a*b, the product of a and b.
a / = a
■- \>^ 0 1
Fig. 35.3 The not gate. 1 0
Finally the not gate is shown in Fig. 35.3 with its truth table
given as Table 35.4. The not gate has a single input and a single
output which is the complement of its input.
There is further jargon associated with these gates. The output
a © b is known as the disjunction of a and b, while a*b is known
as the conjunction of a and b, and a is called the negation of a.
These devices can be connected in series and parallel to create
new logic devices, each of which will have its own truth table.
A series connection between a not gate and an and gate is shown
in Fig. 35.4a. The output a*b of the and gate becomes the input of
the not gate which results in the output a*b. This device is known
as the nand gate, and it has its own symbolic representation shown
in Fig. 35.4b. Its truth table is given in Table 35.5.
A series connection between a not gate and an or gate produces
the nor gate as shown in Fig. 35.5a. The output / is the complement
of the sum of a and b. The nor gate also has its own symbol shown
in Fig. 35.5b. It has the truth table shown in Table 35.6.
35.2 Boolean algebra: logic gates and switching functions 619
a b f = a* b
0 0 1
0 1 1
1 0 1
(b) 1 1 0
Fig. 35.4 The nand gate.
Example 35.2. Construct the Boolean expression for the output f of the device
a*b
shown in Fig. 35.6.
Starting from the left in Fig. 35.6, the upper and gate produces an output a*b
Z> and the lower or gate has an output c © d. These become the inputs into the
or gate on the right. Hence the final output is
=D c®d
f = a*b@c@d.
Fig. 35.6
Since there are four inputs, the output can be determined for each of the 24 = 16
possible inputs.
Example 35.3. Figure 35.7 shows a logical network with three inputs a,
b, c, and four devices. Find a Boolean expression for the output f. Write
down the truth table for the system.
The input b is the same in both devices P and Q. The output from the and gate
P is a*b, and the output from R is a*b. The output from Q is b © c. Hence
the inputs a*b and b © c into S produce an output
/ = a*b © b © c.
D r s
c
Fig. 35.7
620 35.3 Mathematical techniques
Table 35.7
a b C a*b b©c a * b © (b © c)
0 0 0 0 1 1
0 0 i 0 1 1
0 1 0 0 1 1
0 1 1 0 1 1
1 0 0 0 1 1
1 0 1 0 1 1
1 1 0 1 0 1
1 1 1 1 0 1
Example 35.4. Show that, using just the nor gate, it is possible to build a
logic network to model any Boolean expression.
Given inputs a and b, we have to show that devices can be constructed using
just nor gates with outputs of a © b, a*b, and a. For inputs of a and b, the
single nor gate generates an output of a © b. Figure 35.8 shows three devices
which simulate the required outputs.
Example 35.5. Design a logic network using or, and, and not gates to
reproduce the Boolean expression f = a * b ® a for inputs a and b.
Fig. 35.9
From input b we obtain b by a not gate. The inputs a and b are then fed into
an and gate to produce a*b. Finally a spur from the a input and the a*b
output are fed into an or gate as shown in Fig. 35.9.
35.4 Boolean algebra: logic gates and switching functions 621
Table 35.8
a b /
0 0 0
0 1 1
1 0 1
1 1 0
f = a*b*c@a*b*c@a*b*c®a*b*c®a*b*c.
Table 35.9
a b c /
0 0 0 0
0 0 1 1
0 1 0 0
0 1 1 1
1 0 0 1
1 0 1 0
1 1 0 1
1 1 1 1
Check that / does give the required output. The disjunctive normal
form always guarantees an answer, but it is not necessarily the
simplest or most efficient in circuit architecture.
a b /
0 0 0
0 1 0
1 0 0
1 1 1
Fig. 35.13 Two switches in parallel. Similarly two switches in parallel (Fig. 35.13) correspond to the
sum of a and b. The truth table is given in Table 35.11. The final
column indicates that / = a © b.
The complement of a, the state of switch Sl5 is another switch S2
in the circuit which is always in the complementary state to Su off
when Sj is on and vice versa. It can be represented symbolically by
Fig. 35.14, in which the switches S: and S2 are joined by a rigid tie.
These devices are analogous to the gates of Section 35.3. For
switching circuits, the Boolean expressions are often referred to as
Fig. 35.14 Complement of a switch switching functions.
using a rigid tie.
a b /
0 0 0
0 1 1
1 0 1
1 1 1
35.5 Boolean algebra: logic gates and switching functions 623
Example 35.6. Find a switching function f for the system shown in Fig. 35.15.
Let a1, a2, a3, a4 represent respectively the states of each switch Su S2, S3, S4.
Since S2 and S3 are in parallel, their output will be a2 © a3. This combined in
series with a4 will give an output of {a2 ® a3) * aA. In turn, this is in parallel with
S1. Hence, the final output is
(a2 © a3) * a4 © at.
/ = a, * d2 © «i * a2.
The actual circuit is shown in Fig. 35.16, where Sj and S2 are one-pole two-way
switches. At Su the state a1 represents the switch ‘up’ and its complement al is
the switch down. A similar state operates at S2.
Table 35.12
up up off 0 0 0
down up on 1 0 1
down down off 1 1 0
Fig. 35.16 up down on 0 1 1
Two-switch light control.
Problems
35.1. Read through Example 35.1. Now prove the other be proved in Boolean algebra implies another theorem
absorption law: with * and © interchanged for the same elements.)
(a © b) * (a © c).
Fig. 35.17
35.8. (Section 35.1). Show that the following Boolean
expressions are equivalent: 35.11. Find the outputs / and g in the logic circuits
(a) a © b; (b) a © b * b. shown in Fig. 35.18. This device can represent binary
addition in which g is the ‘carry’ in the binary table
35.9. (Section 35.3). Find a Boolean expression / which shown in Table 35.14. The output g gives the ‘1’ in
corresponds to the truth table shown in Table 35.13. the ‘10’ in the binary sum 1 + 1 = 10.
Table 35.1 3
——Cx>
a b C /
0
0
0
0
0
l
1
1
3>
0 1 0 0 Fig. 35.18
0 1 1 0
1 0 0 1
Table 35.14
1 0 1 1
1 1 0 0
1 1 1 0
X y x + y
0 0 0
0 l 1
35.10. (Section 35.3). Construct Boolean expressions for 1 0 1
the output / in the devices shown in Fig. 35.17a—d.
1 l 10
Construct the truth tables in each case.
Boolean algebra: logic gates and switching functions 625
a b /
0 0 0
0 1 1
1 0 1
1 1 1
(b)
Table 35.16
Fig. 35.19
a b c /
0 0 0 1
0 0 1 0 32.15. (Section 35.4). Find switching functions for the
0 1 0 0 switching circuits shown in Figs 35.19a,b.
0 1 1 1
1 0 0 1 35.16. A lecture theatre has three entrances and the
1 0 1 0 lighting can be controlled from each entrance; that is, it
1 1 0 1 can be switched on or off independently. The light is ‘on’
1 1 1 0 if the output / equals 1 and ‘off’ if / = 0. Let a; =1 (i =
1, 2, 3) when switch i is up, and let a; = 0 (i = 1, 2, 3)
35.14. (Section 35.3). Showthat any Boolean expression when it is down. Construct a truth table for the state of
can be modelled using just a nand gate. (Hint: use the lighting for all states of the switches. Also specify a
a method similar to thatexplained in Example 35.4.) Boolean expression which will control the lighting.
Graph theory and
its applications
Contents
36.1 Examples of graphs 626
36.2 Definitions and properties of graphs 627
36.3 How many simple graphs are there? 629
36.4 Paths and cycles 629
36.5 Trees 631
36.6 Electrical circuits: the cutset method 632
36.7 Signal-flow graphs 635
36.8 Planar graphs 638
36.9 Further applications 640
Problems 643
(ii) Road maps. Road maps and street plans are graphs with roads
as edges and junctions as vertices. However, most road networks
H H
include one-way streets. Hence graphs need to be modified to
indicate directions in which movement or flow is permitted. Figure
H-C- C -O-H 36.5a shows a typical section of a street plan with some one-way
streets. We have to associate directions with the edges as shown in
the graph of the plan in Fig. 36.5b. Note that two-way streets now
(a) H H
have two directed edges associated with them. This is an example of
a directed graph, which is also known by the shortened term digraph.
(iv) Shortest paths. Figure 36.6 shows a digraph with weights associated
-*■ with each edge. The graph could represent routes between towns S
and F which pass through intermediate towns A, B,..., the weights
associated with each directed edge could stand for distances or times.
(b) This graph is shown as a digraph, but weights could be present with¬
out directions in some cases. We might be interested in this example
Fig. 36.4 Ethanol molecule.
in the shortest distance between the start (S) and the finish (F).
Fig. 36.6
Figure 36.7 shows some examples of the various graphs described
above.
Since every edge has a vertex at each end, it follows that the sum
of all the vertex degrees equals twice the number of edges. This is
known as the handshaking lemma. For example, from Example
36.1,
which is twice the number of edges in the graph shown in Fig. 36.1.
There two immediate consequences of the handshaking lemma:
(i) the sum of all the vertex degrees in a graph is an even number;
(ii) the number of vertices of odd degree is even.
Table 36.1
n 1 2 3 4 5 6 7
a f
Example 36.2. Electrical circuits are usually such that every edge of its
representative graph is part of a cycle. List all the distinct cycles in the circuit in
Fig. 36.2(a).
The edge of the circuit is repeated in Fig. 36.13. The complete list of cycles is:
3- edge cycles: a-b-c-a, a-b-d-a, a-d-c-a, b-d-c-b;
4- edge cycles: a-b-d-c-a, a-d-b-c-a, a-b-c-d-a.
Fig. 36.12
36.4 Graph theory and its applications 631
36.5 Trees
A connected graph which has no cycles is known as a tree. An
example of a tree is shown in Fig. 36.15. The edges in a tree are
called branches.
Suppose that a graph G consists of the set V(G) of vertices and
the set E(G) of edges. Then any graph whose vertices and edges are
subsets of V(G) and E(G) respectively is called a subgraph. It is
important to note that the subgraph must be a graph whose vertices
and edges come from G; and only edges that join two vertices of
the subgraph are permitted in the subset of E(G).
Suppose that G is a connected graph.
R3
c, —ir^ -\w-
} Rf> B C D
L u
H1-
-VA-
<
v( V2
QC
;
r-
*4=
r\ T
a:
-
Fig. 36.18
A circuit and its graph. (a) (b)
In addition, for resistors we also have Ohm’s law which states that
the voltage across a resistor is directly proportional to the current
flowing through it, that is,
v oc /' or v = Ri,
Q: z'i - z3 + ix = 0, (36.1)
(36.3)
II
1
1
<N
00
rO
^ 5 - h ~~ * 8 = (36.5)
Similarly
Vf/R-5’ (36.10)
(~va)/R6, (36.11)
(36.12)
We can now substitute for the currents from (36.6) to (36.13) into
(36.1) to (36.5) resulting in 5 linear equations to determine the nodal
voltages va, vb, vc, vd, vf in terms of the known currents ix and iY.
The remaining currents can then be calculated from (36.6) to (36.13).
Example 36.3. Using the cutset method, find all currents and nodal voltages
in the circuit shown in Fig. 36.23.
The circuit can be represented by a graph with 5 nodes (Fig. 36.24) with the
currents it, i2, i3, i4, i5 in the directions shown.
A spanning tree with three links is shown in Fig. 36.25 together with cutsets
Ci, C,, C3, C4. Hence Kirchhoff’s second law implies:
C,: /, - i3 + i2 = 0, (36.14)
C2: br - i3 + b = 0, (36.15)
Fig. 36.23
C3: —iy + b — f3 + i2 — 0, (36.16)
With ve = 0, the currents in terms of the nodal voltages va, vb, vc, vd are, by
Ohm’s law:
b = = io. (36.22)
3vb - 3b + vd = 2, (36.24)
These are linear equations which can be solved using the methods of Chapter
Fig. 36.25 Fundamental cutsets
12. Computer algebra is also very useful in solving sets of equations of this type
36.6 Graph theory and its applications 635
(see the computer algebra applications for Chapter 12 in Chapter 41). The
answers are
We wish to find Q(s) in terms of P(s), G(s), and H(s), from the
equations (36.35) to (36.37). Thus, from (36.36)
G(s)
P(s) G(s) GG) Q(s) = Pis).
1 + G(s)H(s)
1 +G(s)H(s)
This is the closed-loop transfer function. The actual signal can be
Fig. 36.27 Block-reduced
obtained by finding the inverse Laplace transform for Q(s). Hence
diagram for Fig. 36.26. the system is equivalent to that shown in Fig. 36.27.
636 36.7 Mathematical techniques
_G^G^G^s)_
Q(s) = P(s), (36.38)
1 - G2(s)H1(s) + Gj(s)G2(s)G3(s)H2(s)
(The argument (s) has now been dropped from the working.) Hence
GlG2xi
X3~V~G2H1'
In other words, we can replace (a) by (b) in Fig. 36.31.
", G,G2
Fig. 36.31
There are other rules, and a complete list now follows for the
replacements for subgraphs in the graph.
(a) Multiple edges. See Fig. 36.32. This follows since
G H GH
by
Fig. 36.33 Edges in series.
H GH
G X~HJ
•-*-> by • > •
X\ xi x3
Fig. 36.34 Cycle. J
with H / 1.
(e) Stems. See Fig. 36.36. This follows since
Fig. 36.35 Loop.
x2 = Gxj, x3 = Hx2 = HGxx, x4 = Jx2 — JGxx.
Example 36.4. Find the out put-input relation in the signal-flow graph shown
in Fig. 36.38.
Applying rule (a) to the multiple edge, and rule (c) to the cycle, the graph is
reduced to Fig. 36.39. Apply the series rule to the divided edges to give Fig.
36.40. Finally the multiple edge and series rules give Fig. 36.41. Thus the output
is given by
abd
<7 = + he(g + /).
1 — be
rule (b)
In the actual control system a, b, c,... will be transfer functions.
' I
G1G2G3
a b
Theorem (Euler). Suppose that the graph G has a planar
drawing, and let v be the number of vertices, e the number of
edges, and / the number of faces of G. Then
v — e + f = 2.
Proof. For the graph G, define a spanning tree (see, for example,
Fig. 36.44 A planar graph with Fig. 36.45). The spanning tree must have n vertices and n — 1 edges
fiver vertices, seven edges, and (see Section 36.5). It must also have just one face. Since
four faces.
n — (n — 1) + 1 « 2,
Euler’s formula holds for the spanning tree. Successively replace the
other edges in the graph. Each time an extra edge is added, a face
is divided and one extra face is added. However, algebraically, this
cancels the additional edge in the accumulation to Euler’s formula
for the spanning tree. Hence
r2 r3 r4
Fig. 36.51 An
unbraced framework.
Table 36.1
Subgraph
Wt — ta + h +'■■+ h
a
b Can the waiting time be reduced within the time constraints by either
c
d choosing a different set of subgraphs to cover G, or a different
sequence of timings? Figure 36.55 shows the same choice of sub¬
graphs but with different timings. The result is a slightly shorter
waiting time of ^T.
Fig. 36.55
Graph theory and its applications 643
Problems
36.1. (Section 36.2). Write down the degree of each 36.7. Write down the adjacency matrices of the graphs
vertex in the graph in Fig. 36.56. in Fig. 36.7. Note that a single loop introduces an
element 1 into the appropriate position on the leading
diagonal. What characterizes the matrix of a discon¬
nected graph?
0 2 0 1
2 0 1
A =
0 1 0
1 1 1 0
0 1
1 0 1 1 1
b (2 c
Fig. 36.58
Fig. 36.61
(a) iy= 1 A
Fig. 36.59
-VA-
r2
*3 *4
_ YYV -
YYV -VW -
( K *7^
(b)
/?, = ! Q 36.18. (Section 36.5). Figure 36.63 shows a positive
feedback control system. If P(s) is the system input,
find its output Q(s), and the transfer function of a
single equivalent device.
G(s)
J *
H(s)
Fig. 36.63
36.17. Complete the block-reduction method for the 36.22. (Section 36.8). Show that the bipartite graph
multi-feedback control system shown in Fig. 36.64. K2 3 has a planar representation.
(a)
(b)
Fig. 36.64
646 Mathematical techniques
(b)
36.23. (Section 36.8). The complete graph K5 does not 36.25. (Section 36.9). Show that the framework in Fig.
have a plane drawing. What is the minimum number of 36.67 is overbraced. How many ties can be removed to
edge crossings in a plane representation of the graph? leave a minimum bracing?
Contents
37.1 Discrete variables 648
37.2 Difference equations: general properties 650
37.3 First-order difference equations and the cobweb 652
37.4 Constant-coefficient linear difference equations 653
37.5 The logistic difference equation 658
Problems 662
P^O+ZjPo. (37.1)
Let £P„ be the sum after n years. Then, similarly
P„ = (l +I)Pn-x. (37.2)
p2 = ( i +dpi=( i + n2p0,
p3 = (l +/)T2 = (1 +/)3P0,
Pn = ( 1 + TO (37.3)
holds at least for values of n up to 3. Suppose that (37.3) holds for
n = k. Then (37.2) implies that
Example 37.1. £1000 is invested for 5 years at the following rates: (a) 5%
annually; (b) ff/n calendar monthly, (b) jfj% daily (ignoring leap years).
(c) Calculate the final amount in the account in each case.
In each case the formula is
F„ = (l +/)"P0,
with P0 = 1000, but the / and n differ.
(a) This is the original problem with n = 5 and / = 0.05. Hence
/ 0.05\6°
p60 = l i+_ J x 1000 = 1283.36.
(c) For the daily rate, there are 365 x 5 = 1825 compounding periods. Thus
we require
0.05\182S
x 1000 = 1284.00.
Example 37.2. The sum of £50000 is borrowed over 25 years and repaid in
equal annual instalments, the interest on the outstanding balance in any year being
8%. Find the annual repayments. This scheme equalizes the repayments over the
term of the loan.
Let us solve the general mortgage-repayment problem. Suppose that £P is
borrowed over N years at an interest rate of 100/% on the outstanding loan.
Let the amount outstanding after m years be £Q,„. Thus Q0 = P and QN = 0.
Let £A be the annual repayment. Then this must include the interest on the
debt still owed and capital repayment. Thus
It can be done, but it is not quite so obvious now how to iterate Qm from Q0.
It is sometimes helpful to look for any constant solutions of the difference
equation. In this case, let Qm = C for m = 1, 2N. Then
C — (1 + I)C = — A, or C = A/I.
This is known as a fixed point or an equilibrium value of the difference
equation.
Put
Qm = C + Um = A/I + Um
into (37.4). Then
7P(1 + /)*
A =
(1 + If - 1
For the data given, P = 50000, / = 0.08, N = 25, and consequently
which represents the annual payments in £ to the nearest penny. The total
repayment over the 25 years is
n — (n — m) — m.
K + 2 = 3u„ +1 + 2 u„ + (n + 2)2,
is the same as (37.7): n has been replaced by n + 2 throughout.
Given initial conditions, the successive terms are very easy to
compute. For a first-order difference equation, we can assume that
u0 is given, but it could be any term, say ur, which is taken as the
initial condition. Generally, our aim is to find a sequence {u„} and
a formula for u„ for n ^ r which satisfies the difference equation.
The difference equation (37.8) (which is known as the logistic
equation) with k = 2 is
3 _ 15 .. 255 _ 65535
«i « Wo « W1 ' « HA 5 • • • j
»„ + 2 — 2u„+1 + 4 un = 6,
u - 2u + 4u = 6, or u = 2.
u — 3m — 2u — n2 = —4 u — n2
«„+1 = /(«») = iK + !•
Plot the lines v = x and y - |x + 1 (Fig. 37.2). Select an initial value,
say, u0 = j, which corresponds to P0 on the x axis. Then
ul ~ 2 2 ' 4’
un+ i = — kun + k,
for (a) k = f (b) k = (c) k = 1, using the initial value u0 = | in each case.
(a) Plot the lines y = x and y = —Lx + j. They intersect at the fixed point (y, y)-
Starting from P0 : (|, 0), the cobweb traces P0PiQ\P2Q2P3 ■ ■ ■ in Fig. 37.3.
Evidently it approaches the fixed point as n -*■ oo, indicating stability.
37.3 Difference equations 653
(b) The lines are y = x and y = —§x + §. The fixed point is at (§, §), and
the cobweb path is P0P1Q1P2Q2 • • • in Fig. 37.4. The path moves away from the
fixed point implying its instability.
(c) The lines are y = x and y = — x + 1 with fixed point (^, f). The path
starting at P0:(|, 0) follows the rectangle P\QXP2Q2> indicating periodicity (Fig.
37.5). This is true for any starting value except that of the fixed point itself.
Stability
Fig. 37.5 Cobweb for The first-order difference equation un + 1 — —kun + a
1 = -«„+! with Uq = |. has
(a) a stable fixed point if — 1 </c< 1, (37.11)
(b) a fixed point that is not stable if \k\ > 1,
(c) a periodic fixed point if k — 1,
wwww
\ / \ / \ / \' un + 1 — cun = 0. (37.13)
tf tf tf
As can be seen from (37.2) or verified directly, the general solution
I_I I-1-1-1-1-1
in the form
K = Pn,
for all n, if p = 0 or
p2 + 2 ap + b = 0. (37.16)
Distinct roots
p2-p- 6 = 0, or (p - 3) [p + 2) = 0.
The roots are px = 3, p2 = —2. Hence the general solution is
that satisfies u0 = 1, ux = 2.
37.4 Difference equations 655
p2 + 2p — 3 = 0, or (p + 3)(p — 1) = 0.
Uq = 1 = A -f- F, ux = 2 = —3A + F.
«„= —i-(—3)" + f.
p2 — lap + a2 = 0, or (p — a)2 = 0,
vn+2 ~ 2vn + l + vn = 0.
since u / 0. It can be verified that this equation has a solution vn — n.
Hence a further independent solution is un = Bnan.
Equal roots
The general solution of un + 2 — 2aun+1 + a2un = 0 is (37.19)
un = {A + Bn)an
un + 2 + 2W„+1 + 2 U„ = 0.
Its characteristic equation is
p2 + 2p + 2 = 0
real form by using the polar forms (Section 6.3) of the complex
numbers. In this case
-1 ±j = V2e±inj.
Hence
«n+ 2 + un = °-
p2+ 1=0,
un = Ain + B(-i)n.
Table 37.1 lists some simple forcing terms f(n) with suggested
forms of particular solution and alternatives containing parameters
to be determined by direct substitution.
Table 37.1
m Trial solution q„
«„ + 2 - 4“n = «•
p2 - 4 = 0, or (p — 2)(p + 2) = 0.
d,, = C0 + Ci«.
Then
u„ = 2n A + ( —2)"6 — | — 3«-
u = otu(\ — u)
ax( 1 — x) = x, or x(ax — 1 — a) = 0.
values of a > 1, so that one fixed point is in the first quadrant, x > 0,
y > 0. A cobweb solution for the case a = 2.8 is shown in Fig. 37.7.
Notice that, for this choice of a, the fixed point P is stable; that
is, the cobweb solution approaches P. The slope of the graph of
y = ax(l — x) at P determines the stability or instability of the
solutions. The slope at P is m = a — 2ax, where x = 1 — 1/a. Hence
m — a — 2a(l — 1/a) = —a + 2.
As with the cobweb for two intersecting lines for the linear difference
equation in Section 37.3, the fixed point P is locally stable if
Fig. 37.7 Cobweb solution for
un + l = 2.8h„(1 — un) showing a m > — 1, in that all cobweb paths starting close to 1 — 1/a approach
solution starting from x = u0 the fixed point P as n -> oo. This corresponds to a < 3. Notice also
approaching the fixed point at P. that, if 1 < a < 2, then the y = x intersects the parabola y =
ax(l — x) between the origin and its maximum value. This follows
since the maximum occurs at x = \ and 0 < 1 — 1/a < \ implies
1 < a < 2.
For a ^ 3 the solutions become more complicated. The fixed
point at the origin is unstable: hence there is no stable fixed point
to which solutions can approach. We can obtain a clue as to what
happens if we look at the function of a function given by
y = /(/00) = a[ax(l - x)][l - ax(l — x)],
= a2x(l — x) — a3x2(l — x)2.
When a = 3, this curve intersects y = x at x = 0 and at P only. This
can be checked by noting that
x = a2x(l — x) — a3x2(l — x)2
can be written as
x(27x3 — 54x2 + 36x — 8) = 0, or x(3x — 2)3 = 0,
when a = 3. Graphs of the curves y = /(x) and y = /(/(x)) for
a = 3 are shown in Fig. 37.8a. The fixed point P is at (f, §). As a
increases, two additional fixed points develop on the line y = x.
Further graphs of the two functions y = /(x) and y = /(/(x)) for
a = 3.4 are shown in Fig. 37.8(b), together with the line y = x. There
are fixed points at 0, A, B, C, of which A and C are stable. While
y (a)
y (b)
At A and C, u satisfies
/(xi) = axj(l - x0
1
= [a + i _ ^[(a + i)(a _ 3)]]
1
l)(a - 3)]}2]
and similarly /(x2) = x1. Hence period doubling occurs, and transfers
37.5 Difference equations 661
between xt and x, can take place around the square cobweb in Fig.
37.8b.
The fixed point A will remain stable if the absolute value of its
slope is less than 1. The same condition will also apply at C. In fact
the critical slope is —1, and we will find the value of a at
which this occurs. We have
f /(/(*)) =fij—
dx
or 4a3x3 — 6a3x2 + 2a2(l + a)x — a2 = 1, (37.26)
Equations (37.27) and (37.28) must have the same roots in x. In each
case, make the coefficient ofx2 equal to 1. The results for comparison
are
2 (® + 1) (a + 1) n
a a
2 («+ 1) , («2 + 1) n
a 2a2(a — 2)
a + 1 (a2 + 1)
(37.29)
a2 2a2(a — 2)’
or
a2 — 2a — 5 = 0.
Problems
37.1. £1000 is invested over 10 years at an interest (a) Find the required adjustment to the annual repay¬
rate of 6% annually. Find the final total investment. ments for the loan to be repaid over the original term.
What should the monthly interest rate be to achieve the (b) If the repayments are not changed, by how much
same final total? will the mortgage term be reduced?
37.2. The sum of £50000 is borrowed over 25 years 37.3. Find the fixed points of the following difference
and the money is repaid in equal annual instalments. equations:
The interest rate on the outstanding balance in any (a) un+l = u„(2 - u„);
year is 10%. Find what the annual repayments would (b) un + 1 = u„(l + un)(2 - 3u„); (c) un + 1 = sin u„;
be. After 5 years, the interest rate is reduced to 9%. (d) un+1 = i sin u„; (e) u„+1=eu"-l.
Difference equations 663
37.4. Given the initial value u0 in each case, calculate the (c) n„ + 3 - 3un + 2 + 3u„+1 + u„ = f(n), where
sequence of terms up to u5 for each of the following (i) /(n) = 1, (ii) /(n) = n, (iii) f(n) = n2.
first-order difference equations: (d) u„ + 2 - 6u„ + 1 T 9u„ = f(n), where (i) f(n) = 2",
(a) u„ +1 = 2w„(3 - u„), u0 — 1; (ii) f(n) = 3; (iii) /(n) = 3"; (iv) f{n) = n3".
(b) un+1 = 2u„( 1 - u„), u0 = i;
(c) u„ + 1 = 3.2un(l - u„), Uq = 37.12. A ball bearing is dropped from a height z = h0
(d) u„ + 1 = 4i/„( 1 - t<„), u0 = on to a metal plate, and the coefficient of restitution
between the ball and the plate is e, where 0 < e < 1.
37.5. (Section 37.3). Sketch the cobweb solutions for the Set up a difference equation for the maximum height
following first-order equations with the stated initial reached after n impacts. Solve the equation. (Assume
conditions, and discuss the stability of the fixed point: that a ball dropped from a height h hits the plate with
(a) un+, = jun + i u0 = i and u0 = f; speed v = ^/(2gh), where g is the acceleration due to
(b) un+, = 2u„ - 2, u0 = i and u0 = §; gravity. The rebound speed of the ball is ev.) Instead
(c) u„+1 = -n„ + 2, u0 = ^ and u0 = f; of being stationary, the plate now oscillates so that it
(d) u„ + 1 = -|u„ + |, «0 = i and u0 = f; is moving upwards at a speed u (a constant) at the
(e) t/„+1 = —2u„ + 3, u0 = i and u0 = §. moment of each impact with the ball. Find the difference
equation for h„. Show that the difference equation has a
37.6. The function /(n) satisfies fixed point and interpret its meaning.
/(«) = /(i») + 1-
37.13. Dn(x) is the n x n determinant defined by
Put n = 2"' and g(m) = /(2m), and show that
g(m) = g(m - 1) + 1. 2x 1 0 • 0
Hence find /(«) given that /(1) = 0.
1 2x 1 • ■ 0
£>„(*) = (n > 2),
37.7. Use the method suggested in the previous prob¬
lem to solve 0 0 0 • 2x
f(n) = /(in) + f,
2x 1
given the initial condition /(1) = 0. D2(x) = D,(x) = 2x,
1 2x
37.8. (Section 37.3). Find the general solutions of the Show that
following difference equations:
D„(x) = 2xDn_1(x) - D„_2(x).
(a) 11 n + 2 + 2w„+ 1 - 3u„ = 0; (b) un+2 - 9un == 0:
(c) l,n + 2 + 9un = 0; (d) - 4u„_, + 5nn^2 == 0 Solve the difference equation for x ^ 1 and x = 1.
(e) l,n + 2 — 4 u„ + 1 + 4w„ = 0;
(0 Un + 3 - l<n + 2 + “n + I — «n = 0; 37.14. Let {un} (n = 0,1,...) be a sequence. The power
(g) un + 3 — = C1; series
(h) W« + 3 - 3«„+ 2 + 3n„+, — «„ = 0;
(i) 11 n + 2 — lC+ i - un -(- u„i-1 = 0. /(«„. X) = X UnXn
n=0
37.9. Express the solution of the initial-value problem is known as the generating function of the sequence.
un + 2 — 6u„+, + 13m„ = 0, u0 = 0, «i = 1> Thus, for example, if u„ = (— 1 )"/n\, then
in real form. cc (_!)"
f{un,x) = X —
37.10 Find the difference equation satisfied by n = 0 nl
u„ = A-2n + B-( —5)", which means that e“x is the generating function of
for all A and B.
The generating function of {un + 1} is
where
By taking the generating function of the equation, show
that un — 2a b
, A =
1 _ -1 0_
Deduce that
37.20. Show that the difference equation and confirm that the logistic equation appears to have
a 3-cycle for this value of a.
un + 2 + 2aun + l + bu„ = 0
can be expressed as 37.27. Find the fixed points of the difference equation
in the three cases (a) a = 9, (b) a = 4, (c) a = f. Discuss where C is any constant. This general solution includes
the stability of the fixed points in each case. closed form chaotic solutions. For example, if C = 1/ji,
then
37.28. Show that the special logistic equation
Probability
38 Contents
38.1 Introduction 666
38.2 Sample spaces, events, and probability 667
38.3 Sets and probability 669
38.4 Counting and combinations 673
38.5 Conditional probability 675
38.6 Independent events 677
38.7 Total probability 678
38.8 Bayes’ theorem 679
Problems 680
38.1 Introduction
An experiment or trial is described as random if the result or outcome
of the experiment is not predictable or contains uncertainty. The
theory of probability is essential in the modelling and analysis of
random experiments. In some aspects of life we expect and often
hope that situations we meet behave in a predictable or deterministic
manner. We expect water to freeze at 0°C under normal pressure:
we expect the sun to rise at the appropriate time each day. For
important safety reasons we expect an aircraft to have predictable
characteristics in a wide range of sometimes extreme situations.
However, the weather is largely unpredictable looking more than a
week into the future. The distinction between random and determin¬
istic has become less ‘certain’ in more recent times. Some physical
phenomena such as the weather can be modelled by deterministic
equations but still exhibit long-term, seemingly unpredictable, be¬
haviour. Such systems, which display what is known as chaos (see
Section 37.5 for a model difference equation with a chaotic output)
show extreme sensitivity to small initial changes. Chaos is distinct
from random behaviour but the outcome can show very similar
manifestations.
If an experiment can be repeated a large number of times then
we can measure the frequency of a particular outcome. This only
makes sense if the conditions surrounding the experiment do not
38.1 Probability 667
S = {H, T).
However, the sample space is countable, that is, the elements in the
sample space can be numbered. A sample space is said to be discrete
if it contains a finite or countably infinite set of outcomes. A list of
outcomes such as {2, 4, 6, 8,...} would be countably infinite.
A collection of elements satisfying a common requirement in a
sample space is known as an event. For a die the event could be the
appearance of a particular number, say 5, an odd number outcome,
or any number less than 5. These events are respectively the sets
they are subsets of the sample space, that is, in the notation of (34.3)
A £ S in each case.
As we mentioned in the introduction, the probability of an event
is the relative frequency that the event takes place in a large number
of repetitions of the experiment. The probability of an event A is
denoted by P(A). For the single spin of a coin we expect heads and
tails to be equally likely to occur. Thus
P(H) = |, P(T) = i
_ 4 _ 2
_ 6 ~ 3’
Example 38.1. Two coins are spun. What is the probability that at least one
head appears?
It is essential in the solution to distinguish the coins, as, say, a and b. Thus if
Ha is the event that coin a shows a head, Ta that a shows a tail, and so, then
the sample space has four elements:
which contains 3 of the 4 elements. Hence at least one head occurs with
probability P(A) = f.
Example 38.2. Two dice a and b are rolled. What are the elements of the
sample space? What is the probability that the sum of the face values of the two
dice is 8? What is the probability that at least one 5 appears?
We distinguish the outcome of each die so that there are 6 x 6 = 36 possible
outcomes for the pair. The sample space has 36 elements of the form where
i and j take all integer values 1, 2, 3, 4, 5, 6, and i is the outcome of die a and
j is the outcome of b. The full list is
(3, 1), (3, 2), (3,3), (3,4), (3, 5), (3, 6),
(4.1) , (4, 2), (4, 3), (4, 4), (4, 5), (4,6),
(5, 1), (5, 2), (5, 3), (5, 4), (5, 5), (5, 6),
(6, 1), (6, 2), (6, 3), (6, 4), (6, 5), (6, 6)},
and they are all equally likely. If At is the event that the sum of the dice is 8,
then from the table,
A, = {(2, 6), (3, 5), (4, 4), (5, 3), (6, 2)}
P(A ,) = £•
A2 = {(1, 5), (2, 5), (3, 5), (4, 5), (5, 1), (5, 2), (5, 3), (5, 4), (5, 5), (5, 6), (6, 5)},
P(A2) = £.
A3 = A1u A2,
670 38.3 Mathematical techniques
where
A, = {(2, 6), (3, 5), (4, 4), (5, 3), (6, 2)},
A2 = {(1, 5), (2, 5), (3, 5), (4, 5), (5, 1), (5, 2), (5, 3), (5, 4),
Example 38.3. Suppose that A, B, C are three events in the same space S.
Write down the sets which represent the events that: (a) A occurs, but B and C
do not', (b) A, B, and C all occur.
(a) The event that B or C occurs will be B u C. The event that neither B nor
C occurs will be the complement B u C. The required set will be the intersection
of this event and A, namely
A n (B u C).
A n (B n C),
exhaustive, and the sample space will be the union of these events:
S = d1u/t2U'-'Ud6.
Any union of events can be expressed in terms of the union of certain
mutually exclusive events. For example, the union A u B of two
events A and B can be partitioned into the mutually exclusive events
A n B, A n B, and A n B. Then
A u B = (A n B) u {A n B) u (A n B).
In another example, an event A in the sample space which also
contains B can be divided as
A = (A n B) u (A n B),
which can be interpreted as meaning that A can occur either with
B or without B.
Suppose the sample space is partitioned into the n mutually
exclusive and exhaustive events Au A2, If A is any event,
then
A = (A n Ax) u(/tn A2) u • • • u (A n An).
This means that, if A occurs, then it must occur as one, and only
one, of the events A\, A2,..., A„. It might happen that A n A,- = 0
for some intersections, but this does not matter.
Example 38.4. In Example 38.2, express the sample space S and the events
A i and A2 in set terms.
The sample space is given by
S = {(i,j) \i,j= 1,2, 3,4, 5, 6},
which has 36 elements since the dice are distinguishable and (i,j) is distinct from
(J, i). The events A1 and A2 can be written
A i = {(i,j)\i +j = 8},
A2 = {(i,j) | either i = 5 or j = 5 or both}.
Axioms of probability
P(0) — 0, P(S)= 1;
(c) for n mutally exclusive events A^ A2,..., A„,
P(A1uA2v---uAn)
= P(A1) + P(A2)+ ■ ■ ■ +P(A„).
672 38.3 Mathematical techniques
Example 38.5. Two dice are rolled. What is the probability that a total score
of 4 or 7 occurs?
Let Aj be the event of a score 4 and A2 be the event of a score 7. These cannot
occur together, so they must be mutually exclusive events. Hence by (38.1c) and
the complete list of outcomes in Example 38.2,
If two events Ax and A2 are not mutally exclusive then they must
have elements of the sample space in common. Using partitioning,
which was explained previously in this section, Au A2, and therefore
the union of Ax and A2 can be partitioned into unions of mutually
exclusive events. Thus
Geometrically the result can be seen from Fig. 38.2 in which the
intersection Ax n A2 is ‘counted twice’ in P(AX) + P(A2).
Example 38.6. // two dice are rolled, what is the probability that either the
sum is 8 or at least one 5 appears?
Fig. 38.2. As we saw in Example 38.2, if A, is the event that the sum is 8 and A2 the event
38.3 Probability 673
P(A2) =
These are not mutually exclusive events because both events occur when the
outcomes are {(5, 3)} or {(3, 5)}. Therefore
in which case
P(Al n A 2) = fe = i's •
Hence, by (38.5),
which means that the sum is 8 or at least one 5, appears with probability
nl
„Pr = n(n - 1 )(n - 2)- • •(« - r + 1) = --
(n — r)l
{ab, ac, ad, ba, be, bd, ca, cb, cd, da, db, dc}.
"R n\
C = - =-.
r! (n — r)!r!
ways.
Note that
nl nl
C =_=-
(n — r)lrl (n — (n — r))!(n — r)!
r — 11
it'-'O >
C
n^n
=
x1 •
Example 38.8. How many different 5-card hands can be dealt from a standard
deck with 52 cards? What is the probability that a hand dealt at random consists
of 5 spades?
This is a combination problem, not a permutation one. Thus there are
52! _ 52-51-50-49-48
2 598 960
47!5! 1■2•3-4-5
different hands.
The number of different hands consisting of 5 spades is, since there are 13
spades in the pack.
13! 13T2T1T0-9
1 3 C5 = 1287.
8!5! T-2-3-4-5
which implies that about one hand in 2000 will have 5 spades.
Example 38.9. A box contains 20 balls of which 7 are red(r), 5 are white(w)
and 8 are black(b) balls. If 3 balls are drawn at random, without replacement, find
the probability that
38.4 Probability 675
(a) two red balls and one black ball are drawn',
(b) one of each colour is drawn:
(c) one or more red balls are drawn:
(d) all are of the same colour.
N = 20C3 = 1140
C2 x 8 = — -8 = 168.
1-2
Hence
,,, 168 168 14
P(2r and 16) = — =-= — % 0.15.
N 1140 95
(b) The number of ways in which one of each colour can be chosen is
7 x 5 x 8 = 280 from a total of 1140. Hence
(c) The number of ways in which no red ball is drawn is 13C3 = 286 from the
total of 1140. Hence the probability that a selection contains at least one red
ball is
286 _ 854 _ 427
P(^lr) = 1 - P(0r) = 1
1140 ~ U40 “ 570
101
0.09.
H40
(number of outcomes in A n B)
P(A\B) = ---
(number of outcomes in B)
Fig. 38.3 (a) Both A and B
occur in the shaded intersection
(number of outcomes in A n 5)/(number of outcomes in S)
A n B. (b) P(A | B) refers to the
new universal set B. (number of outcomes in 5)/(number of outcomes in S)
676 38.5 Mathematical techniques
P(A n B)
(38.6)
P(A | B)
P(B)
Example 38.10. Six cards are dealt from a well-shuffled deck of playing cards.
Given that all six cards are black, find the probability that they are all of the same
suit.
Let A and B represent the following events:
Therefore
(number of combinations of 6 clubs or 6 spades)
P(A n B) = ------
(number of combinations of 6 cards)
2'13^6
52^6
Also
(number of combinations of 6 black cards) 26^6
P(B) = ---
(number of combinations of 6 cards) 5 2^6
Hence the conditional probability that they are all of the same black suit is
? 13! 6!20! _ 12
% 0.015.
" 6!7! ~26!~ 805
(i) P(A | A) — 1.
(ii) P{A | B)P{B) — P(B | A)P(A).
Example 38.1 1. A production line is supplied with the same component made
by two different machines M, and M2. It is known from samples of the outputs
that the probability that a component from is not faulty is 0.91 and from M2
is 0.85. Machine supplied 60% of the components and machine M2 40%.
Components are chosen at random and tested before the next stage of production.
What is the probability that
From the 60%/40% supply we know that P(/t,) = 0.6 and that P(A2) = 0.4. The
known failure rates in M, and M, give the conditional probabilities P(B\ T,) = 0.91
and P(B\A2) = 0.85.
(a) The answer is P(B \ A2) = 0.85.
(b) Write the event Bas (Bn/t,)u (B n A2) which is still the event that the
component is not faulty. Since B n A, and B n A2 are mutually exclusive, it
follows that
= P(B\Al)P(A1) + P(B\A2)P(A2)
P Example 38.1 2. Figure 38.4 shows parts of two circuits which contain electri¬
r-r~l cal components P, Q, and R placed in parallel and series. For the parallel case
Q the circuit fails if all three components fail, but in the series case failure occurs if
H q h-
just one component fails. In some time interval the probabilities of failure of P, Q,
_R
and R are respectively p, q, and r. What are the probabilities of circuit breakdown
(a) in the two cases?
Let A, B, and C be the events
P Q R
= p + P(B u C) — P(A)P(B u C)
= P + (1 ~ P)(q + r - qr)
Then
Also
Hence the probability that the second component draw is red is 8/21, which is
the same as P(AX). This suggests (correctly) that the probability that the second
ball is red does not depend on the colour of the first ball.
The first solution was selection without replacement. In the second part of
the question the components are replaced. In this case P(B) = fp in other words,
with or without replacement, the probability that the second component is red
is still 8/21.
Bayes’ theorem
For mutually exclusive events A{ and A2
(38.13)
PtflAJPiAJ
PiBlA^PiA i) + P{B\A2)P{A2)
A, = {component faulty},
Then
PM,) = 0.04, P(A2) = 0.96, P(B | /4() = 0.90, P(B | X2) = 0.02.
We require the probability that the component is faulty given that the test
recorded faulty, that is, P(A1 \B). By Bayes’ theorem (38.13)
P{B\A,)P{A,)
P(At | B) =
P(B\Al)P(A1) + P(B\A2)P(A2)
Problems
38.1. How many elements do the following sample spaces the sum of the face values is 7? What is the probability
contain: that no 5 appears? What is the probability that the score
is 7 or less?
(a) the spinning of 5 coins;
(b) the rolling of 3 dice;
38.3. Two dice are rolled and the scores noted. Write
(c) a coin and a die randomly thrown together;
down the elements in the sample space. How many
(d) a dart thrown at a dartboard.
elements does the set have? Let A denote the event {the
sum of the outcomes is 5}, and B denote the event {at
38.2. Two dice are rolled. What is the probability that least one die shows 4}.
Problems 681
Express the sets of these events in formula terms. 38.13. Prove that
List all the elements in A, B, A u B, and A n B.
n — 1 Cr T lCr_ ! = nCr.
38.4. Suppose that A, B, and C are three events of the 38.14. Prove that
sample space S. Write down the set formulae for the
n
events:
(a) only B occurs, (a) X nCr = r,
r=0
(b) exactly one of A, B, or C occurs.
Fig. 38.6
38.20. Figure 38.6 shows part of a circuit with 6 compon¬ of winning in each case. A seventh bonus ball is also
ents in a parallel and series combination. The probabili¬ drawn from the remaining 43 balls and further prizes are
ties of failures of components are pu p2, p3, q, ru and r2 given for those who correctly choose the bonus ball and
as shown and are independent. What is the probability any 5 of the 6 drawn numbers. Find the probability of
that this part of the circuit fails? If all components have winning in this case. What is the overall probability that
the same probability of failure of 0.98, what is the a lottery ticket wins at least one prize?
probability that this part of the circuit fails?
38.23. A game is played in which n players each spins a
38.21. It is known that in a batch of 100 microprocessors,
coin and the outcome examined. The game continues
5 are defective.
until the outcome is either n — 1 heads and 1 tail, or 1
(a) A microprocessor is chosen at random without
head and n — 1 tails. The single player with the different
replacement. What is the probability that it is defective?
outcome wins the coins from the other players. Show
(b) Two are chosen at random without replacement.
that the probability that the game ends at a given play
What is the probability that both are defective?
is n/2"-1, and that the probability that the game finishes
(c) Two are chosen without replacement. Given that the
at the ith play is given by the geometric distribution
first is defective, what is the probability that the second
is also defective?
*; = Xi X2 x3 •••
■■■
11
p1 P2 Pi
For the coin spun three times in Section 39.1, the distribution
would be
X; = 0 12 3
13 3 1
Pi~ 8 8 8 8
Pi = P(X = xj = | = y,
*; = 1 2 3 4 5
1 4 1 2 1
Pi- 3 15 5 15 15
0 1
X
II
Pi = q p
686 39.3 Mathematical techniques
x, = i, (i = 0,1,2, ...,n).
1 1 1 • • • 1 000 • • • 0.
i times n — i times
p‘qn~l.
However there are many sequences which have i successes (1) and
n - i failures (0), and the number of possible arrangements is „Q
(see Section 38.4 for an explanation of the combination notation).
Including every arrangement, the probability of i success in n trials is
nQpY-1,
since the probability of a success followed by another success is
p x p = p2, and so on. This is called the binomial distribution for
X, the random variable of the number of successes in n trials.
(i = 0, 1, 2,-n).
Xi = 0 12 3
which are recognizably the first few terms in the binomial expansion
of (p + q)n (see Appendix A(c)). Hence
39.3 Random variables and probability distributions 687
2k " n\p'qn 1
LPi=L 7 = (p + q)n= 1,
i=o i = 0{n — i)U\
Example 39.2. Three dice are rolled simultaneously. What is the probability
that two 5s appear with the third face showing a different number?
Let the random variable X be the number of 5s which appear. Then
S,-{0,1,2, 3}.
The outcomes from each die are independent with a 5 showing called a success
and no 5 showing a failure. The probability that a single die shows a 5 is f
Hence X has a binomial distribution with parameters n = 3 and p = f Hence,
by (39.1),
P(X = 2) = 3C,a)2(f) = ff-e ~ 0.069,
which is quite small. The other probabilities are
P(X = 0) = iff w 0.579, P(X = 1) = ~ 0.347, P(X = 3) = jf* « 0.005.
The odds for obtaining three 5s are 1 in 216.
£(V) = yPix,
Fig. 39.3 Binomial distribution i
for n = 10 and (a) p = 0.3,
where the summation is over all i, either finite or (39.3)
(b) p = 0.5, (c) p = 0.7.
countably infinite.
The symbol p is often used for the expected value
E(X).
EOO = f Ap‘q"~‘i
i=0
n\plqn~l " (n - l)!pi_y_1'
- I = np I
t=i («-/)!(/-!)! ; = i (n - i)\(i - 1)!
-^(n-DIpV1-1 , ,
= np L “7-:-T7q- = nP(P + <l)
i=o (n - 1 - i)!i!
= np,
using the binomial expansion (Appendix A(c)).
688 39.4 Mathematical techniques
Example 39.3. In Example 39.2 what is the expected value of the number of 5s
which appear when 3 dice are rolledl
From the definition of expected value and the results in the previous example,
3 125 „ 75 15 1 108 1
E(X) = X P(x = 0i = —*0 + 1 H-■ 2 H-■ 3 —-—.
i= 0 216 216 216 216 216 2
This result checks with np = § = i-
Random variables can be combined as in X + Y, and it is possible
to consider functions of random variables g(X). Expected values
satisfy the following theorems (which will not be proved here,
however). If c is a constant, and X and Y are random variables, and
g(X) is a function of X, then
= E(X) - E(X) 1 = 0,
which is obviously not helpful as a measure of spread. Instead we
choose the random variable (X — E(X))2. Its expected value is
known as the variance and denoted by:
Since the units associated with the variance are squares, the
symbol o2 is frequently used for variance so that in ‘linear’ terms
the spread can be defined by o — •s/Var(X). This is known as
(j = yVar(Z)- (39.7)
Example 39.4. Find the variance of the binomial distribution given by (39.2).
Using (39.2) and (39.4) (iv)
" i-n\piqn~i ,
= )-P ■
i=i (« — 0!0' — D!
As a device for summing the series we assume that p and q are independent
parameters, and use formula E(X) = np(p + ij)"_1 for the expected value of the
binomial distribution. Thus
£ i-n\piqn~i 2_ d f ^ n\piqn'i \ 2
= p^(E(X))-p2,
dp
= P~ (nplp + qy-^-p2,
dp
= np( 1 - p).
in the number of trials up to and including the first success. Call this
random variabie X, and let X = i correspond to the sequence
0 0 0 • • • 0 1'.
/ — 1 times
Note that
cc p
Z Pi pZy"1=p(1 + i + <i2 + "') = .— =l’
using the formula for the sum of a geometric series (see Section 1.13).
A bar chart of a geometric distribution with p = 0.2 is shown in
Fig. 39.4.
The expected value of the random variable of the geometric
distribution is
OO OO
= p{ 1 + 2q + 3 q~ + • • •)
Fig. 39.4 Geometric
= p[(l + q + q~ + • • •) + q(l + 2q + 3q2 + • • •)]
distribution with p = 0.2.
- + qp = 1 + qp
1 - q
Hence
1
2
a
Let X be the random variable of the number of tests up to and including the
first success. We are actually interested in a random variable which is a function
of X, namely the cost C(W) which is given by
C(X) = 500X + 200(X - 1) = 700- 200.
Thus C(l) = 500, C(2) = 1200, C(3) = 1900, etc. Using (39.2), the expected value
of C{X) is
700 700
- 200 < 2000 or — < 2200.
P P
I P» = I = e_yl eA = 1,
n=0 n=0 ft
using the power series for eA (see Equ. (5.4a)). This is known as the
Poisson distribution with parameter X. It occurs in problems in which
discrete data accumulate, such as, for example, in the Geiger counter
which records the number of radioactive particles which hit the
instrument from a radioactive source. The distribution is appropri¬
ate for data arriving in a sequential random manner.
The Poisson distribution has mean
n ~ —A
ft/ e 2"e
n =0 ^• n= 1 (n -1)!
CO ;« p -A 00 Xn
e"x
a I , = /
« =oI G
n!
=
variance is
OO
\ ntv2\ ,,2 _ V
n2X" e~
n= 1 n!
I — — x2 = e-A2 — [2 eA] — X2
n=i(n-l)\ d2
= X e A(eA + X eA) — X X.
692 39.6 Mathematical techniques
Now let n oo. The term in the square brackets approaches X'/il
as n —>• oo, whilst
Example 39.6. Certain processors are known to have a failure rate of 1.2%.
They are shipped in batches of 150. What is the probability that a batch has
exactly one defective processor? What is the probability that it has two?
We assume that the defects are independent. We use the binomial distribution
with probability
with n — 150 and p — 0.012 (failure of the component is ‘success’ in the binomial
convention). Hence for i = 1, 2, a direct calculation gives
X _,
— e A = 1.8 e 18 = 0.297 538,
1!
39.6 Random variables and probability distributions 693
0.267 784,
which show accuracy to 2 decimal places compared with the binomial distribu¬
tion. This is more than sufficient in many applications. The Poisson approxima¬
tion avoids the rounding errors which can occur in calculating probabilities
raised to large powers.
k 2 k{\ - p)
P = ~, =--—.
P P
c bc '-'n -1
P(X = i) - Pi
r
w + b'-'n
where
0, 1, 2,..., n if n ^ w,
0, 1,2,..., w if n > w.
nb 2 nwb(b + w + n)
^ w + b' (w + b)2(w + b — 1)
F(x)
It represents the probability that X ^ x. By (39.10b) it follows that
F(x) -> 1 as x -> co,
and
Fig. 39.6 Cumulative A typical cdf, which must be a non-decreasing function, is shown in
distribution function. Fig. 39.6.
39.8 Random variables and probability distributions 695
Example 39.7. Let X be the random variable of time to failure of a light bulb
measured from time t = 0. Assume that X has a pdf
t ^ 0
m t <0,
where t is measured in hours. What is the probability that the bulb has failed
at t = 10 hours'? What is the probability that the light bulb fails between t = 10
hours and t = 20 hours'?
Note that /(f) is a pdf since /(f) ^ 0 and
r io
P(X ^ 10) = a e 31 dt = [ —e3']o° = 1 — e - 10a
’ 20
20
P(10 sS X < 20) = e-3' df [-3 10
J 10
Thus the light bulb fails before 10 hours with probability 1 — e“ 103, and between
10 hours and 20 hours with probability e~103(l — e-103).
ot e dw = 1 x ^ 0;
Fix) =
0, x < 0.
(x - n)2f(x) dx.
fa e_at, t ^ 0,
m = k
its mean or expected value is
M = tf(t) dr = at e at dr,
00 d
r — (e aI) dr,
o dr
0+ e dr = -.
1
<x2 =
1 (39.13)
/ (x) — —— e 2a1 , — oo < x < oo.
o^/2n
f(x) dx = 1,
J — 00
xf(x) dx — n.
Fig. 39.7 A normal
distribution.
x2/(x) dx = cr2.
J -8
The normal distribution N(^,(j2) is a two-parameter distribution
with its mean and standard deviation as parameters.
The standardized normal distribution is N(0, 1) with pdf
1 f1
P(-l < Z < 1) = — e~>z dz = 0.6827,
yj K2 J—1
Fig. 39.8 The standard normal
but numerical integration is required to evaluate this integral.
curve.
Tables of standard normal distributions can also be used to estimate
the answer (see Appendix G).
Similarly
P(-2 ^ Z ^ 2) = dz = 0.9545,
n J
The last result implies that there is a 99.73% chance that a selected
698 39.9 Mathematical techniques
item lies within 3 standard deviations of the mean for the standardized
normal distribution.
The importance of the normal distribution lies in the observation
that in many measurements, which almost always involve random
experimental errors, the distribution of the errors seems to be normal
(see Section 43.3).
The cdf for the standardized normal distribution N(0, 1) is
Example 39.8. The mean height of 459 university students is 180 cm with a
standard deviation of 4.2 cm. Assuming that the heights are normally distributed
estimate the number of students who have heights greater than 200 cm, and the
number who have heights between 175 cm and 185 cm.
For this sample /<= 180 and <7 = 4.2. Hence the normal distribution 1V(180, 17.64)
is given by
x — 180
~Tt64~
approximately (this can be read either from Fig. 39.8, or by using tables). Hence
around 0.13 x 459 % 59 students will have heights in excess of 200 cm similarly
if x = 195, then z = —0.28, and if x = 185 then z = 0.28. Thus
approximately. Hence it expected that about 101 students will have heights
between 175 cm and 185 cm.
Problems
39.1. A biased coin is spun three times. The probability 39.2. Explain why the sequence
of a head appearing is 0.45 and of a tail 0.55. If X is the
random variable of the number of heads shown, what is
the sample space of XI What is the probability distri¬ U = 1, 2, 3,...)
bution of XI
Sketch a bar chart showing the probability distribution.
What is the probability that X is greater than or equal
can be interpreted as a probability distribution. If
to 1, that is P(X > 1)7
P(X = j) = Pj find P(X ^ 6).
Random variables and probability distributions 699
39.3. The probability of success in a sequence of inde¬ What is the probability that an individual bottle fails the
pendent Bernoulli trials is / If 12 trials take place weight test?
calculate the probabilities of 0. 1.12 successes. Cal¬
culate also the mean and standard deviation of the 39.10. Suppose that the random variable X has the
random variable which is the number of successes. exponential distribution with pdf
39.4. The uniform distribution has the pdf 1.5 e-1,5', t^0.
Pi = p(x = i) -= r _ j )pro -prr 39.13. The random variable Z has a standardized normal
distribution. Estimate the following probabilities:
for i = r,r + 1, r + 2,.... This is the negative binomial (a) P(Z ^ 0.8); (b) P(Z ^ 0.7); (c) P(-0.5 Z ^ 0.8).
distribution. Confirm that
39.14. A particular repetitive operation on a production
line has a uniform distribution (see Problem 39.4) pdf
X Pi = 1 •
/(f) = 0.1 for 33 < t < 43, where time is measured in
seconds. What are the mean time and variance of the
Show that operation? On average what proportion of operations
take longer than 40 seconds.
r r( 1 - p)
E(X) = -, Var(20 =-
P P 39.15. It is required in an application that
39.9. In a milk-bottling plant bottles are filled with milk A(a2 — f2) —a ^ t =$ a
and their weights checked. If a bottle is underweight or 0 elsewhere
more than 4"u overweight the production line is stopped
and the problem investigated. Assume that a bottle fails should be a pdf. What should the parameter A be in
randomly with the same probability p. What would be terms of a! Find the variance of the distribution. What
an appropriate distribution for this problem? On average should A and a be for the distribution to have a standard
it is found that breakdown occurs every 1503 bottles. deviation of 1?
700 Mathematical techniques
39.16. The time to failure of catalytic converters in 39.17. The random variable of the time to failure in a
exhaust systems of cars is modelled by a normal random batch of light bulbs is assumed to be exponentially
variable with mean of 1200 hours. If 95°,, of the converters distributed with mean time to failure of 500 hours. What
are to last at least 1000 hours without failure, what is is the probability that a light bulb is still functioning after
the maximum value which the standard deviation of the 640 hours? A room is lit by 4 light bulbs which are not
normal distribution can take? replaced as they fail. What is the probability that just 2
bulbs will still be working at 640 hours?
Descriptive statistics
Contents
40.1 Representing data 701
40.2 Random samples and sampling distributions 705
40.3 Sample mean and variance, and their estimation 707
40.4 Central limit theorem 708
40.5 Regression 710
Problems 713
Table 40.1
00:00-02:00 6
02:00-04:00 4
04:00-06:00 9
06:00-08:00 21
06:00-10:00 24
10:00-12:00 15
12:00-14:00 16
14:00-16:00 18
16:00-18:00 29
18:00-20:00 20
20:00-22:00 16
22:00-24:00 10
number of intervals should not be too large for the data. A working
rule is that the number of intervals should roughly increase like yjn,
where n is the number of observations. In the example above there
are 188 observed vehicles which according to the rule suggests about
14 intervals which is close to our choice of 12.
Here is another example. A ‘snapshot’ of vehicles on a short
stretch of road is taken at the same time on the same day of the
week for a sample of days. Table 40.2 shows a frequency table of
the number of cars. The histogram is shown in Fig. 40.2. The sample
mean x of n observations {x;}, where x; occurs with frequency f is
given by
- I"= 1 fXi
x = =--,
B-, f,
Table 40.2
0 12
1 15
2 13
3 8
4 5
5 3
6 2
7 1
59
1 "
x = - Z Xh
n i= i
Examination marks: 31, 36, 38, 39, 45, 46, 57, 60, 65, 65, 69, 72, 75, 79
Table 40.3
of the marks in each paper. Thus the medians are 59.5 for Paper 1,
61 for Paper 2 and 56 for Paper 3.
Suppose that the data contain 2n observations. Then the first
quartile is the median of the n smallest observations, and the third
quartile the median of the n largest observations. If the data contain
2n + 1 observations then the first quartile is the median of the n + 1
smallest observations and the third quartile the median of the n + 1
largest observations. (The second quartile is the median.) The
quartiles divide the observations into four approximately equal
numbers of observations.
For the examination marks paper by paper the quartiles are given
in Table 40.4. The difference between the third and first quartiles is
Table 40.4
100
75
50
25
n\p‘( 1 - p)n~‘
O' = 1, 2,..., n).
(n — i)\i\
The mean of the binomial distribution, which is the mean number
of yes votes, is np.
We can estimate p from each poll. Since the mean for the binomial
distribution is np, it seems reasonable to estimate p as X/n. We shall
denote an estimator for p from a sample by p. The value of a random
variable is known as an estimate. The symbol p is used for both the
random variable and its value.
One test of whether we are looking at an appropriate measure of
the probability p is the behaviour of the expected value of p. Thus
np
E(p) = E(X/n) = 1 £(*) = — = P,
n n
since we are assuming a binomial distribution. Hence the expected
value of the estimates gives the probability p, the mean of the
sampling distribution of p. Generally, if the expected value of the
estimate equals the parameter being estimated, then the estimate is
called unbiased: if this is not the case then the estimate is called biased.
The spread of the estimate can be found by calculating the
expected value £[(p — p)2]. Then
Var[p] = Var -
n
Var[p] =
m-P) 0.56 x 0.44
-« 0.005.
n 500
n i= i
What is the relation between the sample mean and the mean of
the population? The expected value of X is
(\ « \ l » l
E(X) = £ - E *< = - Z £(^) = -m = E-
\ni=i J «; = i n
As we might expect, the expected value of the sample mean is the
same as the mean of the population.
The variance of the sample mean is, by (39.6),
(40.4)
n
708 40.3 Mathematical techniques
£ (Xt - X)2
t = \-.
1 "
E{T2) = E -Y & - *)2
n i= i
1 "
= E -1
n i= i
l(Xi -H)-{X-
1 "
= E - I [(*i - E)2 - 2(Xt - fi)(X -n) + (X
n i= i
1
(Xt - v)2 - n(X - !i)2
n
, - , a2 n — 1
= a2 - Var(X) = a2-= —
n n
using (40.4) in the last line. In other words the expected value of
the sample variance is not an unbiased estimator of the variance of
the sampling distribution: there is a correction factor of (n — 1 )/n.
A better statistic for an unbiased estimator of the variance is:
S2_Zi-,(x,-x)2 (40.5)
n — 1
(eq. (39.10)):
f(x) = - — e (x ^2i2aZ _
(Xy/2n
The central limit theorem (which will not be proved here) states that
if random samples are taken from a distribution with mean /< and
standard deviation er, then the sampling distribution of the random
variable X of the sample mean will be normally distributed with
mean p and standard deviation a/y/n as n -*■ oo whatever the
original distribution of the Xt. Analytically this can be expressed as:
(40.6)
lim
n -* oo
_ 1 3
2 5
3 7
4 9
5 11 6
Average score 2 2 2 2 6
O 12 3 4 5 6 1 2 3 4 5 6 7 8 9 10 11
(b) Average score Probabilities 36 36 36 36 56 36 36 36 36 36 36
Probability
O 1 2 3 4 5 6 Example 40.2. A die is rolled 6000 times. The number T of times face 1 appears
(c) Average score is counted. Find ml and m2 in P(m{ < T < m2) in order that T should lie within
one standard deviation of its mean value 1000.
Fig. 40.4 Probabilities versus Let X be the random variable that one appears face up on the die. Then
average scores for the rolling 2, E(X) = f Its variance is given by
4, and 6 dice
= Var(X) = E(X2) - E(X)2 = l - £ = 4L-
710 40.4 Mathematical techniques
/ 7- 6000 - <12
kx ^ —— ^ k? e *“2 du,
75
^^6000
7^ <ti
V
or
1 *2
e *“2 du.
7^
Hence by the normal distribution table (Appendix G)
/q =-0.8413, k2 = 0.8413.
Hence
m2 x 1024.
40.5 Regression
Suppose that we have a set of data in which one quantity is measured
in relation to another quantity. For example, the fuel consumption
of a car will vary with the speed of the car, or the weight of an
individual will vary with the hpight of the person. We may wish to
speculate as to what the relationship is between two (or more)
quantities.
Suppose that a sample of measurements is taken (for example,
fuel consumption (y) for different speeds (x)of a car. This leads to
the paired data (xl5 yt), (x2, y2), ■ • ■, (*„, y„), in which one or both
variables may contain random errors. We can obtain an idea of the
likely relationship between x and y by plotting the coordinates
(x;, y,) as points in rectangular cartesian coordinates, giving what
is known as a scatter diagram. Some examples are shown in Fig.
40.5. If we fit a curve to the data shown in the scatter diagrams,
then we might guess a straight line fit to the data in Fig. 40.4a, and a
curve in Fig. 40.5b, whereas in Fig. 40.5c, which shows data centred
around a point, we might feel that no relationship exists between the
variables. Often in scientific experiments the relationship between
the variables can be inferred from some underlying theory although
parameters may be unknown. For example, it might be known that
the formula relating x and y is linear so that we need to find the
best straight line fit to the data. For others we might need to guess
the likely shape of the curve from the scatter of the data as in
X
Fig. 40.5b.
(c)
In some data sets there can be errors in both measurements. In
Fig. 40.5 Scatter diagrams. others, one variable known as the controlled or independent variable
40.5 Descriptive statistics 71 1
= yt - (axi + b).
We use the method of least squares for the sum of the squares of
the deviations which requires the minimum of
(see Section 27.7 for a full derivation of a and b). The minimum
occurs where df/da = df/8b = 0 and, as in (27.10), the best straight
line fit is given by the solution of
n n n
a Z
i= 1
x? + Z
b
i=l
xt = iX = 1
Wh
n n
a X Xi + bn= X Yi-
i= 1 i=l
b = y — dx,
. ZUiXiYi-nxy
U 'D=lx?~nx2'
where (40.7)
n
1 1 ”
x =
n i
Z x,
= 1
y = Z yt-
n i= i
y — ax + b.
E(d) = E
‘Z?=i xtf-nxY
L Z?=1x?-«x2 J
= E[Z"=i xi(axi + b + £j) + xYj= 1 (aXj -f b + £,.)]
Z?= i x‘ -nx
1 "
= - Z (axi + b) — xa
n ;= 1
= ax + b — xa = b.
Problems
40.1. Find the mean, median, first and third quartiles, 40.5. In an experiment 127 observations are taken which
and the interquartile range of the following two data sets: can be assigned to a maximum of 36 intervals. If you
(a) 10, 11, 11, 15, 17, 20, 25, 25, 27, 30, 38, 42, 47; wish to display the data in a histogram, what would be
(b) 5, 12, 15, 16, 20, 29, 29, 32, 39, 44. a suitable number of intervals to use?
Draw box plots for both sets of data.
40.6. A random variable X has a uniform distribution
40.2. In a university degree examination with four papers (see Problem 39.4) with pdf
each taken by 20 candidates the percentage marks are
as shown in Table 40.6. Draw comparable box plots for 1, 1 < x ^ 2;
the results. 0, otherwise.
Table 40.6 A random sample of size 35 is taken. Find the mean and
estimate the variance of the sample. What can you say
Examination marks (0-100) about the distribution of the sample mean?
Paper 1 24,27,27, 30,40.42,48, 55, 58, 60, 61, 63, 64, 40.7. A random sample is taken from a population
66, 66, 68, 69, 72, 78, 85 which has mean p and variance a2. The sample values are
Paper 2 30,35,36,38,39,40,44,45,48,51,54,58,61, 9.71, 10.26, 9.80, 9.85, 9.99, 10.10, 9.79.
64, 65, 65, 69, 70, 81, 90
Paper 3 26,29, 30, 35, 36, 37,46,48,49,49, 50, 54, 56, Estimate the sample mean and the same variance, a2.
61, 69, 70, 71, 71, 72, 74
Paper 4 10,20,22, 34,41. 44,45,45.45, 50, 55, 55, 55, 40.8. A die is thrown 9000 times, and the number of
56, 64, 65, 66, 70, 85, 91 times face one appears is recorded. If T is the random
variable for the number of ones in 9000 throws, calculate
k1 and k2 such that
40.3. Samples of packets of crisps are weighed at the end
of a manufacturing process. Packets have to contain a 1 P2 . 2
P(1460 < T < 1540) = —= e** dx.
minimum of 25 g. The sample weights are ^/in J fc j
25.1, 25.3, 25.0, 25.7, 25.3, 25.2, 25.1, 25.5, 25.7, 25.1.
40.9. Fuel consumption figures for standard urban
Calculate the sample mean, mode, and standard deviation. cycles of a selection of cars together with their weights
are given in Table 40.8. Find the least squares estimator
40.4. In a continuous production process a machine cuts
pipes into nominal lengths of 10 metres. The actual
Table 40.8
lengths in a production run are given in the Table 40.7.
Draw a histogram over (a) 10 intervals of width 0.1
Vehicle Weight, w (kg) Fuel consumption, c (km/litre)
metres, (b) 5 intervals of width 0.2 metres. Add a
frequency polygon to both histograms.
A 2100 4.96
Table 40.7 B 1350 9.10
C 1008 12.04
Length Frequency Length Frequency D 1323 7.68
interval of pipes interval of pipes E 710 15.15
F 1215 10.98
9.5s$x< 9.6 1 lO.OsSxclO.l 21 G 1436 7.75
9.6^x< 9.7 4 10.1 <x< 10.2 15 H 1561 8.25
9.7^x< 9.8 5 10.2^x< 10.3 11 I 2120 4.85
9.8^x< 9.9 12 10.3 <x< 10.4 5 J 1975 4.64
9.9^x< 10.0 20 10.4^x< 10.5 2 K 1535 5.56
714 Mathematical techniques
for a regression line of fuel consumption (c) on weight where = axt + t>. Estimate the variance of the regres¬
(w). sion line.
An unbiased estimator for the variance in linear One point is some distance from the regression
regression is given by line (such rogue values are known as outliers). If
this particular vehicle is excluded from the data
v (yt - Pi)2 how are the regression line and the estimated variance
i=i n—2 affected?
PART VIII
Applications projects
using symbolic
computing
Contents
41.1 Symbolic computation 715
41.2 Projects 716
41.2 Projects
The following projects are listed by chapter. They are selective
samples of problems and do not cover every topic in the book. The
intention is that they can be approached using mainly built-in
Mathematica commands: very few problems require programming
in Mathematica. It is generally inadvisable to attempt these problems
by hand, since many could involve a great deal of manipulation,
although some projects are prompted by examples and problems in
the relevant chapters. Some commands which might be used for the
projects are listed in the Answers to Selected Problems, p. 747,
together with sample programs and outputs for selected projects.
It is worth emphasizing that computer algebra systems usually
generate outputs or answers without explanation of how the outputs
were arrived at, unless the programming within them is investigated.
Outputs can go wrong for many mathematical reasons. For example,
a curve can oscillate too frequently for the built-in point spacing to
detect, which can result in a false graph. This can be corrected by
increasing the number of plot points, but the potential difficulty has
to be recognized at the formulation stage. Symbolic computation is
not a substitute for understanding mathematical techniques.
Mathematica notebooks for each project are available on the
web at
http://www.keele.ac.uk/depts/ma/mathtech/
or on disk, both in PC versions. Mathematica version 2.2.3 at least
is required. Enquiries about the disk should be directed to
Department of Mathematics, Keele University, Keele, Staffordshire
ST5 5BG, UK. (Email: [email protected])
Chapter 1
1. Draw the graphs of y = x3, y = (x - l)3, y - 1 = x3, y - 1 =
(x — l)3 for -1.5 2.5. How do they differ?
2. (a) Plot the points (n, n2 + 1) for n = 1,2, 3,4, 5.
(b) Plot the points in (a) but with successive points joined by straight
lines.
(c) Plot y = x2 between x = 0 and x = 5.
(d) Show the curves from (b) and (c) on the same graph.
3. Plot curves defined by the following relations between x and y.
(a) x2 + 3y2 = 4; -2 ^ x < 2;
(b) x2 + 2y2 - xy + 2y = 4; -3<x^3;
(c) x4 + 2y2 - xy - 2x2y = 4; -2<x<3.
Applications projects using symbolic computing 717
5. Define the Heaviside function H(f) and the signum function sgn f.
Plot graphs of the following functions on — 4 ^ t < 4:
(a) H(t); (b) sgn t; (c) H(f) + H(-r); (d) sgn(sin t).
7. Express
1
(x — 1 )(x — 2)(x — 3)(x — 4)(x — 5)
in partial fractions.
Chapter 2
1. Define the function
. x sin x — 1 + cos x
fix) = — - -.
sin 2x + 2 — 2 e*
Find limv^0 /(x). Plot the function for — 0.5 ^ x ^ —0.001 and for
0.001 ^ x ^ 0.5, and check graphically that this agrees with the
limit.
fix) = X2(x2 - 3)
718 Mathematical techniques
Chapter 3
1. Display rules for the derivatives of the following general forms:
(a) f(x)g(x); (b) f(x)/g(x); (c) f(g(x)); (d) f(x)g(x)h(x);
(e) f(x)g(x)/h(x); (f) f(h(x))/h(x).
3. If
x2 + 2y2 - xy — 2yx2 = 4,
find dy/dx as a function of x and y.
Chapter 4
1. Display rules for the first and second derivatives with respect to
x of the following general forms:
(a) /(x2); (b) /(sinx); (c) /(sin(x2)).
/(*»)
Chapter 5
1. Obtain formulas for the Taylor polynomials for the following
functions centred at x = a as far as (x — a)3:
(a) /(x); (b) [/(x)]2; (c) f(x)g(x); (c) e/(x). State the coeffi¬
cient of (x — a)2 in each case.
Chapter 6
1. Solve, for the complex number a, the equation z = 0 where
. _ (2 + 3j)4 | (a - 2j)
(l-5j)3 (1 + 5j)4
3. Find the 13 roots ofz13 = 1 + j, and plot the roots on the Argand
diagram.
Chapter 7
1. Let
" 1 2 3 4" " 1 0 -1 0“
-2 3 —4 1 1 -2 1 2
, B —
3 4 1 2 -3 1 -3 1
_ 4 -1 2 3_ _ 2 1 2 1_
"3121"
P P 12
C =
1-2-3 2
_2 1 0 -1 _
1 Xj x\
1 x2 x\
-1 *3 A-
(see Problem 7.18). Find the equation of the parabola of the form
y = a + bx + cx2 through the points (-1,-2), (i, — 1), and (f,2).
3. Let
“i i i i“
3 3 6 6
1 i 1 i
. 4 2 8 8
A =
113 1
8 4 8 4
1 1 1 1
L 2 6 6 6 -1
Find A2, A4, A8, A16. How do you expect An to behave as n —> oo?
Chapter 8
1. Let
2 1 a 2
3 a 14
-10 a 2
is zero.
Chapter 9
1. Plot the curve which has the position vector
r — (2 cos t)i + (2 sin t)j + 0.3tk
from f = 0 to t = 20. What is the curve called? The position vector
represents a particle moving along the curve. Find the velocity
vector r and the acceleration vector r of the particle. Show that
r • f = 0.
2. Plot the trefoil knot given parametrically by
r = (1 + a cos 3f)(cos 2ti + sin 2tj) + a sin 3f k
with a ~ 0.25 and 0 < t ^2n.
Chapter JO
1. Show that
~ _2~312 2~112 2_3/231/2_
_ 2_131/2 0 2_1
defines a rotation of axes. If each row defines the direction of the
X, Y, Z axes in the x, y, z frame, find the equation of the line
x + 2y — 2z = 1 in the new axes.
Chapter 7 7
1. The area of a triangle whose vertices are the points with position
vectors a, b, and c is given by the formula
%\b x c + c x a + a x b\.
Devise a program based on this formula to determine the area for
general vertices. What is the area if a = (1,0, 1), b = (2, — 1, 1), and
c = (1,1,2)? Plot a diagram showing the triangle.
722 Mathematical techniques
Chapter 12
1. Use a row-reduction routine to solve the linear equations
x + 2y — 3z = q,
2x + py + z = — 1,
x - 2y - z = 4,
where p and q are two parameters. Determine for what values for
p and q, (a) the equations have a unique solution, (b) no solution,
(c) an infinite set of solutions.
— *1 + *2 - x3 + X4 = -1,
Xj + 2x2 + 1 1x3 = 4,
— Xj 4- 2x2 + 3x3 + x4 = 3,
Chapter 13
l. Find the eigenvalues and eigenvectors of
-61 2 0 “
10-3-1
A =
2 1-6 0
-2 2 0 —3 _
How many linearly independent eigenvectors does A have?
Find the eigenvalues of the following matrices:
(a) A~1; (b) A2; (c) A + kl.
Applications projects using symbolic computing 723
(\ 2 l\
A = 2 1 1
\1 12/
Construct a matrix C of eigenvectors and confirm that
A = CDC~l,
An = CDnC~1.
' 1 2 2
A = $ 2 1 -2
2 -2 1
and verify that A is an orthogonal matrix. Find the eigenvalues of
A. What expected property do they have?
5 5-6 2"
-3 13 -6 2
A =
-3 7 0 2
3 -15 12 2_
Chapter 14
1. Plot the graphs of the derivative dy/dx = sin 2x and the equation
of the curve through (rc, — 1) of which this is the derivative (see
Example 12.7).
dy ,
— = x e x 4- sin x — x cos 2x,
dx
Chapter 15
1. Set up a program to compute the area under the curve y = f(x)
between x — a and x = b using the approximation
N- 1
h X /(*„),
n=0
(a) (In x)3 dx; (b) sin5 x cos3 x dx; (c) x2 e* sin x dx;
dx dx
(d) v/(l-x2)dx; (e) ; (0
x(x + l)(x + 2)(x + 3) (1 -x3)
Check each answer by recovering the integrands by differentiation.
4. Find
lirnim.
h-o ( — In b)3
How does 1(a) behave as a oo? Does
* OO
(In x)3 dx
Ji
exist?
Chapter 16
1. Plot the graph of the polar equation r = sin 56 for 0 ^ 6 ^ 2n.
Find the area enclosed by the five ‘petals’ of the curve.
Show that the area of the 2n + 1 petals of r = sin(2n +1)0 (n ^ 1)
independent of n.
+ • • • + /(Xjv-i)) + 2/(&)]•
Apply the program to the integral
' 2
e“2* sin2 x dx,
Jo
and compare the result with the exact value of the integral.
Investigate how many steps are required to obtain a result accurate
to three decimal places.
Apply the program also to Problem 16.20.
3. A thin plane metal plate consists of an isosceles triangle of height
h and base length 2a with a semicircle of radius a attached
symmetrically by its diameter to the base of the triangle. Find the
location of its centroid on its axis of symmetry.
/(x) dx %
Ja
b-af ljN \
— /(a) + /(h) + 4 £ /(x2k_i) + 2 X f(x2k) ,
3/V \ jc=i k= l /
where N is an even number. Apply the method to /(x) = e-*2, with
b — 1, a = 0. Compare results with the trapezium rule above.
Chapter 17
1. Illustrate the substitution method in integration by writing a
program to integrate
f x — 2
J 7(5 + 4x - x2)
using the substitutions x = u + 2, u = 3 sin t. Integrate directly and
through the substitutions.
ho —
t10 e~‘ dr, Ju = t11 e"
Jo
and confirm that /n//10 = H-
4. Computer-integrate the following infinite integrals:
' o° P00 In x
(a) e-x sin x dx; (b) dx; (c) x 3°e ax'dx.
i
has a maximum value, and plot the graph y = g(x) for 1 ^ x < 100.
Chapter 18
1. Solve the differential equation x + x = 0, for the initial conditions
(a) x(0) = 0, (b) x(0) = 1, (c) x(0) = 2 and plot the solutions on the
same axes for 0 ^ f ^ 2.
Chapter 19
1. Solve the differential equation 2x + 3x + x = cos t subject to
x(0) = 0, x(0) = 1. Plot the solution for 0 ^ t < 50.
Chapter 20
1. Solve the differential equation x + x = 0 subject to the initial
conditions x(0) = 1, x(0) = 0. Also solve x + sin x = 0, by a built-in
numerical solution method for 0 ^ t ^ 10 subject to the same initial
conditions. Plot both solutions for 0 ^ t ^ 10. Comparison of the
plotted solutions will indicate by how much the period decreases
when the linear approximation is used. Re-run the programs for
different amplitudes x(0).
Applications projects using symbolic computing 727
Chapter 21
1. Draw the phasor diagram of the sum of the three phasors of
u(f) = 2 cos 1 Of, v(t) = cos( 1 Of — jtc), w(f) = 3 cos( 1 Of + jtc)
(see Example 21.6).
Chapter 22
1. Draw the lineal element diagram of dy/dx = xy, produced by a
standard package in the square (0 ^ x ^ 1, 0 y ^ 1} (see Section
22.1). Compare this with the exact solution (see Section 22.1) drawn
through the points (0, 0.2), (0, 0.4), and (0, 0.6).
y-
dx
= xy2> y(°) = 1.
(see Example 22.4) with step length h — 0.2 and 5 steps. Run the
program for the cases h = 0.1 and h = 0.01 and compare the results.
Chapter 23
1. By splitting the differential equation x + 2x3 = 0 into the system
x = y, y = -2x3,
and plotting four phase paths respectively through the four points
(x(0), y(0)) = (0.3, 0), (0.6,0), (0.9, 0), (1.2, 0)
over the interval —1.5 ^ x < 1.5, show that the solutions appear to
be periodic.
Chapter 24
1. Computer algebra systems are quite efficient at finding Laplace
transforms of complicated expressions involving standard functions.
Test the system with the following transforms:
2. Solve
x + 2x = e~f, x(0) = 3,
using a Laplace-transform package, and compare the answer with
that of Example 24.12. Plot the input e-' and the output against t
for 0 ^ t ^ 3.
3. Using a Laplace-transform package, solve the system
x + 2x + x = a cos cof, x(0) = 0, x(0) = 0.
Plot the input and output functions for a = 1, co — 1 and 0 ^ t ^ 30.
Estimate the eventual amplitude of the periodic output.
Chapter 25
L Find the Laplace transform of the solution of
x + 0J2x = ab(t - 1), x(0) = x(0) = 0,
x(0) = x(0) = 0.
Plot the output for a = b — 1.
f(t - u)g(u)du.
Chapter 26
1. Consider the period 2 sawtooth function defined over its funda¬
mental interval — 1 < t ^ 1 by f(t) = t. Find its general Fourier
coefficient and output its first four terms. Plot and compare the
graphs of this truncated series and the sawtooth for — 3 < t ^ 3.
2. Repeat the previous problem but with the function
(0<t< 1),
f(t) =
(—1 < f < 0).
Plot the graphs of f(t) and the first 12 terms of its Fourier series.
The graph should show Gibbs' phenomenon, in which the Fourier
series approximation overshoots the function at discontinuities. You
can try it with (say) 20 terms or more, but you should include more
interpolating points in these cases.
I
n =1 n
4. Find the Fourier transforms of the following functions:
(a) the top-hat function n(t) (Section 26.13a);
(b) the one-sided exponential e"'H(t) (Section 26.13c);
730 Mathematical techniques
Chapter 27
1. Plot the saddle surface z — x2 — y2 in the cylinder x2 + y2 ^ 1,
using a three-dimensional parametric plot routine with parameters
r and u where
(x, y, z) = (r cos u, r sin u, r2cos2u).
Also draw a contour plot of the surface in the (x, y) plane on the
square —l^x^l, — 1 < y < 1.
*LJ±-
dx dy
o.
Chapter 28
1. Find the family of curves orthogonal to that of
Chapter 29
1. Find where the function
fix, y) = x3 - 2xy - x + 3y2
is stationary subject to the condition x2 + 2y2 = 1. Devise a program
which uses the Lagrange-multiplier method (29.4): here is a suggested
line of approach. First plot the contours of z = /(x, y) and the curve
x2 + 2y2 = 1. Locate the approximate coordinates of any point of
tangency. Then use a built-in root-finding scheme to locate the
stationary values. There should be four.
Chapter 30
1. Find the equation of the tangent plane to the surface
x3y + zx + xy2z — — 3
at (1, 2, -1).
Chapter 3 7
1. By repeated integration, evaluate the integral
-i r i
(x + y e~xy -h xy) dx dy,
J-i Jo
under the surface? Plot the positive part of the surface over the same
rectangle.
Chapter 32
1. Let
/(x, y, z) = xyi + yzj + (z-y)xk.
Find/as a function of t on the line x = t, y = t, z — t. Evaluate the
line integral
/*
/•dr
,
on this line between (0, 0, 0) and (1, 1, 1).
Repeat the process with the curve x = f2, y = f3, z = t4 and the
same end points. Plot both paths of integration.
Chapter 33
1. Plot the surfaces defined parametrically by the following position
vectors:
(a) r = (3 + cos v) cos u i + (3 4- cos v) sin uj + sin v k (see Section
33.3);
(b) r = (1 + a sin(bu)) cos v i + (1 + a sin{bu)) sin vj+ uk, where
a = 0.3 and b = 3.5 (see Section 33.3).
2. Given that
(a) div/
(b) curl/
(c) div curl /;
(d) curl curl/at the point (1,0, — 1).
Chapter 34
1. A and B are the sets of integers defined by
A n (B u C) = (A n B) (A n C).
Chapter 36
1. Draw the labelled drawings of the bipartite graphs K5 6 and K6 6.
Answer the following for each graph by the built-in diagnostic test.
(a) How many edges has each graph?
(b) Is the graph eulerian? If it is, list an eulerian walk.
(c) Is it hamiltonian? If it is, list a hamiltonian cycle.
Chapter 37
1. Rework Example 37.2 using a symbolic package for solving
difference equations. Solve the mortgage difference equation
Qm ~ (1 + I)Qm- 1 ~ — A,
Chapter 38
1. (See Example 38.8) A box contains 40 balls of which 7 are red, 12
are white and 21 are black. In each of the cases n = 2, 3, 4, 5, 6, 7, n
balls are drawn at random from the box without replacement. What
is the total number of n-ball selections which can be made? What is
the probability that there are n (n — 2, 3, 4, 5, 6, 7) balls of the same
colour? Show the probabilities graphically in a bar chart.
Chapter 39
1. List the probabilities of the binomial distribution for n = 12 and
p = 0.7. Check that their sum is 1. Plot this discrete distribution as
a bar chart.
Chapter 40
1. Devise a program to draw comparative box plots for the
examination data given in Problem 40.2.
4. Two dice are rolled and the average scores recorded. Compute
the probabilities of the possible average scores, and plot them in a
bar chart. Repeat the programme for four and six dice. Plot bar
charts in each case to illustrate the development normal distribution
predicted by the central limit theorem.
Answers to selected
problems
Chapter 1 1.33. The vertex is ( — 4, 7).
1.2. (a) v = —2,y + 3; (b) y = 1; (c) y = jx y.
Intersections are A: (2. 1). B: (f, {), C: (1, 1). 1.36. (b) 2/(x + 2) - 1 /(a + 1).
(d) l/2x — 1/(a + 1) + 1/2(a + 2).
AB~ly/l3, AC = 1. BC = 4^/5. (f) l/4.x - l/4(x + 2) - 1/2(a + 2)2.
(h) l/2(a — 3) + l/2(x+ 1).
1.3. (b) Slope = j. Intersection with axes at (2,0), (0, — f).
1.37. (b) l/2(.x - 1) + 1/2(a2 + 1) - a/2(a2 + 1).
1.4. (b) (y + 2)/(.\- + 1) = -2, so y = — 2x - 4.
(d) (y — 2)/(x — 1) = 3, so y = 3.x - 1. 1.38. (b) a - 3 - l/(x + 1) + 8/(a + 2).
1.6. Hint: choose a suitably. 1.39. (b) 1 + 1/2 + 1/5 + 1/10 + 1/17.
1.14. (b) 1. Now (1.31) gives the sum in the brackets. Finally we
(d) -l/V'2. (f) -V3/2. obtain 121/729.
(e) -341/1024.
1.16. (b) cos a; (d) —cos a.
1.19. (b) amp. = 1.5; ang. freq. = 0.2; 2.3. (c) -l/.x2; (f)4x.
period = 31.41; phase = —0.48.
2.4. (c) -8.
1.20. (b) ix — §; (d) arcsin yx, 0 ^ a ^ 2.
(f) arccos(arcsin a), 0 ^ a ^ sin 1. 2.5. (c) 32, -32.
(h) -| + (1 + 4aA aS* -l
1.28. 5 cos((ut - 0.927). 2.12. (b) 2; (d) 1; (g) 2; (i) n/180 = 0.0175.
1.30. Tidal period = 12.57 hr. It floats for 9.20 hr. 2.16. (b) y = 24a — 39; (d)y = e"1x.
Hint: It floats when sin 0.5f ^ —0.666. Sketch y = sin 0.5r
and y = 0.666 and find the intersections. 2.17. (b) 6.x - 2, 6, 0.
Answers to selected problems 737
3.9. (c) ( —2x sin x2)/cos x2. The original function only * X + |x3 + £x5.
has a meaning when cos x2 > 0.
5.8. (d) ln(l + x + x2) = ln[x2(l + 1/x + 1/x2)]
3.10. (b) e'(cos t -I- t cos t — t sin f).
= 2 In x + ln(l + 1/x -I- 1/x2).
1 1
3.11. (b) dy/dx = —y2/x2. This can be written in other
Then treat 1/x + 1/x2 as the small variable.
ways; for example put yJ = 1 — x5 from the equation of
the curve. 5.11. (b) Suppose that the first nonzero derivative is the
Nth: f{N\c) # 0. Consider whether N is even or odd, and
3.15. (b) -5.
whether f(N\c) is positive or negative.
4.10. (b) 8y a —0.2 (exact value 0.227...). ^ y = 2\ (d) The parabola, y2 = 4x; (f) y = x
(d) 8y as —0.4 (exact value —0.5). ^ q\
4.11. (a) bv as —0.11; (d) 5A as —0.08. 6.11. (a) V2eH (d) 14e ^j; (g) e2 ej; (j) J2e ^j.
- 10 -5
7.6. A =
20 10_ 9.36. r = - f a + —\ [Hint: Draw a diagram involving
2 \|«| \b\)
-5 6 16 a and A.]
—6 -6 -7
Chapter TO
7.11. A1"-'. 10.1. (a) 10. (e) zero.
8.14. x = a, b, c, —a — b — c.
10.8. 54.7°.
7 1 -5
10.9. - 33x2 - 13y2 + 95z2 + 48xy - 144yz + 96z.x = 0.
8.16. del(AB) = -36, A~' = ! -2 0 2
10.10. 78.9°, 68.6", 32.5°.
11-1
10.12. F = a + 2b + 2c.
Chapter 9
10.16. a= -§, P = ly = &.
9.1. (a) TQ = (5, -3), QP = (-5,3).
9.4. BE = (0, —4); BE = 4; bearing south. 10.19. (c) (l,m,n) = (j, -§).
9.5. (c) V6.
10.21. (a) ±(rj, o, tx)-
9.7. (b) 2a = (6, 4, 6), 3h = (3, 3, 6), 2a - 2b = (3, 1. 0).
10.26. (a) 19.1°.
9.10. (a) (3, 3, -6).
(b) (X + 2)2 + (Y - 1 )2 + (Z + 3)2 = 1. 10.29. Hint; Translate the axes to the point q and so
work from the simpler form, (10.24a).
9.16. Speed 10^/2; Direction towards north east. (Hint:
use vwe = vw — vc in components, with t?N = (u, v).) 10.30. (a) P, is -y + z = 4, P, is 2x - 2y + z = 5.
(b) 45°. (c)2V2.
9.22. (b) la + {b (c) 4a — \b. (d) and (e). The line L is given by r = 2(1, 4, —4). Show
that intersection with P, and P, occurs when 7. =
9.23. (a) (a + /.b)/( 1 + /.). (b) (a - }.b)l( 1 — /.).
(c) ^he point is on the extension of AB in the direction 10.34. Begin by finding any two points on the line of
of AB. intersection. (The resulting form is not unique.)
Answers to selected problems 739
Chapter 1 7
1
7
Cl
Cl
">
"-1 +2^/2'
1
11.1. (a) (4, 7, 5). (d) -9. (h) (-24, 3, 15).
7 7
1 0 2
Chapter 12
12.1. (c) .v, = 1, ,v2 = -1, .v3 = -5. l l 1
(e) x, = 2, x2 = -1, x3 = 2. 13.16. lim An = $ l l l
n~* oc
0 0-1 10
14.2. (b)4-^(l-x)5 + C; -|(8-3x)-^ + C;
0 0 0 -11 !(1 -xp + C.
12.12. The shadow on the z plane has vertices at the 14.3. (b) — ln|l - x| + C; -$ ln|4 - 5x| + C.
points ( — 1,0, 0), ( — 1, —2, 0), (1, 0, 0).
14.4. (c) |x + i sin 2x + 22 sin 4x + C.
12.16. Nontrivial solutions if k = 1, — 1, 4.
14.5. x2ex - 2xex + 2ex + C.
12.18. Nontrivial solutions if k = —6, —1, 3, 4.
14.6. (a) 2; (h) —In 2.
12.22. x, = 1.398, x2 = 1.090, x3 = -0.2844,
x4 = -0.3697. 14.7. (c) 4 — x2 ^ 0 if — 1 ^ x ^ 2, and 4 — x2 ^ 0 if
2 ^ x ^ 3. The geometrical area is
(e) Eigenvalues 3 - 4^/2, 3 + 4^/2; Eigenvectors 14.8. (a) At T Zl; (b) g/3 T At T B.
740 Answers to selected problems
16.13. i
15.2. (b) (x + l)2 dx = |(x + l)2 + C.
J 16.14. (b) n.
15.3. (c) dx = [x]o = 2; (i) §(22 — 1). 16.15. In a plane perpendicular to the end, y is down¬
ward and x is horizontal; the origin is at the top.
Area elements are horizontal strips of width 5y in the
15.4. (b) (a-2 - 1) dx = |>3 a] L, = -i end face. Force = \pgLH2. Moment = \pgLH3.
15.6. (c) 2/rc; (h) (1 — e ') df = T + e~ 1. 16.18. (a) (b) 33aHB3, where a is mass per
unit area.
I
(T + e“' — 1)= 1 + T-‘ e-T - 7”1
T
Chapter 17
as T -* x.
17.1. (c) -ie~3* + C; (f) -^(3 - 2a)6 + C.
15.7. The integrands are (a) even; (b) odd; (c) odd; (j) (2x — 3p + C; (n) j ln|2x + 3| + C.
(d) odd. (o) ln|l — a| + 1/(1 — x) + C.
15.9. (b) The exact result is ^/tt/2. 17.2. (b) —3 cos 3(3? — 1 ) + C; (e) -|(-tp + C.
17.11. (a) Hint: there are two stages required; see Example
Chapter 19
15.20.
19.1. (b) -}f3- |t2-|f -
17.12. Hint: the same integral occurs on both sides (d) le2'; (i) — rs sin 3r.
but with a different factor. (k) — rs cos 2? + rs sin 21.
18.7. (b) A e' + Be'2'; (e) A e'/2v'3 + B e_,/2'/3. 20.7. The solutions are of exponential type.
(l) A e~3' + Bt e“3'.
(n) A + Bt (this is an exception to (16.10)). 20.8. x = e"4' - 4e“6'.
18.11. (c) a cos co0t + (b/oj0) sin co0t. 21.1. (b) —2ejni (2e_57tj in standard form).
18.13. The initial angular velocity d0/dt is v/l; 21.3. (b) 1 - e“**J = 1 + j - V2 e4Itj.
21.6. (b) R + o)Ly, (d) K/( 1 + oRCj). 24.5. (b) 1; (d) gf4; (g) \ e*.
(i) R + jcuL/(l — orLC). (k) \ e' + { e"'; (o) 2 cos 2t — \ sin It.
(k) jo)RL/[R(\ - orLC) + yoL], (sjle't2; (u) i(cos t - cos 2f).
21.8. (b) VJV0 = A(3 - 2j); E0//, = 1(5 - j). 24.8. (b) 3 - 3 cos f + sin t.
(e) -Je“‘ + Ie'-ire' + it2 e'.
(i) — 1 e‘ + \ e ' + 4 e-' — /i e
Chapter 22
22.4. (b) 2.x2 - y2 = C; _ (g) y = ,x/(l + Cx). 24.9. (b) x = | + |e4' + \t e4',
(k) .x = ±2~HC - t3)~! for f3 < C.
(n) arctany + arctan .x = in. Take the tangent of this y — — \6 + 16 c -h 4/ e .
expression and use the formula for 'tan(/4 + B); we
24.10. (b) e'(U + IB + i) + e"‘(i/4 - JB + i) - 3,
find that y = (.x + l)/(.x — 1).
where .4 and B are arbitrary. This is the same as
fe' + De"1- 3, where C and D are arbitrary.
22.6. (b) y = A(.v2 + C)2 for .x2 + C > 0. y = 0 is
also a solution; (d) Those parts of the curves y =
24.13. e”2 e“2s[(s + l)2 - l]/[(s + l)2 + l]2
sin(ln |.x| + ) for which .x and dy/dx have the same sign.
Also y = + 1 are solutions. = e-2 e '2vs(s + 2)/(s2 + 2s + 2)2
22.7. (b) y3 - 3.xy = C. 24.14. (b) H(0 sin t — H(f — 1) cos(f — 1).
(d) xy — y2 — x2 = C.
(f) y3 + y - x3 = C. 24.15. (b) (1 e2’ + g e^2‘ — j)H(f),
(h) y + cos y + sin x = C; (j) ex+y + y - x = C.
— (g e2(l_ 11 + 5 e_2<,~11 — i)H(t — 1).
(d) jH(t)f sin r + ,H(t - n)(t — n) sin(r — it).
22.8. (b) xy + y/x = C; (d) x/y + y - x = C.
(e) y/x - x/y - 1/x = C; (f) x2/2y2 + 1/xy = C.
Chapter 25
22.12. (b) x( 1 + 2y2/x2)* = C. 25.3. Hint for working: s2 + 2ks + oj2 has real factors
(d) x2 - 4y2 = Cy3' when k2 > co2\ so put s2 + 2/cs + co2 = (s — a)(s — /?),
where <x,/? = — k ± (k2 — or)1. Then x(f) is given by
24.2. (b) 1/s - 2/(s + 2); (e) (3s - 4)/(s2 + 4). 25.6. (b) V2/Vx = 3/(20s2 + 12s + 5);
(g) i[l/s - s/(s2 + 4)]. V2/I = 3/(4s2 + 6s + 1).
24.3. (b) l/(s + 2)2; (d) (s - 2)/(s2 - 4s + 5). 25.7. (b) f; (f) 1 — cos t; (h) j( — r cos t + sin f).
(i) (s2 - 9)/(s2 + 9)2; (1) 24/(s + l)5. (j) n\m\tn+m+1/(n + m + 1)!.
Answers to selected problems 743
1
25.8. (b) - /(T)(ew('~r> - e“"('_r)) di. 26.10. ao = 0, an = 0, bn = [1 - (-1)"]
2w Kll
o
(n= 1,2,...).
25.9. (b) cosh f.
x 4
25.19. (a) x(f) = 5(f) + 25(f - T) + 5(f - IT), *(s) = 26.16. (a) I — - sin(2« 1) 7Tf.
„=i (2n — 1)ti
1 + 2e~sT + e~2sT.
y 2 x. 4
25.20. Y(s) = Y, [3_n^(r - (77 + l)f) + 26.18.-y —-cos 2ntot.
n=0 71 n=l 71(4/7" — 1)
Chapter 26
Chapter 27
26.1. (b) a„ = 0, bn = -2(- 1)7/7-
27.3. (c) 4x — 2j/ — 1; —6y — 2x — 1.
(e) c/„ = 0, hn = — [ 1 + (- 1)" - 2 cos(^«7t)]. (f) 37 - 2; x - T (i) 2y/(x + y)2; -2x/(x + y)2.
nn
(k) x(x2 + y2yk y(x2 + y2)~T
2n2
26.2. (b) bn = 0. a0 = 5F dF
27.4. (c) — = g'{r) cos 0; — = g'(r) sin 0.
dx dy
aB = -(-l)"(/i = 1,2,...).
/?“ 27.8. d2//dx2, d2//dy2, and d2//dx dy = d2//dy dx are
4(-iy given in order: (b) 2, 4, 3. (d) 2y/x3, 0, — 1/x2.
(c) b„ = 0, a„ = -
7t(4/72 — 1) (h) 108(3x - 4y)2, 192(3x - 4y)2, - 144(3x - 4y)2.
(k) —r"3 + 3x2r-5, — r~3 + 3y2r-5, 3xyr-5, where r =
26.3. (a) c/0 = Att, x2 + y2)l
27.15. The maximum is 9, attained at (2, ± 1). x = - 2fO sin 0 + r cos 0 - 0zr cos 0 - Or sin 0,
27.18. (b) Depth = 2~3V}: square base, side 23V3. 29.9. (c) df/cu = -2v2/u\ df/dv = 2v/u.
28.3. (b) ((5.v)2 - 4 6.x- 8y - 7 5y)/4( 1 + 5y). d2f/cu2 = \6v2y"{4uv), c2f/dv2 = I6u2g"(4uv),
8R3 is -0.108.
28.19. (b) 49.8° or 130.2°.
(d) Hint: compare Problem 26.12f. 30.4. Put ax3 — bx — c = f(a, b, c, x) and use (30.1).
Chapter 29
29.2. (b) —4 sin t cos f; (d) 2 sin(f2) + 4f2 cos(f2). 30.8. (b) 28x + 48y — 68z = 0. For dz/dx, put 8y = 0:
dz/dx = 3. Similarly dz/dy = §.
29.3. It is easiest to start by expressing the distance
D in terms of polar coordinates (r, 0), (R, 0) by using 30.11. (b) (2, - 3, 5); (d) (3x2, 0, 9z2).
the cosine rule (Appendix B(f)). Then (f) ( — x/r3, —y/r3, —z/r3), where r — (x2 + y2 + z2)T
30.19. Stationary at (1. 0. 0), ( — 1.0. 1). (-1.0, — 1). 32.5. (b) 2; (d) 0; (g) 0.
30.21. (b) (3, 3, 3); (e) (a/^/3, h/yj3, c/^J3). 32.6. (b) 1; (d) -3; (f)
(g)(i 3-D.
32.7. (b) 0.
30.26. (b) 4.xy =1; (d) .x2 + y2 = 1.
32.8. (b) -§.
31.7. (b) 1.
33.7. Scale factors are = h2 — Jiu2 + u2), /z3 = uv.
31.10. (a) Hu1 + r2); (b) 2; (c) 1/5; (d) -2 cosh v. 33.14. (a) 3r2; (b) 0- (c) 3rr; (d) 0\ (e) 0; (f) 12r.
33.18. 8/3.
31.11. The value of the integral is 2(257 — 129v/2)/5.
34.5. (b) B\(A uC); (d) (B n D)\A. 36.19. (a) The transfer function is
35.15. (a) If a, represents the state of switch S,, etc., 36.27. (b) Framework is overbraced.
then the switching function is
36.28. Two ties.
(«1 © Ch) © [(^3 © fl4)'a5]-
a b c (a@b)-(a®c)
37.1. £1790.85, 4.87%.
fli «2 «3 /
37.13. D„( 1) = n + 1.
36.8. Six not including reversed order.
36.13. There are three different paths between a and e. 37.16. un = | — |(—-j)".
38.6. (b) Ace of clubs or ace of spades drawn; (d) any 39.7. 1/29.
ace or any heart or any black card drawn; (f) any heart
except the ace of hearts; (h) ace of hearts or any black
39.9. Probability that a bottle fails the test is 0.00067.
card.
38.12. (b) 156 849. 39.14. On average 30% of operations take longer than
40 seconds.
38.15. 270 725; 0.010 56....
39.15. Standard deviation of 1 if a = J5 and A =
38.17. (a) 9/209; (c) 16/665; (c) 683/1463. 3/(2075).
38.18. (b) 0.872; (c) 0.602. 39.16. Maximum value of standard deviation is 121.6.
38.19. (b) 0.453; (c) 0.547. 39.17. Probability that just two bulbs will be still work¬
ing is 0.242.
38.20. With the same probability of failure 0.98, prob¬
ability that circuit fails is 0.963.
Chapter 40
38.21. (b) 1/495; (c) 4/99. 40.1. (b) Mean = 24,1; median = 24.5; interquartile
range = 17.
39.3. Mean = 0.0769; standard deviation = 0.0887. 40.9. For full data a = —0.019 964; b = 52.998.
Chapter 4 7
The answers contain suggested Mathematica commands for solutions to the projects. Some full programs and
outputs are also included for selected problems. Note that there are frequently several ways of presenting
answers using Mathematica programs. Inevitably these answers and comments are brief: a working knowledge
of Mathematica using mainly built-in commands is required.
41-1.2. Use Table[ ] to define the set of points and ListPoint[ ] to plot the points. The curve can be plotted
using Plot[ ] and all displayed with Show[ ].
In[1]:=
<<Graphics'ImplicitPlot'
ln[3]:=
ImplicitPlot[xA4+2yA2-x y-2 y xA2==4,{x,-4,4},
AxesLabel->{x,y},PlotRange->{{-2,2.2},{-1.5,3.2}}]
The polar variables are (r,t): equations are defined by r1[t ] and r2[t ].
rl[t_]:=.5 (1+Cos[t])
41-2.3. Numerical solutions can be found for the equation g(x) = 0 by using NSolve[g[x] = = 0] and curves plotted
by Plot[ ].
41-2.4. Define the function /[x] = ,\- sin[2*x] and a tangent function.
41-2.5. Use D[ ].
41-3.3. Implicit differentiation can be implemented using Dt[ ] and the explicit derivative obtained by Solve[..., Dt[ ]].
The following commands find the values of x at the four stationary values. Initial
estimates for the FindRoot[ ] commands are estimated from the graph above.
FindRoot[f 1[x]==0,{x,-1}]
FindRoot[f1[x]==0,{x,.5}]
FindRoot[f1[x]==0,(x,1.5}]
FindRoot[f’[x]==0,(x,3}]
xl=-0.93972;x2 = 0.352685;x3 = l.27 565;x4 = 3.31138 ;
The following values of the second derivatives check the second derivative test
for each stationary point.
f■■[xl]
f■■[x2]
f ■ •[x3]
f 1 1 [x4]
Plot [f’ 1 [x],{x,-2,4},AspectRatio->Automatic,
PlotRange->{-2.8,3.5}]
The following commands determine the points where f"(x) is zero, the points of
inflection on the curve.
FindRoot [f 1 [x]= = 0,{x,-0.5}]
FindRoot[f 1’[x]==0,{x,l}]
FindRoot[f’’[x]==0,{x,2.5}]
750 Answers to selected problems
41-4.4. Estimate the location of the root using Plot[ ], define a function
/»M = x- / W//'M,
and then use NestList[ ].
The graphs of y=x+sin(5x) drawn for 0<x<25 in (a) the default Plot[ ] form, (b)
Plot[ ] with 20 plot points, (c) Plot [ ] with 50 plot points. Notice the differences.
curvel=Plot[x+Sin[5*x],{x,0,25},AxesLabel->{x,y}]
curve2=Plot[x+Sin[5*x],{x,0,25},PlotPoints->20,
PlotStyle->RGBColor[0,0,1],AxesLabel->{x,y}]
curve3=Plot[x+Sin[5*x],{x,0,25},PlotPoints->50,
PlotStyle->RGBColor[1,0,0],AxesLabel->(x,y}]
Show[curvel,curve2,curve3]
The default plot misses a beat around x=21, whilst a scheme with 20 plot points
misses the oscillations completely. Plot[ ] with 50 plot points is sufficient to
detect all the oscillations of the functions. The Plot[ ] algorithm can be deceived.
41-5.1. Series[ ] defines the Taylor series up to any required number of terms. Normal[ ] defines the corresponding
Taylor polynomial.
Out[2]=
2
x
1-
3
ln[3]:=
Series[((Sin[x])/x)A2,(x,0,4}]
Out[3]=
2 4
x 2 x 5
1-+ - + 0[x]
3 45
ln[4]:=
f 2 [x_], = Normal [%]
Out[4]=
Answers to selected problems 751
2 4
x 2 x
1-+ -
3 45
ln[5]:=
Series[((Sin[x])/x)A2,{x,0,6}]
Out[5]=
2 4 6
x 2 x x 7
1-+-+ 0[x]
3 45 315
ln[6]:=
f 3 [x_] =Normal [%]
Out[6]=
2 4 6
x 2 x x
1-+-
3 45 315
The actual curve is in black and the approximations in various levels of gray.
Inf 10]:=
Plot[{fl[x],f2[x],f3[x],(Sin[x]/x)A2},{x,0.001,3},
PlotRange->{0,1.1},PlotStyle->{{GrayLevel[.2]},
{GrayLevel[.4]},{GrayLevel[.6]},{GrayLevel[0]}},
Axe sLabel->{x,""}]
41-6.3. List the roots using Table[ ] and plot them using ListPlot[ ].
41-6.5. Abs[ ] and Arg[] give the modulus and principal argument of a complex number.
41-7.1. Matrices are entered as lists by rows. Transpose and Inverse are given by the commands Transpose[ ] and
lnverse[ ].
41-11.1. Requires package LinearAlgebra CrossProduct'. Use Cross[] for vector products and Polygon[ ] to
show the triangle.
a={1,-1,2};b={-1,2,3);c={2,-1,3};d={1,3,-2};
pl=Cross[b,c]+Cross[c,d]+Cross[d,b];
p2=Cross[c,d]+Cross td,a]+Cross[a,c];
p3=Cross[d,a]+Cross[a,b]+Cross[b, d];
p4=Cross[a,b]tCross[b,c]+Cross[c, d] ;
N[%]
poly2=Polygon[(a, c, d> ] ;
poly3=Polygon[{a,b, d} ] ;
poly4=Polygon[{a,b, c} ] ;
a={{1,2,1},{2,1,1},{1,1,2}};
Eigenvalues[a]
f=Eigenvectors[a]
d=DiagonalMatrix[{-1,1,4}]
c.MatrixPower[d,n].Inverse[c]
This method simply divides the interval into equal steps and the approximation
is the sum the products of the step lengths and the function values at the step
points.
f[x_]=xA2;
a=l;b=3;h=(b-a)/100;
The next step works out the sums
N[Sum[h*f[a+i*h],{i,0,99}]]
The next instruction evalautes the integral. These steps are repeated for each
function except for (d) which does not have an elementary integral.
N[Integrate[f[x],{x,1,3}]]
g[x_]=x*Exp[-x];
b=3;a=0;h=(b-a)/20;
N[Sum[h*g[a+i*h],{i,0,19}]]
N[Integrate[x*Exp[-x],{x,0,3}]]
p[x_]=xA 3 *Sin[x];
b=Pi;a=0;h=(b-a)/3 0;
N[Sum[h*p[a+i*h],{i,0,29}] ]
N[Integrate[xA3*Sin[x],{x,0,Pi}]]
q[x_]=Cos[Exp[-x]];
b=l;a=0;h=(b-a)/25;
N[Sum[h*q[a+i*h],{i,0,24} ] ]
Try the sums with different values for h.
41-15.2. Essentially use lntegrate[], although simplification is possible with commands Simplify[], Together[],
and ExpandAII[ ].
Out[17]=
2 2 3/2
4 (a - b ) Pi
f[x_]=Sin[x]A2*Exp[-2*x];
b=2;a=0;n=10;
Int=Integrate[Sin[x]A2*Exp[-2*x],{x,0,2}]//N
Trapl-Int
The last step checks the difference between the result form the trapezium rule
and the exact integral,which is possible in this example. Try different values for
the number of steps n.
Answers to selected problems 755
f[x_]=Log[x]A6/xA2;
This tests the limit of f(x) as x-> infinity. It is necessary that f(x)-> 0 but not
sufficient for the integral to exist.
Limit[f[x],x->Infinity]
g[a_]=Integrate[Log[x]A6/xA2,{x,1,a}]
N[g [10]]
N[g[20]]
The following graph indicates that f(x) tends to 0 as x-> infinity.
Plot[f[x],{x,1,100}]
D[f[x],x]
NSolve[f'[x]==0,x]
Out[18]=
C [1]
{(x[t] -> -•}}
t
E
The solutions for the different initial values can be put in one Plot[ ] command.
In[19]:=
Plot[(sol[[1,1,2]]/.C[l]->0,soil[1,1,2]]/.C[l]->l,
sol[[1,1,2]]/.C[l]->2},{t,0,2},AxesLabel->{t,x}];
41-18.2. Use DSolve[ ] to solve the differential equation. Plotting can be achieved by adapting the program in the
previous project.
Out[24]=
-1 8 -Cos[t] + 3 Sin[t]
{ {x [ t ] ->- + - + -}}
t t/2 10
2 E 5 E
In[25] : =
graph=Plot[sol[[1,1,2]],
{t,0,50},AxesLabel->{t,x},
PlotStyle->{Thickness[.006]}];
x
The forced periodic output is quickly achieved as the transient dies out.
Answers to selected problems 757
This is the solution of the linearised pendulum equation for simple harmonic
motion.
sol=DSolve[{x''[t]+x[t]==0,x[0]==1,
x1 [0] ==0> , x [t] , t]
graphl=Plot[sol [[1,1,2]],{t,0,10},PlotStyle->
RGBColor[1,0,0]]
xl=3/Sqrt[2];yl=3/Sqrt[2];x2=2;y2=0;x3=0;y3=-l;
ArgandPhasor={Thickness[.01],Line[{{0,0},{xl,yl},{xl+x2,
yl+y2},{xl+x2+x3,yl+y2+y3}}]};
Show[Graphics[ArgandPhasor],Axes->True,AspectRatio->
Automatic]
Print[{xl+x2+x3,yl+y2+y3}//N]
41-22.1. Requires package Graphics PlotField and then PlotVectorField[ ] and DSolve[ ] for the solutions
of the differential equation.
41-22.2. As in 20.1.
f[x_,y_]=x*yA2;
h= . 2;
y[0]=l;
x[n_]=n*h;
y[n_] :=y[n]=y[n-1]+h*f[x[n-1],y[n-1] ] ;
yvalue=Table[y[i],{i,1,6}]
points=Table[{x[i-1],yvalue[[i]]}, {i,l,6}]
Euler=ListPlot[points]
41-22.4. Numerical solution of the differential equation is given by NDSolve[] and the plotting by
ParametricPlot[ ].
758 Answers to selected problems
41-24.1. The transforms are given by LaplaceTransform[ ], but use lntegrate[ ] instead for the finite transform.
lap=LaplaceTransform[x1'[t]+2*x'[t]+x[t]-
a*Cos[w*t],t,s]
lapl=lap /.{LaplaceTransform[x[t],t,s]->lapx,
x[0]->0,x1 [0]— > 0}
lap3=Solve[lapl==0,lapx]
solution=InverseLaplaceTransform[lap3[[1,1,2]],s,t]
a=l;w=l;
Answers to selected problems 759
41-25.3. Define convolution as lntegrate[/[t - u] * g[u], {«, 0, t}], and then apply LaplaceTransform of the
convolution.
41-25.4. Use Solve[ ] to find the roots of the denominator. (Generally if numerical solutions are required use
NSolve[ ].)
The function is even. Hence only Fourier cosine coefficients are present.
Remove[fs]
fs=FourierCosSeriesCoefficient[xA6-5*PiA2*xA4+
7*PiA4*xA2,{x,-Pi,Pi},n]
rulesl= {Cos [Pi n_] - > (-1) An, Sin [Pi n_]-->0}
fs=Simplify[fs/.rulesl]
aO=FourierCosSeriesCoefficient[xA6-5*PiA2*xA4+
7 *PiA4 *xA 2,{x,-Pi,Pi},0]
.The sum of the series can be obtained by putting x=0 in the Fourier series: the
answer is 31 (Pi)A6/30240.
41-26.4. Requires the packages Calculus'FourierTransform' and Calculus'DiracDelta'. Use UnitStep[ ] for functions
with steps.
Out[29]=
-Graphics3D-
This plots the contour curves on the (x,y) plane.
ContourPlot[xA2-yA2,{x,-1,1},{y,-1,1},
ContourSmoothing->Automatic,ColorFunction->Hue,
FrameLabel->{x,y>]
41-27.2. Requires package Graphics ParametricPlot3D and then the commands ParametricPlot3D[ ] for the
surface, and ContourPlot[ ] for the contours of the surface.
ClearAll[f,fx,fy,x,y]
surface=Plot3D[f[x,y],(x,-Pi,Pi},{y,-Pi/2, Pi/2}]
The partial derivartives follow.
D[f[x,y],x]
fx[x_,y_]:=y*Cos[x*y]
D[f[x,y],y]
fy[x_,y_]:=x*Sin[x*y]
tangentfunction=f[Pi/4,1]+fx[Pi/4,1]*(x-Pi/4)+
fytPi/4,1]*(y-1)
contact={Line[{{Pi/4,l,0},{Pi/4,l,2}}],
Thickness[.02]};
Answers to selected problems 761
Vertical line indicates the point of tangency. The surface and the tangent plane
are put on the same figure. Try other tangent planes and viewpoints.
Show[surface,tangent,Graphics3D[contact] ,
AxesLabel->{x,y,z} ,BoxRatios->{1, 1, . 8} ,
Viewpoint->{1.990,-2.400,1.750}]
41-27.5. Program listing given below.
ClearAll[f]
f[x_,y_]:=.3xA3+.2*yA2-xA2*y-x*y+x+2*y
fx=D[f[x,y],x]
fy=D[f[x,y],y]
The stationary values are found numerically by NSolve[ ].
NSolve[{fx==0,fy==0},{x,y}]
The following gives a contour plot of the surface showing all the stationary
points.
ContourPlot[f[x,y],{x,-3,3},{y,-9,3},Contours->30,
ContourSmoothing->Automatic,
FrameLabel->{x,y},PlotPoints->20]
The next cell checks formula (25.9) for the first stationary point.
(D[f[x,y],x,x]*D[f[x,y],y,y]-D[f[x,y],x,y]A2)/.
{x->-0.620464,y->-5.58872}
D[f[x,y],x,x]/.{x->-0.620464,y->-5.58872}
D[f[x,y],y,y]/.(x->-0.620464,y->-5.58872}
(0.620464,-5.58872) is a minimum.
Apply the formula to the other two points.
41-27.6. Program listing given below.
The command Fit[ ] does the least squares for you.
Fit[{{0,1.1},{1,2},{2,2.9},(3,3.9},(4,5},{5,5.1}},
{l,x},x]
The following plots the straight line,
leastsquares=Plot \%,{x,-0.5,5.5}]
Data={{0,1.1},{1,2},{2,2.9},{3,3.9},{4,5}, {5,5.1}}
dataplot=ListPlot[Data,AxesOrigin->{0,0},
PlotRange->{-.5,7.5},PlotStyle->PointSize[0.01]]
Show[ ] displays both the data and the straight line fit to the data.
Show[dataplot,leastsquares]
DSolve[y1[x]==-orthogonal,y[x],x]
'Curves' are solutions of the differential equation, and 'trajectories' are their
orthogonal trajectories.
curves=ContourPlot[f[x,y],{x,-2,2},{y,-2,2},
ContourShading->False,
ContourSmoothing->Automatic,Contours->11,
PlotPoints->25]
trajectories=ContourPlot[yA2+2*x,{x,-2,2},{y,-2,2},
ContourShading->False,ContourSmoothing->Automatic,
PlotPoints->25]
Showfcurves,trajectories]
41-29.1. Program listing given below.
Requires package Graphics' ImplicitPlot'.
The problem is to find where f(x,y) is stationary subject to the condition g(x,y)=0.
<<Graphics'ImplicitPlot'
ClearAll[f,g]
f[x_,y_]:=xA3-2*x*y-x+3*yA2
g[x_,y_]:=xA2+2*yA2-l
lagrange=ContourPlot[f[x,y],(x,-1.5,1.5},
{y,-1.5,1.5},
ContourShading->False,Contours->15,
GontourSmoothing->
Automatic,PlotPoints->25,AxesLabel->{x,y}]
constraint=ImplicitPlot[g[x,y]==0,{x,-1.5,1.5},
{y,-1.5,1.5},PlotStyle->RGBColor[1,0,0],
AxesLabel->{x,y}]
The following figure shows the intersection of the contours of f(x,y) and the
curve g(x,y)=0. Tangencies between them indicate approximate stationary
values which are then used to find numerical locations using a root-finding
routine. There are four stationary values.
Show[lagrange,constraint]
D[f[x,y]-p*g[x,y],x]
D[f[x,y]-p*g[x,y],y]
The approximations for x and y are taken from the figure above.
FindRoot[{-l-2*p*x+3*x*x-2*y==0 ,
-2*x+6*y-4*p*y= = 0,xA2 + 2*yA2 = = l},{x,.2},{y,-.6},
{p,l}]
FindRoot[{-l-2*p*x+3*x*x-2*y==0,
-2*x+6*y-4*p*y==0,xA2+2*yA2==l},{x,l},{y,0},{p,l},
Maxlterations->400]
FindRoot[{-l-2*p*x+3*x*x-2*y==0,
-2*x+6*y-4*p*y==0,xA2+2*yA2==l},{x,-1.3},{y,-.3},
{p,l}]
FindRoot[{-l-2*p*x+3*x*x-2*y==0,
-2*x+6*y-4*p*y= = 0,xA2 + 2*yA2==l},{x,0.5},{y,- 0.8},
{p,1.4}]
Answers to selected problems 763
This diagram shows the intersection of the plane and the cylinder in Example
30.9.
In[1]:=
cylinder=ParametricPlot3D[(Sin[t],Cos[t] ,u},
{t,0,2*Pi},{u,-2,3},AxesLabel->{x,y,z} ,
DisplayFunction->Identity]
ln[2]:=
plane=ParametricPlot3D[(u*Sin[t],u*Cos[t] ,
l-u*Sin[t]-u*Cos [t]},{t,0,2*Pi},(u,-2,2},
AxesLabel->{x,y,z},DisplayFunction->Identity]
ln[3]:=
Show[cylinder,plane,Viewpoint->{1.929,-1.306,1.553},
DisplayFunction->$DisplayFunction,Shading->False]
In[ 17]:=
ClearAll[x,y,z,r,t,f]
ln[18]:=
x[t_]:=t;y[t_]=t;z[t_]=t;
f[x_,y_,z_]:={x*y,y*z,x*(z-y)}
f [x[t] ,y[t] ,z[t] ]
r[x_,y_,z_]:={x,y,z}
764 Answers to selected problems
Out[20]=
2 2
{t , t , 0}
First line integral
Integrate[f[x[t],y[t],z[t]].D[r[x[t],y[t],z[t]],t],
(t,0,l>]
Out[22]=
2
3
ln[23]:=
ClearAll[x,y,z,f,r]
In [24]:=
x[t_]:=tA2;y[t_]=tA3;z[t_]=tA4;
f[x_,y_,z_]:={x*y,y*z,x*(z-y)}
f[x[t],y[t],z[t]]
r[x_,y_,z_]:={x,y,z>
Out[26]=
5 7 2 3 4
{t , t , t (-t + t ) }
Second line integral
Integrate[f[x[t],y[t],z[t]].D[r[x[t],y[t],z[t]],t],
{t,0,l}]
Out[28]=
341
630
41-34.1. Use lntersection[ ] and Union[ ]. The command Length[ ] gives the number of elements in a set.
41-34.2. Use Table[ ] to generate the sets, and then the distributive law on lntersection[ ] and Union[ ].
41-36.1. Requires the package DiscreteMath'Combinatorica'. The tests are EulerianQ[ ] and HamiltonianQ[ ].
41-36.2. Requires the package DiscreteMath'Combinatorica'. The test for planarity is PlanarQ[ ].
Show[diff1,
Graphics[Line[ { {x, f [x] } , { f [x] , f [x] } } ] ] ,
Graphics[Line[{{0,0},{0.75,0.75}}] ] ,
Graphics[cobwebl],
AspectRatio->Automatic,
DisplayFunction->$DisplayFunction]
This solution is stable. Find other cobwebs for k=3/2 and k=1.
766 Answers to selected problems
41-39.2. Requires the package Statistics'NormalDistribution' in which can be found PDF[ ] and CDF[ ].
41-39.3. Helpful to use Frequencies[ ] from the package Statistics'DataManipulation . BarChart[ ] can be found
in Graphics'Graphics'.
n(n — l)(n — 2) 33
+ —a b + • • • + b".
3!
[ n\ n!
\r J (n — r)!r!
(ii) Pascal's triangle. Each entry (apart from the ones) is the sum of
two previous entries - the one above, and the one above and to the
left - as illustrated by the underlined group:
n = 1 11
n=2 121
n = 3 13 3 1
n — 4 1 4 6 4 1
and so on. Thus
nl nl
„Pr =-, Cr —-(see Section 38.4).
(n — r)! (n-r)!r!
(d) Factorization
a2 — b2 = (a + b)(a — b),
a2 — b3 = (a — b)(a2 + ab + b2),
a2 + b3 = (a + b)(a2 — ab + b2).
(e) Constants
e = 2.71828182 ..., n = 3.14159265
1 radian = 57.29578 ..,°, 1° = 0.01745 ... radian,
360° = 2n radian.
X r = 1 + 2 + 3 H-b n = \n{n + 1)
r= 1
X r2 = 12 + 22 + 32 + • • • + n2 = \n{n + l)(2n + 1)
r= 1
X r3 = l3 + 23 + 33 + • • ■ + n3 = ^n2{n + l)2.
r= 1
Appendix B 769
x — nn + ( — l)"a.
x = 2nn ± /?
x = nn + y.
(a) The area of a triangle is \bh, where b is the length of one side
and h its height from that side.
(b) The circumference of a circle is 2nr, where r is its radius.
(c) The area of a circle is nr2, where r is its radius.
(d) The area of a circle sector is \r29, where r is its radius and 9
the angle of the sector in radians.
(e) The volume of a sphere is fnr3, where r is its radius.
(f) The surface area of a sphere is 4nr2, where r is its radius.
(g) The volume of a cone is %Ah, where h is its height and A the
cross-sectional area of its base.
(h) The area of an ellipse is nab, where a and b are the lengths of
its semi-axes.
Appendix D 771
dy
dx
c (constant) 0
x" (n any constant) nx" ~1
eax a eax
kx (k > 0) kx In k
In x (x > 0) x-1
sin ax a cos ax
cos ax — a sin ax
tan ax a/cos2 ax
cot ax — a/sin2 x
sec ax (a sin ax)/cos2 ax
cosec ax — (a cos ax)/sin2 ax
arcsin ax a/{\ — a2x2y
arccos ax — a/( 1 — a2x2)J
arctan ax a/( 1 + a2x2)
sinh ax a cosh ax
cosh ax a sinh ax
tanh ax a/cosh2 ax
sinh -1 ax a/( 1 + a2x2)2
cosh-1 ax a/(a2x2 — l)1
tanh -1 ax a/( 1 — a2x2)
dv du
u(x)v(x) u-h p —
dx dx
u{x) 1 ( d« dv\
— n-u —
v(x) v \ dx dx/
1 1 dt>
n(x) v2 dx
d y dt/
y(u(x))
du dx
dy dy du
y(n(u(x)))
dv du dx
772 Appendix E
xm (ffl#- 1) 1 xm + 1 + C
m + 1
•Ac:
O
kx/\n k + C
A
In x (x > 0) x In x — x + C
sin ax — (1/a) cos ax + C
cos ax (1/a) sin ax + C
tan ax — (1/a) In cos ax| + C or —(1/a) ln|C cos ax|
cot ax (1/a) ln|sin ax| + C or (1/a) In C sin ax|
sec ax — (l/2a) ln[(l — sin ax)/(l + sin ax)] + C
cosec ax (1/2a) ln[(l — cos ax)/( 1 + cos ax)] + C
l/(x2 + a2) (1/a) arctan(x/a) + C
l/(x2 - a2)i (l/2a) ln|(x — a)/(x + a)| + C or (1/a) tanh- l(x/a) + C
1 /(a2 — x2)* arcsin(x/a) + C (or — arccos(x/a) + C)
1 /(a2 + x2)5 (1/a) sinh' l(x/a) + C or ln[x + (x2 + a2)1] + C
l/(x2 - a2y ln[x + (x2 — a2)5] + C
x eax (l/a2)(ax - l)eax + C
x cos ax (l/a2)(cos ax + ax sin ax) + C
x sin ax (l/a2)(sin ax — ax cos ax) + C
x In x ^x2 In x — jx2 + C
eax cos bx [l/(a2 + 62)] ea-v(a cos bx + b sin bx) + C
eax sin bx [l/(a2 + b2)~\ eax( — b cos bx + a sin bx) + C
Appendix F 773
nl 1 _
tn j.m — 1
sm (m — 1)!
Qki 1 1
s—k s—k
nl 1 _ ^m l g/cr
t"ekt
(s — k)n + 1 (s - k)m (m — 1)!
s
cos kt cos kt
s2 + k2 s2 + k2
k 1
sin kt sin kt
s2 + k2 s2 + k2 k
s2 — k2 s2-k2
t cos kt t cos kt
(s2 + k2)2 (s2 + k2)2
2 ks s
t sin kt - t sin kt
(.s2 + k2)2 (s2 + k2)2 2k
H(r — c) (c > 0) Q~cs/S e~cs/s (c > 0) W-C )
5(f — c) {c > 0) &-CS
e~cs (c > 0) 5(r - c)
Convolution theorem (25.11) If 0(f) G(s) and /(f) «-»• F(s), then
General rules
Signal Transform
X,(v)X2{f - v) dr
J — oo
xP(f) e 2lti7ot
J Period
Appendix G 775
Signal Transform
Mean
Distribution Probability 00 Variance (o2)
n\prqn~r
Binomial np
1
(n — r)!r!
1 1 -p
1
Geometric
1
P P2
knQ~2
Poisson k k
n!
k fed - P)
Pascal r- lQ- iP*d - Prk
P P2
c b'-'n-r
w^r c nb nwb(b + w + n)
Hypergeometric
w + bCn w+ b (w + b)2(w 4- b — 1)
Mean
Distribution Density GO Variance {a2)
o o
x
W
(ke~2x, l 1
Exponential
jo, x I I1
A
1
<P{x) = e~it2 dt
J2n,
for 0 ^ x ^ 30 at 0.01 intervals. For x < 0, 0(x) can be calculated
X from 0( - x) = 1 — 0(x)
Appendix H 777
X 0 1 2 3 4 5 6 7 8 9
0.0 0.5000 0.5040 0.5080 0.5120 0.5160 0.5199 0.5239 0.5279 0.5319 0.5359
0.1 0.5398 0.5438 0.5478 0.5517 0.5557 0.5596 0.5636 0.5675 0.5714 0.5753
0.2 0.5793 0.5832 0.5871 0.5910 0.5948 0.5987 0.6026 0.6064 0.6103 0.6141
0.3 0.6179 0.6217 0.6255 0.6293 0.6331 0.6368 0.6406 0.6443 0.6480 0.6517
0.4 0.6554 0.6591 0.6628 0.6664 0.6700 0.6736 0.6772 0.6808 0.6844 0.6879
0.5 0.6915 0.6950 0.6985 0.7019 0.7054 0.7088 0.7123 0.7157 0.7190 0.7224
0.6 0.7257 0.7291 0.7324 0.7357 0.7389 0.7422 0.7454 0.7486 0.7517 0.7549
0.7 0.7580 0.7611 0.7642 0.7673 0.7704 0.7734 0.7764 0.7794 0.7823 0.7852
0.8 0.7881 0.7910 0.7939 0.7967 0.7995 0.8023 0.8051 0.8078 0.8106 0.8133
0.9 0.8159 0.8186 0.8212 0.8238 0.8264 0.8289 0.8315 0.8340 0.8365 0.8389
1.0 0.8413 0.8438 0.8461 0.8485 0.8508 0.8531 0.8554 0.8577 0.8599 0.8621
1.1 0.8643 0.8665 0.8686 0.8708 0.8729 0.8749 0.8770 0.8790 0.8810 0.8830
1.2 0.8849 0.8869 0.8888 0.8907 0.8925 0.8944 0.8962 0.8980 0.8997 0.9015
1.3 0.9032 0.9049 0.9066 0.9082 0.9099 0.9115 0.9131 0.9147 0.9162 0.9177
1.4 0.9192 0.9207 0.9222 0.9236 0.9251 0.9265 0.9279 0.9292 0.9306 0.9319
1.5 0.9332 0.9345 0.9357 0.9370 0.9382 0.9394 0.9406 0.9418 0.9429 0.9441
1.6 0.9452 0.9463 0.9474 0.9484 0.9495 0.9505 0.9515 0.9525 0.9535 0.9545
1.7 0.9554 0.9564 0.9573 0.9582 0.9591 0.9599 0.9608 0.9616 0.9625 0.0633
1.8 0.9641 0.9649 0.9656 0.9664 0.9671 0.9678 0.9686 0.9693 0.9699 0.9706
1.9 0.9137 0.9719 0.9726 0.9732 0.9738 0.9744 0.9750 0.9756 0.9761 0.9767
2.0 0.9772 0.9778 0.9783 0.9788 0.9793 0.9798 0.9803 0.9808 0.9812 0.9817
2.1 0.9821 0.9826 0.9830 0.9834 0.9838 0.9842 0.9846 0.9850 0.9854 0.9857
2.2 0.9861 0.9864 0.9868 0.9871 0.9875 0.9878 0.9881 0.9884 0.9887 0.9890
2.3 0.9893 0.9896 0.9898 0.9901 0.9904 0.9906 0.9909 0.9911 0.9913 0.9916
2.4 0.9918 0.9920 0.9922 0.9925 0.9927 0.9929 0.9931 0.9932 0.9934 0.9936
2.5 0.9938 0.9940 0.9941 0.9943 0.9945 0.9946 0.9948 0.9949 0.9951 0.9952
2.6 0.9953 0.9955 0.9956 0.9957 0.9959 0.9960 0.9961 0.9962 0.9963 0.9964
2.7 0.9965 0.9966 0.9967 0.9968 0.9969 0.9970 0.9971 0.9972 0.9973 0.9974
2.8 0.9974 0.9975 0.9976 0.9977 0.9977 0.9978 0.9979 0.9979 0.9980 0.9981
2.9 0.9981 0.9982 0.9982 0.9983 0.9984 0.9984 0.9985 0.9985 0.9986 0.9986
3.0 0.9987 0.9987 0.9987 0.9988 0.9988 0.9989 0.9989 0.9989 0.9990 0.9990
Table giving x for specified values of <l>(x) for 0.50 ^ <J>(x) < 0.98 at 0.01 intervals
directed line segment 145 as a repeated integral 551 and variance 688
direction cosines 168, 529 repeated integral, evaluation 543 experiment 666
direction ratios 171, 172 separable type 555 Bernoulli trials 685
directional derivative 494, 501, 530 signed volume analogy 551 outcomes 667
discrete dynamical system 650 duality principle 456, 613, 623 trial 666
discrete systems 418 (see also Duffing equation 382 exponential distribution 695, 696
z-transform) dynamical system 650 exponential function 14
impulsive input 417 base 14
input/output 417 cuts y axis at 45° 14
linear 417 derivative of 41
doubling period 17
notation for sampling 418
e, numerical value 15 doubling principle 17
sampling smooth function 418
echelon form 199 growth, decay 17, 18, 308
transfer function 417, 421
edge (of graph) 626 half-life period 18, 308
transients 424
eigenvalues 214 inverse of logarithm 15
discrete variable 648
characteristic equation 214 Laplace transform of 386
disjunction 618
complex 215 limit of aVe-cx 72
disjunctive normal form 621
by computer algebra 722 Taylor series 89
displacement 34, 142, 144
computer program 752 value of e 15
displacement vector
in differential equations 383
addition 144
of a matrix 214, 228
components 144
positive 230
initial/end-points 145
repeated 218
distance 3 face (of a graph) 639
zero 218
of point from plane 175 eigenvectors 215 factorial function 290
signed 2 by computer algebra 722 feedback 635
distribution computer program 752 Feigenbaum sequence 662
sampling 706 of matrix 215, 220 Fibonacci sequence 664
distributions (pdf) (continuous) 552, 694 orthogonal 229 field (see also vector field)
cumulative 694 and quadratic forms 227 conservative 578-581
cumulative distribution function (cdf) for repeated eigenvalues 218 intensity 578
694 ellipse 6 vector 499
exponential 695, 696 area 770 fixed point 651
mean 696 parametric equations 63 stability 653
normal 696 empty set 607, 670 fluid flow 507, 594, 595, 596
standardized normal 696 energy transformation 362, 382 material derivative 527
uniform 699 envelope 362, 537 focal length 81, 502
variance 696 equilibrium force
distributions (discrete) of forces 177 components 176
and Bernoulli trials 685 point 370, 371, 373, 376 equilibrium 176, 177
binomial 685-686, 692 errors 75, 492, 522 (see also moment about axis 191
geometric 689 approximation) moment about point 190
hypergeometric 693 estimate (statistical) 705 at a point 176
mean (expected value) 687 estimator of parameter 701 resultant 176
Pascal (negative binomial) 693 biased/unbiased 706 Fourier series 434—451
Poisson 691-692, 699 sample mean 707 approximation, nature of 441, 442
variance 688 sample variance 708 average value 439, 442
divergence (of a vector field) 587, 600, standard error 708 carrier wave 458, 468
601 ethanol molecule 627 coefficients 436, 438-439
in curvilinear coordinates 600, 601, Euler’s constant 728 complex coefficients 449
602 Euler’s formula (complex numbers) 103 computer program 759
identities 603 Euler’s method (differential equations) cosine series 443
theorem 593 352, 727 of even functions 443
divergent series 88 computer program 757 extensions 445
dot product 163 (see scalar product) Euler’s theorem (graph theory) 639 finite range, on 444
double integral 544 eulerian graph 631 Fourier transform (see Fourier
area increment 559 computer test for 733 transform)
change of variable 553, 557, 559 events fundamental frequency 435
changing order, constant limits 546 exhaustive list of 670 half-range series 446, 447
changing order, nonconstant limits independent 677 harmonics 435
548 intersection 669-670 at a jump 442
examples 552 mutually exclusive 670 Laplace transform of 468
inverse of Jacobian 517, 563 subset of sample space 668 of odd functions 443
Jacobian 557, 559 union 669-670 one from another 448
nonrectangular regions 545 Venn diagram 670 Parseval’s identity 466, 468
polar coordinates 553 exp(jc) 14 period 2ty 439
rectangular region 544 expected value (mean) 686, 695 period T 436, 439, 449
region of integration 547, 550 rules 688 periodic function 435, 437
Index 783
restricted range 444 restricted stationary points 533-537 gamma function 290
sawtooth wave 468, 729 stationary points 532 gas, equation of state 524
sine series 443 tangent plane 529 gate (logic)
spectrum 447 functions of one variable 64-65 (see also AND 618
standard form 436 derivative; differentiation) EXOR 621
symmetry, use of 442 argument of 6 NAND 618
trigonometric integrals 437 delta 404, 728 NOR 618
two-sided 449 discontinuous 7 NOT 618
and vibrations 435 differentials of 356 OR 617
Fourier transform (see also Fourier estimating small changes 75 Gauss-Seidel method (for linear
series, two-sided) equations) 208
even 7, 260
carrier wave 458 diagonal dominance 209
exponential 14
convolution integral 461 Gaussian elimination 198
harmonic 11, 326
convolution theorem 461 back substitution 198
Heaviside 7, 717
cosine and sine 459 and echelon form 199
hyperbolic 18, 107
definition 452 inverse matrix 201
implicit 6
Fourier transform pair 452 pivots 199
impulse 404
generalized functions 459 geometric distribution 689
incremental approximation 76
impulse function 6(t) 458 geometric series 24, 88
input/output 6 common ratio 24
inverse of a product 461 inverse 13
inverse transform 454 sum of 25
logarithm 15 geometrical area 244
nonperiodic functions 451
maximum/minimum 66 in polar coordinates 267
notations 454
mean value 263 gradient (straight line) 4
Parseval theorem 466
odd 7, 259 gradient vector (grad) 499, 526
periodic function 460
periodic 11 curvilinear coordinates 599-600, 601,
properties of 453
point of inflection 67 602
Rayleigh’s theorem 465
rational 21 identities 603
rules, table of 456, 774
signum (sgn) 8, 27 graphs 3 (see also curves)
sidebands 458
stationary points 68 gradient 30
sine function 455
step 648 sketching 70
spectral distribution 452
switching 622 slope 30
table of 775
translation of 6 graph theory (networks) 626
n(t) (top-hat function) 454, 455
trigonometric 9 bipartite graph 638, 639
III(r) (shah function) 464
unit step 7 branch 631
frameworks 640
functions of two variables 471 circuit 629
bipartite graph 640
chain rule 477 circuit loop 632
minimum bracing 640
chain rule, one parameter 505 circuits, electrical 632-635
frequency 12, 327 compatibility graph 641
chain rule, two parameters 515
angular 12, 327 complete graph 627, 639
contour map 471
domain 343 connected graph 627
curves, angle between 499
forcing 333 cotree 631
curvilinear coordinates 511
polygon (statistics) 701 cutset 632
relative 667, 668 dependent, independent variables 471
depiction of 471 cutset, fundamental 633
friction 312 cycle 629
function 6 (see functions of one, two and derivatives, mixed 476
degree of a vertex 627
N variables) differentials, use of 517
digraph 627
complementary 319, 656 directional derivative 493, 501
directed graph (digraph) 627
generating 663 errors 490, 492
disconnected graph 627
implicit 6 gradient vector 500
edge 626
functions of N variables 521 (see higher derivatives 476
eulerian graph 631
separately functions of two implicit differentiation 496
Euler’s theorem 639
variables) incremental approximation 488
face 639
chain rule, more than one parameter Lagrange multiplier 506
frameworks 640 (see also frameworks)
525 least squares method 483 hamiltonian graph 631
chain rule, one parameter 525 level curves 471 handshaking lemma 628
derivative, mixed 521 linear approximation, best 488 labelled graph 629
directional derivative 529 maximum/minimum 480, 506 link 631
and envelope 538 normal to a curve 498, 500, 518 loop 627
errors 522 normal to surface 479, 527 multigraph 627
gradient vector 525, 532 orthogonal systems of curves 496 node 626
higher derivatives 522 partial derivatives 473, 474 path 629
implicit differentiation 524 restricted stationary points 506 planar graph 626
incremental approximation 522 stationary points, tests for 480- regular graph 627
Lagrange multipliers 534, 535, 536 481 signal flow graph 635 (see signal flow
level surface 532 steepest ascent/descent 495 graphs)
normal to surface 528, 532 surface 471 simple graph 627
partial derivatives 522 tangent plane 479 spanning tree 631
784 Index
graph theory (networks) (cont.) incremental approximation 76, 489, 522 interval 1
subgraph 631 index notation for derivatives 83 infinite 2
traffic signal phasing 641 induction proof 649 inverse function 13
trail 629 inductor basic property 13
tree 631 complex impedance 343, 406 derivative of 59
unlabelled graph 629 phasor 342 integration of 289
vertex 626 inequality 1 reflection property 13
walk 629 infinite series 86 inverse matrix 122, 137
weights 627 convergence 87 isocline 350
gravitational field 581 divergence 88 iterative methods (see approximation)
Green’s theorem 574 geometric 88
partial sums 87
sum 87 Jacobi method (for linear equations) 209
Taylor series 88, 89 Jacobian (double integration) 558, 559
hamiltonian graph 631 inflection, point of 67, 179 inverse of 517
computer test for 765 inner product (see scalar product) jump (in function) 7
handshaking lemma 628 input 417
harmonic forcing 314
integer floor function 432
harmonic function 11, 326
integral (see also antiderivative;
standard form 326 Kirchhoff laws 344, 632
integration; double integral; line
harmonic oscillation 326 Kuratowski 639
integral)
phase diagram 369
and area 249
phasor 340
area analogy 259, 268
harmonic oscillator 306, 326-329, 367,
area, polar coordinates 267
368, 726 Lagrange multiplier 509, 510, 534-537,
of complex functions 256
computer program 757 731
definite 250, 253 computer program 762
harmonics 434
differentiation of 261
Heaviside unit function 7, 396, 717 Laplace equation 486
Laplace transform of 397 differentiation under the integral sign
Laplace transforms 384—433 (see also
histogram 701 485 discrete system; z-transform)
homogeneous algebraic equations 205, of even function 260
and circuits (see circuits)
206 (see also linear algebraic improper 255
by computer algebra 728
equations) indefinite 240, 251 convolution theorem 413, 416, 556-
homogeneous differential equations 296 infinite 255 557
(see also differential equations, integrand 250 definition 385
second order) as limit of a sum 249, 253, 265 delay rule (second shift rule) 398
Hooke’s law 234, 329 limits of integration 251 delta function 405, 728
hyperbola 6 limits of integration, variable 261 of derivatives 392
hyperbolic functions 18, 19, 107 numerical evaluation of 250, 264, 268, differential-delay equation 431
derivatives 53 275 differential equation, variable
identities 19, 20 of odd function 259 coefficients 432
inverse 20 rectangle rule 250, 269 and differential equations 394—396
trigonometric functions, relation with Simpson’s rule 275 discrete systems (see z-transform)
107 solid of revolution 266 division by x 402
hypergeometric distribution 693 square bracket notation 246 of Fourier series 468
surface 589 of Heaviside unit function 396
table of integrals 772 impedance, x-domain 406
trapezium rule 269, 725 impulse function 405
identity volume 592 impulsive input 415
algebraic 21 integral equation 403, 431, 432 integral equations 403, 431, 432
of functions 356 Volterra 431 inverse 390
impedance, complex 343-344 integrand 250 inverses, table of 773
capacitor 343, 406 integrating factor 321, 359 multiplication by ekt 388
in frequency domain 343 integration 248-291 (see also double multiplication by f 389
inductor 343, 406 integration; integral) notation 384
parallel 344 and area 249, 258 original 390
resistor 343, 406 change of variable 277-285 of a partial differential equation 487
series 344 change of variable, definite integrals partial fractions 391
in x-domain 406 282 of a product 413
in tu-domain 343-344 of inverse function 289 quiescent system 395
implicit differentiation 58, 496, 524 partial fractions 285 rules, list of 773
improper integral 255 by parts 286-291 x-domain 403, 406, 408
convergence 256 reduction formulae 290-291 scale rule 387
divergence 256 by substitution 277-285 shift rule 388
impulse function 404 (see also delta as a sum 249, 253, 265 sifting 404
function) of trigonometric products 282 standard functions 385-386
impulsive input 416, 417 interference 329 of switching functions 397
increment 31 intersection of sets 607, 670 table of 391, 773
Index 785
normal coordinates 234 perfect differential form 359, 571 estimated mean 703
normal distribution 696 period 11, 12, 327 mean 703
standard normal curve 697 doubling 660 population problems 18, 308, 364, 375,
standardized 696 periodic functions 11 (see also harmonic 431, 487, 658
table 776 functions; Fourier series) position vector 152
number line 1 amplitude 12, 327 derivative of 157
numbers angular frequency 12, 327 positive definite
complex 96 (see also complex and Fourier integrals 460 matrix 229
numbers) frequency 12, 327 quadratic form 230
index laws 768 integrals of 436 potential 581
modulus 2, 101 lead/lag 328 energy 39, 233, 581
rational 606 period 11, 12, 327 field 582
set notations 606 phase 12, 327 single-valued 581
square root 2 phase difference 328 product rule (differentiation) 48, 65
numerical methods (see approximation) spectrum 447 probability (see also distributions;
wavelength 11, 12, 327 events; random event; random
permutations 673, 768 (see also variable; sample space)
Ohm’s law 632 combinations) addition law 672
ordered pair 100, 613 perspective 182 axioms 671
ordinate 2 phase 12, 327 Bayes’ theorem 671
origin of coordinates 1 difference 328 conditional 675-676
original (Laplace transform) 390 phase plane 369 (see also differential counting method 673
orthogonal matrix 228, 230 equations, nonlinear) cumulative distribution function (cdf)
rotation of axes 231 general 275-377 694
orthogonal systems orbit 369 density function (pdf) 694
of coordinates 513, 599 path 369, 373 distributions (see distributions)
of curves 496 qualitative methods 366 and expected value 687-688
oscillations phasor 339-363 and experiments 667
damped 306 addition 341 notation 668, 675
forced 332 algebra of 341 and relative frequency 667, 678
harmonic 327 capacitor 343 and sample space 667
longitudinal 233 complex impedance 343-344 and set notation 669
oscillator, linear 330, 332 definition 339 total 678
outlier 705 of derivative 341
output 417 diagram 342
frequency domain 343
quadratic equation 96, 768
harmonic oscillation 340
quadratic form 227
parabola 5 inductor 343
quartiles 704
parallelogram of integrals 341
quotient rule (differentiation) 51, 65
area (determinant) 563 resistor 343
area (vector) 187 time domain 343
parallelogram rule transfer function 346
complex numbers 101 voltage gain 346 radian 8, 768
vector addition 148 pitch 434
radioactive decay 308
parallelepiped pitchfork bifurcation 660 random
volume (determinant) 194 pivot 199 event 666, 683
volume (vector) 189 planar graph 638 sample 701
parameter (statistics) 701 computer test for 765 walk 664
parametric equations of a curve 60, 504, plane random variable 683
532 cartesian equation 153, 174 continuous 694
Parseval identity 466, 468 normal vector to 174 discrete 684
partial derivative (see derivative, partial; tangent 478, 479, 529 mean (expected value) 687
functions of N variables) vector equation of 153, 174 probability distribution 684
partial fractions 20 Poisson distribution 691-692, 699 variance 688
in integration 285 approximation to binomial walk 664
and Laplace transforms 391 distribution 692 rational function 21
rules 21-22 polar coordinates 9-10 reciprocal rule (differentiation) 51
and z-transforms 425-426 and complex numbers 102 recurrence relation 353 (see also
partial sum 87 curve sketching in 717 difference equations)
Pascal distribution 692 derivative Ay/dx 61 reduction formulae 290-291
Pascal’s triangle 768 in double integration 553 region of integration 547, 550
path (see differential equations, geometrical area in 267 regression 710, 711
nonlinear; line integral) motion in 158 controlled variable 710
path (graph theory) 629 pole (see z-transform) least squares estimate 711
pdf (probability density function) 694 polynomial 21 line 712
pendulum 39, 309, 335, 373-375, 490 Taylor 84-85, 719 linear model 711
computer program 757 population (statistics) 701 scatter diagram 710
Index 787
Taylor series (cont.) variance 688, 696 orthogonal coordinates (general) 539,
computer program 750 sample 708 599, 601, 602
variate 701 paraboloidal coordinates 603
General point, at 94
interval of validity 88 vectors (see also vector field) scale factors 599
acceleration 157-159 solenoidal 595
large x 92
polynomial approximation 85, 719 angle between 164 spherical polar coordinates 602
table 89 basis 155, 166, 184 surface integral 589-590
tetrahedron 722 bracketed sums 148 volume integral 592
time domain 343 column 113, 120 vector product
total derivative 505 components 144 of basis vectors 184
total probability 678 coplanar 150, 189 direction of 186
total waiting time 642 cross product (see vector product) and moment of force 190, 191
traffic signals and curvature 178 rules 184, 187
compatibility graph 641 differentiation 157, 159 vector space 220
phasing 641 directed line segment 145 vector triple product 192
subgraph 641 displacement 144 velocity 34, 35
total waiting time 642 displacement on an axis 142 angular 195
transfer admittance 347 dot product (see scalar product) radial 159
transfer function 346 equality 147 relative 150
frequency domain 347 equations 152 transverse 159
s-domain 408 and force 176, 190 vector 158
2-domain 421 gradient 499 (see also gradient Venn diagram 608
transfer impedance 347 vector) vertex 626
transform (see Laplace transform; z- initial/end points 145 vibrations
transform; discrete systems; Fourier invariance 187 differential equations of 234
transform) magnitude (length) 147 and Fourier series 435
transient 332 multiplication by a scalar 147 normal coordinates 234
of discrete signals 424 normal to curve 498, 500 volume
translated function 4, 6 normal to plane 174 of cone 266
transpose 118, 132 normal to a surface 478, 479, 527, 532 ellipsoid 274
trapezium rule 269, 725 notation 146 integral 592
tree (graph theory) 631 parallelepiped 189, 194
parallel 147
spanning 631 of solid of revolution 266
parallelogram rule 148
trial 666 parametric equation 153 table 770
Bernoulli 685 perpendicular 165
triangle rule (vectors) 148 position 152
triangle, vector area 194, 721 and relative velocity 150
trigonometric functions 9 right/left-handed system of 185 walk (graph theory) 629
derivatives of 42 row 113, 120 walk, random 664
exponential form 104 rules of vector algebra 146-150 water clock 274
identities 11, 109, 769 scalar product 164 wave
integrals of products 282 scalar triple product 188 attenuating wave 475
inverses 14 sense of 147 equation 478
truth tables (Boolean algebra) 617 sum of 147-148 number 327
for gates 617-619 tangent to curve 157 wavelength 11, 12, 327
inverse method 621 Wheatstone bridge 81, 345, 346
triangle rule 148
for switches 622-623 whisker 705
unit 155-156, 166
vector product (see vector product) work 253, 265, 576, 577, 579
and velocity 150, 158
uniform distribution 699 vector field 499, 587 (see also curl;
union (of sets) 606, 607, 670 divergence; gradient)
unit step function 7 conservative 597 z-transform (see also discrete systems)
universal set 606 curl 595 (see also curl) complex plane 424
cylindrical polar coordinates 539, 599, convolution theorem 424
600 definition 420
del operator 499, 589, 596 delay circuit 419
valency 627 divergence 587 (see also divergence) difference equations 428
van der Pol equation 367, 380, 727 divergence theorem 593 differentiation analogue 432
variable field lines 587-588 inverse 420
controlled (independent) 710 fluid flow 587, 594, 595, 596 and Laplace tranform 420
dependent 6, 471 gradient 499, 526 (see also gradient) poles of 426
discrete random 684 identities 603 stability of discrete circuit 426
independent 6, 471 integral curves 587 time-delay rule 432
random 684 irrotational 596 transfer function 420, 421
response (dependent) 711 Laplace’s equation 603 transients, growth of 426-429
Many students beginning their engineering and science courses need a book on
mathematical methods to underpin their studies. This textbook offers an accessible and
comprehensive grounding in many of the mathematical techniques required in the early
stages of an engineering or science degree, and also for the routine methods needed by
first-year mathematics students.
Mathematical Techniques starts by revising work from pre-university level before
developing the more advanced material which students will encounter during their
undergraduate studies.
In this second edition, the content of the book has been revised and extended, and now
includes: the z transform for discrete systems; the Fourier transform; a revision of the
chapter on vectors, and a new chapter on vector fields including divergence and
curl operators; some new applications in graph theory; and three new chapters on
elementary probability, random variables, and statistics. The chapter on applications of
symbolic computing has been extended to cover these changes in the main text, and
remains a valuable separate chapter in the book.
This new edition now falls into eight parts:
♦ Elementary methods, differentiation, complex numbers
♦ Matrix algebra and vectors
♦ Integration and differential equations
♦ Transforms and Fourier series
♦ Multivariable calculus
♦ Discrete mathematics
♦ Probability and statistics
♦ Projects using symbolic computation
Chapters and sections are largely self-contained, allowing students to concentrate on the
specific methods they need to master. The book contains nearly 500 fully worked examples,
more than 2000 exercises (with selected answers), and over 120 computing projects.
The text is accessible, widely illustrated, and stands as an ideal introduction to students
in the first year of their university course.
Dominic Jordan and Peter Smith are members of the Mathematics Department at
Keele University. They both have long experience of teaching this material, at many
different levels, to a wide variety of students.
'... an introduction covering all the standard techniques...
a large and friendly format.' New Scientist
'... exactly the book that is now needed ... just the thing to become ISBN 0-19-856461-9
the recommended text for freshman courses...'
The Times Higher Education Supplement