Source: https://www.math.columbia.edu/~woit/eulerformula.pdf