Math Help - Weak formulation of Boundary Value Problem

1. Weak formulation of Boundary Value Problem

I have been trying to complete the following question (attached) however I can not find any similar examples anywhere. Does anyone know how I can go about formulating the weak problem from the differential equation??

2. This is very simple. Follow the solution of Question 2i on Problem Sheet 3. You have the same equation with different boundary values.
If you still can't do it I will give more details.

3. I forgot to mention that the procedure is the same as when hou have the diffusion problem
$
-u_{xx}=f(x)
$

You just multiply by the test function $v(x)\in H^{1}_{0}(0,1)$ and then integrate by parts. Afterwards you will use the boundary conditions.