Derivation of the Speed of Sound