---
title: 'When We Use Euler’s Formula'
description: 'Starting from the time average, this note explains why the intensity of superposed electromagnetic waves can be written as the squared modulus of the complex amplitude.'
tags: ['Optics', 'Complex representation', 'Time average']
translator: 'Claude'
---

## Preface

Consider an electromagnetic wave in cosine form:

$$
E=E_0\cos{(kx-\omega t)}
$$

With Euler’s formula we can instead take the real part of $e^{i(kx-\omega t)}$, which has much nicer algebraic properties. The price is that we may only perform operations in which the real and imaginary parts do not couple. We must make sure that the real part of the complex exponential, after the operation, equals the result of operating directly on the trigonometric function without the complex exponential; in other words, the two representations must be homomorphic. Such operations are linear, and they keep the real and imaginary parts isolated from each other.

## Why Intensity Is the Squared Modulus

We often meet problems of the following form:

$$
E(x,y)= \mathfrak{Re}\left \{ \sum_jE_j e^{i\phi_j} \right \}
$$

$$
\phi_j(x,t) =kx-\omega t+\varphi_j
$$

Here we need the intensity of the superposed field at a given position (that is, averaged over time, which is important). The natural instinct is to turn the square into a squared modulus, but on closer thought the real number that comes out seems to contain a contribution from the imaginary part.

Start from the definition:

$$
I\propto\left \langle  \left \{ \sum_jE_j\cos(\phi_j) \right \}^2 \right  \rangle
$$

One way to justify the intuition is to rewrite the cosine with Euler’s formula:

$$
I\propto\left \langle\frac{1}{4} (\sum_jE_je^{i\phi_j}+\sum_jE_je^{-i\phi_j})^2\right  \rangle
$$

Expanding the square gives:

$$
\frac{1}{4} \left \langle(\sum_jE_je^{i\phi_j}\cdot\sum_jE_je^{i\phi_j}+\sum_jE_je^{-i\phi_j}\cdot \sum_jE_je^{-i\phi_j}+2\sum_jE_je^{i\phi_j}\cdot\sum_jE_je^{-i\phi_j})\right  \rangle
$$

Now handle the sums carefully.

The first term:

$$
\sum_{j,k}E_jE_ke^{i(\phi_j+\phi_k)}
$$

$\phi_j+\phi_k$ depends on time, so this term averages to zero over time and contributes nothing to the intensity.

By the same argument, the second term also contributes zero.

The remaining cross term is exactly the squared modulus. Expanding and grouping:

$$
\sum_jE_je^{i\phi_j}\cdot\sum_jE_je^{-i\phi_j}=\sum_m E_m^2+\sum_{j\ne k}E_jE_ke^{i(\phi_j-\phi_k)}
$$

Note that the last term is symmetric in its indices, so it can be turned back into a $\cos$:

$$
\sum_{j\ne k}E_jE_ke^{i(\phi_j-\phi_k)}=\sum_{j<k}2E_jE_k\cos(\phi_j-\phi_k)
$$

The intensity finally takes the form:

$$
I\propto\left \| \sum_jE_j e^{i\phi_j} \right \| ^2=\sum_m E_m^2+\sum_{j<k}2E_jE_k\cos(\phi_j-\phi_k)
$$
