2.1 Introduction
2.1.1 Motivation
The motivating problem is an RC circuit with input . Find , assuming the output draws no current.
The same current flows through and because the output draws none.
- Without complex numbers: from we get . This gives a first-order ODE, which is solved with an integrating factor, then integration by parts twice, then trig identities. It takes about two pages. The result is:
The phase shift and the amplitude factor both depend on frequency.
Show derivation
Write . The circuit is linear and , are real, so the output for the input is of the output for the input .
By RC circuit: output/input ratio, that complex output is .
Taking the imaginary part gives
The question is whether one object can carry both effects, the amplitude change and the phase shift. A complex number can.
A complex number is , with real and , so .
- is the real part.
- is the imaginary part.
or ? Engineers write so that it does not clash with current . The databook, the examples papers and Tripos questions without circuits usually write . It is the same thing.
Explanation Is the boxed formula the whole solution?
No. It is the steady state. The full ODE solution also has a transient term , which decays after a few time constants. The complex method of §2.6 always gives the steady state directly, which is almost always what is wanted.
- in this course; the databook writes .
- The point of complex numbers here: one number carries both the amplitude and the phase of a sinusoid.
2.1.2 The Argand plane
is the point . The conjugate is its mirror image in the real axis.
- A complex number is plotted as the point . This is the Argand diagram.
- The axes are the real and imaginary parts.
- is the magnitude (modulus) .
- is the phase or argument, .
Show derivation
On the Argand diagram, is the length from the origin to and is the angle from the positive real axis.
- By the definitions of and , and .
- Squaring and adding (Pythagoras): .
- Dividing: .
is only defined up to multiples of . The principal value is the one with
Pick the right quadrant. only returns angles in , so it is only correct when .
- If and , add .
- If and , subtract .
For example, , not . Always sketch the point first.
Explanation What is the ‘polar form’?
Putting and together gives . Euler’s formula (§2.3) turns this into , which is the form used for multiplying, dividing, powers and roots.
Rule of thumb:
- Cartesian for adding.
- Polar for multiplying.
- is the point ; ; , .
- Principal argument: .
- Sketch the point before using : add or subtract if .
2.1.3 Complex conjugate of a complex number
If , then (also written ). In polar form, .
- Geometrically, is the reflection of in the real axis.
- Algebraically, it is obtained by letting everywhere.
Show derivation
- Sum: .
- Product: by Multiplication, . Its conjugate is .
- Quotient: the same argument with Division, where the arguments subtract.
Equivalently: every operation is built from , and , so swapping before or after the operation gives the same result.
- : reflection in the real axis, obtained by .
- Conjugation passes through sums, products and quotients term by term (databook).
2.1.4 Basic operations – addition, subtraction, multiplication and division
The two numbers used throughout are
Addition and subtraction. Add or subtract the real and imaginary parts separately. This is exactly like adding vectors on the Argand diagram.
Where it comes from
This is the definition of addition for complex numbers: is treated as an algebraic symbol and like terms are collected. It makes behave exactly like 2D vector addition (see Vector in components).
Equality holds only if .
Show derivation
Use z times its conjugate and Conjugate of a sum, product and quotient:
Geometrically, no side of a triangle is longer than the other two together.
Show derivation
and .
Multiplication. Expand the brackets, using . The polar form shows what is happening geometrically.
Moduli multiply and arguments add.
Show derivation
Cartesian form: , and .
Polar form:
Show derivation
using Modulus and argument.
Division. Multiply the top and bottom by the conjugate of the denominator, so the denominator becomes real.
Moduli divide and arguments subtract.
Show derivation
Multiply the top and bottom by and use z times its conjugate:
Polar form: and , so
Show derivation
Put (so , ) in Division. The modulus is and the argument is . Writing uses Euler's formula.
Set and : multiplying by rotates by a quarter turn. Push past and watch the principal argument jump by .
After adding or subtracting arguments, bring the result back into if a principal value is asked for. For example, gives .
Explanation Why does multiplying by j rotate by 90°?
has modulus 1 and argument . By Multiplication, multiplying by leaves the length unchanged and adds to the angle.
Check: , which is rotated a quarter turn anticlockwise. This is why in impedances (§2.6) means “leads by ”.
- Add and subtract in Cartesian form. Multiply and divide in polar form: moduli multiply or divide, arguments add or subtract.
- Division: multiply top and bottom by to make the denominator real.
- ; .
- .
2.2 Loci in the complex plane
2.2.1 Introduction
A condition on picks out a curve (a locus) in the complex plane. The method:
- Let .
- Rearrange to get as a function of , or into a familiar form such as a circle or an ellipse.
With moduli, square both sides first: has no square roots.
2.2.2 Some common loci
- : circle of radius centred at the origin.
- : circle of radius centred at .
- : ellipse with foci at and (needs ).
Show derivation
is the distance from to . With , Modulus and argument gives
is the distance from to the point . A curve on which the sum of the distances to two fixed points is constant is, by definition, an ellipse with those points as foci. If it collapses to the segment between the foci; if no points satisfy it.
Explanation Can I read loci without algebra?
Often, yes. Read as “the distance from to the point ”. Then:
- is the perpendicular bisector of and (equal distance from both).
- with is a circle. §2.2.3 is an example.
The algebra is still needed to find the centre and radius.
- is the distance from to . is a circle centred at ; a sum of two distances equal to a constant is an ellipse.
- Method: put , square the moduli, complete the square.
2.2.3 Example
Example Locus of |z + 2| = 2|z − 1|
Square both sides, then let :
Every point on the circle is twice as far from as from .
2.2.4 Example
Example Locus of z = 1/(1 + jωτ), ω ∈ [0, ∞), τ real and positive
Let . Multiply the top and bottom by the conjugate of the denominator:
- it starts at when ;
- it tends to the origin as .
Press ▶. As goes from 0 to ∞, runs from 1 round the lower semicircle towards the origin. At it sits at the bottom: , .
Check the parameter range. gives , so only the lower semicircle. Allowing as well would give the full circle (less the origin). Squaring throws this sign information away.
Explanation Where will I meet this again?
With , this is exactly the RC-circuit ratio of §2.6.5. The semicircle is the path traced by the output’s amplitude and phase as the frequency rises.
- For : real-ise the denominator, find and , eliminate the parameter, complete the square. The result is a semicircle of radius centred at .
- Use the parameter’s range (and the sign of ) to decide which part of the curve is traced.
2.3 Euler’s formula
2.3.1 Derivation of Euler’s formula
For real , lies on the unit circle at angle . Hence any complex number can be written as
Show derivation
Put in the exponential series (databook maths p6, valid for complex arguments):
Each term is the previous one turned by (the factor ) and scaled by . Increase and the partial sum spirals in to . Try : the sum converges to .
Explanation Why is |e^{jx}| = 1?
, so is a unit “phasor” at angle . Multiplying by it rotates without stretching. That is why is just the polar form written compactly, and why Multiplication becomes .
- . Derive it from the series for with , collecting real terms () and imaginary terms ().
- Polar form: , with .
2.3.2 De Moivre’s theorem
Show derivation
By Euler's formula, . By the index law, ; for integer this follows from Multiplication, since multiplying unit-modulus numbers of argument adds the arguments to . For negative , use Reciprocal.
So
Explanation What is De Moivre used for?
Expanding with the binomial theorem and equating real or imaginary parts gives or as polynomials in and . That is the multiple-angle formulae, and the job of the examples-paper question at the end of §2.4.1.
- , i.e. .
2.3.3 Expressing trigonometric functions using complex exponentials
Take the conjugate of Euler’s formula ():
Show derivation
Explanation Why do these look like cosh and sinh?
Compare Hyperbolic sine, cosine, tangent: and . They are the same shapes, with in place of and an extra under . This is exactly why in §2.4.1.
Watch the (not ) under . Dropping it is the commonest slip.
- , : note the .
2.3.4 Using Euler’s formula to obtain trigonometric identities
Work with exponentials, where the algebra is easy, and then equate real and imaginary parts.
Example Compound-angle formulae from exp(jA) exp(jB) = exp[j(A + B)]
From Euler:
- equating real parts gives ;
- equating imaginary parts gives .
“Equating real and imaginary parts” needs the quantities in each part to be real, so must be real here. §2.4.1 shows these formulae still hold for complex arguments, but by a different argument.
- Trig identities: write each side with , use the index laws, then equate real and imaginary parts.
2.3.5 Using Euler’s formula to determine the powers of a complex number
Show derivation
By Euler's formula, , since for integer .
- : raise the modulus to the th power, multiply the argument by .
- .
2.3.6 Using Euler’s formula to obtain the roots of a complex number
The subtlety with roots is that the angle is multivalued. Replace before taking the root.
The lecturer also writes ; it gives the same set of roots. There are distinct roots, equally spaced by on a circle of radius .
Show derivation
for integer (databook maths p3), so .
Let . By Powers of a complex number,
The arguments of and differ by , so they are the same point. The values give different arguments, apart.
The default shows the cube roots of (§2.3.7). The red root is ; the others follow anticlockwise in steps of . Change : the whole polygon turns by only . Change : a new vertex appears and the spacing becomes .
Forgetting the gives only one root, the one. If a question asks for “all” roots, there are always of them.
- th roots: write first, then take and divide the angle by , for .
- The roots lie on a regular -gon on the circle of radius .
2.3.7 Example: Find z = ∛(8j) in Cartesian form
Example Cube roots of 8j
Write in polar form, including the :
- :
- :
- :
2.3.8 Using Euler to simplify summations involving trigonometric functions
Example Sum of cos[(2n + 1)θ]
Evaluate
Each unit step is , turned from the one before, so the chain walks round a circle of radius . is the real part (green) of where it ends. Compare the two numbers in the readout.
Explanation What if sin θ = 0?
Then the ratio and the geometric-sum formula divides by zero. Go back to the sum itself: with , every term is , so . This is also the limit of as (L'Hôpital's rule).
- Sums of or in arithmetic progression: write the sum as or of a geometric series in , sum it, then divide by a half-angle factor so the denominator becomes .
2.3.9 Functional scalar product
Over an interval , the scalar product of functions and is
The case of interest is the complex exponentials and , with , on .
Explanation Why call an integral a ‘scalar product’?
For vectors, (Scalar product in components). A function is like a vector with one “component” for every , so the sum becomes an integral.
The conjugate on makes real and non-negative, like .
2.3.10 Orthogonality of complex exponential functions
For integers on :
Show derivation
By Functional scalar product, with :
Use Euler. is even, so and the cosine terms cancel. is odd, so the sine terms double:
- For integers , , so the result is .
- For , use (Limit of sin x / x) to get . More directly, the integrand is , so the integral is .
The real part (, green) and imaginary part (, orange) of the integrand. For both complete whole cycles on , so their areas cancel. Only leaves the constant 1, with area .
The formula divides by zero when . Do that case separately: the integrand is 1.
- is if and otherwise (integers). Whole cycles integrate to zero.
- Treat separately.
2.3.11 Kronecker delta function
Since for , the functions and are orthogonal.
Show derivation
Orthogonality of complex exponentials gives for and otherwise, which is exactly times the Kronecker delta.
This is the same as for the Cartesian basis: , e.g. and (see Kronecker delta).
Explanation Why does orthogonality matter?
For vectors, orthogonality lets you pick out a component by projecting: (Components are projections onto the basis). In the same way, if , then , so every other term drops out. That is exactly why the Fourier-series coefficient formula in the databook (maths p21) works.
- : the exponentials are mutually orthogonal on .
2.3.12 Using Euler’s formula to evaluate integrals
Replace or by or of . Exponentials integrate easily; take the real or imaginary part at the end.
Example F(s) = ∫₀^∞ sin(ωt) exp(−st) dt, s > 0
With , the integrand tends to zero as .
The upper limit vanishes because , which needs . The factor only rotates; it never decays.
Explanation Why can Im{…} be taken outside the integral?
The integration variable and the constants are real. Integrating a complex function just integrates its real and imaginary parts separately, so .
This would fail if anything inside were complex for another reason, e.g. a complex .
Check: the answer matches the Laplace-transform table, (databook maths p25).
- : write the trig function as or of , combine the exponents, integrate, real-ise the denominator, take the part. Only valid if all the other quantities are real.
2.3.13 A more challenging example of using Euler to evaluate an integral
Example F(n) = ∫₀^π cos^{2n}θ dθ, n a positive integer
Use . Take out a factor from the bracket:
- Integrals of powers of or : expand binomially. Over whole periods, only the constant () term survives.
2.4 Extending functions to complex variables
2.4.1 Trigonometric and hyperbolic functions
The exponential forms define , , and for any complex argument. Comparing the trigonometric and hyperbolic forms gives:
Where it comes from
Definition. For complex , define
Show derivation
Substitute , using and :
Combining these with the compound-angle formulae gives:
Show derivation
Step 1: the compound-angle formulae hold for complex . Expand the right-hand side with the exponential definitions:
Step 2: put , and use Trig and hyperbolic functions of an imaginary argument:
Show derivation
The hyperbolic addition formulae (Hyperbolic identities),
Put , and use and from Trig and hyperbolic functions of an imaginary argument.
For complex arguments, and are not bounded by 1. grows without limit. So and do have solutions, just not real ones (§2.4.2–2.4.3).
- , , , (databook).
- , : use the compound-angle formulae plus the line above; they hold for complex arguments.
- Complex and are unbounded.
2.4.2 Example: determine cosh⁻¹(0)
Example cosh⁻¹(0)
Let , so . By cosh and sinh of a complex argument:
- Real part: . Since , we need , so .
- Imaginary part: . Here , so , giving .
Quick check: .
2.4.3 Example: determine sin⁻¹ 2
Example sin⁻¹ 2
Let , so . By cos and sin of a complex argument:
- If , then and , which is impossible for real .
- So , giving and .
Real part: . Since , we need , so . Then , so by Inverse sinh and cosh
- To solve for = sin, cos, cosh, sinh: let , expand with the complex-argument formulae, equate real and imaginary parts.
- Use and to kill cases. Give the general solution ( or ).
2.4.4 Tripos standard
Example (sin⁻¹ z)² = 2π²j: find z and show all solutions on an Argand diagram
Let , so . By nth roots of a complex number with :
Now . By cos and sin of a complex argument:
The two solutions are mirror images in the origin, on the imaginary axis.
2.4.5 The exponential function exp(z)
So and (up to ).
Show derivation
The index law also holds for complex numbers. This can be shown by multiplying the two series of databook maths p6 and collecting terms with the binomial theorem; the proof is beyond this lecture.
So , and Euler's formula gives .
Explanation Why is the logarithm going to be multivalued?
. The exponential is periodic with period , so infinitely many give the same value. Undoing it (taking ) cannot have a single answer, which is why the appears in §2.4.6.
2.4.6 The natural logarithm function ln(z)
- There is a ambiguity in the imaginary part (the phase).
- The principal value takes , with .
Show derivation
means any with .
By Exponential of a complex number, . Comparing moduli gives , so (the real log of a positive number). Comparing arguments gives .
With principal values, can fail by , because the arguments add past . Recheck the argument range at the end.
2.4.7 Example: determine the principal value of ln(1 + j)
Example Principal value of ln(1 + j)
, and . So
2.4.8 Harder example
Example Principal value of |z^z| for z = re^{jθ}
A complex power is defined through the logarithm: (as in the databook’s ). Using the principal value :
- : modulus , argument .
- ; the principal value uses .
- Complex powers: , then .
2.5 Complex roots of a polynomial
2.5.1 The roots of a polynomial with real coefficients
If has all coefficients real, then each root of is either real or one of a complex-conjugate pair , .
Show derivation
Let be a root:
Explanation How do I use this in practice?
Each conjugate pair multiplies to a real quadratic factor:
A consequence: a real polynomial of odd degree must have at least one real root, since complex roots come in pairs and a degree- polynomial has roots counted with multiplicity.
The theorem needs real coefficients. For example, has roots and , and is not a root.
- Real coefficients ⇒ non-real roots come in conjugate pairs.
- Each pair gives a real quadratic factor ; divide it out.
2.5.2 Example
Example z = 1 + j is a root of z⁴ − z³ − 6z² + 14z − 12 = 0: find the others
The coefficients are real, so by Real polynomials: roots are real or come in conjugate pairs is also a root. The quadratic factor is
The real roots lie on the axis; the complex pair is mirrored in it.
2.6 Complex impedance
2.6.1 Introduction
Instead of a real sinusoid, use a complex sinusoid , where the physical (measurable) voltage is .
- Often this is shortened to , with “take ” understood.
- may itself be complex; its argument is the phase.
See also Complex form of a sinusoid.
Where it comes from
This is a convention, not a law. It works because circuit equations are linear with real coefficients (, , are real). So commutes with adding, with multiplying by real constants, and with . Solving with the complex signal and taking at the end gives the same answer as solving with the real signal.
The big advantage is that differentiating a complex exponential just multiplies it by :
So differential equations become algebraic equations. For example, the second-order ODE of an LCR circuit becomes a quadratic.
Show derivation
By Euler's formula, . Differentiate:
When the signals are complex sinusoids, the complex impedance is
Explanation What does a complex impedance tell me?
Write . Then says:
- the voltage amplitude is times the current amplitude;
- the voltage leads the current by .
One complex number does both jobs, which is the “amplitude and phase together” promised in §2.1.1.
2.6.2 Complex impedance of a resistor
The impedance is real, so voltage and current are in phase.
Show derivation
2.6.3 Complex impedance of a capacitor
Since , the voltage lags the current by .
Show derivation
The capacitor holds charge (Capacitance). Differentiate, using (Electric current):
2.6.4 Complex impedance of an inductor
Since , the voltage leads the current by .
Show derivation
Faraday’s law (Faraday's law of electromagnetic induction) for the voltage across the inductor is , where is the flux linkage. The inductance is defined as (Self inductance). By the Chain rule:
CIVIL:
- in a Capacitor, I comes before V;
- V comes before I in an inductor (L).
That is, current leads voltage by in , and voltage leads current by in .
Show derivation
For a capacitor, (Impedance of a capacitor). For an inductor, (Impedance of an inductor).
and arguments add (Multiplication), so .
“Leads” means further anticlockwise, i.e. it reaches its peak earlier.
- , , . Derive them from , , with .
- CIVIL: in , leads by ; in , leads by .
- The physical signal is of the complex one.
2.6.5 Motivation revisited
Back to the RC circuit of §2.1.1 (The RC circuit (resistor in series, output across the capacitor)). Take and to be complex sinusoids and use impedances. The circuit is then just a potential divider (Potential divider).
Show derivation
No current is drawn at the output, so the same current flows through and . Then and , so the ratio is .
Substitute (Impedance of a resistor) and (Impedance of a capacitor), then multiply the top and bottom by .
Convert to polar form with Modulus and argument. Its real part is , so the principal gives the right quadrant:
- The Cartesian form converted to polar shows the frequency-dependent amplitude and phase separately.
- No differential equation had to be solved, or even derived, and the phase needed no extra algebra.
- The locus of this ratio as varies is the semicircle of §2.2.4 with .
Left: the complex ratio moving round the semicircle. Right: the real signals and . At (log = 0), the output is times the input and lags by .
Explanation What does the result say physically?
- At low frequency (), is huge, the capacitor takes almost all the voltage, and .
- At high frequency, shorts the output, so with a lag approaching .
So the circuit is a low-pass filter. Its corner frequency is , where .
- Impedances combine like resistances: series , potential divider .
- RC: , so the amplitude is and the phase is .
2.6.6 Example: application to resonant LCR circuits
An input drives an inductor , a capacitor and a resistor in series. The output is measured across . Find and such that
The same current flows through all three; the output is the voltage across .
Example Series LCR: amplitude and phase across R
The same current flows through , and , so the circuit is a potential divider. Using Impedance of a resistor, Impedance of a capacitor and Impedance of an inductor:
At , the impedances of and cancel (). The series combination then looks like alone:
- the current is maximum and in phase with ;
- , .
Below the circuit is capacitive (, output leads). Above it is inductive (, output lags).
Show derivation
by Impedance of an inductor and Impedance of a capacitor. This is zero when .
The total impedance is then , so (largest possible , real ratio), and .
For , , so . For , .
is just a convenient single parameter (it is not in the handout): the ratio is . Sweep through : peaks at 1 with , and the phasor goes round the circle from the upper half (leading) to the lower half (lagging). Raise to sharpen the peak.
- Series LCR, output across : ratio ; , .
- Resonance at : , , .
- Below the circuit is capacitive (output leads); above it, inductive (output lags).