We are on E the vector space of continuous and 2 times differentiable functions on $[0,1]$ i.e., $C^2[0,1].$ I have the sets $V = f$ such that $f(0)=f(1)=0$ and $W = f$ such that $f=f''.$ And the function $\langle f,g\rangle = \int_0^1[{f(t)g(t)+f'(t)g'(t)}]\,dt.$ I have proven that they are complementary subspaces and that they are orthogonal by a scalar product defined as above.
With that I will be able to find the orthogonal projection of any function on $W.$
Now if I'm given another set $G_{a,b} = f$ such that $f(0)=a$ and $f(1)=b$ how can I determine $$\inf_{f\in G_{a,b}}\int_0^1\left[f^2(t)+f'^2(t)\right]dt?$$
Let $\|\cdot\|$ be the norm induced by the inner product $\langle\cdot,\cdot\rangle.$
I know it's the same as
$$\left(\inf_{f\in G_{a,b}} {\|f\|}\right)^{\!2}$$
and that
$$\inf_{f\in G_{a,b}}{\|f\|}$$
is $d(0,G)$ which is the projection of $0$ on $G.$
But $G$ is not even a subspace; I really don't know how to go about it. Any help would be appreciated, thanks!!!