Introduction to Euler’s Formula and Complex Numbers

Euler’s formula is one of the most elegant and powerful relationships in mathematics. It connects the exponential function with trigonometric functions through the gateway of complex numbers. For any real angle θ, Euler’s formula states:

e = cos θ + i sin θ

Discovered by Leonhard Euler in the 18th century, this formula reveals that the complex exponential of an imaginary argument traces a unit circle in the complex plane. The real part corresponds to the cosine of the angle, and the imaginary part corresponds to the sine. Understanding this relationship is essential for fields ranging from electrical engineering to quantum mechanics, where oscillatory phenomena are elegantly captured using complex exponentials.

Complex numbers are numbers of the form a + bi, where i is the imaginary unit satisfying i² = -1. Euler’s formula leverages this unit to unify the otherwise separate worlds of exponential growth and periodic motion.

One of the most immediate and valuable consequences of Euler’s formula is the ability to derive explicit expressions for the sine and cosine functions purely in terms of exponentials. This derivation is not merely a mathematical curiosity—it provides a powerful algebraic tool that simplifies integration, solving differential equations, and analyzing signal spectra. Before diving into the derivation, it helps to recall that the complex exponential e can be thought of as a rotating vector in the complex plane, with its real part representing the cosine and its imaginary part representing the sine.

Deriving the Cosine Function from Euler’s Formula

To isolate the cosine function from Euler’s formula, we use a clever trick involving the complex conjugate. The conjugate of e is obtained by replacing i with -i. Because the cosine function is even (cos(-θ) = cos θ) and the sine function is odd (sin(-θ) = -sin θ), the conjugate equation becomes:

e-iθ = cos θ – i sin θ

Now we have two equations:

  • e = cos θ + i sin θ
  • e-iθ = cos θ – i sin θ

Step 1: Adding the Two Equations

When we add these two equations, the imaginary terms cancel because i sin θ and -i sin θ sum to zero. Only the real parts remain:

e + e-iθ = 2 cos θ

Step 2: Solving for Cosine

Dividing both sides by 2 gives the desired exponential expression for cosine:

cos θ = (e + e-iθ) / 2

This result shows that cosine can be expressed as the average of two complex exponentials rotating in opposite directions—one clockwise, one counterclockwise. The sum of these two vectors lies purely on the real axis, and its length is exactly twice the cosine. This identity is fundamental in Fourier analysis and the study of harmonic motion, where any real-valued sinusoidal signal can be represented as a sum of positive and negative frequency components.

Step 3: Deriving the Corresponding Expression for Sine

A similar process yields the exponential form for sine. Instead of adding, we subtract the conjugate equation from the original Euler equation:

e – e-iθ = (cos θ + i sin θ) – (cos θ – i sin θ) = 2i sin θ

Then isolate sine by dividing both sides by 2i:

sin θ = (e – e-iθ) / (2i)

These two derivations highlight the symmetry between sine and cosine: cosine is the even combination of exponentials, while sine is the odd combination scaled by the imaginary unit. Together they form the foundation for the complex representation of any oscillatory function. The presence of i in the denominator for sine is crucial; it accounts for a 90-degree phase shift relative to the cosine.

Geometric Interpretation on the Complex Plane

A geometric understanding reinforces the algebraic steps. The complex number e lies on the unit circle at angle θ. Its conjugate e-iθ lies at angle –θ, symmetric about the real axis. Adding these two vectors yields a vector that lies purely along the real axis with length 2 cos θ. This is exactly the average of the two complex numbers projected onto the real axis. Similarly, the difference lies along the imaginary axis, giving 2 sin θ in the imaginary direction.

This geometric perspective explains why the formulas for cosine and sine take the forms they do: the real part of the rotating vector is cosine, the imaginary part is sine. By averaging the counter-rotating pair, we extract only the real (cosine) component. Visualizing this on the complex plane helps intuition: imagine two points on the unit circle at angles +θ and -θ. As θ changes, these points move in opposite directions. Their sum always points horizontally, and its magnitude oscillates between -2 and 2, exactly tracing a cosine wave scaled by 2.

Significance and Applications of the Exponential Forms

The ability to express sine and cosine as exponentials has profound implications across science and engineering. By converting trigonometric problems into algebraic ones using exponentials, many calculations become simpler and more systematic. The exponential forms also reveal the deep underlying structure of periodic phenomena.

Signal Processing and Fourier Transforms

In signal processing, any periodic signal can be decomposed into a sum of sine and cosine waves. However, the Fourier transform more naturally uses complex exponentials eiωt. Using the derived identities, the Fourier series representation becomes compact and elegant. The cosine and sine coefficients emerge directly from the real and imaginary parts of the complex coefficients. This simplification is crucial for digital signal processing, audio compression, and image analysis. For example, the Fourier series of a periodic function f(t) is often written as a sum of complex exponentials, and the cosine form is recovered by taking the real part. Learn more about the Fourier transform.

Solving Differential Equations

Many physical systems, such as springs, circuits, and waves, are described by linear differential equations. Solutions often involve sine and cosine functions. By substituting the exponential forms, these equations become algebraic in the complex domain, making them easier to solve. For instance, the harmonic oscillator equation d²x/dt² + ω²x = 0 has solutions of the form x(t) = A cos ωt + B sin ωt. Using Euler’s formula, this can be rewritten as x(t) = Re(C eiωt), where C is a complex constant encapsulating both amplitude and phase. This representation simplifies the analysis of resonance, damping, and coupled oscillators.

Quantum Mechanics

In quantum mechanics, the wave function is fundamentally complex. The time evolution of a quantum state involves the exponential e-iEt/ħ, and the decomposition into sine and cosine forms helps visualize standing waves and probabilities. The expression for cosine derived above is used to relate the real-valued probability amplitude to the underlying complex state vector. For instance, the wave function for a particle in a box is often expressed as a sine or cosine, but its time evolution requires the complex exponential. See also MathWorld’s treatment of Euler’s formula.

Electrical Engineering and AC Circuits

Alternating current (AC) circuit analysis relies heavily on phasors—complex numbers representing sinusoidal voltages and currents. By representing sinusoidal functions as exponentials, engineers can use algebraic techniques to analyze impedance, phase shifts, and power. The derived cosine identity directly links the phasor representation back to the time-domain waveform. For example, a voltage V(t) = V₀ cos(ωt + φ) can be written as V(t) = Re(V₀ ei(ωt+φ)), making it easy to compute the steady-state response of RLC circuits using complex impedances.

Acoustics and Vibration Analysis

In acoustics, sound waves are often modeled as sinusoidal pressure variations. The exponential representation allows for easy combination of multiple sound waves with different frequencies and phases. The cosine form is used to calculate the resulting amplitude and phase from a sum of waves, aiding in the design of filters, speakers, and noise cancellation systems.

Relation to Hyperbolic Functions

Interestingly, the same mathematical structure appears in hyperbolic trigonometry. If we replace with a real variable x, Euler’s formula transforms into the definitions of hyperbolic sine and cosine. Euler’s formula for real exponents gives:

  • cosh x = (ex + e-x) / 2
  • sinh x = (ex – e-x) / 2

This parallel shows how the same exponential machinery generates circular trigonometric functions when the argument is imaginary, and hyperbolic functions when the argument is real. In fact, if we substitute θ = i x into the cosine identity, we get cos(ix) = cosh x. The derivation of cosine from exponentials is thus a special case of a broader unity between exponentials and trigonometric or hyperbolic functions. This connection is exploited in complex analysis, where many functions are extended to the complex plane using their exponential representations.

Important Special Cases and Identities

From the derived cosine expression, many well-known identities can be confirmed or derived algebraically. For example, setting θ = π yields Euler’s identity: e + 1 = 0, often called the most beautiful equation in mathematics. Also, using the exponential form, one can quickly derive the double-angle formulas by squaring e and equating real parts.

For instance, knowing cos θ = (e + e-iθ)/2, then cos 2θ = (ei2θ + e-i2θ)/2. But ei2θ = (e, so with a little algebra we recover cos 2θ = 2 cos² θ – 1. This approach can simplify otherwise tedious trigonometric proofs. Similarly, one can derive the product-to-sum identities:

  • cos α cos β = ½[cos(α+β) + cos(α-β)]
  • sin α sin β = ½[cos(α-β) – cos(α+β)]

These follow directly from multiplying the exponential forms and grouping terms.

Practical Example: Computing Cosine Using Exponentials

Suppose we need to compute the integral of cos²(θ). Using the exponential representation simplifies the integration significantly:

cos² θ = ((e + e-iθ)/2)² = (ei2θ + 2 + e-i2θ)/4 = (1/2) + (1/4)(ei2θ + e-i2θ)

Recognizing the last term as (1/2) cos 2θ, we obtain the familiar double-angle identity. Integration then becomes straightforward:

∫ cos² θ dθ = ∫ (1/2 + ½ cos 2θ) dθ = (θ/2) + (sin 2θ)/4 + C

This technique is widely used in AC circuit analysis to compute average power and RMS values, where integrals of squares of sines and cosines appear frequently.

Another Example: Solving a Linear ODE with Cosine Forcing

Consider the differential equation y'' + y = cos t. Using the exponential form of cosine, we can guess a particular solution of the form y_p = A eit + B e-it. Substituting and equating coefficients yields a quick solution without dealing with trigonometric integrals. This method, known as the complex exponential method, is a mainstay in engineering mathematics.

Connecting to Other Mathematical Concepts

The identity cos θ = (e + e-iθ)/2 also appears in the context of Laplace transforms, where the transform of a cosine function is derived from the transform of exponentials. In control theory, the frequency response of a system is obtained by substituting s = iω into the transfer function, and the cosine input-output relationship is defined by the real part of the complex response.

Moreover, the exponential forms are essential for understanding analytic signals in communications. The analytic signal of a real-valued cosine is simply e, which removes the negative frequency component and simplifies modulation and demodulation.

Common Misconceptions and Clarifications

One common question is why the denominator for cosine does not include i, while the sine formula does. The answer lies in the even/odd symmetry: adding the conjugates cancels the sine part entirely, leaving only the real part. For sine, subtraction cancels the cosine, but yields an imaginary result that must be divided by i to obtain a real function. Another misconception is that Euler’s formula only works for real angles—it actually holds for complex arguments as well, leading to deeper connections between circular and hyperbolic functions.

It is also worth noting that the derivation assumes θ is in radians. If θ is in degrees, the formula still holds but the derivative and series expansions change. Always use radians when working with Euler’s formula in calculus and analysis.

Conclusion: A Bridge Between Worlds

The derivation of the cosine function using Euler’s formula is a beautiful example of mathematical unification. By adding the exponential and its conjugate, we obtain a clean expression that reveals the deep algebraic nature of trigonometry. This result is not just an academic exercise—it underpins modern engineering, physics, and data science. Whether you are analyzing a Fourier transform, solving an RLC circuit, or exploring quantum probability amplitudes, the identity cos θ = (e + e-iθ)/2 provides a reliable and powerful tool.

Understanding this derivation opens the door to a wider appreciation of how complex numbers simplify and explain the patterns we observe in the natural world. From the swinging pendulum to the propagation of light, the exponential representation of cosine serves as a universal language. For further reading, consider exploring resources on Brilliant.org’s Euler’s Formula page or the practical applications in 3Blue1Brown’s visual explanations.