Spectral Methods And Their Applications