This site is a work in progress. New lessons are added regularly. Contact us

The Imaginary Unit and Complex Numbers

Learning goals

  • Define ii by i2=1i^2 = -1, keeping every other law
  • Convert k\sqrt{-k} to iki\sqrt k before multiplying
  • Cycle the powers of ii with period four
  • Write a complex number as a+bia + bi with real parts
  • Match parts, since equality is the only comparison available
  • Place this beside the earlier enlargements of the number system

The equation the discriminant refused

Take the simplest quadratic with no real roots:

x2+1=0.x^2 + 1 = 0.

Here a=1a = 1, b=0b = 0, c=1c = 1, so the discriminant is Δ=024(1)(1)=4<0\Delta = 0^2 - 4(1)(1) = -4 < 0, and the previous chapter’s biconditional delivers its verdict: no real solutions. The parabola y=x2+1y = x^2 + 1 has its vertex at height 11 and floats entirely above the xx-axis. But the discriminant is a summary of a deeper fact, and since this whole chapter is built on that fact, it deserves its own proof from first principles.

No real number has a negative square#

Let xx be any real number. Exactly one of three things is true of it: xx is positive, xx is zero, or xx is negative.

If xx is positive, then x2=xxx^2 = x \cdot x is a product of two positive numbers, which is positive. If xx is zero, then x2=0x^2 = 0. If xx is negative, then x2x^2 is a product of two negative numbers. In that case the sign rules of arithmetic make a negative times a negative positive, so x2x^2 is positive again.

In every case x20x^2 \ge 0. Consequently, for any positive number kk, the equation x2=kx^2 = -k has no real solution at all: its left side is at least 00, while its right side sits strictly below 00. In particular nothing real solves x2=1x^2 = -1, which is the algebraic reason the parabola y=x2+1y = x^2 + 1 never touches the axis.

The proof is airtight, so read its conclusion carefully. The word doing all the work is real. The argument used facts about real numbers, their signs and their order, and it rules out a real solution only. It leaves open a subtler question: could there be a larger supply of numbers, obeying the same laws of arithmetic, in which x2=1x^2 = -1 does have an answer?

Enlarging the number system, one more time

You have watched this exact situation resolve itself several times already, and the resolution was the same every time. Within the whole numbers, 353 - 5 has no answer, so the integers were admitted and subtraction became possible without restriction. Within the integers, 2x=32x = 3 has no answer, so the rationals were admitted and division became possible. Within the rationals, x2=2x^2 = 2 has no answer, since no fraction squares exactly to 22, so the irrationals joined and the reals were complete. Each extension shared three features: the old numbers were kept, sitting inside the new system unchanged; the rules of arithmetic, the commutative, associative, and distributive laws, kept holding. The third feature is that the equation that forced the extension became solvable.

So we make the same move for x2=1x^2 = -1, and the entire construction is one sentence. The imaginary unit ii is a new number defined by the single property

i2=1\boxed{\,i^2 = -1\,}

and we insist that the ordinary rules of algebra continue to apply to it. That is the complete definition. Every other fact in this chapter is deduced from that one equation plus the laws of arithmetic you already own.

If inventing a number by decree feels like cheating, notice that every extension before it was the same decree. Nobody can hold 2-2 apples either, yet negative numbers earned their place because they obey the rules and settle real questions. What makes the decree mathematics rather than wishful thinking is consistency: no contradiction ever falls out of computing with ii. And a later lesson in this chapter will even show you where these numbers live geometrically, which is when most people stop feeling uneasy about them.

The payoff is immediate. The equation x2=1x^2 = -1 now has a solution, namely ii, and in fact it has a second one: i-i. To check it, square i-i using the sign rules, which still apply:

(i)2=(i)(i)=ii=i2=1.(-i)^2 = (-i)(-i) = i \cdot i = i^2 = -1.

So x2=1x^2 = -1 has the two solutions x=±ix = \pm i, a mirror pair, exactly the way x2=2x^2 = 2 has the mirror pair ±2\pm\sqrt{2}.

Square roots of negative numbers

With ii in hand, every negative number acquires a square root. For a positive real number kk, we define

k=ik.\sqrt{-k} = i\sqrt{k}.

The definition has to earn the radical sign, so check that the right side really does square to k-k, using the commutative law to square each factor separately:

(ik)2=i2(k)2=(1)k=k.\left(i\sqrt{k}\right)^2 = i^2 \cdot \left(\sqrt{k}\right)^2 = (-1) \cdot k = -k.

It checks. So 25=i25=5i\sqrt{-25} = i\sqrt{25} = 5i, and 7=i7\sqrt{-7} = i\sqrt{7}. Two habits of notation are worth adopting on day one. Write the ii in front of the radical, as in i7i\sqrt{7}, or after a whole coefficient, as in 5i5i. Either placement keeps the ii from ever being misread as sitting underneath the radical. And remember that the radical symbol names a single number, just as it did for positive inputs: 25\sqrt{-25} is 5i5i, while the equation x2=25x^2 = -25 has the two solutions ±5i\pm 5i.

One familiar rule does not survive the trip. For nonnegative aa and bb you proved ab=ab\sqrt{a}\,\sqrt{b} = \sqrt{ab}, and that hypothesis was not decoration. Feed the rule two negative inputs and it fails:

49=(2i)(3i)=6i2=6,but(4)(9)=36=6.\sqrt{-4} \cdot \sqrt{-9} = (2i)(3i) = 6i^2 = -6, \qquad \text{but} \qquad \sqrt{(-4)(-9)} = \sqrt{36} = 6.

The left computation is the correct one; the right one applies a theorem outside the territory it was proved on. The safe procedure is mechanical: convert every square root of a negative into its ii-form first, and only then multiply.

Worked example 1 Simplify 45\sqrt{-45}

Apply the definition first, to get the negative out of the radical:

45=i45.\sqrt{-45} = i\sqrt{45}.

Now simplify the real radical exactly as you always have. Since 45=9545 = 9 \cdot 5 and 99 is a perfect square, 45=95=35\sqrt{45} = \sqrt{9}\,\sqrt{5} = 3\sqrt{5}, which is legal because both radicands are positive. Therefore

45=3i5.\sqrt{-45} = 3i\sqrt{5}.

Check the answer by squaring it, factor by factor: (3i5)2=32i2(5)2=9(1)5=45\left(3i\sqrt{5}\right)^2 = 3^2 \cdot i^2 \cdot \left(\sqrt{5}\right)^2 = 9 \cdot (-1) \cdot 5 = -45, as required. The ii sits in front of the radical where it cannot be misread.

Check your understanding

Simplify 64\sqrt{-64}.

Answer choices

Equations with no real roots, solved

The whole chapter opened because x2+1=0x^2 + 1 = 0 had no real solution. Equations of that shape now surrender completely.

Worked example 2 Solve x2+49=0x^2 + 49 = 0

Isolate the square:

x2=49.x^2 = -49.

The proof at the top of the lesson shows no real number can work, so look among the new numbers, guided by 49=7i\sqrt{-49} = 7i. Test 7i7i by squaring it:

(7i)2=72i2=49(1)=49.(7i)^2 = 7^2 \cdot i^2 = 49 \cdot (-1) = -49.

It works. Test 7i-7i as well: (7i)2=(7)2i2=49(1)=49(-7i)^2 = (-7)^2 \cdot i^2 = 49 \cdot (-1) = -49, so it works too. The solutions are

x=±7i.x = \pm 7i.

Just as x2=49x^2 = 49 has the mirror pair ±7\pm 7, the equation x2=49x^2 = -49 has the mirror pair ±7i\pm 7i. A quadratic never has more than two solutions, a fact the lesson on complex roots of quadratics will pin down in this new setting. So that mirror pair, ±7i\pm 7i, is the complete answer.

The same two steps, isolate the square and attach ±i\pm i, solve every equation of the form x2=kx^2 = -k with kk positive: the solutions are x=±ikx = \pm i\sqrt{k}. What this lesson does not yet do is solve a general quadratic whose discriminant is negative. That harvest, where the quadratic formula runs unchanged and simply outputs complex numbers, is the final lesson of this chapter.

The powers of i cycle

The definition hands you i2i^2. Multiplying by ii again and again hands you everything else, and a striking pattern appears within four steps:

i1=i,i2=1,i3=i2i=i,i4=i3i=ii=i2=1.i^1 = i, \qquad i^2 = -1, \qquad i^3 = i^2 \cdot i = -i, \qquad i^4 = i^3 \cdot i = -i \cdot i = -i^2 = 1.

The fourth power is 11, so the fifth power is i4i=1i=ii^4 \cdot i = 1 \cdot i = i and the tape starts over. The powers of ii march through the same four values forever: ii, 1-1, i-i, 11, then again ii, 1-1, i-i, 11, with no exceptions.

The four-step cycle of the powers of iBoxes containing i, minus 1, minus i, and 1. Each arrow multiplies by i, and the arrow from 1 loops back to i, so the powers repeat with period four.i-1-i1×i×i×i×i
Multiplying by i again and again walks through the same four values forever. To evaluate a power of i, you only need to know where in the four-step cycle the exponent lands, and that is decided by its remainder on division by 4.

The cycle turns the scariest-looking problems into division with remainder.

Every power of ii is one of four values#

First, i4=1i^4 = 1, computed above from nothing but i2=1i^2 = -1. Now take any positive integer exponent nn and divide it by 44 with remainder, writing n=4q+rn = 4q + r where qq is the quotient and the remainder rr is one of 0,1,2,30, 1, 2, 3. The exponent laws for positive whole-number exponents encode nothing but repeated multiplication together with the associative and commutative laws. So they hold for ii just as they hold for every other number. Therefore

in=i4q+r=(i4)qir=1qir=ir.i^n = i^{4q + r} = \left(i^4\right)^{q} \cdot i^r = 1^q \cdot i^r = i^r.

So the value of ini^n depends only on the remainder rr. A remainder of 11 gives ii, a remainder of 22 gives 1-1, a remainder of 33 gives i-i, and a remainder of 00 means n=4qn = 4q exactly, so in=(i4)q=1i^n = \left(i^4\right)^q = 1. Four remainders, four values, repeating forever with period four.

Worked example 3 Compute i2026i^{2026}

Divide the exponent by 44 and keep the remainder:

2026=4506+2,2026 = 4 \cdot 506 + 2,

so the remainder is 22. By the cycle,

i2026=(i4)506i2=1(1)=1.i^{2026} = \left(i^4\right)^{506} \cdot i^2 = 1 \cdot (-1) = -1.

A shortcut makes this instant for big exponents: 100100 is a multiple of 44. So all the digits except the last two contribute a multiple of 44, and only the final two digits matter. Here they are 2626, and 26=46+226 = 4 \cdot 6 + 2 leaves remainder 22, the same answer with less arithmetic.

Check your understanding

What is i75i^{75}?

Answer choices

Complex numbers and their two parts

Multiples of ii alone are not the end of the construction, because the rules of arithmetic let you add a real number to one of them. The result, something like 3+5i3 + 5i, cannot be compressed any further: it is not a real number, and it is not a plain multiple of ii. It is a genuinely two-part number, and numbers of this shape get the chapter’s name.

A complex number is a number of the form a+bia + bi, where aa and bb are real numbers. The real number aa is called its real part, the real number bb is called its imaginary part, and the expression a+bia + bi is called standard form. Note the fine print carefully: the imaginary part of 3+5i3 + 5i is 55, the real coefficient of ii, and not 5i5i. Signs ride along with the parts, so 2i=2+(1)i-2 - i = -2 + (-1)i has real part 2-2 and imaginary part 1-1.

The definition quietly swallows everything that came before it. Choose b=0b = 0 and a+0ia + 0i is just the real number aa: every real number is a complex number. So the reals sit inside the new system unchanged, exactly as the integers sit inside the rationals. Choose a=0a = 0 with b0b \ne 0 and you get numbers like 4i4i, called pure imaginary numbers. Choose both parts nonzero and you get the new two-part numbers like 3+5i3 + 5i. The name complex is the old sense of the word, a whole built out of parts, as in a building complex; it is a description of structure, not of difficulty.

Real and pure imaginary numbers inside the complex numbersNested boxes: the complex numbers contain the real numbers as the slice with imaginary part zero, the pure imaginary numbers as the slice with real part zero, and two-part numbers such as 3 plus 2 i besides.Complex numbersevery a + bi with a and b realReal numbers(b = 0)-3,  0,  4/5√2,  πPure imaginary(a = 0, b ≠ 0)i,  -4ii√2,  6i3 + 2i      1 - i      -5 - 4iboth parts nonzero: complex, but neither real nor pure imaginary
The complex numbers absorb everything that came before. Reals are the complex numbers with b = 0, pure imaginary numbers are those with a = 0 and b nonzero, and numbers using both parts, like 3 + 2i, are new. Nothing was discarded: every number you have ever used is in the outer box.

How to add, multiply, and divide these two-part numbers is the entire next lesson. This lesson’s job is to know what they are, and to settle the one operation that needs no new machinery at all: deciding when two of them are equal.

One real-number habit, though, does not survive the extension, and it is worth seeing why before it bites. Real numbers are ordered: any two of them can be compared with <<. The previous chapters’ inequality rules relied on that, in particular the rule that multiplying an inequality by a positive number preserves it. Try to fit ii into such an ordering. If i>0i > 0, then multiplying both sides of i>0i > 0 by the positive number ii must preserve the inequality, giving i2>0i^2 > 0, that is, 1>0-1 > 0, which is false. If instead i<0i < 0, then i>0-i > 0, and multiplying i>0-i > 0 by the positive number i-i gives (i)2>0(-i)^2 > 0, which is again 1>0-1 > 0, false. And i=0i = 0 fails immediately, since 02=010^2 = 0 \ne -1. No placement is consistent, so the complex numbers cannot be ranked on a number line: a question like “is 2+3i2 + 3i bigger than 3+2i3 + 2i” has no meaning. Complex numbers are compared for equality, never for size.

Equality matches the parts

Two complex numbers in standard form are equal exactly when they match part by part. This sounds too obvious to need proof, but it is a genuine theorem, and its proof leans on the very first proof of the lesson in a satisfying way.

a+bi=c+dia + bi = c + di exactly when a=ca = c and b=db = d#

Throughout, aa, bb, cc, dd are real numbers. One direction needs no work: if a=ca = c and b=db = d, the two expressions are the same number written twice.

For the other direction, suppose a+bi=c+dia + bi = c + di. Subtract cc and bibi from both sides and factor the right side:

ac=(db)i.a - c = (d - b)\,i.

Now suppose, aiming for a contradiction, that dbd \ne b. Then dbd - b is a nonzero real number, and dividing both sides by it is legal, because dividing by a nonzero real is just multiplying by another real. That isolates ii:

i=acdb.i = \frac{a - c}{d - b}.

The right side is a quotient of real numbers, so it is itself a real number, and the equation says ii is that real number. Square both sides: 1=i2-1 = i^2 would be the square of a real number. But the first proof of this lesson showed no real number has a negative square. Contradiction. So the supposition fails, and d=bd = b after all. Feeding that back in gives ac=0i=0a - c = 0 \cdot i = 0, so a=ca = c as well.

Both directions hold, so the biconditional stands: equality of complex numbers is equality of real parts and equality of imaginary parts, simultaneously.

The theorem is a workhorse, because it means one complex equation silently carries the information of two real equations: match the real parts, then match the imaginary parts. Whole problems fall to that single move.

Worked example 4 One complex equation, two real unknowns

Find the real numbers xx and yy satisfying

(2x+3)+(y1)i=9+4i.(2x + 3) + (y - 1)\,i = 9 + 4i.

Both sides are in standard form, and xx and yy are real, so the parts on each side are real numbers and the equality theorem applies. Match the real parts:

2x+3=92x=6x=3.2x + 3 = 9 \quad\Rightarrow\quad 2x = 6 \quad\Rightarrow\quad x = 3.

Match the imaginary parts:

y1=4y=5.y - 1 = 4 \quad\Rightarrow\quad y = 5.

So x=3x = 3 and y=5y = 5, and the check confirms it: (23+3)+(51)i=9+4i(2 \cdot 3 + 3) + (5 - 1)i = 9 + 4i. Notice the fine print earned its keep: the matching move is valid because the problem said xx and yy are real. That is what guarantees 2x+32x + 3 and y1y - 1 really are the real and imaginary parts.

Check your understanding

What is the imaginary part of 74i7 - 4i?

Answer choices

Common mistakes

Practice

Multiple Choice Questions (MCQ)

Progressively harder sets of questions. Each opens on its own page.

Free Response Questions (FRQ)

Longer questions in parts, to be worked out on paper. Progressive hints, the answer on its own so you can check yourself and try again, then the full worked solution, plus a rubric to mark your own work against.

Free response Work it out on paper 5 questions Start →
More practice (optional)

Extra sets, as hard as the Challenge set. Each one opens on its own page.

More resources (optional)

Other explanations of this lesson, if you want a second take.

A bit of history (Optional)

For almost two hundred years these numbers had no symbol of their own. People simply wrote the square root of minus one, over and over, in the middle of enormous calculations. That looks harmless. It was not.

A radical sign carries habits along with it. The most dangerous is the familiar rule that a root times a root equals the root of the product. That rule is proved for positive numbers only, and it fails on negative ones. So the notation itself invited an error on every line, and it collected plenty.

Leonhard Euler, a Swiss mathematician of enormous output, removed the temptation entirely. In a paper of 1777 he handed the whole business to a single letter, ii, the number whose square is 1-1. A letter carries no habits. It promises nothing about radicals, and it offers no familiar rule to reach for by mistake. It behaves exactly as you tell it to, and no further.

Carl Friedrich Gauss later supplied the word for a number with two parts, and called it complex. He believed the older word, imaginary, had frightened people away from mathematics that was never seriously in doubt.

Your own definition needs neither the excuse nor the label. It is one letter and one equation, i2=1i^2 = -1, and the whole of this lesson follows from that.