vector calculus
vector calculus
MATHEMETICAL TOOLS
Section 1: Vectors
Electric and fields are described using the language of vectors.
We will now embark on a study of vectors. This will include basic definition of vectors, vector
algebra (such as adding, subtracting and multiplying), vector differentiation and integration.
We can add vectors, say A and B, geometrically by placing the tail of vector B at the head of
vector A and the resultant will be the vector from the tail of the first vector A to the head of the
second vector B, as shown below. The drawing must be done to scale for this to be correct.
B
A B A
+ =
R
If we place a system of axes, such as a x-y axes, in the above diagrams, then we can break up
each vector into its x component and y component as shown below for vector A.
A
Then we can also represent vector A using a pair of number (Ax, Ay).
The idea of using pairs of numbers to locate points in the plane was first spelled out in mid
seventeen hundreds. It was recognised that is associated with vector in 2 dimensional
planes and is associated vector in dimensional plane. The number of
component of a vector represents the vector space of that vector and is indicated by symbol
for vector in two dimensional spaces and for the vector having components.
In three dimension we need three axes; x, y and z axes and three coordinates are used to
represent vectors in 3D. The diagram below shows the position of a particle or object in 3D
The position vector in vector space can be denoted as follows:
or
NB symbolically vectors will be denoted with an arrow or a bar over the symbol, alternatively
bold face letters are used in printed text. Leaving out the arrow or bar means the symbol
represents a scalar quantity.
Or in cylindrical coordinates
In spherical coordinates
is a unit vector in the r direction.
Please note that the text for electromagnetism uses the symbol bold face a with a suitable
subscript to denote unit vectors as follows:
is a unit vector that lies along the x axis.
is a unit vector that lies along the y axis.
is a unit vector that lies along the z axis.
is a unit vector that lies along the vector
The subscript denotes along which direction the unit vector points.
In hand written text you are required to insert an upside down V on all unit vectors to clearly
distinguish them from other vectors.
Example:
If , the unit vector along vector is given by
If then:
i.
ii.
iii.
x y
Since the coordinate axis is a adjacent side if each angle is determined by the cosine ratio. Let
are angles between the vector and the coordinates axis
respectively, then
Exercises 3.1
3. If r1 2x y z , r2 x 3 y 2 z, r3 2x y 3z and r4 3x 2 y 5 z .
Find the scalars such that .
The result of the cross product is another vector. The magnitude of the cross is given by
where is the smaller angle between A and B with the tails of A
and B touching.
The magnitude of is the same as the area of a parallelogram with side .
i.
ii.
iv.
The value is a scalar and it represents the volume of triangular pipe having as edges.
and
The product is also a vector.
then find the dot product of which represent the projection of vector on
vector .
Exercises 3.2
v. .
3. For which values of are the following vectors perpendicular to each other.
i.
ii. .
5. Find the angle which the vector makes with the coordinate axis.
6. If
determine i. A B ii.
iii. .
7. If
find:
i. ii. iii.
iv. v. vii.
8. Prove that the area of a parallelogram with sides is
The ordinary derivatives and partial derivatives of vector follow the rules of elementary
calculus. For example:
i.
ii.
iii.
iv.
v.
vi.
If are vector functions depending on more than one scalar variable say
.
i.
ii.
iii.
iv. , ,
v.
Examples:
1. If and find a.
b.
Solutions
a.
b.
2. If
Solutions:
i.
ii.
iii.
iv.
v.
vi.
Exercises 3.3
1. If find a) b) c) d)
at .
2. If and find a)
b) . c) d) at .
4. If find a) b) c) d)
e) .
2
5. If and , find AX B at .
x y
3.4.1 Gradient
Examples:
a. If is a scalar field, then the gradient of in vector form is given by
7.4.2 Curl
3.4.3 Laplacian
Exercises 3.4
1. Find if i) ii) .
2. Show that .
An elemental area in Cartesian system is dA = dxdy in the xy-plane or dA = dxdz in the xz-
plane etc.
,, JA = d*)') z )h )o )z
{ t.rg d, J-
l
l.)I H
); d*
{
L
dV= d,.dt d-
q
)
Cylindrical coordinates
Consider a point P which has rectangular coordinates (x,y,z) as shown below.
rl
3
----+
o
I
The point P has position vector Cartesian coordinates given by
7=xi+1$t+22
From the diagram the point P can also be represented by (p,0,r) and we can use a set of unit
vectors as follows:
pis aunit vector in the direction of perpendicular line from the z axis to P, along p
$ i, aunit vector in the direction perpendicular to the line labelled p andpoints in the
direction of increasingangle Q
2 is a unit vector in the direction of the z axis
7:pp+22
Note that the unit vector directions will change as we move to different points.
Wecanalsoexpresstheunitvectors p, $and 2intermsoftheunitvectors i, iand 2 as
follows:
b=cosfr+sin4lt
0=*sinfu+cosS,
And 2 stays the same.
If we keep p constant but vary z and / by small amounts we get the elemental area as shown
and dA= dMz
dA= 9dda-
gr){
Or if we keep Qconstant but vary p and /by small amounts we get the elemental area as
shown and dA= dNz
J1 dt = dY d'
Y(,
I
,/
A volume element is
dr = NNMz (a:)dd.
d,t,
)3
ils,.
gdo
Plane Polar coordinates
A special case of cylindrical coordinates is the plane polar coordinates in the xy-plane
From the diagram the point P can also be represented by (r,0) and we can use a set of unit
vectors as follows:
i is a unit vector in the direction of the vector /
0 it uunit vector in the direction perpendicular to the vector y'
and points in the direction of increasing angle 0 AI
r
7 =ri
An elemental area is
dA dre rdrd9
.drdE
5
d(
Spherical coordinates
Consider a point P which has rectangular coordinates (x,y,z) as shown below'
z
2
(n c.si
!+ ;
\ C$fitno ---+---*- 2
.g ZF\y' 4rn g
g,^d 3vg
Co, &
- 2*.
Ld 4
- 5rn9
i 2c
f
The point P has position vector Cartesian coordinates given by
7=xi+y)+22
From the diagram the point P can also be represented by (r,0,Q) and we can use a set of unit
vectors as follows:
I is a unit vector in the direction of perpendicular line from the z axis to P, along p
0 it uunit vector in the direction perpendicular I and points in the direction of increasing
angled', r",'""s'nt"t rJtl-ol' -"i c' 'i i'e tl rv'(
r =rr
Note that the unit vector directions will change as we move to different points.
Wecanalsoexpresstheunitvectors i,7and f irt..-toftheunitvectors i, i and 2 as
follows:
+ ( aso z-1
r= $nO Co5'PL + Srno 8,n4 {
g,nOQ
@: ae5 g Co) fa- t Lt>$e E'" {t -
t_
Y. -1rn$ a + co<+ t
A surface element on the surface of radius r is dA = r'd%d
fJe
,/ d A' ,28,n g- c) I d I
de
f,r'
(
g rl
r ltn& I
rg,"gl/
A volume element is
dV = 12 sin*drd%Q
Digression
Consider a function / (x) which depends only on one variable. Let f have a value ./'(x) at a
point x, and we examine the change in.f, denote bV d|, as we increment x by a small amount
dx.
{4
)t ia4
fd*
I
From the drawing. assuming tl-re c/x is very small. then u'e can approximate the cun'e
between r and x iclx b1, a straight line and the change in / using Pvtl-ragarus is
d/ = srudientxdx
=( {\u'
\a./
Norv lve can generalize the above fbr a function of trvo variables / (x.l') as encluire holi-
does./ change rvhen lve increment x and l, by small amounts
dt ::(L\r,.(41)r,
\rlrl \Ay)"
Norv the position vector in rectangular coordinates is
i=.ri+1,i+22
And a srnall change in the position vector is then given b1,
/ u'',-\ / ,-\
!L\d, l;,'* [ lLl,t
(,/.r/ *l\,1:)'\,1--J
Ji ==[
And using the product and sum rules lbr difl'erentiation u,e get.
dr= d.r.i + d;i + d:i
We rvill be needing this rvher-r u,e do r,'ector integration.
t sat = ll sa.at
Where g may be a function of one, two or three variables, and dA is anelemental area.
Consider the familiar single integral'i FfnO*. We know that this gives the area under the
xl
curve.f(x) between xt and xz Let's evaluate the area under the curve between xr and x2 using a
different approach by using a double integral.
Let's divide the x axis in N segments Ar = "' -,*'wide. Consider the vertical strip of width
t/
Ax M segments Ay wide and consider an
at some x. Similarly let's divide the y axis in
elemental arca M = LxLy as shown. If we make N and M extremely large the A,v becomes dx
and Ay becomes dy and the incremental area becomes dA:dxdy. Then the area of the vertical
strip located at x is
.r'= l (,r )
1,1r,1*
-'/ ---'
J
0
Let's apply the above to two cases: consider./[x):a, which a constant, and xr:0 and xz:b as
shown below.
la
It+ld*
El [d:
l1
x_
Then clearly fiom basic geometry the area under the curve rs area:ab. Let's do it using the
double integral above
lJ:="
or* = l{!;=" ory- = l,'(rtiW =l,o,oa* =axll= 66
We get the correct answer fbr the area.
{= /o
h
,/
k^ ,Uy
--+
: L r undthe
Here l (x),h area under the curve from x:0 to x:b is
='"'=l' =i'rr)r,
L'f ,rr*= [ (f = f [, ri')r,, :1,i,,'l-r-:lr'tr,,= lnn
Which is the area of the triangle. .
Double integrals in other coordinates is similar except instead of dx dy we will have rdrd9 tn
plane polaror dpdz or NNf etc in other coordinates etc. and the integration limits will be in
terms of the variables used in each case.
So, tbr example. lets rvork out the area o{ a circle of radius R using plane polar coordinates.
lrde /^
Wi R r
5
ln plane polar the element area is
dA: rdrd9 and r runs from 0 to R. and 0 runs from 0 to 2n. Thus
Triple integrals
These are volume integral of the form
in rectangular coordinates,
in cylindrical
in cylindrical
limit and is
Example 1
If find a. b.
Solution
a.
b.
Exercise 3.5.1
1. If , find a) b)
2. Evaluate,
3. If and , evaluate
a) b)
a) b)
where
Example 2
Find the work done in moving the electron in a force field given by
along the parametric form , and from
to .
Solution
Example 3
If evaluate from to follow the
ii. From to
while varies from to then
iii. From to
while varies from to then
Example 4
to .
Solution
Since the integration is performed in the -plane, and then
Exercise 3.5.2
Find if:
If the surface has a nonzero normal vector at a point , then there are two opposite
directed unit normal vectors at that point. These vectors are described by various names,
depending on the signs of their components ( ). For example, if the unit normal
vector has positive component, then points roughly in the upwards direction and is
called an upwards unit normal vector. If has a negative component, then points
roughly downwards and called a downward unit normal vector.
For example vector is normal to the surface , then is an upward
unit normal because it has a positive component, left unit normal because it has a negative
j , and a forward unit normal because it has positive .
To compute the unit normal to the surface , given by the equation , we first
rewrite the equation as which is level the surface for the function
is the normal to the surface .To obtain a unit normal vector, we must normalize the gradient
It follows that
is the unit vector to the surface at point , and is the upward unit normal because
is positive. To find the downward unit normal, we multiply the above equation by .
This yield the equation for the downward unit normal as
For the surface in the form of the unit normal vector are obtain by
normalizing the gradient of the function respectively.
3.5.3.1 The unit normalize functions
Example 5
Find the unit normal vector at point to
Solution
and
is called the flux integral of F over or the surface integral of F over or the surface
integral of the normal component of F over .
b. Downward normal
c. Right normal
d. Left normal
e. Forward normal
f. Backward normal
Example 6
Let be the portion of the surface above the -plane oriented upward
normal,and let . Evaluate
Solution
The upward unit normal to surface is given by
; and
Therefore
Exercise 3.5.3.2
Evaluate if:
Divergence theorem
Let be a solid with surface oriented on the outward unit normals. If
where have continuous first partial derivatives on some open set contain , then
.
Example 7
Let be the cube in the first octant as shown in figure below
and let be its surface. Use the divergence theorem to evaluate where
Solution
Example 8
Let be the solid bounded above by the hemisphere and below by the
plane as shown in the figure below. Find where
Solution
By using spherical coordinate and and
Exercise 3.5.3.3
Use the divergence theorem to evaluate , where is the outer unit normal.
Example 9
Solution
LHS
By using parametric equation
Or
Therefore
Example 10
Let be the rectangle in the plane as shown in the figure below; and let
. Find
Solution
Exercise 3.5.3.4
ANWERS
Exercise 3.1
1.
2.
3.
4.
7.
Exercise 3.2
1. i. 10, ii. iii. 6 iv. v. 14
2. i. ii.
3. i. (2 or 1) ii. 3
5.
6. i. ii. iii.
v. vi.
9.
Exercise 3.3
1.
3.
4.
5.
Exercise 3.4
1. i) ii)
3.
4.
5.
6. ii
7. . i. (2 x 2) j ii.
8. or
9. a. 2 y 3x 2 y 2 i (2 x 2 xy 3 ) b.
c. d.
Exercise 3.5.1
1 (a) (b)
2.
3 (a) --------- (b)--------
4. (a) 0 (b)
Exercise 3.5.2
1. 1 2. 0 3.------ 4. 5. 6. ----------
Exercise 3.5.3.2
1. 2. 3. 4. 5. 6. 7. 8. 9.
10. 11.
Exercise 3.5.3.3
1. 2. 3. 4. 5. 6. 7.
Exercise 3.5.3.4
1. 2. 3. 4. 5. 6. 7. 8. 9.