Solution (source code)

= Solution

The derivatives of the <Lagrangian density> are $\mathcal L_\phi=0$, $\mathcal L_{\phi_t}=\phi_t$, and $\mathcal L_{\phi_x}=-\phi_x$. The <Euler-Lagrange field equation> is therefore
$$
\boxed{\phi_{tt}-\phi_{xx}=0.}
$$
This is the <one-dimensional wave equation> with <wave speed> $c_s=\sqrt{\kappa/\rho}=1$. Both signs of propagation are allowed: $\phi(x,t)=F(x-t)+H(x+t)$ for sufficiently regular profiles.