After reviewing basic field theory, the finite-element method for magnetic field analysis is presented.