Geometric Aspects of Spectral Theory