1.em1 2
1.em1 2
• Vector calculus–
vector differentiation and integration,
line integration, surface integration and volume
integration,
gradient, divergence and curl.
Vector algebra
B A
B A+B
A-B
A -B
B AB
AB A
B
BsinAB
an
A
Orthogonal coordinate system
-a point is the intersection of three planes
x
dl=dxax + dyay + dzaz
dsx=dy dz ax
dsy=dx dz ay
dsz=dx dy az
dv=dx dy dz
Cylindrical coordinate system
-useful in order to solve problems such as fluid flow in a
pipe, charge flow in a wire
az a
ar
z1
r1
y1
x1
r=(x2+y2)1/2
=tan-1(y/x)
z=z
y
cos
x sin
x2 y2 x2 y2
z
dr
dz
rd
y
x d
dl=dr ar + r d a +dz az
dsr= r d dz ar
ds=dr dz a
dsz= r d dr az
dv= r d dr dz
Spherical coordinates
z
satah = 1
ar
1
a
kon = 1
r1
a
y
1
x sfera r=r1
z
cos
x2 y2 z 2 r x2 y2 z 2
x2 y2 x2 y2
sin tan 1
x2 y2 z 2 z
x y
cos tan 1
x y
2 2
x
y
sin
x2 y2
z
dr
r
r sin d
r d
d
y
d
x
dl = dr ar + r d a + r sin d a
dsr=r2 sin d d ar
ds=r sin dr d a
ds=r dr d a
dv=r2 sin dr d d
Gradient of a scalar field (grad)
1 2
dl
grad f
Grad for different coordinate systems
f f f
f ( x, y, z ) ax a y az
x y z
• Cylindrical coordinate system
f 1 f f
f r , , z ar a az
r r z
f 1 f 1 f
f r , , ar a a
r r r sin
Example of calculating the grad using
Cartesian coordinates
z
(1,-1,2)
Surface of equation
x F=2xz2-3xy-4x-7=0
f f f
f ( x, y, z ) ax a y az
x y z
f
2z 2 3 y 4
x
f
3x
y
f
4 xz
z
f ( x, y, z ) (2 z 2 3 y 4)a x 3x a y (4 xz)a z
7ax-3ay+8az
8az
7ax y
-3ay
x
Integration of vector field lines
b rb b a
a
F (r , , ) dl Fr dr rF d r sin F d
ra a a
Example of a line integral of the vector
field
z
z=2 P1(0,1,2)
c1
P3(1,0,2) c1
P4(0,1,0)
y
P5(0,0,0)
P2(1,0,0)
X=1
x
P2
P1
F dl ( x y )dx x dy xz dz
x y dx y 1 x
P2 1 0 2
P1
F dl
x 0
dy xz dz
z 2
let y 1 x
so that
P2 1 0 2
P1
F dl 1 dx (1 y ) dy xz dz
x 0 y 1 z 2
0
y2
x 0 y 0
1
2 1
1 3
(1 0) (0 )
2 2
x y dx y 0 x
P2 1 0 0
P3
F dl
x 1
dy xz dz
z 2
0
00 z dz
z 2
0
z2
2
2 z 2
Therefore, the integral along c1 is
3 1
c1
F dl 2
2
2
x y dx y 1 x
0 1 0
dy x z dz
x 0 z 2
x y dx y x1
0 0 0
dy xz dz
x 0 z 0
x y dx y x0
1 0 0
dy xz dz
x 0 z 0
1
2
Divergence of a vector field (div)
F
F
ds
F
permukaan, s
The variation in a vector field can be represented by flux, .
Flux can be written as
F ds
s
where F=F cos, the component of the vector F which is
perpendicular to the surface, s.
For a closed surface, flux may be written as:,
F ds
s
This closed surface can be regarded as a source or sink.
For a very small closed surface, (v0), the flux lines can be
thought to diverge from a single point. Therefore flux divergence,
lim F ds
divF s
v 0 v
Flux divergence is a scalar quantity, and represents the strength
of the flow in the vector field.
Flux divergence for different coordinate
systems.
1 F
F r , , z rFr 1 Fz
r r r z
F ds Fdv
s v
ax ay az
F
x y z
Fx Fy Fz
ax ay az
F
x y z
Fx Fy Fz
Fz Fx Fy Fy F F
ax ay az ax z a y x az
y z x z x y
Fz Fy Fx Fz Fy Fx
a x a y a z
y z z x x y
Stokes Theorem
F ds F dl
s c