# Imaginary Number Calculator

Created by Krishna Nelaturu
Reviewed by Komal Rafay
Last updated: Mar 25, 2023

Our imaginary number calculator is here to help you perform various arithmetic operations on two complex numbers. Are you looking for a simple calculator to add imaginary numbers? Or maybe you're for something more advanced, say, finding the natural logarithm of a complex number. Well, you've come to the perfect imaginary calculator!

Here's a list of operations with complex numbers this calculator can handle:

• Adding and subtracting two imaginary numbers;
• Multiply or divide two complex numbers;
• Raise the first complex number to the power of the second complex number;
• Find the natural log of the first complex number; and
• Find the magnitude and phase of complex numbers.

Before you head off to have fun with our imaginary number calculator, go through the article below to understand what complex numbers are and how to calculate these operations with complex numbers.

## What are complex numbers?

Complex numbers are numbers with a real part and an imaginary part. They're of the form:

$z = a + ib$

Where:

• $z$ - Complex number;
• $a,b$ -Real numbers;
• $i$ - Imaginary unit, such that $i^2 = \sqrt{-1}$.

🔎 The real part of $z$ can be written as $\text{Re}(z)$, while the imaginary part can be referred to as $\text{Im}(z)$.

An imaginary number is a complex number whose real part is zero $(\text{Re}(z)=0)$ and whose imaginary part is non-zero $(\text{Im}(z)\neq 0)$.

## Polar form of complex numbers

Apart from the Cartesian form $z = a + ib$, we can express a complex number in the polar form, using its magnitude and phase angle.

The magnitude $|z|$ (or the absolute value) of a complex number $z$ is given by:

$|z| = \sqrt{a^2 + b^2}$

The phase angle $\varphi$ of a complex number $z$ is given by:

$\varphi = \tan^{-1}\left( \frac{b}{a}\right)$

The polar form of the complex number $z$ is written as:

$z = |z| e^{i \varphi}$

Where $e$ is the Euler's number.

## Calculating some operations with complex numbers

Let's briefly discuss how various arithmetic operations are performed on complex numbers. Bear in mind that these operations are valid for purely imaginary numbers too!

The addition and subtraction of two complex numbers are pretty straightforward. Say we have two complex numbers $z_1 = a + ib$ and $z_2 = c + id$:

\small \begin{align*} z_1 + z_2 &= (a + ib) + (c + id)\\ &= (a+c) + i(b+d)\\ z_1 - z_2 &= (a + ib) - (c + id)\\ &= (a-c) + i(b-d) \end{align*}

### Multiplication and division

The multiplication and division of complex numbers may seem slightly more complex (pun unintended!). Consider two complex numbers $z_1 = a + ib$ and $z_2 = c + id$. Their multiplication is given by:

\begin{align*} z_1 \cdot z_2 &= (a \cdot c - b \cdot d)\\ &+ i (a \cdot d + b \cdot c) \end{align*}

On the other hand, their division is given by:

\begin{align*} \frac{z_1}{z_2} &= \left(\frac{a \cdot c + b \cdot d}{c^2 + d^2}\right)\\ &+ i \left(\frac{b \cdot c - a \cdot d}{c^2 + d^2}\right) \end{align*}

### Power and natural log

Raising one complex number $z_1= a + ib$ to the power of another complex number $z_2 = c + id$ requires you to use the polar form:

\small \begin{align*} z_1^{z_2} &= (|z_1| \cdot e^{i \varphi_1})^{(c+id)}\\[0.5em] z_1^{z_2} &=|z_1|^c \cdot e^{-\varphi_1 \cdot d} \cdot e^{i(\varphi_1 \cdot c + d \cdot \ln|z_1|)} \end{align*}

You can compute the natural logarithm of a complex number (also known as a complex natural log) using the formula:

\begin{align*} \ln(z_1) &= \ln(|z_1| \cdot e^{i \varphi_1})\\ &= \ln(|z_1|) + i\varphi_1 \end{align*}

## Using this imaginary number calculator

Our imaginary number calculator is simple to use:

1. Enter the real and imaginary parts of the a complex number. The imaginary number calculator will immediately tell you this:
1. Magnitude; and
2. Phase angle.
2. Enter a second complex number in a similar manner, and the calculator will do the following
1. The calculator adds the imaginary numbers to give you their sum. Similarly, it'll also generate the difference between the two complex numbers $(z_1-z_2)$.
2. The calculator multiplies the imaginary numbers to give you their product.
3. The calculator divides the complex number $(z_1/z_2)$ to give you their quotient.
4. It will raise the first complex number to the power of the second complex number $z_1^{z_2}$.
5. Finally, it generates the natural logarithm of the first complex number $\ln(z_1)$.

## Other tools similar to this imaginary calculator

Check out our tools that deal with similar calculations on complex numbers:

## FAQ

### What is the natural log of z = 5 + 7i?

The natural log of the complex number z = 5 + 7i is 2.152 + 0.951i. To arrive at this answer, follow these steps:

1. Find the magnitude of z = 5 + 7i, to get |z| = √(52+ 72) = 8.602.
2. Compute the phase angle of z = 5 + 7i, to get ϕ = tan-1(7/5) = 0.951 rad.
3. Use the complex natural log formula ln(z) = ln|z| + iϕ to get ln(5+7i) = ln|8.602| + i0.951 = 2.152 + 0.951i.
4. You can verify your result with our imaginary number calculator.

### Is zero a real number or a complex number?

Zero is considered both a real and a complex number. This is because we can express it as 0 = 0 + 0i. Technically, we can express any real number a in the complex form, a = a + 0i.

Krishna Nelaturu
First number: z₁ = a + bi
Real part (a)
Imaginary part (b)
Magnitude |z₁|
Phase (φ₁)
deg
Second number: z₂ = c + di
Real part (c)
Imaginary part (d)
Magnitude |z₂|
Phase (φ₂)
deg
People also viewed…

### Equation of a circle

Equation of a circle calculator finds a circle's radius and center coordinates on a Cartesian plane.

### Obtuse triangle

Want to know whether your triangle is obtuse? Try the obtuse triangle calculator!

### Secretary problem (Valentine's day)

Use the dating theory calculator to enhance your chances of picking the best lifetime partner.

### Significant figures

The significant figures calculator performs operations on sig figs and shows you a step-by-step solution!