Let $p, q \in P_3(\Bbb R)$. Define the inner product by
$$\langle p(x), q(x)\rangle = \int_0^1 p(x) q(x) \, dx $$
What is the reflection of $q(x) = x ^ 2$ on the subspace $P_1(\Bbb R)$?
My result is $R(q)(x) = \frac{2}{3} + \frac{3x}{2} - x^2 $
But the answer in the book is $ R(q)(x) = -\frac{1}{3} + 2x - x^2$
I don't what is the right procedure to this problem.
You have to start with an orthogonal base for $P_1(\Bbb R)$ in order to calculate the reflection.