A Lagrangian Derivation of the Action-Conservation Theorem for Density Waves