18

Vector calculus

18.1 Introduction

In the previous chapter, we looked at functions of more than one variable. For a function of two variables (x, y) we define a function u = f (x, y) which can be represented by a surface. For each pair of values (x, y) we can find a single value for u, showing that u is a scalar quantity. For this reason, a function of spatial coordinates is called a scalar field. We also saw how to calculate a gradient of a function of two variables and that the gradient depends on the direction of the path that we choose across the surface. This means that the gradient must be described by both a magnitude and a direction. From Chapter 9, we know that vectors are used to represent quantities that have both magnitude and direction and we shall show in this chapter that we represent the gradient of a scalar field as a vector field.

A vector field is a vector function, which means that at each point in space the function has both magnitude and direction and can be expressed by a vector with x, y, and z components. In Chapter 6, we quoted many relationships between physical quantities that involve derivatives. There we considered only movement in a single spatial direction. Many of these equations should properly be described by vector field equations in space. In order to express these equations, we need to define the operations of divergence and curl of a vector field. Vector field equations are particularly important in electromagnetic field theory.

In this chapter we give an introduction to vector fields and operations on vector fields with applications to evaluating line and surface integrals.

18.2 The gradient of a scalar field

We define the gradient of a scalar field as follows

ϕ=ϕxi+ϕyj+ϕzk=(ϕx,ϕy,ϕz).

si1_e

ϕsi2_eis the gradient of φ or simply ‘grad ϕ,si3_eis called the ‘del’ operator. The meaning of this definition is that we take the partial derivative of the scalar field with respect to x, y, and z, and these are the components of our vector field.

This definition is equivalent to

ϕ=(ix+jx+kx)ϕ

si4_e

and also to

ϕ=(x,x,x)ϕ.

si5_e

If ϕsi6_eis defined for two spatial dimensions (x, y) only then we would have

ϕ=ϕxi+ϕyj=(ϕx,ϕy).

si7_e

Example 18.1

Given ϕsi8_e = x2 + xyz, find the vector field that describes its gradient.

Solution We use

ϕ=ϕxi+ϕyj+ϕzk.

si9_e

Differentiating ϕsi10_epartially with respect to x, y, and z, we find:

ϕx=2x+yzϕy=xzϕz=xy.

si11_e

Therefore, we find that

ϕ=(2x+yz)i+xzj+xyk=(2x+yz,xz,xy).

si12_e

Direction of maximum slope

We would like to know why this vector function is called the gradient. We saw in the last chapter that a function of more than one variable has many derivatives associated with it, depending on the direction that we choose to measure it. We found that for a function of ϕsi13_eof two variables, along a path defined by (x(t), y(t)), the derivative of ϕsi14_eis given by:

dϕdt=ϕxdxdt+ϕydydt.

si15_e

Using the definition of the scalar product, we can write the above as

dϕdt=(ϕx,ϕy).(dxdt,dydt)=ϕ.(dxdt,dydt)

si16_e

where (dx / dt, dy / dt) has components representing the rate of change of x and y and therefore gives the direction of the path in the (x, y) plane.

We also know from Chapter 9 that for two vectors a and b:

ab=abcos(θ)

si17_e

where a · b is the scalar product of vectors a and b, θsi18_eis the angle between them and a, b are their magnitudes. If the direction of b could be chosen in order to maximize this scalar product we would choose θ=0,si19_ebecause |cos(θ)|1si20_ewith the maximum value occurring at θ=0,si21_ewhere cos(θ)si22_e= 1. So to maximize the scalar product we choose the direction of b to be along a. So the direction of the path which maximizes the scalar product

dϕdt=(ϕx,ϕy)(dxdt,dydt)

si23_e

will be when the direction of (dx / dt, d y / dt) is the same as that of ϕ.si24_eSo ϕsi25_egives the magnitude and direction of maximum gradient of ϕsi26_eand the slope in any general direction can be found by taking the component of ϕsi27_ein the direction of interest.

Example 18.2

Given?ϕ?=zx1/2y3/2,find the vector field thatsi28_e describes its gradient, where x, y > 0 and find the maximum slope at the point (4,9,1).

Solution We use

ϕ=ϕxi+ϕyj+ϕzk.

si29_e

Differentiating ϕsi30_epartially with respect to x, y, and z, we find:

ϕx=12x1/2ϕy=12y1/2ϕz=1.

si31_e

Therefore, we find that

ϕ=12x1/2i12y1/2j+k=(12x1/2,12y1/2,1)

si32_e

Therefore, the maximum slope at the point (4, 9, 1) is given by substituting x = 4, y = 9, and z = 1 into the above expression for grad ϕsi33_egiving (−1/4, −1/6, 1). This has a magnitude of

(14)2+(16)2+121.044

si34_e

in a direction given by the unit vector

11.044(14,16,1)=(0.261,0174,1).

si35_e

The si36_e(del) operator

We defined

ϕ=(x,x,x)ϕ

si37_e

or equivalently

ϕ=(ix+jx+kx)ϕ.

si38_e

We can see that ∇ (del) can be considered as an operator defined by

=(x,x,x)

si39_e

or equivalently

=(ix+jx+kx).

si40_e

This same operator can be used when differentiating vector fields.

18.3 Differentiating vector fields

We now consider vector fields, which represent a vector at each point in space. Therefore, we have the field F which has components in the x, y, and z directions, all of which are also functions of x, y, and z, that is

F(x,y,z)=iFx+jFy+kFz=(Fx,Fy,Fz)

si41_e

where Fx, Fy, Fzare all functions of x, y, and z.

There are two important fields that can be found by differentiating vector fields. The divergence of a vector field produces a scalar field and the curl of a vector field produces a vector field. These are defined as follows

F=divF=Fxx+Fyy+Fzz×F=curlF=(FzyFyz)i+(FxzFzx)j???????+(FyxFxy)k.

si42_e

The last expression can also be represented by using a determinant to define the cross-product of a vector. We have that

×F=(x,x,x)×(Fx,Fy,Fz)=|ijk/x/y/zFxFyFz|.

si43_e

There is one more operator that is used in many equations of electromagnetic fields. This is the ‘del squared’ operator 2si44_ewhich operates on a scalar field. This is defined by

2==(x,y,z).(x,y,z)=2x+2y+2z.

si45_e

All of these operators are important in describing vector field relationships. For instance

2ϕ=k22ϕt2

si46_e

represents the three-dimensional wave equation.

Example 18.3

For F=?(2x2y,?4y2z,?8z2)findF and×F.si47_e

Solution From the definition

F=Fxx+Fyy+Fzz

si48_e

we see that we find the scalar field by partially differentiating the first component by x, the second by y, and the third by z, and summing the result. Hence

F=4xy+8yz+16z.

si49_e

To find ×Fsi50_ewe use the definition in terms of the determinant and expand about the first row, which in this case gives:

×F=|ijk/x/y/z2x2y4y2z8z2|          =(y(8z2)z(4y2z))i(x(8z2)+z(2x2y))j +(x(4y2z)y(2x2y))k=4y2i2x2yk=(4y2,0,2x2y).      

si51_e

Example 18.4

Show the vector identity

×F=0.

si52_e

Solution Taking F = (Fx, Fy, Fz), we get from the definition of curl:

×F=(FzyFyz)i+(FxzFzx)j+(FyxFxy)k.

si53_e

Now taking the divergence of the resulting vector field we take the dot product of

=(x,y,z)

si54_e

with the above giving

(x,y,z)((FzyFyz),(FxzFzx),(FyxFxy))=(2Fzxy2Fyxz)+(2Fxyz2Fzyx)+(2Fyzx2Fxzy).

si55_e

We use the fact that for functions with continuous partial derivatives

2Fzyx=2Fzxy

si56_e

that is, the order of differentiation used to calculate higher-order partial derivatives is not important. Then all the terms in the above cancel out giving

×F=0.

si57_e

18.4 The scalar line integral

The result of integrating a scalar field along a given curve is important for calculating many physical quantities. We know that in one dimension we relate the work done by a force in moving from one location to another as W = ∫ F dx, where F is the force, W is the work done or energy used and x is the distance moved in the direction of the force. In three dimensions, an object can move along a path and the position of the object will vary such that r = (x(t), y(t), z(t)) where t is some parameter used to describe the path taken. The work done in any given direction will be given by the component of the force in that direction multiplied by the distance moved. Hence we find:

W=CFdr

si58_e

where C is the path along which the object moves and r describes its position vector. To calculate this value we need to be able to integrate fields along a path, where the path is described in terms of a position vector, r = (x(t), y(t), z(t)).

We use

drdt=(dxdt,dydt,dzdt)

si59_e

and the symbolic relationship

dr=drdtdt

si60_e

to give

dr=(dxdt,dydt,dzdt)dt

si61_e

and

C?F?dr=t1t2(Fx,Fy,Fz).(dxdt,dydt,dzdt)dt=t1t2Fxdxdt+Fydydt+Fzdzdtdt

si62_e

where t1 and t2 are the values of the parameter at the start and end points of the curve C.

Example 18.5

Given F = 2xyzix2y j + z2x k, Find the integral of F along a path defined by 2t it j + k from t = 1 to t = 4.

Solution We have r = 2t i – 3t j + k, and therefore, x = 2t, y = −3t, and z = 1 giving

dr=(dxdt,dydt,dzdt)dt=(2,3,0)dtandF=(2xyz,−x2y,z2x)

si63_e

Therefore, we want to find

14(2xyz,x2y,z2x)(2,3,0)dt=14(4xyz+3x2y)dt

si64_e

Substituting for x, y, z in terms of t, as above, we get

1424t224t3dt=[24t3324t44]14=[8t36t4]14        =(4×64)(6×256)(86)    =1792+14=1778.

si65_e

Example 18.6

Find

CFdr

si66_e

where F = (2xy, 3z, 12xyz), and C is a path clockwise around a triangle ABC with vertices A(1,0,–l), B (1,1,1), C (0,1,1).

Solution We need to integrate along each of the three sides of the triangle. We need, in each case to find the equation of the line along the side of the triangle. The vector equation of a line between two points a and b was found in Chapter 9 to be r = a(l – t)+ b t where t is some parameter and for points between A and B then 0≤t ≤ 1.

From A to B:r = (1,0, –1)(1 – t) + (1,1, l)t = (1, t, −1 + 2t). So x = 1, y = t, and z = − 1 + 2t, and

dxdt=0,dydt=1,dzdt=2dr=(dxdt,dydt,dzdt)dtdr=(0,1,2)dtAtoBF·dr=t1t2(Fx,Fy,Fz).(dxdt,dydt,dzdt)dt????   ? =01(2xy,3z,12xyz).(0,1,2)dt????   ? =013z+24xyzdt????   ? =013(1+2t)+24t(1+2t)dt????   ? =01318t+48t2dt????   ? =[3t9t2+16t3]01=4.

si67_e

Similarly,wefindthatBtoC:r=(1,1,1)(1t)+(0,1,1)t=(1t,1,1)Sox=1t,y=1anddxdt=1,dydt=0,dzdt=0BtoCFdr=t1t2(Fx,Fy,Fz).(dxdt,dydt,dzdt)dt????     =01(2xy,3z,12xyz)·(1,0,0)dt????     =012xydt=012(1t)dt=[(1t)2]01=1

si68_e

FromCtoA:r=(0,1,1)(1t)+(1,0,1)t=(t,1t,12t).Sox=t,y=1t,andz=12t,anddxdt=1,dydt=1,dzdt=2CtoAFdr=t1t2(Fx,Fy,Fz).(dxdt,dydt,dzdt)dt????     =01(2xy,3z,12xyz).(1,1,2)dt????     =012xy3z24xyzdt????     =012t2t23(12t)24t(1t)(12t)dt????     =0148t3+70t216t3tdt????     =[12t4+70t338t3t]01????     =12+70383=13.

si69_e

Therefore, the total integral around the path is given by the sum of the integral along the three sections – that is

41+13=313.

si70_e

Integrals round a closed curve

If we are calculating the line integral round a closed curve in a plane (where the field is a function of x and y only) we can use Green's theorem in a plane to convert the integral into a double integral over the enclosed surface. This theorem is as follows

CFxdx+Fydy=sFyxFxydxdy.

si71_e

The left-hand side of this expression represent the integral of F · dr, as before, however now we are limited to considering a plane so that r = (x, y) and also the path of integration must be closed. The fact that C is a closed path is indicated by the small circle on the integral sign.

Example 18.7

Using Green's theorem find the integral

CFdr

si72_e

where F = (3x2, −4xy), and C a path clockwise along the perimeter of the rectangle 0 ≤ x ≤ 4, 0 ≤ y ≤ 1.

Solution We want to find

CFdr=CFxdx+Fydy

si73_e

which, by Green's theorem in the plane, is equal to

sFyxFxydxdy.WehaveF=(3x2,4xy)=(Fx,Fy)andthereforeFyx=4yandFxy=0.

si74_e

The surface is a rectangle so the limits for the integration are easy to establish as being for x from 0 to 4 and for y from 0 to 1. Hence, we get the surface integral.

CFdr=01(044ydx)dy.

si75_e

To perform a multiple integral we simply do one integral and then integrate the result. The order of performing the integrations will not matter in this case because the limits of integration are independent of the other variable and the integrals exists and are continuous in the relevant region. We do the inner integration with respect to x. Here we are integrating −4 y, which does not contain a term in x, so we treat it as a constant for the purposes of the first integration giving the integral as −4 y x.

01[044ydx]dy=01[4yx]x=0x=4dy=0116y?dy.

si76_e

Now, we do the integration in y to give

[8y2]01=8.

si77_e

18.5 Surface integrals

Many problems in field theory involve the calculation of flux of a vector field out of some enclosed surface. This requires us to integrate a vector field over the surface. Such problems are simplified by using the divergence theorem, which relates the integral of a vector field over a bounding surface to the integral of the divergence of the field over the enclosed volume.

SFdS=V(F)dV.

si78_e

S is a surface enclosing the volume V. This expresses the relationship between the amount of source material in a volume and the flux out of the enclosing surface. An example is the relationship between electric charge within a volume and the flux of the resulting electric field.

Example 18.8

Given F = (xy + z, 2x2y, 1) find the integral of F over the closed surface consisting of the edges of the cube 0 ≤ x ≤ 3, 0 ≤ y ≤ 3 and 0 ≤ z ≤ 3.

Solution We want to use the divergence theorem

SFdS=V(F)dV

si79_e

so we need to find the divergence of the vector field F = (xy + z, 2x2 y, 1) giving Fx = xy + z, Fy = 2x2y, and Fz = 1 and

F=Fxx+Fyy+Fzz=1+2x2

si80_e

The integral is

sFdS=V(F)dV=0303031+2x2dx?dy?dz.

si81_e

We can now perform each of the integrations one after the other. We begin with, the integration over x, which gives

0303031+2x2dxdydz=0303[x+x33]03dydzandevaluatingthelimitfory,weget:030321dydz=03[21y]03dz,nowevaluatingthelimitfory,weget:0363dz=[63z]03=189.

si82_e

Example 18.9

Use the divergence therem to evaluate the surface integral of F where R = e(x+y+z) and S is the surface of a tetrahedron defined by the vertices (0,0,0), (1,0,0), (0,1,0), and (0,0,1).

Solution We use

SFdS=V(F)dV

si83_e

but in order to express the limits of the integration we need to consider the geometry of the given tetrahedron. This is shown in Figure 18.1.

f18-01-9780750658553
Figure 18.1 Tetrahedron for Example 18.9.

We can see from the figure that the sides of the tetrahedron lie along the x, y- and z-axes and the fourth side is the plane ABC, given by the equation x + y + z = 1. In this simple case, we can guess the equation of this plane and check that it is correct by substituting the values for the points A (1,0,0), B (0,1,0), and C (0,0,1). We need to choose the limits of integration so that we integrate correctly over this tetrahedron. x must start from 0 and go up to values lying on the plane ABC. This means that x is from 0 to 1 – y – z. If we integrate for x first then when considering the integration for y, we will have eliminated the x variable and will be left with the y, z plane. So y goes between y = 0 and the line BC, given by y = 1 – z. Finally, in considering z we have the values of z from 0 to 1. This gives:

0101z01yze(x+y+z)dx?dy?dz.

si84_e

We perform the integration with respect to x:

=0101z[e(x+y+z)]01yzdy?dz=0101ze(1yz+y+z)e(y+z)dy?dz=0101ze1e(y+z)dydz.

si85_e

Now we integrate with respect to y:

01[e1y+e(y+z)]01zdz=01e1(1z)+e1ezdz

si86_e

Finally, integrating with respect to z we get:

[e1(z1)22+e1zez]01=e1+e112e11=32e11.Sotheintegralgives32e11.

si87_e

18.6 Summary

1. A scalar field is a function of spatial coordinates giving a single, scalar value at every point (x, y, z).

2. The gradient of a scalar field φ grad φ is defined by:

ϕ=ϕxi+ϕyj+ϕzk=(ϕx,ϕy,ϕz).

si88_e

3. The gradient of a scalar field gives the magnitude and direction of the maximum slope at any point r = (x, y, z) on φ.

4. ∇is the ‘del’ operator where

=(x,x,x)

si89_e

orequivalently=(ix+jx+kx)

si90_e

5. A vector field is a vector function of spatial coordinates, for example, F(x, y, z)= i Fx+ j Fy+ k Fz= (Fx, Fy, Fz)where Fx, Fy, Fzare all functions of x, y, and z.

6. The divergence and curl of a vector field are defined by

F=divF=Fxx+Fyy+Fzz×F=curl F=(FzyFyz)i+(FxzFzx)j??????     +(FyxFxy)k.

si91_e

The expression for curl F can also be represented using a determinant, to define the cross product of two vectors. We have that:

×F=(x,x,x)×(Fx,Fy,Fz)??=|ijk/x/y/zFxFyFz|

si92_e

7. A line integral of a vector field, F, along some path C can be calculated by

CFdr=t1t2Fxdxdt+Fydydt+Fzdzdtdt

si93_e

where r = (x(t), y(t), z(t)) is the position vector of a position on the curve C represented using a parameter t and values t1 and t2 correspond to the end points of the path of C.

8. The line integral around a closed path in two dimensions can be converted to a surface integral by using Green's theorem in two dimensions:

?CFxdx+Fy?dy=sFyxFxydxdy.

si94_e

This gives a double integral evaluated over the given surface in the plane.

9. A surface integral around a closed surface in three dimensions can be converted to a volume integral over the volume enclosed within the surface using the divergence theorem

SFdS=V(F)dV.

si95_e

This then gives a triple integral to be evaluated over the given volume.

18.7 Exercises

18.1. Given that φ = x2yz + 5z3, Ψ = x2y2Z, F = (xy, 3xyz, x –z), and G = (3z, 4x, 2), find

(a) ϕ at (1, 1, −2)

(b) ψ at (0.5, 0.1,0)

(c) ·F

(d) xG

(e) curl (φ i + ψ j)

(f) div(ψ G)

(g) The magnitude of the maximum slope and the unit vector in the direction of the maximum slope of ψ at the point (1,2,0).

18.2. ϕ and ψ are scalar field functions of (x, y, z). Show the following vector identities:

(a)(ϕψ)=ϕψ+ψϕ(b)×(ϕ)=0.

si96_e


18.3. Calculate

CFdr

si97_e


where

(a) F = (y2, x, zy) and C is along the line joining the points A (2,0,0) and B (1,1,0),

(b) F = x2yi + 2xy j + 3xyz k and C is along the path given by r = ti + (1 – t) j + t k for t from 1 to 3.

18.4. Find the work done by the force F = (3x, –2y, z) in the displacement along the curve y = x, z = 2x2 as x goes from 1 to 2.

18.5. Use Green's theorem in the plane to evaluate the following line integrals clockwise around the given closed curve

(a) F = xi + y 2j, where C is the perimeter of a rectangle ABCD where A = (0,0), B = (0,2), C = (1,2), and D = (1,0);

(b) F = (xy)i + (–x –y)j where C is the perimeter of the square given by 1 x3and0y2;si98_e

(c) F = (cos(y), sin(x)) where C is the region bounded by the lines x = 0, x = 1, y = −π /2, and y = π/2.

18.6. For the following vector fields, F, use the divergence theorem to evaluate the surface integrals over the surface, S, indicated:

(a) F = xyi + yzj + xzk, where S is the surface of the cube given by 0xa,a/2ya/2,si99_eand az0;si100_e

(b) F = ziy2 j and S is the surface of 0 x4,0y1and0zy;si101_e

(c) F = (x+ y, xz, x2 + z2) where S is the surface of a tetrahedron defined by the vertices (0,0,0), (1,0,0), (0,1,0), and (0,0,1).

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.220.163.91