Wavelet-Galerkin technique for solving certain numerical differential equations and inverse Ill-posed problems