In this paper, the magnetic flux density was studied using a mathematical model and different inner radius has been used for the iron free coil. The maximum value of magnetic field and the magnetic scalar potential was calculated. The paraxial ray can be studied using rung Kutta to solve the differential equation in the infinite and zero magnification condition, all results are determined using MATLAB program.