Bookmarks    
nPr and nCr    
Random Number    
SD Calculator    
Sample Size    
Percent Error    
Density    
Molarity    
Molar Mass    
Ohm's Law    
Watts to Amps    
Voltage Drop    
Long Division    
Mixed Numbers    
Rounding    
Nth Root    
Exponents    
Half-Life    
Polar Form    
De Moivre    
3D Distance    
Point to Line    
Cross Product    
Determinant    
Sin Cos Tan    
Triangle Area    
Scale Factor    
Sector Area    
Ellipse Area    
Cube Volume    
Box Volume    
Sphere Volume    
Cone Volume    
Pipe Volume    
Time Duration    
Time Card    
Present Value    
Future Value    
Churn Rate    
A/B Test Calc    
SEO Traffic    
Ideal Weight    
Fat Intake    
Child Height    
Golf Handicap    
Heat Index    
Wind Chill    
Dew Point    
Download Time    
kWh to Cost    
AC Size (BTU)    
Heating Costs    
LED Savings    
Trip Gas Cost    
Tire Size    
Solar Output    
Solar Payback    
Battery Size    
Wall Area    
Gravel Needed    
Mortar Mix    
Slope Grade    
Curtain Size    
Soil Needed    
Sod Needed    
Ramp Length    
Blind Size    
Drain Slope    
Board Feet    
Heat Loss    
Furniture Fit    
Moving Boxes    
Plywood Cuts    
Shelf Sag    
   Add
Probability and random number calculators
Independent Events
Independent Events
Two Events Solver
Two Events Solver
Repeated Trials
Repeated Trials
Bayes' Theorem
Bayes' Theorem
Expected Value
Expected Value
Binomial Distribution
Binomial Distribution
nPr and nCr
nPr and nCr
Circular Permutation
Circular Permutation
With Repetition
With Repetition
Random Number
Random Number
Averages and statistics calculators
Average Calculator
Average Calculator
Mean Median Mode
Mean Median Mode
SD Calculator
SD Calculator
Quartiles & IQR
Quartiles & IQR
Frequency Table
Frequency Table
Correlation (r)
Correlation (r)
Normal Probability
Normal Probability
Z-Score Calculator
Z-Score Calculator
Confidence Interval
Confidence Interval
Sample Size
Sample Size
Mark & Recapture
Mark & Recapture
P-Value Calculator
P-Value Calculator
Percentage and ratio calculators
Percentage Calc
Percentage Calc
Percent Change
Percent Change
Percent Difference
Percent Difference
Percent Error
Percent Error
Ratio Calculator
Ratio Calculator
Discount Calculator
Discount Calculator
Sales Tax Calculator
Sales Tax Calculator
Margin Calculator
Margin Calculator
Speed calculators
Speed Calculator
Speed Calculator
Density and concentration calculators
Density
Density
Molarity
Molarity
Molar Mass
Molar Mass
Physics and electricity calculators
Ohm's Law
Ohm's Law
Watts to Amps
Watts to Amps
Resistor Colors
Resistor Colors
Voltage Drop
Voltage Drop
Unit conversion calculators
Weight Converter
Weight Converter
Shoe Size Converter
Shoe Size Converter
Integer and signed number calculators
Long Division
Long Division
LCM Calculator
LCM Calculator
GCF Calculator
GCF Calculator
Integer Calculator
Integer Calculator
Prime Factorization
Prime Factorization
Diophantine Solver
Diophantine Solver
Modulo Calculator
Modulo Calculator
Factor Calculator
Factor Calculator
Roman Numerals
Roman Numerals
Fraction, decimal and rounding calculators
Fraction Calculator
Fraction Calculator
Mixed Numbers
Mixed Numbers
Simplify Fractions
Simplify Fractions
Fraction to Decimal
Fraction to Decimal
Decimal to Fraction
Decimal to Fraction
Rounding
Rounding
Equation and inequality calculators
Linear Equation
Linear Equation
Linear Systems
Linear Systems
Quadratic Formula
Quadratic Formula
Absolute Value
Absolute Value
Quadratic Inequality
Quadratic Inequality
Polynomial calculators
Binomial Theorem
Binomial Theorem
Square root and nth root calculators
Simplify Radicals
Simplify Radicals
Nth Root
Nth Root
Exponent and logarithm calculators
Exponents
Exponents
Log Calculator
Log Calculator
Number of Digits
Number of Digits
Scientific Notation
Scientific Notation
Sci. Notation Math
Sci. Notation Math
Half-Life
Half-Life
Complex number calculators
Complex Numbers
Complex Numbers
Polar Form
Polar Form
De Moivre
De Moivre
Function and graph calculators
Slope Calculator
Slope Calculator
Linear Function
Linear Function
Direct & Inverse Variation
Direct & Inverse Variation
y = ax² Calculator
y = ax² Calculator
Distance Formula
Distance Formula
3D Distance
3D Distance
Section Formula
Section Formula
Point to Line
Point to Line
Lat/Long Distance
Lat/Long Distance
Complete the Square
Complete the Square
Circle Equation
Circle Equation
Conic Sections
Conic Sections
Polar Coordinates
Polar Coordinates
Sequence calculators
Arithmetic Sequence
Arithmetic Sequence
Geometric Sequence
Geometric Sequence
Fibonacci Sequence
Fibonacci Sequence
Recurrence Relation
Recurrence Relation
Vector calculators
Vector Calculator
Vector Calculator
Cross Product
Cross Product
Matrix calculators
Matrix Calculator
Matrix Calculator
Determinant
Determinant
Inverse Matrix
Inverse Matrix
Plane geometry calculators
Sin Cos Tan
Sin Cos Tan
Degrees ⇔ Radians
Degrees ⇔ Radians
a sin θ + b cos θ
a sin θ + b cos θ
Triangle Solver
Triangle Solver
Triangle Area
Triangle Area
Right Triangle
Right Triangle
Pythagorean Theorem
Pythagorean Theorem
Polygon Angles
Polygon Angles
Scale Factor
Scale Factor
Parallel Lines
Parallel Lines
Rectangle Area
Rectangle Area
Parallelogram Area
Parallelogram Area
Trapezoid Area
Trapezoid Area
Circle Calculator
Circle Calculator
Sector Area
Sector Area
Inscribed Angle
Inscribed Angle
Ellipse Area
Ellipse Area
Solid geometry calculators
Cube Volume
Cube Volume
Cube Surface Area
Cube Surface Area
Box Volume
Box Volume
Box Surface Area
Box Surface Area
Cylinder Volume
Cylinder Volume
Cylinder Surface
Cylinder Surface
Sphere Volume
Sphere Volume
Sphere Surface
Sphere Surface
Spherical Cap Volume
Spherical Cap Volume
Cap Surface Area
Cap Surface Area
Ellipsoid Volume
Ellipsoid Volume
Ellipsoid Surface
Ellipsoid Surface
Pyramid Volume
Pyramid Volume
Pyramid Surface
Pyramid Surface
Cone Volume
Cone Volume
Cone Surface Area
Cone Surface Area
Frustum Volume
Frustum Volume
Frustum Surface Area
Frustum Surface Area
Pipe Volume
Pipe Volume
Capsule Volume
Capsule Volume
Capsule Surface Area
Capsule Surface Area
Date and time calculators
Age Calculator
Age Calculator
Days Between Dates
Days Between Dates
Date Calculator
Date Calculator
Hours From Now
Hours From Now
Day of the Week
Day of the Week
Time Calculator
Time Calculator
Time Zone Converter
Time Zone Converter
Hours Calculator
Hours Calculator
Time Duration
Time Duration
Time Card
Time Card
Finance and economics calculators
Compound Interest
Compound Interest
Simple Interest
Simple Interest
Interest Calculator
Interest Calculator
TVM Calculator
TVM Calculator
Present Value
Present Value
Future Value
Future Value
ROI Calculator
ROI Calculator
IRR Calculator
IRR Calculator
Payback Period
Payback Period
Average Return
Average Return
GDP Calculator
GDP Calculator
Web marketing and ad metric calculators
CTR Calculator
CTR Calculator
Conversion Rate
Conversion Rate
CPC, CPM & CPA
CPC, CPM & CPA
ROAS Calculator
ROAS Calculator
Break-Even CPA
Break-Even CPA
LTV Calculator
LTV Calculator
CAC Calculator
CAC Calculator
Churn Rate
Churn Rate
A/B Test Calc
A/B Test Calc
A/B Sample Size
A/B Sample Size
SEO Traffic
SEO Traffic
Break-Even Point
Break-Even Point
Markup vs. Margin
Markup vs. Margin
CAGR Calculator
CAGR Calculator
Health and fitness calculators
BMI Calculator
BMI Calculator
Sleep Calculator
Sleep Calculator
Calorie Calculator
Calorie Calculator
BMR Calculator
BMR Calculator
TDEE Calculator
TDEE Calculator
Ideal Weight
Ideal Weight
Body Fat Calculator
Body Fat Calculator
Lean Body Mass
Lean Body Mass
Calories Burned
Calories Burned
Protein Intake
Protein Intake
Macro Calculator
Macro Calculator
Carb Calculator
Carb Calculator
Fat Intake
Fat Intake
Child Height
Child Height
Sports calculators
Golf Handicap
Golf Handicap
Pace Calculator
Pace Calculator
1RM Calculator
1RM Calculator
Target Heart Rate
Target Heart Rate
Weather calculators
Heat Index
Heat Index
Wind Chill
Wind Chill
Dew Point
Dew Point
Computer calculators
Base Converter
Base Converter
Subnet Calculator
Subnet Calculator
Download Time
Download Time
Household energy and budget calculators
Electricity Cost
Electricity Cost
kWh to Cost
kWh to Cost
Yearly kWh to Cost
Yearly kWh to Cost
AC Size (BTU)
AC Size (BTU)
AC Running Cost
AC Running Cost
Heating Costs
Heating Costs
Gas vs Electric
Gas vs Electric
LED Savings
LED Savings
Salary Calculator
Salary Calculator
Budget Calculator
Budget Calculator
Car calculators
Trip Gas Cost
Trip Gas Cost
EV Charging Cost
EV Charging Cost
EV vs Gas Cost
EV vs Gas Cost
MPG Calculator
MPG Calculator
Tire Size
Tire Size
Solar power and battery calculators
Solar Output
Solar Output
Solar Panel Count
Solar Panel Count
Solar Payback
Solar Payback
Battery Size
Battery Size
Home and DIY calculators
Tile Calculator
Tile Calculator
Stair Calculator
Stair Calculator
Concrete Volume
Concrete Volume
Wall Area
Wall Area
Wallpaper Rolls
Wallpaper Rolls
Paint Calculator
Paint Calculator
Flooring Needed
Flooring Needed
Exterior Walls
Exterior Walls
Gravel Needed
Gravel Needed
Mortar Mix
Mortar Mix
Slope Grade
Slope Grade
Lumber Cut List
Lumber Cut List
Lot Coverage/FAR
Lot Coverage/FAR
Sheet Vinyl Roll
Sheet Vinyl Roll
Insulation Needed
Insulation Needed
Curtain Size
Curtain Size
TV Size & Distance
TV Size & Distance
Soil Needed
Soil Needed
Sod Needed
Sod Needed
Block Calculator
Block Calculator
Brick Calculator
Brick Calculator
Deck Materials
Deck Materials
Ramp Length
Ramp Length
Pilot Hole Size
Pilot Hole Size
Room Ventilation
Room Ventilation
Paint Thinning
Paint Thinning
Baseboard & Trim
Baseboard & Trim
Blind Size
Blind Size
Picture Hanging
Picture Hanging
Drain Slope
Drain Slope
Screw Calculator
Screw Calculator
Board Feet
Board Feet
Fence Calculator
Fence Calculator
Wood Shrinkage
Wood Shrinkage
Caulk Calculator
Caulk Calculator
Heat Loss
Heat Loss
Furniture Fit
Furniture Fit
Moving Boxes
Moving Boxes
Storage Capacity
Storage Capacity
Plywood Cuts
Plywood Cuts
Shelf Sag
Shelf Sag

De Moivre's Theorem Calculator (Powers and nth Roots of Complex Numbers with Steps and a Polygon Graph)

Choose what to find, then enter the real part a and the imaginary part b of z = a + bi, and the whole number n. The expression below is linked to the input fields, so you can also edit the numbers directly in it.

The real and imaginary parts can be decimals, negative numbers or fractions such as 3/4 (a blank is treated as 0). n is a whole number from 1 to 20 for powers and from 2 to 12 for roots.
Result and figure
Enter the numbers in the fields on the left and press "Calculate". The result and a graph on the complex plane will appear here.

What you can do on this page

  • Find the \(n\)th power \(z^n\) of a complex number \(z = a + bi\) for a whole number \(n\) (1 to 20) on the spot. Built on De Moivre's theorem \(\left(\cos\theta + i\sin\theta\right)^n = \cos n\theta + i\sin n\theta\), the steps show one at a time the absolute value raised to the power, \(r^n\), and the argument multiplied by \(n\), \(n\theta\)
  • The answer \(z^n\) is always shown as an exact value with whole numbers and fractions. When the argument is a special angle (on an axis or a multiple of 45°), the steps also use exact trig values
  • In nth roots mode, it lists all \(n\) complex numbers \(w\) with \(w^n = z\) (the \(n\)th roots of \(z\)), from \(k = 0\) to \(n-1\) (\(n\) from 2 to 12). Roots that can be written exactly are given as exact values, such as \(-1 + \sqrt{3}i\)
  • You can also see the result on the complex plane. The \(n\)th roots appear as a regular polygon with \(n\) sides, evenly spaced on a circle of radius \(\sqrt[n]{r}\), and a power appears as the points \(z\) and \(z^n\) with arcs for their arguments
  • The expression above the input fields (MathLive) is linked to them, so you can also edit the numbers in \(\left(1 + i\right)^{4}\) directly
This page covers De Moivre's theorem as taught in Precalculus. The real and imaginary parts can be fractions or decimals (rational numbers); irrational numbers such as √3 cannot be entered directly. So the argument is an exact fraction of π only when the point is on an axis or the angle is a multiple of 45° (for angles based on 30° and 60°, the ratio of the real and imaginary parts is an irrational number such as √3, which cannot come from rational inputs). Other arguments are approximated with decimals, but the answer to the power itself is the exact value found by repeated multiplication.

What is this calculation used for?

Deriving the double- and triple-angle formulas (Precalculus)

Set \(n = 2\) or \(3\) in De Moivre's theorem, expand the left side, and compare the real and imaginary parts. This gives the double- and triple-angle formulas in one go, such as \(\cos 2\theta = \cos^2\theta - \sin^2\theta\) and \(\cos 3\theta = 4\cos^3\theta - 3\cos\theta\).
The strength is that you can rebuild the formulas yourself from this theorem instead of memorizing them, and "use De Moivre's theorem to derive the triple-angle formula" is a classic Precalculus exercise. It is a theorem with a great view, tying together trigonometry and complex numbers, two topics you learned separately.

Digital processing of music and images (discrete Fourier transform)

Behind listening to music or saving a photo on your phone runs a calculation called the discrete Fourier transform, which breaks a signal down into "how much of each wave pitch is in it". The heart of this calculation is the \(n\)th roots of unity: each data value of the signal is multiplied by a power of an \(n\)th root of unity, and the results are added up.
Audio compression, image compression (the transforms used in JPEG), noise removal, speech recognition and other technologies for digital sound and images are all built on the "complex numbers that split a circle evenly" on this page.

Three-phase electricity (generation, transmission and motors)

The three-phase AC power sent from power plants to factories and large buildings is made of three waves whose timing is shifted by 120° from each other. Written with complex numbers, these "120° shifts" are exactly the cube roots of unity \(1,\ \omega,\ \omega^2\). The three waves add up to 0 (\(1 + \omega + \omega^2 = 0\)), and this cancellation is the very reason three-phase power saves on transmission wires.
The design of the utility grid and the control of factory motors are built on this property of the cube roots of unity.

Placing the vertices of a regular polygon (games, computer graphics and design)

In games and graphics, tasks such as "placing enemies evenly around a circle", "placing the corners of a radar chart" or "drawing the marks on a clock face" are nothing more than finding the coordinates \(\left(\cos\dfrac{2k\pi}{n},\ \sin\dfrac{2k\pi}{n}\right)\) of the points that split a circle into \(n\) equal parts. This is exactly the layout of the \(n\)th roots of unity.
In programming, multiplying a complex number by an \(n\)th root of unity is enough to "rotate a point to the next vertex", so it is used as a simple tool for rotating and evenly spacing things.

Formulas and figures

De Moivre's theorem
Figure (on the unit circle, each multiplication adds θ to the argument)
Standard notation (the usual math form)
\(\left(\cos\theta + i\sin\theta\right)\) \(n\) \(=\) \(\cos n\theta + i\sin n\theta\)
In words (symbols replaced with words)
① direction given by the argument \(\theta\) ② whole number \(n\) \(=\) ③ direction given by the argument times \(n\)
The formula in words
① Raise the direction part for the argument \(\theta\), \(\cos\theta + i\sin\theta\)
② to the power of the whole number \(n\)
③ and you get the direction part for the argument times \(n\), \(\cos n\theta + i\sin n\theta\)
Quick example
Cubing the direction for \(\theta = \dfrac{\pi}{6}\) (30°) triples the argument to \(\dfrac{\pi}{2}\) (90°):
\(\cos\dfrac{\pi}{6} + i\sin\dfrac{\pi}{6}\) 3 \(=\) \(\cos\dfrac{\pi}{2} + i\sin\dfrac{\pi}{2}\)
\(\left(\cos\dfrac{\pi}{6} + i\sin\dfrac{\pi}{6}\right)^{3} = \cos\dfrac{\pi}{2} + i\sin\dfrac{\pi}{2}\)
\(\cos\dfrac{\pi}{2} + i\sin\dfrac{\pi}{2} = 0 + 1 \times i = i\)
Key idea
This theorem rests on the rule for multiplying in polar form: "multiply the absolute values, add the arguments". Multiply the complex number \(\cos\theta + i\sin\theta\), whose absolute value is 1, by itself \(n\) times, and \(\theta\) is added \(n\) times to give the argument \(n\theta\). That is all the theorem says. As a quick check, squaring \(i = \cos\dfrac{\pi}{2} + i\sin\dfrac{\pi}{2}\) (the 90° direction) doubles the argument to \(\pi\) (180°), giving \(\cos\pi + i\sin\pi = -1\). This is exactly \(i^2 = -1\). The idea "multiplying by \(i\) is a 90° rotation" on the complex plane is extended to any angle by this theorem. The theorem also holds when \(n\) is a negative integer (\(n = -1\) is a rotation in the opposite direction). The calculator on this page works with positive whole numbers.
The \(n\)th power of a complex number
Standard notation (the usual math form)
\(z^{n}\) \(=\) \(r^{n}\) \(\left(\cos n\theta + i\sin n\theta\right)\)
In words (symbols replaced with words)
③ \(z\) to the \(n\)th power \(=\) ① absolute value \(r\) to the \(n\)th power ② direction given by the argument times \(n\)
The formula in words
① Take the absolute value \(r\) to the \(n\)th power (the distance from the origin)
② multiply it by the direction part for the argument times \(n\), \(\cos n\theta + i\sin n\theta\)
③ and you get the \(n\)th power of \(z\), \(z^n\)
Quick example
The 4th power of \(z = 1 + i\) (absolute value \(r = \sqrt{2}\), argument \(\theta = \dfrac{\pi}{4}\), or 45°) is
\(\left(1 + i\right)^{4}\) \(=\) \(\left(\sqrt{2}\right)^{4}\) \(\cos\pi + i\sin\pi\)
\(r^{4} = \left(\sqrt{2}\right)^{4} = 4\)
\(4\theta = 4 \times \dfrac{\pi}{4} = \pi\)
\(z^{4} = 4\left(\cos\pi + i\sin\pi\right) = 4 \times \left(-1\right) = -4\)
Key idea
"Raise the absolute value to the \(n\)th power, multiply the argument by \(n\)." Work out these two separately, and you get the \(n\)th power in one go. If you compute the same \(\left(1 + i\right)^4\) in rectangular form, you have to expand again and again: first \(\left(1 + i\right)^2 = 2i\), then square that. A 4th power is still manageable by hand, but for a 10th or 20th power, expanding is almost impossible. In polar form you only compute \(\left(\sqrt{2}\right)^{10}\) and \(10 \times 45^{\circ}\), and the work hardly changes whatever the power. That is the biggest advantage of this theorem.
The \(n\)th roots of a complex number
Figure (cube roots of 8: an equilateral triangle evenly spaced on a circle of radius 2)
Standard notation (the usual math form)
\(w_{k}\) \(=\) \(\sqrt[n]{r}\) \(\left(\cos\dfrac{\theta + 2k\pi}{n} + i\sin\dfrac{\theta + 2k\pi}{n}\right)\)
In words (symbols replaced with words)
③ \(k\)th \(n\)th root of \(z\) \(=\) ① \(n\)th root of the absolute value \(r\) (radius of the circle) ② direction: argument plus \(k\) full turns, divided by \(n\)
The formula in words
① Take the \(n\)th root of the absolute value, \(\sqrt[n]{r}\) (the radius of the circle all the roots lie on)
② multiply it by the direction part for the argument \(\theta\) plus \(k\) full turns (\(2\pi\) each), divided by \(n\)
③ and you get the \(k\)th \(n\)th root of \(z\), \(w_k\) (letting \(k\) run through \(0,\ 1,\ \ldots,\ n-1\) gives all \(n\) roots)
Quick example
The cube roots of \(z = 8\) (absolute value \(r = 8\), argument \(\theta = 0\)), with radius \(\sqrt[3]{8} = 2\), are
cube root \(w_k\) \(=\) radius \(2\) \(\cos\dfrac{2k\pi}{3} + i\sin\dfrac{2k\pi}{3}\)
\(w_{0} = 2\left(\cos 0 + i\sin 0\right) = 2\)
\(w_{1} = 2\left(\cos\dfrac{2}{3}\pi + i\sin\dfrac{2}{3}\pi\right) = -1 + \sqrt{3}i\)
\(w_{2} = 2\left(\cos\dfrac{4}{3}\pi + i\sin\dfrac{4}{3}\pi\right) = -1 - \sqrt{3}i\)
Key idea
Why are there as many as \(n\) roots? The key is that adding a full turn (\(2\pi\)) to an argument gives the same direction. The argument of \(z\) can be written as \(\theta\), as \(\theta + 2\pi\), or as \(\theta + 4\pi\). To find \(n\)th roots you divide the argument by \(n\), so these different ways of writing it turn into different directions: \(\dfrac{\theta}{n},\ \dfrac{\theta + 2\pi}{n},\ \dfrac{\theta + 4\pi}{n},\ \ldots\). When \(k\) reaches \(n\), you have gone exactly one full turn and are back at the same point as \(k = 0\), so there are exactly \(n\) different points. Neighboring roots always differ in argument by \(\dfrac{2\pi}{n}\) (one full turn split into \(n\) equal parts), so the \(n\) roots are evenly spaced on the same circle. In other words, the \(n\)th roots are the vertices of a regular polygon with \(n\) sides. This is why a regular polygon always appears in this calculator's graph.
The \(n\)th roots of unity
Standard notation (the usual math form)
\(z_{k}\) \(=\) \(\cos\dfrac{2k\pi}{n} + i\sin\dfrac{2k\pi}{n}\)
In words (symbols replaced with words)
② \(k\)th \(n\)th root of 1 \(=\) ① \(k\)th direction when a full turn is split into \(n\) equal parts
The formula in words
① Split a full turn of the circle of radius 1 into \(n\) equal parts. The \(k\)th direction, \(\cos\dfrac{2k\pi}{n} + i\sin\dfrac{2k\pi}{n}\)
② is the \(k\)th \(n\)th root of 1, \(z_k\) (there are \(n\) of them, for \(k = 0,\ 1,\ \ldots,\ n-1\))
Quick example
The cube roots of 1 (the complex numbers with \(z^3 = 1\)) split a full turn of the unit circle into 3 equal parts:
cube root \(z_k\) \(=\) \(\cos\dfrac{2k\pi}{3} + i\sin\dfrac{2k\pi}{3}\)
\(z_{0} = \cos 0 + i\sin 0 = 1\)
\(z_{1} = \cos\dfrac{2}{3}\pi + i\sin\dfrac{2}{3}\pi = -\dfrac{1}{2} + \dfrac{\sqrt{3}}{2}i\)
\(z_{2} = \cos\dfrac{4}{3}\pi + i\sin\dfrac{4}{3}\pi = -\dfrac{1}{2} - \dfrac{\sqrt{3}}{2}i\)
Key idea
\(z = 1\) has absolute value \(1\) and argument \(0\), so this is the special case \(r = 1,\ \theta = 0\) of the \(n\)th root formula above. All the roots lie on the unit circle (the circle of radius 1) and form a regular polygon with \(n\) sides that has \(z_0 = 1\) as one vertex. The imaginary cube root of 1 (\(z_1\) above) is called \(\omega\) (omega), a favorite topic in advanced courses and math competitions. It satisfies \(\omega^3 = 1\) and \(\omega^2 + \omega + 1 = 0\), and \(z_2 = \omega^2 = \overline{\omega}\). Also, the sum of all \(n\) of the \(n\)th roots of 1 is \(0\) (for \(n \ge 2\)). This makes sense geometrically: the vertices of the regular polygon are spread evenly around the origin, so their center of balance is exactly at the origin.
De Moivre's theorem, \(\left(\cos\theta + i\sin\theta\right)^n = \cos n\theta + i\sin n\theta\), is what you get by repeating "multiplying complex numbers adds their arguments" \(n\) times. With it, the \(n\)th power of a complex number comes in one step: raise the absolute value to the \(n\)th power and multiply the argument by \(n\). Used in reverse, it gives all \(n\) of the \(n\)th roots: take the \(n\)th root of the absolute value and divide the argument by \(n\) (after adding \(k\) full turns). The highlight is the picture: the \(n\)th roots form a regular polygon on a circle.

Symbols and terms

Symbols

\(i\) i The imaginary unit, the number whose square is \(-1\) (\(i^2 = -1\)). The letter comes from "imaginary".
\(z\) z The letter usually used for a complex number. By custom, \(z\) and \(w\) are used for complex numbers, to tell them apart from real variables \(x,\ y\).
\(w\) w On this page, the letter for an \(n\)th root of \(z\) (a complex number with \(w^n = z\)). It follows the custom of using \(w\), the letter just before \(z\) in the alphabet, for a second complex number.
\(a,\ b\) a, b The real part (\(a\)) and the imaginary part (\(b\)) of \(z = a + bi\). Both are real numbers. On the complex plane, \(a\) is the position across (along the real axis) and \(b\) is the position up (along the imaginary axis).
\(r\) r The letter for the absolute value (the distance from the origin to the point \(z\)). It comes from "radius". In polar form it is a real number that is 0 or more.
\(\theta\) theta The Greek letter used for the argument. In math it is the usual letter for an angle.
\(n\) n On this page, the whole number that is the exponent of a power (which power) or the index of a root (which root). It comes from "number".
\(k\) k The letter that numbers the \(n\)th roots (from \(0\) to \(n-1\)). Counting letters are usually \(i,\ j,\ k\), but with complex numbers \(i\) is easily confused with the imaginary unit, so \(k\) is the usual choice.
\(\sqrt[n]{\ }\) nth root The \(n\)th root sign. \(\sqrt[3]{8} = 2\) says "the positive number whose cube is 8 is 2". The small number at the upper left is the index of the root; with no number, it is a square root.
\(\cos\theta,\ \sin\theta\) cosine theta, sine theta Trigonometric functions. On the circle of radius 1 (the unit circle), the point in the direction of angle \(\theta\) has horizontal position \(\cos\theta\) and vertical position \(\sin\theta\). In polar form they are the part that gives the direction.
\(\pi\) pi The ratio of a circle's circumference to its diameter (about 3.14159). In radians, a half turn, \(180^{\circ}\), is exactly \(\pi\), and a full turn is \(2\pi\). The Greek letter \(\pi\) is said to come from the first letter of the Greek word for "perimeter".
\(\omega\) omega The usual letter for the imaginary cube root of 1 (\(\omega = -\dfrac{1}{2} + \dfrac{\sqrt{3}}{2}i\)). It satisfies \(\omega^3 = 1\) and \(\omega^2 + \omega + 1 = 0\). It is the last letter of the Greek alphabet and is widely used for roots of unity.

Terms

complex number A number of the form \(a + bi\), where \(a\) and \(b\) are real numbers. It is a number system that brings the real and imaginary numbers together, taught in Algebra 2.
imaginary unit The number \(i\) whose square is \(-1\). No real number has a negative square, so it was introduced as a new number.
complex plane The plane where \(a + bi\) is shown as the point \((a,\ b)\). The horizontal axis is the real axis and the vertical axis is the imaginary axis. A drawing of it is also called an Argand diagram. It is taught in Precalculus.
polar form Writing a complex number with its distance \(r\) from the origin and its angle of rotation \(\theta\) from the real axis, as \(r(\cos\theta + i\sin\theta)\). Also called trigonometric form. De Moivre's theorem is about complex numbers in this form.
absolute value (modulus) The distance from the origin to the point \(z\), calculated as \(|z| = \sqrt{a^2 + b^2}\). Taking the \(n\)th power raises the absolute value to the \(n\)th power (\(r^n\)).
argument The angle of the direction from the origin to the point \(z\), measured counterclockwise from the positive real axis. Adding a full turn (\(2\pi\)) gives the same direction, so by convention the answer is given in the range \(0 \le \theta < 2\pi\). Taking the \(n\)th power multiplies the argument by \(n\) (\(n\theta\)).
exponentiation (raising to a power) Multiplying the same number by itself again and again. \(z^4\) is \(z\) multiplied together 4 times. The small raised number is the exponent.
nth root A number whose \(n\)th power is the given number. Among the complex numbers, every nonzero complex number has exactly \(n\) \(n\)th roots (among the real numbers, 8 has only one cube root, 2, but among the complex numbers it has three).
nth roots of unity The complex numbers with \(z^n = 1\). They are the \(n\) points that split the unit circle into \(n\) equal parts, and they form a regular polygon with \(n\) sides that has \(1\) as one vertex. ("Unity" is another word for 1.)
De Moivre's theorem The theorem \(\left(\cos\theta + i\sin\theta\right)^n = \cos n\theta + i\sin n\theta\), named after the French-born mathematician Abraham de Moivre. It is the result of repeating "multiplying adds the arguments" \(n\) times.
unit circle The circle of radius 1 centered at the origin. Every complex number with absolute value 1 (a number of the form \(\cos\theta + i\sin\theta\)) lies on this circle.
regular polygon A polygon whose sides are all the same length and whose angles are all the same size (an equilateral triangle, a square, a regular pentagon and so on). The \(n\) points of the \(n\)th roots are evenly spaced on a circle, so they are the vertices of a regular polygon with \(n\) sides.
special angles \(30^{\circ}\), \(45^{\circ}\), \(60^{\circ}\) and related angles (these plus multiples of \(90^{\circ}\)). Their trig values can be written exactly, as \(\dfrac{1}{2}\), \(\dfrac{\sqrt{2}}{2}\) and \(\dfrac{\sqrt{3}}{2}\), and most textbook and test problems use these angles.
radian measure (radians) Measuring an angle by the length of the arc it cuts on a circle of radius 1. \(180^{\circ} = \pi\) radians, and a full turn is \(2\pi\) radians. From trigonometric functions in Precalculus on, radians are the standard unit rather than degrees.

Good to know before you start

Here is what helps you use the calculation on this page with real understanding, not just by pressing the button.
If you get stuck, going back over these topics is the quickest way forward.

Square roots and radicals (Grades 8–9)
  • Knowing that \(\sqrt{2}\) is "the positive number whose square is 2"
  • Being able to use \(\left(\sqrt{2}\right)^{2} = 2\) to work out powers such as \(\left(\sqrt{2}\right)^{4} = 4\)
Exponent rules (Grade 8, Algebra 1)
  • Knowing what a power such as \(2^{3} = 2 \times 2 \times 2 = 8\) is
  • Being able to use exponent rules such as \(\left(a^{m}\right)^{n} = a^{mn}\)
Complex numbers (Algebra 2)
  • Knowing that the imaginary unit \(i\) is the number with \(i^2 = -1\)
  • Being able to add and multiply complex numbers \(a + bi\)
Trigonometry and the unit circle (Geometry, Algebra 2)
  • Knowing the trig values of \(30^{\circ}\), \(45^{\circ}\) and \(60^{\circ}\) (\(\dfrac{1}{2}\), \(\dfrac{\sqrt{2}}{2}\) and \(\dfrac{\sqrt{3}}{2}\))
  • Being able to find trig values of angles over \(90^{\circ}\) with the unit circle (example: \(\cos 135^{\circ} = -\dfrac{\sqrt{2}}{2}\))
Radian measure (Algebra 2, Precalculus)
  • Being able to convert between degrees and radians with \(180^{\circ} = \pi\) radians (example: \(60^{\circ} = \dfrac{\pi}{3}\))
  • Knowing that a full turn is \(2\pi\) radians, and that adding \(2\pi\) gives the same direction
The complex plane and polar form (Precalculus)
  • Being able to show a complex number \(a + bi\) as the point \((a,\ b)\) on the plane
  • Being able to write a complex number in polar form \(r(\cos\theta + i\sin\theta)\) (finding the absolute value \(r\) and the argument \(\theta\))
  • Knowing the rule for multiplying in polar form: "multiply the absolute values, add the arguments"

How to calculate it in Excel

Copy the whole table below and paste it into cell A1 in Excel. It works as is.
Table for the nth power of a complex number
Real part a 1
Imaginary part b 1
Exponent n 4
z to the nth power =IMPOWER(COMPLEX(B1,B2),B3)
Absolute value to the nth power r^n =IMABS(COMPLEX(B1,B2))^B3
Argument times n, nθ (radians) =B3*IMARGUMENT(COMPLEX(B1,B2))
Table for the kth nth root of a complex number
Real part a 8
Imaginary part b 0
Index of the root n 3
Root number k (0 to n−1) 1
Radius of the root circle =IMABS(COMPLEX(B1,B2))^(1/B3)
Argument of the kth root (radians) =(MOD(IMARGUMENT(COMPLEX(B1,B2)),2*PI())+2*PI()*B4)/B3
Real part of the kth root =B5*COS(B6)
Imaginary part of the kth root =B5*SIN(B6)
After pasting, the upper rows are your inputs and the lower rows are calculated automatically.
In the first table, COMPLEX(real part, imaginary part) makes a complex number, and IMPOWER returns its power as text such as "-4". For the example z = 1 + i and n = 4, z to the nth power is almost exactly -4 (a tiny imaginary part may appear because of floating-point error), r^n = 4 and nθ = π ≈ 3.14159.
The second table finds one root, the kth one. IMARGUMENT returns the argument (greater than −π and up to π), so MOD first turns it into a value from 0 up to (but not including) 2π; then k full turns are added and the result is divided by n. For the example z = 8, n = 3 and k = 1, the radius is 2 and the argument is 2π/3 ≈ 2.0944, so the real part = −1 and the imaginary part ≈ 1.7320508 (= √3). Change k to 0, 1 and 2 to get all three roots.
Excel gives decimals, so if you want exact values with square roots or fractions, use the calculator on this page.

How to calculate it in Google Sheets

Copy the whole table below and paste it into cell A1 in Google Sheets. It works as is.
Table for the nth power of a complex number
Real part a 1
Imaginary part b 1
Exponent n 4
z to the nth power =IMPOWER(COMPLEX(B1,B2),B3)
Absolute value to the nth power r^n =IMABS(COMPLEX(B1,B2))^B3
Argument times n, nθ (radians) =B3*IMARGUMENT(COMPLEX(B1,B2))
Table for the kth nth root of a complex number
Real part a 8
Imaginary part b 0
Index of the root n 3
Root number k (0 to n−1) 1
Radius of the root circle =IMABS(COMPLEX(B1,B2))^(1/B3)
Argument of the kth root (radians) =(MOD(IMARGUMENT(COMPLEX(B1,B2)),2*PI())+2*PI()*B4)/B3
Real part of the kth root =B5*COS(B6)
Imaginary part of the kth root =B5*SIN(B6)
The same complex-number functions as in Excel (COMPLEX, IMPOWER, IMABS and IMARGUMENT) work as is. Copy the whole table, paste it into cell A1, and replace the numbers with your own.

How to calculate it in Python

import cmath
import math

# nth power of a complex number (gives the same result as De Moivre's theorem)
z = complex(1, 1)      # z = 1 + i
n = 4
z_power = z ** n
print(f"z to the power {n} = {z_power}")

# Parts of the polar form (absolute value and argument)
absolute_value, argument = cmath.polar(z)   # r and θ (−π < θ ≤ π)
if argument < 0:
    argument += 2 * math.pi                 # move it into the range 0 ≤ θ < 2π
print(f"Absolute value r = {absolute_value}")
print(f"Argument θ = {argument} rad")

# nth roots of a complex number (list all n of them, k = 0 to n−1)
z = complex(8, 0)      # z = 8
n = 3
radius = abs(z) ** (1 / n)
theta = cmath.phase(z) % (2 * math.pi)
for k in range(n):
    angle = (theta + 2 * math.pi * k) / n
    w = cmath.rect(radius, angle)
    print(f"w_{k} = {w}")
You can make a complex number with complex(real part, imaginary part) and raise it to a power directly with **. The first half computes the 4th power of z = 1 + i and prints (-4+0j), the absolute value r = 1.4142135623730951 (an approximation of √2) and the argument θ = 0.7853981633974483 rad (an approximation of π/4). The second half finds the cube roots of z = 8 and prints three roots: w_0 = (2+0j), w_1 ≈ (-1+1.7320508…j) and w_2 ≈ (-1-1.7320508…j) (1.7320508… approximates √3). cmath.polar returns the absolute value and the angle (greater than −π and up to π), so a negative angle gets 2π added to bring it into the range from 0 up to 2π. cmath.rect(radius, angle) makes a complex number from polar form. Some values come out slightly off, such as -0.9999999999999996 instead of -1, or a tiny number such as 2.4e-16 instead of 0; these are rounding errors of decimals (floating-point numbers). For exact values with square roots or fractions, use the calculator on this page.

How to write it in LaTeX and other math languages (copy and paste)

De Moivre's theorem
(cosθ + i sinθ)ⁿ = cos nθ + i sin nθ
(\cos\theta + i\sin\theta)^{n} = \cos n\theta + i\sin n\theta
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
  <mrow>
    <msup>
      <mrow>
        <mo>(</mo>
        <mi>cos</mi><mi>&#x3B8;</mi>
        <mo>+</mo>
        <mi>i</mi><mi>sin</mi><mi>&#x3B8;</mi>
        <mo>)</mo>
      </mrow>
      <mi>n</mi>
    </msup>
    <mo>=</mo>
    <mi>cos</mi><mi>n</mi><mi>&#x3B8;</mi>
    <mo>+</mo>
    <mi>i</mi><mi>sin</mi><mi>n</mi><mi>&#x3B8;</mi>
  </mrow>
</math>
(cos theta + i sin theta)^n = cos(n theta) + i sin(n theta)
(Cos[theta] + I Sin[theta])^n == Cos[n theta] + I Sin[n theta]
(cos(theta) + I*sin(theta))^n = cos(n*theta) + I*sin(n*theta);
zn = (cos(t) + 1i*sin(t))^n;
(cos θ + i sin θ)^n = cos nθ + i sin nθ
The \(n\)th power of a complex number
zⁿ = rⁿ(cos nθ + i sin nθ)
z^{n} = r^{n}(\cos n\theta + i\sin n\theta)
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
  <mrow>
    <msup><mi>z</mi><mi>n</mi></msup>
    <mo>=</mo>
    <msup><mi>r</mi><mi>n</mi></msup>
    <mo>(</mo>
    <mi>cos</mi><mi>n</mi><mi>&#x3B8;</mi>
    <mo>+</mo>
    <mi>i</mi><mi>sin</mi><mi>n</mi><mi>&#x3B8;</mi>
    <mo>)</mo>
  </mrow>
</math>
z^n = r^n (cos(n theta) + i sin(n theta))
r^n (Cos[n theta] + I Sin[n theta])
zn := r^n*(cos(n*theta) + I*sin(n*theta));
zn = r^n*(cos(n*t) + 1i*sin(n*t));
z^n = r^n (cos nθ + i sin nθ)
The \(n\)th roots of a complex number
w_k = ⁿ√r (cos((θ + 2kπ)/n) + i sin((θ + 2kπ)/n)) (k = 0, 1, …, n−1)
w_{k} = \sqrt[n]{r}\left(\cos\dfrac{\theta + 2k\pi}{n} + i\sin\dfrac{\theta + 2k\pi}{n}\right) \quad (k = 0, 1, \ldots, n-1)
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
  <mrow>
    <msub><mi>w</mi><mi>k</mi></msub>
    <mo>=</mo>
    <mroot><mi>r</mi><mi>n</mi></mroot>
    <mo>(</mo>
    <mi>cos</mi>
    <mfrac>
      <mrow><mi>&#x3B8;</mi><mo>+</mo><mn>2</mn><mi>k</mi><mi>&#x3C0;</mi></mrow>
      <mi>n</mi>
    </mfrac>
    <mo>+</mo>
    <mi>i</mi><mi>sin</mi>
    <mfrac>
      <mrow><mi>&#x3B8;</mi><mo>+</mo><mn>2</mn><mi>k</mi><mi>&#x3C0;</mi></mrow>
      <mi>n</mi>
    </mfrac>
    <mo>)</mo>
  </mrow>
</math>
w_k = root(n)(r) (cos((theta + 2k pi)/n) + i sin((theta + 2k pi)/n))
Table[r^(1/n) (Cos[(theta + 2 k Pi)/n] + I Sin[(theta + 2 k Pi)/n]), {k, 0, n - 1}]
wk := r^(1/n)*(cos((theta + 2*k*Pi)/n) + I*sin((theta + 2*k*Pi)/n));
wk = r^(1/n)*(cos((t + 2*k*pi)/n) + 1i*sin((t + 2*k*pi)/n));
w_k = r^(1/n) (cos((θ + 2kπ)/n) + i sin((θ + 2kπ)/n))
The \(n\)th roots of unity
z_k = cos(2kπ/n) + i sin(2kπ/n) (k = 0, 1, …, n−1)
z_{k} = \cos\dfrac{2k\pi}{n} + i\sin\dfrac{2k\pi}{n} \quad (k = 0, 1, \ldots, n-1)
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
  <mrow>
    <msub><mi>z</mi><mi>k</mi></msub>
    <mo>=</mo>
    <mi>cos</mi>
    <mfrac>
      <mrow><mn>2</mn><mi>k</mi><mi>&#x3C0;</mi></mrow>
      <mi>n</mi>
    </mfrac>
    <mo>+</mo>
    <mi>i</mi><mi>sin</mi>
    <mfrac>
      <mrow><mn>2</mn><mi>k</mi><mi>&#x3C0;</mi></mrow>
      <mi>n</mi>
    </mfrac>
  </mrow>
</math>
z_k = cos((2k pi)/n) + i sin((2k pi)/n)
Table[Cos[2 k Pi/n] + I Sin[2 k Pi/n], {k, 0, n - 1}]
zk := cos(2*k*Pi/n) + I*sin(2*k*Pi/n);
zk = cos(2*k*pi/n) + 1i*sin(2*k*pi/n);
z_k = cos(2kπ/n) + i sin(2kπ/n)

How to have ChatGPT  do the calculation

You are a math calculation assistant for the complex plane and De Moivre's theorem. Do the following calculation by actually running Python code, and base your answer only on the numbers from the execution result (do not answer by mental math or guessing).

1. Find the 4th power z^4 of the complex number z = 1 + i. Also show the absolute value r and the argument θ, the absolute value to the 4th power r^4 and the argument times 4, 4θ.
2. Find all three cube roots of the complex number z = 8 (the complex numbers whose cube is 8), for k = 0, 1, 2. If possible, also show them as exact values with square roots.

In Python, use the complex type, cmath.polar and cmath.rect, and show the formulas you used and the numbers from the execution result.

How to Use
  1. 1
    Enter your numbers
    Type the numbers you want to calculate with into the input fields
  2. 2
    Calculate
    Press the "Calculate" button
  3. 3
    Check the result
    The result appears on the spot. The same page also explains the idea behind the calculation and the formula
  DataChef Features
Easy and Free
Unlimited conversions for free.
No technical knowledge required.
Intuitive and user-friendly operation.
No Registration Required
Available immediately after access.
Can be used without registering personal information.
Safe and Secure
Fully SSL encrypted communication.
Automatic file deletion by clicking "download".
Fast
High-speed site access
and rapid file conversion.
No Watermark
No watermark.
No attribution required.
Commercial Use Available
Free for commercial use.
No need to contact us for commercial use permission.