I'm working with small exercises about Hilbert spaces and I found this problem, which reminds me about the course Linear Algebra that I took for some years ago. The exercise that I have trouble with,
Exercise: Let $H=L^2([0,1],\mu)$ be a Hilbert space, here $\mu$ denotes the Lebesgue measure. We are given three vectors (functions defined on the interval [0,1]), $f_0=1$, $f_1=x$ and $f_2=x^2$.
- Let $V$ be a subspace of $H$ spanned by $f_0$ and $f_1$. Find an orthonormal basis of $V$.
- Let $P_V:H\rightarrow V$ be the orthogonal projection from $H$ onto $V$. Find $P_V(f_2)$.
- Find the distance between $f_2$ and $V$.
Of course I know how to find basis from the core course in Linear Algebra, but I've never seen this type of exercise on this level and therefore I hope I can get some hints and ideas.
Hints: I am also new to Hilbert Space Theory, but I have some ideas as how to proceed. I give you just hints as per your request.
Apply Gram Schmidt to find the orthonormal basis.
We need to compute
$$P_V(f_2)=\text{arg}\min\limits_{v\in V}||v-x^2||$$
As every $v \in V$ is a linear combination of basis vectors $p_1,p_2$ found in the previous exercise, we can write $v= \lambda p_1+(1-\lambda)p_2$. Thus
$$||v-x^2||=||\lambda p_1+(1-\lambda)p_2-x^2||$$
This norm could be computed and taking derivative with respect to $\lambda$ and setting to $0$,we get the necessary $\lambda$ and hence the required projection vector can be computed.
Partial attempts. I hope this helps.