Formulation of finite element equations

Galerkin method

Let us use simple one-dimensional example for the explanation of finite element formulation using the Galerkin method. Suppose that we need to solve numerically the following differential equation:

Variational formulation