Numerical analysis and applications of finite difference, finite element and spectral methods