Derivation of the one dimensional wave equation