Series: Finite Element MethodDiscrete

The Discrete Formulation

The abstract weak problem — find uVu \in V such that a(u,v)=(v)a(u,v) = \ell(v) for all vV0v \in V_0 — is posed in an infinite-dimensional function space and cannot be solved directly on a computer. The Galerkin method turns it into a finite-dimensional problem by restricting attention to a subspace.

Choose a finite-dimensional subspace VhVV_h \subset V of dimension NN. The subscript hh conventionally denotes a discretisation parameter, typically the mesh size. The discrete problem reads: find uhVhu_h \in V_h such that

a(uh,vh)=(vh)for all vhVh.a(u_h, v_h) = \ell(v_h) \quad \text{for all } v_h \in V_h.

This has exactly the same form as the continuous problem, but lives in a space of dimension NN instead of an infinite-dimensional one. To turn it into a linear system, let {ϕ1,,ϕN}\{\phi_1, \ldots, \phi_N\} be a basis for VhV_h. Since aa is linear in the first argument and uhVhu_h \in V_h, we write

uh=j=1Nujϕju_h = \sum_{j=1}^{N} u_j\, \phi_j

and substitute into the discrete problem, testing against each basis function ϕi\phi_i:

j=1Nuja(ϕj,ϕi)=(ϕi),i=1,,N.\sum_{j=1}^{N} u_j\, a(\phi_j, \phi_i) = \ell(\phi_i), \quad i = 1, \ldots, N.

This is a system of NN equations in NN unknowns. Defining the stiffness matrix KRN×NK \in \mathbb{R}^{N \times N} and load vector fRN\mathbf{f} \in \mathbb{R}^N by

Kij=a(ϕj,ϕi),fi=(ϕi),K_{ij} = a(\phi_j, \phi_i), \qquad f_i = \ell(\phi_i),

the discrete problem reduces to the linear system

Ku=f,K\mathbf{u} = \mathbf{f},

where u=(u1,,uN)T\mathbf{u} = (u_1, \ldots, u_N)^T is the vector of unknown coefficients. When aa is symmetric (as for the Poisson problem), KK is symmetric and, under the coercivity condition, positive definite. The restriction of test functions to the subspace Vh,0=VhV0V_{h,0} = V_h \cap V_0 — which enforces the Dirichlet boundary conditions — is the subject of a later post on assembly.

The key question is how well uhu_h approximates the true solution uu. The relevant measure of error is the VV-norm, which for VH1(Ω)V \subset H^1(\Omega) is the H1H^1 norm

vV=vH1(Ω)=(Ωv2dx+Ωv2dx)1/2.\|v\|_V = \|v\|_{H^1(\Omega)} = \left(\int_\Omega v^2 \, \mathrm{d}x + \int_\Omega |\nabla v|^2 \, \mathrm{d}x\right)^{1/2}.

This norm controls both the function values and their first derivatives, which is exactly the regularity that the weak formulation requires. The answer to the approximation question is given by Céa's lemma: the discrete solution is quasi-optimal in the sense that

uuhVMαinfvhVh,0uvhV,\|u - u_h\|_V \leq \frac{M}{\alpha}\, \inf_{v_h \in V_{h,0}} \|u - v_h\|_V,

where MM is the continuity constant and α\alpha is the coercivity constant of aa. The proof rests on two observations. First, subtracting the discrete problem from the continuous one shows that the error uuhu - u_h is orthogonal to Vh,0V_{h,0} with respect to aa:

a(uuh,vh)=0for all vhVh,0.a(u - u_h, v_h) = 0 \quad \text{for all } v_h \in V_{h,0}.

This is called Galerkin orthogonality. Second, for any vhVh,0v_h \in V_{h,0},

αuuhV2a(uuh,uuh)=a(uuh,uvh)MuuhVuvhV,\alpha\, \|u - u_h\|_V^2 \leq a(u - u_h,\, u - u_h) = a(u - u_h,\, u - v_h) \leq M\, \|u - u_h\|_V\, \|u - v_h\|_V,

where the first step uses coercivity, the second uses Galerkin orthogonality (adding and subtracting vhv_h), and the third uses continuity. Dividing by uuhV\|u - u_h\|_V and taking the infimum over vhv_h gives the bound. When aa is symmetric the ratio M/α=1M/\alpha = 1 and uhu_h is the best approximation to uu from Vh,0V_{h,0} in the energy norm va=a(v,v)\|v\|_a = \sqrt{a(v,v)}.

Céa's lemma reduces the question of approximation quality entirely to approximation theory: how well can elements of Vh,0V_{h,0} approximate uu? This depends on the choice of basis functions and the mesh, which is the topic of the next posts.