Analysis of combined gravity and magnetic fields in wave number domain