Documente Academic
Documente Profesional
Documente Cultură
Course Materials
Study Pack
That is what you are holding now, and formed of two parts: Directed Reading and Notes,
and the Exercise Sets. All this material, and more, including copies of the lecture slides,
will be made available on the MA100 Moodle page as well.
The lectures will broadly follow the material as presented in the notes.
Course Texts
All students are expected to have a copy of these books.
references to the relevant parts of the textbooks.
Solutions to all questions will be put on the MA100 Moodle page after the Exercise Set
has been discussed in the classes. Use these to check your work each week, as soon as your
solutions have been returned to you. Note that often other solutions may be possible.
Go to all classes.
Class attendance is obligatory. Each week complete the Exercise Set for that week. Prepare
and hand in solutions of the starred questions to your class teacher, either before or at
the next weeks class depending on your class teachers instructions. Your solutions will be
marked and returned to you at the following class.
The classes will be used to discuss the exercises and any questions you may have on the
course material.
See an MA100 class teacher or lecturer in their oce hours as soon as you have
diculty doing or understanding any part of the material: lectures, reading or exercises.
You can see any MA100 class teacher or lecturer during their Oce Hours. Oce hour times
can be found via the MA100 Moodle page and on the Mathematics Department website:
www2.lse.ac.uk/maths/Courses/Office Hours.aspx.
Attend Extra Example Sessions (optional).
The Extra Examples Sessions are optional interactive sessions designed to reinforce the
material covered in the lectures. There will be no new material presented in these sessions.
They will be held each week (starting Week 1): Thursday, 11.00-12.00, in the Old Theatre.
Maple.
Maple is a computer algebra program which will be used throughout the course for
visualising graphs and solutions to certain exercises, and to enhance your understanding
of the material.
Before the end of Week 3, work through the Maple tutorial found on the MA100 Moodle
page. If Maple doesnt start immediately when clicking on the file name, save the file, and
open it inside Maple.
Classes during Week 5 (only) will be held in one of the computer rooms (the room will be
listed on your LSEforYou timetable), where you will use Maple to work parts of Exercise
Set 4 using the Maple Instructions in your Study Pack.
The absolute value satisfies |a| = a2 , and the Triangle Inequality: |a + b| |a| + |b|.
Intervals of real numbers, such as:
2. Polynomials of degree n:
How to graph:
Pn (x) = a0 + a1 x + a2 x2 + . . . + an xn ,
where the ai are real constants, an 6= 0, and x is a real variable.
Exercises.
(2.1) Sketch f (x) = 4 x2 and g(x) = 2x + 1 and find their points of intersection.
3
(2.2) Expand (2 + 5x)4 and x2 4/x .
(2.3) Find an expression for the profit function (q) as a function of q given that
(q) = pq C(q),
where
(2.4) Find the complete solution of each of the following systems of equations, both
algebraically (by solving the equations simultaneously) and graphically (by illustrating
them as lines on a graph).
x + 2y = 4
x + 2y = 4
x + 2y = 4
(a)
(b)
(c)
2x y = 3
2x + 4y = 4
2x + 4y = 8
Note. (x, y) is a solution of a system of equations if it satisfies all equations simultaneously.
(2.5) Factorise P (x) = x3 7x + 6 and sketch the graph of P (x).
(3.1) Simplify
(3.2) Solve for s:
(b)
49x2
4xy 2
35y
(2xy)3
5
2
=0.
3s + 1 s + 1
a c by
2b
y=
a c f bx
2b
as a system of linear equations in x and y. Solve the system for x and y (in terms of the
constants a, b, c, f ), and then show that
x+y =
1
(2a 2c f ) .
3b
4. Properties of the exponential (ex ) and logarithmic (ln x = loge x) functions and their
graphs:
ln xr = r ln x
ln ex = x
(er )s = ers
eln y = y
er+s = er es
ln(xy) = ln x + ln y
Exercises.
(4.1) Sketch the graphs of ex , ex , ln x .
(4.2) What is the value of e0 , ln 0, ln 1 ?
a
(4.3) Show that: ln
= ln a ln b (a > 0, b > 0).
b
(4.4) Simplify: ln x5 2 ln x + ln y 3 (x > 0, y > 0).
For which values of x and y is this expression positive?
5. Properties of the trigonometric functions (sin, tan, etc.) using radian measure of an angle:
Be able to sketch their graphs.
Know their values at multiples of , 2 , 4 , 3 , 6 .
(Know the triangles associated with these last values.)
Know the basic trigonometric identities, e.g.
sin2 x + cos2 x = 1
sin(a + b) = sin a cos b + cos a sin b ;
cos(a + b) = cos a cos b sin a sin b ;
sin x = sin(x) is an odd function;
cos x = cos(x) is an even function.
Exercises.
(5.1) Sketch the graphs of sin x, cos x, 2 cos 3x, tan x .
(5.2) Deduce the formulas for sin 2x, cos 2x from the identities above, and deduce that
sec2 x = tan2 x + 1 ;
sin x cos y =
tan 2x =
2 tan x
;
1 tan2 x
1
[sin(x + y) + sin(x y)] .
2
11
sec 3 , cot( 6 ), sin( 5
4 ), cos( 4 ).
(6.1) Calculate
d 3x
e
(a)
dx
d
(e)
dx
d
(b)
ln(5 2x)
dx
xex
2x2 + 1
(f)
d 3x
(c)
e
ln(5 2x)
dx
d p 2
3x 1
dx
(g)
d
tan 3x
dx
(h)
d
(d)
ln
dx
1
x2
d
sin(x2 5)
dx
7. Know that the equation of the tangent line to the curve y = f (x) at the point where
x = a is given by:
y f (a) = f (x)(x a)
Exercise.
(7.1) Find the equation of the tangent line to the curve y = 2x3 9x2 38x + 21
at the point where x = 1.
8. Find the stationary (turning) points of graphs of functions and determine which point is
a maximum and which is a minimum.
Exercises.
(8.1) Do this for the function y = 2x3 9x2 38x + 21.
(8.2) Sketch the graph of f (x) = x3 3x2 .
Find the maximum and the minimum value of f on the interval [0, 3],
and on the interval [0, 4].
(9.1) Calculate
(a)
sin 3x dx
(d)
(g)
(b)
x
dx
x1
Z
sec x dx
(c)
(e)
x(x 2) dx
x cos 2x dx
(h)
1
dx
x2 5x + 6
Z
(f)
(2x + 2)ex
x2 ex dx
+2x+3
dx
(AlgR, section 9)
MA 100
Mathematical Methods
Calculus
Directed Reading and Notes
Textbook
Ken Binmore and Joan Davies, Calculus, Concepts and Methods
Cambridge University Press, 2001. ISBN 978-0-521-77541-0
All students are expected to have a copy of this book.
The notes for this part of MA 100 consist mainly of detailed references to the
relevant parts of the textbook. Reading those parts is essential for understanding
the material in the course.
2013/14
c LSE 2013
Vector-valued functions
Functions f : R n R m . Derivatives and tangent flats.
Inverse functions and their derivatives. Local inverses and critical points.
Applications
Applications of all the topics above.
MA 100 Mathematical Methods Calculus
Lines : 1.8.1, 1.8.2, 1.8.4, 1.8.5, 1.8.6, 1.8.11, 1.8.12, 1.8.13, 1.8.14 and 1.8.15.
(If you have any difficulty with the reading, attend office hours.)
1.3 Lines
1.2 Vectors in R3
For this we follow Section 1.3 of the textbook, until line 8 of page 19.
1.1 Vectors in R2
Lecture 1
Planes
R2
1.8.16, 1.8.17, 1.8.18, 1.8.19, 1.8.21, 1.8.22, 1.8.23, 1.8.24, 1.8.25 and 1.8.26;
Planes :
The equation
+ a y = b represents a parabola.
x 2 y2
The equation 2 + 2 = 1 represents an ellipse.
a
b
An ellipse with a = b can be rewritten as x2 + y2 = a2 , which is the equation of a circle.
y2
x2
An hyperbola is represented by the equation 2 2 = 1. Hyperbolas have two
a
b
asymptotes ( sometimes also called slant asymptotes ); see page 80 of the textbook.
x2
For conics have a look at the pictures in Section 2.14 of the textbook.
E XAMPLES
A line is represented by the equation a x + b y + c = 0, for some real numbers a, b, c.
The circle with centre (0, 0) and radius 1 is the set of points satisfying x2 + y2 1 = 0
( which we usually write as x2 + y2 = 1 ).
For this we follow Section 1.7 of the textbook, until line 12 of page 31. You can skip
Example 8 on pages 29-30.
2.1 Planes
Lecture 2
Derivatives :
For this we follow Sections 2.7, 2.8 and 2.10 of the textbook. The rules of differentiation
on page 67 are very important.
3.3 Derivatives
Taylor Series
Derivatives
3.1 Intervals
Lecture 3
4.5.17;
3.7.1.
For this we follow page 126 and 127 of Section 4.1 of the textbook.
f
f
+y
= n f ( x, y).
x
y
f
f
+y
= x (2 x + 2 y) + y (2 x ) = 2 ( x2 + 2 x y) = 2 f ( x, y).
x
y
E XAMPLE
For f ( x, y) = x2 + 2 x y we have
E CONOMIC INTERPRETATION
If x and y are thought of as inputs and f ( x, y) as the output, then a homogeneous function
of degree 1 has constant returns to scale : if we multiply all inputs by , then the output
is multiplied by .
E XAMPLE
The function f ( x, y) = x2 + 2 x y is homogeneous of degree 2, since f ( x, y) =
( x )2 + 2 ( x ) ( y) = 2 x2 + 2 2 x y = 2 ( x2 + 2 x y) = 2 f ( x, y).
f ( x, y) = n f ( x, y).
Homogeneous Functions
Partial Derivatives
Tangent Planes
Lecture 5
Lecture 4
Directional derivative :
3.7.2;
Directional Derivatives
Lecture 6
Vectors in n Dimensions
Vectors, lines and hyperplanes in R n : 1.11.1, 1.11.2, 1.11.3, 1.11.4 and 1.11.6;
For this we follow Sections 4.6, 4.7 and 4.8 of the textbook.
For this we follow Section 3.8 of the textbook ( including Subsections 3.8.1 and 3.8.2 ).
7.2 Flats in R n
Stationary Points
Lecture 7
y f 2 ( ) = f 2 ( ) (t ).
In other words, this tangent line is the intersection of the two planes in R3 :
(
x f 1 ( ) = f 1 ( ) (t ),
=
( t ).
y
f 2 ( )
f 2 ( )
Rn
Lecture 9
Vector Functions
Affine Functions
Lecture 8
Optimisation of Functions
f : Rn R
So now we need a good method to decide in which of the three cases we are. In other
words, we want a method to classify stationary points.
so is a local maximum;
so is a local minimum;
And since we want to know what the difference between f ( ) and f ( + u) for small u
is, it all seems to be decided by the term 12 u T f ( ) u.
f ( + u) f ( ) + 12 u T f ( ) u.
f ( )
= f ( ) + 0 + 12 ( x )T f ( ) ( x ),
f ( x ) f ( ) + f ( ) ( x ) + 12 ( x )T f ( ) ( x )
But not every stationary point is a local maximum or local minimum. It can be a saddle
point as well.
Lecture 10
Lecture 10 Page 2
is a local maximum;
The principal minors are the determinants of all the top left hand
of f ( ). In other words, they are the numbers
f x1 x1
f x1 x1 f x1 x2 f x1 x3
f
f x x f x x2
1
1
1
, f x x f x x f x x , . . . , x2. x1
f x1 x1 ,
2 2
2 3
2 1
..
f x2 x1 f x2 x2
f
x3 x1 f x3 x2 f x3 x3
fx x
n 1
f x1 x2
f x2 x2
..
..
.
.
f x n x2
n n
f x1 xn
f x2 xn
.. .
.
fx x
square submatrices
We can generalise the method from the previous part to functions f : R n R for any
dimension n. For this we use the second derivative
f x1 x1 ( ) f x1 x2 ( ) f x1 x n ( )
f x x ( ) f x x ( ) f x x ( )
2 1
2 2
2 n
f ( ) =
.
..
..
..
..
.
.
.
.
f x n x1 ( ) f x n x2 ( ) f x n x n ( )
E XAMPLE
See Example 4 on pages 191 and 192 of the textbook.
In the case that = 0, it may well be possible to get a conclusion by other ways.
( It looks as if we forgot the possibility that > 0 and f xx = 0. But its easy to convince
yourself that if f xx = 0, then = 0 or < 0. )
is a local minimum;
is a saddle point;
if < 0 :
Lecture 10 Page 3
is a local minimum;
Rn
We will later see another way to define ( and test ) positive and negative definite matrices, in terms of their eigenvalues. That is also the approach that is taken in the textbook.
For the moment we will use the tests based on the principal minors.
And we have : A symmetric matrix A is negative definite if and only if a11 < 0 and the
principal minors of A are alternating in sign :
a11 a12 a13
a11 a12
> 0, a21 a22 a23 < 0, . . . .
a11 < 0,
a21 a22
a
31 a32 a33
It can be shown that : A symmetric matrix A is positive definite if and only if all principal
minors of A are positive.
The analysis above is actually a special case of a more general kind of properties of
symmetric matrices. ( A matrix A is symmetric if it is square and if aij = a ji for all i, j. )
a11 a1n
..
.. are the determinants
..
The principal minors of an n n matrix A = .
.
.
an1 ann
a11 a12 a13
a11 a12
, a21 a22 a23 , . . . , | A|.
a11 ,
a21 a22
a
31 a32 a33
We say that a symmetric matrix A is positive definite if x T A x > 0 for all x 6= 0.
is a saddle point;
E XAMPLE
See Example 5 on pages 192 and 193 of the textbook.
if det f ( ) = 0 :
And very similar to the classification of stationary points for 2-dimensional functions,
we have the following.
Convex Sets
Note that is is not always the case that a symmetric matrix A is one of the two ( nonnegative definite or nonpositive definite ). It is well possible that there are x for which
x T A x < 0, and that there are y for which y T A y > 0.
Note that if a matrix is positive definite, then it certainly is nonnegative definite; and if it is
negative definite, then it certainly is nonpositive definite.
For this we follow mostly Section 6.4 of the textbook, except in the following definitions :
A symmetric matrix A is nonnegative definite ( also called positive semidefinite ) if
x T A x 0 for all x.
And the matrix is nonpositive definite ( or negative semidefinite ) if x T A x 0 for all x.
Lecture 11
Lagranges Method
for Constrained Optimisation
G
f
= 0
x
x
and
f
G
= 0.
y
y
for every b.
G dx
G dy
+
= 1.
x
db
y
db
(2)
We can differentiate this expression with respect to b, using the Chain Rule, to get
G ( x (b)) = b,
(1)
and in particular find its stationary points. So lets assume that we find the optimum
of f at a point x = ( x , y ), with corresponding Lagrange multiplier . This means in
particular that those points satisfy the equations
L( x, y, ) = f ( x, y) + (b G ( x, y)),
g( x, y) = b G ( x, y) = 0.
We can translate this into our standard form, by giving the constraint as
This subsection is a simplified version of Section 8.5 of the textbook. The part below is
more than enough for our purposes.
Lecture 12
Lecture 12 Page 2
d
h ( ) ( x ).
dx
d
f ( x ( B)) (b B) = f ( x ( B)) + (b B).
db
According to the argumentation in the book, we know for sure that there is a maximum,
and that it will occur on the line 4 x + 9 y = 1000. So we need to solve
E XAMPLE
We consider Example 15 on page 212 of the textbook. So we want to
In other words : Changing b by a small amount leads to a change in optimal value of approximately times .
f ( x ( B + )) f ( x ( B)) + .
f ( x (b)) f ( x ( B)) +
Now lets use this for the function f ( x (b)) ( seen as a function R R in the one
variable b ). The optimal value f ( x (b)) for b close to some B behaves as
h( x ) h( ) +
We can interpret the previous part further. For a function h : R R around a point
we have the linear approximation
Weve shown that : The Lagrange multiplier is the marginal rate of change of f with respect
to b at the optimal point x .
f dx
f dy
G dx
G dx
d
f ( x (b)) =
+
=
+
db
x
db
y
db
x
db
y
db
G dx
G dx
=
+
= .
x db
y
db
Using the expressions in (1) ( evaluated in x , y , ) and (2), we can rewrite this as
d
f dx
f dy
f ( x (b)) =
+
.
db
x db
y
db
Now lets consider the function value in an optimum, in other words consider f ( x (b)).
Note that we can see this as a function depending on b, hence as a function R R
( for every b R we have a corresponding optimal function value f ( x (b)) ). To find
the derivative with respect to b of this function, we again use the Chain Rule :
Lecture 12 Page 3
Lagranges method :
The Lagrange multiplier appears with respect to the constraint used in the Lagrangean
function. So any change should be seen as a change in the constraint used in the Lagrangean function.
As an example, suppose that instead of a total cost of 30000, we are allowed to use
100 dollar more. So the new constraint, in terms of total cost, becomes 120 x + 270 y =
30100. But this means that the constrained we used changes from 4 x + 9 y = 1000 to
4 x + 9 y = 1003 13 = 1000 + 3 31 . So the expected increase in the optimal production level
is approximately 3 13 64.63.
E XAMPLE ( continued )
In the example above we should take some care when trying to interpret the Lagrange
multiplier in terms of the original information, with the original constraint 120 x +
270 y = 30000. Although this constraint is equivalent to the one we used, 4 x + 9 y =
1000, the corresponding Lambda multipliers are not the same !
1 3/4 3/4
1 1/4 1/4
= 250
(x )
(y )
= 250
( x ) (y )
19.39.
16
12
As in the book, we find that the solutions are x = 62 12 and y = 83 13 , with corresponding multiplier
( Notice that we need to reverse the order inside the brackets from the way it is done in
the book. ) The stationary points of the Lagrangean are found by solving
Inverses of Functions f : R R
For this we follow Sections 2.5 and 2.6 of the textbook. As a refresher, you should look
at Section 2.3.
Lecture 13
7.6.6;
Lecture 14
Interest Compounding
(1 + r ) P + r (1 + r ) P =
(1 + r )t P.
(1 + r )2 P;
..
.
(1 + r ) P;
We also consider the case that the rate is negative, r < 0. That is often called depreciation
or deflation.
S = P ert .
So what would happen if we add interest more and more often ? In other words, what
r tm
happens for the final sum as m ? The easy answer is lim P 1 +
. But
m
m
what is that limit ?
1 m
= e, where e is the basis of the natural logarithm.
For this we use that lim 1 +
m
m
From this we can derive :
rt
r tm
1 m/r
lim P 1 +
= P ert .
= lim P 1 +
m
m
m/r
(m/r )
If instead of adding interest once a year, it is added m times per year, at an annual rate r,
r
for t years, then this is equivalent to compounding for t m periods, each at rate .
m
So the final sum in that instance is
r tm
.
S = P 1+
m
P+rP =
Introduction to Integration
Lecture 15
Lecture 15 Page 2
re = e 1.
The process of determining the present value P of a future sum S is called discounting.
The rate of discount is the interest rate used when finding the present value.
A future sum of money is not worth as much as a present sum, since money available
now could have earned interest in the meantime.
E XAMPLE
Find re for a nominal interest rate of 12 % compounded monthly.
When we know how often is compounded, we can calculate the effective annual interest rate re . That is the rate that would need to be given if we only compounded once a
year. Using the formulas above, it is easy to check that :
r m
if interest is compounded m times per year :
re = 1 +
1;
m
The rate r we used in the calculations above is called the nominal rate.
E XAMPLE
At what rate will money treble in 16 years under compounding annually ?
(iii)
(ii)
0.16 12
S = 1000 1 +
= 1000 (1.04)12 1601.03.
4
(i)
E XAMPLE
Find the final value when a principal of 1000 is invested for three years at 16 % interest,
and compounded (i) annually; (ii) quarterly; or (iii) continuously.
Lecture 15 Page 3
0.10 24
= 750 (1.05)8 507.63.
P = 750 1 +
2
P = V ert = 100 e
t 0.08t
0.08.
d2 P
=
dt2
1 1/2
2t
dP
0.08
+ P 41 t3/2 .
dt
But we still need to check that this stationary is really the maximum ( the best time to
dP
= P 21 t1/2 0.08 ,
sell the piece ). For this, we look at the second derivative. Since
dt
we find
t1/2
dP
= 0. This is equivalent to 12 t1/2 = 0.08, hence to
dt
= 0.16. So the stationary point is t = (0.16)2 39.06 years.
1 1/2
2t
1 dP
=
P dt
(i)
How long should it be kept to maximise its present value, assuming continuous compounding, at a rate of (i) r = 0.08; and (ii) r = 0.12 ?
V = 100 e t .
E XAMPLE
A piece of cut class is currently worth 100. When it gets older, it is appreciating in
value according to the formula
We find
E XAMPLE
Find the present value of 750 to be paid in four years, when interest is compounded
semi-annually at 10 %.
rt
And when compounding continuously, we get P = S e .
dP
= 0 ( since we are at a stationary point ), which means that
dt
Lecture 15 Page 4
= (n + 1) a + 12 n b .
i =1
i =0
(0 + i 1 )
= (n + 1) 0 + 12 n 1 =
E XAMPLE
A special case is if a = 0 and b = 1. Then we get
1
2
n ( n + 1 ).
In other words : the sum is equal to the number of terms multiplied by the average of
the terms, where the average is the sum of the first and the last term divided by two.
i =0
( a + i b)
The total is
a + ( a + b ) + ( a + 2 b ) + ( a + 3 b ) + + ( a + n b ).
i =1
For this you should read Section 10.1 of the textbook, together with the text below.
The difference in the answers can be understood as follows : The larger the discount
rate, the less we value future earning, so the shorter we want to wait before selling it.
1
years.
Hence the present value P is maximised when we sell in 39 16
1
is a
= 14 P t3/2 . This expression is always negative ( since P, t > 0 ). So t = 39 16
dt2
local maximum. And since it is the only local maximum of a one-dimensional function,
we can conclude it is a global maximum.
d2 P
1
, we have
At t = 39 16
Lecture 15 Page 5
i =0
n
1 x n +1
.
xi = a
1x
i =0
( for x 6= 1 ).
1 (1 + r ) n + 1
(1 + r ) n + 1 1
(1 + r ) n + 1 1
=
=
.
1 (1 + r )
(1 + r ) 1
r
1 x n +1
1x
(1 + r ) n + 1 1
1
r
i =0
(1 + r ) n + 1 1 r
(1 + r ) n + 1 (1 + r )
=
.
r
r
r
(1 + r )i (1 + r )0
(1 + r ) n + 1 (1 + r )
.
r
For the binomial coefficient and the binomial theorem, see the textbook.
Sn = P (1 + r ) + P (1 + r )2 + + P (1 + r ) n = P
S2 = P (1 + r ) + P (1 + r ) (1 + r ) = P (1 + r ) + P (1 + r )2 ,
S3 = P (1 + r ) + P (1 + r ) + P (1 + r )2 = P (1 + r ) + P (1 + r )2 + P (1 + r )3 ,
..
.
S1 = P (1 + r ),
Let Sn be the sum accumulated at the end of n years, for n = 1, 2, . . . , t. Then we get
that S1 = P (1 + r ). Moreover, for n 1, Sn+1 is formed by a term P (1 + r ) from
the deposit we made at the beginning of the year, plus a term Sn (1 + r ) from what we
already accumulated before that year ( both with interest earned ). So we get that
E XAMPLE
Suppose a deposit of P is made at the beginning of each year, in an account earning
interest at a rate r, compounded annually, and paid at the end of each year. Find the
sum accumulated at the end of t years.
i =1
(1 + r )i
But we should not forget that we should start at i = 1 and not at i = 0. But that is easy
to deal with, we just subtract the term for i = 0 :
i =0
(1 + r )i
i =1
E XAMPLE
n
Determine (1 + r )i .
= 1 + x + x2 + x3 + + x n =
i =0
xi
a + x a + x2 a + x3 a + + x n a.
A geometric progression is a sum in which there is a fixed ratio between consecutive terms :
Lecture 15 Page 6
Introduction to integration :
OF THE
V ERSION 2
Z x
OF THE
Z x
If I ( x ) =
V ERSION 1
From Section 10.3 we only need to know some terminology and the two versions of the
Fundamental Theorem of Calculus given below. You should also study the example
on page 300.
For this we follow Sections 10.2, 10.4 and 10.5 of the textbook completely.
Integration by Parts
Application of Integration :
Consumers and Producers Surplus
Lecture 16
2 f
N
M
=
=
=
.
y
yx
xy
x
2 f
The differential of z = f ( x, y) is dz =
f
f
dx +
dy.
x
y
f
f
dx +
dy = 0 has solution f ( x, y) = c,
It follows that the differential equation
x
y
c R.
For this we follow Sections 12.5 and 12.11 of the textbook, together with the text below.
For this we follow Section 12.4 of the textbook, although you can skip Example 3 on
pages 379 and 380.
For this we follow Sections 12.1, 12.2 and 12.3 of the textbook.
and
f
= N.
y
x 2 + y2
dy
=
.
dx
2xy
M
N
= 2 y and
= 2 y. So
y
x
and
f
= N = 2 x y.
y
1
3
x 3 + x y2 + g ( y )
and
f ( x, y) = x y2 + h( x ),
x3 + x y2 = c,
1
3
( c R ).
1
3
So we find that f ( x, y) =
tion is
f ( x, y) =
Integrating both equations with respect to x and y, respectively, we find the general
solutions
f
= M = x 2 + y2
x
N
M
=
. Hence the equation is exact, and we need to find a function f so that
y
x
( x2 + y2 ) dx + 2 x y dy = 0.
E XAMPLE
f
= M
x
M
N
=
.
y
x
f
f
And in an exact equation, M and N are the respective partial derivatives
and
of
x
y
a function f that is a common solution of the equations
Lecture 17 Page 2
Lecture 17 Page 3
You should also look at Section 14.3, although we will use the knowledge from the
Linear Algebra part of the course for most of that material.
For this we follow Sections 14.1, 14.4 and 14.5 of the textbook.
Lecture 18
Difference Equations
A, B constants.
For this we follow Sections 14.2 and 14.6 and the final part of Section 14.8 of the textbook.
E XAMPLE
Describe the behaviour as x of the general solution
A, B constants.
y = ex/2 A cos 12 x + B sin 12 x ,
, if C > 0;
, if C < 0.
If C = 0, the term B e2x becomes dominant, and similar arguments apply.
A, B, C constants.
is dominant. So as x we have y
y = A e x + B e2x + C x e2x ,
E XAMPLE
Describe the behaviour as x of the general solution
, if A > 0;
The term A ex is dominant. So as x we have y
, if A < 0;
0, if A = 0.
y = A ex + B e3x ,
E XAMPLE
Describe the behaviour as x of the general solution
For this we follow Section 14.8 of the textbook, together with the text below.
Lecture 19
Nonhomogeneous Differential
and Difference Equations
For this we follow Section 14.14.1 of the textbook, but you can ignore the model III
from page 466 onwards.
For this we follow Section 14.7.1 of the textbook ( but dont worry about the physics part
at the beginning of Example 14 ).
Lecture 20
MA 100
Mathematical Methods
Linear Algebra
Directed Reading and Notes
Textbook
Martin Anthony and Michele Harvey, Linear Algebra, Concepts and Methods
Cambridge University Press, 2012. ISBN 978-0-521-27948-2
All students are expected to have a copy of this book.
The notes for this part of MA 100 consist mainly of detailed references to the
relevant parts of the textbook. Reading those parts is essential for understanding
the material in the course.
2013/14
c LSE 2013
Matrices
Manipulation of matrices (A + B, AB, AT ), rules of matrix algebra.
For n n matrices, compute the determinant of A, |A|. Find A1 if it exists.
Write a system of equations in matrix form; coecient matrix.
Gaussian elimination
Solve a system of linear equations, Ax = b (Ax = 0) by putting the augmented
(coecient) matrix into reduced row echelon form using elementary row operations.
If A is n n and invertible: Cramers rule or A1 .
Linear Transformations
Use a matrix to represent a linear transformation T : Rn Rm .
Null space and range. The rank-nullity theorem for linear transformations.
Change of basis
Use a matrix P to represent a change of basis, v = P[v]B from coordinates relative to a
new basis B to standard coordinates.
Complex numbers
Basic properties, z = a + ib = r(cos + i sin ) = rei .
DeMoivres theorem. Eulers formula: ei = cos + i sin .
In particular read
(If you have any difficulty with the reading, attend office hours.)
Section and page number references refer to the linear algebra textbook.
Exercises 1.11.7
Section 1.8
Vectors in Rn
Section 1.6
Section 1.5
Section 1.4 (You do not need to know the proofs, but you should
understand why and how the rules work, and use them properly.)
Section 1.3
Le ture 1 | Matri es
Section 2.3.2
Section 2.2
Row operations
1 )?
Exercises 2.42.6
Section 3.5
Section 2.4.2
Section 2.4.1
Homogeneous systems
Section 2.3.4
Solution sets
Section 3.1.5
Verifying an inverse
Section 3.1.4
Section 3.1.3
Section 3.1.2
Row Equivalence
Section 3.1.1
Elementary matrices
Exercises 3.33.4
Section 3.2.2
Section 3.2.1
Le ture 5 | Determinants I
2 Methods to find A1
(1) Using cofactors and the adjoint matrix
(2) By elementary matrices: row reduction of (A|I) to (I|A1 )
At this point in the course, make sure you know well the material we have
covered, in particular Gaussian elimination: finding and understanding the
solutions of linear systems of equations. In addition, you now have:
Exercises 3.53.9
Section 3.4.2
Cramers rule
Section 3.4.1
Results on determinants
Section 3.3, Theorem 3.27. Section 3.2.2, Theorem 3.37
Section 3.3.1
Le ture 6 | Determinants II
There are many abstract ideas here, but they are not difficult once you get
used to them. You need to know what a vector space is, but you do not need
to memorise the 10 axioms. You need to understand that a subspace is a
vector space sitting inside a (possibly larger) vector space. We will usually
be dealing with subspaces of Rn .
The linear span of a set of vectors is a subspace. So you could also show
that
1
W = Lin{v},
where v = 1
1
We cover all of Chapter 5 in this lecture, except for Sections 5.2.4 and 5.3.1,
which we defer to weeks 10 and 11 respectively.
You can take some examples of vectors in the subset to help you decide
whether or not adding two of them together or scalar multiplying them by
a real number will always get you another vector in the subset. If you think
it is a subspace, then you need to prove it. If you think it is not a subspace,
you only need to give one counterexample.
To prove the set W is a subspace, verify that it is non-empty, and closed
under addition and closed under scalar multiplication.
x
t
or U = y x + y + z = 2
W = t t R
z
t
Exercises 5.15.2
Linear span
Sections 5.2.15.2.2
Subspaces
Linear combinations
Vector spaces
Sections 5.1.15.1.2
Write down the definitions of linear independence and span; that is, if
S = {v1 , v2 , . . . , vk } V , what does it mean to say that the set S is
linearly independent? What does it mean to say that the set S spans V ?
1
v2 = 2 ,
3
1
u = 2 ,
5
1
w = 2.
5
The set {v1 , v2 , u} does not span R3 and is not linearly independent.
Show that
The set {v1 , v2 , w} spans R3 and is linearly independent.
1
v1 = 0 ,
1
Section 5.3 Linear span (page 160), also look at Exercise 5.3.
You do both by putting the matrix A into row echelon form and looking at
the leading ones.
Extra notes
If {v1 , v2 , . . . , vk } Rn , the vector equation 1 v1 + 2 v2 + + k vk = b
is equivalent to the matrix equation Ax = b, where A is the n k matrix
whose columns are the vectors v1 , v2 , . . . , vk . (Make sure you know why.)
(2) Any vector in V can be written in at most one way as a linear combination
of the vectors v1 , v2 , . . . , vk .
This is the concept that a set of vectors v1 , v2 , . . . , vk V
is linearly independent.
(1) Any vector in V can be written in at least one way as a linear combination
of the vectors v1 , v2 , . . . , vk .
This is the concept that a set of vectors v1 , v2 , . . . , vk
spans a vector space V .
Our goal (which we will not achieve until next week) is the definition of a
basis of a vector space V , which is a set of vectors {v1 , v2 , . . . , vk } with
the property that every vector v V can be expressed as a unique linear
combination of v1 , v2 , . . . , vk . This means that we essentially know every
vector v V by just knowing a finite set v1 , v2 , . . . , vk of vectors in V .
In this lecture we develop the ideas of linear independence and span using
examples in a slightly different way than in the text, so you may wish to
print a copy of the lecture slides. However all the material you need is
contained in the text, in Sections 6.1 and 5.3.
Extra notes
Exercises 6.86.10
Sections 6.4.1 and 6.4.2 (You do not need to know the proofs of the
theorems.)
Dimension
Section 6.3
Coordinates
Section 6.2
Basis
Spaces of matrices
Section 5.1.1 (pages 149-150); Section 5.1.2, Example 5.5; Section 5.1.3,
Example 5.14
We then look at vector spaces which are not Euclidean spaces (not Rn ). Two
of these will be needed for the calculus part of the course: the vector space
F of functions from R to R, and the vector space S of infinite sequences.
Section 4.3
Section 5.2.4 (If A is m n, the range is a subspace of Rm .)
Range
In this lecture we first look at vector spaces associated with a system of linear
equations; that is with the matrix A when the linear system is written in
matrix form as Ax = b. For this you need to read Chapter 4.
If A
This is a good time to make sure you are familiar with all the material you
have seen in Chapters 16. Here is the main theorem for n n matrices.
Extra notes
Exercises 6.126.14
Section 6.5.2
Section 6.5.1
Basis and dimension of row space, column space and null space
Section 13.1.5
Sections 13.1.4
Section 13.1.3
Roots of polynomials
Complex numbers
This lecture covers the basics of complex numbers, Section 13.1 of the text.
You will need these later for calculus, for solutions of linear differential
equations and linear difference equations with constant coefficients.
Exercise 7.2
Section 7.1.6
Section 7.1.5
Sections 7.1.4
Section 7.1.3
Section 7.1.2
Linear transformations
D(f ) = f
f : x f (x)
D : C (R) C (R),
f (x) C (R)
D(f ) = (f ) = f = D(f )
Differentiation,
Section 7.2.2
Section 7.2.1
of a linear transformation
(D 5D + 6)y = 0
has solutions
functions.
d2 y
dy
+ 6y = 0
5
2
dx
dx
The set of all solutions of this homogeneous differential equation is the null
space of the linear transformation, and is therefore a subspace of C (R).
dn1 y
dy
dn y
+ an1 n1 + a1
+ a0 y = 0
n
dx
dx
dx
The null space of this map consists of all functions y(x) for which
Dn + an1 Dn1 + + a1 D + a0 I
(D2 3D)(f )) = f 3f
D2 (f ) = D(D(f )) = D(f ) = f
y0 = 0,
(E 2 5E + 6)yt = 0
2t and 3t (check this), which are linearly independent
has solutions
functions.
The fact that this null space is an n-dimensional subspace of S (so has a
basis of n sequences) is another calculus theorem.
yt+n + + 1 yt+1 + 0 yt = 0
(E n + an1 E n1 + + a1 E + a0 )yt = 0
is again a linear operator on S, and the null space of this linear transformation is a subspace consisting of all solutions to the linear homogeneous
difference equation of order n,
E n + an1 E n1 + + a1 E + a0
Example
yt = t 0, 1, 2, 3, . . .
E(yt ) = yt+1 = t + 1 1, 2, 3, 4, . . .
In the same way as with D in C (R), any linear combination,
Similarity
Section 7.3.3
Change of coordinates
You should read all of Sections 7.3 and 7.4 (although you do not need to
look closely at the general case given in Section 7.4.1 as Theorem 7.36). You
can do this in the order of the text, or in the order in which the material is
covered in the lecture as given below
|
v2
|
|
vn .
|
i = 1, . . . , n.
|
P = v1
|
v is a any vector in Rn .
B = {v1 , v2 , . . . , vn } is a basis of Rn .
and understand how and why it works. You need to know exactly what is
meant by [v]B , which is the coordinate vector of v in the basis B (page 224).
v = P[v]B
Extra notes
Here is a summary of the main points of the lecture.
Diagonalisation
This is perhaps the most important topic in the linear algebra part of this
course. It brings together everything we have done so far, from solving
systems of linear equations to linear transformations and change of basis.
In this lecture we do not exactly follow the order in which the material is
covered in the text, but in this and the next lecture we will cover most of
Chapter 8.
Le ture 16 | Diagonalisation
(5) If initial conditions are given, substitute these into the general solution
found in step (4) to obtain the unique solution satisfying the conditions.
Extra notes
Section 9.3
Section 9.1
Section 8.2.4
Similar matrices
Section 8.2.3
Geometric interpretation
kvk =
hv, vi
cos =
hv, wi
.
||v|| ||w||
Quadratic forms
Section 11.2.1
(3) Set these eigenvectors as the columns of a matrix P so that the linear
transformation defined by P is a rotation anticlockwise.
P orthogonally diagonalises A: PT AP = P1 AP = D.
Section 11.1.4
Section 10.4
Markov chains
Section 9.2.6
MA 100
Mathematical Methods
Exercises
Exercise sets contain starred questions to hand in and un-starred questions for
practice. Work all the exercises, both starred and un-starred, before your class.
Any difficulties you may have had with the solutions should be discussed in class.
Answers to the un-starred questions can be found on the MA 100 Moodle page so
that you can check your work. Only the answers are provided, not the solutions.
Full solutions of all questions (starred and un-starred) will appear on the MA 100
Moodle page after the questions have been discussed in the classes. It is very
important for you to check your own solutions to all questions for each exercise
set as soon as these appear.
Questions appearing with the symbol are optional extras. They will not be
discussed in class, unless time permits.
2013/14
c LSE 2013
Exercise Set 1
Hand in solutions to the starred questions to your class teacher.
and
x
7
6
y = 12 + t 10
z
16
14
parallel or are they coincident (meaning: are they the same line)?
2. Which of the following sets of points in R3 are collinear that is, lie on a line?
(a)
(b)
* 3. Let 1 be the line with equation (x, y, z)T = (1, 1, 2)T + t(1, 2, 3)T , 2 the line through
(5, 7, 4) and (8, 13, 3) and 3 the line through (1, 17, 6) parallel to the vector (7, 4, 3)T .
Show that
(a) 1 and 3 are skew, (b) 1 and 2 intersect (c) 2 and 3 intersect.
Find the points of intersection.
Determine whether each pair of intersecting lines is orthogonal. If not, find the angle
between them.
2 1
A = 1 1
0 3
1
b= 1
1
1 2
C = 3 0
4 1
1
1
1
0
D = 2
6
1
5
3
Which of the following matrix expressions are defined? Compute those which are defined.
(a) Ab
(b) CA
(c) A + Cb
(d) A + D
(f ) DAT + C
(g) bT b
(h) bbT
(i) Cb
(e) bT D
5. If a and b are both column matrices of the same size (n 1), what is the size of the
matrix product aT b? What is the relationship between aT b and bT a?
6. Using the definition of the inverse of a matrix and the rules of matrix algebra, prove that
if A and B are invertible matrices of the same order, then AB is invertible and
(AB)1 = B1 A1 .
(
* 7. (a) Let B =
)
(
)
2 5
x y
1
, and set B =
.
0 1
z w
Find B1 by solving the system of 4 equations given by the matrix equation BB1 = I:
(
2
0
5
1
)(
x y
z w
(
=
1
0
0
1
)
.
(b) Use the definition of inverse matrix to show that if A is a 2 2 matrix given by
(
)
a b
A=
with ad bc = 0, then
c d
)
(
1
d b
1
A =
.
(ad bc) c a
Note. The term (ad bc) is the determinant of A, denoted det(A) or |A|,
a b
= ad bc
|A| =
c d
9. Look through Background You Should Know and Exercises (see the first two pages of
the Study Pack or look on the website). Work Exercise 3.3.
Objectives.
(i) Know concept of vectors in R2 and R3 , and find a vector equation of a line.
(ii) Know concept of a matrix, its inverse and transpose, and matrix operations.
Make sure you have gone through the Directed Reading and Notes for this week.
Exercise Set 2
x
1
y , 1 = 5
1. Find any points of intersection of the plane
z
1
x
1
1
x
1
1
1
1
1
0 and 0 , find tan and deduce the slope of a line in the direction of 0 .
3
0
3
1/2
1/2
1/ 2
1/ 2 .
Repeat the exercise for the pair
and
5
0
1
= t v2
What condition must the vi s satisfy to make the slope of the line
y
v3
z
equal v3 ?
*3. Write down the general cartesian equation of a vertical plane (parallel to the z-axis), a
non-vertical plane and a horizontal plane (parallel to the x, y-plane) together with their
normal vectors.
Find the cartesian equations of the line of intersection of the plane
5x + y 2z = 6
()
*4. Sketch the graphs of the following conics, and in the case of the hyperbola show the
asymptotes. Find their points of intersection with the coordinate axes.
(i)
(ii)
(x 2)2 + y 2 = 4
(iii)
x2 + 4y 2 = 16
x2 = 15y
(iv)
y 2 2x2 = 1
*5. Write down the augmented matrix for each of the following systems of equations, and use
it to solve the system by reducing the augmented matrix to reduced row echelon form.
Express all solutions in vector form.
x+y+z =2
(i)
2y + z = 0
x + y z = 4
(iv)
x + y + 2z = 2
(ii)
2y + z = 0
x + y z = 0
3x y + z = 0
2x + 3y + 2z = 0
x + 2y + 3z = 0
(v)
x + y + 2z = 2
(iii)
2y + z = 0
x + y z = 2
x1 + x2 + x3 + x5 = 1
r 3 s
3 a 1
C= t u v
B = 2 5 c
2 6 w
b 8 2
(
7. Suppose A =
a b
c d
)
is a 2 2 matrix such that AB = BA for all 2 2 matrices B.
Show that a = d, b = 0, c = 0.
Hint: If something is true for all 2 2 matrices,
(
) then it is true for any such matrix. Try
1 0
some simple choices for B such as B =
, and calculate AB = BA. Use the fact
0 0
that two matrices are equal if and only if corresponding entries are equal to derive the
conditions on a, b, c and d.
This illustrates that it is rather unusual for matrices to commute. Can you generalise the
result to 3 3 matrices? To n n matrices?
Objectives.
(i) Know 3 equations of a plane.
(ii) Know and sketch conics in standard form parabola, ellipse and hyperbola.
(iii) Express a system of linear equations in matrix form.
Know coecient matrix and augmented matrix.
(iv) Carry out Gaussian elimination accurately to reduced row echelon form (RREF).
Interpret the solution and express it in vector form.
Make sure you have done the reading for this week.
Exercise Set 3
x+
1+
3
x2
)
(b) e sin(x 1)
x
x2 + 1
(c) 2
x +x+1
(d)
x2
x
+x+1
Explain the relationship between the results for (c) and (d).
*(ii) Find the equation of the tangent line to the function
y = ex sin(x3 1)
ex ,
about x = 0.
*4. Solve the following system of equations Ax = b by reducing the augmented matrix to
reduced row echelon form. Find the rank of A. What is the rank of the matrix (A|b)?
Show that your solution can be written in the form p + su1 + tu2 where u1 and u2 are
solutions of the associated homogeneous system. Verify Ap = b, Au1 = 0, Au2 = 0.
x1 x2 + x3 + x4 + 2x5 = 4
x1 + x2
+ x4 x5 = 3
5. Find the reduced row echelon form and the rank of the matrix
3 2
C = 2 1
6 2
1
1
4
3
0 .
6
i2 : electricity
i3 : gas
d2 = $100, 000
d3 = $72, 000
(a) How much water, electricity and gas is needed to produce $1 worth of electricity?
(b) What should be the weekly production of each industry in order to satisfy all demands
exactly?
7. Conditioning of matrices.
Some systems of linear equations lead to ill-conditioned matrices. These occur if a
small dierence in the coecients or constants yields a large dierence in the solution, in
particular when the numbers involved are decimal approximations of varying degree of
accuracy.
The following two systems of equations represent the same problem, the rst to 2 d.p.
accuracy, the second to 3 d.p. accuracy. Solve them using Gaussian elimination and note
the signicant dierence in the solutions you obtain.
{
{
x +
y
= 51.11
x +
y
= 51.106
x + 1.02y = 2.22
x + 1.016y = 2.218
(If a mathematical formulation of a problem leads to an ill-conditoned matrix, then a
dierent formulation needs to be found.)
Objectives.
(i) Dierentiate one variable functions.
(ii) Appreciate that each Taylor polynomial in question 2 is a quadratic polynomial which
approximates the function at the point, so has the same tangent line and shape (concavity),
indicating if the function has a local maximum or minimum at a stationary point.
(iii) Understand the general solution of Ax = b is x = p + w where p is one particular
solution, Ap = b and w is the general solution of Aw = 0.
(iv) Know null space and rank of a matrix.
(v) Become aware of the Leontief input-output model.
Make sure you have done the reading for this week.
Exercise Set 4
This will be used to introduce you to Maple, a mathematics software program. Your class
during Week 5 will be held in a computer room. (Check your timetable for your room
assignment.)
Before attending the class, work this set of exercises, leaving the sections preceded by
= to do on the computer.
The instructions for the Maple class follow this exercise set.
Make sure you have both Exercise Set 4 and the Maple Instructions with you when you
attend your class.
*1. Find the local maxima and minima of the cost function
C(x) = x3 24x2 + 117x + 784
Find both the marginal cost function and the average cost function and investigate the
relationship between them.
Sketch the graphs of all three functions on a single set of axes.
= Use Maple to graph the three functions (in dierent colours) on the same axes.
*2. For each of the functions z = f (x, y), f : R2 R, given below, draw the contours
f (x, y) = c in the xy-plane for the specied values of z = c. Then also draw the intersection
of the surface z = f (x, y) with the xz plane (y = 0) and the intersection of the surface
with the yz plane (x = 0).
(a) f (x, y) = x 3y + 1
(b) f (x, y) = x2 + 4y 2
(c)
f (x, y) = cos y
(d)
f (x, y) = xy
c = 0, 1, 2, 1, 2
c = 1, 2, 3
1
c = 1, 0, , 1
2
c = 1, 2, 1, 2
3. The following fact is sometimes useful in solving optimisation problems. If f (x) is a convex
function, and f has a local minimum at , then is a global minimum of f .
Use this to show that f (x) = x2 cos x has a global minimum at x = 0.
= Use Maple to graph the function and observe the global minimum.
1 2
*(a) A = 2 3
0 1
3
0
2
*(b)
1 2
B = 2 3
0 1
3
0
6
(c)
1
0
C=
0
0
0
1
0
0
4
0
0
1
0
0
1
0
Objectives.
(i) Understand concept of two variable function and visualise its graph. Sketch contours
and vertical sections with coordinate planes.
(ii) Use row operations to nd A1 by reducing (A|I) to (I|A1 ).
(iii) Use Maple.
Make sure you have done the reading for this week.
Question 2
Carry out the following instructions for the example f (x, y) = x2 + 2y 2 , which you
can then apply to the four given functions.
1. Make sure that Maple is in Math input mode, by clicking on the Math button
towards the top of the Maple window. TYPE
f:= (x,y)-> x^2 + 2*y^2
The arrow is typed as the hyphen - followed by the greater than sign, >. After
youve type ^2, use the right-arrow key to make sure you go back to the baseline
2
when typing the +, otherwise you get x2+2y instead of x2 + 2y 2 .
Take a minute to understand the code you have just typed. You have assigned (:=)
the name f to a function which takes a point (x, y) and maps it (->) to x2 + 2y 2 .
An asterisk * is useful to indicate multiplication. (Maple knows that 2x is the
same as 2*x. But you must type a*b to multiply a and b, as Maple thinks that ab
indicates a variable with name ab.)
Now press the return key. Maple will respond by showing that is has accepted your
definition of the function f :
(x, y) x2 + 2y 2
M1
2. To plot the function as a surface in 3-dimensional space, type and enter the following
input. Maple interprets f (x, y) as the function expression x2 + 2y 2 , and plots the
graph of the surface z = x2 + 2y 2 .
plot3d( f(x,y), x=-5..5, y=-5..5 )
(Maple will ignore spaces in the input; they have been put in so that you will notice
the precise way to type the commands.)
LOOK very carefully at the menu and tool bars at the top of your window. Now
CLICK on the picture of the surface with your mouse. A frame appears around the
surface and the lower toolbar changes into the plot toolbar.
PLACE your cursor (which will look like an arrow) on the surface and hold down the
left mouse button. MOVE the mouse slowly and OBSERVE what happens.
Now experiment by clicking on the different icons on the plot toolbar. Which view
shows the level curves on the surface? Which view allows you to see vertical intersections of the surface?
The plot commands can also be used with a function expression. So you could as well
have entered
plot3d( x^2 + 2*y^2, x=-5..5, y=-5..5 )
Since you need to graph several functions, the function notation is more efficient. (It
will become clear why as you continue.)
3. Before you can plot the contours in the xy plane, you need to instruct Maple to load
the plots package, which will give us extra commands.
Place your cursor in the next Maple input line, type and enter
with(plots)
You will see a list of additional commands which are now available. The one you are
interested in is the contourplot command. To find out for yourself how to use any of
these commands, highlight the name with your mouse and then click on Help in the
menubar. The box that appears will offer help on that command as the fifth option
from the top.
M2
To graph some level curves f (x, y) = c in the xy plane for the function f (x, y), use
contourplot( f(x,y), x=-5..5, y=-5..5 )
To graph a specific set of level curves, say at c = 0, 1, 2, 3, use
contourplot( f(x,y), x=-5..5, y=-5..5, contours=[0,1,2,3] )
(Explain why you see only 3 contours.)
Note the use of square brackets [0, 1, 2, 3] to denote a list in Maple.
The curves in the last graph are not as smooth as the first set. If you want a smoother
set, you have to instruct Maple to plot more points. Place your cursor in the input
line that you have just typed, just after the final square bracket of the list, and add
the option as shown below (on the same line, and dont forget the comma).
contourplot( f(x,y), x=-5..5, y=-5..5,
contours=[0,1,2,3], numpoints=2000 )
Is the scaling on the two axes different, distorting the shape of the curves? To fix this,
either click on the graph and then on the [1:1] icon in the toolbar, or add a scaling
option to your command line:
contourplot( f(x,y), x=-5..5, y=-5..5,contours=[0,1,2,3],
numpoints=2000, scaling=constrained )
Experiment: CLICK on the graph and look at the effects of clicking on different icons
in the plot bar. Experiment how many points you want Maple to compute to obtain
sufficiently smooth curves without wasting computational time and space.
4. To graph the vertical intersection with the xz plane (when y = 0) and with the
yz plane (when x = 0), use the following plot commands:
plot( f(x,0), x=-5..5)
plot( f(0,y), y=-5..5)
To compare the graphs, you might want to see them on the same set of axes, and
specify the colour of each graph.
plot( [f(t,0),f(0,t)], t=-5..5, color=[red,blue] )
Note the square brackets since you are now asking Maple to plot a list of functions.
M3
You are now ready to plot the graphs, contours and vertical intersections of the surfaces
in Question 2. SCROLL back to the beginning. Your Maple Worksheet should
contain the following commands:
(function definition)
(graph of surface)
(general contours)
(specific contours)
(xz intersection, y = 0)
plot(f(x,0), x=-5..5 )
(yz intersection, x = 0)
plot(f(0,y), y=-5..5 )
Instead of re-typing these lines for each surface (or using cut and paste), CHANGE the
definition of the function f and then RE-EVALUATE the input lines. For example
to do part (b), place your cursor in the input line defining f and change it to
f:= (x,y)-> sqrt(x^2 + 4*y^2)
When you press return, Maple will replace the previous definition of the function f
with this new one.
Now place your cursor anywhere in the plot3d line and press return. Maple will
respond by graphing the new surface z = f (x, y).
EXPLORE this new surface as before. Rotate it to view it from different angles. Click
on the icons to view the surface with level curves and a set of axes through the origin.
CONTINUE to re-evaluate the other input lines. COMPARE the contours on the
surface with the graph of the general contourplot. ALTER the list in the specific
contours plot to match the set of contours required in the question.
Do the above for all functions in Question 2.
M4
Question 1
First define the cost function:
C := x -> x^3 - 24*x^2 + 117*x + 784
Define the marginal cost function (using the differential operator D which maps the
cost function into its derivative function),
mc := D(C)
Note Maples feedback.
Finally define the average cost function,
ac := x->C(x)/x
Each time that you enter an input line, verify that Maple has the correct definition.
To graph the functions on the same axes use a list,
plot( [C(x), mc(x), ac(x)], x=0.5..20 )
ENLARGE the graph: Click on it and a frame appears. Position the mouse over the
bottom right corner on the frame until it turns into a double arrow. Hold down the
left mouse button as you drag the frame down and right to enlarge it.
You can alter the input to specify the colours yourself, so that you can tell which graph
corresponds to which function, as you did for the vertical intersections of Question 2.
Note that the lowest x value graphed was 0.5 and not 0. What happens if you change
the lower x limit to 0? Why?
Were you able to find the minimum of the average cost function, the point at which
the marginal cost and the average cost are equal? If not, try
solve( mc(x)=ac(x) ,x )
Or look for the minimum value of ac(x):
solve( diff(ac(x),x)=0, x )
Note that Maple returns the real and the complex roots.
(Note the use of diff for the derivative of an expression. For more on this, see the
final section More Maple.)
M5
Question 3
You should be able to plot this function without any difficulty:
plot( x^2-cos(x), x=-3..3 )
Linear Algebra
To learn how to use Maple to solve systems of linear equations, Ax = b, we will work
examples from Question 5 of Exercise Set 2. The equations are
x1 + x2 + x3 = 2
2x2 + x3 = 0
(i)
x1 + x2 x3 = 4
x + x2 + 2x3 = 2
1
2x2 + x3 = 0
(ii)
x1 + x2 x3 = 0
x + x2 + 2x3 = 2
1
2x2 + x3 = 0
(iii)
x1 + x2 x3 = 2
M6
Questions 4, 5, 6
The inverse of a matrix is found as follows:
MatrixInverse(A)
Try to find out what happens if you ask for the inverse of a matrix which is not
invertible.
Matrix multiplication is denoted in Maple by a dot. Once you have as input a matrix
assigned the name A and a vector assigned the name b, the product matrix Ab is
given by
A.b
Use this method to find x = A1 b and to verify that Ax = b.
For Question 6 you need to create a 3 3 identity matrix; assign it the name Id.
Id := Matrix( 3, 3, [1,0,0, 0,1,0, 0,0,1] )
INPUT the consumption matrix C and the demand vector d, and then solve the
system:
LinearSolve(Id-C,d)
More Maple
Whatever question you ask in Maple, if you intend to use the result again, assign a
name to the commandline, using :=. For instance
sola := LinearSolve(A,b);
A.sola - b
M7
(an expression)
g := x^3 + 3*x
f(1); g(1)
(The semi-colon is there to separate the two questions, otherwise Maple thinks you
want to see the product of f (1) and g(1).)
If f is defined as a function, then f(x) is the corresponding expression.
f(x); g
diff( f(x),x );
diff( g,x )
Use diff( expression, x ) to differentiate an expression with respect to the variable x; its output is an expression.
To have the derivative as a function, you need to use the differential operator D; it
is applied to a function and its output is a function .
D(f)
Maple has excellent Help facilities. You can search for topics. If you know the command or topic, but want to know more how to use it, type a question mark followed
by the topic,
?plot, color
or highlight a word with your mouse, click on Help in the menubar, and click on the
fifth option Help on . . . .
If Maple does something unexpected or gives error messages, it is often because it is
using old definitions you have made. For instance, in the above part on Linear Algebra
you used x to denote the solution of Ax = b. This gives surprises if you later try to
do something with a completely different x; say want to solve x2 + x = 0.
To clear all definitions, assignments, etc., enter
restart
M8
Exercise Set 5
z
z
and
.
x
y
are homogeneous, and verify Eulers formula in each case.
(a)
x3 + y 3
z=
x+y
(
(b)
z=
1 1/5 4 1/5
x
+ y
5
5
)5
(c)
ex/y sin
x
y
+ ey/x cos
y
x
4. Evaluate the following determinants using the cofactor expansion along an appropriate
row or column.
7 5 2 3
1 2 1 0
2 6 1
2 0 0 0
3 2 1 0
(i) 1 0 5
(ii)
(iii)
11 2 0 0
0 1 6 5
3 1 4
23 57 1 1
0 1 1 1
0
1
(iv)
0
0
1
0
0
0
0
0
1
0
0
0
0
1
0
0
0
(v)
0
0
1
0
0
0
0
6
3
0
0
0
1
9
4
0
0
2
0
8
2
0
3
9
7
7
9
1
2
3
4
5
6
3 t 2
(vi) 1 5 3
2 1 1
* 5. Use Maple to plot the functions f (x) and g(x) in question 2 of Exercise Set 3 about the
= respective points x = 3 and x = 4, together with the Taylor approximations you found.
Plot the functions in red and the Taylor approximations in blue. Hand in a printout of
the graphs (you can colour it by hand).
6. Let
a1
a = a2 ,
a3
b1
b = b2 ;
b3
e1 = 0 ,
0
e2 = 1 ,
0
e3 = 0
1
The vector product or cross product, a b of the two vectors is the vector defined by
e1 e2 e3
a b = a1 a2 a3 = (a2 b3 a3 b2 )e1 (a1 b3 a3 b1 )e2 + (a1 b2 a2 b1 )e3
b1 b2 b3
The vector a b is perpendicular to both a and b (see part (b)).
1
2
(a) Calculate w = u v for the vectors u = 2 and v = 5 .
3
4
Check that w is perpendicular to both u and v
(b) Show that for general vectors a, b, c R3
is given by
a1
a, b c = b1
c1
a3
b3
c3
()
Use this and properties of the determinant to show that the vector b c is perpendicular
to both b and c.
(c) Show that the vectors a, b, c are coplanar (lie in the same plane)
the determinant () is equal to zero.
2
t
3
Obtain the constant t if the vectors 1 , 5 , 3 are coplanar.
1
1
2
Objectives.
(i) Master partial dierentiation
(ii) Be able to check whether a function is homogeneous, know Eulers theorem.
(iii) Draw contours of surfaces, tangent lines and normals.
Find equations of tangent planes, contours and tangent lines, find normal vectors.
(iv) Evaluate a determinant by cofactor expansion.
Make sure you have done the reading for this week.
Exercise Set 6
* 1. Roughly sketch a contour map of the function h : R2 R dened by
h(x, y) = 4000 0.001x2 0.004y 2
which represents the surface of a mountain. Suppose a mountain climber is at the point
(500, 300, 3390). In what direction should he move in order to ascend at the greatest rate?
What is this rate of ascent?
There is a path through the point in the direction (3, 4)T . Find its rate of ascent.
For each case, sketch a vector along the path of the climber.
2
3
2
1
)
not invertible?
2 0 3
1
A= 0 3 1
B = 2
1 4 2
0
the inverse of
0 2
1
1 3
C = 0
1 1
2
2
1
1
0
1
1
8. Use Cramers rule to nd the value of x, y, z for system (a) and to nd the value of z
for system (b) (where a, b are constants, a = b, a = 2b).
x+y+z =8
ax ay + bz = a + b
(a)
2x + y z = 3
(b)
bx by + az = 0
x + 2y + z = 3
ax + 2by + 3z = a b
1.05
R = 1.05
1.20
0.95 1.0
1.05 1.05
1.26 1.23
Then the total values of the portfolio in one years time are given by YR where (YR)j
is the total value of the portfolio if state j occurs.
(a) Find the total values of the portfolio W = ( 5000
the possible states.
(b) Show that U = ( 600 8000
value in all states j.
2000
Objectives.
(i) Understand the idea of the gradient and the derivative of a function of two variables,
and be able to evaluate these.
(ii) Understand the concept of directional derivative for a two variable function, know its
formula, f, u, and the direction and value of maximum increase/decrease.
(iii) Understand the eect of row operations on a determinant and use them to simplify
its evaluation.
(iv) Use |A| to determine if A is invertible or what solutions Ax = b might have.
(v) Find A1 by cofactor method and use Cramers rule for solving systems of n equations
in n unknowns.
Make sure you have done the reading for this week.
Exercise Set 7
Find
f
f f
,
and
.
x y
z
x
x
S2= y x2 + y 2 + z 2 = 1
S1= y x + y + z = 0
z
z
S4 =
y xy = 0
S3= y x = 0
x
0
S5 =
y x = 0 and y = 0 =
0 zR
z
z
2
1
* 6. Express each of the vectors below as a linear combination of u = 1 and v = 1
1
3
if possible:
0
7
3
(a) 2
(b) 0
(c) 5
4
0
7
2
5
)( )
) (
(
( )
1 1
1
1
= Ax
=
+
=
2 1
2
1
{( ) (
)}
1
1
(b) Show that lin{w1 , w2 } = lin
,
= R2 . That is, show any vector b R2
2
1
can be expressed as a linear combination of w1 and w2 by solving b = Ax for x:
(
b1
b2
) (
( )
(
1
1
1
+
=
=
1
2
2
1
1
)( )
( )
a
(c) Show, in general, that if v and w are non-zero vectors in R , v =
,
c
2
lin{v, w} = R
v = tw for any t R
( )
b
w=
d
a b
c d = 0
Objectives
(i) Extend concepts of three dimensional vectors to n dimensions.
(ii) Understand concept of a function of three or more variables; Find its
derivative, tangent hyperplanes to the hypersurface and contour, gradient and directional
derivatives. Find tangent plane to a contour of the graph of a 3-variable function.
(iii) Find stationary points of functions of two or more variables. (Systematically solve the
equations simultaneously; factorise expressions where possible and delete non-zero factors
before solving.)
(iv) Understand concept of a linear subspace: Decide whether a set is a subspace and prove it
is or use a counterexample to show that it isnt.
(v) Express a vector as a linear combination of given vectors, or show that it is not possible.
Make sure you have done the reading for this week.
Exercise Set 8
1. The function f : R3 R2 with component functions f1 and f2 is dened by
u = f1 (x, y, z) = x2 + y 2 + z 2 ;
v = f2 (x, y, z) = x y.
Find all the points x = (x, y, z)T such that f (x) = (8, 0)T , and describe the curve consisting
of these points.
= Use Maple to verify your answer.
(
* 2. Let
A=
3 0
1 1
)
,
( )
1
c=
.
0
4. Find the derivatives at the given point of the functions dened below. Write down the
equations for the corresponding tangent ats in each case.
(a) f : R2 R2 with component functions f1 and f2 dened by
}
u = f1 (x, y) = xy
v = f2 (x, y) = x y
u = f1 (x, y) = x
v = f2 (x, y) = x + y
w = f3 (x, y) = xy
}
at (x, y, z) = (1, 1, 1).
* 5. Show that the set S1 spans R3 , but any vector v R3 can be written as a linear combination
of the vectors in S1 in innitely many ways. Show that S2 and S3 do not span R3 .
1
0
1
2
1
2
1
1
1
S1 =
2
0
1
1
S2 =
0
1
2
S3 =
1
0
3
1
1
0
1
3
9
1
1
2
3
0
1
2
L4 = 2 7 5
L5 =
1
1
1
0
0
0
3
2
2
4
1
4
2
1
2
1
2 0 4
2 0 41
L6 =
L7 =
1
1
1
1
1
1
1
8
2
2
8
3
2
3
* 7. Determine which of the following sets of vectors spans R3 , and which of the sets is linearly
independent.
1
2
1
2
1
1
0
1
0
S5 =
2
1
S4 =
2
1
4
1
5
4
3
* 8. Let A be any matrix. Let v1 and v2 be 2 non-zero vectors and suppose that Av1 = 2v1
and Av2 = 5v2 . Prove that {v1 , v2 } is linearly independent.
(Hint: Assume 1 v1 + 2 v2 = 0; multiply this equation through by A to get a second
equation for v1 and v2 ; then solve the two equations simultaneously).
Can you generalize this result?
Objectives.
(i) Understand concept of a vector-valued function, f : Rn Rm , nd derivatives and
tangent ats. Know that a tangent at of a function f : R Rm is a line.
(ii) Understand the concept of an ane function.
(iii) Determine whether a set {v1 , , vr } is linearly independent or spans a given space.
Understand these concepts in terms of linear combinations of the vectors.
Make sure you have done the reading for this week.
Exercise Set 9
1. The length and width of a rectangle decrease at the rate of 2 cm per minute and 3 cm per
minute respectively. When the length is 6m and the width is 3m how fast are the following
changing:
(a) the area
and
*(b) the diagonal?
2. Suppose that z = f (x, y) is a function of two variables x and y, and that y depends on x
dz
via the function y = g(x). Write down an expression for the derivative
.
dx
dz
Set z = xy 4 + 3y 2 + ln y and y = x2 + 3x + 10.
Find
.
dx
(Your answer can involve y.)
*3. Find the second derivative of the real-valued function f : R2 R defined by
f (x, y) = ex sin y
Write down the quadratic Taylor approximation at the point (x, y) = (1, 0).
*5. For each of the sets of vectors given below, find a basis of the vector space Lin(Si ) and state
its dimension. Describe any proper subspaces of R2 or R3 geometrically (give Cartesian
equations for any lines or planes).
{( ) ( )}
1
2
S1 =
2
3
{(
S2 =
2
1
1
S3 =
0
1
2
1
3
9
1
1
)( )(
)(
)}
0
2
3
0
2
3
1
2
4
1
2 0 41
S4 =
1
1
1
1
3
2
8
2
*6. Which of the following sets are a basis for R3 ? (State reasons for your answers.)
2
4
7
1
S1 = 2 1 1 2
3
0
0
1
1
3
2
S3 =
1
2
3
1
1
0
1
1
S2 = 0 1
1
1
1
3
2
S4 =
1
2
3
1
1
1
1
*7. Find the coordinates of the vector 2 with respect to each of the bases for R3 :
1
0
0
1
B1 = 0 1 0
0
0
1
1
2
1
B2 = 1 1 3
1
0
3
Objectives.
(i) Know how chain rule formula applies to functions of several variables and use it to find
derivatives of composite functions.
(ii) Find the Taylor approximation at a point for a function of several variables.
(iii) Show that a set of vectors is a basis of a vector space V Rn .
(iv) Find a basis of any subspace V of Rn .
(v) Know that any vector in V is a unique linear combination of the basis vectors, and be
able to find the coordinates of any vector in the basis.
Make sure you have done the reading for this week.
Exercise Set 10
1. The total cost of producing x units of a product and y units of another product is given by
the function
C(x, y) = 5x2 + 7y 2 2xy 46x 86y + 600
Find the production level that minimizes this cost and the corresponding cost of
production.
*2. For each of the following functions, find all the stationary points and classify them as local
maxima, local minima, or saddle points.
= Use Maple to plot the contours of the functions near their stationary points.
Print out the contours graph of (a) and mark the stationary points in red.
3. Find the general solution of each of the following systems of equations Ax = b in the form
x = p + 1 s1 + . . . + r sr where p is a particular solution of the system and {s1 , . . . , sr } is a
basis for the null space of A.
*(a) x1 + 2x2 + 3x4 + x5 = 4,
*(b)
x1 + x2 + x 3 + x4 = 4
2x1 + x3 x4 = 2
2x2 + x3 + 3x4 = 6
x3 + 2x4 + x6 = 1,
(c)
x7 = 2
x1 + 2x2 x3 x4 = 3
x1 x2 2x3 x4 = 1
2x1 + x2 x3 = 3
*4. For each of the following systems of equations Ax = b, determine the set of all vectors b for
which the system is consistent. In each case the set will be a subspace of R3 ; describe what
that subspace is.
(b)
x1 + x 2 + x3 + x4 = b 1
2x1 + x3 x4 = b2
2x2 + x3 + 3x4 = b3
(c)
x1 + 2x2 x3 x4 = b1
x1 x2 2x3 x4 = b2
2x1 + x2 x3 = b3
5. (a) Convince yourself that F(R) is a vector space. Which of these sets are subspaces:
S1 = {f F(R) | f (0) = 1}
S2 = {f F(R) | f (1) = 0}
{(
W3 =
a2
0
0
b2
}
| a, b R
Objectives.
(i) Classify stationary points of functions of two or more variables.
(ii) Recognise the subspaces associated with a system of equations Ax = b:
the null space of A, N (A) = {x | Ax = 0} Rn ,
the range of A, R(A) = {Ax | x Rn } = {b | Ax = b is consistent } = CS(A) Rm .
(iii) Know Ax = b consistent general solution is x = p + 1 s1 + 2 s2 + + k sk
where Ap = b and {s1 , s2 . . . , sk } is a basis of the null space of A.
(iv) Understand functions can be treated as vectors, e.g. C (R) is a vector space.
Make sure you have done the reading for this week.
Exercise Set 11
x + y 25
(ii) x + y 35
1
A = 1
0
0 1
1 1
1 0
1 2
B = 0 1
1 3
1
1
2
3
1
0
0
1
1
3. (a) Find a basis of the row space of A, RS(A), a basis for the column space of A, CS(A),
and nd the rank of A, (A).
(b) Show that the RS(A) and CS(A) are each planes in R3 . Find Cartesian equations
for these planes and hence show that they are two dierent subspaces.
(c) Find the null space of A, N (A), and verify the dimension theorem. Show that the
basis vectors of the null space are orthogonal to the basis vectors of the row space of A.
*5. (a) Using the information you obtained in questions 3 and 4, and without solving the
system, determine for each of the matrices A and B above if the system of equations
Ax = b or Bx = b is consistent, for each of the given values of b:
1
b1 = 1
2
2
b2 = 1
3
(b) If the system is consistent, then nd the general solution in each case. Hence or
otherwise express b as a linear combination of the column vectors of the given matrices.
def
6. A matrix A has full column rank the columns of A are linearly independent.
If A is an m k matrix with full column rank, show that:
(1) AT A is a symmetric k k matrix,
(2) AT A is invertible.
Then verify the above results for the matrix
1 0
M = 0 2 .
1 1
Objectives.
(i) Optimise a several variable function constrained either within, or on the boundary of
a region.
(ii) Understand convex and concave function and investigate if a function is one of these.
Understand the connection with global optimisation.
(iii) Know coecients xi in b = x1 v1 + + xn vn = components of x in Ax = b,
where columns of A are the vectors vi .
(iv) Know rank(A) = number of leading ones in RREF(A) = dim(RS(A)) = dim(CS(A)).
Know CS(A) = R(A) (Column space and range are the same subspace.)
(v) Find a basis of RS(A), CS(A) and N (A) from RREF(A).
(vi) Understand the rank-nullity theorem: rank(A)+nullity(A) = n, where n is the
number of columns of A, rank(A) = dim(R(A)) and nullity(A) = dim(N (A)).
Make sure you have done the reading for this week.
Exercise Set 12
2. Plot z =
ei 2
ei
3
2
ei
3
4
ei
11
3
e1
e1+i
e3+i 2
4ei
7
6
4. Show that the functions y(x) = eix and y(x) = eix each satisfy the dierential equation
d2 y
+ y = 0.
dx2
tR,
g(t) = wt
t Z+
b2 + B
b 2 = 2 AB and satises tan = (B/
b A).
b
where C = A
7. Show that for any z C, the expressions
are both real.
ezt + ezt , t R
and
z t + zt , t Z+
Find the roots of z 3 = 1 and illustrate them on another graph of the complex plane.
Without actually solving the equations, illustrate the roots of
x5 = 1
and
x6 = 64
Objectives.
(i) Sketch and use the contours of a function of several variables and its constraint to
dene a Lagrangian function.
(ii) Deduce constrained maximum and minimum points from the Lagrangian function.
Interpret the value of the Lagrangian multiplier, .
(iii) Know: a complex number is z = a + ib where i2 = 1.
All roots of a polynomial with real coecients exist as complex numbers.
(iv) Know Eulers formula:
ei = cos + i sin .
Make sure you have done the reading for this week.
Exercise Set 13
1. For the following, you may use the laws of exponents, but do not assume any property of
the logarithm other than its definition as the inverse of the exponential function.
(a) For a > 0, show that
loga y = ln y/ ln a
d
(arcsin(cos x)) = 1 .
dx
What can you deduce about h(x) = arcsin(cos x) for x in this range? Can you explain
this?
*3. Let p be the price per unit required to sell x units of a commodity. Verify that each of the
following demand functions:
(i) x = 85e6p
and
(ii) x = 90 2p
is invertible and sketch the graphs of the functions and their inverses. Find the revenue
functions and the outputs x and prices p which maximize them.
For (i) express the price elasticity of demand given by
=
dx/x
p/x
=
dp/p
dp/dx
2
x
1
2
1
2
12
(
AS =
1
2
1 0
0 1
*6. v1 = 0 , v2 = 1 , v3 = 0
1
3
1
(a) Show that {v1 , v2 , v3 } is a basis of R3 .
1
1
0
w1 = 1 , w2 = 1 , w3 = 1
1
0
1
Show that {w1 , w2 , w3 } is a basis of R3 .
by
the
linear
transformation
given
by
(e) Is RS defined? What does this linear transformation do to v1 , v2 and v3 ? Find the
matrix ARS and use it to check your answer.
Objectives.
(i) Understand concept of an inverse of a one variable function and know when it exists.
(ii) Find a formula for an inverse function and its derivative. Find inverses of elementary
functions.
(iii) Know and apply the definition of a linear transformation.
(iv) Understand why and how a linear transformation T : Rn Rm can be given as
multiplication by a matrix AT . Columns of AT are the images of a basis of Rn .
(v) Recognise the order of composed mappings. ST is first T and then S.
Make sure you have done the reading for this week.
Exercise Set 14
1. = Use Maple to plot the function f : R R defined by
y = x4 6x2 + 12 .
Find a formula for a local inverse to the function at each of the points x = 1, 1, 2. Sketch
the graph of each local inverse function.
Calculate the derivative of the local inverse at x = 2 directly from your formula. Evaluate
it at the point y = 4 and verify that at this point
dx
=
dy
dy
dx
)1
( ) (
)
u
2x y
=
v
x+y
(b)
( ) (
)
u
y x2
=
x+y
v
( )
x + 2y
x
(a) T : R2 R3 by T
= 0
y
0
x+y+z
x
(b) T : R3 R3 by T y = y + z
z
z
x
1 1 0
x
3
3
x= y
(c) T : R R
by T (x) =
0 1 1
y
z
z
1 0 1
Make sure you have done the reading for this week.
Exercise Set 15
1.*(a) Find the eective annual rate of interest on 1000 at 8% compounded
(i) quarterly and (ii) continuously.
*(b) Determine the interest rate needed to have money double in 8 years when compounded
semiannually.
(c) Find the present value of 10,000 in 5 years (that is, nd how much to invest now in
order to obtain 10,000 in 5 years time) at 6% interest, when interest is compounded
(i) annually and (ii) continuously.
*(d) The estimated value of a collection of antiques bought for investment is increasing
according to the formula
2/5
V = 325, 000 (1.95)t
The discount rate under continuous compounding is 6.8%. How long should the collection
be held to maximize the present value?
2. *(a) A deposit of P is made each month for t years in an account that is compounded
monthly at an interest rate r. Find the sum accumulated after t years.
(b) A deposit of 50 is made each month in an account that is compounded monthly at
12% interest. Find the balance in the account after 10 years.
*3. In question 6 of exercise set 13, you showed that each of the sets is a basis of R3 :
0
1
0
1
1
1
b = 1 1 1
and
B
B = 010
1
1
0
1
1
3
(a) Write down the transition matrix P from B coordinates to standard.
b coordinates to standard.
Write down the transition matrix Q from B
2
3
(b) If v = 1 , nd [v]B
(c) Given [x]Bb = 1
nd [x]B
2
3 Bb
b coordinates to B coordinates.
(d) Write down the transition matrix from B
b to standard to B).
(Note you will need to change coordinates from B
clockwise:
6
(a) Write down the matrix of the linear transformation which accomplishes this rotation.
(b) Write down the new basis vectors, v1 and v2 (which are the images of e1 and e2 ).
Denote the new basis by B, B = {v1 , v2 }.
Write down the transition matrix P from B coordinates to standard coordinates.
*5. Let
{( ) (
)}
2
1
M=
,
1
1
(
v=
1
2
( ) (
)
x
7x 2y
T
=
y
x + 8y
Objectives.
(i) Know formulae for interest compounding and discounting and their uses.
(ii) Find the transition matrix P from coordinates with respect to a new basis B to
standard coordinates and use P to change coordinates. Know v = P[v]B .
(iii) Understand changing coordinates does not change the position of the vector v.
Make sure you have done the reading for this week.
Exercise Set 16
*1. Given the inverse demand function yd = 116 + 2x x2 and inverse supply function
ys = (x + 2)2 , where x represents quantity and yd and ys each represents price, find the
consumers surplus and the producers surplus.
(a)
3. (i) Find
(a)
(ii)
dx
(1 x2 )2
x2 dx
x2 + x 2
(b)
x3 x2 + x + 1
dx
(x2 + 1)2
(b)
cos8 x sin3 x dx
(a)
6 3
(x + 2) x dx
(b)
sin x cos x
dx
(1 + sin x)3
arcsin x dx
0
5. A firm has fixed costs of 125. Its marginal revenue function is R (x) = 170 0.4x, and its
marginal cost function is C (x) = 10 + 2x, where x represents quantity. Find the revenue
function, R(x) and the cost function C(x). Find also the value of x which maximises profit.
(
*6. Let
A=
1
3
)
4
.
2
(
7. Diagonalize the matrix
*8. Let
B= 5
1
A=
)
7 2
.
1 8
1 2
3 5 .
1 2
(a) Find the characteristic equation of B. Find the eigenvalues and the corresponding
eigenvectors for B.
(b) Hence, find an invertible matrix P such that P1 BP is diagonal, and check your
answer for P by multiplying out P1 BP.
Objectives.
(i) Know the concepts of consumer and producer surplus and how to calculate them.
(ii) Know the method of partial fractions.
(iii) Convert integrals to standard form by techniques of completing the square,
substitution and integration by parts.
(iv) Know definition of an eigenvector and an eigenvalue of a matrix.
Find eigenvalues and corresponding eigenvectors for a matrix.
(v) Diagonalize a matrix A: use eigenvalues and corresponding eigenvectors to create (if
possible) an invertible matrix P and a diagonal matrix D such that P1 AP = D.
Know that eigenvectors and eigenvalues are in corresponding columns, and that the
eigenvectors form a basis of Rn .
(vi) Check eigenvectors and eigenvalues by computing AP.
Make sure you have done the reading for this week.
Exercise Set 17
1. Classify each of the dierential equations below in one or more of the following categories:
(i) linear equation (ii) separable equation (iii) exact equation
Find the general solutions of the equations by any appropriate method.
*(a) (x2 + 6x) dy = y 2 dx 12 dy
(b) 2x
dy
=2 x+y+2
dx
dy
= yx2 + 2x2
dx
(e) xy = e(3x
+5)
dy
dx
*(f) x dy 4y dx = (x + 1) dx
2f
1
= ex sin y + ln(xey )
xy
x
1 1 1
A = 0 1 1
1 0 2
2 1
B = 1 0
2 1
2
1
2
and show that neither matrix can be diagonalized over R. Why must each of these matrices
have at least one real eigenvalue?
*4. (a) Find the general solution of the following system of linear dierential equations:
{
y1 (t) = y1 (t) + 4y2 (t);
.
y2 (t) = 3y1 (t) + 2y2 (t)
(b) Then nd the unique solution satisfying the initial conditions y1 (0) = 1 and y2 (0) = 0.
For this solution nd the values of y1 (0) and y2 (0).
(
5. Find A5 if A =
)
1 4
.
3 2
1 3 0
A = 0 2 0
3 3 2
(b) Find the general solution of the system of linear dierential equations y = Ay.
Objectives.
(i) Understand concepts of a dierential equation and its solution.
(ii) Solve a dierential equation of order one by separating variables.
Know: solution of equation (D )y = 0 is y = cex .
(iii) Recognise and solve exact and linear dierential equations of order one.
(iv) When possible, solve a partial dierential equation by partial integration.
(v) Recognise if a matrix can be diagonalized or know why it cannot.
(vi) Calculate An (n N) using diagonalization.
(vii) Solve systems of linear dierential equations y = Ay using diagonalization
(by changing to a basis of eigenvectors).
Make sure you have done the reading for this week.
Exercise Set 18
1. Find the general solution of each of the equations by any appropriate method.
(a) xy
dy
y 2 = 3x2 e2y/x
dx
(b) x2
dy
+ 2xy = 6x2
dx
2. Solve the following dierential equations with the help of the given substitutions:
dy
+ y = x3 y 6
dx
(Let y 5 = u)
(i)
(ii)
(1 + y 2 ) = (arctan y x)
dy
dx
(Let arctan y = u)
*3. Write down a linear dierential equation P (D)y = 0 whose solutions include the function
e2x and another such equation whose solutions include the function xex .
Hence write down a homogeneous linear dierential equation whose solutions include both
e2x and xex together with its general solution.
d4 y
d3 y
d2 y
+
2
+
=0
dx4
dx3
dx2
(ii)
d2 y
dy
2
+ 10y = 0
2
dx
dx
Find and sketch the particular solution of equation (ii) which satises the conditions
y(0) = 1 and y
( )
6
=0
)
1 2
.
2 1
3x2 + 2 3xy + 5y 2 = 6.
anti-clockwise by
also have been an appropriate choice there?
3
7. (a) Show that if P is an orthogonal matrix, then det(P) = 1.
(b) Show that if A is orthogonally diagonalizable, then A is symmetric.
(c) If P is an orthogonal matrix and x = Pz, show that x = z.
Objectives.
(i) Recognise and solve homogeneous dierential equations.
(ii) Recognise when a change of variable can transform a dierential equation of order one
to one of the types: separable, homogeneous, exact or linear.
(iii) Solve linear constant coecient higher order dierential equations P (D)y = 0 when
the roots of P (D) are distinct, repeated or complex.
(iv) Know matrix P is orthogonal PT = P1 its columns are an orthonormal
basis of Rn .
(v) Orthogonally diagonalize a symmetric matrix A, PT AP = D.
In the 2 2 case create P from eigenvectors so P is a rotation anticlockwise and use
this to change coordinates to sketch a curve xT Ax = k, where k is a constant.
Find points of intersection of the curve with new and old axes.
(vi) Know A is orthogonally diagonalizable A is symmetric.
Make sure you have done the reading for this week.
Exercise Set 19
*1. Describe the behaviour as x of the general solutions of the equations in question 4
of Exercise Set 18.
2. Find the general solutions of the following dierence equations; describing their behaviour
as x
(i) yx+2 yx+1 2yx = 0
(ii)
*Find and sketch the particular solution of equation (i) which satises the conditions
y1 = 1 and y2 = 5
Record your answers to question 2 for use next week.
1 4 2
A = 4 1 2
2 2 2
*3. Let
(a) Find the eigenvalues of A and for each eigenvalue nd an orthonormal basis for the
corresponding eigenspace.
(b) Hence nd an orthogonal matrix P such that PT AP = P1 AP = D.
(c) Write down D and check that PT AP = D.
(d) Express f (x, y, z) = xT Ax as a function of the variables x, y and z. Write down a
matrix Q and an expression zT Dz = 1 X 2 + 2 Y 2 + 3 Z 2 where 1 2 3 such
that f (x, y, z) = xT Ax = zT Dz if x = Qz.
Is the quadratic form f (x, y, z) positive denite, negative denite or indenite?
Evaluate f (x, y, z) at one unit eigenvector corresponding to each eigenvalue.
*4. (a) Find an orthonormal basis for the subspace of R3 given by
V = y 5x y + 2z = 0 .
z
(b) Extend this to an orthonormal basis of R3 .
5. Beginning with the vector v1 , use Gram-Schmidt to obtain an orthonormal basis for the
subspace of R4 spanned by the vectors,
1
0
v1 =
1
0
3
0
v2 =
2
0
2
1
v3 =
1
3
f (x, y) = y 3 x2
is
Objectives.
(i) Describe the behaviour of solutions of dierential equations as x .
(ii) Know the dierence equation (E )yx = 0 has solution yx = c()x . Solve linear,
constant coecient, higher order dierence equations. Describe behaviour as x .
(iii) Sketch particular solutions of dierence equations.
(iv) Use Gram-Schmidt orthogonalization to obtain an orthonormal basis of a vector space.
(v) Obtain information about a quadratic form xT Ax from the eigenvalues of A.
Make sure you have done the reading for this week.
Exercise Set 20
*1. Find the general solutions of the following dierential equations where x R+ :
(i)
d4 y
d3 y
d2 y
+
2
+
= sin x
dx4
dx3
dx2
d3 y
d2 y
dy
3
+
9
+ 13y = x + ex
dx3
dx2
dx
(ii)
(ii)
=x
x2
y 2
x = u + v, y = u v.
where
A=
0.7
0.3
0.6
0.4
(
x0 =
0.6
0.4
Solve the equation and nd an expression for xk as a linear combination of the eigenvectors
of A. Use this to predict the long term distribution; that is, nd lim xk as k .
5. The population of osprey eagles at a certain lake is dying out. Each year the new population
is only 60% of the previous years population. Conservationists introduce a new species of
trout into the lake and nd that the populations satisfy the following system of dierence
equations, where xt is the number of osprey in year t and yt is the number of trout in
year t.
(
xt = Axt1
where
xt =
xt
yt
(
A=
.6
.2
.25 1.2
(
and
x0 =
20
100
(a)
(b) Describe in words how each of the populations depends on the previous years populations.
(c) Solve the system (as you would a Markov process).
Show that the solution xt
satises xt = At x0 .
Diagonalize the matrix A.
Hence nd an expression for xt as a
linear combination of the eigenvectors of A.
(d) Show that the situation is not stable, that according to this model both osprey and
trout will increase without bound as t .
What will be the eventual ratio of osprey to trout?
In order to have the populations of osprey and trout achieve a steady state, they decide to
allow an amount of shing each year, based on the number of osprey in the previous year.
The new equations are
(
xt = Bxt1
where
xt =
xt
yt
(
B=
.6
.2
1.2
(
and
x0 =
20
100
Objectives.
(i) Find a particular solution of a nonhomogeneous linear dierential/dierence equation
with RHS itself the solution of a linear dierential/dierence equation.
(ii) Recognise dening properties of a Markov process, xk = Axk1 :
A has non-negative entries and the entries of each column sum to 1.
Know that A always has an eigenvalue = 1 with other eigenvalues |i | 1.
(iii) Find the solution of a Markov process xk = Axk1 . Express it as a linear combination
of eigenvectors of A. Use it to predict lim xk as k .
Apply the same method to solve any system of linear dierence equations, xk = Axk1 .
Make sure you have done the reading for this week.
7 6
A = 5 4
2 2
9
5
4
(i) Solve Ax = 0.
(ii) Describe the linear transformation T (x) = Ax by finding the images of e1 , e2 , e3
(iii) Can this matrix be used as a change of coordinates in R3 ?
(iv) Find A1 if it exists.
(v) Diagonalise the matrix A. (Find an invertible matrix P and a diagonal matrix D such
that P1 AP = D, and check your work.)
(vi) Use the diagonalisation to give a description of the eect of the linear transformation
T (x) = Ax on R3 .
(vii) Use the diagonalisation to solve the system of dierential equations y = Ay
(viii) Find the row space, column space and nullspace of A. Find the kernel and the
range of the linear transformation T (x) = Ax.
Describe these spaces geometrically,
giving Cartesian equations for any planes and vector equations for any lines.
2. Show that the function f (x, y, z) = 5x2 +5y 2 +9z 2 6xz 12yz
points and determine their nature.
and
g(x, y, z) = 11
Describe these surfaces, sketching their intersections with the coordinate planes.
(b) Find normal vectors and the tangent planes to both surfaces at (3, 2, 1).
surfaces touch tangentially at this point?
Do the
(c) Using the normal vectors found in (b) write down Cartesian equations for the tangent
line to the curve of intersection of the level surfaces at (3, 2, 1)
5. The function f (x, y) is given by
f (x, y) = (xa y + xy a ) ln
x2 + y 2
where a is some constant. Show that f is homogeneous and verify that Eulers equation
holds.
6. A consumer has utility function u(x, y) = (x + 1)2 (y + 2)3 for two goods, X and Y . (Here,
x denotes the amount of X and y the amount of Y .) Each unit of x costs p dollars and
each unit of Y costs q dollars, and the consumer has a budget for X and Y of M dollars.
Use the Lagrange multiplier method to find the quantities of X and Y the consumer will
consume in order to maximise his utility subject to the budget constraint. (Your answers
should be expressions depending on p, q and M .)
1
1
V = Lin 0 , 1 R3 ,
0
1
1
2
3 5
4
W = Lin ,
R
1
0
0
1
with
N (T ) = V
and
S : Rc Rd
with
N (S) = W
and R(S) = V
R(T ) = W
Show that one of these, S or T cannot exist. Then find a matrix AS or AT representing the
other linear transformation (with respect to the standard basis in each Euclidean space).
Check your answer by row reducing the matrix and finding the null space and range of the
linear transformation.