\[\left(\frac{\mathrm{d}w}{\mathrm{d}z}\right)^{2}-a^{2}w^{2}=1,\]