Radial expansion of the magnetohydrodynamic equations for axially symmetric configurations