Quadratics

Complex Numbers: How They Work and How to Solve Them

A complex number is any number a+bia+bi, where aa and bb are real and i2=−1i^2=-1. You add the real and imaginary parts separately, and you multiply with (a+bi)(c+di)=(ac−bd)+(ad+bc)i(a+bi)(c+di)=(ac-bd)+(ad+bc)i.

(a+bi)(c+di)=(ac−bd)+(ad+bc)i(a+bi)(c+di)=(ac-bd)+(ad+bc)i

Try it with your numbers

Show every step

The name sounds exotic, but the arithmetic is ordinary algebra with one extra rule: whenever i2i^2 appears, replace it with −1-1. Everything below, from division to polar form to quadratic roots, comes from that single rule.

What are complex numbers and why do they exist?

A complex number z=a+biz=a+bi has a real part aa and an imaginary part bb. In 7−3i7-3i the imaginary part is −3-3, not −3i-3i, because the imaginary part is the real number that multiplies ii. Real numbers sit inside the complex numbers as the case b=0b=0, so 55 is the same as 5+0i5+0i. A number like 4i4i, with a=0a=0, is called pure imaginary.

The reason to invent ii is that some equations get stuck without it. The equation x2=−1x^2=-1 has no real solution, which you can see by solving it with the square root method and hitting the square root of a negative. It also shows up in graphing quadratic functions: the parabola y=x2+1y=x^2+1 never touches the xx-axis. Defining ii with i2=−1i^2=-1 repairs this, and the repair is complete. Every polynomial of degree nn has exactly nn roots in the complex numbers, counting repeats, so no further new numbers are ever needed. In the sixteenth century, the cubic formula forced mathematicians to accept these numbers. It produced square roots of negatives on the way to answers that were perfectly real.

To picture a+bia+bi, plot it at the point (a,b)(a,b) on the complex plane. The horizontal axis holds the real part and the vertical axis holds the imaginary part. The powers of ii cycle through i,−1,−i,1i,-1,-i,1, which you can explore on the page about powers of i. One thing you give up is order. Unlike real numbers, complex numbers cannot be ranked, so 2+i>1+3i2+i>1+3i has no meaning.

Quick check

What is the imaginary part of 7−3i7-3i?

How do you add and subtract complex numbers?

Add the real parts together and the imaginary parts together, exactly like combining like terms. For example:

(3+5i)+(2−9i)=(3+2)+(5−9)i=5−4i.(3+5i)+(2-9i)=(3+2)+(5-9)i=5-4i.

On the plane this is vector addition: the sum is the far corner of the parallelogram built on the two numbers. That picture explains why addition feels so easy and multiplication does not.

Subtraction is where points get lost. The minus sign must flip both parts of the second number:

(4−2i)−(1−6i)=4−2i−1+6i=3+4i.(4-2i)-(1-6i)=4-2i-1+6i=3+4i.

The usual wrong answer is 3−8i3-8i, which comes from forgetting to flip the −6i-6i. A fast check is to add the second number back: (3+4i)+(1−6i)=4−2i(3+4i)+(1-6i)=4-2i, which is where you started.

How do you multiply complex numbers step by step?

Treat ii like a variable, expand with FOIL, then replace i2i^2 with −1-1. In general:

(a+bi)(c+di)=ac+adi+bci+bd i2=(ac−bd)+(ad+bc)i.(a+bi)(c+di)=ac+adi+bci+bd\,i^2=(ac-bd)+(ad+bc)i.

That is the whole formula. It is not something to memorize separately, because it is FOIL plus one substitution.

Worked example: multiply (2+3i)(4−5i)(2+3i)(4-5i).

(2+3i)(4−5i)=8−10i+12i−15i2=8+2i+15=23+2i.(2+3i)(4-5i)=8-10i+12i-15i^2=8+2i+15=23+2i.

The step that costs the most points is −15i2-15i^2. Because i2=−1i^2=-1, this becomes +15+15, not −15-15. You can confirm with the formula: ac−bd=8−(3)(−5)=23ac-bd=8-(3)(-5)=23 and ad+bc=2(−5)+3(4)=2ad+bc=2(-5)+3(4)=2.

The conjugate shortcut

(a+bi)(a−bi)=a2+b2(a+bi)(a-bi)=a^2+b^2, always a real number. For example, (3+4i)(3−4i)=9+16=25(3+4i)(3-4i)=9+16=25.

This is the difference of squares pattern, and the middle terms cancel. It is also why a sum of squares, which cannot be factored over the reals, splits neatly once ii is allowed. The expression x2+9x^2+9 becomes (x+3i)(x−3i)(x+3i)(x-3i), an idea that extends solving quadratic equations by factoring to cases that looked impossible.

How do you divide complex numbers?

You cannot leave ii in a denominator, so multiply the top and bottom by the conjugate of the denominator. This is the same move as rationalizing a radical denominator. It works because the conjugate product c2+d2c^2+d^2 is real, which clears ii from the bottom without changing the value of the fraction.

  1. Write the conjugate of the denominator (flip the sign of its imaginary part).
  2. Multiply the numerator by it, using FOIL and i2=−1i^2=-1.
  3. The denominator becomes c2+d2c^2+d^2.
  4. Split the result into a real part and an imaginary part, and simplify each.

Worked example: simplify 5+2i1−3i\dfrac{5+2i}{1-3i}. The conjugate of 1−3i1-3i is 1+3i1+3i.

5+2i1−3i⋅1+3i1+3i=5+15i+2i+6i21+9=−1+17i10=−110+1710i.\frac{5+2i}{1-3i}\cdot\frac{1+3i}{1+3i}=\frac{5+15i+2i+6i^2}{1+9}=\frac{-1+17i}{10}=-\frac{1}{10}+\frac{17}{10}i.

To check, multiply back by 1−3i1-3i. You get (−110+5110)+(310+1710)i=5+2i\left(-\frac{1}{10}+\frac{51}{10}\right)+\left(\frac{3}{10}+\frac{17}{10}\right)i=5+2i, which matches the original numerator. The common slip is multiplying only the top, or conjugating the numerator instead of the denominator. Whatever you multiply on top, you must multiply on the bottom.

Quick check

Simplify 41+i\dfrac{4}{1+i}.

What are the modulus and conjugate of a complex number?

Check (2+3i)(4−5i)=23+2i by multiplying squared moduli 13 and 41 to get 533
If |z|² · |w|² does not equal the squared size of your product, an error slipped in somewhere.

The modulus (or absolute value) of a+bia+bi is its distance from the origin on the complex plane:

∣a+bi∣=a2+b2.|a+bi|=\sqrt{a^2+b^2}.

That is the Pythagorean theorem on the point (a,b)(a,b). For example, ∣3−4i∣=9+16=5|3-4i|=\sqrt{9+16}=5. The conjugate zˉ=a−bi\bar z=a-bi reflects the point across the real axis, and it links the two ideas through zzˉ=∣z∣2z\bar z=|z|^2. That is the conjugate shortcut seen earlier.

A free error detector

Moduli multiply: ∣zw∣=∣z∣∣w∣|zw|=|z||w|. For (2+3i)(4−5i)=23+2i(2+3i)(4-5i)=23+2i, check 232+22=53323^2+2^2=533 and 13⋅41=53313\cdot41=533.

There is a neat link to matrices. The number a+bia+bi behaves exactly like the matrix with rows (a, −b)(a,\,-b) and (b, a)(b,\,a), and adding or multiplying such matrices mirrors complex arithmetic. Its 2×2 determinant is a2+b2a^2+b^2, which is ∣z∣2|z|^2, the area scale factor when multiplying by zz stretches the plane.

What is the polar form of a complex number?

Describe the point by distance and direction instead of across and up. With r=∣z∣r=|z| and θ\theta the angle from the positive real axis, measured counterclockwise as in standard-position angles, you get:

z=r(cos⁡θ+isin⁡θ)=reiθ.z=r(\cos\theta+i\sin\theta)=re^{i\theta}.

The payoff is multiplication. The sum-angle identities show that (cos⁡α+isin⁡α)(cos⁡β+isin⁡β)=cos⁡(α+β)+isin⁡(α+β)(\cos\alpha+i\sin\alpha)(\cos\beta+i\sin\beta)=\cos(\alpha+\beta)+i\sin(\alpha+\beta). So moduli multiply and angles add. Multiplying by ii (modulus 11, angle 90∘90^\circ) rotates a point a quarter turn, and doing it twice is a half turn, which is exactly i2=−1i^2=-1. Repeating this gives De Moivre’s theorem: zn=rn(cos⁡nθ+isin⁡nθ)z^n=r^n(\cos n\theta+i\sin n\theta).

Worked example: compute (1+i)8(1+i)^8. Here r=2r=\sqrt2 and θ=π4\theta=\frac{\pi}{4}, so

(1+i)8=(2)8(cos⁡2π+isin⁡2π)=16.(1+i)^8=(\sqrt2)^8\left(\cos 2\pi+i\sin 2\pi\right)=16.

Check it by hand: (1+i)2=2i(1+i)^2=2i, and (2i)4=16i4=16(2i)^4=16i^4=16. The trap in polar form is the angle. A calculator’s inverse tangent only returns angles in quadrants I and IV. For −1+i-1+i it gives −π4-\frac{\pi}{4}, but the point is in quadrant II, so the correct angle is 3π4\frac{3\pi}{4}. Sketch the point first.

How do complex numbers solve quadratic equations?

Parabola y = x² − 6x + 13 with vertex (3, 4) matching the complex roots 3 ± 2i
The parabola y = x² − 6x + 13 never touches the x-axis, but its vertex (3, 4) gives the real part 3 and the imaginary part 2, since 2² = 4.

When the discriminant b2−4acb^2-4ac is negative, the quadratic formula still works. The square root just becomes a multiple of ii, and the two roots are conjugates. The derivation of the quadratic formula never assumes the roots are real, so nothing changes.

Worked example: solve x2−6x+13=0x^2-6x+13=0. Here a=1a=1, b=−6b=-6, c=13c=13, so the discriminant is 36−52=−1636-52=-16.

x=6±−162=6±4i2=3±2i.x=\frac{6\pm\sqrt{-16}}{2}=\frac{6\pm4i}{2}=3\pm2i.

Check with the sum and product of roots: (3+2i)+(3−2i)=6=−ba(3+2i)+(3-2i)=6=-\frac{b}{a} and (3+2i)(3−2i)=13=ca(3+2i)(3-2i)=13=\frac{c}{a}. The roots come as a conjugate pair because the formula has a ±\pm in front of the root.

The parabola explains the answer. The vertex is (3,4)(3,4), and the real part 33 is the xx-coordinate of the vertex. The imaginary part 22 satisfies 22=42^2=4, the height of the vertex above the axis. This works for a=1a=1. In other words, the parabola misses the axis, and the roots say by how much. If you prefer a different route, completing the square gives the same 3±2i3\pm2i, and the quadratic formula practice problems include more negative-discriminant cases.

Try this: Solve x2+4x+7=0x^2+4x+7=0 by completing the square, then confirm that your two roots add to −4-4 and multiply to 77.

Where are complex numbers used in real life?

The clearest use is alternating current. Engineers describe a resistor and a coil or capacitor with one complex impedance Z=R+jXZ=R+jX, where they write jj because ii already means current. A 3 Ω3\ \Omega resistor in series with a 4 Ω4\ \Omega reactance gives Z=3+4jZ=3+4j, so ∣Z∣=5 Ω|Z|=5\ \Omega and the current lags the voltage by tan⁡−143≈53.1∘\tan^{-1}\frac{4}{3}\approx53.1^\circ. Multiplying by ZZ scales the size and shifts the phase in one step, which is the polar rule from earlier.

The same idea of rotation and scaling drives signal processing, where the Fourier transform splits a sound or image into complex waves. In quantum mechanics, the state of a particle is described by complex-valued waves. Graphics code uses complex multiplication to rotate 2D points. The Mandelbrot set comes from repeating z↦z2+cz\mapsto z^2+c with complex zz and cc.

How do you check a complex number answer?

Most errors can be caught in seconds with a check that does not repeat the original work.

  • Undo the operation: add back after subtracting, multiply back after dividing.
  • Compare moduli: ∣zw∣=∣z∣∣w∣|zw|=|z||w| and ∣zw∣=∣z∣∣w∣\left|\frac{z}{w}\right|=\frac{|z|}{|w|}.
  • For a real quadratic, confirm that the roots are conjugates and that their sum is −ba-\frac{b}{a} and their product is ca\frac{c}{a}.

One trap deserves its own warning. The rule a⋅b=ab\sqrt a\cdot\sqrt b=\sqrt{ab} only holds when at least one of aa and bb is not negative. Pull out ii before you multiply:

−4⋅−9=2i⋅3i=6i2=−6,\sqrt{-4}\cdot\sqrt{-9}=2i\cdot3i=6i^2=-6,

not 36=6\sqrt{36}=6. If a problem mixes roots and negatives, rewrite every root of a negative in terms of ii first, then simplify. When a problem also mixes several operations, the usual order of operations applies, with i2i^2 replaced as soon as it appears.

Quick check

Simplify −16⋅−4\sqrt{-16}\cdot\sqrt{-4}.

Practice problems

0 of 5 solved

  1. Add: (6+2i)+(3−7i)(6+2i)+(3-7i)

  2. Multiply: (1+4i)(3−2i)(1+4i)(3-2i)

  3. Simplify: 3+i2−i\dfrac{3+i}{2-i}

  4. Solve x2+2x+10=0x^2+2x+10=0.

  5. Compute (1−i)6(1-i)^6.

Common questions

What is a complex number in simple terms?

A complex number is a two-part number written a+bia+bi, where aa and bb are ordinary real numbers and ii is defined by i2=−1i^2=-1. It can be plotted as the point (a,b)(a,b) on a plane. Every real number is also a complex number with b=0b=0.

Why are they called imaginary numbers if they are useful?

The word 'imaginary' was originally a mild insult from mathematicians who distrusted square roots of negatives. The numbers are as well defined as negatives or fractions, and engineers and physicists use them to model real waves, circuits and rotations.

Can you compare complex numbers, like saying one is bigger?

Not in the usual sense. Complex numbers lie on a plane, not a line, and no ordering works with the arithmetic rules. You can compare their sizes using the modulus ∣a+bi∣=a2+b2|a+bi|=\sqrt{a^2+b^2}.

What is the conjugate of a complex number used for?

The conjugate of a+bia+bi is a−bia-bi. Multiplying a number by its conjugate gives the real number a2+b2a^2+b^2, which is how you remove ii from a denominator when dividing.

How do you find the square root of a negative number?

Write the negative as a positive times −1-1 and pull out ii. For example, −25=25⋅−1=5i\sqrt{-25}=\sqrt{25}\cdot\sqrt{-1}=5i. Do this before multiplying roots together.

Do complex numbers always give two answers to a quadratic?

Yes. A quadratic with real coefficients and a negative discriminant has exactly two non-real roots, and they are conjugates of each other, like 3+2i3+2i and 3−2i3-2i.

Up next