Skip to main content
Mathematics LibreTexts

5: Complex Numbers

  • Page ID
    1633
  • \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \) \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)\(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\) \(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\)\(\newcommand{\AA}{\unicode[.8,0]{x212B}}\)

    Learning Objectives
    • Add and subtract complex numbers.
    • Multiply and divide complex numbers.
    • Solve quadratic equations with complex numbers

    Discovered by Benoit Mandelbrot around 1980, the Mandelbrot Set is one of the most recognizable fractal images. The image is built on the theory of self-similarity and the operation of iteration. Zooming in on a fractal image brings many surprises, particularly in the high level of repetition of detail that appears as magnification increases. The equation that generates this image turns out to be rather simple.

    A visual representation of the Mandelbrot set
    Figure \(\PageIndex{1}\): The Mandelbrot set exhibits similarity, which is best shown in an animation.

    In order to better understand it, we need to become familiar with a new set of numbers. Keep in mind that the study of mathematics continuously builds upon itself. Negative integers, for example, fill a void left by the set of positive integers. The set of rational numbers, in turn, fills a void left by the set of integers. The set of real numbers fills a void left by the set of rational numbers. Not surprisingly, the set of real numbers has voids as well. In this section, we will explore a set of numbers that fills voids in the set of real numbers and find out how to work within it.

    Expressing Square Roots of Negative Numbers as Multiples of \(i\)

    We know how to find the square root of any positive real number. In a similar way, we can find the square root of any negative number. The difference is that the root is not real. If the value in the radicand is negative, the root is said to be an imaginary number.The imaginary number \(i\) is defined as the square root of \(−1\).

    \[\sqrt{-1}=i\]

    So, using properties of radicals,

    \[i^2=(\sqrt{-1})^2=-1\]

    We can write the square root of any negative number as a multiple of \(i\). Consider the square root of \(−49\).

    \[\begin{align*} \sqrt{-49}&= \sqrt{49\times(-1)}\\[4pt] &= \sqrt{49}\sqrt{-1}\\[4pt] &= 7i \end{align*}\]

    We use \(7i\) and not \(−7i\) because the principal root of \(49\) is the positive root.

    A complex number is the sum of a real number and an imaginary number. A complex number is expressed in standard form when written \(a+bi\) where \(a\) is the real part and \(b\) is the imaginary part. For example, \(5+2i\) is a complex number. So, too, is \(3+4i\sqrt{3}\).

    The complex number 5 + 2i is displayed.  The 5 is labeled as: Real part and the 2i is labeled as: Imaginary part

    Imaginary numbers differ from real numbers in that a squared imaginary number produces a negative real number. Recall that when a positive real number is squared, the result is a positive real number and when a negative real number is squared, the result is also a positive real number. Complex numbers consist of real and imaginary numbers.

    Definition: IMAGINARY AND COMPLEX NUMBERS

    A complex number is a number of the form \(a+bi\) where

    1. \(a\) is the real part of the complex number.
    2. \(b\) is the imaginary part of the complex number.

    If \(b=0\), then \(a+bi\) is a real number. If \(a=0\) and \(b\) is not equal to \(0\), the complex number is called a pure imaginary number. An imaginary number is an even root of a negative number.

    Howto: Given an imaginary number, express it in the standard form of a complex number
    1. Write \(\sqrt{-a}\) as \(\sqrt{a}\sqrt{-1}\).
    2. Express \(\sqrt{-1}\) as \(i\).
    3. Write \(\sqrt{a}\times i\) in simplest form.
    Example \(\PageIndex{1}\): Expressing an Imaginary Number in Standard Form

    Express \(\sqrt{-9}\) in standard form.

    Solution

    \[\begin{align*} \sqrt{-9}&= \sqrt{9}\sqrt{-1)}\\[4pt] &= 3i\\[4pt] \end{align*}\]

    In standard form, this is \(0+3i\).

    Exercise \(\PageIndex{1}\)

    Express \(\sqrt{-24}\) in standard form.

    Answer

    \(\sqrt{-24}=0+2i\sqrt{6}\)

    Plotting a Complex Number on the Complex Plane

    We cannot plot complex numbers on a number line as we might real numbers. However, we can still represent them graphically. To represent a complex number, we need to address the two components of the number. We use the complex plane, which is a coordinate system in which the horizontal axis represents the real component and the vertical axis represents the imaginary component. Complex numbers are the points on the plane, expressed as ordered pairs \((a,b)\), where \(a\) represents the coordinate for the horizontal axis and \(b\) represents the coordinate for the vertical axis.

    Let’s consider the number \(−2+3i\). The real part of the complex number is \(−2\) and the imaginary part is \(3\). We plot the ordered pair \((−2,3)\) to represent the complex number \(−2+3i\), as shown in Figure \(\PageIndex{2}\).

    Coordinate plane with the x and y axes ranging from negative 5 to 5.  The point negative 2 plus 3i is plotted on the graph.  An arrow extends leftward from the origin two units and then an arrow extends upward three units from the end of the previous arrow.
    Figure \(\PageIndex{2}\)
    COMPLEX PLANE

    In the complex plane, the horizontal axis is the real axis, and the vertical axis is the imaginary axis, as shown in Figure \(\PageIndex{3}\).

    A blank coordinate plane with the x-axis labeled: real and the y-axis labeled: imaginary.
    Figure \(\PageIndex{3}\)
    Howto: Given a complex number, represent its components on the complex plane
    1. Determine the real part and the imaginary part of the complex number.
    2. Move along the horizontal axis to show the real part of the number.
    3. Move parallel to the vertical axis to show the imaginary part of the number.
    4. Plot the point.
    Example \(\PageIndex{2}\): Plotting a Complex Number on the Complex Plane

    Plot the complex number \(3−4i\) on the complex plane.

    Solution

    The real part of the complex number is \(3\), and the imaginary part is \(–4\). We plot the ordered pair \((3,−4)\) as shown in Figure \(\PageIndex{4}\).

    Coordinate plane with the x and y axes ranging from -5 to 5.  The point 3 – 4i is plotted, with an arrow extending rightward from the origin 3 units and an arrow extending downward 4 units from the end of the previous arrow.
    Figure \(\PageIndex{4}\)
    Exercise \(\PageIndex{2}\)

    Plot the complex number \(−4−i\) on the complex plane.

    Answer
    Coordinate plane with the x and y axes ranging from negative 5 to 5.  The point -4  i is plotted.
    Figure \(\PageIndex{5}\)

    Adding and Subtracting Complex Numbers

    Just as with real numbers, we can perform arithmetic operations on complex numbers. To add or subtract complex numbers, we combine the real parts and then combine the imaginary parts.

    COMPLEX NUMBERS: ADDITION AND SUBTRACTION

    Adding complex numbers:

    \[(a+bi)+(c+di)=(a+c)+(b+d)i\]

    Subtracting complex numbers:

    \[(a+bi)−(c+di)=(a−c)+(b−d)i\]

    Howto: Given two complex numbers, find the sum or difference
    1. Identify the real and imaginary parts of each number.
    2. Add or subtract the real parts.
    3. Add or subtract the imaginary parts.
    Example \(\PageIndex{3}\): Adding and Subtracting Complex Numbers

    Add or subtract as indicated.

    1. \((3−4i)+(2+5i)\)
    2. \((−5+7i)−(−11+2i)\)

    Solution

    1. \[\begin{align*} (3-4i)+(2+5i)&= 3-4i+2+5i\\[4pt] &= 3+2+(-4i)+5i\\[4pt] &= (3+2)+(-4+5)i\\[4pt] &= 5+i \end{align*}\]
    2. \[\begin{align*} (-5+7i)-(-11+2i)&= -5+7i+11-2i\\[4pt] &= -5+11+7i-2i\\[4pt] &= (-5+11)+(7-2)i\\[4pt] &= 6+5i \end{align*}\]
    Exercise \(\PageIndex{3}\)

    Subtract \(2+5i\) from \(3–4i\).

    Answer

    \((3−4i)−(2+5i)=1−9i\)

    Multiplying Complex Numbers

    Multiplying complex numbers is much like multiplying binomials. The major difference is that we work with the real and imaginary parts separately.

    Multiplying a Complex Number by a Real Number

    Lets begin by multiplying a complex number by a real number. We distribute the real number just as we would with a binomial. Consider, for example, \(3(6+2i)\) :

    Multiplication of a real number and a complex number.  The 3 outside of the parentheses has arrows extending from it to both the 6 and the 2i inside of the parentheses.  This expression is set equal to the quantity three times six plus the quantity three times two times i; this is the distributive property.  The next line equals eighteen plus six times i; the simplification.

    Howto: Given a complex number and a real number, multiply to find the product
    1. Use the distributive property.
    2. Simplify.
    Example \(\PageIndex{4}\): Multiplying a Complex Number by a Real Number

    Find the product \(4(2+5i)\).

    Solution

    Distribute the \(4\).

    \[\begin{align*} 4(2+5i)&= (4\cdot 2)+(4\cdot 5i)\\[4pt] &= 8+20i \end{align*}\]

    Exercise \(\PageIndex{4}\)

    Find the product: \(\dfrac{1}{2}(5−2i)\).

    Answer

    \(\dfrac{5}{2}-i\)

    Multiplying Complex Numbers Together

    Now, let’s multiply two complex numbers. We can use either the distributive property or more specifically the FOIL method because we are dealing with binomials. Recall that FOIL is an acronym for multiplying First, Inner, Outer, and Last terms together. The difference with complex numbers is that when we get a squared term, \(i^2\), it equals \(-1\).

    \[\begin{align*} (a+bi)(c+di)&= ac+adi+bci+bdi^2\\[4pt] &= ac+adi+bci-bd(-1)\qquad i^2 = -1\\[4pt] &= ac+adi+bci-bd\\[4pt] &= (ac-bd)+(ad+bc)i \end{align*}\]

    Group real terms and imaginary terms.

    Howto: Given two complex numbers, multiply to find the product
    1. Use the distributive property or the FOIL method.
    2. Remember that \(i^2=-1\).
    3. Group together the real terms and the imaginary terms
    Example \(\PageIndex{5}\): Multiplying a Complex Number by a Complex Number

    Multiply \((4+3i)(2−5i)\).

    Solution

    \[\begin{align*} (4+3i)(2-5i)&= 4(2)-4(5i)+3i(2)-(3i)(5i)\\[4pt] &= 8-20i+6i-15(i^2)\\[4pt] &= (8+15)+(-20+6)i\\[4pt] &= 23-14i \end{align*}\]

    Exercise \(\PageIndex{5}\)

    Multiply: \((3−4i)(2+3i)\).

    Answer

    \(18+i\)

    Dividing Complex Numbers

    Dividing two complex numbers is more complicated than adding, subtracting, or multiplying because we cannot divide by an imaginary number, meaning that any fraction must have a real-number denominator to write the answer in standard form \(a+bi\). We need to find a term by which we can multiply the numerator and the denominator that will eliminate the imaginary portion of the denominator so that we end up with a real number as the denominator. This term is called the complex conjugate of the denominator, which is found by changing the sign of the imaginary part of the complex number. In other words, the complex conjugate of \(a+bi\) is \(a−bi\). For example, the product of \(a+bi\) and \(a−bi\) is

    \[\begin{align*} (a+bi)(a-bi)&= a^2-abi+abi-b^2i^2\\[4pt] &= a^2+b^2 \end{align*}\]

    The result is a real number.

    Note that complex conjugates have an opposite relationship: The complex conjugate of \(a+bi\) is \(a−bi\), and the complex conjugate of \(a−bi\) is \(a+bi\). Further, when a quadratic equation with real coefficients has complex solutions, the solutions are always complex conjugates of one another.

    Suppose we want to divide \(c+di\) by \(a+bi\), where neither \(a\) nor \(b\) equals zero. We first write the division as a fraction, then find the complex conjugate of the denominator, and multiply.

    \(\dfrac{c+di}{a+bi}\) where \(a≠0\) and \(b≠0\)

    Multiply the numerator and denominator by the complex conjugate of the denominator.

    \[\begin{align*} \dfrac{(c+di)}{(a+bi)}\cdot \dfrac{(a-bi)}{(a-bi)}&= \dfrac{(c+di)(a-bi)}{(a+bi)(a-bi)}\\[4pt] &= \dfrac{ca-cbi+adi-bdi^2}{a^2-abi+abi-b^2i^2} \qquad \text{Apply the distributive property}\\[4pt] &= \dfrac{ca-cbi+adi-bd(-1)}{a^2-abi+abi-b^2(-1)} \qquad \text{Simplify, remembering that } i^2=-1\\[4pt] &= \dfrac{(ca+bd)+(ad-cb)i}{a^2+b^2} \end{align*}\]

    Definition: THE COMPLEX CONJUGATE

    The complex conjugate of a complex number \(a+bi\) is \(a−bi\). It is found by changing the sign of the imaginary part of the complex number. The real part of the number is left unchanged.

    1. When a complex number is multiplied by its complex conjugate, the result is a real number.
    2. When a complex number is added to its complex conjugate, the result is a real number.
    Example \(\PageIndex{6}\): Finding Complex Conjugates

    Find the complex conjugate of each number.

    1. \(2+i\sqrt{5}\)
    2. \(-\dfrac{1}{2}i\)

    Solution

    1. The number is already in the form \(a+bi\). The complex conjugate is \(a−bi\), or \(2−i\sqrt{5}\).
    2. We can rewrite this number in the form \(a+bi\) as \(0−\dfrac{1}{2}i\). The complex conjugate is \(a−bi\), or \(0+\dfrac{1}{2}i\). This can be written simply as \(\dfrac{1}{2}i\).

    Analysis

    Although we have seen that we can find the complex conjugate of an imaginary number, in practice we generally find the complex conjugates of only complex numbers with both a real and an imaginary component. To obtain a real number from an imaginary number, we can simply multiply by \(i\).

    Exercise \(\PageIndex{6}\)

    Find the complex conjugate of \(−3+4i\).

    Answer

    \(−3−4i\)

    How to: Given two complex numbers, divide one by the other
    1. Write the division problem as a fraction.
    2. Determine the complex conjugate of the denominator.
    3. Multiply the numerator and denominator of the fraction by the complex conjugate of the denominator.
    4. Simplify.
    Example \(\PageIndex{7}\): Dividing Complex Numbers

    Divide \((2+5i)\) by \((4−i)\).

    Solution

    We begin by writing the problem as a fraction.

    \[\dfrac{(2+5i)}{(4−i)} \nonumber \]

    Then we multiply the numerator and denominator by the complex conjugate of the denominator.

    \[\dfrac{(2+5i)}{(4−i)}⋅\dfrac{(4+i)}{(4+i)} \nonumber \]

    To multiply two complex numbers, we expand the product as we would with polynomials (using FOIL).

    \[\begin{align*} \dfrac{(2+5i)}{(4-i)}\cdot \dfrac{(4+i)}{(4+i)}&= \dfrac{8+2i+20i+5i^2}{16+4i-4i-i^2}\\[4pt] &= \dfrac{8+2i+20i+5(-1)}{16+4i-4i-(-1)}\; i^2=-1 \\[4pt] &= \dfrac{3+22i}{17}\\[4pt] &= \dfrac{3}{17}+\dfrac{22}{17i} \end{align*}\]

    Separate real and imaginary parts.

    Note that this expresses the quotient in standard form.

    Simplifying Powers of \(i\)

    The powers of \(i\) are cyclic. Let’s look at what happens when we raise \(i\) to increasing powers.

    \[i^1=i \nonumber \] \[i^2=-1 \nonumber \] \[i^3=i^2⋅i=-1⋅i=-i \nonumber \] \[i^4=i^3⋅i=-i⋅i=-i^2=-(-1)=1 \nonumber \] \[i^5=i^4⋅i=1⋅i=i \nonumber \]

    We can see that when we get to the fifth power of i , it is equal to the first power. As we continue to multiply \(i\) by increasing powers, we will see a cycle of four. Let’s examine the next four powers of \(i\).

    \[i^6=i^5⋅i=i⋅i=i^2=-1 \nonumber \] \[i^7=i^6⋅i=i^2⋅i=i^3=-i \nonumber \] \[i^8=i^7⋅i=i^3⋅i=i^4=1 \nonumber \] \[i^9=i^8⋅i=i^4⋅i=i^5=i \nonumber \]

    The cycle is repeated continuously: \(i,−1,−i,1,\) every four powers.

    Example \(\PageIndex{8}\): Simplifying Powers of \(i\)

    Evaluate: \(i^{35}\).

    Solution

    Since \(i^4=1\), we can simplify the problem by factoring out as many factors of \(i^4\) as possible. To do so, first determine how many times \(4\) goes into \(35: 35=4⋅8+3\).

    \[i^{35}=i^{4⋅8+3}=i^{4⋅8}⋅i^3={(i^4)}^8⋅i^3=i^8⋅i^3=i^3=−i \nonumber \]

    Exercise \(\PageIndex{7}\)

    Evaluate: \(i^{18}\)

    Answer

    \(−1\)

    Q&A

    Can we write \(i^{35}\) in other helpful ways?

    As we saw in Example \(\PageIndex{8}\), we reduced \(i^{35}\) to \(i^3\) by dividing the exponent by \(4\) and using the remainder to find the simplified form. But perhaps another factorization of \(i^{35}\) may be more useful. Table \(\PageIndex{1}\) shows some other possible factorizations.

    Table \(\PageIndex{1}\)
    Factorization of \(i^{35}\) \(i^{34}⋅i\) \(i^{33}⋅i^2\) \(i^{31}⋅i^4\) \(i^{19}⋅i^{16}\)
    Reduced form \({(i^2)}^{17}⋅i\) \(i^{33}⋅(−1)\) \(i^{31}⋅1\) \(i^{19}⋅{(i^4)}^4\)
    Simplified form \({(−1)}^{17}⋅i\) \(−i^{33}\) \(i^{31}\) \(i^{19}\)

    Each of these will eventually result in the answer we obtained above but may require several more steps than our earlier method.

    Media

    Access these online resources for additional instruction and practice with complex numbers.

    1. Adding and Subtracting Complex Numbers
    2. Multiply Complex Numbers
    3. Multiplying Complex Conjugates
    4. Raising i to Powers

    Key Concepts

    • The square root of any negative number can be written as a multiple of \(i\). See Example.
    • To plot a complex number, we use two number lines, crossed to form the complex plane. The horizontal axis is the real axis, and the vertical axis is the imaginary axis. See Example.
    • Complex numbers can be added and subtracted by combining the real parts and combining the imaginary parts. See Example.
    • Complex numbers can be multiplied and divided.
      • To multiply complex numbers, distribute just as with polynomials. See Example and Example.
      • To divide complex numbers, multiply both numerator and denominator by the complex conjugate of the denominator to eliminate the complex number from the denominator. See Example and Example.
    • The powers of i are cyclic, repeating every fourth one. See Example.

    This page titled 5: Complex Numbers is shared under a CC BY 4.0 license and was authored, remixed, and/or curated by OpenStax via source content that was edited to the style and standards of the LibreTexts platform; a detailed edit history is available upon request.