Complex Number Calculator
- What is a complex number? - Complex number definition
- Polar form of complex numbers
- Basic operations with complex numbers - sum and difference
- Multiplying and dividing complex numbers
- Complex power and complex logarithm
- How to use the complex number calculator
- Properties of complex numbers
- Complex numbers in real life
Our complex number calculator (also known as an imaginary number calculator) is an excellent tool for solving basic operations with complex numbers. Read on to find the answer to the question: "what is a complex number" learn about the algebraic and polar forms of complex numbers, and master the skills of multiplying and dividing complex numbers.
At the end of this text, you can also find information about the properties of complex numbers (most of which are based on the conjugate or the absolute value of complex numbers) and even some practical applications of them.
What is a complex number? - Complex number definition
To answer the question of what is a complex number, we have first to ask: "What is an imaginary number?". An imaginary number is the square root of a negative number. The basic imaginary number is denoted with the letter (sometimes e.g. in electronics), and is defined by:
The definition of a complex number is the combination of real and imaginary parts, so that:
Here, both and are classically understood as real numbers. When , the number is purely real, and if , we have a purely imaginary number. You can use this complex number calculator as an imaginary number calculator - just input the real component equal to 0.
Another way to write two parts of a complex number is and so that , and . In fact, there are also numbers with more imaginary parts: check our quaternion calculator. Fortunately, we don't have to worry about them here.
The conjugate of a complex number is defined as:
As we can see, the conjugate of a complex number doesn't affect the real part, while the imaginary part has the opposite sign as the original.
Polar form of complex numbers
Complex numbers have a lot in common with the Cartesian coordinate system because they are pairs of numbers on a Cartesian complex plane. It's helpful to imagine complex numbers as vectors on that complex plane. The formulas which transform complex numbers from Cartesian form to polar form are exactly the same as classical coordinate transformations:
where is the modulus/absolute value of the complex number, is known as an argument or phase (sometimes we use notation ), and is the tangent of the given argument.
🙋 Feel free to check Omni's trigonometric functions calculator if you need to quickly revise trigonometric functions.
Similarly, the length of a vector in the two-dimensional Euclidean plane is the distance between its end and the origin of the coordinate system. The angle is measured from the X-axis counterclockwise, and it can vary from to or from to (depending on convention since both are equivalent).
Knowing that we can write any complex number using its polar coordinates on that plane:
Here sin and cos are basic trigonometric functions. We derive these formulas from the relations in the right triangle on the complex plane. In other words, we can write the complex number as: .
There is also another way to rewrite this number, using the Euler formula:
where is an exponent function, the base of which is the number . Because of the periodicity property, we can see that:
where is any integer number.
🙋 Head to our polar coordinates calculator if you want to learn more about this coordination system.
The polar form of complex numbers is handy in various calculations, including multiplication, division, and even some more sophisticated ones. The exponential form is convenient if you are not proficient enough in trigonometric laws or you just prefer to work with powers.
Basic operations with complex numbers - sum and difference
When performing simple operations with complex numbers, it's helpful to think about them as vectors. Then, it's pretty straightforward to achieve both addition and subtraction of complex numbers.
Let's denote the first number as and the second one as . Then, the sum of two complex numbers is:
where is the real part of the sum, and is imaginary one.
Analogically, we can find the difference between these numbers:
and now , and .
Do you remember how to add or subtract two 2D vectors? It's precisely the same as we do it in this complex number calculator - you just need to add (or subtract) each pair of components separately, and that's it!
Multiplying and dividing complex numbers
Now, let's move to something more challenging - we want to find how multiplying complex numbers work. Following with notation from the previous section, we can write:
This time the real part can be written as , and imaginary part as . Note that there is a minus sign in the real part since, at some point, we faced a multiplication of two imaginary numbers , which equals by definition.
Multiplying complex numbers isn't that scary. Is it? So what about dividing complex numbers? Let's have a look at calculations with step-by-step hints:
- , extend both numerator and denominator by the conjugate of a complex number of the latter.
- , perform standard multiplications.
- , once again, use the fact that .
We obtain the following results: , . Of course, the division is possible only if .
We can also consider the operations above in the polar notation, say , . Then, multiplying complex numbers is given by:
and we can see that: , and .
Dividing complex numbers is almost the same with this notation:
rewriting the result as: , and . Using this form, it's clearly visible that the resulting module is the ratio of both numbers' absolute values.
It looks like the second attempt is much simpler; thus sometimes it's worth considering changing the form of our expressions before starting a calculation. We can always come back from polar to algebraic notation. If you don't feel comfortable with it, just use our complex number calculator to ensure the outcome is correct.
Complex power and complex logarithm
We can give a brief overview of how to calculate some more complicated operations with complex numbers. Firstly, let's find the general formula for the complex power of two numbers, given as .
- since it isn't obvious how to extend that expression, we can write
Fin the polar form of complex numbers.
- , now the product to any power of a sum is the product of each element to every component separately.
- , we can use the known property of exponent that is: , where is the natural logarithm.
Then, the absolute value is: , while the argument is: . Although we are mixing two different notations, it's fine. We can also change them anyway you like - that's all your choice.
The logarithm of a complex numbers (also known as the complex logarithm) can be worked out the following way:
One critical remark: since the phases and are equivalent, the complex logarithm has an infinite number of solutions, and we can write the general result as: .
How to use the complex number calculator
The tool is straightforward to use. All you have to do is write both the real and imaginary parts of two numbers. If a number is purely real or imaginary, set the other component equal to 0. And that's it.
As a result, you will obtain the polar form of complex numbers, the sum, the difference, the product, and the quotient, as well as the first number to the power of the second one and the logarithm of the first number.
Properties of complex numbers
There are several properties of complex numbers, including conjugate or the absolute value of complex numbers, which can be handy while calculating some exercises.
- ; and
- If , then both and .
Complex numbers in real life
Complex numbers are sometimes really helpful with algebraic expressions, especially if they are related to trigonometric functions.
Many physics problems benefit from the power of complex numbers. One of the main fields of complex number usage is the world of wave functions and harmonic motion. Also, we can significantly simplify multiple issues from electronics with complex numbers. You can check how we can do it in practice with the voltage divider calculator.