how to calculate integral of square of a function
Solution 1:
Can't be done, in general. For example, it is easy to do $$\int xe^{x^2}\,dx$$ but there is no expression for $$\int x^2e^{2x^2}\,dx$$ in terms of the familiar functions of undergraduate mathematics.