Complex Numbers

Solve equations with no real solutions and multiply combinations of real and imaginary numbers using the complex number system.

i2=1,(a+bi)(c+di)=(acbd)+(ad+bc)ii^2 = -1, \quad (a + bi)(c + di) = (ac - bd) + (ad + bc)i

Solve a problem with Complex Numbers

Type the problem. The solver will use Complex Numbers where Complex Numbers is the right tool, and tell you when it is not.

Drag one in or paste from the clipboard. JPEG, PNG or WebP. You get the transcription to check before anything is solved.

How to get a better answer
  • Paste the whole problem, including the instruction word — "simplify", "solve for x" and "factor" lead to three different answers.
  • Say what you have already tried. "I got x = 4 and the book says 2" turns a solution into a diagnosis.
  • Set the level in the settings button. A calculus shortcut is not a better answer if you have not met derivatives yet.
  • For a photo, get the whole problem in frame and hold the page flat — you get the transcription to fix before anything is solved.

What each symbol means

What Complex Numbers takes
aa
bb
cc
dd
ii
Complex Numbers
SymbolMeaning
aaThe real part of the complex number a+bia + bi; if a=0a = 0 and b0b \neq 0 the number is purely imaginary.
bbThe imaginary part (the coefficient of ii) in a+bia + bi; it is always a real number that multiplies the imaginary unit.
ccThe real part of the second complex number c+dic + di in a multiplication or operation.
ddThe imaginary part (the coefficient of ii) in the second complex number c+dic + di.
iiThe imaginary unit defined by i2=1i^2 = -1; it is not a variable but a fixed symbol representing 1\sqrt{-1}.

When to use it

When you need to solve polynomial equations that have no real solutions or work with square roots of negative numbers.

Level

Usually taught in: Algebra II

Worked examples

1. Multiply two complex numbers with positive parts

Problem

Multiply (2+3i)(1+4i)(2 + 3i)(1 + 4i).
  1. (2+3i)(1+4i)=(a+bi)(c+di) where a=2,b=3,c=1,d=4(2 + 3i)(1 + 4i) = (a+bi)(c+di) \text{ where } a=2, b=3, c=1, d=4

    Identify which numbers play which role in the formula (a+bi)(c+di)(a + bi)(c + di).

  2. (acbd)+(ad+bc)i(ac - bd) + (ad + bc)i

    The formula tells us the real part is acbdac - bd and the imaginary part is ad+bcad + bc.

  3. ac=21=2,bd=34=12ac = 2 \cdot 1 = 2, \quad bd = 3 \cdot 4 = 12

    Multiply the real parts and multiply the imaginary coefficients separately.

  4. ad=24=8,bc=31=3ad = 2 \cdot 4 = 8, \quad bc = 3 \cdot 1 = 3

    These cross-products will form the imaginary part.

  5. (212)+(8+3)i=10+11i(2 - 12) + (8 + 3)i = -10 + 11i

    The real part is 212=102 - 12 = -10; the imaginary part is 8+3=118 + 3 = 11.

Answer: 10+11i-10 + 11i

The formula (a+bi)(c+di)=(acbd)+(ad+bc)i(a + bi)(c + di) = (ac - bd) + (ad + bc)i comes from distributing like you would with binomials, but the i2=1i^2 = -1 rule collapses the bdi2bdi^2 term into a real number. This example shows the straightforward case where all numbers are positive integers.

2. Multiply complex numbers with negative coefficients

Problem

Multiply (1+2i)(23i)(-1 + 2i)(2 - 3i).
  1. (1+2i)(23i)=(a+bi)(c+di) where a=1,b=2,c=2,d=3(-1 + 2i)(2 - 3i) = (a+bi)(c+di) \text{ where } a=-1, b=2, c=2, d=-3

    Identify the coefficients, including their signs: a=1a = -1 and d=3d = -3 are negative.

  2. ac=(1)(2)=2,bd=(2)(3)=6ac = (-1)(2) = -2, \quad bd = (2)(-3) = -6

    Calculate the products carefully: acac is negative, and bdbd is also negative (positive times negative).

  3. acbd=2(6)=2+6=4ac - bd = -2 - (-6) = -2 + 6 = 4

    Subtracting a negative is the same as adding: 2(6)=2+6=4-2 - (-6) = -2 + 6 = 4. This is the real part.

  4. ad=(1)(3)=3,bc=(2)(2)=4ad = (-1)(-3) = 3, \quad bc = (2)(2) = 4

    Negative times negative gives positive for adad; the imaginary part coefficient comes from ad+bc=3+4ad + bc = 3 + 4.

  5. 4+(3+4)i=4+7i4 + (3 + 4)i = 4 + 7i

    Combine the real and imaginary parts: real is 44, imaginary coefficient is 77.

Answer: 4+7i4 + 7i

When complex numbers have negative coefficients, the key is tracking signs carefully through the multiplications, especially in the acbdac - bd term where subtracting a negative can flip the sign. This example shows that the formula handles all sign combinations correctly without special cases.

3. Complex impedance in an electrical circuit

Problem

A physicist measures impedances in an AC circuit. The first component has impedance Z1=3+2iZ_1 = 3 + 2i ohms (where the imaginary part represents reactance), and a second has impedance Z2=1iZ_2 = 1 - i ohms. Find the combined effect by computing Z1Z2Z_1 \cdot Z_2.
  1. Z1Z2=(3+2i)(1i)Z_1 \cdot Z_2 = (3 + 2i)(1 - i)

    Set up the multiplication of impedances as complex numbers with a=3,b=2,c=1,d=1a=3, b=2, c=1, d=-1.

  2. ac=31=3,bd=2(1)=2ac = 3 \cdot 1 = 3, \quad bd = 2 \cdot (-1) = -2

    The real-part product is ac=3ac = 3; the imaginary-part product is bd=2bd = -2 (positive times negative).

  3. acbd=3(2)=3+2=5ac - bd = 3 - (-2) = 3 + 2 = 5

    The real part of the result is 3(2)=53 - (-2) = 5. Subtracting the negative bdbd increases the real part.

  4. ad=3(1)=3,bc=21=2ad = 3 \cdot (-1) = -3, \quad bc = 2 \cdot 1 = 2

    Cross-multiply to get the coefficient of ii: ad+bc=3+2=1ad + bc = -3 + 2 = -1.

  5. 5+(1)i=5i5 + (-1)i = 5 - i

    The result is a complex impedance with real part 55 and imaginary coefficient 1-1, written as 5i5 - i.

Answer: 5i5 - i

In electrical engineering, impedance is a complex number because AC circuits involve both resistance (real part) and reactance (imaginary part). Multiplying impedances requires the complex multiplication formula, demonstrating how abstract algebra solves real-world problems in physics and engineering.

Common mistakes

Where Complex Numbers usually goes wrong
Answer came out wrong
Writing (a+bi)(c+di)=ac+bd+adi+bci(a + bi)(c + di) = ac + bd + adi + bci without applying i2=1i^2 = -1.
Always substitute i2=1i^2 = -1 to turn bdi2bdi^2 into bd-bd, giving the correct formula (acbd)+(ad+bc)i(ac - bd) + (ad + bc)i.
After computing (2+3i)(1+2i)=2+4i+3i+6i2=2+7i6=4+7i(2 + 3i)(1 + 2i) = 2 + 4i + 3i + 6i^2 = 2 + 7i - 6 = -4 + 7i, then later writing 4+7i2-4 + 7i^2 or treating the 7i7i term as (7i)2=49i2=49(7i)^2 = 49i^2 = -49.
After substituting i2=1i^2 = -1 once, stop; the result 4+7i-4 + 7i is final. Do not square ii or any multiple of ii again unless the problem explicitly asks you to multiply the result by itself.
Treating complex multiplication as componentwise addition: (2+3i)(1+2i)=(2+1)+(3+2)i=3+5i(2 + 3i)(1 + 2i) = (2+1) + (3+2)i = 3 + 5i.
Always use the complete multiplication formula (a+bi)(c+di)=(acbd)+(ad+bc)i(a + bi)(c + di) = (ac - bd) + (ad + bc)i, which accounts for all four products and the i2=1i^2 = -1 rule.
The mistakeWhy it is wrongThe fix
Writing (a+bi)(c+di)=ac+bd+adi+bci(a + bi)(c + di) = ac + bd + adi + bci without applying i2=1i^2 = -1.This mistake comes from distributing the terms as if ii were just another variable, but i2=1i^2 = -1 is not a property of a variable—it defines the imaginary unit, and the bdi2bdi^2 term must be converted to bd-bd (a real number).Always substitute i2=1i^2 = -1 to turn bdi2bdi^2 into bd-bd, giving the correct formula (acbd)+(ad+bc)i(ac - bd) + (ad + bc)i.
After computing (2+3i)(1+2i)=2+4i+3i+6i2=2+7i6=4+7i(2 + 3i)(1 + 2i) = 2 + 4i + 3i + 6i^2 = 2 + 7i - 6 = -4 + 7i, then later writing 4+7i2-4 + 7i^2 or treating the 7i7i term as (7i)2=49i2=49(7i)^2 = 49i^2 = -49.Once i2i^2 has been evaluated and replaced with 1-1, the simplification is complete. Trying to apply exponent rules a second time, or to an expression that already contains the simplified form, adds layers of confusion and breaks the arithmetic.After substituting i2=1i^2 = -1 once, stop; the result 4+7i-4 + 7i is final. Do not square ii or any multiple of ii again unless the problem explicitly asks you to multiply the result by itself.
Treating complex multiplication as componentwise addition: (2+3i)(1+2i)=(2+1)+(3+2)i=3+5i(2 + 3i)(1 + 2i) = (2+1) + (3+2)i = 3 + 5i.Complex number multiplication is not defined as adding the real parts and adding the imaginary parts separately. The full distributive property requires four pairwise products: 212 \cdot 1, 22i2 \cdot 2i, 3i13i \cdot 1, and 3i2i3i \cdot 2i, and the last one involves i2i^2.Always use the complete multiplication formula (a+bi)(c+di)=(acbd)+(ad+bc)i(a + bi)(c + di) = (ac - bd) + (ad + bc)i, which accounts for all four products and the i2=1i^2 = -1 rule.

Tips and when to use something else

  • Remember that i2=1i^2 = -1 is the defining property; every complex multiplication reduces to this rule at some point.
  • The formula (acbd)+(ad+bc)i(ac - bd) + (ad + bc)i has a useful structure: the real part uses subtraction (acbdac - bd) and the imaginary part uses addition (ad+bcad + bc), which comes directly from applying the distributive property and the i2=1i^2 = -1 rule.
  • If you're solving a polynomial like x2+1=0x^2 + 1 = 0, complex numbers give you solutions where classical algebra says 'no solution': x=±ix = \pm i. Without complex numbers, many polynomial equations remain unsolvable.
  • For division or simplifying fractions with complex denominators, the complex conjugate method (a+bia + bi times abi=a2+b2a - bi = a^2 + b^2) is often faster than multiplication—look up 'Complex Conjugate' when you encounter those problems.

Frequently asked questions

Why do we need complex numbers if they're imaginary?
Complex numbers are not 'imaginary' in the sense of fake or unreal; the term is historical. They are essential in engineering (AC circuits, signal processing), physics (quantum mechanics), and pure mathematics because i2=1i^2 = -1 allows us to solve equations that have no real solutions and work with a complete, closed number system. The imaginary unit ii is as real and useful as any other number.
How do I multiply complex numbers without memorizing the formula?
Treat a+bia + bi as a binomial and use the distributive property (FOIL): (a+bi)(c+di)=ac+adi+bci+bdi2(a + bi)(c + di) = ac + adi + bci + bdi^2. Then substitute i2=1i^2 = -1: ac+adi+bci+bd(1)=(acbd)+(ad+bc)iac + adi + bci + bd(-1) = (ac - bd) + (ad + bc)i. This derivation is often easier to remember than the formula itself, so if you forget, re-derive it from first principles.
Can the imaginary part be negative, like in 32i3 - 2i?
Yes; the number 32i3 - 2i has real part 33 and imaginary part 2-2 (the coefficient of ii is negative). In the formula (a+bi)(c+di)(a + bi)(c + di), if bb or dd is negative, their signs are part of their values. The '++' in 'a+bia + bi' is literal only when both parts are positive; always use the actual signed values when applying the multiplication formula.
What is the difference between complex numbers and imaginary numbers?
A complex number has the form a+bia + bi where aa and bb are real numbers. If a0a \neq 0 and b0b \neq 0, it is complex with both real and imaginary parts. If a=0a = 0 and b0b \neq 0, the number bibi is called purely imaginary. The term 'imaginary numbers' sometimes refers only to purely imaginary numbers (like 3i3i), and sometimes to the entire complex number system; the exact meaning depends on context. On this page, 'complex numbers' is the formal term for all numbers of the form a+bia + bi.

Need a different method?

The full solver is not scoped to one formula — type any problem and it will pick the method.

Open the math solver

Reviewed 2026-09-18