IV. Differential equations and advanced analysis

35. Functions of a complex variable

The Cauchy–Riemann equations of f(z) are checked by cr(z^2 + 3z); the function may be written in z, z̄ (conj(z)), |z|, Re z, Im z or directly in x and y. The app splits f = u + iv, computes the partial derivatives and substitutes into u_x = v_y, u_y = −v_x. If they hold everywhere, the function is analytic and the result is the derivative f'(z) written in z; otherwise the app says where they hold (points or a curve) and the function is not analytic. For a harmonic function harmonic(u = x^2 - y^2) it finds the harmonic conjugate by integrating the equations and the whole f(z) by putting x = z, y = 0; the imaginary part can be given too, harmonic(v = 2xy).

Values of the elementary functions in ℂ: the principal logarithm ln(1 + i) = ln|w| + i Arg w with all values differing by 2kπi, a power with a complex exponent i^i = e^(i Log i), sin, cos, sinh and cosh of a complex number by the addition formulas. The argument is in the same interval as for complex numbers (the “Principal argument” chip). The equations sin z = 2, cos z = 3, sinh z = i, cosh z = 2 are solved by the substitution w = e^(iz) (e^z) and a quadratic equation, e^z = 1 + i by the logarithm; the result is the general solution with k ∈ ℤ and several solutions in the Gauss plane. An equation in x without a real solution (sin x = 2) offers the complex solution button.

Singularities and residues: singularities(f) finds the roots of the denominator and the essential singularities (e^(1/z), sin(1/z)), tells their kind – removable, a pole of order m, essential – and computes the residues: at a simple pole g(a)/q'(a), at a higher pole by the derivative of (z − a)^m f(z), at an essential singularity from the Laurent series. Res(f, z = a) computes one residue. The Laurent series of a rational function in an annulus laurent(f, 1 < |z| < 2) (or |z| > 1, 0 < |z − a| < r, around a point laurent(f, z = a)) is built from the partial fractions over ℂ and the geometric series of each fraction – by whether its pole lies inside or outside the annulus. The integral over a circle oint(f, |z − a| = r) (from a photo \oint_{|z−a|=r}) is computed by the residue theorem; with no singularity inside it is zero, a singularity on the circle is reported.

Residues in real analysis: an improper integral of a rational function over the whole axis, with cos ax or sin ax (Jordan's lemma) and from 0 to ∞ of an even function; an integral of a rational function of cos t and sin t over ⟨0; 2π⟩ by z = e^(it). Integrals with a cosine or sine and over ⟨0; 2π⟩ go by residues at once, for the others choose the “By residues” chip (back by “The usual way”). The same chip on a series sums Σ R(n) from 1 (from 0 or another whole number) by the kernel π cot πz, an alternating series by π/sin πz; a sum over all whole numbers from −∞ goes at once. The inverse Laplace transform of a rational function invlaplace(F) (from a photo \mathcal{L}^{-1}\{F\}) is computed as the sum of the residues of F(s)e^(st).

Rouché's theorem rouche(p, |z| < r) counts the roots of a polynomial in a disc by the term that dominates the sum of the others on the circle, in an annulus r < |z| < R as the difference of two discs; the roots are shown in the Gauss plane. A conformal map w = f(z) is split into u and v, the app tells where it is conformal (f' ≠ 0) and for a Möbius transformation (αz + β)/(γz + δ) finds the fixed points and the images of the real and imaginary axis and of the unit circle. The graph shows the image of the grid of lines x = c and y = c.

The Fourier transform of a rational function ftransform(1/(1 + t^2)) (from a photo \mathcal{F}\{f\}) is computed by residues - for ω > 0 the path is closed in the lower half-plane, for ω < 0 in the upper one - and for an even (odd) function the result is written with |ω|. For a density in x it gives the distribution's characteristic function up to the sign of ω, for the symmetric Cauchy distribution e^(−|t|) directly. The inverse Z-transform invz(F) (\mathcal{Z}^{-1}\{F\}) is the sum of the residues of F(z)zⁿ⁻¹ with the initial value x[0] = lim F(z) for z → ∞. Their use in filters, control and optics is in the chapter Applications of complex analysis.

How to enter it

cr(z^2 + 3z), cr(conj(z))The Cauchy–Riemann equations and the derivative.
harmonic(u = x^2 - y^2), harmonic(v = 2xy)The harmonic conjugate of a real (imaginary) part.
ln(1 + i), i^i, sin(1 + i), sin z = 2The logarithm, powers, trigonometric functions and equations in ℂ.
Res(f, z = a), singularities(f)A residue at a point, all singularities.
laurent(f, 1 < |z| < 2), laurent(f, z = a)A Laurent series in an annulus or around a point.
oint(f, |z - a| = r)An integral over a circle by the residue theorem.
int(cos(x)/(x^2 + 1), x, -oo, oo), int(1/(2 + cos(t)), t, 0, 2pi)Real integrals by residues.
residues(sum(1/n^2, n, 1, oo))A sum of a series by residues.
rouche(z^5 + 3z + 1, |z| < 1)The number of roots of a polynomial in a disc or annulus.
w = (z - i)/(z + i)A conformal map, a Möbius transformation.
invlaplace(s/(s^2 + 4))The inverse Laplace transform by residues.
ftransform(1/(1 + t^2))The Fourier transform by residues.
invz(z/(z - 1/2))The inverse Z-transform by residues.

Examples

An analytic function – the equations hold everywhere, the derivative in z.
Input: cr(z^2 + 3z)
cr(z^2 + 3z)
The equations hold only on the line y = x – the function is not analytic.
Input: cr(x^2 + i y^2)
cr(x^2 + i y^2)
The harmonic conjugate and f(z) = z² + z.
Input: harmonic(u = x^2 - y^2 + x)
harmonic(u = x^2 - y^2 + x)
The principal value of the logarithm and all its values.
Input: ln(1 + i)
ln(1 + i)
ln(1 + i)ln(1 + i)
iⁱ is the real number e^(−π/2).
Input: i^i
i^i
i^ii^i
The equation sin z = 2 – the substitution w = e^(iz) and a quadratic equation.
Input: sin z = 2
sin z = 2
sin z = 2sin z = 2
A pole of a lower order thanks to a zero of the numerator, and a simple pole.
Input: singularities(sin(z)/(z^3 (z - 1)))
singularities(sin(z)/(z^3 (z - 1)))
singularities(sin(z)/(z^3 (z - 1)))singularities(sin(z)/(z^3 (z - 1)))
An essential singularity – the residue from the Laurent series.
Input: Res(z^2 e^(1/z), z = 0)
Res(z^2 e^(1/z), z = 0)
Res(z^2 e^(1/z), z = 0)Res(z^2 e^(1/z), z = 0)
The Laurent series in the annulus 1 < |z| < 2 – one fraction in powers of 1/z, the other in powers of z.
Input: laurent(1/((z - 1)(z - 2)), 1 < |z| < 2)
laurent(1/((z - 1)(z - 2)), 1 < |z| < 2)
laurent(1/((z - 1)(z - 2)), 1 < |z| < 2)laurent(1/((z - 1)(z - 2)), 1 < |z| < 2)
The residue theorem at a pole of order 2.
Input: oint(e^z/(z - i)^2, |z - i| = 1)
oint(e^z/(z - i)^2, |z - i| = 1)
oint(e^z/(z - i)^2, |z - i| = 1)oint(e^z/(z - i)^2, |z - i| = 1)
An improper integral with a cosine – Jordan's lemma.
Input: int(cos(x)/(x^2 + 1), x, -oo, oo)
int(cos(x)/(x^2 + 1), x, -oo, oo)
int(cos(x)/(x^2 + 1), x, -oo, oo)int(cos(x)/(x^2 + 1), x, -oo, oo)
An integral over ⟨0; 2π⟩ as an integral over the unit circle.
Input: int(1/(2 + cos(t)), t, 0, 2pi)
int(1/(2 + cos(t)), t, 0, 2pi)
int(1/(2 + cos(t)), t, 0, 2pi)int(1/(2 + cos(t)), t, 0, 2pi)
Σ 1/n² = π²/6 – the residue at zero, where the kernel has a pole too.
Input: residues(sum(1/n^2, n, 1, oo)) By residues
residues(sum(1/n^2, n, 1, oo))
residues(sum(1/n^2, n, 1, oo))residues(sum(1/n^2, n, 1, oo))
Rouché's theorem – four roots in the annulus 1 < |z| < 2.
Input: rouche(z^5 + 3z + 1, 1 < |z| < 2)
rouche(z^5 + 3z + 1, 1 < |z| < 2)
rouche(z^5 + 3z + 1, 1 < |z| < 2)rouche(z^5 + 3z + 1, 1 < |z| < 2)
A Möbius transformation – the upper half-plane onto the unit disc.
Input: w = (z - i)/(z + i)
w = (z - i)/(z + i)
w = (z - i)/(z + i)w = (z - i)/(z + i)
The inverse Laplace transform as a sum of residues.
Input: invlaplace(s/((s + 1)(s^2 + 4)))
invlaplace(s/((s + 1)(s^2 + 4)))
invlaplace(s/((s + 1)(s^2 + 4)))invlaplace(s/((s + 1)(s^2 + 4)))
The Fourier transform of the Lorentz function: π·e^(−|ω|).
Input: ftransform(1/(1 + t^2))
ftransform(1/(1 + t^2))
ftransform(1/(1 + t^2))ftransform(1/(1 + t^2))
The Cauchy distribution's characteristic function e^(−|t|).
Input: ftransform(1/(pi (1 + x^2)))
ftransform(1/(pi (1 + x^2)))
ftransform(1/(pi (1 + x^2)))ftransform(1/(pi (1 + x^2)))
The inverse Z-transform with two poles: x[n] = 2 − 2⁻ⁿ.
Input: invz(z^2/((z - 1)(z - 1/2)))
invz(z^2/((z - 1)(z - 1/2)))
invz(z^2/((z - 1)(z - 1/2)))invz(z^2/((z - 1)(z - 1/2)))

Known limitations