Electron optics calculations are crucial for the design of electron microscopes and particle accelerators. In the paraxial approximation, trajectory calculations can be carried out using ray transfer matrix analysis.