Calculate inner product defined by integration

inner-productsintegrationlinear algebra

Let the inner product be defined on $\mathcal{P}(\mathbb{R}^2)$ as $$\langle p,q \rangle = \int_{0}^{1}p(x)q(x)dx$$

I am trying to calculate the inner product of $$\langle p, q \rangle = \langle x^2-x + 1/6, x^2-x + 1/6 \rangle$$ but am struggling with how to set this up as an integral for integration. I am not really sure how to factor into one big polynomial so that I can integrate with. What can I do to put this into a solvable integral?

Best Answer

$$\langle p, q \rangle = \langle x^2-x + 1/6, x^2-x + 1/6 \rangle$$

$$ = \int_{0}^{1}(x^2-x + 1/6)^2dx$$ $$ = \int_{0}^{1}\left(x^4-2x^3 + \frac43x^2 - \frac13x+ \frac{1}{36}\right)dx$$

Related Question