Professional Documents
Culture Documents
Vector Calculus
Ayush Basu
May 27, 2017
1 Disclaimer
1. Although this is a lecture on vector calculus, I shall often use laws that
you learnt in high school.
2. The reason for this is that you will then have some context as to why you
are learning the math which will hopefully make you understand it better.
3. At any point you find yourself slipping, raise your hand and stop me. Ask
whatever you think is wrong.
4. Things you need to remember from this class are boxed.
2 Introduction
1. The basic question in electrostatics can be brought down to two funda-
mental problems. Given a charge distribution, find the electric field and
vice versa and this will lead us to the concept of the divergence.
2. Another important question that this subject is interested in is the manner
in which energies of systems change or are affected in the presence of charge
and this will lead us to the notions of the curl and gradient.
3. Finally the Helmholtz Theorem ensures that given a curl of the field ev-
erywhere and its divergence everywhere, and a boundary condition, one
can determine the entire field in space. With these ideas in mind, we begin
our study of the subject and the mathematics necessary to study it.
1
3 Introduction to Partial Derivatives
Consider a function of the coordinates of a particle in space that is moving
around and call it say, f (x, y, z). Here x(t), y(t), z(t) depend on time. To find
the rate at which the function changes with time we change the each of the
coordinates and find the change and then subsequently add them. Note that
f (x + δx, y + δy, z + δz) − f (x, y, z) = f (x + δx, y + δy, z + δz)
− f (x, y + δy, z + δz)
+ f (x, y + δy, z + δz) − f (x, y, z + δz)
+ f (x, y, z + δz) − f (x, y, z)
(1)
We need,
df δf
= lim (2)
dt δt→0 δt
Thus, we write,
∂f ∂f ∂f
df = dx + dy + dz (5)
∂x ∂y ∂z
2
4 Coulomb’s Law and Divergence
4.1 Electric Field From Charge Distribution
The electric field at a point r due to a charge q at origin is given by,
1 q
E= · r̂ (6)
4π0 r2
ρ(r0 )
Z
1
E(r) = (r − r0 )dτ 0 (7)
4π0 V |r − r0 |3
Since we need to find ρ(r), let me try making the volume smaller around the
given position. Consider r = (x, y, z) and let’s construct a small box of dimen-
sions (∆x, ∆y, ∆z) around it with one of the corners at the point itself.
Applying Gauss’s Law, find the flux on any two opposite faces. Consider the
face of area ∆y∆z, then the net flux through the two faces would be (assuming
that ∆u where u is one of the coordinate axes are all small,
NOTE: Why do we just account for the change in x and keep y, z unchanged?
Ans: Consider the order of the changes. Since all changes in the coordinates
are small, any changes in y and z when expanded in a Taylor expansion
Thus the net flux through the faces that have normals along x is given by
∂Ex ∂Ex
∆x∆y∆z = ∆V (10)
∂x ∂x
3
Thus the net flux through the cube is given by,
∂Ex ∂Ey ∂Ez
+ + · ∆V (11)
∂x ∂y ∂z
∂ ∂ ∂
∇= x̂ + ŷ + ẑ (13)
∂x ∂y ∂y
Then we can represent divergence of F as ∇ · F.
Note that the derivative based definition is derived from this basic
definition and you should prefer using this definition in most cases.
4
4.3.4 Why is the Divergence Called So?
You might feel a little unsettled with the choice of the given name for this oper-
ator, as you don’t see a relation between the usual sense of the term divergence
and the operator as of yet. But go back to the divergence theorem and imagine
a set of lines originating out of a point, do you see that the divergence opera-
tor on that field is then positive, while if the net lines converge or are directed
towards that point, then the divergence is negative?
ρ
∇·E= (16)
0
where r = R.
5
Now consider the integral over the sphere for a small volume element in space,
and find out the integral of the electric field, once done, integrate over the
volume, and hence we can separate out the integrals.
Z 2π Z π
(r − r0 cos θ) 2
Z
0 |3
r sin θ dθ dφ ρ(r0 )dτ 0 (18)
0 0 |r − r V
Taking advantage of the form inside the integral we write the integral as a partial
derivative, Z π
∂ sin θ
2πR2 1/2
dθ (20)
0 ∂R (R + r − 2Rr0 cos θ)
2 02
One can pull out the partial with respect to R since R and θ are independent
variables and we finally obtain,
2 ∂ 1 0 0
I = 2πR [|R − r |−(R + r )] (21)
∂R r0 R
r − r0 if r0 < R
I
4π
· ds = (22)
S |r − r0 |3 0 if r0 > R
Since the left hand side and the right hand side denote the same volume, we
can say that in the limiting case, the terms inside the integral are equal. That
is, Z
ρ(r)
lim − ∇ · E dτ = 0 (24)
R→0 V
in
0
ρ(0)
∇ · E(0) = (25)
0
And we can always transform the origin to any position to prove it at any
(x, y, z).
6
5 The Dirac Delta Function
How do we express the charge due to a point charge in terms of a continuous
charge distribution? This is essential because we have so far employed the use
of calculus that requires existence of representations in terms of a continuous
charge distribution.
Gauss’s Law tells us that we should have ρ as 0 everywhere except for origin.
But what about the origin? At the origin ρ(0)dτ = q. We need the value to be
such that,
(
Z q for all V that encloses the origin
ρdτ = (26)
V 0 for all V that doesn’t enclose origin
This brings us to the definition of the Dirac Delta function δ,
δ(r) = 0 ∀ r 6= 0 and
Z (27)
δ(r)dτ = 1 ∀ V | 0 ∈ V
V
Thus,
ρ(r0 ) = qδ(r − r0 ) (28)
7
Thus consider the definition ∂F ∂t = vF0 ẑδ(−vt). We observe that the above
integral and this definition are exactly equivalent.
We observe that if one defines ρ(s) = λδ(s) where we use cylindrical coordinates
due to cylindrical symmetry, we get the required result. Also note the fact that
this definition and the condition for ρ are again equivalent.
8
6 Introduction to Curl
Consider the work done to move a charge from one point to another while
moving slowly, in an electric field that does not change with time. The force on
the charge due to the electric field is qE and hence the work done in moving it
is, Z
W = qE · dl (32)
P
Now consider two points in space A and B, and all posssible paths a particle can
take between them. It seems sensible to ask which path of all the given paths
would require the least amount of work done to take the charge from point A
to B. To answer this, let us choose any two paths P1 and P2 . The idea is to
compare the work done between the two paths. Note that if we take a closed
loop that goes from A to B along P1 and returns along P∈ , then we have the
difference of works done in each path.
Hence you can see that it is an important problem to address the work done in
moving a charge along a closed loop that lies on points A and B.
Let us first solve this problem for a small area, say a rectangle with (x, y) as
one of its corners and dimensions (∆x, ∆y). Consider the work done along the
edges of length ∆x,
dW1 = qEx (x, y)∆x − qEx (x, y + ∆y)∆x
∂Ex (33)
=⇒ dW1 = −q ∆y∆x
∂y
Once again, we don’t consider the changes in x because they form terms of a
higher order.
Thus the total work done to move along the rectangle equals,
∂Ey ∂Ex
− ∆A = (∇ × E) · ∆A (34)
∂x ∂y
Notice that the process of finding the integral along a closed loop is also a
measure of how much the field at that point “curls” in some sense. For instance
an electric field that is uniform will give zero curl while a field that is circular
will have a non-zero one which will be positive or negative depending upon its
direction.
In general, we define curl at a point in space as a vector such that,
I
1
(curl E) · Â = lim E · dl (35)
A→0 A L
where A is any area enclosing the point and L forms the enclosing boundary of
A.
Note that ∇ × E gives the same.
9
1. Demonstrate how can formalize the notion of work done by electric fields using
curls.
2. Prove Greene’s Theorem.
3. Show that Curl of E is 0. And hence one can define Potential.
10
7 Introduction to Gradients
1. Develop the idea from deriving the scalar potential.
2. Describe its geometric significance.
11