n0 : refraction index of the first mediumn1 : refraction index of the second mediumx : distance from the surface to the objectxi : distance from the surface to the image