Unit 5 — Vector Calculus (8 Hours)
Vector calculus deals with differentiation and integration of vector fields and provides the mathematical language for electromagnetism, fluid dynamics, heat transfer, and structural mechanics.
1. What Is Vector Calculus?
Vector calculus extends calculus to vector fields — functions that assign a vector to every point in space. It unifies differential and integral operations through powerful theorems that relate local properties (derivatives) to global properties (integrals over regions).
Why It Matters in Engineering
- Electromagnetism: Maxwell's equations are written in vector calculus form
- Fluid Dynamics: Velocity fields, vorticity, and flux calculations
- Heat Transfer: Temperature gradients and heat flux
- Structural Mechanics: Stress and strain fields
- Gravitational Fields: Potential theory and field lines
2. Vector Differentiation
2.1 The Del Operator (∇)
The vector differential operator in Cartesian coordinates:
∇=i∂x∂+j∂y∂+k
2.2 Gradient
Definition: For a scalar field ϕ(x,y,z), the gradient is:
∇ϕ=i∂x∂ϕ+j
Properties:
- ∇(ϕ+ψ)=∇ϕ+∇ψ
- ∇(ϕψ)=
Geometrical Interpretation:
- Points in the direction of maximum rate of increase of ϕ
- Magnitude ∣∇ϕ∣ equals the maximum rate of change
- Perpendicular to level surfaces ϕ(x,y,z)=c
Physical Interpretation:
- If ϕ is temperature, ∇ϕ is the temperature gradient (heat flows opposite to gradient)
- If ϕ is electric potential, ∇ϕ relates to electric field: E=−
2.3 Divergence
Definition: For a vector field F=F1i+F2j+F, the is:
∇⋅F=∂x∂F
Physical Interpretation:
- Measures the net outflow of flux from a point per unit volume
- ∇⋅F>0: Source (fluid emerging)
- ∇⋅F<0: Sink (fluid disappearing)
- ∇⋅: Solenoidal (incompressible flow)
Properties:
- ∇⋅(F+G)=∇⋅F+∇⋅G
2.4 Curl
Definition: The curl of a vector field F is:
∇×F=
Expanded:
∇×F=
Physical Interpretation:
- Measures the rotation or "swirl" of a vector field at a point
- ∇×F=0: Irrotational field
- In fluid dynamics, curl of velocity = vorticity (twice the angular velocity)
- In electromagnetism, ∇×E=− (Faraday's law)
Properties:
- ∇×(F+G)=∇×F+∇×G
2.5 Directional Derivatives
Definition: The directional derivative of a scalar field ϕ in the direction of a unit vector u^ is:
Du^ϕ=∇ϕ⋅u
where θ is the angle between ∇ϕ and u^.
Maximum Directional Derivative:
- Occurs when u^ is parallel to ∇ϕ (θ=0)
- Maximum value = ∣∇ϕ∣
Minimum Directional Derivative:
- Occurs when u^ is opposite to ∇ϕ (θ=π)
- Minimum value = −∣∇ϕ
3. Vector Integration
3.1 Line Integral
Definition: The line integral of a vector field F along a curve C from point A to point B:
∫CF⋅dr=∫
where dr=dxi+dyj+dzk.
Parametric Form: If C is given by r(t) for a≤t≤b:
∫CF⋅dr=∫
Work Done: If F is a force field, the work done in moving a particle along C is:
W=∫CF⋅dr
Circulation: For a closed curve C:
Γ=∮CF⋅dr
3.2 Surface Integral
Definition: The surface integral of a vector field F over a surface S:
∬SF⋅dS=∬S
where n^ is the unit normal vector to the surface.
Scalar Surface Integral:
∬SϕdS
Flux: The surface integral ∬SF⋅n^dS represents the flux of F through .
For a surface z=f(x,y) projected onto region R in the xy-plane:
dS=1+(∂x
3.3 Volume Integral
Definition: The volume integral of a scalar field ϕ over a volume V:
∭VϕdV
For a vector field F:
∭VFdV
4. Integral Theorems
4.1 Green's Theorem
Statement: Let C be a positively oriented (counter-clockwise), piecewise smooth, simple closed curve in the plane enclosing a region R. If P(x,y) and Q(x,y) have continuous partial derivatives on an open region containing , then:
∮C(Pdx+Qdy)=
Alternative Forms:
Area Formula:
Area of R=21∮
Normal Form:
∮CF⋅n^ds=∬
4.2 Gauss's Divergence Theorem
Statement: Let V be a solid region bounded by a closed surface S with outward unit normal n^. If F has continuous partial derivatives in V, then:
∬SF⋅n^dS=∭
Physical Interpretation:
- The total flux of F out of a closed surface equals the total divergence (source strength) inside the volume.
- Foundation of conservation laws in physics.
Special Case: If F=ϕ∇ψ (Green's first identity):
∭V(ϕ∇2ψ+∇ϕ⋅
4.3 Stokes' Theorem
Statement: Let S be an oriented piecewise smooth surface bounded by a simple, closed, piecewise smooth curve C with positive orientation. If F has continuous partial derivatives on an open region containing S, then:
∮CF⋅dr=∬S
Physical Interpretation:
- The circulation of F around a closed loop equals the total curl (rotation) passing through any surface bounded by that loop.
- If ∇×F=0, the field is conservative and line integrals are path-independent.
Conservative Fields: F is conservative if and only if:
- ∇×F=0 (irrotational)
- ∮CF⋅dr= for every closed curve
5. The Laplacian and Vector Identities
5.1 Laplacian Operator
For a scalar field ϕ:
∇2ϕ=∇⋅∇ϕ=
For a vector field F:
∇2F=∇(∇⋅F)−∇×(∇×F)
5.2 Key Vector Identities
| Identity | Formula |
|---|
| Gradient of sum | ∇(ϕ+ψ)=∇ϕ+∇ψ |
| Divergence of curl | ∇ |
6. Coordinate System Formulas
6.1 Cylindrical Coordinates (r,θ,z)
x=rcosθ, y=rsinθ, z=z
Gradient:
∇ϕ=∂r∂ϕ
Divergence:
∇⋅F=r1
Curl:
∇×F=
Laplacian:
∇2ϕ=r
6.2 Spherical Coordinates (ρ,ϕ,θ)
x=ρsinϕcosθ, y=ρsinϕsinθ,
Gradient:
∇ψ=∂ρ∂ψ
Divergence:
∇⋅F=ρ
Laplacian:
∇2ψ
7. Engineering Applications
| Domain | Application |
|---|
| Electromagnetism | Maxwell's equations: ∇⋅E=ε0ρ, |
8. Common Mistakes to Avoid
| Mistake | Correction |
|---|
| Confusing ∇ϕ (vector) with ∇⋅F (scalar) | Gradient of scalar = vector; Divergence of vector = scalar |
| Forgetting that curl of gradient is always zero | ∇×(∇ϕ) — useful for checking conservative fields |
9. Best Practices & Architecture
- Always verify ∇×F=0 before claiming a field is conservative
- Use potential functions ϕ where F=∇ϕ to simplify line integral calculations
- Choose the simplest surface for Stokes' theorem — any surface bounded by works
10. Practice Problems
Problem 1: Find the gradient of ϕ=x2y+yz2 at the point (1,2.
Problem 2: Compute the divergence and curl of F=x2yi+yz2j+z.
Problem 3: Find the directional derivative of ϕ=x2+y2+z2 at in the direction of the vector .
Problem 4: Evaluate ∫CF⋅dr where F=(x and is the unit circle traversed counter-clockwise using Green's theorem.
Problem 5: Verify the divergence theorem for F=xi+yj+zk over the unit sphere x2+.
Problem 6: Verify Stokes' theorem for F=−yi+xj+zk where S is the upper hemisphere , .
Problem 7: Show that F=(2xy+z3)i+x2j is conservative and find its scalar potential.
Problem 8: Evaluate ∬SF⋅n^dS where and is the surface of the cube bounded by ; ; .
11. Mini Project
Title: Electromagnetic Field Analysis Using Vector Calculus Theorems
Objective: Apply gradient, divergence, curl, and the integral theorems to analyze an electrostatic field configuration.
Given:
- Electric potential field: V(x,y,z)=x2+ where is constant
Tasks:
- Compute ∇V and verify E=−∇V in spherical coordinates
- Calculate ∇⋅E everywhere except the origin; interpret the result
- Use the divergence theorem to find the total flux of E through a sphere of radius centered at the origin
Deliverable: A computational notebook (Python with SymPy/MATLAB) that symbolically computes all vector operations, visualizes the field using quiver plots and streamlines, validates each theorem numerically, and provides physical interpretations of divergence and curl in the electromagnetic context.
Quick Reference Formula Sheet
| Concept | Formula |
|---|
| Gradient | ∇ϕ=i∂x∂ϕ |
End of Unit 5 — Vector Calculus