Title: Numerical analysis of spectral methods: theory and applications