This question concerns a variational form of the Laplace equation with homogeneous Dirichlet boundary conditions: $$-u''=f \text{ on } [0,1], u(0)=u(1)=0.$$
Let $V=H^1_0(\Omega), \Omega=[0,1]$ and $f\in H^{-1}(\Omega)$ . Solve
$$u\in H_0^1(\Omega) \text{ such that } \int_{0}^1 u'v'=f_i(v) \text{ for all } v\in H_0^1(\Omega)$$ for
i ) $f_1(v)=\int_0^1 v(x)dx, v\in H_0^1(\Omega)$
ii) $f_2(v)=v(\frac12), v\in H_0^1(\Omega)$
For the first one I integrated by parts to get $-\int_0^1 u''v=\int_0^1 v$ so $u''=-1$ and $u(x)=-x^2/2+x/2$ using the boundary conditions. How can I tackle the second one?