I need a check on the following exercise about weak formulations and finite elements.
Consider the advection diffusion system $$ \begin{cases} -(\mu u')' + \beta u' + \gamma u = f \\ u(a)=0 \\ u(b) = g_b \end{cases}$$
where $\mu,\beta \beta', \gamma \in C^{0}([a,b])$ and $f \in L^2(a,b)$
Write the weak formulation, specifying the functional spaces
Give sufficient conditions s.t. the bilinear form is coercive.
Here's my attempt:
- As I have Dirichlet bc's, I choose as functional space for the test function $H_0^1$.
Therefore, integratin by parts I obtain: $$\int_a^b \mu u'v'dx + \int_a^b \beta u' v dx + \int_a^b \gamma u v dx = \int_a^b fv dx$$
Therefore, the weak formulation is "Find $u \in H^1$, with $u(a)=0$ and $u(b)=g_b$ s.t. $$a(u,v)=F(v)$$ for every $v \in H_0^1$"
The functional spaces are actually different: if all the coefficients were constants, then I could use a "lifting" and look for a solution of the problem with homogeneous Dirichlet.
EDIT
So I consider $\bar{u} = u-R_g$, where $R_g(x)$ is the lifting function such that $R_g(b)=g_b$ and $R_g(0)=0$.
Then, I plug $u = \bar{u} +R_g$ in the weak formulation and obtain:
$$\int_a^b \mu \bar{u}'v'dx + \int_a^b \beta \bar{u}' v dx + \int_a^b \gamma \bar{u} v dx = \int_a^b fv dx - \int_a^b \Bigl[ \mu R_g' v' +\beta R_g' v +\gamma R_g v\Bigr ]dx$$
Then, I can find with FEM the solution $\bar{u}$, and recover $u(x)$ thanks to $$u(x)=\bar{u}(x) +R_g(x)$$
- By computing explicitly $$a(u,u)= \int_a^b \mu u'^2 dx + \int_a^b \beta u' u dx + \int_a^b \gamma u^2$$
Using Poincarè inequality, and assuming $0<\mu_1<\mu(x)$: $$\geq \frac{\mu_1}{1+C_P^2} ||u||_V^2 + \int_a^b \beta u u'dx + \gamma u^2 dx$$
Therefore, I observe that $$\beta u u' = (\beta \frac{u^2}{2})'- \beta' \frac{u^2}{2}$$
Then, integrating by parts, using the fact that $u(a)=0$ and $u(b)=g_b$: $$a(u,u)\geq \frac{\mu_1}{1+C_P^2} ||u||_V^2 + \beta \frac{g_b^2}{2} + \int_a^b[\gamma - \frac{\beta'}{2}]u^2dx$$
So I assume $$\gamma - \frac{\beta'}{2} > 0$$ and $$\beta>0$$
This implies $a(u,u) \geq \frac{\mu_1}{1+C_P^2} ||u||_V^2$.
Is it okay?