Complex number calculator: operations in rectangular form
A complex number has a real part and an imaginary part , where . Arithmetic follows ordinary algebra plus that one rule. With and :
| Operation | Work | Result |
|---|---|---|
| flip the sign of | ||
Check the division by multiplying back: ✓. The conjugate trick works because is always real.
Polar/phasor ⇄ rectangular conversion
On the Argand plane, is the point . Its distance from the origin is the modulus and its angle from the positive real axis is the argument :
The workspace's default entries compute exactly this for : and rad, which is . Engineers write the same number as the phasor .
The quadrant trap
alone only returns angles between and . For , points into the first quadrant, but the number is in the third. The correct argument is . Use atan2 or the calculator's angle( function, which check the signs of both parts.
Multiplying and powers in polar form
Polar form turns multiplication into simpler operations: multiply the moduli and add the arguments. has modulus , and indeed .
Powers follow De Moivre's theorem, . For : , so . Expanding eight binomial factors by hand would take far longer. The same idea gives Euler's identity, .
Keystroke reference: complex mode on a TI-84 style handheld
| Task | TI-84 style key sequence | GraphingCalc84 |
|---|---|---|
| Allow complex results | MODE → a+bi | Always on |
| Polar display | MODE → re^θi | abs( and arg( give r and θ |
| Type i | 2ND . | i |
| Conjugate, real, imag | MATH → CMPLX → conj( / real( / imag( | conj(, real(, imag( |
| Argument | MATH → CMPLX → angle( | arg( |
| Modulus | MATH → CMPLX → abs( | abs( |
Before any argument calculation, check DEG/RAD. The default workspace uses radians, matching most precalculus and engineering texts; switch to degrees for phasor notation.
Where complex numbers come from: quadratic roots
The quadratic has discriminant , so its roots are . The parabola never touches the x-axis — graph it in the polynomial root finder to see why a graph alone cannot show complex roots. Non-real roots of real polynomials always come in conjugate pairs.
Powers of i and other quick checks
- ; then the cycle repeats, so .
- , not : the rule fails when both are negative.
- but (triangle inequality).
For rigorous definitions of the principal branch of , logarithms and powers, see the NIST DLMF section on complex variables. Real-only arithmetic, fractions and trig are faster in the scientific calculator.
Worked example: phasors in an AC circuit
Electrical engineers use complex numbers (usually writing instead of ) because impedance combines resistance and reactance at right angles. A series circuit with resistance and inductive reactance has impedance ohms, so at an angle of . Driving it with volts gives the current
Dividing in polar form is just "divide the moduli, subtract the angles". Check in rectangular form: ✓. The negative angle says the current lags the voltage, the defining behavior of an inductor.
Geometry on the Argand plane
- Adding complex numbers is vector addition: places the second arrow at the tip of the first and lands on .
- Multiplying by rotates a point 90° counterclockwise: . Multiplying by rotates 180°.
- Conjugation reflects across the real axis, which is why a polynomial with real coefficients has its non-real roots in mirror-image pairs.
Roots of complex numbers
Every nonzero complex number has exactly distinct th roots, spaced evenly around a circle of radius . The cube roots of 8 are for : , and , the vertices of an equilateral triangle. A real-mode calculator reports only the real root 2; asking for all three is a job for polar form. Check one by cubing it: , and multiplying once more by gives ✓.
Exponential form, Euler's formula and the absolute value
Every complex number a + bi, where a and b are real, can be written three ways. Rectangular form uses the imaginary unit i, the square root of −1, so that i² = −1. Polar form r(cos θ + i sin θ) uses the absolute value (modulus) r = √(a² + b²) and the argument θ. Euler's formula, eiθ = cos θ + i sin θ, turns polar form into exponential form r·eiθ.
| Form | 2 + 3i | 1 + i |
|---|---|---|
| Rectangular | 2 + 3i | 1 + i |
| Absolute value r | √13 ≈ 3.606 | √2 ≈ 1.414 |
| Argument in radians | ≈ 0.983 | π/4 ≈ 0.785 |
| Argument in degrees | ≈ 56.31° | 45° |
| Exponential form | 3.606·e0.983i | √2·eiπ/4 |
To go from radians to degrees multiply by 180/π; from degrees to radians multiply by π/180. A calculator left in the wrong angle mode is the most common reason an argument looks wrong. In science and engineering, especially AC circuits and signal processing, exponential form is preferred because multiplying two complex numbers becomes multiplying magnitudes and adding angles.
Add, subtract and divide two complex numbers step by step
Addition and subtraction work on the real and imaginary parts separately: (2 + 3i) + (1 − i) = 3 + 2i and (2 + 3i) − (1 − i) = 1 + 4i. Division takes three steps:
- Step 1: multiply the top and bottom of (2 + 3i)/(1 − i) by the conjugate 1 + i.
- Step 2: expand and replace i² with −1. The numerator is 2 + 2i + 3i + 3i² = −1 + 5i; the denominator is 1 − i² = 2.
- Step 3: split into real and imaginary parts: −0.5 + 2.5i. Check by multiplying back: (−0.5 + 2.5i)(1 − i) = 2 + 3i ✓.
Forgetting that i² = −1 is the classic slip in Step 2. When entering complex numbers on any calculator, wrap each one in parentheses: typed as 2+3i/1−i, the order of operations reads it as 2 + 3i − i. The same care applies to a square root: the two square roots of 2 + 3i are ±(1.674 + 0.896i), because 1.674² − 0.896² ≈ 2 and 2(1.674)(0.896) ≈ 3. To find all complex nth roots, use the polar method in the roots section above.
Rectangular or polar: which form to use?
Use rectangular form when you add or subtract, because the real and imaginary parts simply combine. Switch to polar form when you multiply, divide, raise to a power or take roots, because moduli multiply and angles add. Most mistakes in longer problems come from staying in one form for the whole calculation. A good habit is to convert once, do the hard step in the convenient form, and convert back at the end, checking the quadrant of the final angle each time.