## 2.9.4 Weak Form of the Weighted Residual

Measurable Outcome 2.12, Measurable Outcome 2.14, Measurable Outcome 2.15

In this section, we will concentrate on the one-dimensional, steady diffusion equation with a source term. As previously noted in Equation (2.149), the one-dimensional steady diffusion equation with a source term is

where \(k(x)\) thermal conductivity of the material and \(f(x)\) is the heat source (per unit length). Note that both \(k\) and \(f\) could be functions of \(x\). Also, let the physical domain for the problem be from \(x=-L/2\) to \(x=L/2\).

The residual corresponding to this equation is

For an arbitrary weight function, \(w(x)\), the weighted residual is defined as

A general notation for the weighted residual is \(r(v,w)\), where the first entry \(v(x)\) is the approximate solution (\(v(x)=\tilde{T}(x)\) in our example) and the second entry \(w(x)\) is the weight function. The finite element method (or more generally the method of weighted residuals) can be thought of as finding the \(v(x)\) for which \(r(v,w)=0\) for all of the weight functions. If the approximate solution is a linear combination of \(M\) functions, \(\phi _ i(x)\), then \(v(x)\) can be written as,

Further, if the Galerkin method of weighted residuals is used, then the weight functions will be the set \(\phi _ i(x)\), i.e.,

Then, the Galerkin method of weighted residuals can be written as: Find the set of \(a_ i\) such that \(v(x)=\sum _{i=1}^ Ma_ i\phi _ i(x)\) has \(r(v, \phi _ j) =0\) for all weight functions \(\phi _ j(x)\), \(j=1,\ldots ,M\).

For the diffusion equation, the weighted residual statement is usually integrated by parts so that the number of derivatives on the weight function and the approximate solution (\(v(x)=\tilde{T}(x)\)) are equal. Thus, performing integration by parts gives the weighted residual for the diffusion equation as

The first term is on the boundaries of the domain and its use in setting boundary conditions is discussed in Section 2.10.2. The second and third terms are integrals over the entire domain.

The form of the weighted residual given in Equation 2.209 is known as the **weak form** of the PDE. The residual itself is often referred to as the **strong form** of the governing equation. We see that in the weak form, the spatial derivatives of \(\tilde{T}\) are of lower order than in the residual (because we integrated by parts). In the finite element method, this reduction in the order of derivatives permits the use of lower order polynomials for the functional approximation of the solution. For PDEs in which the highest order derivative is even, the weak form of the weighted residual is chosen so that the highest derivative on the weight function and the solution are the same (e.g., for a fourth-order derivative in the strong form, the weak form will have second-order derivatives on the weight function and second-order derivatives on the approximate solution).

## Exercise

The Euler-Bernoulli beam equation is a model for the deflection \(w(x)\) of a beam subjected to lateral loading, specifically

where \(E\) and \(I\) are the Young's modulus and the area moment of inertia, respectively, and \(q(x)\) is the lateral loading. Let the beam be located from \(0 \leq x \leq L\). Which of the following is the weak form with an approximate solution \(v(x)\) and a weight function \(\phi (x)\)?