Complex Functions and Analyticity
Complex analysis studies functions of a complex variable . The surprising feature is that complex differentiability is much stronger than real differentiability. If a function is analytic on a region, it has derivatives of all orders, local power series, and real and imaginary parts that satisfy Laplace's equation.
For engineering mathematics, analytic functions connect potential flow, electrostatics, conformal mapping, residues, Fourier and Laplace methods, and two-dimensional harmonic functions. The Cauchy-Riemann equations are the first test for analyticity, but domain and differentiability assumptions matter.
Definitions
A complex function can be written
where and are real-valued functions.
The complex derivative at is
where approaches through complex values from all directions.
A function is analytic at if it is differentiable in a neighborhood of . It is analytic on a domain if it is analytic at every point of that domain.
The Cauchy-Riemann equations are
If the first partial derivatives are continuous and satisfy these equations in a region, then is analytic there.
A harmonic function satisfies
If is analytic, then both and are harmonic.
Key results
The derivative must be independent of the direction in which approaches zero. Approaching along the real direction gives
Approaching along the imaginary direction gives
Equating real and imaginary parts yields the Cauchy-Riemann equations.
Analyticity implies harmonicity. If and , then
assuming continuous second partial derivatives. The same argument gives . Thus analytic functions generate solutions of Laplace's equation.
The converse is local: a harmonic function on a simply connected region has a harmonic conjugate, so it can become the real part of an analytic function. On regions with holes, global single-valued conjugates may fail to exist.
Elementary analytic functions include polynomials, rational functions away from poles, , , and . Functions involving are usually not analytic except in special degenerate cases. For example, satisfies no open-region Cauchy-Riemann condition.
Analytic functions preserve angles locally when . Such maps are conformal at . This property supports conformal mapping methods, where complicated two-dimensional potential problems are transformed into simpler domains.
Complex differentiability should not be confused with differentiability as a function . A function can have all real partial derivatives and still fail to be complex differentiable. The Cauchy-Riemann equations impose the extra structure needed for multiplication by a complex derivative to represent the local linear map.
Branches are part of complex function definitions. The logarithm and fractional powers are multivalued unless a branch cut is chosen. A formula such as is not a single analytic function on all of because going around the origin changes the argument by .
The local linear meaning of a complex derivative is special. Multiplication by a complex number combines a scaling and a rotation. Therefore, when exists and is nonzero, the best linear approximation to near scales all small directions by the same factor and rotates them by the same angle. A general real Jacobian matrix does not have this equal-scaling structure. The Cauchy-Riemann equations are exactly the conditions that force the Jacobian into the form of complex multiplication.
Analyticity is an open-region property. A function may satisfy the Cauchy-Riemann equations at an isolated point without being analytic near that point. For example, functions involving can be arranged to pass the equations at one point, but the direction-independent derivative fails nearby. This is why engineering math texts emphasize a neighborhood and continuous partial derivatives.
Power series are the local language of analytic functions. If is analytic near , then
inside some disk of convergence. This is much stronger than real differentiability. It means local behavior is determined by coefficients, and singularities control the radius of convergence. That idea later supports Taylor and Laurent series.
Harmonic conjugates are found by integrating the Cauchy-Riemann equations. If is known and one wants , use and . The two integrations must be consistent; if they are not, was not harmonic or the region has a global obstruction. The conjugate is determined only up to an additive constant.
Analytic functions are rigid. If two analytic functions agree on a set with a limit point inside a connected domain, they agree everywhere on that domain. This identity principle has no direct analog for arbitrary real differentiable functions. It explains why analytic continuation can extend a function from local data when no singularity blocks the path.
Zeros of analytic functions are isolated unless the function is identically zero on a connected domain. This property supports residue calculations and contour integration. It also means that a nontrivial analytic function cannot vanish on a curve segment inside the domain without vanishing everywhere.
The real and imaginary parts of analytic functions form orthogonal families of level curves where the derivative is nonzero. If and curves intersect, they do so at right angles. This is the geometric basis of potential-flow diagrams and conformal grids.
Visual
| Function | Analytic where? | Reason |
|---|---|---|
| All complex plane | Polynomial | |
| Pole at origin | ||
| All complex plane | Entire function | |
| Nowhere on an open region | Fails Cauchy-Riemann | |
| Chosen branch domain | Multivalued without branch cut |
Worked example 1: Testing Cauchy-Riemann equations
Problem. Determine where
is analytic using and .
Method.
- Write
- Thus
- Compute partial derivatives:
and
- Check Cauchy-Riemann:
and
Answer. The equations hold everywhere, and the partial derivatives are continuous, so is analytic on all of .
Check. The derivative is , matching the polynomial rule.
At , the derivative is zero, so the map is analytic but not conformal there. Near other points, small angles are preserved. This distinction is important: analyticity alone does not guarantee local angle preservation at critical points where the derivative vanishes.
Worked example 2: Showing is not analytic
Problem. Test
Method.
- Write
- Thus
- Compute partials:
and
- Check the first Cauchy-Riemann equation:
would require
which is false.
Answer. The function is not analytic at any point in an open region.
Check. The difference quotient also depends on direction: along real , the quotient is ; along imaginary , it is .
The example is useful because is perfectly smooth as a real two-variable function. Its failure is specifically complex differentiability. This demonstrates why complex analysis cannot be reduced to ordinary partial derivatives without the Cauchy-Riemann structure.
Code
import sympy as sp
x, y = sp.symbols("x y", real=True)
u = x**2 - y**2
v = 2*x*y
cr1 = sp.simplify(sp.diff(u, x) - sp.diff(v, y))
cr2 = sp.simplify(sp.diff(u, y) + sp.diff(v, x))
lap_u = sp.diff(u, x, 2) + sp.diff(u, y, 2)
lap_v = sp.diff(v, x, 2) + sp.diff(v, y, 2)
print(cr1, cr2)
print(lap_u, lap_v)
The code verifies the Cauchy-Riemann equations and harmonicity for . Symbolic checks are useful, but they do not replace domain analysis. A formula can satisfy local equations away from a branch cut or singularity and still fail to be analytic on a larger requested domain.
For branch-dependent functions, code usually follows a principal branch convention. That convention may introduce a discontinuity along a cut, often the negative real axis for logarithms. Mathematical work must state the branch domain explicitly.
Common pitfalls
- Checking Cauchy-Riemann equations at a single point and claiming analyticity on a region.
- Forgetting the need for continuity of partial derivatives in the common sufficient test.
- Treating as if it behaved like under complex differentiation.
- Ignoring branch cuts for and fractional powers.
- Assuming harmonic real part automatically gives a global analytic function on a region with holes.
- Confusing "complex differentiable at a point" with "analytic in a neighborhood."
- Forgetting that conformality can fail where .
- Applying real-variable intuition about differentiability without checking direction independence.
- Treating a branch formula as globally single-valued without tracking changes in argument.
- Forgetting that harmonic conjugates are unique only up to an additive real constant.
- Assuming a harmonic function on a multiply connected domain always has a single-valued conjugate.
- Ignoring singular points when naming an analytic domain.