4.02e - Arithmetic in cartesian form

4.02e - Arithmetic in cartesian form

Learn to add, subtract, multiply and divide complex numbers written in cartesian form x+iyx + iy, using i2=−1i^2 = -1 and the complex conjugate, and to solve equations in zz and z∗z^* by equating real and imaginary parts, giving exact answers in the form the exam asks for. Along the way you will see how a sixteenth-century formula used the square root of a negative number to reach the answer 4.

Adding, subtracting and multiplying

You add, subtract and multiply complex numbers just as you handle expressions in xx, and that simple idea settles a puzzle from the sixteenth century.

In 1572 the Italian engineer Rafael Bombelli published a calculation that seemed to need the square root of a negative number, even though the answer it was meant to give was the ordinary number 4.

He was solving x3=15x+4x^3 = 15x + 4. You can check that x=4x = 4 works: 43=644^3 = 64 and 15×4+4=6415 \times 4 + 4 = 64. The graph of y=x3−15x−4y = x^3 - 15x - 4 crosses the xx-axis three times, so all three roots are real. Yet the formula for cubic equations that Gerolamo Cardano had published in 1545 gives

x=2+−1213+2−−1213x = \sqrt[3]{2 + \sqrt{-121}} + \sqrt[3]{2 - \sqrt{-121}}

[DIAGRAM: asset_name: Bombelli's cubic has three real roots; asset_slug: h245_4_02_bombelli_cubic; caption: The cubic from Bombelli's puzzle crosses the x-axis three times, once at x = 4, yet Cardano's formula for it contains the square root of -121; description: Graph of y = x cubed minus 15x minus 4 for x from about -4.6 to 4.9, crossing the x-axis at x = -2 - root 3 (about -3.73), x = -2 + root 3 (about -0.27) and x = 4, with the three roots marked as dots and a box showing Cardano's formula with the cube roots of 2 + root(-121) and 2 - root(-121)]
The cubic from Bombelli's puzzle crosses the x-axis three times, once at x = 4, yet Cardano's formula for it contains the square root of -121

So here is the question this lesson answers: how can a calculation that passes through −121\sqrt{-121} end at the honest answer 4? Bombelli's idea was to stop calling −1\sqrt{-1} impossible and simply calculate with it. By the end of this lesson you will be able to do his calculation yourself.

Calculating in cartesian form

You already know

i2=−1i^2 = -1, and a complex number in cartesian form is z=x+iyz = x + iy, where x=Re(z)x = \mathrm{Re}(z) and y=Im(z)y = \mathrm{Im}(z) are real. Expanding brackets: (a+b)(c+d)=ac+ad+bc+bd(a + b)(c + d) = ac + ad + bc + bd and (a+b)2=a2+2ab+b2(a + b)^2 = a^2 + 2ab + b^2.

Collect the real parts and the imaginary parts separately, and replace i2i^2 by −1-1 whenever it appears. To add or subtract, combine the real parts and combine the imaginary parts:

(3+2i)+(5−6i)=8−4i(3+2i)−(5−6i)=−2+8i(3 + 2i) + (5 - 6i) = 8 - 4i \qquad (3 + 2i) - (5 - 6i) = -2 + 8i

To multiply, expand every pair of terms. The product of the two imaginary terms contains i2i^2, which is the real number −1-1, so that product joins the real part. This single step is the whole difference between complex algebra and the algebra you know.

Arithmetic in cartesian form

For real numbers aa, bb, cc, dd and kk:

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

The product line is what expanding the brackets and using i2=−1i^2 = -1 always gives, so you can rebuild it at any time.
Not in the formula booklet: learn it.

Worked example 1: multiplying two complex numbers

Question. Find (3+2i)(4−5i)(3 + 2i)(4 - 5i).

Plan. Expand all four products, then replace i2i^2 by −1-1 and collect the real and imaginary parts.

(3+2i)(4−5i)=12−15i+8i−10i2expand the brackets=12−7i−10(−1)i2=−1=22−7icollect real parts\begin{aligned} (3 + 2i)(4 - 5i) &= 12 - 15i + 8i - 10i^2 && \text{expand the brackets} \\ &= 12 - 7i - 10(-1) && i^2 = -1 \\ &= 22 - 7i && \text{collect real parts} \end{aligned}

Why this step? Replacing i2i^2 by −1-1 turns −10i2-10i^2 into the real number +10+10, so it belongs with the 12.

Answer. 22−7i22 - 7i

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

Worked example 2 changes one thing: instead of multiplying two different numbers, you square one number and then use it inside a longer expression. That matters because the middle term of the square and the minus sign in front of 4z4z are where most marks are lost.

Worked example 2: an exam-style "show that"

Question. Given that z=2−3iz = 2 - 3i, show that z2−4z+13=0z^2 - 4z + 13 = 0.

Plan. Work out z2z^2 on its own line, then substitute it into the whole expression and collect the parts.

z2=(2−3i)2=4−12i+9i2(a−b)2=a2−2ab+b2=−5−12ii2=−1\begin{aligned} z^2 = (2 - 3i)^2 &= 4 - 12i + 9i^2 && (a - b)^2 = a^2 - 2ab + b^2 \\ &= -5 - 12i && i^2 = -1 \end{aligned} z2−4z+13=(−5−12i)−4(2−3i)+13substitute=−5−12i−8+12i+13multiply out −4(2−3i)=0both parts cancel\begin{aligned} z^2 - 4z + 13 &= (-5 - 12i) - 4(2 - 3i) + 13 && \text{substitute} \\ &= -5 - 12i - 8 + 12i + 13 && \text{multiply out } -4(2 - 3i) \\ &= 0 && \text{both parts cancel} \end{aligned}

Why this step? Finding z2z^2 first keeps the signs under control, and multiplying out −4(2−3i)-4(2 - 3i) in full stops the +12i+12i from being lost.

Answer. z2−4z+13=0z^2 - 4z + 13 = 0, which is the result required.

Check. Expanding the other way, (2−3i)(2−3i)=4−6i−6i+9i2=−5−12i(2 - 3i)(2 - 3i) = 4 - 6i - 6i + 9i^2 = -5 - 12i ✓\checkmark

You have just shown that 2−3i2 - 3i is a root of the quadratic equation z2−4z+13=0z^2 - 4z + 13 = 0. Finding roots like this directly, and seeing why 2+3i2 + 3i must be a root as well, comes in the lesson on solving equations with complex roots.

Watch out

Wrong: (2−3i)2=22+(3i)2=4−9=−5(2 - 3i)^2 = 2^2 + (3i)^2 = 4 - 9 = -5, squaring each part separately. A square of two terms has a middle term 2ab2ab. Right: (2−3i)2=4−12i+9i2=−5−12i(2 - 3i)^2 = 4 - 12i + 9i^2 = -5 - 12i.

Multiplication also gives you a way to check any complex answer: multiply back or substitute, exactly as you would check a real solution. Do it every time; it takes seconds.

Exam tip

In a "show that", or when the question says "In this question you must show detailed reasoning", a correct final answer does not earn the method marks on its own. Write the line where i2i^2 becomes −1-1, and end by stating the given result.

Complex conjugates

Every complex number has a partner called its conjugate, and multiplying the two together always gives a real number, which is exactly what you need in order to divide.

You already know

The conjugate of z=x+iyz = x + iy is z∗=x−iyz^* = x - iy: only the sign of the imaginary part changes, so (4+7i)∗=4−7i(4 + 7i)^* = 4 - 7i and (−2−5i)∗=−2+5i(-2 - 5i)^* = -2 + 5i. The modulus of zz is ∣z∣=x2+y2|z| = \sqrt{x^2 + y^2}.

A real number is its own conjugate, for example 6∗=66^* = 6, and taking the conjugate twice gives back the number you started with: (z∗)∗=z(z^*)^* = z.

Try a concrete case first. Multiply 4+7i4 + 7i by its conjugate:

(4+7i)(4−7i)=16−28i+28i−49i2the i terms cancel=16+49=65i2=−1\begin{aligned} (4 + 7i)(4 - 7i) &= 16 - 28i + 28i - 49i^2 && \text{the } i \text{ terms cancel} \\ &= 16 + 49 = 65 && i^2 = -1 \end{aligned}

The answer is real, and it equals 42+724^2 + 7^2. Squaring does not do this: (4+7i)2=16+56i−49=−33+56i(4 + 7i)^2 = 16 + 56i - 49 = -33 + 56i, which still has an imaginary part. In general z2=(x+iy)2=x2−y2+2ixyz^2 = (x + iy)^2 = x^2 - y^2 + 2ixy, which is real only when x=0x = 0 or y=0y = 0.

The cancellation with the conjugate happens for every complex number. With z=x+iyz = x + iy,

zz∗=(x+iy)(x−iy)=x2−ixy+ixy−i2y2cross terms cancel=x2+y2i2=−1\begin{aligned} zz^* &= (x + iy)(x - iy) && \\ &= x^2 - ixy + ixy - i^2y^2 && \text{cross terms cancel} \\ &= x^2 + y^2 && i^2 = -1 \end{aligned}

Results with the conjugate

For z=x+iyz = x + iy with xx and yy real:

zz∗=x2+y2=∣z∣2z+z∗=2x=2 Re(z)z−z∗=2iy=2i Im(z)\begin{aligned} zz^* &= x^2 + y^2 = |z|^2 \\ z + z^* &= 2x = 2\,\mathrm{Re}(z) \\ z - z^* &= 2iy = 2i\,\mathrm{Im}(z) \end{aligned}

Not in the formula booklet: learn it.

So zz∗zz^* is real and never negative, and it is 0 only when z=0z = 0. It is also the square of the modulus: for 4+7i4 + 7i, zz∗=65zz^* = 65 and ∣z∣=65|z| = \sqrt{65}. The sum z+z∗z + z^* is real and the difference z−z∗z - z^* is purely imaginary (or 0). A one-mark question asking you to show that z+z∗=2 Re(z)z + z^* = 2\,\mathrm{Re}(z) is a genuine exam type, and the full answer is one line: let z=a+biz = a + bi with aa and bb real, so z∗=a−biz^* = a - bi and z+z∗=2a=2 Re(z)z + z^* = 2a = 2\,\mathrm{Re}(z).

These facts come back at the end of this lesson, in Bombelli's puzzle, and again when you solve quadratic equations with complex roots: a number and its conjugate always have a real sum and a real product.

Key idea

zz∗=x2+y2zz^* = x^2 + y^2 is always a real number, so the conjugate is the tool that turns a complex number into a real one.

Dividing complex numbers

To divide by a complex number, multiply the top and bottom of the fraction by the conjugate of the bottom: the denominator becomes a real number, and the answer splits into a real part and an imaginary part.

You already know

Rationalising a denominator: 13+2=3−2(3+2)(3−2)=3−27\dfrac{1}{3 + \sqrt{2}} = \dfrac{3 - \sqrt{2}}{(3 + \sqrt{2})(3 - \sqrt{2})} = \dfrac{3 - \sqrt{2}}{7}. Division by a complex number uses the same idea, with ii in place of 2\sqrt{2}.

A fraction such as 7+4i2−i\dfrac{7 + 4i}{2 - i} is not yet in the form a+bia + bi, because its denominator is complex. Multiplying the top and bottom of a fraction by the same non-zero number does not change its value, and choosing (2−i)∗=2+i(2 - i)^* = 2 + i makes the new denominator (2−i)(2+i)=22+12=5(2 - i)(2 + i) = 2^2 + 1^2 = 5, which is real. This is the result zz∗=x2+y2zz^* = x^2 + y^2 from the previous part doing its job.

Dividing by a complex number

For real aa, bb, cc, dd with c+di≠0c + di \ne 0:

a+bic+di=(a+bi)(c−di)(c+di)(c−di)=(a+bi)(c−di)c2+d2\frac{a + bi}{c + di} = \frac{(a + bi)(c - di)}{(c + di)(c - di)} = \frac{(a + bi)(c - di)}{c^2 + d^2}

Not in the formula booklet: learn it.

Worked example 3: dividing by a complex number

Question. Express 7+4i2−i\dfrac{7 + 4i}{2 - i} in the form a+bia + bi.

Plan. Multiply the numerator and denominator by 2+i2 + i, the conjugate of the denominator, then split into real and imaginary parts.

7+4i2−i=(7+4i)(2+i)(2−i)(2+i)multiply by 2+i2+i=14+7i+8i+4i24+1denominator 22+12=10+15i5i2=−1=2+3idivide both parts by 5\begin{aligned} \frac{7 + 4i}{2 - i} &= \frac{(7 + 4i)(2 + i)}{(2 - i)(2 + i)} && \text{multiply by } \frac{2 + i}{2 + i} \\ &= \frac{14 + 7i + 8i + 4i^2}{4 + 1} && \text{denominator } 2^2 + 1^2 \\ &= \frac{10 + 15i}{5} && i^2 = -1 \\ &= 2 + 3i && \text{divide both parts by } 5 \end{aligned}

Why this step? Multiplying by 2+i2+i\frac{2 + i}{2 + i} is multiplying by 1, so the value is unchanged, but the denominator becomes real.

Answer. 2+3i2 + 3i

Check. Multiply back: (2+3i)(2−i)=4−2i+6i−3i2=7+4i(2 + 3i)(2 - i) = 4 - 2i + 6i - 3i^2 = 7 + 4i ✓\checkmark

Worked example 4 changes one thing: the division is hidden inside an equation, so you have to get the zz term on its own before you divide. That matters because the order is the same as for a real linear equation: undo the addition first, then divide by the coefficient.

Worked example 4: solving a linear equation in z

Question. Solve the equation (2+i)z+4=3+7i(2 + i)z + 4 = 3 + 7i, giving zz in the form a+bia + bi.

Plan. Subtract 4, divide by 2+i2 + i, then multiply the top and bottom by the conjugate 2−i2 - i.

(2+i)z=−1+7isubtract 4z=−1+7i2+idivide by 2+i=(−1+7i)(2−i)(2+i)(2−i)multiply by the conjugate=−2+i+14i−7i25expand; 22+12=5=5+15i5i2=−1=1+3i\begin{aligned} (2 + i)z &= -1 + 7i && \text{subtract } 4 \\ z &= \frac{-1 + 7i}{2 + i} && \text{divide by } 2 + i \\ &= \frac{(-1 + 7i)(2 - i)}{(2 + i)(2 - i)} && \text{multiply by the conjugate} \\ &= \frac{-2 + i + 14i - 7i^2}{5} && \text{expand; } 2^2 + 1^2 = 5 \\ &= \frac{5 + 15i}{5} && i^2 = -1 \\ &= 1 + 3i && \end{aligned}

Why this step? Treating 2+i2 + i like any other coefficient keeps the method familiar; the only new move is the conjugate in the last division.

Answer. z=1+3iz = 1 + 3i

Check. Substitute: (2+i)(1+3i)+4=2+6i+i+3i2+4=3+7i(2 + i)(1 + 3i) + 4 = 2 + 6i + i + 3i^2 + 4 = 3 + 7i ✓\checkmark

Watch out

Wrong: 6+4i2+2i=3+2i\dfrac{6 + 4i}{2 + 2i} = 3 + 2i, dividing real part by real part and imaginary part by imaginary part. Fractions do not split like that when the denominator is complex. Right: (6+4i)(2−2i)22+22=20−4i8=52−12i\dfrac{(6 + 4i)(2 - 2i)}{2^2 + 2^2} = \dfrac{20 - 4i}{8} = \dfrac{5}{2} - \dfrac{1}{2}i.

Division is the last of the four operations, so you can now simplify any expression built from complex numbers into the single form a+bia + bi.

Exam tip

For a "show that" division, the method mark is for multiplying the numerator and denominator by the conjugate of the denominator. Write that line, and show the real denominator c2+d2c^2 + d^2, before you simplify.

Equating real and imaginary parts

Two complex numbers are equal only when their real parts are equal and their imaginary parts are equal, so one equation between complex numbers gives you two equations between real numbers.

Equal complex numbers

If a+bi=c+dia + bi = c + di, where aa, bb, cc and dd are real, then

a=candb=da = c \quad \text{and} \quad b = d

Not in the formula booklet: learn it.

Why it is true

You already know the special case where one side is 0: if xx and yy are real, x+iy=0x + iy = 0 only when x=0x = 0 and y=0y = 0, because otherwise ii would be a real number. Now suppose a+bi=c+dia + bi = c + di. Subtracting c+dic + di from both sides gives (a−c)+(b−d)i=0(a - c) + (b - d)i = 0, where a−ca - c and b−db - d are real, so both are zero. Therefore a=ca = c and b=db = d.

The proof only works because aa, bb, cc and dd are real. That is the condition to remember: before you equate parts, every unknown must be a real number, so replace a complex unknown zz by x+iyx + iy first.

Worked example 5: an equation in z and z*

Question. Solve the equation z+3z∗=12−4iz + 3z^* = 12 - 4i.

Plan. Write z=x+iyz = x + iy with xx and yy real, so z∗=x−iyz^* = x - iy, collect the real and imaginary parts, then equate them.

x+iy+3(x−iy)=12−4isubstitute for z and z∗4x−2iy=12−4icollect parts4x=12and−2y=−4equate real and imaginary partsx=3andy=2\begin{aligned} x + iy + 3(x - iy) &= 12 - 4i && \text{substitute for } z \text{ and } z^* \\ 4x - 2iy &= 12 - 4i && \text{collect parts} \\ 4x = 12 \quad \text{and} \quad -2y &= -4 && \text{equate real and imaginary parts} \\ x = 3 \quad \text{and} \quad y &= 2 && \end{aligned}

Why this step? The equation 4x−2iy=12−4i4x - 2iy = 12 - 4i is one statement about complex numbers, but because xx and yy are real it splits into two separate real equations.

Answer. z=3+2iz = 3 + 2i

Check. 3+2i+3(3−2i)=3+2i+9−6i=12−4i3 + 2i + 3(3 - 2i) = 3 + 2i + 9 - 6i = 12 - 4i ✓\checkmark

Worked example 6 changes one thing: z∗z^* is multiplied by ii. That matters because multiplying by ii swaps the roles of the parts, so xx and yy both appear in each real equation and you must solve them simultaneously.

Worked example 6: when i mixes the parts

Question. Solve the equation 2z−iz∗=9−6i2z - iz^* = 9 - 6i.

Plan. Substitute z=x+iyz = x + iy and z∗=x−iyz^* = x - iy, expand using i2=−1i^2 = -1, equate parts, then solve the two simultaneous equations.

2(x+iy)−i(x−iy)=9−6isubstitute2x+2iy−ix+i2y=9−6iexpand(2x−y)+(2y−x)i=9−6ii2=−1; collect parts2x−y=9and2y−x=−6equate parts\begin{aligned} 2(x + iy) - i(x - iy) &= 9 - 6i && \text{substitute} \\ 2x + 2iy - ix + i^2y &= 9 - 6i && \text{expand} \\ (2x - y) + (2y - x)i &= 9 - 6i && i^2 = -1 \text{; collect parts} \\ 2x - y = 9 \quad \text{and} \quad 2y - x &= -6 && \text{equate parts} \end{aligned}

From the first equation y=2x−9y = 2x - 9. Substituting into the second:

2(2x−9)−x=−63x=12x=4andy=−1\begin{aligned} 2(2x - 9) - x &= -6 \\ 3x &= 12 \\ x = 4 \quad \text{and} \quad y &= -1 \end{aligned}

Why this step? The term −i×(−iy)-i \times (-iy) is +i2y=−y+i^2y = -y, a real term, so the real equation contains yy as well as xx.

Answer. z=4−iz = 4 - i

Check. 2(4−i)−i(4+i)=8−2i−4i−i2=9−6i2(4 - i) - i(4 + i) = 8 - 2i - 4i - i^2 = 9 - 6i ✓\checkmark

Watch out

Wrong: −i(x−iy)=−ix+y-i(x - iy) = -ix + y. The second term is −i×(−iy)=+i2y-i \times (-iy) = +i^2y, and i2=−1i^2 = -1. Right: −i(x−iy)=−ix−y-i(x - iy) = -ix - y. A sign slip here changes both of your real equations.

This method works for any linear equation in zz and z∗z^*. Later in the course the same comparison of real and imaginary parts is how you find the square roots of a complex number.

Exam tip

Start with the line "Let z=x+iyz = x + iy, where xx and yy are real". Examiners have reported answers that treated complex unknowns as if they were real numbers, and those answers could earn no marks.

Bombelli's puzzle solved

You can now answer the question from the start of the lesson, using only multiplication and conjugates. First simplify the square root: −121=11i\sqrt{-121} = 11i, so Cardano's formula reads x=2+11i3+2−11i3x = \sqrt[3]{2 + 11i} + \sqrt[3]{2 - 11i}. Bombelli showed that 2+i2 + i is a cube root of 2+11i2 + 11i by multiplying it out:

(2+i)2=4+4i+i2=3+4i(2+i)3=(3+4i)(2+i)=6+3i+8i+4i2=2+11i\begin{aligned} (2 + i)^2 &= 4 + 4i + i^2 = 3 + 4i \\ (2 + i)^3 &= (3 + 4i)(2 + i) = 6 + 3i + 8i + 4i^2 = 2 + 11i \end{aligned}

The second number under a cube root, 2−11i2 - 11i, is the conjugate of the first. Repeating the same multiplication with −i-i in place of ii, which also squares to −1-1, changes the sign of every imaginary part:

(2−i)2=4−4i+i2=3−4i(2−i)3=(3−4i)(2−i)=6−3i−8i+4i2=2−11i\begin{aligned} (2 - i)^2 &= 4 - 4i + i^2 = 3 - 4i \\ (2 - i)^3 &= (3 - 4i)(2 - i) = 6 - 3i - 8i + 4i^2 = 2 - 11i \end{aligned}

So a cube root of 2+11i2 + 11i is 2+i2 + i, the matching cube root of its conjugate 2−11i2 - 11i is 2−i2 - i, and

x=(2+i)+(2−i)=4x = (2 + i) + (2 - i) = 4

The imaginary parts cancel because the two cube roots are conjugates: z+z∗=2 Re(z)z + z^* = 2\,\mathrm{Re}(z), and here 2×2=42 \times 2 = 4. The calculation travelled through complex numbers but arrived at a real answer, and results like this began the slow acceptance of complex numbers by mathematicians.

Quick Recap

  • Add, subtract and multiply as in ordinary algebra, collecting real and imaginary parts and replacing i2i^2 by −1-1.
  • zz∗=x2+y2=∣z∣2zz^* = x^2 + y^2 = |z|^2 is real and never negative; z+z∗=2 Re(z)z + z^* = 2\,\mathrm{Re}(z) and z−z∗=2i Im(z)z - z^* = 2i\,\mathrm{Im}(z).
  • Divide by multiplying the top and bottom by the conjugate of the denominator, so the denominator becomes the real number c2+d2c^2 + d^2.
  • Two complex numbers are equal only when their real parts are equal and their imaginary parts are equal; write z=x+iyz = x + iy with xx and yy real to turn one complex equation into two real ones.

Bombelli's answer: (2+i)3=2+11i(2 + i)^3 = 2 + 11i and (2−i)3=2−11i(2 - i)^3 = 2 - 11i, so Cardano's formula gives (2+i)+(2−i)=4(2 + i) + (2 - i) = 4.