Mathematics and Physics For Chemists 1.: R.L.Jacobs
Mathematics and Physics For Chemists 1.: R.L.Jacobs
CHEMISTS 1.
R.L.JACOBS.
INTRODUCTION.
These notes summarise the Mathematics for your degree course. The Physics
will be given by a di↵erent lecturer in a di↵erent style. The notes contain the
basic outline of the course but more material and a fuller treatment will be
given in the lectures so do not feel that you can dispense with the lectures.
Remember Mathematics is a language and an active discipline. You cannot
learn it by reading alone; you have to participate. You also have to tackle
the problem sheets which will be handed out later.
The course will be taught by lectures, tutorials and an office hour when
I will be available to talk to students individually or in small groups on a
drop-in basis. If you decide to come to the office hour please come early
because I do not want to hang around if there are no takers. In the lectures
I will project the notes onto a screen and talk about them and write addi-
tional material on the board. I will also work out some problems which are
presented in the notes but not solved there.
If the course is too easy or too difficult let me know through the class reps.
I will take comments and constructive criticisms seriously.
You should be familiar with the following topics: basic algebraic operations
of addition, subtraction, multiplication and division, relationships such as
equality and inequality, powers, simple functions such as polynomials, the so-
lution of quadratic equations, rational expressions, trigonometric functions,
the exponential function, the natural logarithm, graphs. If you are rusty on
any of these topics feel free to ask me for help.
1
TOPIC A. SETS AND FUNCTIONS.
1. SETS.
Another important set is the empty set i.e. the set with no mem-
bers which is written ; .
2
There are some more sets which are important:
If we write {a, b} for the set containing two points a and b only
then (a, b) [ {a, b} = [a, b] but (a, b) \ {a, b} = ;.
Also 0 2/ (0, 1) but 1 2 [0, 1] and 1 2 (0, 2) and = ( 1, 1).
2. FUNCTIONS: DEFINITIONS .
Consider two sets, a source set and a target set . Then a function
or mapping is a rule which associates an element (or several elements)
of with each element of . In other words if you are given x 2
then we can calculate an element y 2 (or perhaps more than one
element of ). A function is not necessarily expressed by an algebraic
formula. The rule involved may be expressed in some other way and
we shall see some examples..
3
The source set is called the domain of f . The subset of onto
which maps is called the range of f . In other words for each ele-
ment of the range we can find an element of the domain which maps
onto it but there are perhaps some elements of the target for which we
can find no corresponding element of .
Note that the range and the target are not necessarily the same.
Some examples:
1. f : ! where f (x) = x2 + 5 .
Here the domain is and the target is also but the range is
[5, 1) .
2. f : ( 1, 0) [ (0, 1) ! where f (x) = 1/x .
Here the domain is ( 1, 0) [ (0, 1) , the target is and the
range is ( 1, 0) [ (0, 1) .
3. f : ! where f (x) = [x] and [x] is the largest integer less
than or equal to x. This is called the staircase function and a
graph will be presented.
Notice that we have not used an algebraic formula to define f .
4. f : ! where f (x) = sin x.
Here the domain is , the target is and the range is [ 1, 1] .
5. f : [0, 1) ! where if we are given x 2 [0, 1) we calculate y
2
from y = x .
Note that x must be positive
p or zero and that for each value of x
we get two values of y = ± x . This is a two-valued function.
The target and the range are both . Two-valued functions
are very awkward so we make this into a one-valued function by
eliminating the negative values of y and in this case the range
becomes [0, 1).
6. f : [ 1, 1] ! where if we are given x 2 [ 1, 1] we calculate y
from sin y = x .
Note that for each value of x we get many values of y = sin 1 x .
Again we make this into a one-valued function by keeping only
the values of y in the range [ ⇡/2, ⇡/2] .
We now have f : [ 1, 1] ! [ ⇡/2, ⇡/2].
4
3. SPECIAL FUNCTIONS.
f (x) = sin x and g(x) = cos x are periodic with period 2⇡.
For these functions the domain is and the range is [ 1, 1].
5
4. There are four types of monotonic functions:
f (x) is monotonic increasing if when x1 < x2 then f (x1 ) f (x2 ).
f (x) is strictly monotonic increasing if when x1 < x2 then f (x1 ) < f (x2 ).
f (x) is monotonic decreasing if when x1 < x2 then f (x1 ) f (x2 ).
f (x) is strictly monotonic decreasing if when x1 < x2 then f (x1 ) > f (x2 ).
Examples:
f : ! where f (x) = 2x + a is strictly monotonic increasing.
1
Warning: It is a very bad mistake to put f (y) = 1/f (y).
6
Examples:
7
TOPIC B CALCULUS
1. LIMITS
Limits are a key concept in calculus. They are concerned with what
happens to a function when the argument approaches a value without
ever reaching it. They are also useful in defining functions when the
argument gets very large either positively or negatively.
sin x
Example: Consider f (x) = . This function is not defined at
x
x = 0 because to evaluate it you have to try to evaluate 0 divided by
0 which is not allowed. What we have to do is to see what happens as
x approaches 0. If you use your calculator to evaluate f(0.1), f(0.01),
f(0.001), f(0.0001) you will soon see that f (x) approaches 1 as x ap-
proaches 0.
8
We write
limx# f (x) = c1 for the limit from the right and
limx" f (x) = c2 for the limit from the left.
It may be that c1 6= c2 in which case x!a
lim f (x) does not exist.
However if c1 = c2 then the limit does exist and lim f (x) = c1 = c2 .
x!a
Example:
Suppose f (x) = sgn(x)
(i.e. f (x) = 1 if x > 0 and f (x) = 1 if x < 1)
then lim f (x) = 1 and lim f (x) = 1.
x"0 x#a
In this case lim f (x) does not exist.
x!a
Some examples:
9
2. CALCULATION OF LIMITS.
If both lim f (x) and lim g(x) exist and we know their values then we
x!a x!a
can calculate the following combinations very easily (except in certain
indeterminate cases which will be discussed below):
Some examples:
1. lim xµ = aµ
x!a
but care is needed and we require that µ be positive when a = 0.
cos x cos x
2. lim = 1 and lim = 1
x#0 x x"0 x
sin ax
3. lim = a
x!0 x
10
Examples:
11
7. We now anticipate a result of calculus. There is a procedure
called L’Hopital’s Rule which helps you to evaluate limits of
f (x)
the form lim where both f (x) and g(x) are continuous at
x!a g(x)
x = a andf (a) = 0 and g(a) = 0 and g 0 (a) 6= 0.
(1 + x)1/2 1 1/2 1
lim = = .
x!0 x 1 2
12
3. DIFFERENTIAL CALCULUS.
We calculate the slope of the secant of the function f (x) between the
points x0 and x0 + x from the formula
f (x0 + x) f (x0 )
SLOPE = .
x
We get the slope of the tangent to the curve at x = x0 (otherwise
known as the derivative) by taking the limit of the slope of the secant
as x ! 0.
********************************************************************
d f (x0 + x) f (x0 )
f (x0 ) = lim .
dx x!0 x
********************************************************************
YOU MUST COMMIT THIS DEFINITION TO MEMORY.
If the limit does not exist or is ±1 then the derivative does not exist.
In other words the graph of the function does not have a properly de-
fined tangent at the point.
(x + x)2 x2
Then f 0 (x) = lim
x!0 x
(x2 + 2 x x + x2 ) x2
= lim
x!0 x
2 x x + x2
= lim = 2 x.
x!0 x
13
(b) Suppose f (x) =| x |. We now calculate limits from the right
(where x > 0) and from the left (where x < 0) both at x = 0.
|0+ x| |0|
Limit from right = lim =1
x#0 x
because the numerator and denominator are both positive.
|0+ x| |0|
Limit from left = lim = 1
x"0 x
because the numerator is positive but the denominator is negative.
However you can calculate the derivative at any point x > 0 and
you get f 0 (x) = 1 and you can also calculate the derivative at any
point x < 0 and you get f 0 (x) = 1.
14
You also need to know how to di↵erentiate combinations of functions.
In what follows u(x) and v(x) are any di↵erentiable functions of x.
1. SUM RULE:
f (x) = u(x) + v(x) ) f 0 (x) = u0 (x) + v 0 (x).
2. PRODUCT RULE:
f (x) = u(x) v(x) ) f 0 (x) = u0 (x) v(x) + u(x) v 0 (x).
3. QUOTIENT RULE:
f (x) = u(x)/v(x) ) f 0 (x) = (u0 (x) v(x) u(x) v 0 (x))/v(x)2 .
4. CHAIN RULE:
f (x) = u(v) where v = v(x) ) f 0 (x) = u0 (v) v 0 (x).
df du dv
Or alternatively = .
dx dv dx
This enablespyou to di↵erentiate a function of a function
e.g. f (x) = 1 + x2 where u(v) = v 1/2 and v(x) = 1 + x2 .
5. INVERSE FUNCTION RULE:
Suppose y = f 1 (x) then we first write x = f (y), then calculate
dx/dy = f 0 (y) and finally write dy/dx = (f 0 (y)) 1 .
! 1
dy dx
In summary = .
dx dy
6. IMPLICIT FUNCTIONS:
Suppose x and y are related by an implicit equation f (x, y) = 0
which we cannot solve for y in terms of x or for x in terms of
dy
y. Then it is still possible to calculate in terms of partial
dx
derivatives. We shall come to this later.
With the help of the rules above you should be able to di↵erentiate any
combination of simple functions no matter how complicated.
You MUST remember these rules.
15
4. EXTREME VALUES, ASYMPTOTES AND CURVE SKETCHING.
Third and higher derivatives are usually written f (n) (x) with n = 3
or more to save counting dashes. You then have the following rules
for a point P on the curve with coordinates (x, y):
1. If f 0 (x) = 0 and f 00 (x) > 0 then there is a minimum at P –
type B.
2. If f 0 (x) = 0 and f 00 (x) < 0 then there is a maximum at P –
type A.
3. If f 0 (x) = 0 and f 00 (x) = 0 you need more information to
determine the nature of P .
4. If f 0 (x) = 0 and f 00 (x) = 0 but f (3) (x) 6= 0 then there is a
point of inflexion with horizontal tangent at P – type C.
5. If f 0 (x) 6= 0 and f 00 (x) = 0 and f (3) (x) 6= 0 there is a point of
inflexion at P but the tangent is not horizontal – type D.
16
(Other cases rarely arise and are more complicated. For the
record:
If the first derivative which is not 0 is of even order then the func-
tion has a maximum or minimum;
But if the first derivative which is not 0 is of odd order then you
have a point of inflexion with horizontal tangent;
Finally if f 0 (x) 6= 0 and all other derivatives up to but not includ-
ing an odd one are zero then you have a point of inflexion but the
tangent is not horizontal.)
Examples:
Find all the extreme values of the following functions and de-
termine their nature. Find also all points of inflection. Sketch the
curves.
1. f (x) = 2 x2 + 3 x + 1
2. f (x) = x3 2 x2 x + 2
3. f (x) = sin2 x sin x + 2
(b) ASYMPTOTES.
Example:
3x
Suppose f (x) = .
x+4
Then lim f (x) = 3 and also lim f (x) = ±1.
x!±1 x! 4
Thus the line y = 3 is a horizontal asymptote and the line x = 4
is a vertical asymptote. Notice that the vertical asymptotes arise
from the zeroes of the denominator.
17
Also f (x) = 0 at x = 0. Further at a large positive value of
x say x = 100 we have f (x) < 3 and at a large negative value of
x say x = 100 we have f (x) > 3.
5. POLAR CO-ORDINATES.
18
a point. This is the case in many Quantum Mechanical problems
concerning atoms and molecules which come up in Chemistry.
Example:
Draw graphs of the following polar equations r = a cos 2✓ and
r = a sin 3✓
19
5. INTEGRAL CALCULUS.
Z
dF (x)
Thus = f (x) which is also written f (x) dx = F (x)+c.
dx
The arbitrary constant c is added because on di↵erentiating it
gives 0. You must always put in the arbitrary constant explicitly
when integrating. This form of integral is called the indefinite
integral.
20
The second way of understanding an integral is as an area:
Consider the area A between the curve y = f (x), the x axis and the
two vertical lines x = a and x = b. (See diagram.)
4. Take the limit of the sum as the width of each element goes to 0.
(You must remember of course that the number of elements goes
up as the width goes down.)
m
X
A = lim f (xi ) xm .
m!1
i=1
21
*******************************************************************
******************************************************************
We can now see that the name given to the variable of integration
has no significance. (It is called a dummy variable.) So we can write:
Z b Z b
f (x) dx = f (t) dt
a a
22
1 INSPECTION
N.B. The use of modulus signs in (c), (g), (h) and (j) is designed
to ensure that the argument of the ln function is positive.
23
Here are some examples of integration by inspection:
Z
1. x5 dx. We note that when we di↵erentiate x6 we get 6 x5
so
Z
the integral equals x6 /6 + c.
2. sin x cos x dx. We note that when we di↵erentiate sin2 x
we get 2 sin x cos x so the integral equals 1
2
sin2 x + c.
Z
3. (x3 + sin x + 2/x)d x = x4 /4 cos x + 2 ln x + c.
Z Z
x x 1+1
4. dx = dx
xZ ✓1 ◆ x 1
1
= 1+ dx = x + ln | x 1 | +c
x 1
2 CHANGE OF VARIABLE
Examples:
Z
x
1. We wish to evaluate dx .
1 + x2
du
We put u = 1 + x2 and then = 2 x.
dx Z
1 1
Consequently the integral equals du = ln u + c.
2 u
Z
2. sin ✓ cos ✓ d✓.
Z
2
3. x ex dx.
Z
1
4. p dx.
1 + x2
24
One very commonly used substitution is called the t-substitution.
It is used for integrating rational expressions which involve trigono-
metric functions in numerator and denominator and reduces these
expressions to ratios of polynomials.
The substitution is
x
t = tan .
2
It is a matter of easy trigonometry to show the following:
2t 1 t2 2t 2 dt
sin x = , cos x = , tan x = , dx =
1 + t2 1 + t2 1 t2 1 + t2
You should remember these.
Example: Z
1
Evaluate the following integral dx.
1 + cos x
Using the t-substitution we find the integral is equal to
Z Z
1 t2 1 2 dt x
(1 + ) = 1 dt = t + c = tan + c
1 + t2 1+t 2 2
3 INTEGRATION BY PARTS
25
Z
dv
2. ln x dx. Here we put u(x) = ln x and =1
dx
du 1
Then = and v(x) = x.
dx x
We
Z now substitute into
Z the formula and get
ln x dx = x ln x 1 dx = x ln x x + c.
Z
dv
3. ex sin x dx. Here we put u(x) = sin x and = ex .
dx
du
Then = cos x and v(x) = ex . We now substitute into
dx
the formula and get
Z Z
ex sin x dx = ex sin x ex cos x dx. (1)
This is quite a lot of work but we get two for the price of
one because substituting this last into equation (2) we get
Z
ex cos x dx = 12 (ex sin x + ex cos x) + c.
26
TOPIC C. SEQUENCES AND SERIES.
I INFINITE SEQUENCES.
There is a rule or formula which tells you how to calculate the terms
in the sequence such as e.g. an = 1/n or bn = ln n.
27
Examples:
Use the four statements above to categorise the following sequences:
an = ( 1)n , bn = ( 1)n /n, cn = 1 1/n2 , dn = n
The series is convergent if the limit exists and is finite but divergent
otherwise.
28
This series is convergent if | r |< 1 and divergent otherwise. This
demonstrates that a series can be covergent or divergent depending on
the value of some parameter, r in this case.
Both of these cases are fairly obvious because we can calculate the
sum to N terms exactly but in most cases we cannot. We need some
way of testing whether a series converges or not in these cases.
This is a very easy test to apply so you should always carry out
this test right at the start.
Examples:
1 ✓
X ◆ 1 ✓ ◆
X 1 ✓
X ◆
1 1 1
1
n=1 n2 n=1 n n=1 n2
29
(b) Ratio Test.
| an+1 |
Calculate t = n!1
lim .
| an |
If t < 1 then the series converges.
If t > 1 then the series diverges.
If t = 1 then you do not know.
This is also a very easy test and it should be the second one
you try.
Examples:
1 ✓
X ◆ 1 ✓
X ◆ 1 ✓ n
X ◆ 1 ✓ ◆
X 1 ✓
X ◆
1 1 3 +1 1 1
n
2 +1 n! n
2 +1 n n2
n=1 n=1 n=1 n=1 n=1
Examples:
1 ✓
X ◆ 1 ✓ n
X ◆ 1 ✓ ◆
X 1 ✓
X ◆
1 3 +1 1 1
n
2 +1 n
2 +1 n n2
n=1 n=1 n=1 n=1
30
(d) Alternating Series.
Examples:
1 ✓
X ◆ 1 ✓
X ◆
11 n
( 1)n ( 1)n 1
2
n=1 n n=1 n +1
31
V POWER SERIES AND TAYLOR SERIES.
| cn |
|x b |< R where R = n!1
lim
| cn+1 |
R is called the radius of convergence because it defines the region
of the x-axis centred at b in which the series converges. The series
diverges outside this region because there t > 1. We can’t say
anything about the ends of the region.
32
Examples:
If you are given a function such as sin x or cos x and you can
di↵erentiate it as many times as you like then you can get an ex-
pansion of the function as a Taylor series about the point at which
the derivatives are evaluated. All the derivatives of the Taylor se-
ries match up to the derivatives of the original function at the
point about which the expansion is made.
Suppose the expansion is made about the point x = 0 and the
function is f (x) then
*****************************************************
There is an important condition. The function is only equal to the
series if the series converges so you should check for convergence.
If the series doesn’t converge it is useless.
*****************************************************
33
If you need to expand about the point x = b you replace the 0’s
in the above expression by b’s and the x’s by (x b)’s. This gives
1
X f (n) (b)
f (x) = (x b)n .
n=0 n!
Examples:
Derive the following Taylor series for the functions given and cal-
culate the radius of convergence:
1
X xn
(1) ex =
n=0 n!
1
X x2 n 1
(2) sin x = ( 1)n+1
n=1 (2 n 1)!
1
X x2 n
(3) cos x = ( 1)n
n=0 (2 n)!
1
Xxn
(4) ln(1 x) =
n=1 n
(5) Use the series in (1), (2) and (3) above to calculate the
functions at x = 0.1 and x = 1 and check with your calculator
using radian mode. Also check the series in (4) at x = 0.1.
Why can’t you use x = 1 in case (4)?
34
(c) L’Hopital’s Rule.
Suppose you have two continuous functions f (x) and g(x) and
suppose also that f (a) = g(a) = 0.
f (x)
How do you then evaluate lim ?
x!a g(x)
f (x) f 0 (a)
lim = 0
x!a g(x) g (a)
which is well defined.
35
TOPIC D. FUNCTIONS OF SEVERAL
VARIABLES.
I PARTIAL DIFFERENTIATION.
36
A function of two variables f (x, y) can be represented by a surface
in three dimensions x, y and z ⌘ f (x, y). The partial derivative
of the function f(x,y) with respect to one of the variables x when
the other variable y is kept constant is defined by
@f 1
= lim (f (x + h, y) f (x, y))
@x h!0 h
This gives the slope of the function or surface in the x-direction
at the point (x, y).
@ 3f @ 3f
, etc.
@x3 @x @y 2
@ 2f
The symbol means that we first di↵erentiate with respect
@x @y
to y keeping x constant and then with respect to x keeping y
constant or vice versa. The result is the same irrespective of or-
der. Examples will be given in the problem sheets. These partial
derivatives have the same kind of applications as ordinary deriva-
tives viz. expansion of functions, sketching, location of stationary
points etc.
37
II TAYLOR’S THEOREM IN TWO OR MORE DIMENSIONS.
df 1 d2 f 2 1 d3 f
f (x0 + h) = f (x0 ) + (x0 ) h + (x 0 ) h + (x0 ) h3 + · · ·
dx 2! dx2 3! dx3
or in an abbreviated notation:
1 00 1
f (x0 + h) = f (x0 ) + f 0 (x0 ) h + f (x0 ) h2 + f 000 (x0 ) h3 + · · ·
2! 3!
Many useful approximate formulas are based on these ideas.
The same idea can be used for expanding a function of two vari-
ables f (x, y) under similar conditions:
! !
@f @f 1 @ 2f 2 @ 2f @ 2f 2
f (x0 +h, y0 +k) = f (x0 , y0 )+ h+ k + h + 2 hk + k +· · ·
@x @y 2! @x2 @x @y @y 2
38
**************************************************************
**************************************************************
39
III ERRORS, CHAIN RULE AND CHANGE OF VARIABLES.
40
(b) Chain Rule.
Suppose we have a function of two variables V (x, y) of two
variables x = x(t) and y = y(t) which are functions of a third
variable t. Then we can think of V as a function of t and use
the basic formula for V to evaluate the derivative of V .
@f @f
f= x+ y
@x @y
@x @x @y @y
and x= u+ v and y= u+ v.
@u @v @u @v
We now substitute the second and third of these into the first
and collect terms to get
! !
@f @x @f @y @f @x @f @y
F = + u+ + v
@x @u @y @u @x @v @y @v
41
This can be written in matrix notation:
0 @F 1 0 @x @y 1 0 @f 1
@x
B @u C B @u @u
CB C
@ A = @ A@ A
@F @x @y @f
@v @v @v @y
The matrix 0 1
@x @y
B @u @u C
B C
J ⌘ B C
@ A
@x @y
@v @v
is an important quantity. It is called the Jacobian matrix
and is used frequently. Please remember its definition.
Example:
42
IV CONTOUR MAPS.
Examples:
x2 y 2
1. Sketch some contours of the function f (x, y) = + .
4 9
x2 y 2
2. Sketch some contours of the function f (x, y) = .
4 9
3. Sketch some contours of the function f (x, y) = (x + y)(x + y 2
2
4).
43
We can get the slope of a contour line at a particular point (x0 , y0 )
by a process called implicit di↵erentiation:
The equation of the contour line is f (x, y) = c and we have the
basic formula
f = fx x + fy y
for the change in f when we move from the point (x0 , y0 ) to the
@f
point (x0 + x, y0 + y). In this formula fx = is evaluated at
@x
(x0 , y0 ) and similarly for the second coefficient. We remember now
that on a contour line f (x, y) = c and if both points lie on the
contour line it follows that f = 0. Hence fx x + fy y = 0 and
dy fx
= .
dx fy
This gives the slope of the contour line at the point we started at
viz. (x0 , y0 ).
*********************************************************************
*********************************************************************
fx (x x0 ) + fy (y y0 ) = 0.
df = 0 and df = fx x + fy y + fz z.
fx x + fy y = 0
44
The final result is
@y fx
= .
@x fy
Further by a similar process we get
@z fy @x fz
= and = .
@y fz @z fx
These are implicit partial derivatives of one variable with respect
to another with the third variable kept constant.
The equation of the tangent plane at the point (x0 , y0 , z0 ) is
fx (x x0 ) + fy (y y0 ) + fz (z z0 ) = 0.
45
V STATIONARY POINTS.
@f @f
=0 and = 0.
@x @y
We can now write down the two dimensional Taylor expansion up
to second order
1 ⇣ ⌘
f (x0 + h, y0 + k) = f (x0 , y0 ) + fxx h2 + 2fxy hk + fyy k 2 + · · ·
2!
Our strategy is now to write the second order term as the sum or
di↵erence of two squares i.e. quantities with a consistent sign. To
this end we take out a factor fxx1 from this term and get
1 ⇣ ⌘
f (x0 +h, y0 +k) = f (x0 , y0 )+ fxx1 fxx
2 2
h + 2fxx fxy hk + fxx fyy k 2 +· · ·
2!
46
Now complete the square on the first two terms in the brackets to
get
f (x0 + h, y0 + k)
1 h⇣ ⌘ i
= f (x0 , y0 ) + fxx1 fxx2 2 2 2
h + 2fxx fxy hk + fxy k 2 2
fxy k + fxx fyy k 2 + · · ·
2!
1 h ⇣ ⌘ i
= f (x0 , y0 ) + fxx1 (fxx h + fxy k)2 + fxx fyy fxy 2
k2 + · · ·
2!
We can now analyse the result.
⇣ ⌘
2
1. Suppose fxx fyy fxy > 0 then both terms in square brack-
ets are always positive or zero. Suppose also that outside
fxx > 0. Then the second order term is by its nature positive
and the function can only increase as we move away from the
point (x0 , y0 ). i.e. the function has a minimum.
⇣ ⌘
2
2. Suppose fxx fyy fxy > 0 then both terms in square brack-
ets are always positive or zero. Suppose also that the factor
outside fxx < 0. Then the second order term is by its nature
negative and the function can only decrease as we move away
from the point (x0 , y0 ). i.e. the function has a maximum.
⇣ ⌘
2
3. Suppose fxx fyy fxy < 0 then one term in square brackets
is always positive or zero and the other is always negative or
zero. Then the second order term will change its sign depend-
ing on the direction along which we move from the stationary
point (x0 , y0 ) i.e. on the exact values of h and k - the function
will increase in some directions and decrease in others. It will
have a saddle.
47
TOPIC E. COMPLEX NUMBERS.
I INTRODUCTION AND ALGEBRAIC OPERATIONS.
a = Re z and b = Im z
48
The usual algebraic operations of addition, multiplication and division
can be applied to a pair of complex numbers z1 = a+i b and z2 = c+i d:
1. Addition.
z1 + z2 = (a + i b) + (c + i d) = (a + c) + i (b + d)
i.e. form a new complex number by adding the real parts of z1
and z2 to form the real part of the sum and the imaginary parts to
form the imaginary part of the sum. (Subtraction is just a special
case of addition.)
2. Multiplication
We use the usual rules of removing brackets in multiplication re-
membering that i2 = 1 and then group real bits together and
imaginary bits together. Thus
z1 z2 = (a + i b)(c + i d) = (ac bd) + i (ad + bc)
The first bracket is the real partof z1 z2 and the second bracket is
the imaginary part. There is no need to remember this formula
because it is easy to calculate the product using the usual rules of
multiplication.
3. Division. This is harder. We first define the conjugate of a
complex number
z2 = c i d
and then note from the process of multiplication that z2 z 2 =
c2 + d2 . This combination is called
p the squared modulus of z2 .
The modulus of z2 is |z2 | = c2 + d2 .
49
II GEOMETRICAL INTERPRETATION.
r is the distance from the origin to the point z and ✓ is the angle
between Oz and the x-axis.
50
III EXPONENTIALS.
Remember the Taylor expansion of the exponential, the cos and the
sin:
1 1 1
e x = 1 + x + x2 + x3 + x4 + · · ·
2! 3! 4!
1 2 1 4
cos ✓ = 1 ✓ + ✓ + ···
2! 4!
1 3 1 5
sin ✓ = ✓ ✓ + ✓ + ···
3! 5!
Now consider
1 1 1
ei ✓ = 1 + i ✓ + (i ✓)2 + (i ✓)3 + (i ✓)4 + · · ·
2! 3! 4!
We now write this in standard form
✓ ◆ ✓ ◆
1 2 1 4 1 3 1 5
ei ✓ = 1 ✓ + ✓ + ··· + i ✓ ✓ + ✓ + ···
2! 4! 3! 5!
and comparing the expansions we see
ei ✓ = cos ✓ + i sin ✓
This is an extremely important formula and you MUST remember it.
The exponential above also obeys the normal rules of calculus so that
d i✓
e = i ei ✓
d✓
d2 i ✓
e = i2 ei ✓ = ei ✓
d✓2
d3 i ✓
3
e = i3 ei ✓ = i ei ✓
d✓
d4 i ✓
e = i4 e i ✓ = e i ✓
d✓4
51
TOPIC F. DIFFERENTIAL EQUATIONS.
I INTRODUCTION
There are two iconic di↵erential equations which you must be able to
recognise whenever they appear and you should also be able to write
down the solutions quickly and easily. These are the equation of ra-
dioactive decay or exponential growth and the equation of simple
harmonic motion. They exhibit most of the general features of ordi-
nary di↵erential equations and we will write down the solutions. (Later
we shall see how to derive the solutions of these and many others.)
These processes are described by the same equation but the sign of
a constant is di↵erent. The experimental observation from which
they arise is that the rate of change of the number of objects (ra-
dioactive atoms in a lump of matter or bacteria in a colony) is
proportional to the number of objects itself i.e.
dN
= N (t) for radioactive decay
dt
dN
= + N (t) for exponential growth
dt
The only di↵erence between these equations is the sign of the con-
stant on the rhs and is determined by the nature of the atoms
or bacteria. The solutions of these equations are
t
N (t) = A e for radioactive decay
t
N (t) = A e for exponential growth.
Note that the solutions involve one arbitrary constant A which
is not determined by the equation itself. It is determined by the
initial conditions i.e. by the number of radioactive atoms or bac-
terial cells initially present.
You should now check the solutions by substituting back into the
original di↵erential equations and then sketch them on a graph.
52
(b) Simple Harmonic Motion
d2 x
= !2 x
dt2
The solution of this equation is
You should now check the solution by substituting back into the
original di↵erential equation and then sketch it on a graph.
53
II METHODS FOR FIRST ORDER EQUATIONS.
1. Separable Equations.
Examples:
dy
(a) Solve = xy
dx
dy x
(b) Solve =
dx y
dy
(c) Solve = y cos x
dx
dy x
(d) Solve = 2
dx y
54
2. First order Linear Equations.
Examples:
dy
(a) Solve + x y = exp( x2 /2) x
dx
dy 1
(b) Solve + y = 3x
dx x
dy
(c) Solve + (tan x) y = cos x
dx
55
3. Exact Equations.
56
Examples:
dy y
(a) Solve =
dx x
Solution: Rewrite the equation as
dy
y+x =0
dx
@P @Q
Then P = y and Q = x so that = 1 and = 1.
@y @x
These are equal so the equation is exact. We then have
@F @F
=y and =x
@x @y
xy = c.
dy y
(b) Solve =
dx x
Solution: Rewrite the equation as
dy
y+x =0
dx
@P @Q
Then P = y and Q = x so that = 1 and = 1.
@y @x
These are not equal so the equation is not exact so we cannot
use this method. We can use separation of variables.
57
! !
y2 x2 dy
(c) Solve x(y + 1) + + + xy =0
2 2 dx
Solution: ! !
y2 x2
Then P = x(y + 1) + and Q = + xy so that
2 2
@P @Q
= x + y and = x + y.
@y @x
These are equal so the equation is exact.
We then have
! !
@F y2 @F x2
= x(y + 1) + and = + xy
@x 2 @y 2
x2 y xy 2
F (x, y) = + + g(x)
2 2
where g(x) is constant with respect to the variable of integration y
and hence acts as the arbitrary constant of integration.
@F
We now substitute this into the formula for to get
@x
y2 y2
xy + + g 0 (x) = x(y + 1) +
2 2
x2
which gives g 0 (x) = x and g(x) =
2
Substituting into the formula for F (x, y) above we get the
final form of the solution:
x2 y xy 2 x2
+ + = c.
2 2 2
58
dy
(d) Solve (y cos x + sin y sin x) + (sin x + x cos y) =0
dx
Solution:
Then P = (y cos x + sin y sin x) and Q = (sin x + x cos y)
@P @Q
so that = cos x + cos y and = cos x + cos y.
@y @x
These are equal so the equation is exact.
We then have
@F @F
= (y cos x + sin y sin x) and = (sin x + x cos y)
@x @y
@F
We integrate the formula for with respect to y keeping x
@y
constant to get
59
4. Homogeneous Equations.
dv
v+x = f (v) (3)
dx
and rewrite this as
dv
x = f (v) v (4)
dx
which is separable. We rearrange it so that everything depending
on v appears on one side and everything depending on x on the
other and then integrate to get v in terms of x. Finally we sub-
y
stitue v = .
x
More concretely from equation (4) we get
Z Z
dv dx
= (5)
f (v) v x
60
You will see exactly how it is done in the following examples:
Examples:
dy
(a) Solve 2 x2 = x2 + y 2 .
dx
Solution:
Divide through by 2 x2 to get
✓ ◆2 !
dy 1 y
= 1+
dx 2 x
61
✓ ◆
dy y y
(b) Solve: = sec + .
dx x x
Solution:
Substitute y = v x to get
dy
v+x = sec v + v
dx
Thus Z Z
dx
cos v dv =
x
sin v = ln | x | +c
and in terms of y and x
62
III METHODS FOR SECOND ORDER EQUATIONS.
We will deal only with constant coefficient linear second order equa-
tions i.e. equations where each term contains y and its derivatives only
to power 1 or 0.
Homogeneous:
d2 y dy
a 2
+ b + c y = 0. (1)
dx dx
Inhomogeneous:
d2 y dy
a + b + c y = f (x) where f (x) 6= 0. (2)
dx2 dx
These have to be dealt with separately.
1. Homogeneous Equations.
These have only the following functions in their solutions: sin, cos,
exp, polynomials and combinations of them. Also the linearity and
homogeneity of these equations implies that any solution remains
a solution if multiplied by an arbitrary constant and also the sum
of two solutions is also a solution.
63
This is called the auxiliary equation and the roots are
1 ⇣ p ⌘
= b ± b2 4 ac
2a
There are four possibilities for the roots of equation (3).
If b2 4 ac > 0
1 ⇣ p ⌘
equation (3) has two real roots 1 = b + b2 4 ac
2a
1 ⇣ p ⌘
and 2 = b b2 4 ac and 1 6= 2 . Then the gen-
2a
eral solution of equation (1) is
1x 2x
y = Ae +Be (4)
If b2 4 ac = 0
equation (3) has only one repeated root 2 = 1 = b/2 a.
Then solution (4) has really only one arbitrary constant A+B
and we have to modify it slightly. The general solution with
two arbitrary constants is
1x
y = (A + B x) e (5)
d2 y dy
2
+2 + y = 0,
dx dx
64
(c) Complex Roots.
If b2 4 ac < 0
then equation (3) has two complex roots 1 = µ + i ⌫ and
b 1 p
2 = µ i ⌫ with µ = and ⌫ = 4 ac b2 .
2a 2a
Then the general solution of equation (1) is
y = A eµx ei ⌫x + B eµx e i ⌫x
(6)
If b = 0 and ac > 0
then equation (3) has two
r imaginary roots 1 = i⌫ and
c
2 = i ⌫ with ⌫ = .
a
Then the general solution of equation (1) is
y = A ei ⌫x + B e i ⌫x
(7)
65
2. Inhomogeneous Equations.
The equation is
d2 y dy
a 2
+ b + c y = f (x) where f (x) 6= 0. (8)
dx dx
We can deal with cases where f (x) is a sine, a cosine, an exponen-
tial or a polynomial or combinations of these. We use the method
of Trial Solutions. Other functions are difficult.
y = yCF + yP I .
The most general function that we can deal with is of the form:
The most general trial function that always works is of the form:
66
Examples:
d2 y dy
(a) Solve: 4 + 3 y = x2 + 1.
dx2 dx
Solution:
The auxiliary equation is 2 4 + 3 = 0 with roots 1 = 1
and 2 = 3.
This gives a CF yCF = A exp(x) + B exp(3 x)
We take the PI to be of the form yP I = d x2 + e x + f and
substitute into the lhs and then choose the coefficients d, e
and f so that the two sides match.
We get 3 dx2 + (3 e 8 d)x + (3 f + 2 d 4e) = 3 x2 + 1
which gives the following relations:
3d = 3 3e 8d = 0 3f + 2d 4e = 1
or d=1 e = 8/3 f = 29/9
d2 y dy
(b) Solve: 4 + 3 y = cos 2 x.
dx2 dx
Solution:
The CF is the same as the previous example.
We take the PI to be of the form yP I = d cos 2 x + e sin 2 x
and substitute into the lhs and then choose the coefficients d
and e so that the two sides match.
We get d 8e = 1 e + 8d = 0
which gives d = 1/65 e = 4/65
67
with the same argument as the trig function on the
rhs. But beware there is an exception which you will
see in the next example.
d2 y
(c) Solve: + 16 y = sin 4 x.
dx2
Solution:
The lhs appears in the equation of shm with ! = 4.
Thus the CF is yCF = A cos 4 x + B sin 4 x.
We now note that the CF contains a term with a trig function
which is exactly the same as the trig function on the right.
It is no longer enough to take a trial function of the form we
had in the previous example. It is necessary to multiply by an
extra polynomial and we try the lowest order. In other words
we try yP I = a x cos 4 x + b x sin 4 x and substitute
into the lhs to get
68
d2 y dy
(d) Solve 4 + 3 y = e4 x .
dx2 dx
Solution:
The CF is the same as in example (a).
We take the PI to be of the form yP I = d e4 x and substi-
tute into the lhs and then choose the coefficient d so that the
two sides match.
We get 42 d 4 ⇥ 4 d + 3 d = 1 i.e. d = 1/3.
69