Spectral analysis using ascent, descent, nullity and defect