An Application of Multiple Scales to Problems Arising in Supersonic Aerodynamics and Stratified Fluid Mechanics