derivation of three-moment equation