Magnetic Energy Conversion in Magnetohydrodynamics: Curvature Relaxation and Perpendicular Expansion of Magnetic Fields