
FEM for Elliptic Problems
Sebastian Gonzalez Pintor
November, 2016
We follow the results from [Joh12] and [And15].
1 Introduction
•Definition of (D), (V) and (M)
•Equivalence (D)⇒(V)⇔(M)
•If u∈ C2then (D)⇐(V)
•Uniqueness of (V).
Outline: Variational form. and Minimization prob.
Lets consider the following two-point boundary value
problem
−u′′(x) = f(x) for x∈(0,1) (D)
u(0) = u(1) = 0
where u′=uxand fis a given continuous function. We
introduce the notation
(u, v) = Z1
0
v(x)w(x) dx
for real valued piecewise continuous bounded functions,
and the linear space
V={v:v∈ C0([0,1]),Z1
0|v′|2dx < ∞,
and v(0) = v(1) = 0}
and the linear functional
F(v) = 1
2(v′, v′)−(f, v).
We can define the problems (M) and (V) as follows:
Find u∈Vsuch that F(u)≤F(v)∀v∈V, (M)
Find u∈Vsuch that (u′, v′) = (f, v)∀v∈V. (V)
Now we will show that if uis a solution of the two-
point boundary value problem (D), then uis a solution
of the variational problem (V) (D⇒V), and that uis
a solution of the variational problem (V) if, and only
if, uis also a solution of the minimization problem (M)
(V⇔M).
Proposition 1 (D⇒V).If u∈ C2is a solution of
the two-point boundary value problem (D), then uis a
solution of the variational problem (V).
Proof. Multiply equation (D) by v∈Vand integrate
over the whole domain
−Z1
0
u′′vdx=Z1
0
fv dx,
then we integrate by parts and use the boundary condi-
tions on the left side to obtain
−Z1
0
u′′vdx=−[u′v]1
0+Z1
0
u′v′dx
=−u′(1)v(1) + u′(0)v(0)
|{z }
v(1)=v(0)=0
+(u′, v′)
= (u′, v′).
We notice that u∈ C2and u(0) = u(1) = 0 implies that
u∈V, and because the choice of v∈Vis arbitrary, the
function usatisfies the equation
(u′, v′) = (f, v)∀v∈V,
what is the same as problem (V).
Proposition 2 (V⇒M).If u∈Vis a solution of
the variational problem (V), then uis a solution of the
minimization problem (M).
Proof. Let us consider an arbitrary function w∈V. We
define v=w−u∈V, so that using the definition of the
functional Fwe have
F(w) = 1
2(w′, w′)−(w, f )
=1
2(v′+u′, v′+u′)−(v+u, f)
=1
2(v′, v′) + (u′, v′) + 1
2(u′, u′)−(v, f)−(u, f)
=1
2(v′, v′) + (u′, v′)−(v, f)
|{z }
(I)
+1
2(u′, u′)−(u, f)
|{z }
(II)
but because uis solution of (V) we have that (I) = 0,
and we can rewrite (II) = F(u), so using that (v′, v′)≥0
we obtain
F(w) = 1
2(v′, v′) + F(u)≥F(u).
Because w∈Vwas chosen arbitrarily, it means that u
is a solution of (M).
Proposition 3 (M⇒V).If u∈Vis a solution of the
minimization problem (M), then uis a solution of the
variational problem (V).
1

Proof. If uis a solution of (M) we have that
F(u)≤F(u+εv),
for all ε∈R, because u+εv ∈Vfor every v∈V. Thus,
the differentiable function
g(ε)≡F(u+εv)
=1
2(u′, u′) + ε(u′, v′) + ε2
2(v′, v′)−(u, f)−ε(v, f)
=1
2(u′, u′)−(u, f) + ε[(u′, v′)−(v, f)] + ε2
2(v′, v′),
has a minimum at ε= 0 and hence g′(0) = 0. But
g′(ε) = (u′, v′)−(v, f) + ε(v′, v′),
and evaluating at ε= 0 we get
g′(0) = (u′, v′)−(v, f) = 0,
hence uis a solution of (V).
We can also show that
Proposition 4 (Uniqueness).A solution to (V)is
uniquely determined.
Proof. Suppose that u1and u2are solutions of (V), i.e.,
u1, u2∈Vand
(u′
1, v′) = (f, v)∀v∈V,
(u′
w, v′) = (f, v)∀v∈V.
Subtracting these two equations and v=u1−u2∈V
gives
Z1
0
(u′
1−u′
2)2dx= 0
which shows that
u′
1(x)−u′
2(x) = 0 ∀x∈[0,1],
so u1−u2is constant in [0,1], which together with the
boundary conditions u1(0) = u2(0) = 0 gives u1(x) =
u2(x), ∀x∈[0,1], and the uniqueness follows.
Also, because every solution of (D) or (M) is also solution
of (V), but the solution of (V) is unique, it follows the
uniqueness of the solutions of (D) and (M). We notice
here that we have not proved yet that the solution exists,
just uniqueness in case of existence. Existence will be
shown later for a general variational problem, given that
it satisfies some conditions.
Last, we show that
Proposition 5. If u′′(x)exists and it is continuous for
a solution of (V), then uis also a solution of (D).
Proof. For this, assuming that uis a solution of (V), we
have
(u′, v′) = (f, v)∀v∈V,
and integrating by parts the first term, using that v(0) =
v(1) = 0 and that u′′ exists we get,
(u′, v′) = (f, v)∀v∈V,
−(u′′, v) = (f, v)∀v∈V,
(f+u′′, v) = 0 ∀v∈V,
but with the assumption that f+u′′ is continuous, this
can only hold if f(x) + u′′(x) = 0 ∀x∈(0,1) .
2 Variational Formulation
•Hilbert Spaces (L2, H1and H1
0)
–Scalar product, Cauchy-Schwarz inequal-
ity and Cauchy sequence
•Natural and Essential boundary conditions
Outline: Hilbert Spaces
Definition 1. A map a(·,·) : V×V→Rthat is sym-
metric and bilinear, i.e., ∀u, v, w ∈V,∀α, β ∈R
a(v, w) = (w, v),(symmetric)
a(αu +βv, w) = αa(u, w) + βa(v, w) (a(·, w)is linear)
a(u, αv +βw) = αa(u, v) + βa(u, w) (a(u, ·)is linear)
is called a scalar product on Vif
a(v, v)>0,∀v∈V, v 6= 0,
and the norm associated with the scalar product is defined
by
||v||a= (a(v, v))1/2,∀v∈V.
Moreover, if <·,·>is a scalar product with correspond-
ing norm || · ||, we have that the following Cauchy-
Schwarz’s inequality is satisfied
|< v, w > | ≤ ||v|| ||w||,∀v, w ∈V.
Definition 2. A linear space Vwith a scalar product
<·,·>and the corresponding norm || · || is said to be
a Hilbert space if Vis complete, i.e., if every Cauchy
sequence with respect to || · || is convergent, where
•a sequence is said to be Cauchy if
∀ε > 0∃N∈Nsuch that ||vi−vj|| < ε if i, j ≥N,
•a sequence is convergent in Vif ∃v∈Vsuch that
∀ε > 0∃N∈Nsuch that ||vi−v|| < ε if i≥N.
Example 2.1. We can see that the space V:=
C0([−1,1]) is a linear space, and that (·,·)V:V×V→R
defined by
(v, w)V=Z1
−1
v(x)w(x) dx,
2

-1 -0.5 0 0.5 1
-0.2
0
0.2
0.4
0.6
0.8
1
1.2
vj
vi
1/N
Figure 1: For i, j > N > 1/ε, the square of the area
between viand vjis smaller than ε.
is a scalar product, with the corresponding associated
norm ||v||V= (v, v)1/2
V. But Vwith this norm is not
complete, thus it is not a Hilbert space.
Proof. To see this we can build a Cauchy sequence that
is not convergent inside V. For example, consider the
sequence
vn=
0 if x∈[−1,0],
nx if x∈(0,1/n),
1 if x∈[1/n, 1].
Take ε > 0, and 1/ε < N ∈N, we can see (Figure 1that
the sequence is Cauchy
||vi−vj||2
V=Z1
−1
(vi(x)−vj(x))2dx
=Z1/N
0
0≤·≤1
z}| {
(vi(x)−vj(x))2dx
≤Z1/N
0
dx= 1/N < ε,
but the sequence converges to the function
H(x) = (0 if x∈[−1,0],
1 if x∈(0,1],
which is not inside V. It means that the space Vwith
this norm is not complete, so it is not a Hilbert space.
In particular, for a bounded domain Ω ∈Rd, we define
the following function spaces, with appropriate scalar
products and associated norms, which are Hilbert spaces:
•The linear space of square-integrable functions in a
bounded domain Ω ∈Rd,
L2(Ω) = {v:ZΩ|v|2dx < ∞},
together with the scalar product and its associated
norm as follows
(v, w)L2(Ω) =ZΩ
vw dx,
||v||L2(Ω) =ZΩ
v2dx.
•We also introduce the linear space of square inte-
grable derivatives up to order 1,
H1(Ω) = {v∈L2(Ω), vxi∈L2, i = 1, . . . , d},
together with the scalar product and the associated
norm as follows
(v, w)H1(Ω) =ZΩ
vw +∇v· ∇wdx,
||v||H1(Ω) =ZΩ
v2+|∇v|2dx=||v||L2(Ω) +||∇v||L2(Ω).
•And the space
H1
0(Ω) := {v∈H1(Ω) : v= 0 on Γ},
together with the same scalar product and the as-
sociated norm as for H1(Ω), where Γ := ∂Ω is the
boundary of Ω.
2.1 Boundary Conditions
The boundary conditions for the differential equation are
usually classified as Dirichlet (when they impose a value
for the function on the boundary), Neumann (when they
force a value for the derivative of the function on the
boundary), or mixed (mixing Dirichlet and Newman),
u=gon ∂Ω (Dirichlet)
~n∇u=hon ∂Ω (Neumann)
γu +~n∇u=gon ∂Ω (Mixed)
where g, h, γ are given functions. Building the varia-
tional formulation, when integrating by parts the orig-
inal equation multiplied by a test function, different
boundary conditions will appear in different ways in
the variational formulation. In particular, we focus on
Dirichlet and Neumann boundary conditions, that for
second order differential equations will become essential
and natural boundary conditions, meaning that
•essential boundary conditions will appear in the
function space V, while
•natural boundary conditions will naturally appear
in the variational form.
In general, for an equation of order 2k, the variational
form needs an space with functions differentiable up to
order k, so essential boundary conditions will be inposed
3

in the space for orders 0, . . . , k −1, and natural bound-
ary conditions will be built in the variational form for
orders k, . . . , 2k−1. It is also important to notice that
essential boundary conditions will generate two spaces,
not necessarily the same, one for which the condition is
imposed to the solution, and other one for the test func-
tion where the functions would be zero. For instance,
consider the boundary, Γ, split in two parts, Γ1and Γ2,
then the two spaces are
•u∈V1={v:v∈H1,and v=gon Γ1},
•v∈V2={v:v∈H1,and v= 0 on Γ1},
and they are the same only when g= 0. We notice
that the Neumann boundary conditions do not have any
effect into the function spaces; instead, they will appear
in the variational formulation.
Example 2.2. Consider a bounded domain Ω ∈Rn,
with boundary Γ = ∂Ω∈ C1piecewise, and the bound-
ary is split in two parts Γ1and Γ2. The problem reads
−∆u=fin Ω ⊂Rn,
u=gon Γ1
~n · ∇u=hon Γ2
Proof. We use the spaces
V1={v:v∈H1,and v=gon Γ1},
V2={v:v∈H1,and v= 0 on Γ1},
where the solution must be in V1, and V2is the space of
test functions. Now, multiply the original equation by
a test function vand integrate over the whole domain,
obtaining
−ZΩ
∆uv dx=ZΩ
fv dx, ∀v∈V2,
but integrating by parts (Green’s formula) the left part
−ZΩ
∆uv dx
=ZΩ∇u· ∇vdx−ZΓ
~n∇uv ds
=ZΩ∇u· ∇vdx−ZΓ1
~n∇uv ds
|{z }
v=0 on Γ1
−ZΓ2
~n∇uv ds
|{z }
~n∇u=hon Γ2
=ZΩ∇u· ∇vdx−ZΓ2
hv ds,
so the variational formulation can be rewritten as
Find u∈V1such that
ZΩ∇u· ∇vdx
|{z }
a(u,v)
=ZΩ
fv dx+ZΓ2
hv ds
|{z }
L(v)
,∀v∈V2.
In addition, we can see that the minimization problem
associated to this variational problem can be written by
Find u∈V1such that
F(u)≤F(v)∀v∈V1
where
F(v) = 1
2a(v, v)−L(v),
and it is equivalent to the variational problem above.
3 Existence of solutions:
Lax-Milgram theorem
•Parallelogram law
•Lax-Milgram Theorem
•(V)⇔(M)
•Poincar´e Inequalities for H1and H1
0
•Trace Inequality
Outline: Lax-Milgram
The complete proofs of the following results are provided
in [And15].
Parallelogram Law:Let ||·|| be a norm associated to a
scalar product <·,·>. The following equivalence holds
||x+y||2+||x−y||2= 2||x||2+ 2||y||2.
Theorem 1 (Lax-Milgram).Let Vbe a Hilbert space
with scalar product <·,·>Vand associated norm ||·||V.
Assume that a(·,·)is a bilinear functional and La linear
functional satisfying:
(1) a(·,·)is symmetric, i.e.,
a(v, w) = a(w, v),∀v, w ∈V;
(2) a(·,·)is V-elliptic, i.e.,
∃α > 0s.t. a(v, v)≥α||v||2
V,∀v∈V;
(3) a(·,·)is continuous, i.e.,
∃C∈Rs.t. |a(v, w)| ≤ C||v||V||w||V,∀v, w ∈V;
(4) L(·)is continuous, i.e.,
∃Λ∈Rs.t. |L(v)| ≥ Λ||v||V,∀v∈V;
Then there exists a unique function u∈Vsuch that
a(u, v) = L(v),∀v∈V,
and the following estimate holds
||u||V≤Λ
α.
4

Proof. A sketch of the proof (complete proof in [And15])
•Build a solution of (M): ∃u∈Vsolving (M)
–Norm ||v|| =a(v, v) is equivalent to || · ||V
–We see that β= inf
v∈VF(v)>−∞
–{vi} ⊂ V, with F(vi)→β, is Cauchy.
–Completeness implies that ∃u∈Vs.t. vi→u
–Show that F(u) = β. Thus usolves (M).
•(M)⇒(V): Because of proposition 6.
•Uniqueness: If u1and u2solve (V), subtracting the
equations we obtain a(u1−u2, v) = 0, and using (2)
for v=u1−u2we get the result.
•Estimate: Combining (2) and (4) with (V).
Proposition 6 ((V)⇔(M)).Let aand Lbe such that
they satisfy the conditions of Theorem 1. Then, the fol-
lowing problems are equivalent:
•Find u∈Vsuch that a(u, v) = L(v),∀v∈V; (V)
•Find u∈Vsuch that F(u)≤F(v),∀v∈V; (M)
where F(v) = 1
2a(v, v)−L(v).
Proof. Similar to (V⇔M) before (complete proof
in [And15]).
Example 3.1. Show, using Lax-Milgram theorem, that
the following problem has a unique solution:
Find u∈V:= H1(Ω),Ω⊂R2, such that
ZΩ
(∇u· ∇v+uv) dx=ZΩ
fv dx, ∀v∈H1(Ω)
Proof. Using
a(v, w) := ZΩ
(∇v· ∇w+vw) dx, L(w) := ZΩ
fw dx,
we check for the different conditions:
1. ais clearly symmetric.
2. a(v, v) = ||v||2
H1(Ω) proves V-ellipticity
3. Cauchy-Schwarz in H1(Ω) provides continuity for
|a(v, w)|=||v||H1(Ω)||w||H1(Ω)
4. Cauchy-Schwarz in L2(Ω) provides continuity for
|L(v)|=|(f, v)L2(Ω)|=||f||L2(Ω)||v||L2(Ω) ≤Λ||v||H1(Ω)
with Λ = ||f||L2(Ω).
Thus, using theorem 1there exists a unique solution.
It is sometimes useful to be able to bound the norm of
the function with the bound of the derivative in order to
verify conditions (2) −(4) of the Lax-Milgram theorem.
It is easy to show that this can not be done with constant
functions, so that we can use the followings Poincar´e
inequalities, always having a mechanism that identify
constant functions with the function zero.
Theorem 2 (Poincar´e inequality for H1
0(Ω)).Let Ωbe a
bounded domain in Rnwith boundary ∂Ω∈ C1piecewise.
Let u∈H1
0(Ω). Then there exists a constant C > 0such
that
||u||L2(Ω) ≤C||∇u||L2(Ω).
Proof. A sketch of the proof (complete proof in [And15])
•We use the function φ(x) = 1/(2n)Px2
i, with ∆φ=
1, with the Green’s formula and bcs. to get
||u||2
L2(Ω) =−ZΩ
2u(∇u· ∇φ) dx
•and we use Cauchy-Schwarz inequality and boundness
of φin Ω
−ZΩ
2u(∇u· ∇φ) dx≤C||u||L2(Ω)||∇u||L2(Ω)
Theorem 3 (Poincar´e inequality for H1(Ω)).Let Ωbe a
bounded domain in Rnwith boundary ∂Ω∈ C1piecewise.
Let u∈H1(Ω) and let
¯u=1
|Ω|ZΩ
udx, (¯uis the average over Ω).
Then there exists a constant C > 0such that
||u−¯u||L2(Ω) ≤C||∇u||L2(Ω).
Proof. We skip the proof.
The next result (Trace inequality) can be used to prove
continuity for aor Lwhen boundary integrals are in-
volved, i.e., when Neumann boundary conditions are
used.
Theorem 4 (Trace inequality).Let Ωbe a bounded do-
main in Rnwith boundary ∂Ω∈ C1piecewise. Then
there exists a constant C > 0such that
||u||L2(∂Ω) ≤C||u||1/2
L2(Ω)||u||1/2
H1(Ω).
Proof. We skip the proof.
Example 3.2. Prove, using Lax-Milgram theorem, that
there exists a unique solution for the variational formu-
lation associated to the problem
(−∆u=fin Ω,
u= 0 on ∂Ω.
5

