Pj4, Pj5 - Complex arithmetic and equating parts

Pj4, Pj5 - Complex arithmetic and equating parts

In this lesson you add, subtract, multiply and divide complex numbers given in the form x+yix + yi, and you use the fact that a complex number is zero only when its real and imaginary parts are both zero to turn one complex equation into two real ones. Along the way you find the square roots of ii.

Adding, subtracting and multiplying

Which complex numbers square to give ii?

You can already find the square roots of any negative number: −9-9 has the two square roots 3i3i and −3i-3i. But ii is not a negative number, or even a real one, so that rule does not help. To test a guess you must be able to multiply complex numbers, which is the job of this section. To find the answer without guessing you need one more idea, which comes in the last section.

You already know

A complex number z=x+yiz = x + yi has real part xx and imaginary part yy, both real numbers, and i2=−1i^2 = -1. You expand brackets by multiplying every term in one bracket by every term in the other.

You add, subtract and multiply complex numbers exactly as you handle brackets in algebra, treating ii like a letter and then replacing i2i^2 by −1-1.

Adding and subtracting combine the real parts and the imaginary parts separately: (2+5i)+(1−3i)=3+2i(2 + 5i) + (1 - 3i) = 3 + 2i and (2+5i)−(1−3i)=1+8i(2 + 5i) - (1 - 3i) = 1 + 8i. Multiplying uses all four products from the two brackets, just as (a+b)(c+d)=ac+ad+bc+bd(a + b)(c + d) = ac + ad + bc + bd. The one new step is that the term in i2i^2 becomes real: bi×di=bdi2=−bdbi \times di = bdi^2 = -bd.

A grid keeps track of the four products. Here it is for (2+3i)(4−i)(2 + 3i)(4 - i):

[DIAGRAM: asset_name: Multiplying two complex numbers with a grid; asset_slug: complex_product_grid; caption: A grid shows the four products when two complex numbers are multiplied, and the i squared term turning real; description: A two by two grid multiplies 2 plus 3i, down the side, by 4 minus i, along the top. The cells hold 8, minus 2i, 12i and minus 3i squared, which equals plus 3. The cells 8 and plus 3 are shaded blue as real terms, the cells minus 2i and 12i are shaded lavender as imaginary terms, and the plus 3 cell has an ochre border with the note that i squared equals minus 1 turns this term real. A side panel adds the real terms, 8 plus 3 equals 11, and the imaginary terms, minus 2i plus 12i equals 10i, giving the product 11 plus 10i.]
A grid shows the four products when two complex numbers are multiplied, and the i squared term turning real

The same expansion tests a first guess at a square root of ii: (1+i)2=1+i+i+i2=2i(1 + i)^2 = 1 + i + i + i^2 = 2i. That is twice ii, so 1+i1 + i is close but not right.

Sum, difference and product

For real aa, bb, cc and dd:

(a+bi)±(c+di)=(a±c)+(b±d)i(a+bi)(c+di)=(ac−bd)+(ad+bc)i\begin{aligned} (a + bi) \pm (c + di) &= (a \pm c) + (b \pm d)i \\ (a + bi)(c + di) &= (ac - bd) + (ad + bc)i \end{aligned}

In practice you expand the brackets and use i2=−1i^2 = -1; the product formula is what that method always gives.

Not in the formula booklet: learn it.

Worked example 1: sum, difference and product

Question. Given z=3+2iz = 3 + 2i and w=4−5iw = 4 - 5i, find z+wz + w, z−wz - w and zwzw in the form x+yix + yi.

Plan. Combine like parts for the sum and the difference. For the product, expand all four products, then use i2=−1i^2 = -1.

z+w=(3+4)+(2−5)i=7−3iadd like partsz−w=(3−4)+(2−(−5))i=−1+7isubtract all of wzw=(3+2i)(4−5i)=12−15i+8i−10i2four products=12−7i+10since i2=−1=22−7i\begin{aligned} z + w &= (3 + 4) + (2 - 5)i = 7 - 3i && \text{add like parts} \\ z - w &= (3 - 4) + (2 - (-5))i = -1 + 7i && \text{subtract all of } w \\ zw &= (3 + 2i)(4 - 5i) \\ &= 12 - 15i + 8i - 10i^2 && \text{four products} \\ &= 12 - 7i + 10 && \text{since } i^2 = -1 \\ &= 22 - 7i \end{aligned}

Why this step? The term −10i2-10i^2 is real. It equals −10×(−1)=10-10 \times (-1) = 10, so it joins the real part.

Answer. z+w=7−3iz + w = 7 - 3i, z−w=−1+7iz - w = -1 + 7i and zw=22−7izw = 22 - 7i.

Check. The product formula gives real part ac−bd=12−(2)(−5)=22ac - bd = 12 - (2)(-5) = 22 and imaginary part ad+bc=3(−5)+2(4)=−7ad + bc = 3(-5) + 2(4) = -7 ✓\checkmark

Worked example 2 changes one feature: the number is raised to a power. A power is repeated multiplication of the whole number, so you multiply in stages.

Worked example 2: a cube, in stages

Question. Show that (2+i)3=2+11i(2 + i)^3 = 2 + 11i.

Plan. Square 2+i2 + i first, then multiply the result by 2+i2 + i once more.

(2+i)2=4+4i+i2expand the square=3+4isince i2=−1(2+i)3=(3+4i)(2+i)one more factor=6+3i+8i+4i2=2+11isince 4i2=−4\begin{aligned} (2 + i)^2 &= 4 + 4i + i^2 && \text{expand the square} \\ &= 3 + 4i && \text{since } i^2 = -1 \\ (2 + i)^3 &= (3 + 4i)(2 + i) && \text{one more factor} \\ &= 6 + 3i + 8i + 4i^2 \\ &= 2 + 11i && \text{since } 4i^2 = -4 \end{aligned}

Why this step? Cubing the two parts separately would give 8+i38 + i^3, which leaves out every cross term. Each stage must multiply the whole of one number by the whole of the other.

Answer. (2+i)3=2+11i(2 + i)^3 = 2 + 11i, as required.

Check. The binomial expansion gives 23+3(22)(i)+3(2)(i2)+i3=8+12i−6−i=2+11i2^3 + 3(2^2)(i) + 3(2)(i^2) + i^3 = 8 + 12i - 6 - i = 2 + 11i ✓\checkmark

This exact calculation has a famous history. Cardano's formula for the cubic equation x3=15x+4x^3 = 15x + 4 produces 2+11i3+2−11i3\sqrt[3]{2 + 11i} + \sqrt[3]{2 - 11i}, even though the equation has the obvious root x=4x = 4. In his book L'Algebra (1572), Rafael Bombelli saw that (2+i)3=2+11i(2 + i)^3 = 2 + 11i and (2−i)3=2−11i(2 - i)^3 = 2 - 11i, so the expression is just (2+i)+(2−i)=4(2 + i) + (2 - i) = 4. A route through imaginary numbers had led to a real answer.

Watch out

The commonest slip is the sign of the i2i^2 term.

Wrong: (3+2i)(4−5i)=12−7i−10=2−7i(3 + 2i)(4 - 5i) = 12 - 7i - 10 = 2 - 7i

Right: −10i2=−10×(−1)=+10-10i^2 = -10 \times (-1) = +10, so the product is 22−7i22 - 7i

Write the i2i^2 term on its own line before you simplify it.

Subtraction causes the other frequent error: the minus sign applies to both parts of the second number, so keep that number in brackets until you have removed them.

Exam tip

A one-mark “Find u−vu - v in the form a+bia + bi” part is marked B1 cao. There is no method mark, so one sign slip scores zero. Write the second number in brackets, for example (5−2i)−(3−4i)=2+2i(5 - 2i) - (3 - 4i) = 2 + 2i, and simplify both parts fully.

Dividing complex numbers

To divide by a complex number, multiply the numerator and the denominator by the conjugate of the denominator, so that the denominator becomes a real number.

You already know

To rationalise a surd denominator, you multiply the top and bottom by the conjugate surd:

12+3=2−3(2+3)(2−3)=2−31=2−3\frac{1}{2 + \sqrt{3}} = \frac{2 - \sqrt{3}}{(2 + \sqrt{3})(2 - \sqrt{3})} = \frac{2 - \sqrt{3}}{1} = 2 - \sqrt{3}

For a complex number w=c+diw = c + di, the product ww∗=c2+d2ww^* = c^2 + d^2 is real in the same way.

Multiplying the top and the bottom of a fraction by w∗w^*, the conjugate of the denominator, does not change the value of the fraction, because you are multiplying by w∗w∗=1\frac{w^*}{w^*} = 1. It does turn the denominator into the real number ww∗ww^*, and dividing by a real number is easy: divide each part.

A quick case first. To work out 101+3i\frac{10}{1 + 3i}, multiply the top and bottom by 1−3i1 - 3i. The denominator becomes (1+3i)(1−3i)=1+9=10(1 + 3i)(1 - 3i) = 1 + 9 = 10, so 101+3i=10(1−3i)10=1−3i\frac{10}{1 + 3i} = \frac{10(1 - 3i)}{10} = 1 - 3i.

Dividing by a complex number

For complex numbers zz and ww with w≠0w \ne 0:

zw=z w∗w w∗\frac{z}{w} = \frac{z\,w^*}{w\,w^*}

where ww∗ww^* is a real number.

Not in the formula booklet: learn it.

Worked example 3: dividing two complex numbers

Question. Express 3+4i1+2i\dfrac{3 + 4i}{1 + 2i} in the form x+yix + yi.

Plan. Multiply the top and bottom by 1−2i1 - 2i, the conjugate of the denominator, then split the result into its real and imaginary parts.

3+4i1+2i=(3+4i)(1−2i)(1+2i)(1−2i)conjugate of 1+2i=3−6i+4i−8i21+4ww∗=12+22=11−2i5since −8i2=8=115−25i\begin{aligned} \frac{3 + 4i}{1 + 2i} &= \frac{(3 + 4i)(1 - 2i)}{(1 + 2i)(1 - 2i)} && \text{conjugate of } 1 + 2i \\ &= \frac{3 - 6i + 4i - 8i^2}{1 + 4} && ww^* = 1^2 + 2^2 \\ &= \frac{11 - 2i}{5} && \text{since } -8i^2 = 8 \\ &= \frac{11}{5} - \frac{2}{5}i \end{aligned}

Why this step? Multiplying by 1−2i1 - 2i on the top and the bottom multiplies the fraction by 1, so its value is unchanged, and the denominator becomes the real number 5.

Answer. 115−25i\dfrac{11}{5} - \dfrac{2}{5}i

Check. Multiply back: (115−25i)(1+2i)=115+225i−25i−45i2=3+4i\left(\frac{11}{5} - \frac{2}{5}i\right)(1 + 2i) = \frac{11}{5} + \frac{22}{5}i - \frac{2}{5}i - \frac{4}{5}i^2 = 3 + 4i ✓\checkmark

Worked example 4 changes one feature: surds appear in the imaginary parts, and the question carries the instruction to show detailed reasoning. Take care when squaring a surd times ii: (i2)2=i2×2=−2(i\sqrt{2})^2 = i^2 \times 2 = -2.

Worked example 4: division with surds, showing detailed reasoning

Question. In this question you must show detailed reasoning. Express 1+2i21−i2\dfrac{1 + 2i\sqrt{2}}{1 - i\sqrt{2}} in the form x+yix + yi.

Plan. Multiply the top and bottom by 1+i21 + i\sqrt{2}, the conjugate of the denominator, and write out the expansion in full.

1+2i21−i2=(1+2i2)(1+i2)(1−i2)(1+i2)conjugate of denominator=1+i2+2i2+4i21+2(i2)2=−2=−3+3i23since 4i2=−4=−1+i2\begin{aligned} \frac{1 + 2i\sqrt{2}}{1 - i\sqrt{2}} &= \frac{(1 + 2i\sqrt{2})(1 + i\sqrt{2})}{(1 - i\sqrt{2})(1 + i\sqrt{2})} && \text{conjugate of denominator} \\ &= \frac{1 + i\sqrt{2} + 2i\sqrt{2} + 4i^2}{1 + 2} && (i\sqrt{2})^2 = -2 \\ &= \frac{-3 + 3i\sqrt{2}}{3} && \text{since } 4i^2 = -4 \\ &= -1 + i\sqrt{2} \end{aligned}

Why this step? The denominator is 12−(i2)2=1−(−2)=31^2 - (i\sqrt{2})^2 = 1 - (-2) = 3. In the numerator, 2i2×i2=2×2×i2=−42i\sqrt{2} \times i\sqrt{2} = 2 \times 2 \times i^2 = -4.

Answer. −1+i2-1 + i\sqrt{2}

Check. (−1+i2)(1−i2)=−1+i2+i2−2i2=1+2i2(-1 + i\sqrt{2})(1 - i\sqrt{2}) = -1 + i\sqrt{2} + i\sqrt{2} - 2i^2 = 1 + 2i\sqrt{2} ✓\checkmark

Watch out

You cannot divide the real parts and the imaginary parts separately.

Wrong: 6+4i2+2i=3+2i\dfrac{6 + 4i}{2 + 2i} = 3 + 2i

Right: (6+4i)(2−2i)(2+2i)(2−2i)=20−4i8=52−12i\dfrac{(6 + 4i)(2 - 2i)}{(2 + 2i)(2 - 2i)} = \dfrac{20 - 4i}{8} = \dfrac{5}{2} - \dfrac{1}{2}i

Dividing part by part works only when the denominator is real.

The instruction “In this question you must show detailed reasoning” changes what earns marks, so it deserves its own habit.

Exam tip

Under detailed reasoning, write the multiplication by the conjugate as a line of working, then the expanded numerator over the real denominator, then the answer. Examiners withhold marks when that line is missing, and an answer read from a calculator's complex mode scores nothing.

Equating real and imaginary parts

A complex number is zero only when its real part and its imaginary part are both zero, so one equation between complex numbers gives two equations between real numbers.

Start with a concrete case. Suppose xx and yy are real and (x−3)+(y+2)i=0(x - 3) + (y + 2)i = 0. A real part cannot cancel an imaginary part, so both brackets must be zero: x=3x = 3 and y=−2y = -2.

Why can a real part never cancel an imaginary part? Suppose a+bi=0a + bi = 0, where aa and bb are real and b≠0b \ne 0. Then i=−abi = -\frac{a}{b}, which is a real number. The square of a real number is never negative, but i2=−1i^2 = -1. That is impossible, so b=0b = 0, and then a=a+0i=0a = a + 0i = 0 as well. On an Argand diagram the same fact is easy to see: the number a+bia + bi is the point (a,b)(a, b), and only the origin is zero.

[DIAGRAM: asset_name: Only the origin is zero; asset_slug: zero_only_at_origin; caption: A complex number is zero only at the origin, where both parts are 0; description: An Argand diagram with axes labelled Re and Im. The origin is marked in green and labelled 0 plus 0i equals 0. Blue points mark 3 plus 0i on the real axis, 0 plus 2i on the imaginary axis and 3 plus 2i. A side panel says that x plus yi is the point (x, y), that 3 plus 0i has imaginary part 0 but a real part that is not 0, that 0 plus 2i has real part 0 but an imaginary part that is not 0, and that only the origin is zero: x plus yi equals 0 exactly when x equals 0 and y equals 0.]
A complex number is zero only at the origin, where both parts are 0

Zero and equal complex numbers

For real aa, bb, cc and dd:

a+bi=0  ⟺  a=0 and b=0a+bi=c+di  ⟺  a=c and b=d\begin{aligned} a + bi = 0 &\iff a = 0 \text{ and } b = 0 \\ a + bi = c + di &\iff a = c \text{ and } b = d \end{aligned}

The second line follows from the first, applied to (a−c)+(b−d)i=0(a - c) + (b - d)i = 0. Every letter must be real.

Not in the formula booklet: learn it.

Using this is called equating real and imaginary parts. Write each side in the form a+bia + bi, with aa and bb real, then write one equation for the real parts and one for the imaginary parts.

Worked example 5: real coefficients from a complex root

Question. Given that 2+i2 + i is a root of the equation z2+pz+q=0z^2 + pz + q = 0, where pp and qq are real, find pp and qq.

Plan. Substitute z=2+iz = 2 + i, collect the real and imaginary parts, then set each one equal to 0.

(2+i)2=4+4i+i2=3+4isquare firstz2+pz+q=(3+4i)+(2p+pi)+qsubstitute=(3+2p+q)+(4+p)icollect the parts\begin{aligned} (2 + i)^2 &= 4 + 4i + i^2 = 3 + 4i && \text{square first} \\ z^2 + pz + q &= (3 + 4i) + (2p + pi) + q && \text{substitute} \\ &= (3 + 2p + q) + (4 + p)i && \text{collect the parts} \end{aligned}

Why this step? Because pp and qq are real, 3+2p+q3 + 2p + q is the whole real part and 4+p4 + p is the whole imaginary part. If pp could be complex, pipi would not be purely imaginary and this split would fail.

The expression equals 0, so both parts are 0:

4+p=0imaginary partsp=−43+2p+q=0real partsq=53−8+q=0\begin{aligned} 4 + p &= 0 && \text{imaginary parts} \\ p &= -4 \\ 3 + 2p + q &= 0 && \text{real parts} \\ q &= 5 && 3 - 8 + q = 0 \end{aligned}

Answer. p=−4p = -4 and q=5q = 5

Check. z2−4z+5=0z^2 - 4z + 5 = 0 gives z=4±16−202=4±2i2=2±iz = \frac{4 \pm \sqrt{16 - 20}}{2} = \frac{4 \pm 2i}{2} = 2 \pm i, so 2+i2 + i is a root ✓\checkmark

Worked example 6 changes one feature: the unknown is the complex number zz itself, and its conjugate z∗z^* appears too. Write z=x+yiz = x + yi first, so that the unknowns xx and yy are real and you can equate parts.

Worked example 6: an equation with a conjugate

Question. The complex number zz satisfies the equation 2z+iz∗=2+7i2z + iz^* = 2 + 7i. Determine zz, giving your answer in the form x+yix + yi.

Plan. Write z=x+yiz = x + yi and z∗=x−yiz^* = x - yi, expand, equate real and imaginary parts, then solve the two equations simultaneously.

2z+iz∗=2(x+yi)+i(x−yi)z∗=x−yi=2x+2yi+xi−yi2expand=(2x+y)+(x+2y)i−yi2=y\begin{aligned} 2z + iz^* &= 2(x + yi) + i(x - yi) && z^* = x - yi \\ &= 2x + 2yi + xi - yi^2 && \text{expand} \\ &= (2x + y) + (x + 2y)i && -yi^2 = y \end{aligned}

Why this step? The term −yi2-yi^2 equals +y+y, which is real, so it joins the real part even though it came from the imaginary part of zz.

Now equate parts with 2+7i2 + 7i:

2x+y=2real partsx+2y=7imaginary parts3x=−32×first−secondx=−1,y=4y=2−2x\begin{aligned} 2x + y &= 2 && \text{real parts} \\ x + 2y &= 7 && \text{imaginary parts} \\ 3x &= -3 && 2 \times \text{first} - \text{second} \\ x &= -1, \quad y = 4 && y = 2 - 2x \end{aligned}

Answer. z=−1+4iz = -1 + 4i

Check. z∗=−1−4iz^* = -1 - 4i, so iz∗=−i−4i2=4−iiz^* = -i - 4i^2 = 4 - i and 2z+iz∗=(−2+8i)+(4−i)=2+7i2z + iz^* = (-2 + 8i) + (4 - i) = 2 + 7i ✓\checkmark

Watch out

Sort the terms by whether they contain ii, not by whether they contain xx or yy.

Wrong: from 2x+2yi+xi+y2x + 2yi + xi + y, real parts 2x+x=22x + x = 2 and imaginary parts 2y+y=72y + y = 7

Right: real parts 2x+y=22x + y = 2 and imaginary parts 2y+x=72y + x = 7

The yy that came from −yi2-yi^2 is real, and the xx in xixi belongs to the imaginary part.

Questions like Worked example 6 usually say “Determine”, which means every step has to be visible.

Exam tip

Write z∗=x−yiz^* = x - yi on its own line, then the two equations labelled “real parts” and “imaginary parts”, before you solve them. The mark scheme for this type gives separate marks for z∗z^*, for using i2=−1i^2 = -1 and for equating parts, and the final mark needs an equating step seen, so a correct answer with no working scores 0.

Back to the square root of i

Now the opening question has an answer. Suppose z=x+yiz = x + yi, with xx and yy real, and z2=iz^2 = i.

(x+yi)2=x2+2xyi+y2i2expand=(x2−y2)+2xyisince i2=−1\begin{aligned} (x + yi)^2 &= x^2 + 2xyi + y^2i^2 && \text{expand} \\ &= (x^2 - y^2) + 2xyi && \text{since } i^2 = -1 \end{aligned}

The number ii is 0+1i0 + 1i, so equating parts gives

x2−y2=0real parts2xy=1imaginary parts\begin{aligned} x^2 - y^2 &= 0 && \text{real parts} \\ 2xy &= 1 && \text{imaginary parts} \end{aligned}

The first equation gives y=xy = x or y=−xy = -x. If y=−xy = -x, the second becomes −2x2=1-2x^2 = 1, which has no solution because xx is real. So y=xy = x, and 2x2=12x^2 = 1 gives x=±12=±22x = \pm\frac{1}{\sqrt{2}} = \pm\frac{\sqrt{2}}{2}.

The square roots of ii are 22+22i\frac{\sqrt{2}}{2} + \frac{\sqrt{2}}{2}i and −22−22i-\frac{\sqrt{2}}{2} - \frac{\sqrt{2}}{2}i. Check the first: (22+22i)2=12+i+12i2=i\left(\frac{\sqrt{2}}{2} + \frac{\sqrt{2}}{2}i\right)^2 = \frac{1}{2} + i + \frac{1}{2}i^2 = i. The first guess, 1+i1 + i, squared to 2i2i; dividing it by 2\sqrt{2} halves its square, which is exactly what this answer does.

Quick Recap

  • Add and subtract by combining the real parts and the imaginary parts separately; multiply by expanding all four products and replacing i2i^2 by −1-1.
  • Raise to a power in stages, multiplying the whole number each time.
  • To divide, multiply the top and the bottom by the conjugate of the denominator, which makes the denominator the real number ww∗ww^*.
  • For real aa and bb, a+bi=0a + bi = 0 only when a=0a = 0 and b=0b = 0, so equal complex numbers have equal real parts and equal imaginary parts.
  • For an equation in zz and z∗z^*, write z=x+yiz = x + yi and z∗=x−yiz^* = x - yi, then equate real and imaginary parts.

The square roots of ii are 22+22i\frac{\sqrt{2}}{2} + \frac{\sqrt{2}}{2}i and −22−22i-\frac{\sqrt{2}}{2} - \frac{\sqrt{2}}{2}i.