Based on the ray equation, imaging matric formula of the selfoc lens is derived is detail in this paper. Approximate property and applicable range of this formula can be seen from the derivation process, and the view of considering the formula applicable to the imaging of non-Gaussian optics should be corrected.