Docsity

Multivariable Calculus Math 21a, Exams of Calculus

Toggle sidebar
bg1
Multivariable Calculus
Math 21a
Harvard University
Spring 2004
Oliver Knill
These are some class notes distributed in a multivariable calculus course tought in
Spring 2004. This was a physics flavored section.
Some of the pages were developed as complements to the text and lectures in the years
2000-2004. While some of the pages are proofread pretty well over the years, others
were written just the night before class.
The last lecture was ā€calculus beyond calculusā€. Glued with it after that are some
notes from ā€last hoursā€ from previous semesters.
Oliver Knill. 5/7/2004
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d
pf3e
pf3f
pf40

Partial preview of the text

Download Multivariable Calculus Math 21a and more Exams Calculus in PDF only on Docsity!

Multivariable Calculus

Math 21a

Harvard University

Spring 2004Oliver Knill

These are some class notes distributed in a multivariable calculus course tought inSpring 2004. This was a physics flavored section.Some of the pages were developed as complements to the text and lectures in the years2000-2004.

While some of the pages are proofread pretty well over the years, others

were written just the night before class.The last lecture was ā€calculus beyond calculusā€.

Glued with it after that are some

notes from ā€last hoursā€ from previous semesters.

Oliver Knill. 5/7/

Lecture 1: VECTORS DOT PRODUCT

O. Knill, Math21a

HOMEWORK: Section 10.1: 42,60: Section 10.2: 4,16 VECTORS. Two points

P

1

x

1

, y

1

Q

P

2

x

2

, y

2

) in the plane determine a

vector

~v

x

2

x

1

, y

2

y

1

It points from

P

1

to

P

2

and we can write

P

1

~v

P

2

COORDINATES. Points

P

in space are in one to one correspondence to vectors pointing from 0 to

P

The

numbers

v

i

in a vector

v

v

1

, v

2

) are also called

components

or of the vector.

REMARKS: vectors can be drawn

everywhere

in the plane. If a vector starts at 0, then the vector

~v

v

1

, v

2

points to the point

v

1

, v

2

That’s is why one can identify points

P

a, b

) with vectors

~v

a, b

Two

vectors which can be translated into each other are considered

equal

. In three dimensions, vectors have three

components.

In some Encyclopedias like Encylopedia Britannica define vectors as objects which have ā€both

magnitude and directionā€.

This is unprecise and strictly speaking incorrect because the zero vector is also a

vector but has no direction. ADDITION SUBTRACTION, SCALAR MULTIPLICATION.

x

y

u

v

u+v

x

y

u

v

u-v

x

y

u

3 u

u

~v

u

1

, u

2

v

1

, v

2

u

1

v

1

, u

2

v

2

~u

~v

u

1

, u

2

v

1

, v

2

u

1

v

1

, u

2

v

2

Ī»~

u

Ī»

u

1

, u

2

λu

1

, λu

2

BASIS VECTORS. The vectors

i

~j

are called

standard basis vectors

in the plane. In space,

one has the basis vectors

i

j

k

Every vector

v

v

1

, v

2

) in the plane can be written as a sum of standard basis vectors:

~v

v

1

i

v

2

j

. Every

vector

~v

v

1

, v

2

, v

3

) in space can be written as

~v

v

1

i

v

2

j

v

3

~k

WHERE DO VECTORS OCCUR? Here are some examples: Velocity

if (

f

t

, g

t

is a point in the planewhich depends on time

t

then

~v

f

′

t

, g

′

t

is

the

velocity vector

at

the point (

f

t

, g

t

Forces

: Some prob-

lems

in

statics

in-

volve the determina-tion of a forces actingon

objects.

Forces

are

represented

as

vectors

Fields

fields like elec-

tromagnetic

or

gravita-

tional

fields

or velocity

fields

in

fluids

are

de-

scribed with vectors.

Qbits

in quantum

computation,

one

does not work withbits, but with

qbits

which are vectors.

Color

can be written as

a

vector

~v

r, g, b

where

r

is red,

g

is green

and

b

is blue.

An other

coordinate system is

~v

c, m, y

r,

g,

b

), where

c

is cyan,

m

is magenta and

y

is

yellow.

red

green

blue

(r,g,b)

SVG

Scalable

Vector

Graphics

is

an

emerging

stan-

dard

for

the

web

for

describing

two-

dimensional graphicsin XML.

VECTOR OPERATIONS: The ad-dition and scalar multiplication ofvectors satisfy ā€obviousā€ properties.There is no need to memorize them.We write

here for multiplication

with a scalar but usually, the multi-plication sign is left out.

u

~v

~v

~u

commutativity

~u

v

w

~u

~v

w

additive associativity

~u

~u

null vector

r

s

~v

r

s

~v

scalar associativity

r

s

~v

~v

r

s

distributivity in scalar

r

v

w

r~

v

r ~

w

distributivity in vector

~v

~v

the one element

LENGTH. The length

v

of

v

is the distance from the beginning to the end of the vector.

EXAMPLES. 1) If

~v

  1. , then

v

i

~j

k

UNIT VECTOR. A vector of length 1 is called a

unit vector

. If

v

0, then

~v/

~v

is a unit vector.

EXAMPLE: If

~v

4), then

~v

  1. is a unit vector,

i,~

j,

~k

are unit vectors.

PARALLEL VECTORS. Two vectors

v

and

w

are called

parallel

, if

v

r ~

w

with some constant

r

DOT PRODUCT. The

dot product

of two vectors

~v

v

1

, v

2

, v

3

) and

w

w

1

, w

2

, w

3

) is defined as

~v

w

v

1

w

1

v

2

w

2

v

3

w

3

Remark: in science, other notations are used:

~v

Ā·

~w

= (

~

v, ~

w

) (mathematics)

< ~

v

|

~ w >

(quantum mechanics)

v

i

w

i

(Einstein

notation)

g

ij

v

i

w

j

(general relativity). The dot product is also called

scalar product

, or

inner product

.

LENGTH. Using the dot product one can express the length of

~v

as

v

v

~v

CHALLENGE. Express the dot product in terms of the length alone.SOLUTION: (

~v

w, ~

v

w

~v, ~

v

~w, ~

w

~v, ~

w

) can be solved for (

~v, ~

w

ANGLE. Because

~v

w

2

~v

w, ~

v

~w

v

2

w

2

v, ~

w

) is by the

cos-theorem

equal to

v

2

w

2

~v

w

cos(

α

), where

α

is the angle

between the vectors

~v

and

w

, we get the important formula

~v

w

~v

w

cos(

α

CAUCHY-SCHWARZ INEQUALITY:

~v

w

~v

~w

follows from that formula because

cos(

α

TRIANGLE INEQUALITY:

~u

~v

~u

~v

follows from

~u

~v

2

~u

~v

u

~v

~u

2

~v

2

~u

v

~u

2

~v

2

~u

~v

~u

2

v

2

~u

~v

~u

~v

2

FINDING ANGLES BETWEEN VECTORS. Find the angle between the vectors (

  1. and (

ANSWER: cos(

α

  1. So that

α

= arccos(

ā—¦

ORTHOGONAL VECTORS. Two vectors are called

orthogonal

if

v

w

= 0. The zero vector

0 is orthogonal

to any vector. EXAMPLE:

~v

  1. is orthogonal to

w

PROJECTION. The vector

~a

= proj

~ w

~v

w

v

w/

w

2

is called the

projection

of

v

onto

w

The

scalar projection

is defined as

comp

~ w

(

~

v

)

~v

w

w

. (Its ab-

solute value is the length of the projection of

~v

onto

w

The vector

b

~v

~a

is called the

component

of

v

orthogonal to the

w

-direction.

v

w

a

b

EXAMPLE.

v

w

0), proj

~ w

~v

0), comp

~ w

~v

Lecture 3. DISTANCES

Math21a, O. Knill

DISTANCE POINT-POINT (3D). If

P

and

Q

are two points, then

d

P, Q

P Q

is the distance between

P

and

Q

DISTANCE POINT-PLANE (3D). If

P

is a point in space and Σ :

~n

x

d

is

a plane containing a point

Q

, then

d

P,

P Q

~n

n

is the distance between

P

and the plane.

DISTANCE POINT-LINE (3D). If

P

is a point in space and

L

is the line

r

t

Q

t~

u

, then

d

P, L

P Q

Ɨ

~u

~u

is the distance between

P

and the line

L

DISTANCE LINE-LINE (3D).

L

is the line

~r

t

Q

t~

u

and

M

is the line

s

t

P

t~

v

, then

d

L, M

P Q

~u

Ɨ

~v

u

Ɨ

~v

is the distance between the two lines

L

and

M

DISTANCE PLANE-PLANE (3D). If

n

~x

d

and

~n

~x

e

are two parallel

planes, then their distance is (

e

d

~n

. Nonparallel planes have distance 0.

EXAMPLES DISTANCE POINT-POINT (3D).

P

  1. and

Q

  1. are two

points, then

d

P, Q

P Q

2

2

2

DISTANCE POINT-PLANE (3D).

P

  1. is a point and Σ : 2

x

y

z

9 is a plane which contains the point

Q

1). Then

d

P,

is the distance between

P

and Σ.

DISTANCE POINT-LINE (3D).

P

  1. is a point in space and

L

is the

line

~r

t

t

1). Then

d

P, L

Ɨ

is the distance between

P

and

L

DISTANCE LINE-LINE (3D).

L

is the line

~r

t

t

  1. and

M

is the line

s

t

t

2). The cross product of (

  1. and
  1. is (

6). The distance between these two lines is

d

L, M

DISTANCE PLANE-PLANE (3D). 5

x

y

z

= 8 and 5

x

y

z

= 1 are

two parallel planes. Their distance is 7

LINES and PLANES

Math 21a, O. Knill

HOMEWORK: Section 10.3: 18,42, section 10.3: 30,32. PROBLEM SESSIONS: Tuesdays 3-4pm SC 411 LINES. A point

P

and a vector

~v

define a line

L

. It is the set of points

L

P

t~

v

, where

t

is a real number

The line contains the point

P

and points into the direction

~v

EXAMPLE.

L

x, y, z

t

This description is called the

parametric equation

for the line.

EQUATIONS OF LINE. We can write (

x, y, z

t

  1. so that

x

t, y

t, z

t

. If

we solve the first equation for

t

and plug it into the other equations, we get

y

x

, z

x

We can therefore describe the line also as

L

x, y, z

y

x

, z

x

SYMMETRIC EQUATION. The line

~r

P

t~

v

with

P

x

0

, y

0

, z

0

) and

v

a, b, c

) satisfies the

symmetric

equations

x

āˆ’

x

0

a

y

āˆ’

y

0

b

z

āˆ’

z

0

c

(every expression is equal to

t

PROBLEM. Find the equations for the line through the points

P

  1. and

Q

SOLUTION. The parametric equations are (

x, y, z

t

  1. or

x

t, y

t, z

t

Solving each equation for

t

gives the symmetric equations

x/

y

z

PLANES. A point

P

and two vectors

~v, ~

w

define a plane Σ. It is the set of points

P

t~

v

s ~

w

, where

t, s

are real numbers

The line contains the point

P

EXAMPLE. Σ =

x, y, z

t

s

This is called the

parametric description

of a plane.

EQUATION OF PLANE. Given a plane as a parametric equation

P

Q

t~

v

s ~

w

. The vector

~n

~v

Ɨ

w

is

orthogonal to both

~n

and

w

. Because also the vector

P Q

Q

P

is perpendicular to

~n

we have (

Q

P

~n

With

Q

x

0

, y

0

, z

0

P

x, y, z

), and

~n

a, b, c

), this means

ax

by

cz

ax

0

by

0

cz

0

d

. The plane is

therefore described by a single equation

ax

by

cz

d

PROBLEM. Find the equation of a plane which contains the three points

P

, Q

, R

SOLUTION. The plane contains the two vectors

v

  1. and

w

2). We have

n

  1. and

the equation is 4

x

y

z

d

. The constant

d

is obtained by plugging in one point:

x

y

z

LINES AND PLANES IN MATHEMATICA.Plotting a line:

ParametricPlot3D[

  • t

t

]

Plotting a plane:

ParametricPlot3D[

  • t
  • s

t

s

]

Finding the equation of a plane

P =

; Q =

; R =

; n = Cross[Q

P

R

P]; n

x

y

z

n

P

DISTANCE POINT-PLANE (3D). If

P

is a point in space and

~n

~x

d

is a

plane containing a point

Q

, then

d

P, L

P

Q

~n

~n

is the distance between

P

and the plane.

You recognize that this is just the scalar projection of the vector

QP

P

Q

onto the vector

~n

DISTANCE POINT-LINE (3D). If

P

is a point in space and

L

is the line

~r

t

Q

t~

u

, then

d

P, L

P

Q

Ɨ

~u

~u

is the distance between

P

and the line

L

This formula is verified by writing (

P

Q

Ɨ

~u

P

Q

~u

sin(

Īø

DISTANCE LINE-LINE (3D).

L

is the line

~r

t

Q

t~

u

and

M

is the line

~s

t

P

t~

v

, then

d

L, M

P

Q

~u

Ɨ

~v

~u

Ɨ

~v

is the distance between the two lines

L

and

M

This formula is just the scalar projection of

QP

P

Q

onto the vector

~n

~u

Ɨ

~v

normal to both

~u

and

~v

PLANE THROUGH 3 POINTS

P, Q, R

: The vector (

a, b, c

~n

Q

P

Ɨ

R

P

) is normal to the plane.

Therefore, the equation is

ax

by

cz

d

. The constant is

d

ax

0

by

0

cz

0

because the point

P

x

0

, y

0

, z

0

is on the plane. PLANE THROUGH POINT

P

AND LINE

~r

t

Q

t~

u

. The vector (

a, b, c

~n

u

Ɨ

Q

P

) is normal to

the plane. Therefore the plane is given by

ax

by

cz

d

, where

d

ax

0

by

0

cz

0

and

P

x

0

, y

0

, z

0

LINE ORTHOGONAL TO PLANE ax+by+cz=d THROUGH POINT P. The vector

~n

a, b, c

) is normal to

the plane. The line is

r

t

P

~nt

ANGLE BETWEEN PLANES. The angle between the two planes

a

1

x

b

1

y

c

1

z

d

1

and

a

2

x

b

2

y

c

2

z

d

2

is arccos(

~n

1

n

2

~n

1

~n

2

), where

n

i

a

i

, b

i

, c

i

). Alternatively, it is arcsin(

~n

1

Ɨ

n

2

~n

1

~n

2

INTERSECTION BETWEEN TWO PLANES. Find the line which is the intersection of two non-parallelplanes

a

1

x

b

1

y

c

1

z

d

1

and

a

2

x

b

2

y

c

2

z

d

2

. Find first a point

P

which is in the intersection. Then

~r

t

P

t

n

1

Ɨ

~n

2

) is the line, we were looking for.

LINES IN THE PLANE.LINE

P

Q

t~

v

. Eliminating

t

gives a single equation. For example, (

x, y

t

  1. is equivalent to

x

t, y

t

and 4

x

y

  1. The general equation for a line in the plane is

ax

by

d

KNOTS

O. Knill, Math 21a

The

threefoil knot

is the space curve

~r

t

) = ((2 + cos(

t/

2)) cos(

t

(2 + cos(

t/

2)) sin(

t

sin(

t/

1) Find an interval [

a, b

] on which

r

t

) parameterizes a closed curve in space. A closed curve in

space is called a

knot

. These objects are not only interesting in mathematics or physics. For

example, DNA of bacteria and some proteins form knots (see the back of the page).2) Verify that the projection

~r

t

x

t

, y

t

of this curve onto the

xy

-plane is in polar coor-

dinates by

~r

t

) = 2 + cos(

t/

t

t

3) Sketch this curve. Indicate at the crossings, which part of the curve is above the other.4) Calculate the velocity vector

~r

′

t

) of

~r

t

) at

t

= 0. If this vector is

v

a, b, c

, then (

a, b

) is

its projection on the

xy

plane. Draw this vector

a, b

in the above

xy

-projection of the knot.

For more information on DNA knots, see the MSRI talk by DeWitt Sumners:

http://www.msri.org/publications/ln/msri/2000/molbio/sumners/1/

KEPLER’S LAWS

Oliver Knill

FROM THE 2 BODY TO THE KEPLER PROBLEM. Two bodies with po-sition vectors

~r

1

r

2

and mass

m

1

, m

2

attract each other with the force

F

Gm

1

m

2

~x r

3

, where

~x

~r

1

~r

2

is the difference vector between the bodies. The

length

F

of the force is proportional to 1

/r

2

. The vector

~x

~r

1

r

2

of length

r

satisfies

x

′′

~r

′′ 1

~r

′′ 2

m

2

G

~r

2

~r

1

~r

2

~r

1

3

m

1

G

~r

1

~r

2

r

2

~r

1

3

m

1

m

2

G~

x/r

3

. The new problem describes a mass-point with position

x

and mass

m

m

1

m

2

which is attracted to a fixed force centered at the

origin.

This problem

~x

′′

mG~

x/r

3

is called the

Kepler problem

The

angular momentum

~L

m~

x

Ɨ

~x

′

and the

energy

E

m

~x

′

2

mG/

~x

do not change in time.

r

r

m

m

1

1

2

2

x

THE 2.

KEPLER LAW. The ā€area lawā€ or Keplers second law

is:

ā€The radius vector

~x

passes the equal area in equal time.ā€

Proof.

Because

x

′′

is parallel to

~x

, and

L

m~

x

′

Ɨ

~x

, we get

~L

′

0 (use the product law).

If follows that the vector

~x

stays in the plane spanned by

~x

and

~x

′

We can now use co-

ordinates

~x

r

cos(

Īø

, r

sin(

Īø

  1. to describe the point.

With

x

′

r

′

cos(

Īø

, r

′

sin(

Īø

r

sin(

Īø

, r

cos(

Īø

Īø

′

The con-

served quantity

L

m

~x

′

Ɨ

~x

mr

2

Īø

′

can be interpreted as

mf

′

, where

f

t

) is the

area

swept over by the vector

x

in the

interval [

, t

]. We will use the formula

L

r

2

Īø

′

later.

x(t)

x(t+s)

S

S

=(a

ε

,0)

(-a

ε

,0)=

~

ELLIPSES. An

ellipse

with

focal points

S

a,

, S

a,

  1. with

eccentricity

is defined as the set of points in the

plane whose distances ˜

r

and

r

to

S

and

S

satisfy ˜

r

r

a

From (

a

r

2

r

2

r

2

sin

2

Īø

a

r

cos(

Īø

2

, we obtain

r

a

(

āˆ’



2

)

1+



cos(

Īø

)

the

polar form

of the ellipse. One can replace

a

with the constant

r

0

a

, the length of

~r

at

Īø

= 0. The

polar form becomes then

r

r

0

(1+



)

1+



cos(

Īø

)

The

semiaxes

of the

ellipse have length

a

and

b

a

2

. The

area

is

A

Ļ€ab

as

we will see later in the course.

S

S

(x,y)

r

r

(0,0)

=(a

ε

,0)

(-a

ε

,0)=

~

~

r

0

Īø

) Īø r sin(

2a

ε

+a cos(

Īø

)

a

THE 1. KEPLER LAW.

The radius vector

~x

t

) describes an ellipse.

Proof.

(We show that a particle on an ellipse satisfying the 2. law has the correct acceleration of the Kepler law)

. From

the 2. law, we know

Īø

′

L/

mr

2

). The polar form allows us to find the time derivatives

r

′

a

2

) sin(

Īø

cos(

Īø

2

L

mr

2

L

sin(

Īø

ma

2

of

r

t

). (In the last step, we replaced

r

2

in the denominator with the polar formula.) The second derivative is

r

′′

L

2



cos(

Īø

)

(

m

2

a

(

āˆ’



2

)

r

2

)

With the unit vector

~n

~x/r

, one has

~x

′′

~x

′′

~n

~n

. From

~x

~nr

, we get

~x

′

~n

′

r

~nr

′

~x

′′

~n

′′

r

~n

′

r

′

~nr

′′

Therefore

~x

′′

~n

n

′′

~nr

~n

′

~nr

′

r

′′

From

~n

= (cos(

Īø

sin(

Īø

0), we have

~n

′

Īø

′

~n

⊄

where

~n

⊄

sin(

Īø

cos(

Īø

This gives

~n

′

~n

′

Īø

′

2

Using

~n

~n

= 1, we have

~n

~n

′

(3). From

n

′′

n

n

′

~n

′

= 0 and

~n

′

~n

′

Īø

′

2

L

2

mr

2

2

we obtain

~n

′′

nr

L

2

r

(

mr

2

)

2

L

2

m

2

(1+



cos(

Īø

))

r

2

a

(

āˆ’



2

)

(4). Plugging (1),(3),(4) into (2) gives

~x

′′

~n

r

′′

~n

′′

~nr

L

2

cos(

Īø

m

2

a

2

r

2

L

2

m

2

cos(

Īø

r

2

a

2

L

2

m

2

a

2

r

2

Therefore,

~x

′′

~x

′′

~n

~n

~x

′′

~n

~x r

L

2

m

2

a

2

~x r

3

mG

~x r

3

THE 3.

KEPLER LAW. Let

T

be the

period

of the orbit.

It is the time the body needs to go around the

ellipse once. (If

S

is the sun and

r

t

) the orbit of the earth, then

T

is one year.) The third Kepler law states

that

T

2

/a

3

Ļ€

2

Gm

) is a constant

Proof.

If

f

t

) is the area swept by the radial vector from time 0 to time

t

, then

f

′

t

L/

m

) implies

that the area of the ellipse

A

Ļ€a

2

2

is equal to

LT /

m

From

T

mπa

2

2

/L

, we obtain

T

2

/a

3

m

2

Ļ€

2

a

2

/L

2

Ļ€

2

Gm

MEASURING THE GRAVITATIONAL CONSTANT. Note that the 3. Kepler law allows us to compute thegravitational constant

G

from the period, the total mass (essentially the mass of the sun) and the geometry of

the ellipse.The case

1 corresponds to a negative

G

, where particles repell each other. The third Kepler law does then

no more apply and ellipses become a hyperbola. The second law is unchanged. REMARKS.If the force is changed to

~x

′′

mG~

x/r

α

, (note that

α

= 3 is the Kepler case), then the second Kepler law

still applies, the other two laws not. The formula

Īø

L/

mr

2

) still applies. Also the derivation of the formula

for

~x

′′

n

r

′′

L

2

m

2

r

3

) is valid. The left hand side is

mG/r

α

āˆ’

1

, which leads to the ordinary differential

equation

r

′′

mG/r

α

āˆ’

1

L

2

m

2

r

3

) for

r

t

). Knowing

r

t

) gives then

Īø

t

) from

Īø

L/

mr

2

). The global

behavior depends on the constants

G, L

. If

α

= 4, which corresponds to the two body problem in 4 dimensions,

then

r

′′

C/r

3

, where

C

mG

L

2

/m

2

is a constant. If

C >

0, the bodies seperate to infinity. If

C <

0, then

r

t

  1. Only if the angular momentum is such that

C

= 0, there is a bounded motion.

Stable planetary

systems would not exist in four dimensions

. A theorem of Bertant states that only for

α

= 3 (the Kepler

case) and

α

1 (the harmonic oscillator), all bounded orbits are periodic.

COLLISIONS.If the two podies collide, we get a

collision singularity

. Collisions can occur in the 2-body problem, if the

total angular momentum of the two bodies is zero.

Analysing collision singularities involving more than two

bodies helps to understand what happens when particles are close to such collision configurations. It is knownthat initial conditions leading to collisions are rare in the

n

-body problem. Noncollision singularities in which

particles escape to infinity in finite time exist already for the 5-body problem.Our galaxy and M31, the Andromeda galaxy, form a relatively isolated system known as the

local group

. The

center of mass of M31 approaches the center of mass our galaxy with a velocity of 119 km/s.

In about 10

10

years, these galaxies are likely to collide.

Such a collision will have dramatic consequences for both systems.

Nevertheless, even a direct encounter would probably not lead to any collision of any two stars. SOME HISTORY.

Nicolas Kopernicus (1473-1543) had a heliocentric system.

Galileo Galilei (1564-1642) discovers Jupiter moons.

Johannes Kepler (1571-1630) builds on the observations of TychoBrahe. Finds the first and second Kepler Law in 1609, the thirdin 1619.

Before Newton, the dynamics of celestial objects was described em-pirically, first by circular, later by epicycle approximations whicheffectively where Fourier approximations of the actual elliptic mo-tion.

Issac Newton (1643-1727) led the foundations of mathematicaldescription and developed calculus simultaneously with Leibnitz.Newton had already solved the Kepler problem geometrically.

Johan Bernoulli proved in 1710 that solutions to the 2 body prob-lem move on conic sections.

Laplace, Lagrange, Hamilton and Poisson belong to the ancestorsof celestial mechanics, the study of the n-body problem.

With Poincar“

e (1854-1912) at the end of the 19’th century, and

Birkhoff (at Harvard!), the subject of the three body problem wasstudied with new geometric and topological methods.

Lecture 7: 2/25/2004, FUNCTIONS AND LEVEL CURVES

Math21a, O. Knill

Section 11.1: 4(abc) 6(abc),14,16,18,42, Section 11.3: 6 18 FUNCTIONS, DOMAIN AND RANGE. We deal with functions

f

x, y

) of two variables defined on a

domain

D

. The domain is usually the entire plane like for

f

x, y

x

2

  • sin(

xy

). But there are cases like in

f

x, y

x

2

y

2

), where the domain is a subset of the plane. The

range

is the set of possible values of

f

LEVEL CURVES2D: If

f

x, y

) is a function of two variables, then

f

x, y

c

const

is a

curve

or a collection of

curves in the plane.

It is called

contour curve

or

level curve

. For example,

f

x, y

x

2

y

2

is an ellipse. Level curves allow to visualize functionsof two variables

f

x, y

LEVEL SURFACES. We will later see also 3D ana-logues:

if

f

x, y, z

) is a function of three variables

and

c

is a constant then

f

x, y, z

c

is a surface

in space. It is called a

contour surface

or a

level

surface

. For example if

f

x, y, z

x

2

y

2

z

2

then the contour surfaces are ellipsoids.

EXAMPLE. Let

f

x, y

x

2

y

2

. The set

x

2

y

2

= 0 is the union of the sets

x

y

and

x

y

. The set

x

2

y

2

= 1 consists of two hyperbola with with their tips at (

  1. and (

0). The set

x

2

y

2

1 consists

of two hyperbola with their tips at (

EXAMPLE.

Let

f

x, y, z

x

2

y

2

z

2

f

x, y, z

, f

x, y, z

, f

x, y, z

  1. The set

x

2

y

2

z

2

= 0 is a

cone

rotational symmetric around the

z

-axis. The set

x

2

y

2

z

2

is a

one-sheeted hyperboloid

, the set

x

2

y

2

z

2

1 is a

two-sheeted hyperboloid

. (To see that it is two-sheeted note

that the intersection with

z

c

is empty for

z

CONTOUR

MAP.

Drawing

several

contour

curves

f

x, y

c

or

sev-

eral

contour

surfaces

f

x, y, z

c

produces

a

contour

map

The example shows the graph of the function

f

x, y

) = sin(

xy

We draw the contour map of

f

: The curve

sin(

xy

c

is

xy

C

, where

C

= arcsin(

c

) is a constant. The curves

y

C/x

are hyperbolas except for

C

where

y

= 0 is a line. Also the line

x

= 0 is a contour curve. The contour map is a family of hyperbolas and

the coordinate axis. TOPOGRAPHY. Topographical maps often show the curves of equal height.

With the contour curves as

information, it is usually already possible to get a good picture of the situation.

EXAMPLE.

f

x, y

x

2

y

2

. The contour curves

f

x, y

x

2

y

2

c

are the ellipses

x

2

y

2

c

for

c <

SPECIAL LINES. Level curves are encountered every day:

Isobars:

pressure

Isoclines:

direction

Isothermes:

temperature

Isoheight:

height

For example, the isobars to the right show the lines of constant temper-ature in the north east of the US. A

SADDLE.

f

x, y

x

2

y

2

e

āˆ’

x

2

āˆ’

y

2

. We can here no more

find explicit formulas for the con-tour curves (

x

2

y

2

e

āˆ’

x

2

āˆ’

y

2

c

Lets try our best:

f

x, y

) = 0 means

x

2

y

2

= 0 so that

x

y, x

y

are contour curves.

On

y

ax

the function is

g

x

a

2

x

2

e

āˆ’

(1+

a

2

)

x

2

Because

f

x, y

f

x, y

f

x,

y

), the function is symmetric with respect to reflections at the

x

and

y

axis.

A SOMBRERO. The surface

z

f

x, y

) = sin(

x

2

y

2

) has cir-

cles as contour lines. ABOUT CONTINUITY. In reality, one sometimes has to deal with functions which are not smooth or notcontinuous:

For example, when plotting the temperature of water in relation to pressure and volume, one

experiences

phase transitions

, an other example are water waves breaking in the ocean.

Mathematicians

have also tried to explain ā€catastrophicā€ events mathematically with a theory called ā€catastrophe theoryā€.Discontinuous things are useful (for example in switches), or not so useful (for example, if something breaks). DEFINITION. A function

f

x, y

) is

continuous

at (

a, b

) if

f

a, b

) is finite and lim

(

x,y

)

→

(

a,b

)

f

x, y

f

a, b

The later means that that along any curve

~r

t

) with

r

a, b

), we have lim

t

→

0

f

~r

t

f

a, b

Continuity for functions of more variables is defined in the same way. EXAMPLE.

f

x, y

xy

x

2

y

2

Because

lim

(

x,x

)

→

(

,

f

x, x

) = lim

x

→

0

x

2

x

2

2 and

lim

(

x,

→

(

,

f

, x

) = lim

(

x,

→

(

,

The

function is not continuous.

EXAMPLE.

f

x, y

x

2

y

x

2

y

2

In polar

coordinates this is

f

r, Īø

r

3

cos

2

Īø

) sin(

Īø

/r

2

r

cos

2

Īø

) sin(

Īø

). We see that

f

r, Īø

0 uniformly

if

r

  1. The function is continuous.

Lecture 8: 2/26/2004, PARTIAL DERIVATIVES

Math21a, O. Knill

HOMEWORK. 11.3: 6 18 (if not done yet), 40,42,66,70 PARTIAL DERIVATIVE. If

f

x, y

) is a function of two variables, then

āˆ‚

āˆ‚x

f

x, y, z

) is defined as the deriva-

tive of the function

g

x

f

x, y, z

), where

y

is fixed. The partial derivative with respect to

y

is defined similarly.

NOTATION. One also writes

f

x

x, y

āˆ‚ āˆ‚x

f

x, y

) etc.

For iterated derivatives the notation is similar:

for

example

f

xy

āˆ‚

āˆ‚x

āˆ‚ āˆ‚y

f

REMARK. The partial derivatives

x

f, āˆ‚

y

f

measure the rate of change of the function in the

x

or

y

directions.

For functions of more variables, the partial derivatives are defined in a similar way. EXAMPLE.

f

x, y

x

4

x

2

y

2

y

4

We have

f

x

x, y

x

3

xy

2

, f

xx

x

2

y

2

, f

y

x, y

x

2

y

y

3

, f

yy

x

2

y

2

We see that

f

xx

f

yy

= 0. A function which satisfies this equation is

called

harmonic

The equation

f

xx

f

yy

= 0 is an example of a

partial differential equation

CLAIROT THEOREM. If

f

xy

and

f

yx

are both continuous, then

f

xy

f

yx

. Proof. Compare the two sides:

dxf

x

x, y

f

x

dx, y

f

x, y

dydxf

xy

x, y

f

x

dx, y

dy

f

x

dx, y

dy

f

x

dx, y

f

x, y

dyf

y

x, y

f

x, y

dy

f

x, y

dxdyf

yx

x, y

f

x

dx, y

dy

f

x

dx, y

f

x, y

dy

f

x, y

CONTINUITY IS NECESSARY. Example:

f

x, y

x

3

y

xy

3

x

2

y

2

) contradicts Clairot:

f

x

x, y

x

2

y

y

3

x

2

y

2

x

x

3

y

xy

3

x

2

y

2

2

f

x

, y

y

f

xy

f

y

x, y

x

3

xy

2

x

2

y

2

y

x

3

y

xy

3

x

2

y

2

2

f

y

x,

x

f

y,x

f

x, y

f

x

x, y

f

y

x, y

f

xy

x, y

GRADIENT. If

f

x, y, z

) is a function of three variables, then

f

x, y, z

āˆ‚x

f

x, y, z

āˆ‚y

f

x, y, z

āˆ‚z

f

x, y, z

is called the

gradient

of

f

. The symbol

is called

Nabla

. It is named after an Egyptian harp, the Hebrew

word ā€nevelā€=harp seems to have the same aramaic origin).

We will talk about the gradient in detail next

week. NORMAL. As we will see later, the gradient

f

x, y

) is orthog-

onal to the level curve

f

x, y

c

and the gradient

f

x, y, z

) is

normal to the level surface

f

x, y, z

). For example, the gradient

of

f

x, y, z

x

2

y

2

z

2

at a point (

x, y, z

) is (

x,

y,

z

WHY ARE PARTIAL DERIVATIVES IMPORTANT?

Geometry.

For example, the gradient

f

x, y, z

) is a vector normal to a surface at the point (

x, y, z

Tangent spaces.

Approximations, linarizations.

Partial differential equations: laws describing nature.

Optimization problems, as we will see later.

Solution to some integration problems using generalizations of fundamental theorem of calculus.

In general helpful to understand and analyze functions of several variables.

PARTIAL DIFFERENTIAL EQUATIONS. An equation which involves partial derivatives of an unknownfunction is called a

partial differential equation

. If only the derivative with respect to one variable appears,

it is called an

ordinary differential equation

f

xx

x, y

f

yy

x, y

) is an example of a partial differential equation 1)

f

x

x, y

f

xx

x, y

) is an example of

an ordinary differential equation. The variable

y

can be considered as a parameter.

LAPLACE EQUATION

f

xx

f

yy

f

x, t

x

2

y

2

ADVECTION

EQUA-

TION

f

t

f

x

f

x, t

g

x

t

WAVE EQUATION

f

tt

f

xx

f

t, x

sin(

x

t

) + sin(

x

t

HEAT EQUATION

f

t

f

xx

f

t, x

1 √

t

e

āˆ’

x

2

/

(

t

)

ā€A great deal of my work is just

playing with equations

and

seeing what they give.

I don’t suppose that applies so much to

other physicists; I think it’s a peculiarity of myself that I like toplay about with equations, just

looking for beautiful mathe-

matical relations

which maybe don’t have any physical meaning

at all. Sometimes they do.ā€ - Paul A. M. Dirac.

Dirac discovered a PDE describing the electron which is consistent both with quantum theory and special relativity.This won him the Nobel Prize in 1933.

Dirac’s equation could have two solutions, one for an electron with positive

energy, and one for an electron with negative energy. Dirac interpretated the later as an

antiparticle

: the existence of

antiparticles was later confirmed.

Lecture 10: 3/4/2004, DIRECTIONAL DERIVATIVE

Math21a

HOMEWORK. 11.5: 22,26,42,56 REVIEW. CHAIN RULE. The chain rule in multivariable calculus is

d dt

f

~r

t

f

~r

t

~r

′

t

where

f

f

x

, f

y

) in two dimensions or

f

f

x

, f

y

, f

z

) in three dimensions.

DIRECTIONAL DERIVATIVE.If

f

is a function of several variables and

~v

is a vector, then

f

~v

is called the

directional derivative

of

f

in the direction

v

. One writes

~v

f

or

D

~v

f

D

v

f

x, y, z

f

x, y, z

v

It is usually assumed that

v

is a unit vector but we do not insist on that. Using the chain rule, one can write

d dt

D

~v

f

d dt

f

x

t~

v

EXAMPLE. PARTIAL DERIVATIVES ARE SPECIAL DIRECTIONAL DERIVATIVES.If

~v

0), then

D

~v

f

f

v

f

x

If

~v

0), then

D

~v

f

f

v

f

y

If

~v

1), then

D

~v

f

f

v

f

z

The directional derivative is a generalization of thepartial derivatives. Like the partial derivatives, it isa

scalar

EXAMPLE. DIRECTIONAL DERIVATIVE ALONG A CURVE.If

f

is the temperature in a room and

~r

t

) is a curve with velocity

r

′

t

), then

f

~r

t

~r

′

t

) is the temperature

change, one measures on the point moving on a curve

~r

t

) experiences:

the chain rule told us that this is

d/dtf

r

t

GRADIENTS AND LEVEL CURVES/SURFACES.

Gradients areorthogonal to

level curves and level

surfaces.

Every vector

~x

~x

0

in the

tangent line satisfies

f

~x

~x

0

and is

so

orthogonal

to

f

The

same

argument

holds

for

surfaces (see Friday). STEEPEST DECENT. The directional derivative satisfies

D

~v

f

f

~v

because

f

~v

f

v

cos(

φ

f

~v

. The direction

v

f

is the direction, where

f

increases

most,

the direction

f

is the direction where

f

decreases most

. It is the direction of steepest decent.

IN WHICH DIRECTION DOES f INCREASE? If

~v

f

, then the directional derivative is

f

f

f

2

This means that

f

increases

, if we move into the direction of the gradient!

EXAMPLE. You are on a trip in a air-shop at (

  1. and want to

avoid a thunderstorm, a region of low pressure.

The pressure is

given by a function

p

x, y

x

2

y

2

. In which direction do you

have to fly so that the pressure change is largest? Parameterize the direction by

~v

= (cos(

φ

sin(

φ

)). The pressure gradient is

p

x, y

x,

y

). The directional

derivative in the

φ

-direction is

p

x, y

v

= 2 cos(

φ

) + 4 sin(

φ

). This is maximal for

2 sin(

φ

) + 4 cos(

φ

which means tan(

φ

ZERO DIRECTIONAL DERIVATIVE. The rate of change in all directions is zero if and only if

f

x, y

if

f

~0, we can choose

~v

f

and get

D

āˆ‡

f

f

f

2

We will see later that points with

f

~0 are candidates for

local maxima

or

minima

of

f

. Points (

x, y

), where

f

x, y

  1. are called

stationary points

or

critical points

. Knowing the critical points is important to

understand the function

f

PROPERTIES DIRECTIONAL DERIVATIVE.

D

v

λf

λD

v

f

D

v

f

g

D

v

f

D

v

g

D

v

f g

D

v

f

g

f D

v

g

PROPERTIES GRADIENT

λf

Ī»

f

f

g

f

g

f g

f

g

f

g

THE MATTERHORN is a popular climbing mountain in the Swiss alps.

Its

height is 4478 meters (14,869 feet). It is quite easy to climb with a guide. Thereare ropes and ladders at difficult places. Even so, about 3 people die each yearfrom climbing accidents at the Matterhorn, this does not stop you from tryingan ascent. In suitable units on the ground, the height

f

x, y

) of the Matterhorn

is approximated by

f

x, y

x

2

y

2

At height

f

at the point (

3800), you rest.

The climbing route continues into the

north-east direction

v

1). Calculate the rate of change in that direction.

We have

f

x, y

x,

y

), so that (

  1. = 40. This is a place,

with a ladder, where you climb 40 meters up when advancing 1m forward. THE VAN DER WAALS (1837-1923) equation for real gases is

p

a/V

2

V

b

RT

p, V

where

R

J/K

mol is a constant called the

Avogadro number

This

law relates the pressure

p

, the volume

V

and the temperature

T

of a gas. The

constant

a

is related to the molecular interactions, the constant

b

to the finite

rest volume of the molecules. The

ideal gas

law

pV

nRT

is obtained when

a, b

are set to

The level curves or

isotherms

T

p, V

const

tell much

about the properties of the gas.

The so called

reduced van

der Waals law

T

p, V

p

/V

2

V

8 is obtained by

scaling

p, T, V

depending on the gas.

Calculate the directional

derivative of

T

p, V

) at the point (

p, V

  1. into the direction

v

We have

T

p

p, V

V

8 and

T

V

p, V

p/

/V

2

V

3

). Therefore,

T

  1. and

D

v

T

TANGENT LINE. Because

~n

f

x

0

, y

0

a, b

is perpendicular to the level curve

f

x, y

c

through

x

0

, y

0

), the equation for the tangent line is

ax

by

d

a

f

x

x

0

, y

0

b

f

y

x

0

, y

0

d

ax

0

by

0

EXAMPLE. The isotherme in the previous example through (

  1. has there the tangent (

x

y

4 which is the horizontal line

x

3/5/2004, THE SKULL SURFACE, Oliver Knill

, Math21a

Surfaces are usually represented in a triangulatedform.

where a few points on the surface are given

and triples of points form triangles. This illustratesthe

concept

of

linear

approximation

Every

triangle is close to the actual surface.

HOW TO PRODUCE THE SKULL SURFACE.We

found

on

the

web

a

file

skull.dat

, which contains data

These data encode pointsin space:

every line is a

point,

three

points

in

a

row represent a triangle inspace.

So, the first 3 lines fromthe datafile represent thetriangle

P, Q, R

In to-

tal, the file contains 3729points which means thatthere

are

triangles

encoded.

PLOTTING THE SURFACE.To the right is a small Mathemat-ica program which produces a sur-face from these data. The data arefirst read, then packed into groupsof 3 to get the points, then packedinto groups of three to get the tri-angles, then each triple of points ismade into a polygon. All these poly-gons are finally displayed.

A=ReadList[ā€skull.datā€,Number];B=Partition[A,3];P=Partition[B,3];U=Map[Polygon,P];Show[Graphics3D[U],Boxed -

False, ViewPoint -

]

PLOTTING THE GRADIENTS.We

can

get

the

gradient

vec-

tor

on

each

triangle

P

1

, P

2

, P

3

by

taking

the

cross

product

n

P

1

P

2

Ɨ

P

3

P

2

) and adding

lines connecting

Q

P

1

P

2

P

3

with the point

Q

n

. We used that

Gradients are orthogonal

to the level surfaces.

A=ReadList[ā€skull.datā€,Number];B=Partition[A,3];P=Partition[B,3];U=Map[Polygon,P];NormedCross[a

,b

]:=Module[

,u=Cross[a,b]; u

Sqrt[u.u]];

NormalVector[

a

,b

,c

]:=Module[

,P1=(a+b+c)/3;

P2=P1-NormedCross[b-a,c-a]/3;Line[

P1,P

]];

V=Map[NormalVector,P];Show[Graphics3D[

U,V

],Boxed-

False,ViewPoint-

]

Here is the output of the above routine.Fortunately, the points of each trianglewere given in such a way that we alsoknow the direction of the normal vector.We have chosen the direction pointingoutwards. Through every triangle, onegradient vector is displayed.

Once we have the data in Mathematica, we can also export a file, which a raytracer can read. We could alsoexport to a VRML (Virtual Reality Markup Language) and fly around or through it. The ultimate Haloweenexperience!

Lecture 12: 3/8/2004, LINEAR APPROXIMATION

Math 21a, O. Knill

HOMEWORK: 11.6: 4,12,18,40 (for Friday) LINEAR APPROXIMATION.

1D:

The

linear approximation

of a function

f

x

) at a point

x

0

is the linear function

L

x

f

x

0

f

′

x

0

x

x

0

The

graph of

L

is tangent to the graph of

f

2D:

The

linear approximation

of a function

f

x, y

) at (

x

0

, y

0

is

L

x, y

f

x

0

, y

0

f

x

x

0

, y

0

x

x

0

f

y

y

y

0

The level curve of

g

is tangent to the level curve of

f

at (

x

0

, y

0

The graph of

L

is tangent to the graph of

f

3D:

The

linear

approximation

of a function

f

x, y, z

) at

x

0

, y

0

, z

0

) by

L

x, y, z

f

x

0

, y

0

, z

0

f

x

x

0

, y

0

, z

0

x

x

0

f

y

x

0

, y

0

, z

0

y

y

0

f

z

x

0

, y

0

, z

0

z

z

0

The level surface of

L

is tangent to the level surface of

f

at

x

0

, y

0

, z

0

In vector form, the linearization can be written as

L

x

f

~x

0

f

~x

0

~x

x

0

JUSTIFYING THE LINEAR APPROXIMATION. 3 ways to see it:1) We know the tangent plane to

g

x, y, z

z

f

x, y

) at (

x

0

, y

0

, z

f

x

0

, z

0

) is

f

x

x

f

y

y

z

f

x

x

0

f

y

y

0

z

0

. This can be read as

z

z

0

f

x

x

x

0

f

y

y

y

0

). Calling the right hand side

L

x, y

shows that the graph of

L

is tangent to the graph of

f

at (

x

0

, y

0

  1. The higher dimensional case can be reduced to the one dimensional case:

if

y

y

0

is fixed and

x

, then

f

x, y

0

f

x

0

, y

0

f

x

x

0

, y

0

x

x

0

) is the linear approximation of the function.

Similarly, if

x

x

0

is

fixed

y

is the single variable, then

f

x

0

, y

f

x

0

, y

0

f

y

x

0

, y

0

y

y

0

). So along two directions, the linear

approximations are the best. Together we get the approximation for

f

x, y

  1. An other justification is that

f

~x

0

) is orthogonal to the level curve at

~x

0

. Because

~n

f

~x

0

) is orthogonal

to the plane

~n

~x

x

0

d

also, the graphs of

L

x, y

) and

f

x, y

) have the same normal vector at (

x

0

, y

0

, f

x

0

, y

0

EXAMPLE (2D) Find

the linear approximation of the func-

tion

f

x, y

) = sin(

Ļ€xy

2

) at the point (

The gradient is

f

x, y

Ļ€y

2

cos(

Ļ€xy

2

yπ

cos(

Ļ€xy

2

)). At the point (

1), we

have

f

Ļ€

cos(

Ļ€

Ļ€

cos(

Ļ€

Ļ€,

Ļ€

). The linear func-

tion approximating

f

is

L

x, y

f

f

x

, y

Ļ€

x

Ļ€

y

Ļ€x

Ļ€y

Ļ€

. The level curves

of

G

are the lines

x

y

const

. The line which passes through

  1. satisfies

x

y

Application:

f

g

Ļ€

Ļ€

Ļ€

EXAMPLE (3D) Find the linear approximation to

f

x, y, z

xy

yz

zx

at the point (

We have

f

f

x, y, z

y

z, x

z, y

x

f

Therefore

L

x, y, z

f

x

, y

, z

x

y

z

x

y

z

EXAMPLE (3D). Use the best linear approximation to

f

x, y, z

e

x

yz

to estimate the value of

f

at the

point (

Solution

Take

x

0

, y

0

, z

0

where

f

x

0

, y

0

, z

0

The

gradient

is

f

x, y, z

e

x

yz, e

x

z/

y

, e

x

y

). At the point (

x

0

, y

0

, z

0

  1. the gradient is the vector (

5). The linear

approximation is

L

x, y, z

f

x

0

, y

0

, z

0

f

x

0

, y

0

, z

0

x

x

0

, y

y

0

, z

z

0

x

, y

, z

x

y/

z

  1. We can approximate

f

  1. by 5 + (
  1. The actual value is

f

1306, very close to the estimate.

SECOND DERIVATIVE.If

f

x, y

) is a function of two variables, then the matrix

f

′′

x, y

[

f

xx

f

xy

f

yx

f

yy

]

is called the

second

derivative

or the

Hessian

of

f

For functions of three variables, the Hessian is the 3

x

3 matrix

f

′′

x, y, z

f

xx

f

xy

f

xz

f

yx

f

yy

f

yz

f

zx

f

zy

f

zz

Because for

smooth functions,

f

xy

f

yx

, f

yz

f

zy

, the matrix

f

′′

is

symmetric

(a reflection at the diagonal leaves it

invariant). QUADRATIC APPROXIMATION. (informal)If

F

is a function of several variables

~x

and

~x

0

is a point, then

Q

~x

f

~x

0

f

~x

0

~x

~x

0

) + [

f

′′

x

0

~x

x

0

)]

~x

x

0

is called the

quadratic approximation

of

~x

It generalizes the quadratic approximation

L

x

f

x

0

f

′

x

0

x

x

0

f

′′

x

0

x

x

0

2

2 of a function of

one variables. EXAMPLE. If the height of a hilly region is given by

f

x, y

sin(

x

2

y

2

), find the quadratic

approximation of

F

at (

f

x, y

x,

y

) cos(

x

2

y

2

) so that

f

The linear approximation of

F

at (

  1. is

G

x, y

f

  1. = 4000. The graph of

G

is a plane tangent to the graph of

F

f

′′

x, y

) = cos(

x

2

y

2

[

]

so that

f

′′

[

]

The quadratic approximation at (

  1. is

Q

x, y

x

2

y

2

. The graph of

F

is an inverted paraboloid.

EXAMPLE: REDUCED VAN DER WAALS LAW

T

p, V

p

/V

2

V

8 Find the quadratic approx-

imation of

T

at (

p, V

1). We had

T

p

p, V

V

8 and

T

V

p, V

p/

/V

2

V

3

and

T

Now,

T

pp

p, V

T

pV

T

V p

8 and

T

V V

/V

3

/V

4

so

that

T

′′

[

]

. The quadratic approximation at

T

  1. is

Q

p, T

T

T

′

p

, T

1) + [

T

′′

p

, T

1)]

p

, T

ERROR OF APPROXIMATION. It follows from Taylors theorem that the error

f

x, y

L

x, y

) in a region

R

near (

x

0

, y

0

) is smaller or equal to

M

x

x

0

y

y

0

2

2, where

M

is the maximal value of all the matrix

entries

f

′′

x, y

) in that region

R

TOTAL DIFFERENTIAL. Aiming to estimate the change āˆ†

f

f

x, y

f

x

0

, y

0

) of

f

for points (

x, y

x

0

, y

0

x,

y

) near (

x

0

, y

0

), we can estimate it with the linear approximation which is

L

x,

y

f

x

x

0

, y

0

x

f

y

y

In an old-fashioned notation, one writes also

df

f

x

dx

f

y

dy

and calls

df

the

total

differential

. One can

totally avoid

the notation of the

total differential

RELATIVE AND ABSOLUTE CHANGE. The

relative change

f

depends on the magnitude of

f

. One also

defines āˆ†

f

x

0

, y

0

/f

x

0

, y

0

), the

relative change

of

f

. A good estimate is āˆ†

L

x

0

, y

0

/L

x

0

, y

0

PHYSICAL LAWS.Many physical laws are in fact linear approximations to more complicated laws.

One could say that a large

fraction of physics consists of understand nature with linear laws.LINEAR STABILITY ANALYSIS.In physics, complicated situations can occur.

Usually, many unknown parameters are present and the only

way to analyze the situation theoretically is to assume that things depend linearly on these parameters. Theanalysis of the linear situation allows then to predict for example the stability of the system with respect toperturbations. Sometimes, the stability of the linearized system will imply the stability of the perturbation.ERROR ANALYSIS.Error analysis is based on linear approximation.

Assume, you make a measurement of a function

f

a, b, c

where

a, b, c

are parameters. Assume, you know the numbers

a, b, c

up to accuracy

. How precise do you know

the values

f

a, b, c

Because

f

a

0

a

, b

0

b

, c

0

c

) is about

f

a

0

, b

0

, c

0

f

a

0

, b

0

, c

0

a

b

c

), the

answer is that we know

F

up to accuracy

f

a

0

, b

0

, c

0

POWER LAWS.Some laws in physics are given by functions of the form

g

x, y

x

α

y

β

An example is the Cobb-Douglas

formula in economics. Such dependence on

x

or

y

is called

power law behavior

. If we consider

f

= log(

g

and introduce

a

= log(

x

, b

= log(

y

), then this becomes

f

a, b

) = log(

g

x, y

aα

bβ

. Power laws become

linear laws in a logarithmic scale. But they usually are linear approximations to more complicated nonlinearrelations. ELECTRONICS.If we apply a voltage difference

U

at the ends of a resistor

R

, then a current

I

flows.

The relation

U

RI

is called

Ohms law

. In logarithmic coordinates log(

U

) = log(

R

) + log(

I

), this is a linear law. In reality, the

relation between current, voltage and resistance is more complicated.

For example, if the resistor heats up,

then its characteristics begin to change. Nonlinear resistors are used for example in synthesizers or in radars.While Ohm’s law works

extremely well

, the nonlinear behavior can have important consequences for example

to stabilize systems or to protect equipment against over-voltages.THERMODYNAMICS.If

l

T

) is the length of an object with temperature

T

, then

l

T

l

T

0

c

T

T

0

), where the expansion

coefficient

c

depends on the material. (Trick question: What happens if you heat a ring, does the inner ring

become smaller or bigger?). The volume of a hot air balloon and therefore its lift capacity grows like

c

T

T

0

3

The law of expansion is only an approximation.OCEANOGRAPHY.For oceanographers, it is important to know the water density

ρ

T, S

) in dependence on the

temperature

T

(Kelvin) and the

salinity

S

(psu). If we would include the pressure

P

(Bar), then we had a function

ρ

T, S, P

of three variables. Near a specific point (

T, S, P

) the density can be approximated by a linear function giving

a law which is precise enough.ENGENEERING. Hooks law

tells that the force of a spring is proportional to the length with which it is pulled:

F

l

c

l

l

0

where

l

0

is the length when the spring is relaxed.

This allows to measure weights or to cushion shocks.

However, this law is only good in a certain range. If the spring is pulled too strongly, then more force is needed.Such a nonlinear behavior is needed for example in shock absorbers.

MECHANICS For small amplitudes, the pendulum motion ĀØ

x

g

sin(

x

) can be approximated by ĀØ

x

gx

, the harmonic

oscillator. Nonlinear (partial) differential equations like

u

xx

u

yy

u

zz

F

x, y, z

) are often approximated

by linear differential equations. CARTOGRAPHY

It was well known already to the Greeks that we live on a sphere.

On a sphere a triangle however the sum

of its angles adds up to more than 180 degrees and every straight line (great circles) crosses every other lineat least twice. Despite this, a city map can perfectly assume that the coordinate system is Cartesian. Whendrawing a plan of a house, an architect can assume that the house stands on a plane (the level curve of thelinearization

G

x, y

) of

F

x, y

) defining the surface of the earth.)

RELATIVITY Newton’s law tells that

r

′′

t

), the acceleration of a particle is proportional to the force

F

which acts on the

mass point:

r

′′

t

F/m

. For a constant force and zero initial velocity this implies

r

′

t

tF/m

. This law can

not apply for all times, because we can not reach the speed of light with a massive body. In special relativity,the Newton axiom is replaced with

d/dt

r

′

t

m

t

F

, where the mass

m

t

) depends on the velocity. This

gives

v

t

tF/m

0

1

1+

F

2

t

2

/

(

c

2

m

20

)

. Linearization at

t

= 0 produces the classical law

v

t

tF/m

0

ECONOMICS

The mathematician Charles W. Cobb and the economist Paul H. Douglas found in 1928 empirically a formula F

L, K

bL

α

K

β

giving the total production

F

of an economic system as a function of the amount of labor

L

and the capital investment

K

. This is a linear law in logarithmic coordinates. The formula actually had been

found by linear fit of empirical data. In general, the production depends in a more complicated way on labor andcapital investment. For example, with increase of labor and investment, logistic constraints will become relevant. CHEMISTRY

The ideal gas law

P V

RT

relates the pressure, the volume and the temperature of an ideal gas using a

constant

R

called the Avogadro number. This law

T

f

P, V

) is linear in logarithmic scales. This law is only

an approximation and has to be replaced by the van der Waals law, which takes into account the molecularinteractions as well as the volume of the molecules.

For any three vectors

~a

~b

and

~c

, we always have

a

Ɨ

b

c

~a

Ɨ

~c

b

The set of points in the

xy

-plane which satisfy

x

2

y

2

1 form a hyperbola.

The velocity vector

~r

′

t

) and the acceleration vector

r

′′

t

) of a curve are always perpendicular.

The length of a curve does not depend on the parameterization chosen for the curve. The directional derivative of

f

x, y, z

x

2

y

2

z

2

into the direction (

  1. at the point (
  1. is

If

~v

Ɨ

w

= 0 for all vectors

~w

, then

~v

Every vector contained in the line

~r

t

t,

t,

t

is parallel to the vector (

If the velocity vector

r

′

t

) of the planar curve

r

t

) is orthogonal to the vector

r

t

) for all times

t

, then

the curve is a circle. The vectors

i

~j

and

~k

are orthogonal.

If the velocity vector of the curve

~r

t

) is never zero and always parallel to a constant vector

~v

for all times

t

, then the curve is a straight line.

If

~u

v

and

~u

v

are orthogonal, then the vectors

~u

and

~v

have the same length.

The identity

~v

w

2

v

Ɨ

w

2

~v

2

w

2

holds for all vectors

v, ~

w

The set of points which have distance 1 from a line form a cylinder. The distance between a point

P

and a line

L

~r

t

Q

t~

v

is

~v

Ɨ

P Q

P Q

If

w

u, v

) is a function of two variables

u, v

and

u, v

are functions of

x, y

, then

w

x

w

u

u

x

w

y

v

x

The gradient

f

x, y, z

) is always tangent to the surface

f

x, y, z

c

The direction of steepest decent at a point (

x, y

) is

f

x, y

The vector projection of a vector

v

onto a vector

w

is

|

~v

Ɨ

~ w

|

|

~v

|

2

~v

In the Kepler problem, one has

d/dt

~r

~r

′

For any two vectors

v, w

one has

v

w

2

v

2

w

2

For any two vectors

~v

and

~w

one has

v

Ɨ

w

w

Ɨ

v

i

Ɨ

j

~k

If your thumb

~u

, your pointing finger

~v

and middle finger

~w

are perpendicular to each other, and

u

Ɨ

~v

points in the direction opposite to

w

, then the three fingers belong to the left hand.

If

r

t

Q

t~

v

is a line and

P

is a point such that

P Q

is perpendicular to

~v

, then the distance from

P

to the line is equal to the distance from

P

to the line.

The distance of the two planes

x

y

z

= 3 and

x

y

z

= 5 is 2

A level curve of a function

f

x, y

) is a curve which has no self intersections.

The angle between two planes is equal to the angle between its normal vectors. The speed of a curve

~r

t

) is a vector tangent to the curve.

If the acceleration vector of a curve

~r

t

) is parallel to

r

t

) for all times, then the curve must lie in a plane.

The arc length of a curve

~r

t

) parameterized on the interval [

a, b

] is

b

a

x

′

t

2

y

′

t

2

z

′

t

2

dt

Lecture 14: 3/12/2004, CRITICAL POINTS

Math21a, O. Knill

HOMEWORK: Section 11.7: 8,18,20,22 CRITICAL POINTS. A point (

x

0

, y

0

) in a region

G

is called a

critical point

of

f

x, y

) if

f

x

0

, y

0

Remarks. Critical points are also called

stationary points

. Critical points are candidates for extrema because

at critical points, the directional derivative is zero. It is usually assumed that

f

is differentiable.

EXAMPLE 1.

f

x, y

x

4

y

4

xy

    1. The gradient is

f

x, y

x

3

y

y

3

x

)) with critical points

EXAMPLE 2.

f

x, y

) = sin(

x

2

y

y

The gradient is

f

x, y

x

cos(

x

2

y

cos(

x

2

y

For

a critical points, we must have

x

= 0 and cos(

y

) + 1 = 0 which means

Ļ€

k

Ļ€

The critical points are at

, π

Ļ€

EXAMPLE 3. (ā€volcanoā€)

f

x, y

x

2

y

2

e

āˆ’

x

2

āˆ’

y

2

The gradient

F

x

x

x

2

y

2

y

y

x

2

y

2

e

āˆ’

x

2

āˆ’

y

2

vanishes at (

  1. and on the circle

x

2

y

2

= 1. There are

many critical points.

EXAMPLE 4 (ā€pendulumā€)

f

x, y

g

cos(

x

y

2

2 is the energy of the pendulum.

The gradient

F

y,

g

sin(

x

)) is (

  1. for

x

, π,

Ļ€, ..., y

= 0. These points are equilibrium points, where the pendulum is at

rest.EXAMPLE 5 (ā€Volterra Lodkaā€)

f

x, y

a

log(

y

by

c

log(

x

dx

. (This function is left invariant by the

flow of the Volterra Lodka differential equation Ė™

x

ax

bxy,

y

cy

dxy

which you might have seen in

Math1b.) The point (

c/d, a/b

) is a critical point.

TYPICAL EXAMPLES.

0

1

2

0

1

2

0

10 20

0

1

2

f

x, y

x

2

y

2

-0.

0

1

-0.

0

1

-1.

-0.

0 -

-0.

0

1

f

x, y

x

2

y

2

-0.

0

1

-0.

0

1

-0.

0

1

-0.

0

1

f

x, y

x

2

y

2

EXAMPLES WITH DISCRIMINANT

D

= det(

H

-0.

0

1

-0.

0

1

-0.5 -0. -0.

0 -

-0.

0

1

f

x, y

x

2

-0.

0

1

-0.

0

1

0

1

-0.

0

1

f

x, y

x

2

-0.

0

1

-0.

0

1

0

1

2 -

-0.

0

1

f

x, y

x

4

y

4

CLASSIFICATION OF CRITICAL POINTS IN 1 DIMENSION. f

′

x

, f

′′

x

0, local minimum,

f

′′

x

0 local maximum,

f

′′

= 0 undetermined.

-0.

1

0.8 0.6 0.4 0.

1

-0.

1

-0.2 -0.4 -0.6 -0.

-0.

1

0.25 -0.25 -0.5 -0.

1

-0.

1

-0.

-0. -0.

1

-0.

1

0.25 -0.25 -0.5 -0.

1

CLASSIFICATION OF CRITICAL POINTS: SECOND DERIVATIVE TEST. Let

f

x, y

) be a function of

two variables with a critical point (

x

0

, y

0

Define

D

f

xx

f

yy

f

2 xy

, called the

discriminant

or

Hessian

(Remark: With the

Hessian matrix

H

[

f

xx

f

xy

f

yx

f

yy

]

we can write

D

= det(

H

) as a

determinant

If

D >

0 and

H

11

local minimum (bottom of valley)

If

D >

0 and

H

11

local maximum (top of mountain).

If

D <

saddle point (mountain pass).

In the case

D

we would need

higher derivatives to determine the na-ture of the the critical point.

EXAMPLE. (A ā€napkinā€).The function

f

x, y

x

3

x

y

3

y

) has the gradient

f

x, y

x

2

y

2

  • 1). It is the zero vector

at the 4 critical points (

  1. and (

1). The Hessian matrix is

H

f

′′

x, y

[

x

y

]

H

[

]

H

[

]

H

[

]

H

[

]

D

Saddle point

D

, f

xx

Local maximum

D

, f

xx

Local minimum

D

Saddle point

GLOBAL

MAXIMA

AND

MIN-

IMA. To determine the maximumor minimum of

f

x, y

) on a domain,

determine

all

critical

points

in

the

interior

the

domain

and

compare their values with maximaor minima

at the boundary

(A point is in the interior of

G

, if there is a small disc around (

x

0

, y

0

) contained in

G

. A point is at the boundary of

G

,

if any disc aound (

x

0

, y

0

) contains both points in

G

and in the complement).

EXAMPLE 5. Find the critical points of

f

x, y

x

2

x

3

y

2

. With

f

x, y

x

x

2

y

), the critical

points are (

  1. and (

0). The Hessian is

H

x, y

[

x

]

. At (

0), the discriminant is

8 so

that this is a saddle point. At (

0), the discriminant is 8 and

H

11

3, so that (

  1. is a local maximum.

WHY DO WE CARE ABOUT CRITICAL POINTS? •

Critical points are candidates for extrema like maxima or minima.

Knowing all the critical points and their nature tells alot about the function.

Critical points are physically relevant. Examples are configurations with lowest energy).

A CURIOUS OBSERVATION: (The island theorem) Let

f

x, y

be the height on an island. Assume there are only finitely manycritical points on the island and all of them have nonzero de-terminant.

Label each critical point with a +1 ā€chargeā€ if it is

a maximum or minium, and with

1 ā€chargeā€ if it is a saddle

point. Sum up all the charges and you will get 1, independent ofthe function. This property is an example of an ā€index theoremā€,a prototype for important theorems in physics and mathematics. CRITICAL POINTS IN PHYSICS. (informal) Most physical laws are based on the principle that the equationsare critical points of a functional (in general in infinite dimensions). •

Newton equations

. (Classical mechanics) A particle of mass

m

moving in a field

V

along a path

γ

t

r

t

extremizes the integral

S

γ

b a

mr

′

t

2

V

r

t

dt

Critical points

γ

satisfy the Newton equations

mr

′′

t

V

r

t

Maxwell equations

. (Electromagnetism) The electromagnetic field (

E, B

) extremizes the Integral

S

E, B

1 8

Ļ€

E

2

B

2

dV

over space time. Critical points are described by the the Maxwell equations in vacuum.

Einstein equations

(General relativity) If

g

is a dot product which depends on space and time, and

R

is

the ā€curvatureā€ of the corresponding curved space time, then

S

g

R

dV

g

) is a function of

g

for which

critical points

g

satisfy the Einstein equations in general relativity.

OTHER WAYS TO FIND CRITICAL POINTS. Some ideas: walk in the direction of the gradient until youreach a local maximum or walk backwards to reach a local minima. To find saddle points, consider the shortestpath connecting two local minima and take the maximum along this path.