I am given the following differential equation. Let $\Omega = (a,b)\subset\mathbb{R},\ f:\Omega \rightarrow\mathbb{R},\ \alpha,\beta \in \mathbb{R}$ and $$ -u'' + u = f \\ u(a)= \alpha, u(b) = \beta $$ Since this is an inhomogeneous problem, I choose a function $u_\varphi$ with $u_\varphi|_\Gamma = u|_\Gamma$ such that I can treat the problem like a homogeneous one, by finding a function $u_0$ with $u_0(a)=u_0(b)=0$, such that $$u = u_\varphi + u_0.$$ The DEQ can then be written as
$$ -(u_0 + u_\varphi)'' + u_0 + u_\varphi = f \\ $$ To find the variational formulation for $u_0$, I test with an arbitrary testfunction $v$ with compact support:
$$\int_\Omega (-(u_0 + u_\varphi)'' + u_0 + u_\varphi)v dx= \int_\Omega fvdx $$ yielding $$\int_\Omega (-u_0''+u_0)v dx=\int_\Omega \nabla u_0 \nabla v dx + \int_\Omega u_0v dx = \int_\Omega (f +u_\varphi'' - u_\varphi)vdx $$ which we usually write compactly as $$ a(u_0,v) + \int_\Omega u_0v dx = F(v). $$ This integral in the last equation bothers me, since I cannot get rid of it. Is there a way to do so?
Thanks!