The mathematical and numerical way to analyse longitudinal and transverse eigenmodes using an eigenmode solver