Fluid dynamics, electrostatics, signal processing, and quantum mechanics
Analytic functions solve Laplace's equation for free, so they describe steady flows, electric fields, and heat. Here they draw streamlines and field lines for you.
Choose a flow pattern and toggle the streamlines (blue) and equipotential lines (pink). Wherever they meet, they cross at right angles.
Blue: streamlines (flow paths), Pink: equipotential lines. Notice they're always perpendicular!
🌊 Fluid Dynamics Key Points:
Complex analysis isn't just beautiful mathematics - it's an essential tool across physics, engineering, and applied sciences. From designing aircraft wings to analyzing electrical circuits, complex methods solve problems that would be intractable with real analysis alone.
In this section, we explore three major application areas: fluid dynamics, electrostatics, and a showcase of diverse real-world uses across multiple fields.
In 2D incompressible, irrotational fluid flow, the complex potential Ω(z) = φ(x,y) + iψ(x,y) elegantly combines:
Because Ω is analytic, φ and ψ automatically satisfy Laplace's equation and the Cauchy-Riemann equations ensure the level curves are orthogonal.
Drag the charges, add your own, and change their size and sign. Field lines and equipotentials redraw as you move, and always cross at right angles.
Each charge is a long straight wire seen end-on, so this is two-dimensional electrostatics: the potential falls off like log r rather than 1/r. Units are chosen so that V = −Σ qₖ log|z − zₖ|. Green field lines are level curves of ψ = Im Ω, drawn 12 per unit of charge; violet equipotentials are level curves of φ = Re Ω, spaced 0.5 apart. Red shading marks positive V, blue negative. The yellow test charges drift along E, from + charges toward − charges or off to infinity.
In two dimensions a "point charge" is really a long straight wire seen end-on. Its potential grows like log r rather than 1/r, which is exactly what a complex logarithm provides:
Real part: φ = Σ qk log|z − zk|. In units where 1/(2πε₀) = 1, the electric potential is V = −φ, so the equipotentials are the level curves of φ.
Imaginary part: ψ = Σ qk arg(z − zk). Its level curves are the field lines.
The field is E = conj(Ω′(z)) = Σ qk(z − zk)/|z − zk|², pointing away from positive charges. Because Ω is analytic, the Cauchy–Riemann equations make the two families of curves cross at right angles, and superposition is just addition of potentials.
Why the lines never jump: arg(z − zk) is only defined up to multiples of 2π, so ψ jumps by 2πqk across any branch cut. The demo unwraps the angles inside each grid cell before tracing, and keeps the charges whole numbers so that a charge q sends out exactly 12|q| field lines. Gauss's law is then visible by counting: the net number of lines leaving a closed curve is 12 times the charge inside, and when the total charge Q is not zero, 12|Q| lines run off to infinity.
Choose a field, from signal processing to number theory, and see how it uses complex analysis, with key formulas and real examples.
Complex analysis appears in surprising places across mathematics, physics, and engineering. Here are just a few of the many fields that rely on complex methods:
Unified Framework: Complex analysis provides a single elegant framework for problems in fluid dynamics, electromagnetism, heat flow, and more.
Conformal Mapping Magic: Transform complicated domains into simple ones, solve there, then transform back. This solves PDEs that would be impossible otherwise!
Residue Calculus: The residue theorem evaluates integrals in physics (Feynman diagrams), signal processing (Fourier transforms), and probability theory.
Control Theory: Transfer functions H(s) in the complex s-plane determine system stability. Poles in right half-plane = unstable system!
Quantum Mechanics: Wave functions ψ(x,t) are complex-valued. Probability = |ψ|². Complex analysis is fundamental to quantum theory.
Spot a mistake or have an idea?