Draw paths and integrate along them - Cauchy's theorems come alive
In the complex plane there are endless paths between two points, and an integral can depend on which one you take. For analytic functions, it doesn't.
Click on the canvas to draw a custom contour, or select a preset shape. Then choose a function to integrate along your path. Try 1/z around a circle that contains the origin.
💡 Observations:
One of the most powerful tools in complex analysis is the ability to integrate functions along contours (paths) in the complex plane. Unlike real integration, complex integrals depend on the path taken - unless the function is analytic!
The fundamental results - Cauchy's Integral Theorem and Cauchy's Integral Formula - connect analyticity to path independence and allow us to evaluate integrals that would be impossible in real analysis.
The contour integral of f(z) along a path γ is defined as:
Choose a function and a closed contour. Analytic functions give 0 every time; watch what changes when a pole sits inside the contour.
The selected contour encloses the plotted region. Zeros appear black, poles appear white.
🔍 Cauchy's Integral Theorem Explained:
One of the most important theorems in complex analysis:
This means that for analytic functions, closed path integrals always equal zero! This is not true for non-analytic functions.
Move the test point a and compare f(a) computed directly with the value recovered from the contour integral. They match while a stays inside the contour.
Circular contour centered at origin with radius 1.5
🎯 Cauchy's Integral Formula Explained:
An even more remarkable result - we can recover the value of an analytic function at any point from its values on a surrounding contour:
This formula is extraordinary: knowing f on the boundary completely determines f inside! This has no analog in real analysis.
Bend the second path with the curvature slider and compare the two integrals. For analytic functions they agree; try the conjugate or 1/z to see them split.
Adjust how much the curved path (purple dashed) deviates from the straight path (blue solid)
🔄 Path Independence Explained:
For analytic functions, the integral between two points is path independent - it doesn't matter which path you take! This is similar to conservative vector fields in real analysis.
For non-analytic functions, this is false - different paths give different integrals.
Spot a mistake or have an idea?