Chapter 6
Vector Analysis
6.1Applications of Vector Multiplication
Dot Product (Scalar Product)
For two vectors and ,
where is the angle between and .
The dot product measures how much of one vector lies along another. It is maximal when the vectors are parallel and zero when they are perpendicular.
Commutative: .
Distributive: .
Scalar multiplication: .
.
If a force moves a particle through a displacement , the work done is
Only the component of in the direction of motion contributes to the work.

Cross Product (Vector Product)
For two vectors and ,
The magnitude is , and the direction is given by the right-hand rule.
The vector is perpendicular to both and . If the two vectors are parallel or antiparallel, their cross product is zero.
Anti-commutative: .
Distributive: .
.
.
A force applied at position vector produces a torque
Its magnitude equals the product of the force and its perpendicular lever arm.
Scalar Triple Product
This scalar represents the signed volume of the parallelepiped formed by , , and .
If , the three vectors are coplanar. The sign of this product distinguishes right-handed and left-handed orientations.
Cyclic permutation: .
Interchanging any two vectors reverses the sign.
The absolute value equals the geometric volume of the parallelepiped.
Let , , and . Then
Hence, the volume of the parallelepiped is (unit).
Vector Triple Product
This identity is commonly known as the BAC–CAB rule. The resulting vector lies in the plane of and .

For a particle in rigid rotation with angular velocity , the velocity is
The linear momentum is . Hence the angular momentum is
Using the vector triple–product identity,
Therefore,
If the rotation axis is perpendicular to , then and
This form shows that the angular momentum is parallel to the angular velocity, with magnitude proportional to the moment of inertia .
6.2Differentiation of Vectors
In physics, many vector quantities—such as position, velocity, and acceleration—vary with time or with spatial coordinates. We therefore need rules for differentiating and integrating vectors.
If a vector depends on a variable , its derivative with respect to is defined as
The derivative is itself a vector, representing the rate of change of .
If the components of are differentiable functions of ,
then
The derivative of a vector may change the magnitude, the direction, or both. For instance, in uniform circular motion, is constant but changes direction continuously, producing a nonzero .
1) Cartesian Coordinates .
Position vector:
Differential displacement:
Velocity (divide by ):
Interpretation:
2) Cylindrical Coordinates .
Position vector:
Differential displacement:
Velocity (divide by ):
Interpretation:
3) Spherical Coordinates .
Position vector:
Differential displacement:
Velocity (divide by ):
Interpretation:
- (6.28)
- (6.29)
- (6.30)
- (6.31)
The angular momentum of a particle is . Then,
The quantity is the torque :
6.3Fields
Many physical quantities depend on position in space. Temperature, pressure, electric field, and magnetic field are examples of fields.
A scalar field assigns a scalar value to every point in space:
(6.34)Examples: temperature, electric potential, mass density.
A vector field assigns a vector to every point in space:
(6.35)Examples: velocity field of a fluid, electric and magnetic fields.
At each point , the scalar field gives one number, while the vector field gives three component functions that can vary continuously throughout space.
For a point charge at the origin,
The direction of is radial, outward for and inward for .
6.4Directional Derivative and Gradient
When a scalar field varies in space, we often wish to know the rate at which it changes in a given direction.
If is a unit vector specifying a direction, the rate of change of in that direction is
where measures distance along .
The gradient of is the vector field

The gradient points in the direction of maximum increase of , and its magnitude gives the maximum rate of increase per unit distance.
Find the directional derivative of
at the point in the direction of the vector
Step 1: Determine the unit vector in the direction of .
Step 2: Compute the gradient of .
Since ,
Hence
At the point :
Step 3: Compute the directional derivative.
The directional derivative of in the direction is given by
Substitute:
Answer:
Gradient as a Normal to a Surface
If we consider a surface , and let be a unit tangent vector to this surface at some point, then the directional derivative of along the tangent direction is zero:
Hence, is perpendicular to all tangent directions and therefore
Find the equations of the tangent plane and the normal line to the surface of a sphere
at the point .
Solution.
At the point ,
Step 2: Equation of the tangent plane.
Since is normal to the surface at every point, the tangent plane at is given by
At , this becomes
This is the equation of the tangent plane at the top of the sphere.
Step 3: Equation of the normal line.
The line normal to the surface passes through and has direction . Hence, its vector equation is
Substitute:
Writing :
Thus, the normal line is the -axis.
Result:

6.5Expressions Involving
The differential operator
acts on scalar and vector fields in several useful ways.
Gradient of a Scalar Field
For a scalar field ,
It produces a vector field pointing in the direction of the greatest increase of .
Divergence of a Vector Field
If , the divergence of is the scalar quantity
Divergence measures the net outflow of the field from a point. A positive divergence indicates a source; a negative divergence, a sink.
Curl of a Vector Field
For , the curl is the vector
The curl measures the rotation or circulation density of a vector field about a point.
Components:
Divergence.
Curl.
Compute each term:
Therefore,
which is nonzero, indicating local rotational behavior whose strength varies with and .
Consider three two–dimensional vector fields in the –plane:
(a) Divergence
Thus, and represent fields with a uniform outward expansion (a source flow), while has zero divergence — a purely rotational flow.
(b) Curl
In two dimensions, only the –component of the curl is nonzero:
Hence,
(c) Physical Interpretation
: Field lines radiate outward from the origin — a pure source field. ,
: Field lines form closed circles — a pure rotational (vortex) field. ,
: Field lines spiral outward — a combination of source and rotation. Both divergence and curl are nonzero, producing a spiral flow.

Visualization and
Left: Pure source — arrows radiate outward uniformly.
Middle: Pure rotation — arrows circle around the origin.
Right: Spiral flow — arrows spiral outward, combining rotation and expansion.
This example clearly shows that:
Divergence quantifies the presence of sources or sinks.
Curl quantifies the local rotation of the field.
Consider a rigid body rotating about the -axis with a constant angular velocity . Let the position vector of a point in the body be
Then, the velocity field of the rotating body is given by
or explicitly
Compute the curl:
Expanding the determinant:
Simplify:
Physical Meaning: For a rigid body, the curl of the velocity field equals twice the angular velocity vector:
Thus, the curl measures the local rotational motion of the field.
The Laplacian of a scalar field is defined as the divergence of its gradient:
In Cartesian coordinates,
.
We use the Cartesian definition .
First derivatives:
Second derivatives:
Laplacian:
Useful Vector Identities
Physical meaning: This identity states that the divergence of a curl is always zero. In physical terms, a rotational (circulating) field such as a magnetic field has no net source or sink. For example, in Maxwell’s equations expresses that there are no magnetic monopoles.
Physical meaning: This states that the curl of a gradient is always zero. It means that any field derived from a scalar potential (such as the electrostatic field ) is irrotational—it has no circulation or rotational component.
Vector Differential Operators in a General Orthogonal Curvilinear Coordinate System
In many physical problems, Cartesian coordinates are not always the most convenient choice. We often use other coordinate systems such as cylindrical or spherical , which are examples of orthogonal curvilinear coordinates.
Let a point in space be described by three parameters , related to Cartesian coordinates by
The coordinate system is called orthogonal if the coordinate lines intersect at right angles everywhere.
At each point, define:
: unit vectors tangent to the coordinate lines ;
: scale factors (or metric coefficients) defined by
(6.86)where is the position vector.
Then, the differential displacement is
For any scalar field ,
This operator gives the rate and direction of maximum change of in any orthogonal coordinate system.
For a vector field
This measures the net outflow per unit volume of the field from an infinitesimal region.
For the same vector field
This represents the local rotation or circulation of the vector field .
The Laplacian of a scalar function is given by
It appears frequently in physics, for example in Poisson’s equation, the heat equation, and the Schrödinger equation.
Vector Differential Operators in Common Coordinate Systems
In vector calculus, the four most fundamental vector differential operators are:
These operators describe spatial variation of scalar and vector fields, and their expressions depend on the coordinate system and corresponding unit vectors.
1) Cartesian Coordinates
2) Cylindrical Coordinates
The unit vectors are related to the Cartesian basis by:
3) Spherical Coordinates
The spherical unit vectors in terms of Cartesian components are:
6.6Maxwell’s Equations in Vacuum
In differential form, Maxwell’s equations describe the behavior of electric and magnetic fields in space and time. They connect the electric field , magnetic field , charge density , and current density .

Physical Meaning of Each Equation
Gauss’s Law:
The divergence of the electric field gives the local charge density.
Positive charges are sources of electric field lines, negative charges are sinks.
Gauss’s Law for Magnetism:
Magnetic field lines are always closed loops; there are no magnetic monopoles.
The field has no divergence—no “beginning” or “end.”
Faraday’s Law:
A time-varying magnetic field induces a circulating electric field.
The curl of represents the tendency of to form closed loops.
This is the principle behind electromagnetic induction.
Ampère–Maxwell Law:
A circulating magnetic field is produced by electric currents and by changing electric fields .
The second term () is the displacement current density, introduced by Maxwell to ensure charge conservation.

Derivation of the Electromagnetic Wave Equation
We now derive how Maxwell’s equations predict that changing electric and magnetic fields propagate as waves in vacuum. In Vacuum (no charges or currents): , Then Maxwell’s equations become:
Derivation of the wave equation.
Take the curl of Faraday’s law:
Substitute :
Using the vector identity
and since in vacuum, we obtain:
Similarly, taking the curl of gives:
These are wave equations for and , describing electromagnetic waves propagating through space.
The wave speed.
Comparing with the standard wave equation , whose solutions travel at speed , we can read off the speed of an electromagnetic wave:
Substituting the measured constants and gives — the measured speed of light. This is the historical significance of the calculation: two constants obtained from benchtop experiments on static electricity and on magnets combine to give the speed of light, which is what identified light itself as an electromagnetic wave.

6.7Vector Integrals
In vector calculus, integrals of scalar or vector functions can be defined over curves, surfaces, or volumes. These are classified as:
6.7.1Line Integrals
We may encounter three types of line integrals along a curve :
Evaluate
along each of the following paths.
(i) Parabolic path from to .
Step 1. Express .
Since , we have
Step 2. Compute .
Step 3. Integrate from to .

(ii) Parametric curve , from to .
Step 1. Express .
Step 2. Compute .
Substitute , :
Thus,
Expanding each product separately,
so that
Step 3. Integrate from to .

(iii) Piecewise linear path.
Segment 1: along from to .
Segment 2: along from to .
Total:

Although all three paths start and end at the same points, the resulting integrals differ:
Therefore, is a non-conservative vector field, since depends on the path taken.
Evaluate the line integral
where is the circle in the –plane defined by
Solution.
This integral is very simple in polar coordinates.
Using the trigonometric identity ,
Since ,

from to along the two paths shown below.

We can write this integral as
along each of the following paths.
Path 1: upper semicircle of the unit circle
Use polar coordinates on the circle :
Along the upper semicircle from to we have . Hence
Path 2: two straight-line segments
Segment A.
From to along . Then and
Thus
Segment B.
From to along . Then and
Hence
6.7.2Conservative Fields
A force field is said to be conservative if the work done by it is independent of the path between two points:
If depends on the path, then is non-conservative, and energy is being dissipated (e.g., by friction).
Condition for a Conservative Field
A vector field is conservative if and only if
In this case, can be expressed as the gradient of a scalar potential :
Taking the curl of both sides:
which confirms that is indeed conservative.
Work in Terms of Potential Function
If , then
Hence,
The work done depends only on the values of at the endpoints.
Potential Function
For a conservative field we have , where is the work function. In physics it is conventional to work instead with the potential energy , defined as the negative of the work function:
and therefore,
The sign is not arbitrary: with this definition the force points in the direction of decreasing potential, so a ball rolls downhill and a positive charge moves away from another positive charge. Work done by the field lowers the potential energy, , which is what makes the quantity that adds to kinetic energy to give a conserved total. Both conventions appear in the literature; the sign of the gradient must be checked whenever a potential is quoted.
Show that where .
Given
We will (i) verify , (ii) find a scalar potential by component integration, and (iii) confirm the result by an explicit path integral from to .
Step 1 — Check (conservative test).
Compute components carefully:
Hence . On a simply connected domain in (e.g. all of ), this implies that is conservative.
Step 2 — Find the work function by component integration. We seek with , so the three partial derivatives of are the three components of . Integrate the first one in , holding and fixed:
where the “constant” of integration may still depend on and . Now impose the second component:
so depends on alone, . Finally impose the third component:
giving . Therefore
As a check, .
Step 3 — Confirm by an explicit path integral. Because is conservative we may choose any convenient path from the origin to . Take three straight segments along the axes in turn, and set so that .
Segment 1, from to with : here and , so this segment contributes nothing.
Segment 2, from to : here and , which is constant along the segment, so
Segment 3, from to : here and , so
Adding the three contributions,
which agrees with the result of Step 2.
Physical Examples of Line Integrals
Line integrals appear frequently in physics, where they often represent quantities such as work, circulation, or magnetic flux linkage.
Below are some important physical contexts where line integrals are used.
1. Work Done by a Force Field
This represents the work done by a force in moving a particle along a path .
2. Electrostatic Potential Energy
The electrostatic potential energy gained by moving a charge through an electric field along a path is
The negative sign indicates that the electric field does work against the potential difference.
3. Ampère’s Law (Magnetostatics)
The circulation of the magnetic field around a closed loop is proportional to the current enclosed by that loop:
This integral form of Ampère’s law relates magnetic fields to the steady currents that produce them.
4. Magnetic Force on a Current Loop
A current-carrying wire placed in a magnetic field experiences a magnetic force given by
This expression gives the total force on a loop of current in a magnetic field. Each element of the wire experiences an infinitesimal force .
6.7.11Surface and Volume Integrals
Surface Integrals
A surface integral generalizes the concept of a line integral to a two-dimensional surface. For a surface with unit normal vector and differential area element , we can define three common types of surface integrals:
The most important and frequently encountered is
which represents the flux of the vector field through the surface . Physically, this measures how much of the field “flows” through . Only the normal component of contributes to the flux; tangential components make no contribution.

Volume Integrals
A volume integral extends the concept to three dimensions. For a scalar field ,
represents the total accumulation of over a volume .
For a vector field ,
reducing the vector integral to a sum of scalar volume integrals over the components.
6.7.14Green’s Theorem in the Plane
The one–dimensional Fundamental Theorem of Calculus states:
relating the integral of a derivative over an interval to the function’s change at its endpoints. In two dimensions, a similar idea holds: the integral of derivatives over an area corresponds to function values along its boundary . This reasoning leads directly to Green’s Theorem.
If and have continuous first partial derivatives in a simply connected region bounded by a positively oriented closed curve , then
Proof
Part I: the term involving .
![Region bounded between y1(x) and y2(x) for x [a,b]. The strip of width dx contributes to P y\,dy.](assets/img/ch06_fig11_green_vertical.png)
Consider
Assume the region can be described by the equations
so that
Along a vertical line (), and . Then
Hence,
Part II: the term involving .
![Region bounded between x1(y) and x2(y) for y [c,d]. The strip of width dy contributes to Q x\,dx.](assets/img/ch06_fig12_green_horizontal.png)
Consider
Assume the region can also be described by
so that
Along a horizontal line (), and . Then
Hence,
The two parts must now be combined with care over signs. From Part I, , so that ; from Part II, . The boundary integral we want is therefore the difference , not the sum:
Writing each term as its area integral,
and hence
which is Green's theorem. The minus sign in front of traces back to Part I, where traversing the boundary counterclockwise means the upper curve is crossed from right to left.
Physical Interpretation
The left-hand side represents the circulation of the vector field around the closed curve .
The right-hand side measures the total curl flux of through the enclosed region .
Hence, Green’s theorem states that the local rotation (curl) of a field sums to the total circulation along its boundary.
Green’s theorem generalizes the Fundamental Theorem of Calculus from 1D to 2D:
Let

Compute the work .
Using Green’s theorem. Since
we have
Method Two: Direct Evaluation
The boundary is traversed counterclockwise as:
Path : The curve is , or equivalently , with
Then
Path : .
Thus
Path : .
Then
Total Work (Counterclockwise):
6.8The Divergence and Stokes’s Theorems
6.8.1The Divergence Theorem in the Plane
Let
be a continuously differentiable vector field defined on a region of the -plane, bounded by a positively oriented (counterclockwise) closed curve .
To connect this with Green’s theorem, define
Then the combination appearing in Green’s theorem,
becomes
Geometric Relation to the Line Integral
Along the curve , the differential displacement vector is
which is tangent to the boundary. The outward normal vector (perpendicular to the tangent) is
where is the differential arc length.

Now, using and ,
Substituting into Green’s theorem gives
This states that the total flux of through the boundary equals the integral of the divergence of over the enclosed region .
Extension to Three Dimensions (Gauss’s Theorem)
If has continuous partial derivatives within a closed volume bounded by a closed surface , then
The left-hand side measures the total source strength (divergence) of within the volume .
The right-hand side measures the total flux of through the enclosing surface .
Gauss’s theorem thus connects the local divergence of a field to its global outflow.
Let
and let be the solid right circular cylinder of radius and height whose axis is the -axis, with bottom at and top at . Its boundary consists of three pieces:
Goal. Verify the Divergence Theorem
for this and .
Compute the divergence.
(6.207)Evaluate the volume integral. Since is constant,
(6.208)Decompose the surface flux.
(6.209)Flux through the bottom disk (at ). The outward normal is , and on we have . Hence
(6.210)Flux through the lateral surface (). Here (outward), while is parallel to . Since ,
(6.211)Flux through the top disk (at ). The outward normal is and on . Thus
(6.212)Add the contributions.
(6.213)Conclusion (Theorem verified).
(6.214)Hence, the Divergence Theorem holds for on the cylindrical region .
Compute
and is the sphere
centered at the origin with radius , and is the outward unit normal vector.
Solution.
By Gauss’s theorem,
where is the solid ball enclosed by the surface .
Thus, the flux through equals the triple integral of the divergence of over the volume of the sphere.
Step 2. Compute the Divergence of .
Compute each derivative separately:
Hence,
Step 3. Evaluate the Volume Integral.
Since everywhere,
The volume of a sphere is
so
Step 4. Write the Final Answer.
Because everywhere, the flux through any closed surface equals the enclosed volume.
In this problem, the direction of is outward, consistent with Gauss’s theorem.
This example illustrates how the divergence theorem transforms a difficult surface integral into a simple volume integral.
6.8.4Stokes’s Theorem in the Plane
Let
Then the combination in Green’s theorem,
is the -component of the curl of , which represents the local rotation or vorticity.
Using
we can write
Substituting this into Green’s theorem gives

This expresses that the circulation of around a closed boundary equals the total curl flux through the enclosed region.
Extension to Three Dimensions (General Stokes’s Theorem)
If has continuous partial derivatives on a smooth surface bounded by a positively oriented closed curve , then
The line integral measures the circulation of along the boundary .
The surface integral measures the total curl flux through the surface .
Stokes’s theorem connects the local rotation of a field to its global circulation.

Let
and let be the upper hemisphere
with outward unit normal . We wish to evaluate
by two independent methods.
Step 1 — Direct Surface Integral on the Hemisphere.
(a) Compute the curl of .
(b) Compute . On the sphere ,
Hence
(c) Evaluate the surface integral. In spherical coordinates,
for , . Then
Step 2 — Using Stokes’s Theorem (Boundary Method).
By Stokes’s theorem,
where is the boundary of the hemisphere:
oriented counterclockwise as viewed from .
(a) Parameterize the boundary.
with
(b) Evaluate along . On the circle :
(c) Compute .
(d) Integrate around the circle.
Result and Interpretation.
Both the direct surface integration and Stokes’s theorem give the same result.
The negative sign indicates that the curl points opposite to the outward normal of the upper hemisphere.
This example illustrates the power of Stokes’s theorem: the curved surface integral can be replaced by a much simpler line integral around the boundary.
6.9Maxwell’s Equations and the Continuity Equation
1. Differential Form
Taking the divergence of the Ampère–Maxwell law and using gives
which is the continuity equation in differential form, expressing local charge conservation.
2. Integral Form via Divergence and Stokes’ Theorems
We now apply the Divergence Theorem
and the Stokes’ Theorem
Applying these to each of Maxwell’s equations:
3. Continuity Equation in Integral Form
Starting from the differential form
integrate over a fixed volume :
Apply the Divergence Theorem to the first term:
Define
so that
This expresses charge conservation: the rate of decrease of enclosed charge within the volume equals the net outward current through its bounding closed surface .
4. Physical Interpretation
Gauss’s law for : electric flux through a closed surface equals the enclosed charge.
Gauss’s law for : magnetic field lines form closed loops — no magnetic monopoles.
Faraday’s law: a changing magnetic flux induces an electric field (emf).
Ampère–Maxwell law: magnetic fields arise from currents and changing electric fields.
Continuity equation: charge is conserved — current outflow equals the decrease of enclosed charge.
Summary of Key Vector Identities
Let and be scalar fields, and , , be vector fields.
These relations are essential in fluid dynamics, electromagnetism, and quantum mechanics. They enable transformations of differential equations, simplification of vector expressions, and conversions between integral and differential forms of physical laws.
6.11Where Vector Analysis Is Used
Maxwell's equations, treated twice in this chapter, are the clearest demonstration of what vector analysis is for: four statements about and contain the whole of classical electromagnetism, including the existence of light. The same operators do similar work elsewhere.
Electromagnetism. Gauss's law is a statement about divergence, Faraday's and Ampère's about curl. The integral and differential forms are connected by exactly the divergence and Stokes's theorems proved here, which is why those theorems are not an optional extra.
Conservative forces and potentials. is the test for whether a potential energy exists at all. Gravity and electrostatics pass; friction does not. This is what makes energy conservation usable.
Fluid dynamics. The divergence of the velocity field measures whether fluid is being compressed, and its curl measures local rotation — literally the rate at which a small paddle wheel would spin, as the rigid-rotation example showed.
Heat and diffusion. The Laplacian measures how much a point differs from the average of its neighbours, which is why it governs diffusion and why describes steady state (Chapter 10).
Curvilinear coordinates. The general expressions for gradient, divergence and curl in orthogonal coordinates let the same physics be written in whatever coordinates match the symmetry of the problem, as in Chapter 5.
One idea unifies the integral theorems of this chapter. Green's theorem, the divergence theorem and Stokes's theorem all say the same thing: the accumulated derivative over a region equals the values on its boundary. In one dimension this is the Fundamental Theorem of Calculus, . Each theorem here is that statement in a higher dimension, with the derivative replaced by a divergence or a curl, and the endpoints by a closed curve or a closed surface.
For the Interested Reader
Vector analysis is where the geometry and the algebra can easily come apart: it is possible to compute a curl correctly for a whole course without ever picturing what it measures. The first item below is the strongest remedy for that. Everything listed is free.
Seeing divergence and curl
3Blue1Brown builds both operators from what they do to a flowing fluid, and then shows why Maxwell's equations say what they say. Twenty minutes here is worth a great deal of symbol-pushing:
Divergence and curl: the language of Maxwell's equations — 3Blue1Brown
Watch on YouTube
The operators and the integral theorems
OpenStax, Calculus Volume 3, Chapter 6. 6.5 Divergence and Curl, 6.4 Green's Theorem, 6.7 Stokes' Theorem and 6.8 The Divergence Theorem — the same three theorems, with more examples and with the orientation conventions spelled out more slowly than we do.
Paul's Online Math Notes. Line Integrals and Stokes' Theorem — practice at parametrising curves and surfaces, which is where most of the difficulty in these integrals actually lies.
A note on notation, since it varies more here than in any other chapter. Some books write , and where we write , and ; others use for the curl. The operator notation used here is worth preferring because it makes identities such as look like what they are — statements about repeated application of one operator.