It is proved in a complicated optical system that the diffraction integration in terms of ray matrix element is the right solution ’for paraxial equation. This is used to investigate Gaussian beam and resonator modes and some new results have been obtained.