Phases and Amplitudes of Acoustic-Gravity Waves I. Upward and Downward Solutions