On the positivity of some bilinear functionals in Sobolev spaces