Source: http://www.math.caltech.edu/~2016-17/2term/ma006b/notes/20%20Spectral.pdf