Skip to content

Complex Numbers

Updated Β· Equations updated; Sections updated; Examples or practice updated; Explanations expanded What changed?
  1. β€” Equations updated; Sections updated; Examples or practice updated; Explanations expanded

A complex number has the form z=a+biz=a+bi, where a,ba,b are real and i2=βˆ’1i^2=-1. Add real and imaginary parts separately; multiply by expanding and replacing i2i^2 by βˆ’1-1.

The conjugate is zβ€Ύ=aβˆ’bi\overline z=a-bi. Multiplying a number by its conjugate produces a real number:

zzβ€Ύ=a2+b2=∣z∣2.z\overline z=a^2+b^2=\lvert z\rvert^2.

Here ∣z∣=a2+b2\lvert z\rvert=\sqrt{a^2+b^2} is the modulus, or distance from the origin. Conjugation preserves sums and products, so it is useful for both division and equations involving real coefficients.

Example. Write 3+4i1βˆ’2i\dfrac{3+4i}{1-2i} in the form a+bia+bi.

Multiply the numerator and denominator by the denominator’s conjugate:

3+4i1βˆ’2i=(3+4i)(1+2i)(1βˆ’2i)(1+2i)=βˆ’5+10i5=βˆ’1+2i.\frac{3+4i}{1-2i}=\frac{(3+4i)(1+2i)}{(1-2i)(1+2i)} =\frac{-5+10i}{5}=-1+2i.

The denominator becomes real because it is a modulus squared.

If a polynomial has real coefficients and zz is a root, then zβ€Ύ\overline z is also a root: conjugating P(z)=0P(z)=0 gives P(zβ€Ύ)=0P(\overline z)=0.


For a nonzero complex number, write

z=r(cos⁑θ+isin⁑θ),r=∣z∣>0.z=r(\cos\theta+i\sin\theta),\qquad r=\lvert z\rvert>0.

The angle ΞΈ\theta is an argument of zz and is determined up to multiples of 2Ο€2\pi. Multiplication multiplies moduli and adds arguments, so multiplying by a unit complex number rotates the plane.

Repeated multiplication gives De Moivre’s theorem:

(r(cos⁑θ+isin⁑θ))n=rn(cos⁑nθ+isin⁑nθ)\bigl(r(\cos\theta+i\sin\theta)\bigr)^n =r^n(\cos n\theta+i\sin n\theta)

for integers nn, with z≠0z\ne0 required if n<0n<0.

Example. Evaluate (1+i)12(1+i)^{12}.

The modulus of 1+i1+i is 2\sqrt2 and its argument is Ο€/4\pi/4. Thus

(1+i)12=(2)12(cos⁑3Ο€+isin⁑3Ο€)=βˆ’64.(1+i)^{12}=(\sqrt2)^{12}\left(\cos3\pi+i\sin3\pi\right)=-64.

Expanding twelve factors would hide the periodicity of the angle.

For roots, reverse the process. The nnth roots of r(cos⁑θ+isin⁑θ)r(\cos\theta+i\sin\theta) are

r1/n(cos⁑θ+2Ο€kn+isin⁑θ+2Ο€kn),k=0,1,…,nβˆ’1.r^{1/n}\left(\cos\frac{\theta+2\pi k}{n}+i\sin\frac{\theta+2\pi k}{n}\right), \qquad k=0,1,\ldots,n-1.

They are equally spaced around a circle. For instance, the cube roots of 88 are 22, βˆ’1+i3-1+i\sqrt3, and βˆ’1βˆ’i3-1-i\sqrt3.


The nnth roots of unity solve zn=1z^n=1. Let

Ο‰=cos⁑2Ο€n+isin⁑2Ο€n.\omega=\cos\frac{2\pi}{n}+i\sin\frac{2\pi}{n}.

The roots are 1,Ο‰,…,Ο‰nβˆ’11,\omega,\ldots,\omega^{n-1}. For n>1n>1, their sum is zero by the finite geometric-series formula. More generally,

βˆ‘j=0nβˆ’1Ο‰jk={n,n∣k,0,n∀k.\sum_{j=0}^{n-1}\omega^{jk}= \begin{cases} n,&n\mid k,\\ 0,&n\nmid k. \end{cases}

If n∀kn\nmid k, then Ο‰kβ‰ 1\omega^k\ne1 and the geometric numerator is 1βˆ’(Ο‰k)n=01-(\omega^k)^n=0. If n∣kn\mid k, every term is one.

Example. Let Ο‰\omega be a primitive fifth root of unity. Evaluate 1+Ο‰7+Ο‰14+Ο‰21+Ο‰281+\omega^7+\omega^{14}+\omega^{21}+\omega^{28}.

Reduce each exponent modulo 55. The exponents become 0,2,4,1,30,2,4,1,3, so the expression contains each fifth root once. Its value is 00.

Products can be found from a polynomial as well. Since

xnβˆ’1xβˆ’1=∏j=1nβˆ’1(xβˆ’Ο‰j),\frac{x^n-1}{x-1}=\prod_{j=1}^{n-1}(x-\omega^j),

evaluating at x=1x=1 gives ∏j=1nβˆ’1(1βˆ’Ο‰j)=n\prod_{j=1}^{n-1}(1-\omega^j)=n.


A roots-of-unity filter keeps only terms whose exponent has a chosen remainder. If F(x)=βˆ‘kakxkF(x)=\sum_k a_kx^k is a polynomial, then

βˆ‘k≑r(modn)ak=1nβˆ‘j=0nβˆ’1Ο‰βˆ’rjF(Ο‰j).\sum_{k\equiv r\pmod n}a_k =\frac1n\sum_{j=0}^{n-1}\omega^{-rj}F(\omega^j).

To understand the filter, expand the right side. The coefficient aka_k is multiplied by 1nβˆ‘jΟ‰j(kβˆ’r)\frac1n\sum_j\omega^{j(k-r)}, which is one for the wanted exponents and zero for the others.

Example. Evaluate βˆ‘k≑0(mod3)(6k)\displaystyle\sum_{k\equiv0\pmod3}\binom6k, where 0≀k≀60\le k\le6.

Use F(x)=(1+x)6F(x)=(1+x)^6 and a primitive cube root Ο‰\omega. Because 1+Ο‰+Ο‰2=01+\omega+\omega^2=0,

1+Ο‰=βˆ’Ο‰2,1+Ο‰2=βˆ’Ο‰.1+\omega=-\omega^2,\qquad1+\omega^2=-\omega.

Both have sixth power one. The filter gives

F(1)+F(Ο‰)+F(Ο‰2)3=64+1+13=22.\frac{F(1)+F(\omega)+F(\omega^2)}3=\frac{64+1+1}{3}=22.

This agrees with (60)+(63)+(66)=1+20+1\binom60+\binom63+\binom66=1+20+1.

Conjugation gives an algebraic way to separate real and imaginary parts:

Re⁑z=z+zβ€Ύ2,Im⁑z=zβˆ’zβ€Ύ2i.\operatorname{Re}z=\frac{z+\overline z}{2},\qquad \operatorname{Im}z=\frac{z-\overline z}{2i}.

If an equation involves both zz and zβ€Ύ\overline z linearly, conjugate the entire equation to obtain a second relation. Solve the resulting system rather than guessing the real and imaginary parts separately. Remember that conjugation also changes every occurrence of ii to βˆ’i-i.

Example. Find all complex numbers satisfying 2z+zβ€Ύ=6+4i2z+\overline z=6+4i.

Write z=x+iyz=x+iy. Then 2z+zβ€Ύ=3x+iy2z+\overline z=3x+iy, so 3x=63x=6 and y=4y=4. Thus z=2+4iz=2+4i. Alternatively, conjugate the equation to obtain z+2zβ€Ύ=6βˆ’4iz+2\overline z=6-4i and eliminate one variable.

For nonlinear equations, use zzβ€Ύ=∣z∣2z\overline z=\lvert z\rvert^2 to replace a product by a nonnegative real quantity. This supplies a useful sign restriction that is easy to miss if the symbols are treated as unrelated variables.

A polynomial with real coefficients has conjugate pairs of nonreal roots. Consequently, if 2+3i2+3i is a root, then (xβˆ’(2+3i))(xβˆ’(2βˆ’3i))=x2βˆ’4x+13(x-(2+3i))(x-(2-3i))=x^2-4x+13 is a real quadratic factor. This can reduce a seemingly complex factorization to ordinary real polynomial division.


The quantity ∣zβˆ’a∣\lvert z-a\rvert is the distance from the point zz to the point aa. An equation such as ∣zβˆ’a∣=r\lvert z-a\rvert=r describes a circle, while ∣zβˆ’a∣=∣zβˆ’b∣\lvert z-a\rvert=\lvert z-b\rvert describes the perpendicular bisector of the segment joining a,ba,b.

The triangle inequality,

∣z+wβˆ£β‰€βˆ£z∣+∣w∣,\lvert z+w\rvert\le\lvert z\rvert+\lvert w\rvert,

is the ordinary triangle inequality for the two vectors. Equality holds when the two nonzero vectors point in the same direction; a zero vector also permits equality. The reverse triangle inequality follows by applying this bound to z=(zβˆ’w)+wz=(z-w)+w:

∣∣zβˆ£βˆ’βˆ£wβˆ£βˆ£β‰€βˆ£zβˆ’w∣.\bigl\lvert\lvert z\rvert-\lvert w\rvert\bigr\rvert\le\lvert z-w\rvert.

Example. A complex number satisfies ∣zβˆ’1∣=2∣z+1∣\lvert z-1\rvert=2\lvert z+1\rvert. Describe all possible points zz.

Set z=x+iyz=x+iy and square the nonnegative distances:

(xβˆ’1)2+y2=4((x+1)2+y2).(x-1)^2+y^2=4((x+1)^2+y^2).

After collecting terms and completing the square,

(x+53)2+y2=169.\left(x+\frac53\right)^2+y^2=\frac{16}{9}.

Thus the locus is a circle centered at (βˆ’5/3,0)(-5/3,0) with radius 4/34/3. This is an example of an Apollonius circle: a fixed ratio of distances to two points.

A locus translation is especially helpful in optimization. If ∣z∣=3\lvert z\rvert=3, then the smallest and largest values of ∣zβˆ’5∣\lvert z-5\rvert are two and eight, attained along the real axis. The geometry proves attainability as well as the bounds; an inequality alone should still be accompanied by the points achieving equality.


Polar notation can be compressed using eiθ=cos⁑θ+isin⁑θe^{i\theta}=\cos\theta+i\sin\theta. This is shorthand for a unit complex number and makes multiplication rules easy to read. A finite sum of equally spaced angles is a geometric series:

1+eiΞΈ+β‹―+ei(nβˆ’1)ΞΈ=1βˆ’einΞΈ1βˆ’eiΞΈ.1+e^{i\theta}+\cdots+e^{i(n-1)\theta} =\frac{1-e^{in\theta}}{1-e^{i\theta}}.

Taking real or imaginary parts produces cosine or sine sums. The denominator is nonzero unless ΞΈ\theta is a multiple of 2Ο€2\pi; in that exceptional case every summand equals one.

A symmetric rewrite factors a half-angle from the numerator and denominator and yields

βˆ‘k=0nβˆ’1cos⁑(kΞΈ)=sin⁑(nΞΈ/2)cos⁑((nβˆ’1)ΞΈ/2)sin⁑(ΞΈ/2).\sum_{k=0}^{n-1}\cos(k\theta) =\frac{\sin(n\theta/2)\cos((n-1)\theta/2)}{\sin(\theta/2)}.

Do not memorize this formula independently of its origin. The geometric series usually adapts more easily when the sum starts at a different index or has alternating signs.

Example. Evaluate cos⁑(2Ο€/7)+cos⁑(4Ο€/7)+cos⁑(6Ο€/7)\cos(2\pi/7)+\cos(4\pi/7)+\cos(6\pi/7) exactly.

Let ΞΆ=e2Ο€i/7\zeta=e^{2\pi i/7}. The sum of all seven roots is zero. Pairing conjugate terms and taking real parts gives

1+2(cos⁑2Ο€7+cos⁑4Ο€7+cos⁑6Ο€7)=0.1+2\left(\cos\frac{2\pi}7+\cos\frac{4\pi}7+\cos\frac{6\pi}7\right)=0.

The desired value is negative one-half, even though none of the individual cosine values has a simple familiar-angle expression.


For primitive nnth root ΞΆ\zeta,

xnβˆ’1=(xβˆ’1)∏k=1nβˆ’1(xβˆ’ΞΆk).x^n-1=(x-1)\prod_{k=1}^{n-1}(x-\zeta^k).

Evaluating this factorization is often much easier than multiplying its complex factors. It also handles products that appear as distances: take moduli after evaluating the algebraic product.

Example. Let ΞΆ\zeta be a primitive seventh root of unity. Evaluate ∏k=16(2βˆ’ΞΆk)\prod_{k=1}^{6}(2-\zeta^k).

Evaluate the quotient polynomial at two:

∏k=16(2βˆ’ΞΆk)=27βˆ’12βˆ’1=127.\prod_{k=1}^{6}(2-\zeta^k)=\frac{2^7-1}{2-1}=127.

The product is real because the factors occur in conjugate pairs. The factorization supplies its exact value without any approximate trigonometry.

For a regular nn-gon on the unit circle, the distances from the vertex one to all other vertices have product nn, since ∏k=1nβˆ’1(1βˆ’ΞΆk)=n\prod_{k=1}^{n-1}(1-\zeta^k)=n. On a circle of radius RR, every distance scales by RR, giving product nRnβˆ’1nR^{n-1}. Keep the number of factors in mind when restoring the geometric scale.


Suppose P(x)=∏j(xβˆ’rj)P(x)=\prod_j(x-r_j) and P(t)β‰ 0P(t)\ne0. Differentiate the product and divide by it:

Pβ€²(t)P(t)=βˆ‘j1tβˆ’rj.\frac{P'(t)}{P(t)}=\sum_j\frac1{t-r_j}.

This is the logarithmic derivative identity; no choice of a complex logarithm is needed because it follows directly from the product rule. A second derivative gives

βˆ‘j1(tβˆ’rj)2=(Pβ€²(t)P(t))2βˆ’Pβ€²β€²(t)P(t).\sum_j\frac1{(t-r_j)^2} =\left(\frac{P'(t)}{P(t)}\right)^2-\frac{P''(t)}{P(t)}.

These formulas turn reciprocal expressions in roots into values of a polynomial and its derivatives.

Example. For primitive nnth root ΞΆ\zeta with n>1n>1, evaluate βˆ‘k=1nβˆ’11/(1βˆ’ΞΆk)\sum_{k=1}^{n-1}1/(1-\zeta^k).

Use P(x)=1+x+β‹―+xnβˆ’1P(x)=1+x+\cdots+x^{n-1}. At one,

P(1)=n,Pβ€²(1)=1+2+β‹―+(nβˆ’1)=n(nβˆ’1)2.P(1)=n,\qquad P'(1)=1+2+\cdots+(n-1)=\frac{n(n-1)}2.

The logarithmic derivative therefore gives the sum (nβˆ’1)/2(n-1)/2. Pairing ΞΆk\zeta^k with its reciprocal gives another explanation: the corresponding two reciprocal terms sum to one.

For a harder distance sum, the second derivative gives

S2=βˆ‘k=1nβˆ’11(1βˆ’ΞΆk)2=(nβˆ’1)(5βˆ’n)12.S_2=\sum_{k=1}^{n-1}\frac1{(1-\zeta^k)^2} =\frac{(n-1)(5-n)}{12}.

Indeed, Pβ€²β€²(1)=n(nβˆ’1)(nβˆ’2)/3P''(1)=n(n-1)(n-2)/3, obtained by summing j(jβˆ’1)j(j-1). Although some terms of this complex sum can have negative real parts, the geometric squared-distance sum is positive. Since ΞΆkβ€Ύ=ΞΆβˆ’k\overline{\zeta^k}=\zeta^{-k},

1∣1βˆ’ΞΆk∣2=βˆ’ΞΆk(1βˆ’ΞΆk)2=11βˆ’ΞΆkβˆ’1(1βˆ’ΞΆk)2.\frac1{\lvert1-\zeta^k\rvert^2} =-\frac{\zeta^k}{(1-\zeta^k)^2} =\frac1{1-\zeta^k}-\frac1{(1-\zeta^k)^2}.

Summing gives βˆ‘k=1nβˆ’1∣1βˆ’ΞΆkβˆ£βˆ’2=(n2βˆ’1)/12\sum_{k=1}^{n-1}\lvert1-\zeta^k\rvert^{-2}=(n^2-1)/12. This example combines conjugation, roots of unity, and polynomial differentiation; each tool removes one difficult feature of the original expression.


For a polynomial F(x)=βˆ‘kakxkF(x)=\sum_k a_kx^k, filtering exponents congruent to rr requires the weight ΞΆβˆ’rj\zeta^{-rj}. Without that weight, the filter selects only exponents divisible by nn. Work out the contribution of one monomial if you are unsure which sign to use.

Example. How many subsets of a twelve-element set have size congruent to one modulo three?

Use F(x)=(1+x)12F(x)=(1+x)^{12} and a primitive cube root Ο‰\omega. The required count is

F(1)+Ο‰βˆ’1F(Ο‰)+Ο‰βˆ’2F(Ο‰2)3.\frac{F(1)+\omega^{-1}F(\omega)+\omega^{-2}F(\omega^2)}3.

Both F(Ο‰)F(\omega) and F(Ο‰2)F(\omega^2) are one, because 1+Ο‰=βˆ’Ο‰21+\omega=-\omega^2 and twelve is a multiple of six. The weighted terms sum to Ο‰+Ο‰2=βˆ’1\omega+\omega^2=-1. Thus the count is (4096βˆ’1)/3=1365(4096-1)/3=1365.


Roots of unity can produce a low-degree polynomial for a trigonometric expression even when its individual radicals are inconvenient. Pair opposite exponents and use t=z+zβˆ’1t=z+z^{-1}. The identities for z2+zβˆ’2z^2+z^{-2} and z3+zβˆ’3z^3+z^{-3} then turn a complex equation into a real polynomial.

Example. Find a cubic whose roots are cos⁑(2Ο€/7),cos⁑(4Ο€/7),cos⁑(6Ο€/7)\cos(2\pi/7),\cos(4\pi/7),\cos(6\pi/7), and evaluate their product.

For a nontrivial seventh root zz, divide 1+z+β‹―+z6=01+z+\cdots+z^6=0 by z3z^3:

1+(z+zβˆ’1)+(z2+zβˆ’2)+(z3+zβˆ’3)=0.1+(z+z^{-1})+(z^2+z^{-2})+(z^3+z^{-3})=0.

Setting t=z+zβˆ’1t=z+z^{-1} gives t3+t2βˆ’2tβˆ’1=0t^3+t^2-2t-1=0. With t=2ut=2u, the cosine values satisfy

8u3+4u2βˆ’4uβˆ’1=0.8u^3+4u^2-4u-1=0.

The three specified cosine values are distinct and supply all three roots. Vieta therefore gives their product as one-eighth and their sum as negative one-half.

The distinctness and degree check complete the argument: merely showing that each value satisfies a cubic would not identify its full root list if repeated values were possible.

This method is useful for symmetric expressions in several related angles. Once the polynomial is known, Vieta or Newton sums can evaluate those expressions without ever solving the cubic.


When a complex number satisfies several power equations, reduce the exponents using one equation before listing roots. Two large root sets may have a much smaller intersection.

Example. Find all complex numbers satisfying z12=1z^{12}=1 and z18=βˆ’1z^{18}=-1.

The first equation implies zβ‰ 0z\ne0 and z18=z6z^{18}=z^6. Thus the two conditions are equivalent to z6=βˆ’1z^6=-1: this equation implies z12=1z^{12}=1 automatically.

The complete list is

z=cos⁑(2k+1)Ο€6+isin⁑(2k+1)Ο€6,k=0,1,…,5.z=\cos\frac{(2k+1)\pi}{6}+i\sin\frac{(2k+1)\pi}{6}, \qquad k=0,1,\ldots,5.

There are six solutions. Their sum is zero and their product is one by the polynomial z6+1z^6+1. Counting twelve roots and eighteen roots separately would not determine the intersection.

For two equations zm=zn=1z^m=z^n=1, the solutions are exactly the gcd⁑(m,n)\gcd(m,n)th roots of unity. BΓ©zout’s identity applied to the exponents proves one direction using negative powers, which are allowed because zβ‰ 0z\ne0. The reverse direction follows because the exponent GCD divides both original exponents.


A roots-of-unity filter for a polynomial has no convergence issue. For an infinite generating series, substituting z=1,Ο‰,Ο‰2z=1,\omega,\omega^2 requires convergence at those points. A formal power-series identity does not by itself authorize evaluating at a nonzero number.

One safe approach is to filter a finite partial sum first and then justify the limit by absolute convergence. Another is to apply the filter inside a disk where the series converges absolutely. The algebraic selector still works, but exchanging its finite average with an infinite sum requires that analytic step.

This distinction becomes useful when a contest expression mixes exponential series, factorial denominators, and congruence classes of indices. The factorial series converges absolutely everywhere, whereas a geometric generating function may fail at a unit root. Check the actual series before carrying a polynomial trick into an infinite setting.


For a unit complex number,

∣1+z∣2=2+z+zβ€Ύ=2+2Re⁑z.\lvert1+z\rvert^2=2+z+\overline z=2+2\operatorname{Re}z.

Thus a distance can determine the real part and force a short root-of-unity period.

Example. Suppose ∣z∣=1\lvert z\rvert=1 and ∣1+z∣=3\lvert1+z\rvert=\sqrt3. Find z2026+zβˆ’2026z^{2026}+z^{-2026}.

The distance identity gives Re⁑z=1/2\operatorname{Re}z=1/2. The unit-circle condition then gives z=1/2Β±i3/2z=1/2\pm i\sqrt3/2. Hence z6=1z^6=1 and z3=βˆ’1z^3=-1.

Reduce 2026 modulo six to four. The requested expression is z4+zβˆ’4=2cos⁑(4Ο€/3)=βˆ’1z^4+z^{-4}=2\cos(4\pi/3)=-1, independent of the conjugate choice.

This combines a geometric modulus condition with an algebraic periodicity argument. Keeping both conjugate candidates avoids choosing an angle sign that the original data did not specify.