**Required math: calculus **

**Required physics: **Schrödinger equation

Reference: Griffiths, David J. (2005), Introduction to Quantum Mechanics, 2nd Edition; Pearson Education – Problem 2.18.

Solutions to the Schrödinger equation are written either as complex exponentials or a sum of sine and cosine functions. For example, we used the former in the solution for the free particle and the latter in the infinite square well. In fact these two ways are equivalent for writing a function, as we can demonstrate.

We start with

and we want to write this as .

We can expand the exponentials in terms of sine and cosine to get

So

or, the other way round: