Complex Number Calculator
Perform arithmetic with complex numbers in the form a + bi. Add, subtract, multiply, divide, and compute the modulus and argument of complex numbers.
Complex Numbers: Arithmetic, Modulus, Argument, and Applications in Mathematics and Engineering
Complex numbers are a fundamental concept in mathematics that extend the real number system by introducing the imaginary unit i, defined by the property i² = -1. Every complex number can be written in the form z = a + bi, where a is the real part and b is the imaginary part. This calculator lets you perform all four arithmetic operations on complex numbers and compute the modulus (absolute value) and argument (angle) of a complex number.
What Are Complex Numbers?
The need for complex numbers arises naturally when solving polynomial equations. The equation x² + 1 = 0 has no real solution, but it has two complex solutions: x = i and x = -i. More generally, the Fundamental Theorem of Algebra states that every non-constant polynomial with complex coefficients has at least one complex root. This makes the complex numbers algebraically closed, a property the real numbers lack.
A complex number z = a + bi can be visualized as a point (a, b) in the complex plane, also called the Argand plane. The horizontal axis represents the real part, and the vertical axis represents the imaginary part. This geometric interpretation connects algebra to geometry and is essential for understanding operations like multiplication, which corresponds to rotation and scaling in the plane.
Complex numbers were first encountered by Italian mathematicians in the 16th century while solving cubic equations. Gerolamo Cardano and Rafael Bombelli worked with expressions involving square roots of negative numbers, though they regarded them as fictional. It was not until the 18th and 19th centuries, through the work of Euler, Gauss, and others, that complex numbers gained full mathematical legitimacy.
Complex Arithmetic
Addition and subtraction of complex numbers work component-wise: (a + bi) + (c + di) = (a + c) + (b + d)i, and similarly for subtraction. These operations correspond to vector addition and subtraction in the complex plane.
Multiplication uses the distributive property and the rule i² = -1: (a + bi)(c + di) = (ac - bd) + (ad + bc)i. Geometrically, multiplying two complex numbers multiplies their moduli and adds their arguments. This means multiplication by a complex number of modulus 1 is a pure rotation.
Division is defined as multiplication by the reciprocal. To compute (a + bi) / (c + di), multiply both numerator and denominator by the conjugate of the denominator: (c - di). This yields ((ac + bd) + (bc - ad)i) / (c² + d²). Division is undefined when the denominator is zero (c = d = 0).
Modulus and Argument
The modulus (or absolute value) of a complex number z = a + bi is |z| = √(a² + b²). It represents the distance from the origin to the point (a, b) in the complex plane. The modulus satisfies the triangle inequality: |z₁ + z₂| ≤ |z₁| + |z₂|, and the multiplicative property: |z₁ · z₂| = |z₁| · |z₂|.
The argument of a complex number z = a + bi is the angle θ = atan2(b, a) measured from the positive real axis to the line connecting the origin to z, in radians. The principal value lies in the interval (-π, π]. Using the modulus r and argument θ, any complex number can be written in polar form: z = r(cosθ + i·sinθ) = r·e^(iθ), the latter being Euler's formula.
The polar form is particularly useful for multiplication and exponentiation. Multiplying two complex numbers in polar form gives r₁r₂ · e^(i(θ₁+θ₂)), and raising to a power gives r^n · e^(inθ). De Moivre's theorem, (cosθ + i·sinθ)^n = cos(nθ) + i·sin(nθ), follows directly from this representation.
Applications of Complex Numbers
Complex numbers are indispensable in electrical engineering, where alternating current circuits are analyzed using impedance, a complex quantity. Voltage and current are represented as complex phasors, and circuit analysis reduces to complex arithmetic. The real part represents the resistive component, while the imaginary part represents the reactive (capacitive or inductive) component.
In signal processing, the Fourier transform decomposes signals into complex exponentials e^(iωt), enabling frequency analysis. The discrete Fourier transform (DFT) and its efficient implementation, the Fast Fourier Transform (FFT), rely on complex arithmetic and the roots of unity, which are complex numbers evenly spaced on the unit circle.
In quantum mechanics, the state of a quantum system is described by a complex-valued wave function. The probability of finding a particle at a given position is proportional to the squared modulus of the wave function. Complex numbers are not merely a mathematical convenience in quantum theory; they are fundamental to its structure.
Complex analysis, the study of functions of complex variables, provides tools for solving problems in fluid dynamics, heat conduction, and electrostatics through conformal mapping. The residue theorem and contour integration allow the evaluation of real integrals that are difficult or impossible to compute by real methods alone.
The Complex Conjugate
The complex conjugate of z = a + bi is z̄ = a - bi. It is obtained by reflecting z across the real axis. The product of a complex number and its conjugate is always a non-negative real number: z · z̄ = a² + b² = |z|². This property is used to rationalize denominators in complex division.
Conjugation preserves addition and multiplication: the conjugate of a sum is the sum of the conjugates, and the conjugate of a product is the product of the conjugates. These properties make conjugation an important algebraic operation. In polynomial equations with real coefficients, complex roots always appear in conjugate pairs.
Frequently Asked Questions
What is the imaginary unit i?
The imaginary unit i is defined by the property i² = -1. It is not a real number, but it forms the basis of the complex number system. Every complex number can be written as a + bi, where a and b are real numbers.
How do you multiply two complex numbers?
Use the distributive property and i² = -1: (a + bi)(c + di) = ac + adi + bci + bdi² = (ac - bd) + (ad + bc)i. Geometrically, the moduli are multiplied and the arguments are added.
What is the modulus of a complex number?
The modulus (absolute value) of z = a + bi is |z| = √(a² + b²). It represents the distance from the origin to the point (a, b) in the complex plane.
What is the argument of a complex number?
The argument is the angle θ (in radians) from the positive real axis to the line from the origin to z in the complex plane. It is computed as θ = atan2(b, a), where z = a + bi. The principal value lies in (-π, π].
Can you divide by a complex number?
Yes, provided the divisor is not zero. To divide (a + bi) by (c + di), multiply numerator and denominator by the conjugate (c - di): the result is ((ac + bd) + (bc - ad)i) / (c² + d²).