This article is part of our Adventures with Complex Numbers collection
Producing electricity securely, safely, reliably and cheaply, has many challenges. Electricity is difficult to store in large quantities, so it usually has to be used as soon as it is generated. We also have a very low tolerance to any interruption in the electricity supply. Other challenges arise from the extreme interconnectedness of the electricity network, which means that a problem in part
of the network quickly becomes a problem for the whole network.
Most of the time the process of transmitting electricity proceeds smoothly. However, there have been times of such great demand that the UK electricity network has nearly been shut down, such as everyone boiling their kettles at half time during the 1990 World Cup semi final when England played Germany.

The modern electricity supply network relies on the invention of alternating current (AC) by Nikolas Tesla. In AC the current and the voltage vary like a wave over time as seen below. Mathematically, these waves can be described by sine and cosine functions.
The AC voltage $V_{AC}(t)$ and current $I_{AC}(t)$ have the form
Electricity is complex
To represent an AC voltage, electrical engineers make extensive use of complex numbers (you can explore complex numbers in Vanishing Roots). The imaginary number $i$ satisfies the equation
which was originally thought to have no solution. Imaginary numbers, and their extension, the complex numbers, were introduced by mathematicians in the 18th century to make sense of this equation, and were originally thought to be highly abstract mathematical objects of no possible use. However they lie at the heart of power engineering.
The reason for this is Euler's famous identity
Going back to our expression of the alternating $V_{AC}(t)$ above, we see that an alternating voltage is the real part of the function
This, according to Euler's identity, is equal to
This is an edited version of the article Energetic maths by Professor Chris Budd (University of Bath), originally published on Plus. You can explore complex numbers for yourself in Open the Door, and discover more about the many applications of complex numbers with this collection of Plus articles.