Lecture 7
Complex Analysis II

C.L. Wyatt

2025-07-11

In today’s lecture we continue our introduction to complex analysis by defining analytic complex functions, the complex derivative, and looking closer at rational complex functions.

Complex Derivatives

A complex function f(s)f(s) is analytic in some domain RR\subset\mathbb{C} of the function is

Let f(s)=f(x+jy)=u(x,y)+jv(x,y)f(s) = f(x + jy) = u(x,y) + jv(x,y). The function has a complex derivative if and only if

ux=vy\frac{\partial u}{\partial x} = \frac{\partial v}{\partial y} and uy=vx\frac{\partial u}{\partial y} = -\frac{\partial v}{\partial x} These are called the Cauchy-Riemann conditions. If these conditions are met then the complex derivative is given by

f(s)=ux+jvx=vyjuyf^\prime(s) = \frac{\partial u}{\partial x} + j \frac{\partial v}{\partial x} = \frac{\partial v}{\partial y} - j \frac{\partial u}{\partial y}

If a complex function is analytic over the entire complex plane, i.e. R=R = \mathbb{C}, it is called an entire function.

If a complex function is not analytic at a point s0s_0, but is analytic in the neighborhood of s0s_0, then the point is called a or a singular point of the function.

Examples

Example 1: Let s=x+jys = x+jy and define

f(s)=es=f(x+jy)=ex+jy=exejyf(s) = e^s = f(x+jy) = e^{x+jy} = e^x e^{jy} Using Euler’s relation

f(x+jy)=excos(y)u(x,y)+jexsin(y)v(x,y)f(x+jy) = \underbrace{e^x\cos(y)}_{u(x,y)} + j\underbrace{e^x \sin(y)}_{v(x,y)} Checking the Cauchy-Riemann conditions

ux=excos(y)\frac{\partial u}{\partial x} = e^x\cos(y)

uy=exsin(y)\frac{\partial u}{\partial y} = -e^x\sin(y)

vx=exsin(y)\frac{\partial v}{\partial x} = e^x\sin(y) vy=excos(y)\frac{\partial v}{\partial y} = e^x\cos(y) Thus ux=vy=excos(y)\frac{\partial u}{\partial x} = \frac{\partial v}{\partial y} = e^x\cos(y) and uy=vx=exsin(y)\frac{\partial u}{\partial y} = -\frac{\partial v}{\partial x} = -e^x\sin(y) and the function is analytic everywhere and thus an entire function. The complex derivative is

f(s)=excos(y)+jexsin(y)=exejy=ex+jy=esf^\prime(s) = e^x\cos(y) + je^x\sin(y) = e^x e^{jy} = e^{x+jy} = e^s just as if ss was real and ff a real function.

Example 2: Let f(s)=1sf(s) = \frac{1}{s}, for |s|>0|s| > 0, i.e. s0s \neq 0. Then

f(s)=f(x+jy)=1x+jy=1x+jyxjyxjy=xjyx2+y2=xx2+y2u(x,y)+jyx2+y2v(x,y)f(s) = f(x+jy) = \frac{1}{x+jy} = \frac{1}{x+jy} \cdot \frac{x-jy}{x-jy} = \frac{x-jy}{x^2 + y^2} = \underbrace{\frac{x}{x^2 + y^2}}_{u(x,y)} + j \underbrace{\frac{-y}{x^2 + y^2}}_{v(x,y)}

Checking the Cauchy-Riemann conditions

ux=x2+y2(x2+y2)2\frac{\partial u}{\partial x} = \frac{-x^2 + y^2}{(x^2 + y^2)^2}

uy=2xy(x2+y2)2\frac{\partial u}{\partial y} = \frac{-2xy}{(x^2 + y^2)^2}

vx=2xy(x2+y2)2\frac{\partial v}{\partial x} = \frac{2xy}{(x^2 + y^2)^2}

vy=x2+y2(x2+y2)2\frac{\partial v}{\partial y} = \frac{-x^2 + y^2}{(x^2 + y^2)^2}

we we see that the function is analytic for s(0+j0)s \in \mathbb{C} - (0 + j0) and

f(s)=x2+y2(x2+y2)2+j2xy(x2+y2)2f^\prime(s) = \frac{-x^2 + y^2}{(x^2 + y^2)^2} + j \frac{2xy}{(x^2 + y^2)^2}

With some work you can show this is the same as

f(s)=1s2f^\prime(s) = -\frac{1}{s^2}

again, just as if ss was real and ff a real function.

Example 3: Now for a counter-example. Consider

f(s)=s*=f(x+jy)=xjyf(s) = s^* = f(x + jy) = x - jy Thus u(x,y)=xu(x,y) = x and v(x,y)=yv(x,y) = -y. Checking the Cauchy-Riemann conditions,

ux=1\frac{\partial u}{\partial x} = 1

uy=0\frac{\partial u}{\partial y} = 0

vx=0\frac{\partial v}{\partial x} = 0

vy=1\frac{\partial v}{\partial y} = -1

we see ux=1vy=1\frac{\partial u}{\partial x} = 1 \neq \frac{\partial v}{\partial y} = -1 thus the function is not analytic and no derivative exists.

Example 4: Show that s0=1s_0 = -1 is a singularity of an analytic complex function f(s)=1s+1=f(x+jy)=1(1+x)+jyf(s) = \frac{1}{s+1} = f(x +jy) = \frac{1}{(1+x) + jy} Rearranging to get the real part and imaginary part

1(1+x)+jy(1+x)jy(1+x)jy=1+x(1+x)2+y2u(x,y)+jy(1+x)2+y2v(x,y)\frac{1}{(1+x) + jy}\frac{(1+x) - jy}{(1+x) - jy} = \underbrace{\frac{1+x}{(1+x)^2 + y^2}}_{u(x,y)} + j \underbrace{\frac{-y}{(1+x)^2 + y^2}}_{v(x,y)}

Checking the Cauchy-Riemann conditions,

ux=(1+x)2+y2[(1+x)2+y2]2\frac{\partial u}{\partial x} = \frac{-(1+x)^2 + y^2}{[(1+x)^2 + y^2]^2}

uy=2(1+x)y[(1+x)2+y2]2\frac{\partial u}{\partial y} = \frac{-2(1+x)y}{[(1+x)^2 + y^2]^2}

vx=2(1+x)y[(1+x)2+y2]2\frac{\partial v}{\partial x} = \frac{2(1+x)y}{[(1+x)^2 + y^2]^2}

vy=(1+x)2+y2[(1+x)2+y2]2\frac{\partial v}{\partial y} = \frac{-(1+x)^2 + y^2}{[(1+x)^2 + y^2]^2}

we see that ux=vy\frac{\partial u}{\partial x} = \frac{\partial v}{\partial y} and uy=vx\frac{\partial u}{\partial y} = -\frac{\partial v}{\partial x} except at x=1,y=0x=-1, y = 0 where

(1+x)2+y2[(1+x)2+y2]2=00=undefined\frac{-(1+x)^2 + y^2}{[(1+x)^2 + y^2]^2} = \frac{0}{0} = \text{undefined}

Thus the function is analytic except at s0=1+j0=1s_0 = -1 + j0 = -1.

Rational Complex Functions

The previous example is a rational function, a ratio of polynomials in ss. These will be very important later in the course. We will need to be very adept at doing manipulations of such functions. The general case can be written as

f(s)=k=0Mbkskk=0NakskP(s)Q(s)f(s) = \frac{\sum\limits_{k=0}^M b_k s^k}{\sum\limits_{k=0}^N a_k s^k} \equiv \frac{P(s)}{Q(s)}

Example: M=2,N=3M = 2, N=3

f(s)=b0+b1s+b2s2a0+a1s+a2s2+a3s3f(s) = \frac{b_0 + b_1 s + b_2 s^2}{a_0 + a_1 s + a_2 s^2 + a_3 s^3} is a strictly proper rational function.

The roots of the denominator polynomial Q(s)Q(s) are the singularities of ff. We will often be interested in writing rational functions as a partial fraction expansion of the factors of the denominator.

Partial Fraction Expansion

A ratio of polynomials that is improper can be written as the sum of a polynomial and a strictly proper rational function. Example

f(s)=2s3+9s2+11s+2s2+4s+3=(2s+1)+s1s2+4s+3f(s) = \frac{2s^3 + 9s^2 + 11s + 2}{s^2 + 4s + 3} = (2s+1) + \frac{s-1}{s^2 + 4s + 3}

Once a rational function is proper we can expand it in terms of the factors of Q(s)Q(s). Example

f(s)=1s2+3s+2=1(s+1)(s+2)=As+1+Bs+2f(s) = \frac{1}{s^2 + 3s +2} = \frac{1}{(s+1)(s+2)} = \frac{A}{s+1} + \frac{B}{s+2}

To find AA and BB we can "clear" the fractions

As+1+Bs+2=1(s+1)(s+2)=A(s+2)+B(s+1)(s+1)(s+2)\frac{A}{s+1} + \frac{B}{s+2} = \frac{1}{(s+1)(s+2)} = \frac{A(s+2) + B(s+1)}{(s+1)(s+2)} which gives the equation for the numerator A(s+2)+B(s+1)=1+0sA(s+2) + B(s+1) = 1 + 0s which requires A=1A = 1 and B=1B = -1, so that f(s)=1s+1+1s+2f(s) = \frac{1}{s+1} + \frac{-1}{s+2}

Clearing fractions can be tedious with higher order systems. A shortcut is to use the Heaviside "cover-up" method, or finding the residues.

Case #1: non-repeated singularities f(s)=P(s)(sα1)(sα2)(sαN)f(s) = \frac{P(s)}{(s-\alpha_1)(s-\alpha_2)\cdots (s-\alpha_N)} where αi\alpha_i are the distinct singularities (roots of Q(s)Q(s)). Then f(s)=K1sα1+K1sα1++KNsαNf(s) = \frac{K_1}{s-\alpha_1} + \frac{K_1}{s-\alpha_1} + \cdots + \frac{K_N}{s-\alpha_N}

To find the KiK_i values we multiply through by that term (sαis-\alpha_i) and evaluate the result when s=αis = \alpha_i Ki=(sαi)f(s)|s=αiK_i = \left. (s-\alpha_i)f(s) \right|_{s = \alpha_i}

Example:

f(s)=s2+2s+7(s1)(s3)(s+5)=K1s+1+K2s3+K3s+5f(s) = \frac{s^2 + 2s + 7}{(s_1)(s-3)(s+5)} = \frac{K_1}{s+1} + \frac{K_2}{s-3} + \frac{K_3}{s+5}

We note that M=2M = 2 and N=3N = 3 so that the function is strictly proper. To find the constants

K1=s2+2s+7(s3)(s+5)|s=1=38K_1 = \left. \frac{s^2 + 2s + 7}{(s-3)(s+5)} \right|_{s = -1} = -\frac{3}{8}

K2=s2+2s+7(s+1)(s+5)|s=3=1116K_2 = \left. \frac{s^2 + 2s + 7}{(s+1)(s+5)} \right|_{s = 3} = \frac{11}{16}

K3=s2+2s+7(s+1)(s3)|s=5=1116K_3 = \left. \frac{s^2 + 2s + 7}{(s+1)(s-3)} \right|_{s = -5} = \frac{11}{16}

This works even if the roots are complex. For example:

f(s)=1(s+1+j)(s+1j)=K1s+1+j+K2s+1jf(s) = \frac{1}{(s + 1 + j)(s + 1 -j)} = \frac{K_1}{s + 1 + j} + \frac{K_2}{s + 1 -j}

K1=1s+1j|s=1j=12jK_1 = \left. \frac{1}{s + 1 - j} \right|_{s = -1-j} = -\frac{1}{2j}

K2=1s+1+j|s=1+j=12jK_2 = \left. \frac{1}{s + 1 + j} \right|_{s = -1+j} = \frac{1}{2j}

Case #2: However we will often want to avoid working with complex roots directly. Another approach is to combine them into a quadratic term. Here is an example:

f(s)=s+2s3+3s2+4s+2=s+2(s+1)(s+1+j)(s+1j)=s+2(s+1)(s2+2s+2)=As+1+Bs+Cs2+2s+2f(s) = \frac{s+2}{s^3 + 3s^2 + 4s + 2} = \frac{s+2}{(s+1)(s+1 +j)(s +1 -j)} = \frac{s+2}{(s+1)(s^2 +2s + 2)} = \frac{A}{s+1} + \frac{Bs + C}{s^2 + 2s + 2}

To find AA we use the same residue method

A=s+2s2+2s+2|s=1=1A = \left. \frac{s+2}{s^2 + 2s + 2} \right|_{s = -1} = 1

To find BB and CC we can clear fractions or use another shortcut. To find CC, let s=0s = 0. We get

A1+C2=1\frac{A}{1} + \frac{C}{2} = 1 which implies that C=0C = 0. To find BB multiply through by ss and let ss\rightarrow \infty.

Ass+1+Bs2+Css2+2s+2=s2+2ss3+3s2+4s+2\frac{As}{s+1} + \frac{Bs^2 + Cs}{s^2 + 2s + 2} = \frac{s^2 + 2s}{s^3 + 3s^2 + 4s + 2}

In the first term divide top and bottom by ss, in the second term by s2s^2, and on the right-hand side by s3s^3:

A1+s1+B+Cs11+2s1+2s2=s1+2s21+3s1+4s2+2s3\frac{A}{1+s^{-1}} + \frac{B + Cs^{-1}}{1 + 2s^{-1} + 2s^{-2}} = \frac{s^{-1} + 2s^{-2}}{1 + 3s^{-1} + 4s^{-2} + 2s^{-3}}

Now let ss\rightarrow \infty. We get

A1+B1=01=0\frac{A}{1} + \frac{B}{1} = \frac{0}{1} = 0 which implies B=1B = -1.

Or you can just clear the fractions and substitute for AA and CC.

As2+2As+2A+Bs2+Cs+Bs+C=s+2(A+B)s2+(2A+B+c)s+2A+C=s+2\begin{aligned} As^2 + 2As + 2A + Bs^2 + Cs + Bs + C &= s+2\\ (A+B)s^2 + (2A + B + c)s + 2A +C = s+2\\ \end{aligned} We only need one equation, so lets use 2A+B+C=12A + B + C = 1. Solving for BB and substituting for A.CA.C gives B=1B = -1 as above.

Thus the final result is

f(s)=1s+1+ss2+2s+2f(s) = \frac{1}{s+1} + \frac{-s}{s^2 + 2s + 2}

Case # 3: One other complication is when we have repeated roots (a root λ\lambda, repeated r>1r > 1 times).

f(s)P(s)(sλ)r(sα1)(sα2)(sαNr)f(s) \frac{P(s)}{(s-\lambda)^r\, (s-\alpha_1)(s-\alpha_2)\cdots(s-\alpha_{N-r})}

To handle this case we expand the ratio as

f(s)=a0(sλ)r+a1(sλ)r1++ar1sλ+K1sα1++K2sα2+++KNrsαNrf(s) = \frac{a_0}{(s-\lambda)^r} + \frac{a_1}{(s-\lambda)^{r-1}} + \cdots + \frac{a_{r-1}}{s-\lambda} + \frac{K_1}{s-\alpha_1} + + \frac{K_2}{s-\alpha_2} + \cdots + + \frac{K_{N-r}}{s-\alpha_{N-r}}

The KiK_i values are determined using the same residue method as before. The aia_i values are found using a variation on the residue method:

ai=1i!didsi[(sλ)rf(s)]|s=λa_i = \left. \frac{1}{i!}\frac{d^i}{ds^i}[(s-\lambda)^r f(s)] \right|_{s = \lambda}

That is rather complicated so lets finish up with an example. Find the partial fraction expansion of

f(s)=s+3(s+1)2(s+2)f(s) = \frac{s+3}{(s+1)^2(s+2)}

Using the pattern above we expand the terms as

f(s)=K1s+2+a0(s+1)2+a1s+1f(s) = \frac{K_1}{s+2} + \frac{a_0}{(s+1)^2} + \frac{a_1}{s+1} then find the residues

K1=s+3(s+1)2|s=2=1K_1 = \left. \frac{s+3}{(s+1)^2} \right|_{s = -2} = 1

a0=10!d0ds0[s+3s+2]|s=1=2a_0 = \left. \frac{1}{0!}\frac{d^0}{ds^0}\left[\frac{s+3}{s+2}\right] \right|_{s = -1} = 2

a1=11!dds[s+3s+2]|s=1=(s+2)(1)(s+3)(1)(s+2)2|s=1=1a_1 = \left. \frac{1}{1!}\frac{d}{ds}\left[\frac{s+3}{s+2}\right] \right|_{s = -1} = \left. \frac{(s+2)(1) - (s+3)(1)}{(s+2)^2} \right|_{s = -1} = -1

Thus the result is

f(s)=1s+2+2(s+1)2+1s+1f(s) = \frac{1}{s+2} + \frac{2}{(s+1)^2} + \frac{-1}{s+1}

As you might expect there are computational tools that do this job for you.

You can use this to check work and help on homework, but you will need to be able to do this by hand on exams.