Theory And Applications Of Spectral Methods