I know a similar post has been made about this, but it has been quite some time since then, and none of the answers satisfy me.
I want to derive the 1D-wave equation from the knowledge that what we call a wave takes the form $ \psi = f(x \mp vt)$. Most physics textbooks will derive it from the tension in a string, etc., but I want to be more general than that.
The closest general derivation I have found is in the book Optics by Eugene Hecht. However, he states , "We now derive the one-dimensional form of the wave equation guided by the foreknowledge that the most basic of waves traveling at a fixed speed requires two constants to specify it, and this suggests second derivatives''. It would satisfy me if we did not use this foreknowledge, and instead have everything flow from previous steps. He makes use of a reference frame that moves with the wave form $ \psi = f(x')$, where $ x' = x \mp vt $. His derivation goes:
$$ \frac{\partial \psi }{\partial x} = \frac{\partial f }{\partial x}$$
$$ \frac{\partial \psi }{\partial x} = \frac{\partial f }{\partial x'} \frac{\partial x'}{\partial x} = \frac{\partial f}{\partial x'}$$
$$ \frac{\partial \psi }{\partial t} = \frac{\partial f }{\partial x'} \frac{\partial x' }{\partial t} = \mp v \frac{\partial f }{\partial x'} $$
$$ \frac{\partial^2 \psi }{\partial x^2} = \frac{\partial^2 f }{\partial x'^2} $$
$$ \frac{\partial^2 \psi }{\partial t^2} = \frac{\partial}{\partial t} \left(\mp v \frac{\partial f}{\partial x'}\right) = \mp v \frac{\partial }{\partial x'} \left(\frac{\partial f}{\partial t}\right) = \mp v \frac{\partial }{\partial x'} \left(\frac{\partial \psi}{\partial t}\right) $$
$$ \frac{\partial^2 \psi}{\partial t^2} = v^2 \frac{\partial^2 \psi}{\partial x^2} $$
Also, I am not clear why the $x'$ frame is necessary. $ \psi = f(x \mp vt)$ tells us that it is a wave in the unprimed frame, isn't that all we need?