Mathematics is vital in ensuring that the lights stay on as the planners of the grid need to solve non-linear differential-algebraic equations to work out how much electricity can be generated, distributed and stored. These challenges will increase in the future.