Let $u,v$ be arbitrary elements of a function space $X$ defined on $\Omega \subset \mathbb{R}^n$. Define
$$ (u,v)_2 = \int_\Omega \partial_x u \, \partial_x v + \partial_y u \, \partial_y v \:dx $$
Now, my question is what should $X$ be so that $(\cdot,\cdot)_2$ defines an inner product?
It is clear that $(\cdot,\cdot)_2$ is symmetric and linear but the problem seems to be positive-definitiveness.
Ok, so from what I gather on the basis of Siminore's comments:
$X=H_0^1$ and using Poincare's inequality we have that
$$ \|u\|_{L^2}\leq C \| \nabla u \|_{L^2}. $$
Hence $(u,u)_2=\| \nabla u \|_{L^2}=0$ implies $u=0$ a.e.