Euler’s formula is the identity
where is Euler’s number, is the imaginary unit satisfying , and is a real angle measured in radians. It connects the exponential function with the trigonometric functions, showing that an exponential with a purely imaginary exponent describes a point moving around the unit circle. Named after Leonhard Euler, the formula is a central identity in complex analysis.
Its importance extends beyond the evaluation of complex expressions. Euler’s formula turns multiplication into the addition of angles, represents sinusoidal motion through exponentials, and supplies the basic functions used in Fourier analysis. It also underlies methods for solving differential equations, analyzing electrical circuits, describing waves, and constructing rotations. At , it gives the special case , commonly called Euler’s identity.
Mathematical statement and conventions
The expression is a complex number, not a real exponential with an unusual numerical input. Every complex number can be written , where and are real numbers. Euler’s formula identifies the real and imaginary parts of this particular exponential:
Thus an expression involving one complex exponential contains two real-valued functions. This pairing is especially useful when two quantities vary sinusoidally with a quarter-cycle phase difference.
The angle must be measured in radians for the formula to have this form. Radian measure defines an angle as arc length divided by radius, so a complete turn corresponds to , where is the ratio of a circle’s circumference to its diameter. If a numerical angle is expressed in degrees, the corresponding exponential is . The radian convention also ensures that the derivatives of sine and cosine have their familiar forms without additional conversion factors.
The modulus, or absolute value, of is . Consequently,
The complex exponential therefore remains on the unit circle when its exponent is purely imaginary. This contrasts with the real exponential , whose values are positive and whose magnitude changes as changes. Imaginary increments in an exponent change phase, while real increments change magnitude.
More generally, for ,
This formula separates the two roles of a complex exponent: is a positive scale factor, and is an angle. In particular, is never zero, its modulus is , and it is periodic in the imaginary direction:
These properties distinguish the complex exponential from its restriction to the real line, which is one-to-one.
The notation is justified by an extension of real exponentiation, usually constructed through an infinite series or a differential equation. Euler’s formula is then a theorem about that extension. In another common presentation, the formula helps define the complex exponential from independently established real exponential and trigonometric functions. Either approach requires verification that the resulting function obeys the exponential law .
Historical development
Euler’s formula emerged from the gradual recognition that logarithms, trigonometry, and imaginary quantities belonged to a common mathematical framework. During the seventeenth and early eighteenth centuries, complex expressions increasingly appeared in algebraic calculations, although their geometric and analytic interpretation was not yet standardized. Trigonometric addition formulas already suggested that certain expressions involving sine and cosine had a multiplicative structure resembling the rules for powers.
Abraham de Moivre developed a closely related connection between complex powers and multiple angles. In its modern form, de Moivre’s formula states
for every integer . This identity concerns integer powers and can be proved directly from the trigonometric addition formulas. Euler’s formula places the same relationship within the broader theory of exponential functions, allowing a continuous parameter to replace the integer exponent.
Roger Cotes published a related logarithmic relationship in 1714. In modern notation and with suitable choices of angle and logarithm, it connects the logarithm of with . Such statements require care because a complex logarithm has multiple values, a feature not fully organized in the early development of the subject. Cotes’s work nevertheless represents an important predecessor to the exponential-trigonometric connection associated with Euler.
Euler presented the relationship prominently in his 1748 work Introductio in analysin infinitorum. His treatment brought exponential and trigonometric functions together through the systematic use of infinite series and imaginary quantities. It also expressed sine and cosine in terms of exponentials with imaginary arguments. These expressions made it possible to move between algebraic operations on exponentials and identities involving circular functions, providing a particularly effective language for analysis.
The modern theorem belongs to a more rigorous framework than the formal manipulations through which many of its consequences were first discovered. Nineteenth-century developments in convergence, complex differentiation, and the geometry of complex numbers clarified why the relevant series can be differentiated and rearranged. The formula’s historical significance therefore lies not only in a striking equality but also in its role in unifying previously separate classes of functions. The name “Euler’s formula” is also used for unrelated results, including his polyhedral relation ; the exponential formula is distinguished by its connection between , cosine, and sine.
Proofs from series and differential equations
A standard proof begins with the power-series definition of the exponential:
Here denotes the factorial of , with . This series converges absolutely for every complex . Substituting , and using the repeating pattern for powers of , gives
The two series in parentheses are the Taylor series of cosine and sine, respectively. Absolute convergence justifies separating the even-indexed and odd-indexed terms.
This proof establishes more than a formal resemblance between expressions. On every bounded region of the complex plane, the exponential series and its differentiated series converge uniformly. The corresponding results for sine and cosine allow these functions to be differentiated term by term. The equality is consequently compatible with the analytic properties of all three functions, rather than depending on an informal substitution into a real-variable formula.
A second proof uses an ordinary differential equation. Let
Then
The function satisfies the same initial-value problem,
Uniqueness of solutions implies . Although the equation is complex-valued, it can be regarded as a system of two real equations. Writing gives
with and .
A closely related argument avoids explicitly invoking a uniqueness theorem. If complex exponentiation and its differentiation rule have already been established, define
The product rule yields , so is constant. Since , multiplication by gives Euler’s formula. The vanishing derivative can be interpreted componentwise for the real and imaginary parts.
These proofs depend on how the functions were introduced. If sine and cosine are defined geometrically, their derivative formulas and series expansions require prior justification. If all three functions are defined by their power series, the first proof is immediate once convergence is established. If the complex exponential is defined through a differential equation, uniqueness becomes the central step. A valid proof must keep these dependencies clear: a derivative or identity derived from Euler’s formula cannot independently be used to establish the same formula.
Circular geometry, multiplication, and roots
In the complex plane, the number is represented by the point . Euler’s formula identifies
so it parametrizes the unit circle counterclockwise from the point . Differentiating with respect to gives
Multiplication by rotates a vector through a right angle. The velocity is therefore perpendicular to the radius and has unit magnitude, explaining geometrically why the path is circular and why measures arc length on the unit circle.
Every nonzero complex number has a polar representation
The angle , called an argument of , is determined only up to an integer multiple of . In polar coordinates, multiplication becomes
Thus magnitudes multiply and arguments add. Multiplication by a fixed nonzero complex number is a rotation combined with uniform scaling; division reverses these operations.
The exponential law immediately produces the trigonometric addition formulas. Expanding both sides of
and equating real and imaginary parts gives
Integer powers similarly yield de Moivre’s formula. This is one reason exponential notation simplifies trigonometric calculations: an angle-addition problem becomes an application of familiar multiplication rules.
Setting yields Euler’s identity,
Other special angles give and . More generally, the th roots of unity are
They are the vertices of a regular -sided polygon inscribed in the unit circle. Multiplication permutes these roots, and the powers of generate all of them.
For a nonzero number , its distinct th roots are
For example, the cube roots of are , , and . Their equally spaced arguments make the algebraic symmetry visible. In group theory, the unit complex numbers form a group under multiplication, and the map converts addition of real numbers into that group operation.
Complex arguments and logarithms
Euler’s formula explains both the usefulness and the multivalued nature of the complex logarithm. If
then every solution of has the form
The real part is fixed by the modulus, while the imaginary part records any possible argument. Unlike the real exponential, the complex exponential is not injective: changing an input by leaves its value unchanged.
A single-valued logarithm can be obtained by choosing a branch of the argument. A standard analytic principal branch uses
on the complex plane with the nonpositive real axis removed, and defines
On this domain, is an analytic function with derivative . Some conventions assign a principal value on the negative real axis as well, but that assignment does not remove the discontinuity across the axis.
The obstruction to choosing a continuous argument on the entire punctured plane is geometric. Traveling once counterclockwise around the origin increases a continuously tracked angle by , even though the starting and ending points coincide. This phenomenon connects the exponential to topology. The kernel of the homomorphism from the additive real numbers to the unit circle is , so angles are naturally identified modulo full turns.
Branch choices affect logarithmic identities. Although holds for all complex , a chosen logarithm need not satisfy
For example, let . Then , and the principal logarithms satisfy
The values differ by , exactly the period of the exponential.
Complex powers inherit the same issue. After choosing a logarithm, one may define . Allowing all logarithm values instead produces a generally multivalued power. For instance, using the principal value of the logarithm at ,
Using every logarithm of gives the values , with . These are real and positive despite involving an imaginary base and exponent. Their multiplicity reflects the periodicity already present in Euler’s formula.
Fourier analysis and spectral representations
Euler’s formula allows sine and cosine to be written as combinations of complex exponentials:
These identities follow by adding and subtracting the formulas for and . They replace separate sine and cosine calculations with a single exponential notation and form a foundation of harmonic analysis.
For a sufficiently well-behaved -periodic function, a Fourier series can be written
The symbol does not, by itself, assert convergence in every possible sense; convergence depends on the function and the chosen setting. The exponential functions are orthogonal because
Here the overline denotes complex conjugation. This orthogonality separates different integer frequencies under the relevant inner product.
If is real-valued, its coefficients satisfy . Positive and negative frequencies are therefore not independent pieces of information in a real signal. For example,
The two terms rotate in opposite directions in the complex plane and add to a real oscillation. Negative frequency in this representation records the direction of phase rotation, rather than a negative number of cycles counted in time.
The Fourier transform extends this representation from discrete frequencies to a continuous frequency variable. With one common angular-frequency convention,
Because differentiating multiplies it by , differentiation becomes multiplication in the frequency domain under suitable hypotheses:
Likewise, convolution becomes multiplication. These properties turn many linear operations on signals or functions into simpler algebraic operations on their frequency components.
For sampled data, the discrete Fourier transform uses a finite collection of roots of unity:
The fast Fourier transform exploits symmetries among these roots to reduce the arithmetic required to compute the transform. Euler’s formula thereby links the geometry of equally spaced points on a circle to practical calculations in audio processing, imaging, numerical simulation, and communications.
Differential equations, oscillations, and phasors
Complex exponentials are particularly effective in linear differential equations because differentiation preserves their form:
When , Euler’s formula gives
The real part controls exponential growth or decay, while the imaginary part controls oscillation. This separates two qualitatively different features of a solution within one parameter.
For the harmonic oscillator,
the characteristic equation is , with roots . Complex exponential solutions therefore combine into the real general solution
For the damped equation
the underdamped case has roots
The resulting real motion is a sinusoid multiplied by the decaying envelope . The geometry of the complex roots directly identifies the decay rate and oscillation frequency.
In sinusoidal steady-state analysis, a phasor records an oscillation’s amplitude and phase in a fixed complex number:
At a common frequency , differentiation corresponds to replacing by . This reduces linear differential equations to algebraic equations between complex amplitudes. The method describes steady-state sinusoidal behavior; transient terms still require separate treatment when they are relevant.
For example, under the convention, the impedances of an ideal resistor, inductor, and capacitor are
Their phases encode the relative timing of voltage and current. Changing to an convention changes the associated signs, but not the physical predictions when the convention is used consistently. This convention dependence is a recurring practical issue in engineering applications of Euler’s formula.
Traveling waves are similarly represented by , whose real part is . Spatial and temporal derivatives become multiplication by and , respectively, simplifying wave equations. In quantum mechanics, an energy eigenstate acquires the time-dependent factor , where is the reduced Planck constant. Such a factor has unit modulus: it changes phase without changing the state’s norm. Relative phases between components can affect interference, even though a common overall phase does not change measurement probabilities.
Matrix exponentials and rotation groups
Euler’s formula has a direct counterpart in linear algebra. Consider the real matrix
Because satisfies the same quadratic relation as , its powers repeat in the same pattern. Defining the matrix exponential by its convergent power series gives
This is the matrix for counterclockwise rotation through angle in the real plane.
The correspondence is exact, not merely analogous. Associate the complex number with the real matrix
This association preserves addition and multiplication. Under the identification of with the column vector , complex multiplication becomes a real linear map. Multiplication by is therefore the same operation as applying the rotation matrix . The complex plane and the two-dimensional real vector space are describing the same transformation in different notation.
The rotation matrices satisfy
They form the special orthogonal group , an example of a Lie group. The matrix is its infinitesimal generator: it describes the instantaneous rate of change of rotation at angle zero. Euler’s formula thus provides an elementary example of the relationship between continuous transformation groups and their generators.
A broader matrix version arises for complex matrices :
where the exponential, sine, and cosine are all defined by power series. The proof separates even and odd powers exactly as in the scalar case. This identity involves a single matrix. It does not imply that exponentials of arbitrary different matrices obey the scalar addition law: generally,
unless additional conditions, such as , hold.
If is Hermitian, then is a unitary matrix. By the spectral theorem, its real eigenvalues are transformed into eigenvalues on the unit circle. The scalar formula therefore explains why exponentiating times a Hermitian matrix preserves lengths and inner products. A related extension holds for a quaternion with zero real part and unit norm: since ,
This identity is used in quaternion representations of three-dimensional rotations, where the quaternion parameter involves half the physical rotation angle.
Numerical evaluation and limitations of naive computation
Although Euler’s formula is exact, its numerical implementation involves approximation. A standard way to evaluate is to compute and with mathematical-library routines and combine them. For , the corresponding expression is
The scale factor can overflow or underflow when is too large in magnitude for the available floating-point arithmetic. A purely imaginary exponent has modulus one and avoids that particular difficulty, but its angle can still be difficult to evaluate accurately.
The main issue for large real angles is argument reduction. Trigonometric routines replace an angle by an equivalent smaller angle modulo a multiple of or , then use approximations on a short interval. If the original angle is very large, a small relative error in the stored value can correspond to a substantial absolute phase error. Accurate reduction also requires sufficiently precise constants and arithmetic; subtracting a coarse floating-point approximation to a large multiple of can lose the small remainder that determines the answer.
Direct summation of the exponential Taylor series is not a universally reliable alternative. For large , individual terms of
may have enormous magnitudes even though the final answer has modulus one. Cancellation among those terms can destroy significant digits. This illustrates the distinction between an identity that proves convergence and an algorithm with good numerical stability. Practical evaluation typically combines range reduction with carefully chosen polynomial or rational approximations.
Small arguments raise a different cancellation problem. Computing by first evaluating the exponential and then subtracting can lose relative accuracy when is close to zero. The identity
provides an alternative that avoids subtracting nearly equal real parts. Similarly,
is often preferable to direct subtraction for small . Such reformulations matter in difference formulas and algorithms that manipulate small phase changes.
Repeated rotation introduces accumulated rounding error. In exact arithmetic, the recurrence
preserves , but computed values can drift away from the unit circle after many steps. Recomputing selected values from their angles or applying normalization can control different aspects of this drift, depending on the application. Closely related issues occur when generating Fourier-transform factors and simulating oscillatory systems: an exact unit-modulus identity does not by itself guarantee that a finite-precision implementation preserves magnitude or phase indefinitely.