I'm currently trying to solve an equation of the form $f(x) = \sum_m\,a_m\,\varphi_m(x)$ and it's required me to project this equation on a different set of functions $\{\phi_m(x)\}$ that is orthonormal on the interval (a,b).
How do I execute such kind of projection?