A stream function for a 2D vector field is a scalar function with

i.e., and .

A field admits a stream function iff it is source-free (zero divergence) on a simply connected domain. The stream function is the flux-side analog of the potential function for conservative fields.

The flux side of the parallel story

Vector calculus has two parallel stories, the circulation story and the flux story. They run in close analogy: “conservative” (zero curl, has a potential) on one side, “source-free” (zero divergence, has a stream function) on the other.

PropertyCirculation storyFlux story
Local condition
Global conditionZero closed-loop circulationZero closed-curve outward flux
Scalar functionPotential with Stream function with
Bridging theoremFTLI, Green’s theorem (circ), Stokes’ theoremGreen’s theorem (flux), Divergence theorem

Streamlines

Level curves of are streamlines, the integral curves of , the paths a particle would follow if carried by the field at every instant.

Proof: along a streamline, . But and , so the directional derivative is . So is constant along streamlines, which makes streamlines the level sets of .

Flux across a curve

equals the flux of across any curve from to (with appropriate orientation). This is the flux-side analog of for conservative fields.

Finding a stream function

Same algorithm as finding a potential, but using the stream-function equations , . Given source-free :

  1. Integrate w.r.t. : .
  2. Differentiate w.r.t. : . Set , solve for .
  3. Integrate.

Doubly special: conservative AND source-free

A 2D field that is both conservative (has potential , zero curl) and source-free (has stream function , zero divergence) satisfies

These are exactly the Cauchy-Riemann equations for and to be the real and imaginary parts of an analytic function .

So doubly-special vector fields in 2D are real-imaginary pairs of analytic functions. Both and automatically satisfy Laplace’s equation , i.e. they’re harmonic. That’s why complex analysis handles 2D steady-state physics so well: fluid flow, electrostatics, heat conduction, anything governed by Laplace’s equation.

Worked example

.

Divergence: . Source-free.

Curl: . Also conservative.

Find : gives . gives . So .

Find : gives . gives . So .

Combining: .

The doubly-special field is just the analytic function .

Caveat: domains

Existence of a stream function (or potential) requires the topology of the domain to cooperate. On non-simply-connected domains, zero divergence doesn’t guarantee a single-valued stream function — same issue that affects potentials in non-simply-connected domains.