54
Chapter 6 Introduction to Chapter 6 Introduction to Vector Calculus Vector Calculus 6.1 Fluid Flow 6.1 Fluid Flow 6.2 Vector Derivatives 6.2 Vector Derivatives 6.3 Computing the divergence 6.3 Computing the divergence 6.4 Integral Representation 6.4 Integral Representation of Curl of Curl 6.5 The Gradient 6.5 The Gradient 6.6 Shorter Cut for div an 6.6 Shorter Cut for div an curl curl 6.7 Integrals 6.7 Integrals 6.8 Line Integrals 6.8 Line Integrals 6.9 Gauss’s Theorem 6.9 Gauss’s Theorem 6.10 Stokes’ Theorem 6.10 Stokes’ Theorem

Chapter 6 Introduction to Vector Calculus 6.1 Fluid Flow 6.2 Vector Derivatives 6.3 Computing the divergence 6.4 Integral Representation of Curl 6.5 The

Embed Size (px)

Citation preview

Page 1: Chapter 6 Introduction to Vector Calculus 6.1 Fluid Flow 6.2 Vector Derivatives 6.3 Computing the divergence 6.4 Integral Representation of Curl 6.5 The

Chapter 6 Introduction to Vector CalculusChapter 6 Introduction to Vector Calculus

6.1 Fluid Flow6.1 Fluid Flow6.2 Vector Derivatives6.2 Vector Derivatives6.3 Computing the divergence6.3 Computing the divergence6.4 Integral Representation of Curl6.4 Integral Representation of Curl6.5 The Gradient6.5 The Gradient

6.6 Shorter Cut for div and curl6.6 Shorter Cut for div and curl6.7 Integrals6.7 Integrals6.8 Line Integrals6.8 Line Integrals6.9 Gauss’s Theorem6.9 Gauss’s Theorem6.10 Stokes’ Theorem6.10 Stokes’ Theorem

Page 2: Chapter 6 Introduction to Vector Calculus 6.1 Fluid Flow 6.2 Vector Derivatives 6.3 Computing the divergence 6.4 Integral Representation of Curl 6.5 The

6 - 2

6.1 Fluid Flow6.1 Fluid Flow

Consider a fluid moves through a pipe, what is the relationship between the motion of the fluid and the total rate of flow through the pipe (take a rectangular pipe of sides (take a rectangular pipe of sides aa and and bb))??

ˆA An a b r rr

ˆ( )cos cosV Ah A v t Av Av n A v rr r

Now consider the flow through a surface Now consider the flow through a surface that is tilted at an angle to the velocity,that is tilted at an angle to the velocity,

the volume that moves past this flat but tilted surface isthe volume that moves past this flat but tilted surface is

is the angle between the direction of the fluid velocity and the normal to the area. This invites the definition of the area as a vector:

,V Avt V t Av

Page 3: Chapter 6 Introduction to Vector Calculus 6.1 Fluid Flow 6.2 Vector Derivatives 6.3 Computing the divergence 6.4 Integral Representation of Curl 6.5 The

6 - 3

The velocity field is height dependent, , so the contribution to the flow rate through this piece of the surface is

General Flow, Curved SurfacesGeneral Flow, Curved Surfaces

Now consider the fluid velocity to be some function of position, and the surface doesn’t have to be flat.

Describe the coordinates on the surface by the angle as measured from the midline. Divide the surface into pieces that are rectangular strips of length a and width bk/2.

0ˆ( , , ) /v x y z v x y b

rˆ ˆ ˆcos sin

2k k k k k

bA a and n x y

with

0ˆ( , , ) /v x y z v x y b

r

Page 4: Chapter 6 Introduction to Vector Calculus 6.1 Fluid Flow 6.2 Vector Derivatives 6.3 Computing the divergence 6.4 Integral Representation of Curl 6.5 The

6 - 4

Put the pieces together, we then obtain

The total flow is the sum of these over k and then the limit

0 / 2v ab

Note: the result is the same as that for the flat surface calculation!

Page 5: Chapter 6 Introduction to Vector Calculus 6.1 Fluid Flow 6.2 Vector Derivatives 6.3 Computing the divergence 6.4 Integral Representation of Curl 6.5 The

6 - 5

We can describe the flow of a fluid by specifying its velocity field (a

concept of Vector FieldVector Field),

6.2 Vector Derivatives6.2 Vector Derivatives

( , , ) ( )v x y z v rr r r

One of the uses of ordinary calculusordinary calculus is to provide information about the local properties of a functionlocal properties of a function without attacking the whole function at once. That is what derivatives do. The geometric

concept of derivativederivative is the slopethe slope of the curve at a point. — the tangent of the angle between the x-axis and the straight line that best approximates the curve at that point.

Page 6: Chapter 6 Introduction to Vector Calculus 6.1 Fluid Flow 6.2 Vector Derivatives 6.3 Computing the divergence 6.4 Integral Representation of Curl 6.5 The

6 - 6

If a small amount of dye is injected into the fluid at some point, it will spread into a volume that depends on how much the dye is injected. As time goes on this region will movemove and distortdistort and possibly become very complicated, sometimes too complicated to grasp in one picture.

Assume that the initial volume of dye forms a sphere of (small) volume V and let the fluid move for a short time, you would probably observe

1. In a small time 1. In a small time tt the center of the sphere will move. the center of the sphere will move.2. The sphere can expand or contract, changing its volume.2. The sphere can expand or contract, changing its volume.3. The sphere can rotate.3. The sphere can rotate.4. The sphere can distort.4. The sphere can distort.

Page 7: Chapter 6 Introduction to Vector Calculus 6.1 Fluid Flow 6.2 Vector Derivatives 6.3 Computing the divergence 6.4 Integral Representation of Curl 6.5 The

6 - 7

Div, Curl, StrainDiv, Curl, Strain

Let us consider the first onethe first one, the motion of the center, the information will tell you about the velocity at the center of the sphere.

The second oneThe second one, the volume, gives new information. You can simply take the time derivative dVV/dt to see if the fluid is expanding or contracting; just check the sign and determine if it’s positive or negative. That’s not yet in a useful form because the size of this derivative will depend on how much the original volume is. If you put in twice as much dye, each part of the volume will change and there will be twice as much rate of change in the total volume. If the time derivative is divided by the volume itself this effect will cancel. Therefore, we have

Page 8: Chapter 6 Introduction to Vector Calculus 6.1 Fluid Flow 6.2 Vector Derivatives 6.3 Computing the divergence 6.4 Integral Representation of Curl 6.5 The

6 - 8

Look at the third way that the sphere can rotate. Again, take a very small sphere. The time derivative of this rotation is its angular velocity, the vector . In the limit as the sphere approaches a point, this will tell the rotation of the fluid in the immediate neighborhood of that point.

The fourth way that the sphere can change is that it can change its shape. In a very small time interval, the sphere can slightly distort into an ellipsoid. This will lead to the mathematical concept of the strainthe strain. How much information is needed to describe the strain?How much information is needed to describe the strain?

Assume the sphere changes to an ellipsoid, what is the longest axis and how much stretch occurs along it — that’s the three components of a vector. After that what is the shortest axis and how much contraction occurs along it? That’s one more vector, but you need only two new components to define its direction because it’s perpendicular to the long axis. The total number of components needed for this object is

3+2= 53+2= 5.

2 ( ) ( )curl of v r v r r r r r r

r

Page 9: Chapter 6 Introduction to Vector Calculus 6.1 Fluid Flow 6.2 Vector Derivatives 6.3 Computing the divergence 6.4 Integral Representation of Curl 6.5 The

6 - 9

6.3 Computing the divergence6.3 Computing the divergence

How to calculate the divergence and compute the time derivative of a volume from the velocity field?

Recall the change rate of a volume

Pick an arbitrary surface to start with and see how the volume changes as the fluid moves. In time t a point on the surface will move by a distance vt and it will carry with it a piece of neighboring area A. This area sweeps out a volume ˆAn v t

r

Page 10: Chapter 6 Introduction to Vector Calculus 6.1 Fluid Flow 6.2 Vector Derivatives 6.3 Computing the divergence 6.4 Integral Representation of Curl 6.5 The

6 - 10

If at a particular point on the surface the normal is more or less in the direction of the velocity then this dot product is positive and the change in volume is positive.

The total change in volume of the whole initial volume is the sum over the entire surface of all these changes. Divide the surface into a lot of pieces with accompanying unit normals , then

The limit of this as all the

The circle through the integral designates an integral over the The circle through the integral designates an integral over the whole closed surfacewhole closed surface and the direction of is always taken to be is always taken to be outwardoutward. Finally, divide by and take the limit as approaches zero

0iA

n

iA ˆin

nt t

Page 11: Chapter 6 Introduction to Vector Calculus 6.1 Fluid Flow 6.2 Vector Derivatives 6.3 Computing the divergence 6.4 Integral Representation of Curl 6.5 The

6 - 11

The is the rate at which the area ddAA sweeps out volume as it’s carried with the fluid. It’s a completely general expression for

the rate of flow of fluid through a fixed surface as the fluid moves past it.

Use the standard notation in which the area vectorarea vector combines the unit normal and the area:

If the fluid is on average moving away from a point then the divergIf the fluid is on average moving away from a point then the divergence there is positive. It’s diverging!ence there is positive. It’s diverging!

ˆdA ndAr

ˆv n dAr

Page 12: Chapter 6 Introduction to Vector Calculus 6.1 Fluid Flow 6.2 Vector Derivatives 6.3 Computing the divergence 6.4 Integral Representation of Curl 6.5 The

6 - 12

The Divergence as DerivativesThe Divergence as Derivatives

Express the velocity in rectangular components, . For the small volume, choose a rectangular box with sides parallel to the axes. One corner is at point (x0, y0, z0) and the opposite

corner has coordinates that differ from these by (x, y, z). Expand everything in a power series about the first corner. Instead of writing out (x0, y0, z0) every time, abbreviate it by (0).

ˆ ˆ ˆx y zv x v y v z

Page 13: Chapter 6 Introduction to Vector Calculus 6.1 Fluid Flow 6.2 Vector Derivatives 6.3 Computing the divergence 6.4 Integral Representation of Curl 6.5 The

6 - 13

There are six integrals to do, one for each face of the box, and there are three functions, vvxx, vvyy, and vvzz to expand in three variables xx, yy,

and zz.

If you look at the face on the right in the sketch you see that it’s parallel to the y-z plane and has normal . When you evaluate only the vx term survives; flow parallel to the surface (vvyy,

vvzz) contributes nothing to volume change along this part of the surf

ace.

Write the two integrals over the two surfaces parallel to the yy-zz plane, one at xx00 and one at xx00 + xx.

ˆ ˆn xˆv n

r

Page 14: Chapter 6 Introduction to Vector Calculus 6.1 Fluid Flow 6.2 Vector Derivatives 6.3 Computing the divergence 6.4 Integral Representation of Curl 6.5 The

6 - 14

The minus sign comes from the dot product because points left on the left side. Evaluate these integrals by using their power series representations. Take the first integral:

Now put in the second integral, all the terms in the above expression that do not have a x x in them will be canceled. The combination of the two integrals becomes

n

Page 15: Chapter 6 Introduction to Vector Calculus 6.1 Fluid Flow 6.2 Vector Derivatives 6.3 Computing the divergence 6.4 Integral Representation of Curl 6.5 The

6 - 15

The other integrals are the same except that xx becomes yy and yy becomes zz and zz becomes xx. The integral over the two faces with yy constant are then

Add all three of these expressions, divide by the volume,

Take the limit as the volume goes to zero V = xxyyzz, then

Note: Note: The symbol ▽▽ will take other forms in other coordinate systems.

( , , ) y zxv vv

v x y z div v divergence of vx y z

r r r

2 22

0 0 0 0 0 02 2 2

1 1 1( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ...

2 2 2y yz zx x

v vv vv vx y z

x y z x y z

Page 16: Chapter 6 Introduction to Vector Calculus 6.1 Fluid Flow 6.2 Vector Derivatives 6.3 Computing the divergence 6.4 Integral Representation of Curl 6.5 The

6 - 16

The surfaces that have constant values of the coordinates are planes in rectangular coordinates; planes and cylinders in cylindrical; planes, spheres, and cones in spherical. In every one of these cases the constant coordinate the constant coordinate surfaces intersect each other at right anglessurfaces intersect each other at right angles.

The volume elements for these systems come straight from the drawings, just as the area elements do in plane coordinates. In every case you can draw six surfaces, bounded by constant coordinates, and surrounding a small box. Because these are orthogonal coordinates you can compute the volume of the box easily as the product of its three edges.

Simplifying the derivationSimplifying the derivation

Page 17: Chapter 6 Introduction to Vector Calculus 6.1 Fluid Flow 6.2 Vector Derivatives 6.3 Computing the divergence 6.4 Integral Representation of Curl 6.5 The

6 - 17

In the spherical case, one side is . Another side is . The third side is not ; it is . The reason for the factor is that the arc of the circle made at constant rr and constant is not in a plane passing through the origin. It is in a plane parallel to the xx-yy plane, so it has a radius .

r sinr

sinr

rr sin

volumevolumeareaarea

Page 18: Chapter 6 Introduction to Vector Calculus 6.1 Fluid Flow 6.2 Vector Derivatives 6.3 Computing the divergence 6.4 Integral Representation of Curl 6.5 The

6 - 18

Now for the derivation of the divergence, the essence is that you find

on one side of the box in the center of the face, and multiply it by the area of that side. Do this on the other side, remembering that isn’t in the same direction there, and combine the results.

Do this for each side and divide by the volume of the box, such as

When everything is small, the volume is close to a rectangular box, so its volume is

Simplifying the derivationSimplifying the derivation

( )( )( )V r z r

0xv x as x

n

ˆv nr

Do this for the other sides, add, and you get the result.

But what if you need to do it in cylindrical coordinates? in cylindrical coordinates?

Page 19: Chapter 6 Introduction to Vector Calculus 6.1 Fluid Flow 6.2 Vector Derivatives 6.3 Computing the divergence 6.4 Integral Representation of Curl 6.5 The

6 - 19

The top and bottom present nothing significantly different from the rectangular case.

0 0 0 0 0 0 0

( )1[ ( , , ) ( , , )]( ) /( )

vv r z v r z r z r r z

r

0 0 0 0 0 0 0 0 0

( )1[ ( , , )( ) ( , , ) ]/( ) r

r r

rvv r r z r r z v r z r z r r z

r r

( )1 1 zr vvrvdiv v v

r r r z

r r

0 0 0 0 0 0 0 0[ ( , , ) ( , , )]( )( ) /( ) zz z

vv r z z v r z r r r r z

z

The curved faces of constant rr are a bit different, because the areas of the two opposing faces aren’t the same.

Now for the constant sides. Here the areas of the two faces are the same, so even though they are not precisely parallel to each other this doesn’t cause any difficulties.

The sum of all these terms is the The sum of all these terms is the divergence expressed in divergence expressed in cylindrical cylindrical coordinatescoordinates..

Page 20: Chapter 6 Introduction to Vector Calculus 6.1 Fluid Flow 6.2 Vector Derivatives 6.3 Computing the divergence 6.4 Integral Representation of Curl 6.5 The

6 - 20

Divergence in spherical coordinatesDivergence in spherical coordinates

2

2

(sin )( )1 1 1

sin sinr

vvr vdiv v v

r r r r

r r

The coordinate system is orthogonal if the surfaces made by setting the value of the respective coordinates to a constant intersect at right angles. In the spherical example this means that a surface of constant r r is a sphere. A surface of constant θθ is a half-plane starting from the z-axis. These intersect perpendicular to each other. If you set the third coordinate, φφ , to a constant you have a cone that intersects the other two at right angles.

volumevolumeareaarea

Page 21: Chapter 6 Introduction to Vector Calculus 6.1 Fluid Flow 6.2 Vector Derivatives 6.3 Computing the divergence 6.4 Integral Representation of Curl 6.5 The

6 - 21

6.4 Integral Representation of Curl6.4 Integral Representation of Curl

The calculation of the divergence was facilitated by the fact

could be manipulated into the form of an integral

The similar expression for the curl is

0

1limV

dVv

V dt

r

0

1limV

v dA vV

rr r

Ñ

0 0

1 1lim limV V

dVv v dA

V dt V

rr rÑ

What is that surface integral doing with a × × instead of a . . ? Just replace the dot product by a cross product in the definition of the integral. This time however you have to watch the order of the the order of the factorsfactors.

U a vector field that represents pure rigid body rotation.You are going to take the limit as V0, so it may as well be uniform.

( ) ( ) ( )

v r

dA r dA r r dA

r r r

r r rr r r r r r

Page 22: Chapter 6 Introduction to Vector Calculus 6.1 Fluid Flow 6.2 Vector Derivatives 6.3 Computing the divergence 6.4 Integral Representation of Curl 6.5 The

6 - 22

Choose a spherical coordinate system with the z-axis along ωω.

Divide by the volume of the sphere and you have 2ωω as promised.

Page 23: Chapter 6 Introduction to Vector Calculus 6.1 Fluid Flow 6.2 Vector Derivatives 6.3 Computing the divergence 6.4 Integral Representation of Curl 6.5 The

6 - 23

In the above equation you have on the right face and on the left face. This time replace the dot with a cross (in the right order).On the rightOn the right

The Curl in ComponentsThe Curl in Components

With the integral representation, ,

available for the curl, the process is much like that for computing the divergence.

0 0 0( )( ) ( , / 2, / 2)A v y z x v x y y z z r r r r

( )( )xv A v y z rr

0 0 0( )( ) ( , / 2, / 2)A v y z x v x x y y z z r r r r

0

1lim 2V

v dA vV

rr r r

Ñ

On the leftOn the left

Page 24: Chapter 6 Introduction to Vector Calculus 6.1 Fluid Flow 6.2 Vector Derivatives 6.3 Computing the divergence 6.4 Integral Representation of Curl 6.5 The

6 - 24

When you subtract the second from the first and divide by the volume, , what is left is (in the limit a derivative.

0x

ˆ ˆ ˆ

x y z

i j k

curl v v x y z

v v v

r r

( )( )( )x y z

Similar calculations for the other four faces of the box give results that you can get simply by changing the labels: x yzx, a cyclic permutation of the indices. The result can be expressed interms of ▽▽.

Page 25: Chapter 6 Introduction to Vector Calculus 6.1 Fluid Flow 6.2 Vector Derivatives 6.3 Computing the divergence 6.4 Integral Representation of Curl 6.5 The

6 - 25

The gradient is the closest thing to an ordinary derivative, taking a scala

r-valued function into a vector field.

The simplest geometric definition is “the derivative of a function with

respect to distance along the direction in which the function

changes most rapidly,” and the direction of the gradient vector is along

that most-rapidly changing direction.

6.5 The Gradient6.5 The Gradient

ˆˆ ˆrectangular: =xx

1ˆˆ ˆcylindrical: =r

1 1ˆ ˆˆspherical: =rsin

y zy z

zr r z

r r r

grad ( ) ( )f r f rr r

Page 26: Chapter 6 Introduction to Vector Calculus 6.1 Fluid Flow 6.2 Vector Derivatives 6.3 Computing the divergence 6.4 Integral Representation of Curl 6.5 The

6 - 26

For example:For example: is the divergence of , and in cylindrical coordinates

6.6 Shorter path for div and curl6.6 Shorter path for div and curl

vr

1ˆ ˆˆ ˆˆ ˆ( ) ( )r zv r z rv v zvr r z

r

vr

There is another way to compute the divergence and curl in cylindrical and rectangular coordinates. The only caution is that you have to becareful that the unit vectors are inside the derivative, so you have to the unit vectors are inside the derivative, so you have to differentiate them toodifferentiate them too.

Note: The unit vectors , , and don’t change as you alter rr or zz. They do change as you alter θθ. (except for ).

zrz

ˆ ˆˆ ˆˆ ˆ0

r z r z

r r r z z

Page 27: Chapter 6 Introduction to Vector Calculus 6.1 Fluid Flow 6.2 Vector Derivatives 6.3 Computing the divergence 6.4 Integral Representation of Curl 6.5 The

6 - 27

But for , will change with . This can be

noticed by first showing that

( )1 1 zr vvrvdiv v v

r r r z

r r

ˆrand

and differentiating with respect to θθ. This gives

Put all these together, from we obtain

This agrees with

ˆr and

1ˆ ˆˆ ˆˆ ˆ( ) ( )r zv r z rv v zvr r z

r

Page 28: Chapter 6 Introduction to Vector Calculus 6.1 Fluid Flow 6.2 Vector Derivatives 6.3 Computing the divergence 6.4 Integral Representation of Curl 6.5 The

6 - 28

Similarly, we can find the derivatives of the corresponding vectors in

spherical coordinates. The non-zero values are

ˆrand

The result is for spherical coordinates

The expressions for the curl are (this is left for homework):

ˆ ˆ ˆ ˆcos cos cos sin sin

ˆ ˆ ˆsin cos

x y z

x y

ˆ ˆ ˆ ˆsin cos sin sin cos

ˆˆ sin

r x y z

r

Note:Note:

Page 29: Chapter 6 Introduction to Vector Calculus 6.1 Fluid Flow 6.2 Vector Derivatives 6.3 Computing the divergence 6.4 Integral Representation of Curl 6.5 The

6 - 29

6.7 Integrals6.7 Integrals

01

( ) lim ( )k

Nb

k ka xk

dx f x f x

2 2 2 2( ) ( )k k kk k

s x y ds dx dy

( ), ( )x f t y g t

Consider the integral

The basic idea to do this is that you first divide a complicated thing into little pieces to get an approximate answer. You then refine the pieces into still smaller ones to improve the answer and finally take the limit as the approximation becomes perfect.

Divide the curve into a lot of small pieces, then if the pieces are small enough you can use the Pythagorean Theorem to estimate the length of each piece.

By using a parametric representation of the curve

2 2( ) ( )ds f t g t dt & &

Page 30: Chapter 6 Introduction to Vector Calculus 6.1 Fluid Flow 6.2 Vector Derivatives 6.3 Computing the divergence 6.4 Integral Representation of Curl 6.5 The

6 - 30

2 2

2

0

cos , sin ( sin ) ( cos )

2

x R y R then ds R R d

ds R d R

2 2 2 2 2( )ds dr r d dr d r d

2 2( ) ( )b

ads dt f t g t & &

,ds v dt

The integral for the length becomes

Think of this as where vv is the speed.

By using

If the curve is expressed in polar coordinates, the integral for the length of a curve is then

By using θ as a parameter

Page 31: Chapter 6 Introduction to Vector Calculus 6.1 Fluid Flow 6.2 Vector Derivatives 6.3 Computing the divergence 6.4 Integral Representation of Curl 6.5 The

6 - 31

The time for a particle to travel along a short segment of a path is dtdt = dsds/vv where vv is the speed. The total time along a path is of course the integral of dtdt.

Let us examine one loop of a logarithmic spiral:

00 2Let k r

T dt ds v

2 2 (2 ) 2

Suppose that this particle starts at rest from y = 0,

then E = 0 and v = 2gy

mv mgy E so v E m gy

0kr r e

The length of the arc from = 0 to = 2π is

Weighted IntegralsWeighted Integrals

How much time does it take a particle to slide down a curve under the influence of gravity?

Page 32: Chapter 6 Introduction to Vector Calculus 6.1 Fluid Flow 6.2 Vector Derivatives 6.3 Computing the divergence 6.4 Integral Representation of Curl 6.5 The

6 - 32

1.1. Take the straight-line path from (0, 0) to (x0, y0). The path is y =x y =x ··yy00/x/x00

0

2 20 0

2 20 0

2 20 0 2 2

0 0 00

0

1

1 11

2

2

2

2

y

ds dy x y so

dy x ydsT x y y

v gy

x y

g

gy

Page 33: Chapter 6 Introduction to Vector Calculus 6.1 Fluid Flow 6.2 Vector Derivatives 6.3 Computing the divergence 6.4 Integral Representation of Curl 6.5 The

6 - 33

2.2. Take another path for which it’s easy to compute the total time. Drop straight down in order to pick up speed, then turn a sharp corner and coast horizontally. Compute the time along this path and it is the sum of two pieces.

0 0 000

0

0

0

00

0

1 1[ ]22 2

1[

2

2]

2

y x xds dy dxT y

v gy gy g y

g

yx

y

Page 34: Chapter 6 Introduction to Vector Calculus 6.1 Fluid Flow 6.2 Vector Derivatives 6.3 Computing the divergence 6.4 Integral Representation of Curl 6.5 The

6 - 34

If the system is moving in three dimensions, but the force happens to be a constant, then work is simply a dot product:

Divide the specified curve into a number of pieces, at the points { }. Between points kk −1−1 and kk you had the estimate of the arc length as , but here you need the whole vector from to in order to evaluate the work done as the mass moves from one point to the next. Let , then

The general case for workwork on a particle moving along a trajectory in space is a line integralline integral along an arbitrary path for an arbitrary along an arbitrary path for an arbitrary forceforce.

6.8 Line Integrals6.8 Line Integrals

krr

W F r r r

2 2( ) ( )k kx y

Work, done on a point mass in one dimension is an integral:

krr

1kr

r

1k k kr r r r r r

( )f

i

x

xxW F x dx

Page 35: Chapter 6 Introduction to Vector Calculus 6.1 Fluid Flow 6.2 Vector Derivatives 6.3 Computing the divergence 6.4 Integral Representation of Curl 6.5 The

6 - 35

How do you evaluate these integrals?How do you evaluate these integrals? Start with the simplest method and assume that you have a parametric representation of the curve: , then and the integral is( ) ( )dr t r t dt

r r&

F mar r

This an ordinary integral over tt

Start with , take the dot product with and manipulatethe expression.

( )dr tr

( )r tr

The integral of this from an initial point of the motion to a final point is

This is the work-energy theoremwork-energy theorem. Note: in most cases you have to specify the whole path, not just the endpoints.

Page 36: Chapter 6 Introduction to Vector Calculus 6.1 Fluid Flow 6.2 Vector Derivatives 6.3 Computing the divergence 6.4 Integral Representation of Curl 6.5 The

6 - 36

For example, consider that , what is the

work done going from point (0, 0) to (L, L) along the three different paths

indicated?

2 2ˆ ˆ( )F Axyx B x L y r

Page 37: Chapter 6 Introduction to Vector Calculus 6.1 Fluid Flow 6.2 Vector Derivatives 6.3 Computing the divergence 6.4 Integral Representation of Curl 6.5 The

6 - 37

GradientGradient

What is the line integral of a gradient?What is the line integral of a gradient? Consider that

. The integral of the gradient is then( )df grad f dr f dr r r

where the indices represent the initial and final points. That is when you integrate a gradient, you need the function only at its endpoints. The path doesn’t matter.

Page 38: Chapter 6 Introduction to Vector Calculus 6.1 Fluid Flow 6.2 Vector Derivatives 6.3 Computing the divergence 6.4 Integral Representation of Curl 6.5 The

6 - 38

6.9 Gauss’s Theorem6.9 Gauss’s Theorem

0 0

1 1lim limV V

dVdiv v v dA

V dt V

rr rÑ

Fix a surface and evaluate the surface integral of over the surface:v

r

S

v dArr

Ñ

Recall the original definition of the divergence of a vector field:

kVNow divide this volume into a lot of little volumes, with individual bounding surfaces . If you do the surface integrals of over each of these pieces and add all of them, the result is the original surface integral.

kSv dA

rr

Page 39: Chapter 6 Introduction to Vector Calculus 6.1 Fluid Flow 6.2 Vector Derivatives 6.3 Computing the divergence 6.4 Integral Representation of Curl 6.5 The

6 - 39

In the above equation multiply and divide every term in the sum by the volume :kV

kV

vr

'kVdAr

The reason for this is that each interior face of volume is matched with the face of an adjoining volume .The latter face will have pointing in the opposite direction, so when when you add all the interior surface integrals they cancelyou add all the interior surface integrals they cancel. All that’s left is All that’s left is the surface on the outside and the sum over all those faces is the the surface on the outside and the sum over all those faces is the original surface integraloriginal surface integral.

Now taking the limit as all the approach zero. The quantity inside the brackets becomes the definition of the divergence of and you then get

kV

Gauss’s TheoremGauss’s Theorem

Page 40: Chapter 6 Introduction to Vector Calculus 6.1 Fluid Flow 6.2 Vector Derivatives 6.3 Computing the divergence 6.4 Integral Representation of Curl 6.5 The

6 - 40

Verify Gauss’s Theorem for the solid hemisphere,

Use the vector field

Doing the surface integral on the hemisphere, and on the bottom flat disk, . The surface integral is then in two pieces,

ExampleExample

kV

, 0 2 , 0 2r R

2ˆ ˆ ˆ, sinn r dA r r d d r

ˆ ˆˆ ,n dA r dr d r

Page 41: Chapter 6 Introduction to Vector Calculus 6.1 Fluid Flow 6.2 Vector Derivatives 6.3 Computing the divergence 6.4 Integral Representation of Curl 6.5 The

6 - 41

Now do the volume integral of the divergence

2

02 sin cos 0d

Hint: Hint: Note:

and consider cos[ ]k d

k

The two sides of the Gauss’s theorem agree.

Page 42: Chapter 6 Introduction to Vector Calculus 6.1 Fluid Flow 6.2 Vector Derivatives 6.3 Computing the divergence 6.4 Integral Representation of Curl 6.5 The

6 - 42

6.10 Stokes’ Theorem6.10 Stokes’ Theorem

The expression for the curl in terms of integrals is

Use exactly the same reasoning as that was used in the case of the Gauss’s theorem, this leads to

dA vr r

vr

1h A

1A 1nhLet us first apply it to a particular volume, one that is very thin and small. Take a tiny disk of height , with top and bottom area . Let be the unit normal vector out of the top area. For small enough values of these dimensions, is simply the value of the vector inside the volume times the volume itself.

Page 43: Chapter 6 Introduction to Vector Calculus 6.1 Fluid Flow 6.2 Vector Derivatives 6.3 Computing the divergence 6.4 Integral Representation of Curl 6.5 The

6 - 43

The product , using the property of the triple scalar product. The product is in the direction along the arc of the edge, so

Look at around the thin edge. The element of area has height and length along the arc. Call the unit normal out of the edge.

h

1 2 1 2 1 2ˆ ˆ ˆ ˆ ˆ( ) ( )n A v n n v h l n n v h l

r r r r

Take the dot product of both sides with , and the parts of the surface integral from the top and the bottom faces disappear. That’s just the statement that on the top and the bottom, is in the direction of , so the cross product makes perpendicular to .

1n

dAr

1ˆ( ) ( )dA v n v

r r r 1n1n

Here we use the subscript 1 for the top surface and 2 for the surface Here we use the subscript 1 for the top surface and 2 for the surface around the edge.around the edge.

dA vr r

l2n

1 2ˆ ˆn n

Page 44: Chapter 6 Introduction to Vector Calculus 6.1 Fluid Flow 6.2 Vector Derivatives 6.3 Computing the divergence 6.4 Integral Representation of Curl 6.5 The

6 - 44

1 1 1ˆ ˆ( )

S C

n dA v v dl h n v A h r rr r r

Ñ Ñ

This form is easier to interpret than was the starting point with a volume integral. The line integral of is called the circulation of around the loop. Divide this by the area of the loop and take the limit as the area goes to zero and you then have the circulation circulation densitydensity of the vector field.

v dlrr

vr

Put all these pieces together and you have

Divide by and take the limit as . Recall that all the manipulations above work only under the assumption that you take this limit.

1A h 1 0A

Note:Note:

1 0

1ˆ lim

AC

n v v dl circulation densityA

rr rÑ

Page 45: Chapter 6 Introduction to Vector Calculus 6.1 Fluid Flow 6.2 Vector Derivatives 6.3 Computing the divergence 6.4 Integral Representation of Curl 6.5 The

6 - 45

kk C C

v dl v dl r rr r

Ñ Ñ

As before, on each interior boundary between area and the adjoining , the parts of the line integrals on the common boundary cancel because the directions of integration are opposite to each other. All that’s left is the curve on the outside of the whole loop.

'kAkA

Pick a surface AA with a boundary CC. The surface doesn’t have to be flat, but you have to be able to tell one side from the other. Divide the surface into a lot of little pieces , and do the line integral of around each piece. Add all these pieces and the result is the whole line integral around the outside curve.

v dlrr kA

The component of the curl along some direction is then the The component of the curl along some direction is then the circulation densitycirculation density around that direction. Notice that dictates the right-hand ruleright-hand rule that the direction of integration around the loop is related to the direction of the normal .1n

CC kC

Page 46: Chapter 6 Introduction to Vector Calculus 6.1 Fluid Flow 6.2 Vector Derivatives 6.3 Computing the divergence 6.4 Integral Representation of Curl 6.5 The

6 - 46

Now increase the number of subdivisions of the surface, finally taking

the limit as all the , and the quantity inside the brackets

becomes the normal component of the curl of in

.

The limit of the sum is the definition of an integral, so

Multiply and divide each term in the sum by and you have

1 1 0C C

v dl f dl f f r rrr

Ñ Ñ

0kA

kA

. ., ( ) 0i e f

vr

A C

v dA v dl r rr rÑStokes’ TheoremStokes’ Theorem

Note:Note: if , then ( ) ( )v r f rr r r

Page 47: Chapter 6 Introduction to Vector Calculus 6.1 Fluid Flow 6.2 Vector Derivatives 6.3 Computing the divergence 6.4 Integral Representation of Curl 6.5 The

6 - 47

First we calculate the curl of the field

ExampleExample

0, 0 , 0 2r R Verify Stokes’ theorem for that part of a spherical surfacepart of a spherical surface

Use for this example the vector field

Only the component of the curl because the surface integral uses

only the normal ( ) component. The surface integral of this has the

area element .2 sindA r d d

r

r

Page 48: Chapter 6 Introduction to Vector Calculus 6.1 Fluid Flow 6.2 Vector Derivatives 6.3 Computing the divergence 6.4 Integral Representation of Curl 6.5 The

6 - 48

The other side of Stokes’ theorem is the line integral around the circle at angle 0.

The two sides of the theorem agree.The two sides of the theorem agree.

Page 49: Chapter 6 Introduction to Vector Calculus 6.1 Fluid Flow 6.2 Vector Derivatives 6.3 Computing the divergence 6.4 Integral Representation of Curl 6.5 The

6 - 49

An immediate corollary of Stokes’ theorem is that if the curl of a vector if the curl of a vector field is zero throughout a regionfield is zero throughout a region, then line integrals are independent of line integrals are independent of pathpath in that region. To state it a bit more precisely, in a volume for which any closed path can be shrunk to a point without leaving the region, if the curl of equals zero, then

depends on the endpoints of the path, and not on how you get there.

To see why this follows, take two integrals from point aa to point bb.

Conservative FieldsConservative Fields

b

aF drr r

vr

Page 50: Chapter 6 Introduction to Vector Calculus 6.1 Fluid Flow 6.2 Vector Derivatives 6.3 Computing the divergence 6.4 Integral Representation of Curl 6.5 The

6 - 50

The converse of this theorem is also true. If every closed-path line integral every closed-path line integral of is zeroof is zero, and if the derivatives of are continuousthe derivatives of are continuous, then its curl is zero. Stokes’ theorem tells you that every surface integral of is zero, so you can pick a point and a small at this point. For small enough area whatever the curl is, it won’t change much. The integral over this small area is then , and by assumption this is zero. It’s zero for all values of the area vector. The only vector whose dot product with all vectors is zero is itself the zero vector.

This equations happens because the minus sign is the same thing that you get by integrating in the reverse direction. For a field with , Stokes’ theorem says that this closed path integral is zero, and thestatement is proved.

0v r

vr

v A rr

The difference of these two integrals is

vr

Ar v

rvr

Page 51: Chapter 6 Introduction to Vector Calculus 6.1 Fluid Flow 6.2 Vector Derivatives 6.3 Computing the divergence 6.4 Integral Representation of Curl 6.5 The

6 - 51

is a function of the two endpoints alone. Fix and treat this as a

function of the upper limit . Call it .

The defining equation for the gradient is

PotentialsPotentials

Fr

The relation between the vanishing curl and the fact that the line integral is independent of path leads to the existence of potential functions.

If in a simply-connected domainsimply-connected domain (that’s one for which any closed loop can be shrunk to a point), then can be expressed as a gradient, −gradgrad . The minus sign is conventional. That line integrals are independent of path in such a domain means that the integral

0F r

rr 0r

r

( ) ( )df f dr grad f dr r r r

( )rr

Page 52: Chapter 6 Introduction to Vector Calculus 6.1 Fluid Flow 6.2 Vector Derivatives 6.3 Computing the divergence 6.4 Integral Representation of Curl 6.5 The

6 - 52

Compare the last two equations and because is arbitrary, you can immediately get

drr

How does the integral change when you change a bit?rr

( )F grad r

( )d rr

Page 53: Chapter 6 Introduction to Vector Calculus 6.1 Fluid Flow 6.2 Vector Derivatives 6.3 Computing the divergence 6.4 Integral Representation of Curl 6.5 The

6 - 53

In both cases, there are extra conditions needed for the statements to be completely true. To conclude that a conservative field ( ) is a gradient requires that the domain be simply-connectedsimply-connected, allowing theline integral to be completely independent of path. To conclude that a field satisfying can be written as requires something similar: that all closed surfaces can be shrunk to a pointall closed surfaces can be shrunk to a point.

Vector PotentialsVector Potentials

When a vector field has zero curl then it’s a gradient. When a vector field

has zero divergence then it’s a curl. In both cases the converse is simple,

and it’s what you see first:

F Arr

We can construct the function because . It is also

possible, if , to construct the function such that

.

0F r

( ) ( )F r A rrr r r

( )rr

0F r

( )A rr r

0F r

0F r

Page 54: Chapter 6 Introduction to Vector Calculus 6.1 Fluid Flow 6.2 Vector Derivatives 6.3 Computing the divergence 6.4 Integral Representation of Curl 6.5 The

6 - 54

Example:Example: Verify that is a vector potential

for the uniform field .

Note:Note: Neither the scalar potential nor the vector potential are unique.

You can always add a constant to a scalar potential because the

gradient of a scalar is zero and it doesn’t change the result.

For the vector potential you can add the gradient of an arbitrary

function because that doesn’t change the curl.

( )B A A r rr

( )F C r

( ) ( )2

rA r B

rr rr

Br