IB Maths Help logoIB Maths Help

Complex number arithmetic, powers and roots

Set the calculator to complex mode, do sums, products, quotients, conjugates and powers, and solve zn=z^n = a real number for all its roots, with the exact key presses for the TI-84 Plus CE, Casio fx-CG50, Casio fx-CG100 and TI-Nspire CX, plus what to write in the exam.

Used inAA HLAI HL

Put the calculator in complex mode (rectangular, a+bia+bi), type each complex number in brackets using the ii key, and use the ordinary operation keys. Use the conjugate command for z―\overline{z} and the power key for znz^n. To solve zn=cz^n = c for a real number cc, write zn−c=0z^n - c = 0 and use the polynomial solver, which lists every root, real and complex, when complex mode is on.

Example

Let z=2+3iz = 2 + 3i and w=4−iw = 4 - i. Find z+wz + w, zwzw, zw\dfrac{z}{w}, z―\overline{z} and z4z^4, each in the form a+bia + bi. Then solve z3=27z^3 = 27, giving all three roots in the form a+bia + bi.

For the sum add the real parts and the imaginary parts. For the product expand and use i2=−1i^2 = -1: (2+3i)(4−i)=8−2i+12i−3i2=11+10i(2+3i)(4-i) = 8 - 2i + 12i - 3i^2 = 11+10i. For the quotient multiply the top and bottom by the conjugate of ww, which is 4+i4 + i, so that the bottom becomes the real number 1717: (2+3i)(4+i)17=5+14i17\dfrac{(2+3i)(4+i)}{17} = \dfrac{5 + 14i}{17}. The conjugate changes the sign of the imaginary part, and z4z^4 is (z2)2(z^2)^2 with z2=−5+12iz^2 = -5 + 12i. The equation z3=27z^3 = 27 has one real root, 33, and two complex roots that form a conjugate pair: in polar form they are 3cis2π33\,\text{cis}\,\tfrac{2\pi}{3} and 3cis4π33\,\text{cis}\,\tfrac{4\pi}{3}.

Choose your calculator

How to do complex number arithmetic, powers and roots on a TI-84 Plus CE

Set the mode and calculate

Press mode. Press ▼ to the line REAL a+bi re^(θi), then ▶ to a+bi and enter. Press 2nd mode (QUIT). The letter ii is typed with 2nd ..

REAL a+bi re^(θi)
a+bi selected

Type each calculation with brackets round every complex number and press enter: ( 2 + 3 2nd . ) + ( 4 − 2nd . ), then the same with × for the product and ÷ for the quotient. The answers appear as a+bia+bi.

z+w=6+2iz + w = 6+2i, zw=11+10izw = 11+10i and zw=5+14i17≈0.294+0.824i\dfrac{z}{w} = \dfrac{5 + 14i}{17} \approx 0.294 + 0.824i.

(2+3i)+(4-i)
6+2i
(2+3i)*(4-i)
11+10i
(2+3i)/(4-i)
.2941176471+.8235294118i

For the conjugate press math, then ▶ ▶ to open the CMPLX menu, and choose 1:conj(. Type (2+3i) and press enter. For a power type the number in brackets, then ^ and the power: ( 2 + 3 2nd . ) ^ 4 enter.

z―=2−3i\overline{z} = 2-3i and z4=−119−120iz^4 = -119-120i.

conj((2+3i))
2-3i
(2+3i)^4
-119-120i

Roots of z^n equal to a real number

To solve z3=27z^3 = 27, write z3−27=0z^3 - 27 = 0, with coefficients 1,0,0,−271, 0, 0, -27. Press apps, choose PlySmlt2, pass the information screen and choose 1:Polynomial Root Finder. Set ORDER to 3 and the answer mode to a+bi, then press graph under NEXT.

ORDER=3
a+bi Auto

Type the coefficients, pressing enter after each: 1 enter, 0 enter, 0 enter, (−) 2 7 enter. Press graph under SOLVE. All three roots are listed.

z=3z = 3, z=−1.5+2.598iz = -1.5+2.598i and z=−1.5−2.598iz = -1.5-2.598i.

X1=3
X2=-1.5+2.598076211i
X3=-1.5-2.598076211i

Brackets matter: type (2+3i)/(4-i), never 2+3i/4-i, which divides only the 3i. If the calculator says ERR:NONREAL ANSWERS, the mode line is still on REAL.

How to do complex number arithmetic, powers and roots on a Casio fx-CG50

Set the mode and calculate

Press MENU and open Run-Matrix. Press SHIFT MENU (SET UP), press ▼ to Complex Mode and press F2 (a+bi), then EXIT. The letter ii is OPTN F3 (COMPLEX) F1 (i), or SHIFT 0.

Complex Mode:a+bi

Type each calculation with brackets round every complex number and press EXE: ( 2 + 3 SHIFT 0 ) + ( 4 − SHIFT 0 ), then the same with × for the product and ÷ for the quotient. The answers appear as a+bia+bi.

z+w=6+2iz + w = 6+2i, zw=11+10izw = 11+10i and zw=5+14i17≈0.294+0.824i\dfrac{z}{w} = \dfrac{5 + 14i}{17} \approx 0.294 + 0.824i.

(2+3i)+(4-i)
6+2i
(2+3i)*(4-i)
11+10i
(2+3i)/(4-i)
0.2941176471+0.8235294118i

For the conjugate press OPTN, F3 (COMPLEX), then F4 (Conjg) and type the number in brackets. For a power type the number in brackets, then ^ and the power: ( 2 + 3 SHIFT 0 ) ^ 4 EXE.

z―=2−3i\overline{z} = 2-3i and z4=−119−120iz^4 = -119-120i.

Conjg (2+3i)
2-3i
(2+3i)^4
-119-120i

Roots of z^n equal to a real number

To solve z3=27z^3 = 27, write z3−27=0z^3 - 27 = 0, with coefficients 1,0,0,−271, 0, 0, -27. Press MENU and choose Equation, then F2 (POLY) and F2 (3) for a cubic.

Type the coefficients, pressing EXE after each: 1 EXE, 0 EXE, 0 EXE, (−) 2 7 EXE. Press F1 (SOLVE). With Complex Mode on a+bi every root is listed, real and complex.

z=3z = 3, z=−1.5+2.598iz = -1.5+2.598i and z=−1.5−2.598iz = -1.5-2.598i.

x1=3
x2=-1.5+2.5981i
x3=-1.5-2.5981i

Brackets matter: type (2+3i)÷(4-i), never 2+3i÷4-i, which divides only the 3i. If the calculator says Non-Real ERROR, Complex Mode is still on Real.

How to do complex number arithmetic, powers and roots on a Casio fx-CG100

Set the mode and calculate

Press HOME and choose Calculate. Press the Settings key, choose Complex Mode and choose a+bi, then press the back key. The letter ii is typed with Shift 9.

Complex Mode:a+bi

Type each calculation with brackets round every complex number and press EXE: ( 2 + 3 Shift 9 ) + ( 4 − Shift 9 ), then the same with × for the product and ÷ for the quotient. The answers appear as a+bia+bi.

z+w=6+2iz + w = 6+2i, zw=11+10izw = 11+10i and zw=5+14i17≈0.294+0.824i\dfrac{z}{w} = \dfrac{5 + 14i}{17} \approx 0.294 + 0.824i.

(2+3i)+(4-i)
6+2i
(2+3i)*(4-i)
11+10i
(2+3i)/(4-i)
0.2941176471+0.8235294118i

For the conjugate press CATALOG, choose Complex Number and then Complex Conjugate, and type the number in brackets. For a power type the number in brackets, then the power key and the power: ( 2 + 3 Shift 9 ) then the power key, 4 and EXE.

z―=2−3i\overline{z} = 2-3i and z4=−119−120iz^4 = -119-120i.

Conjg(2+3i)
2-3i
(2+3i)^4
-119-120i

Roots of z^n equal to a real number

To solve z3=27z^3 = 27, write z3−27=0z^3 - 27 = 0, with coefficients 1,0,0,−271, 0, 0, -27. Press HOME and choose Equation. On the Type tab choose Polynomial, then on the Degree tab choose the cubic and press OK.

On the Editor tab type the coefficients, pressing EXE after each: 1 EXE, 0 EXE, 0 EXE, then Shift − for the negative sign, 2 7 and EXE. Press the next-tab key to see the Result tab, which lists every root, real and complex, when Complex Mode is on a+bi.

z=3z = 3, z=−1.5+2.598iz = -1.5+2.598i and z=−1.5−2.598iz = -1.5-2.598i.

X1=3
X2=-1.5+2.598i
X3=-1.5-2.598i

Brackets matter: type (2+3i)÷(4-i), never 2+3i÷4-i, which divides only the 3i. If the calculator says Non-Real ERROR, Complex Mode is still on Real.

How to do complex number arithmetic, powers and roots on a TI-Nspire CX

Set the mode and calculate

Press home, choose Settings and then Document Settings. Set Real or Complex to Rectangular and choose OK. On a Calculator page, type ii from the symbol palette: ctrl catalog, then choose i.

Real or Complex:Rectangular

Type each calculation with brackets round every complex number and press enter: (2+3i)+(4-i), then the same with * for the product and / for the quotient. The answers appear as a+bia+bi, and the quotient is exact: press ctrl enter for a decimal.

z+w=6+2iz + w = 6+2i, zw=11+10izw = 11+10i and zw=5+14i17≈0.294+0.824i\dfrac{z}{w} = \dfrac{5 + 14i}{17} \approx 0.294 + 0.824i.

(2+3i)+(4-i)
6+2i
(2+3i)*(4-i)
11+10i
(2+3i)/(4-i)
5/17+14/17·i

For the conjugate type conj(2+3i) and press enter. For a power type (2+3i)^4 and press enter.

z―=2−3i\overline{z} = 2-3i and z4=−119−120iz^4 = -119-120i.

conj(2+3i)
2-3i
(2+3i)^4
-119-120i

Roots of z^n equal to a real number

On a Calculator page type cPolyRoots(z^3-27,z), close the bracket and press enter. Press ctrl enter for decimal values. All three roots are listed, real and complex.

z=3z = 3, z=−1.5+2.598iz = -1.5+2.598i and z=−1.5−2.598iz = -1.5-2.598i.

cPolyRoots(z^3-27,z)
{3, -1.5+2.5981i, -1.5-2.5981i}

Brackets matter: type (2+3i)/(4-i), never 2+3i/4-i, which divides only the 3i. If the calculator says Non-real result, Real or Complex is still on Real.

Sources. Key presses follow the manufacturers' documentation: the TI-84 Plus CE eGuide, the TI-Nspire eGuide, the Casio fx-CG50 Software User's Guide (version 3.30) and the Casio fx-CG100 online manual.

What to write in the exam

  • Show the algebra for any question that says "find" or "show that". Write the expansion, the use of i2=−1i^2 = -1 and, for a quotient, the multiplication by the conjugate. The calculator then checks your answer: it does not replace the working.
  • Give exact answers when you can. The calculator shows a decimal for a quotient such as 5+14i17\dfrac{5 + 14i}{17}. Write the exact fraction and use the decimal as a check, unless the question asks for a decimal.
  • For roots, name the pattern. The roots of zn=cz^n = c are equally spaced round a circle in the Argand diagram, and complex roots of a real equation come in conjugate pairs. Writing this earns the marks for the method even when the calculator finds the numbers.
  • Check which papers allow a calculator. In AA HL, Paper 1 is calculator-free, so do arithmetic and roots by hand there. In AI HL a calculator is allowed on every paper, and roots of complex numbers are not examined (check your syllabus).
  • Round last. Keep the calculator values until the end and round only the final answer, to 3 significant figures unless the question says otherwise.

Roots of a complex number that is not real (AA HL)

The polynomial solver needs real coefficients, so it cannot solve z3=8iz^3 = 8i directly. Use De Moivre's theorem instead. Write the right-hand side in polar form, 8i=8cisπ28i = 8\,\text{cis}\,\tfrac{\pi}{2}, then the three cube roots have modulus 83=2\sqrt[3]{8} = 2 and arguments π6\tfrac{\pi}{6}, π6+2π3\tfrac{\pi}{6} + \tfrac{2\pi}{3} and π6+4π3\tfrac{\pi}{6} + \tfrac{4\pi}{3}. Convert each back to a+bia + bi with the polar form steps in modulus, argument and polar form, and check each root by cubing it on the calculator: the result should be 8i8i.

Quadratics with a negative discriminant

The polynomial solver works for a quadratic too. For z2−2z+5=0z^2 - 2z + 5 = 0 choose degree 2, type 1,−2,51, -2, 5 and solve: the roots 1+2i1 + 2i and 1−2i1 - 2i are a conjugate pair. The steps are the same as for the cubic above, and the other ways to solve polynomials are in solve a polynomial equation.

Error messages and what to do

CalculatorMessageUsual causeWhat to try
TI-84 Plus CEERR:NONREAL ANSWERSIn REAL mode, a calculation from real numbers gave a complex result, for example the square root of a negative number.Set the mode line to a+bi and repeat the calculation.
TI-84 Plus CEERR:DATA TYPEA complex number was entered into the n/d MathPrint fraction template.Type the fraction with the divide key and brackets instead of the template.
Casio fx-CG50Non-Real ERRORThe Complex Mode setting is Real and a calculation from real numbers gave a complex number.Change Complex Mode to a+bi on the Setup screen.
Casio fx-CG100Non-Real ERRORThe Complex Mode setting is Real and a calculation from real numbers gave a complex number.Change Settings → Complex Mode to a+bi.
TI-Nspire CXNon-real resultThe Real or Complex setting is Real and the calculation gave a complex result.Set Real or Complex to Rectangular in Document Settings.

Common mistakes

  • Leaving the calculator in Real mode. Complex answers then give an error, or the calculator stays silent about the imaginary part. Set the complex mode to a+bia+bi first.
  • Missing brackets. 2+3i/4−i2+3i/4-i divides only 3i3i by 44. Put brackets round the top and the bottom.
  • Typing the letter i from the keyboard letters. Use the ii key or the symbol palette, not the letter on the alpha keys, which is a variable.
  • Writing only one complex root. A cubic has three roots counting the real one, and complex roots of a real equation come in conjugate pairs.
  • Giving a rounded decimal when the question wants an exact value. Write the fraction or the surd, and use the decimal only to check it.

Try it yourself

Real questions from the IB Maths Help question bank. Type your answer and press Mark it: the worked solution and mark scheme then appear. Use your calculator to check your working.

Practise with your calculator

Choose your course to see the practice sets that use this skill. You can also try practice mode or browse every GDC guide.

Quick questions

How do I do complex number arithmetic on a calculator?

Set the complex mode to a+bi, type each complex number in brackets using the i key, and use the usual operation keys. On the TI-84 Plus CE the mode is on the MODE screen and i is 2nd and the decimal point key, on the Casio calculators the mode is in the settings and i is on the COMPLEX menu or Shift and a number key, and on the TI-Nspire the mode is in Document Settings and i is in the symbol palette.

How do I find the conjugate of a complex number?

Use the conjugate command: conj( on the CMPLX menu of the TI-84 Plus CE, Conjg on the COMPLEX menu of the fx-CG50, Complex Conjugate in the Catalog of the fx-CG100, or conj( on the TI-Nspire. The conjugate of a + bi is a - bi.

How do I find all the roots of z^3 = 27 on a calculator?

Write z^3 - 27 = 0 and use the polynomial solver with coefficients 1, 0, 0 and -27, with the complex mode on. It lists the real root 3 and the two complex roots, which form a conjugate pair.

Why does my calculator show a decimal for a quotient?

The calculator shows a decimal approximation of the exact fraction. Write the exact value, such as (5 + 14i)/17, in your working, and use the decimal as a check.