Mathematics · Calculus · Complex Analysis
Euler's Formula Calculator
Compute Euler's formula e^(iθ) = cos(θ) + i·sin(θ) for any angle, returning the real part, imaginary part, modulus, and argument of the resulting complex number.
Calculator
Formula
Here, e is Euler's number (≈ 2.71828), i is the imaginary unit satisfying i² = −1, and θ (theta) is the angle in radians. The real part of the result is cos(θ), and the imaginary part is sin(θ). The modulus |e^{iθ}| is always 1, and the argument is θ itself, confirming that Euler's formula describes a point on the unit circle in the complex plane.
Source: Euler, L. (1748). Introductio in Analysin Infinitorum. Also derived via Taylor series expansion of e^x, sin(x), and cos(x).
How it works
Euler's formula establishes a profound bridge between two seemingly unrelated areas of mathematics: exponential functions and trigonometry. When the exponent of e is purely imaginary — that is, when you raise e to the power iθ — the result is a complex number that lies exactly on the unit circle of the complex plane. The horizontal coordinate of that point is cos(θ) and the vertical coordinate is sin(θ), so the complex number can be written as cos(θ) + i·sin(θ). This geometric interpretation means that multiplying any complex number by e^(iθ) rotates it counterclockwise by θ radians about the origin, which is the foundation of phasor analysis in electrical engineering and Fourier analysis in signal processing.
The formula is most elegantly derived by comparing the Taylor series expansions of e^x, sin(x), and cos(x). The series for e^(ix) is 1 + ix + (ix)²/2! + (ix)³/3! + …, which, after simplifying powers of i, separates perfectly into the series for cos(x) and i·sin(x). The modulus of e^(iθ) is always exactly 1 regardless of θ, confirming that it lies on the unit circle. The argument of the resulting complex number is θ itself (modulo 2π). When θ = π, Euler's formula yields the famous identity e^(iπ) + 1 = 0, which connects the five most important constants in mathematics: e, i, π, 1, and 0.
Engineers use Euler's formula constantly to simplify alternating current (AC) circuit analysis. Instead of carrying separate sine and cosine terms through calculations, circuit elements like resistors, capacitors, and inductors are represented as complex impedances, and voltages and currents are expressed as rotating phasors of the form Ve^(iωt). Signal processing relies on Euler's formula as the backbone of the Discrete Fourier Transform, which decomposes any periodic signal into a sum of complex exponentials. In quantum mechanics, wave functions are written as complex exponentials whose argument encodes phase information. Understanding and rapidly evaluating Euler's formula is therefore a fundamental skill across engineering and physics disciplines.
Worked example
Example 1 — θ = π/3 radians (60°):
We want to evaluate e^(i·π/3). Applying Euler's formula directly:
Real part = cos(π/3) = cos(60°) = 0.500000
Imaginary part = sin(π/3) = sin(60°) = 0.866025
So e^(iπ/3) = 0.500000 + 0.866025i
Modulus = √(0.5² + 0.866025²) = √(0.25 + 0.75) = √1 = 1.000000 (as always for Euler's formula)
Argument = 60.0000°
Example 2 — Euler's Identity (θ = π radians, 180°):
Real part = cos(π) = −1.000000
Imaginary part = sin(π) = 0.000000
Result: e^(iπ) = −1 + 0i, which rearranges to the identity e^(iπ) + 1 = 0.
Example 3 — θ = π/2 radians (90°):
Real part = cos(π/2) = 0.000000
Imaginary part = sin(π/2) = 1.000000
Result: e^(iπ/2) = i — rotating 90° counterclockwise from 1 on the unit circle lands exactly on the imaginary axis at i.
Limitations & notes
Euler's formula e^(iθ) = cos(θ) + i·sin(θ) applies specifically to purely imaginary exponents. For the general complex exponent z = a + iθ, the full form is e^z = e^a · (cos(θ) + i·sin(θ)), where e^a scales the modulus away from 1. This calculator evaluates only the unit-circle form. Floating-point arithmetic introduces tiny rounding errors near exact multiples of π/2 — for example, cos(π/2) may display as a very small number like 6.12e−17 rather than exactly 0 due to IEEE 754 double-precision representation; treat any value smaller than ~1e−14 as effectively zero. Angles expressed in degrees are converted internally to radians, and the output argument is given in degrees for convenience. There is no restriction on the range of θ; values outside [0, 2π) are valid and simply represent multiple full rotations around the unit circle. This tool does not handle symbolic computation and operates purely numerically.
Frequently asked questions
What is Euler's formula and why is it important?
Euler's formula, e^(iθ) = cos(θ) + i·sin(θ), relates the complex exponential function to sine and cosine. It is important because it unifies exponential and trigonometric functions under a single elegant expression, simplifies calculations in AC circuit analysis, Fourier transforms, and quantum mechanics, and yields the celebrated Euler's identity e^(iπ) + 1 = 0 when θ = π.
What is the modulus of e^(iθ)?
The modulus (absolute value) of e^(iθ) is always exactly 1, regardless of the value of θ. This follows from the Pythagorean identity cos²(θ) + sin²(θ) = 1, meaning that e^(iθ) always lies on the unit circle in the complex plane.
How does Euler's formula relate to Euler's identity?
Euler's identity is a special case of Euler's formula evaluated at θ = π. Substituting π into e^(iθ) = cos(θ) + i·sin(θ) gives e^(iπ) = cos(π) + i·sin(π) = −1 + 0i, or equivalently e^(iπ) + 1 = 0. This result connects five fundamental mathematical constants: e, i, π, 1, and 0.
Can I use degrees instead of radians with Euler's formula?
Euler's formula is defined in terms of radians. If you prefer to input an angle in degrees, this calculator automatically converts your input to radians (multiplying by π/180) before applying the formula. The output argument is then reported back in degrees for readability.
How is Euler's formula used in electrical engineering?
In AC circuit analysis, voltages and currents oscillate sinusoidally. Engineers represent these as phasors — complex exponentials of the form V·e^(iωt) — which allows them to use simple complex arithmetic rather than cumbersome trigonometric identities. Euler's formula justifies this approach by showing that the real part of V·e^(iωt) is V·cos(ωt) and the imaginary part is V·sin(ωt), recovering the physical sinusoidal quantities.
Last updated: 2025-01-15 · Formula verified against primary sources.