Consider $H^1(-1,1)$ Sobolev space with natural dot product: $\langle f, g\rangle_{H^1} = \langle f, g\rangle_{L^2} + \langle f', g'\rangle_{L^2}$.
Let $U$ be the space of functions: $f(x) = 0$ $\forall x \le 0$. We want to know $U^\perp$.
The first thing is $U^\perp = \{f: f(x) = 0, x > 0\}$. But I guess the same trick (consider a neighborhood of zero) as for $C[-1,1]$ with $\langle f, g\rangle = \int_{-1}^1 f(x) g(x) dx$ doesn't work.
But I guess the latter family of functions obviously orthogonal to the $U$. But maybe there is something else? I've tried so:
$$ \int_{0}^{t} f g + \int_{0}^{t} f'g' = \int_{0}^t f g + f(t)g'(t) - \int_0^t f(x) g''(x) dx=0 \iff$$ $$f(t) g(t) + f'(t) g'(t) + f(t) g''(t) - f(t)g''(t) + f(0)g''(0) = 0 $$ Hence we obtain something like: $f(t) = \bar{C}\exp\left(-\displaystyle\int \dfrac{g + c}{g'} dt\right)$. But here we assume that there is exists $g''$ (which might be not true).
Any ideas?
By definition, $f$ is in the orthogonal of $U$ iff for every $\varphi\in U$ $$ ∫_0^1 f\,\varphi + \int_0^1 f'\,\varphi' = 0. $$ If $f'$ is continuous and $f'(1)=0$, then $$ ∫_0^1 (f-f'')\,\varphi = f'(0)\,\varphi(0)-f'(1)\,\varphi(1) = 0 $$ since $\varphi\in H^1 \implies \varphi\in C^0$ and so $\varphi\in U\implies \varphi(0)=0$, and this means that $$ f - f'' = 0 \ \text{ in } [0,1] $$ in the weak sense. Solutions of this equation are of the form $f(t) =a\,e^t+b\,e^{-t}$ on $[0,1]$, and are all in $H^1(-1,1)$ iff they are continuous at $t=0$ and $f'∈ L^2(-1,1)$. So I think $$ U^{\perp} = \{f∈ H^1(-1,1):\exists(a,b)\in\Bbb R^2,∀ t≥0,f(t) = \,a\,e^t + b\,e^{-t}\} $$ but one should work more precisely with the boundary conditions to have a rigorous proof.