The wave equation
A wavefunction $\psi(x,t)$ should satisfy the wave equation $$ \begin{align*} \pdfd[2]{\psi}{x} = \frac{1}{c^2}\pdfd[2]{\psi}{t} \end{align*} $$ where $c$ is the wave speed.
-
Any solution is in the form $\psi(x,t) = f(x-ct) + g(x+ct)$. (Derivation)
-
This is linear in $\psi$, so principle of superposition applies i.e. $\psi_1+\psi_2$ is a solution.
-
It has complex solution $\psi = \exp(i(kx \pm \omega t))$, and taking the real part gives the physical quantity.
In higher dimensions, $$ \begin{align*} \nabla^2 \psi \equiv \pdfd[2]{\psi}{x} + \pdfd[2]{\psi}{y} + \pdfd[2]{\psi}{z} = \frac{1}{c^2}\pdfd[2]{\psi}{t}. \end{align*} $$