From strong to weak form

2.2. From strong to weak form#

In the finite element method, before the problem is discretized, the governing equation is rewritten in the so-called weak form. In some cases, the weak form can be given a physical interpretation. In solid mechanics, for instance, one can interpret the weak form as an expression for a minimization problem of an energy potential. The weak form is then also referred to as variational form in the sense that in the minimization problem a solution is found for which variations in the potential are equal to zero. Here, however, we follow a formal route that arrives at the weak form by recasting the strong form as an integral equation without physical considerations.

Derivation of the weak form#

In general, the weak form of the problem is derived by multiplying the strong form by a test function, integrating over the domain, and then applying integration by parts on the terms containing derivatives1. In this manner, the order of derivatives appearing in the equations is reduced and the resulting form is symmetric (in general), facilitating a more efficient numerical solution.

Let’s put this in practice for the rod equation (2.4). The first step is pre-multiplication of left hand side and right hand side with a test function \(w(x)\) and integrating over the domain. Assuming constant \(EA\), we get:

(2.7)#\[ -\int_{0}^{L} wEA \frac{\partial^{2} u}{\partial x^{2}}\,dx = \int_0^Lwf\,dx,\quad\forall\quad w\]

The \(\forall w\) means that the equality has to hold for all possible test functions \(w\). Note that a solution of the strong form will indeed satisfy this equation for every function \(w\). Conversely, for any \(u\) that does not satisfy the strong form anywhere in the domain, it is possible to find a function \(w\) for which equation (2.7) does not hold.

Next, integration by parts is used to get rid of the second order derivative in \(u\):

(2.8)#\[ \int_{0}^{L} \frac{\partial w}{\partial x}EA \frac{\partial u}{\partial x}\,dx -\left[w EA \frac{\partial u}{\partial x}\right]_0^L = \int_0^Lwf\,dx,\quad\forall\quad w \]

Note that after integrating by parts, a boundary term appears.

Integration by parts

Recall the definition of integration by parts in 1D

\[ \int_{0}^{L} \alpha\beta'\,dx = \left[\alpha\beta\right]_0^L-\int_{0}^{L} \alpha'\beta\,dx \]

Where the \('\) is used to indicate a derivative with respect to \(x\). In our case, we have \(\alpha=w\) and \(\beta={\partial u}/{\partial x}\) and every term is multiplied with a constant \(EA\).

Note that this integration by parts definition is related to the product rule of differentiation, which says:

\[ (\alpha\beta)' = \alpha'\beta + \alpha\beta' \]

Boundary conditions#

We typically distinguish between two2 types of boundary conditions:

  • Dirichlet (or essential) boundary conditions, where we enforce the value of the solution.

  • Neumann (or natural) boundary conditions, where we enforce the flux (or force).

In the case introduced in the previous section (see Fig. 2.1), one boundary condition of each type is specified:

  • Dirichlet: \(u=0\) at \(x=0\)

  • Neumann: \(EA \frac{\partial u}{\partial x}=F\) at \(x=L\)

To enforce Dirichlet boundary conditions we strongly3 prescribe the value of the solution and set the test function to zero at that boundary. This effectively means that the boundary term coming from the integration by parts evaluated at the Dirichlet boundary goes to zero.

(2.9)#\[ {\color{red}w} EA \left.\frac{\partial u}{\partial x}\right|_{x=0} = {\color{red}0} EA \left.\frac{\partial u}{\partial x}\right|_{x=0} = 0 \]

To enforce the Neumann boundary condition we just need to replace the value of the prescribed flux (or force) in the boundary term appearing after the integration by parts. This type of boundary condition is often called natural as it naturally appears when deriving the weak form.

(2.10)#\[ w {\color{red}EA \left.\frac{\partial u}{\partial x}\right|_{x=L}} = w(L){\color{red}F}. \]

Now we can replace equations (2.9) and (2.10) into the weak form (2.8), and send to the right-hand site the terms that do not depend on the unknown \(u\). This leads us to the final weak form:

(2.11)#\[ \int_{0}^{L} \frac{\partial w}{\partial x}EA \frac{\partial u}{\partial x}\,dx = \int_0^Lwf\,dx + w(L)F,\quad\forall\quad w\]
Quiz questions
Exercise

Show that the weak form can be derived to be exactly the same if \(EA\) is not assumed to be constant (see (2.4) for the general strong form equation). If needed, look at the intermediate steps and solutions below:

  1. What would be the equivalent of (2.7) for the case where \(EA\) is not assumed to be constant?

  1. Continuing with this integral expression what would be the result of applying integration by parts (i.e. what would be the equivalent of (2.8))?

  1. Check that the final weak form is indeed the same as (2.11).


1

Note that this is not a general rule. There are cases of terms containing derivatives that might not be integrated by parts, typically non-symmetric terms.

2

We can also find Robin type of boundary conditions, which are a mix between Dirichlet and Neumann type, for example: \(\alpha u + EA \frac{\partial u}{\partial x}=F\).

3

We can also enforce Dirichlet boundary conditions in a weak sense, by introducing additional terms on the weak form that penalize the difference between the solution and the prescribed value at the boundary. This will not be covered in this chapter.