\[\mathcal{L}=-\frac{{\mathrm{d}}^{2}}{{\mathrm{d}x}^{2}}+q(x),\]