Vector Calculus Integrals
Vector Integrals in Electromagnetics
Vector calculus provides the mathematical tools needed to analyze electromagnetic fields and Maxwell’s equations. Three fundamental types of integrals are:
Line integrals, which describe the cumulative effect of a field along a path.
Surface integrals, which describe the flux of a field through a surface.
Volume integrals, which describe the total quantity contained within a volume.
The differential quantities used in these integrals are the differential length dl, differential surface area ds, and differential volume dv.
1. Line, Surface, and Volume Integrals
Line Integral
A line integral of a vector field A along a path is written as
where:
A is the vector field.
dl is the differential length vector along the path.
The dot product A⋅dl is a scalar.
The result is integrated along the specified path C.
The direction of dl follows the direction in which the path is traversed.
A line integral measures the cumulative contribution of the vector field along a path. In electromagnetics, a line integral of the electric field can be used to determine the potential difference between two points.
For a closed path, the notation is commonly written as
The closed-path line integral is important in understanding Ampère’s law.
Surface Integral
A surface integral of a vector field is written as
where:
A is the vector field.
ds is the differential surface-area vector.
ds has a magnitude equal to a small area and a direction normal to the surface.
The dot product A⋅ds is a scalar.
A surface integral measures the flux of a vector field through a surface. Flux represents the amount of field passing through the surface.
For a closed surface, the integral is written as
The direction of the differential surface vector is normally chosen to point outward from a closed volume.
Surface integrals are central to Gauss’s law, which relates the total electric flux through a closed surface to the charge enclosed by that surface.
Volume Integral
A volume integral is written as
where:
A may be a scalar or vector quantity.
dv is the differential volume.
dv is a scalar quantity because volume has magnitude but no direction.
If A is a scalar field, the result is scalar. For example, if ρv is volume charge density, then the total charge enclosed in a volume is
If A is a vector field, then
produces a vector result. Such an integral can be used, for example, when determining an average vector field over a volume.
The type of result depends on the integrand: integrating a scalar field produces a scalar, while integrating a vector field produces a vector.
2. Differential Length in Different Coordinate Systems
The expression for the differential length depends on the coordinate system being used.
Cartesian Coordinate System
The Cartesian coordinates are x, y, and z, with unit vectors ax, ay, and az.
If a point moves through small displacements dx, dy, and dz, the differential length is
The three components represent:
dx: displacement in the x direction.
dy: displacement in the y direction.
dz: displacement in the z direction.
Each unit vector points in the increasing direction of its corresponding coordinate.
Cylindrical Coordinate System
The cylindrical coordinates are ρ, ϕ, and z, with unit vectors aρ, aϕ, and az.
ρ represents radial distance from the z-axis.
ϕ represents the azimuthal angle around the z-axis.
z represents vertical distance.
The differential displacements are:
In the radial direction: dρ.
In the vertical direction: dz.
In the angular direction: ρdϕ.
The angular displacement is an arc length. Since arc length equals radius multiplied by angular change,
Therefore, the differential length is
The factor ρ is necessary because a given angular change corresponds to a longer arc at larger radial distance.
Spherical Coordinate System
The spherical coordinates are r, θ, and ϕ, with unit vectors ar, aθ, and aϕ.
r is the distance from the origin.
θ is the polar angle measured from the positive z-axis.
ϕ is the azimuthal angle in the x-y plane.
The differential displacements are:
In the radial direction: dr.
In the θ direction: rdθ.
In the ϕ direction: ρdϕ.
The cylindrical radial distance ρ is the projection of r onto the x-y plane:
Therefore, the displacement in the ϕ direction is
The differential length is consequently
The scale factors in spherical coordinates arise because angular changes correspond to arc lengths.
3. Differential Surface Area
A differential surface-area vector has:
A magnitude equal to a small surface area.
A direction normal, or perpendicular, to the surface.
For a closed surface, the vector conventionally points outward.
The general procedure for finding a differential surface area is:
Keep one coordinate constant.
Allow the other two coordinates to vary.
Multiply the two differential-length components associated with the varying coordinates.
Point the resulting vector in the direction normal to the surface.
Choose the sign according to the required orientation, usually outward for a closed surface.
Cartesian Coordinate System
The differential length is
The surface-area expressions are obtained by multiplying the two differential-length components that lie in the surface.
Surface with Constant x
If x is constant, then y and z vary. The surface lies in the y-z plane, and its normal is in the x direction:
For the opposite-facing surface, the outward direction may be negative:
Surface with Constant y
If y is constant, then x and z vary. The surface lies in the x-z plane:
The opposite-facing surface has
Surface with Constant z
If z is constant, then x and y vary. The surface lies in the x-y plane:
For the opposite face, the vector points in the negative z direction:
Thus, the direction of the surface-area vector depends on which side of the surface is being considered.
In Cartesian coordinates, the surface-area vector points along the coordinate whose value remains constant.
Cylindrical Coordinate System
The cylindrical differential length is
Surface with Constant ρ
When ρ is constant, ϕ and z vary. This forms a curved cylindrical surface.
The two surface dimensions are:
ρdϕ in the angular direction.
dz in the vertical direction.
The normal is in the radial direction:
Surface with Constant z
When z is constant, ρ and ϕ vary. This forms a circular disk.
The two surface dimensions are:
dρ in the radial direction.
ρdϕ in the angular direction.
The differential surface area is
For the bottom cap of a cylinder, the outward direction is negative z, so
Surface with Constant ϕ
When ϕ is constant, ρ and z vary. This produces a radial half-plane.
The surface dimensions are dρ and dz, and the normal is in the ϕ direction:
For the opposite side of the same type of surface, the direction is negative ϕ:
In cylindrical coordinates, the differential surface area points in the direction of the coordinate that remains constant.
Spherical Coordinate System
The spherical differential length is
Surface with Constant r
When r is constant, θ and ϕ vary. This produces a spherical surface.
The two surface dimensions are:
rdθ in the polar direction.
rsinθdϕ in the azimuthal direction.
The outward normal is radial:
Surface with Constant θ
When θ is constant, r and ϕ vary. This produces a conical surface.
The two surface dimensions are:
dr in the radial direction.
rsinθdϕ in the azimuthal direction.
The normal is in the θ direction:
Surface with Constant ϕ
When ϕ is constant, r and θ vary. This produces a plane extending radially from the z-axis.
The two surface dimensions are:
dr in the radial direction.
rdθ in the polar direction.
The normal is in the ϕ direction:
For the opposite side, the direction is negative ϕ:
In spherical coordinates, the area element is formed by multiplying the differential-length components associated with the two changing coordinates.
4. Differential Volume
The differential volume dv represents a small volume element in three-dimensional space. Unlike dl and ds, it is a scalar quantity.
The differential volume is found by multiplying all three differential-length scale factors.
Cartesian Coordinates
The three differential lengths are dx, dy, and dz, so
Cylindrical Coordinates
The three differential lengths are:
dρ
ρdϕ
dz
Therefore,
The factor ρ accounts for the arc length associated with the angular coordinate.
Spherical Coordinates
The three differential lengths are:
dr
rdθ
rsinθdϕ
Thus,
The factors r2 and sinθ arise from the two angular dimensions of the spherical volume element.
Differential volume elements are obtained by multiplying the three coordinate-direction lengths, including the appropriate coordinate-dependent scale factors.
5. Physical Meaning of the Line Integral
Consider a vector field A and a path from point P to point Q. The line integral is
For a small segment of the path, the dot product is
where α is the angle between the field and the direction of the path.
Field Aligned with the Path
If α=0, then
and the contribution is maximum:
Field Perpendicular to the Path
If α=90∘, then
and
Therefore, a field perpendicular to the direction of motion contributes nothing to the line integral.
Electromagnetic Application
For an electric field E, the line integral between two points determines the potential difference. Depending on the sign convention,
A closed line integral measures the cumulative effect of a field around a closed path:
This form is particularly important for Ampère’s law.
6. Physical Meaning of the Surface Integral
The surface integral of a vector field A through a surface S is
If an is the unit normal to the surface, then
and the flux can be expressed as
For a small surface element,
where α is the angle between the field and the surface normal.
Field Parallel to the Surface Normal
If the field is aligned with the normal, then α=0 and the flux is maximum.
Field Tangential to the Surface
If the field is perpendicular to the normal, then the field lies along the surface. In that case, α=90∘, so
No flux passes through the surface.
Open and Closed Surfaces
An open surface does not enclose a volume. Examples include:
A flat sheet.
The curved outer surface of a hemisphere without its circular lid.
A closed surface completely encloses a volume. Examples include:
The surface of a sphere.
A hemisphere together with its circular lid.
The complete outer surface of a cylinder, including its top and bottom caps.
The total flux through a closed surface is
In electromagnetics, if A is the electric field E, the total electric flux through a closed surface is related to the charge enclosed within that surface. This relationship is expressed by Gauss’s law:
where Qenc is the enclosed charge and ϵ is the permittivity of the medium.
7. Physical Meaning of the Volume Integral
A volume integral adds a quantity throughout a three-dimensional region.
For a volume charge density ρv, the total charge inside a volume V is
Here:
ρv gives charge per unit volume.
dv is a small volume element.
The integral sums the charge contributions from all small volume elements.
Because both ρv and dv are scalar quantities, the total charge Q is scalar.
More generally, a volume integral can determine the total amount of any distributed scalar quantity, such as mass, energy, or charge. If the integrand is vector-valued, the integral produces a vector result.
8. Example: Flux Through a Cartesian Surface
Consider the vector field
and the surface defined by
Because y is constant, the surface lies parallel to the x-z plane. Its normal is in the y direction.
The differential surface vector is
The flux is therefore
Substituting the field and surface element,
Only the y component contributes:
Since y=1 on the surface,
Thus,
Separating the integrals gives
Therefore,
The flux through the surface is
The key observation is that only the component of the vector field normal to the surface contributes to the flux.
9. Example Setup: Flux Through a Partial Spherical Surface
Consider a vector field expressed in spherical coordinates over the region
The coordinate limits determine the geometry of the region.
Interpreting the Limits
Radial Limit
The range
includes all points from the origin to a radius of 4.
Polar-Angle Limit
The range
selects the upper half of the sphere, because θ extends from the positive z-axis to the x-y plane.
Azimuthal-Angle Limit
The range
covers three quarters of the full azimuthal range. Since a full revolution corresponds to
the region excludes one quarter of the upper hemisphere.
The complete boundary consists of four surfaces:
Outer spherical surface S1
Bottom disk S2
Radial plane at ϕ=0, or S3
Radial plane at ϕ=3π/2, or S4
The total flux is the sum of the fluxes through the individual surfaces:
Surface S1: Outer Spherical Surface
For the outer spherical surface, r is constant at r=4, while θ and ϕ vary.
The differential surface vector is
At r=4,
The outward direction is ar.
Surface S2: Bottom Disk
The bottom disk lies in the plane θ=π/2, corresponding to the x-y plane. Here, r and ϕ vary.
The differential surface vector is based on the r and ϕ differential lengths:
At θ=π/2, sinθ=1, so its magnitude becomes
For the lower-facing or outward direction of the upper volume, the normal direction is −aθ at the equatorial plane. Thus, the sign must be chosen consistently with the outward orientation.
Surface S3: Plane at ϕ=0
For the surface at constant ϕ=0, the coordinates r and θ vary.
The differential surface vector is
The appropriate sign depends on whether the outward normal points in the positive or negative aϕ direction at that boundary.
Surface S4: Plane at ϕ=3π/2
For the surface at constant ϕ=3π/2, the coordinates r and θ vary as well. Its differential surface vector has the same magnitude:
The direction is opposite to that of the ϕ=0 boundary, so the two radial-plane contributions generally have opposite orientations.
The flux through the complete boundary is found by evaluating the surface integral over each of the four surfaces and adding the results.
10. General Problem-Solving Procedure
To evaluate a line, surface, or volume integral in electromagnetics, the following method is useful:
Identify the coordinate system.
Determine whether the field and region are expressed in Cartesian, cylindrical, or spherical coordinates.Interpret the coordinate limits.
Identify the geometric region described by the limits.Write the appropriate differential element.
Use dl for a line integral.
Use ds for a surface integral.
Use dv for a volume integral.
Determine the orientation.
For a surface integral, ensure that the differential surface vector points in the required normal direction, usually outward for a closed surface.Perform the dot product when necessary.
For line and surface integrals, calculate A⋅dl or A⋅ds before integrating.Apply the correct limits.
Add contributions from separate surfaces or path segments.
A closed surface or piecewise path may require several individual integrals.
Key Formulas
Differential Length
Cartesian
Cylindrical
Spherical
Differential Surface Area
Cartesian
Cylindrical
Spherical
Differential Volume
Cartesian
Cylindrical
Spherical
The central principle is that line integrals accumulate field effects along paths, surface integrals measure field flux through surfaces, and volume integrals determine the total amount of a quantity distributed throughout a volume.

Ask anything
We've read this whole study set, so questions about it get the best answers.