I am looking the derivation of the speed of sound in Goldstein's Classical Mechanics (sec. 11-3, pp. 356-358, 1st ed). In order to write down the Lagrangian, he needs the kinetic and potential energies.
He gets the kinetic energy very easily as the sum of the kinetic energies of the individual particles (the sum going over to an integral in the limit). Let $\eta_i, i=1,2,3$ be the components of the displacement vector (each $\eta_i = \eta_i(x,y,z)$ being a function of position). So the kinetic energy density is $${\cal T}=(\mu_0/2) (\dot{\eta}_1^2+\dot{\eta}_2^2+\dot{\eta}_3^2),$$ where $\mu_0$ is the equilibrium mass density.
For the potential energy, he uses a thermodynamic argument, relying on the work done in a PV diagram, and using the equation $PV^\gamma = C$. His ultimate result, after several steps, is
$${\cal V} = -P_0 \nabla\cdot\vec{\eta}+\frac{\gamma P_0}{2}(\nabla\cdot\vec{\eta})^2$$
Here, $P_0$ is the equilibrium pressure, and $\gamma$ is the ratio of specific heats.
He later shows that the term $P_0 \nabla\cdot\vec{\eta}$ has no effect on the equations of motion, and so he drops it. So his final formula for the Lagrangian density is:
$${\cal L} = (1/2)\left(\mu_0\dot{\vec{\eta}}^2 - \gamma P_0(\nabla\cdot\vec{\eta})^2\right)$$
and the Lagrangian of course is the integral of this over all space.
Now in the case of an ideal gas (or better yet, a perfect gas), my understanding is that the internal energy is entirely kinetic. Naively, the statistical model is a bunch of non-interacting point particles racing around, bouncing off the walls of the container. (For simplicity, ignore gravity.)
This seems contradictory. Shouldn't we get the same results from a microscopic and a macroscopic viewpoint?
To put it another way, this suggests that in a gas made up of non-interacting point particles, with no external forces except for the hard-wall forces, sound waves could not propagate (since the Lagrangian density would reduce to the kinetic part). That doesn't seem right.