Just a quick note: The space \{u\in C^2[a,b]\} : u(a)=u(b)=0\} with the inner product (u,v)_{L^2} = \int_a^b uv is not a Hilbert space (it is not complete). In this case we should work on a so called Sobolev space, in this case the space H_0^1(a,b) = \{u\in L^2(a,b) : u'\in L^2,u(a)=u(b)=0\} ...