next up previous contents
Next: Subdomain Method Up: BOUNDARY VALUE PROBLEMS (BVP) Previous: Finite Difference Technique   Contents

The Method of Weighted Residuals (MWR)

Consider the well-posed differential equation

$\displaystyle \mathcal{L} u(\mathbf{x})=f(\mathbf{x}) ,
\quad \mathbf{x}\in\Omega\subseteq\mathbb{R}^n$

with boundary conditions on $\partial \Omega$. We will approximate the solution $ u(\mathbf{x})$ as

$\displaystyle v(\mathbf{x})=\sum_{j=1}^N c_j\phi_j(\mathbf{x})$

where $ \{\phi_j\}_{j=1}^N$ span the ``trial space''. Hence, we denote $ v(\mathbf{x})$ as the ``trial functions''. The goal in MWR is the determination of the $N$ scalars $ \{c_j\}_{j=1}^N$.

This is done in MWR by minimizing

$\displaystyle r(\mathbf{x})\equiv\mathcal{L}v(\mathbf{x_0}-f(\mathbf{x}) $

where $ r(\mathbf{x})$ is the ``residual''. We do so by attemping to find the coefficients that drive the weighted average

$\displaystyle \int_{\Omega}r(\mathbf{x})w_i(\mathbf{x}) \mathrm{d}\mathbf{x}=0 \qquad \forall i, $

where $ \{w_i\}_{i=1}^M$ are the ``test functions'' or weights. The number of weight functions and $N$ are related as shown below.

A good choice of basis functions are the Lagrange poynomials. To be specific, let $ n=1$ and $ \{x_j\}_{j=1}^N$ be the set of $N$ ``nodes'' on some intreval $ [x_0,x_f]\equiv\Omega$, they are distinct but not necessarily evenly spaced. Here $x_0$ and $ x_f$ are the boundary points $\partial \Omega$.

An $ (N-1)$$^{th}$ degree polynomial associalted with $ x_j$, $ j=1,\ldots, N$

$\displaystyle \ell_j(x)=\prod_{i=1,i\neq j}^{N} \frac{x-x_i}{x_j-x_i} $

forms a basis of $ S_N$, the finite-dimensional linear space. As we saw in 475A

$\displaystyle v_i\equiv v _(x_i)=\sum_{j=1}^N c_j \ell_j(x_i)=c_i \ell_i(x)=c_i,$

since $ \ell_j(x_i)=\delta_{ij}$. So we have

$\displaystyle v(x)=\sum_{j=1}^N v_j\phi_j(x)$

where the $ \phi_j$ are Lagrange polynomials.

These $ \ell_j(x)$ are nonzero over entire $\Omega $, except at a finite number of node points. Further, $ \ell_j(x)\in C^{\infty}(\Omega)$. However, we may want to choose piecewise polynomials rather than global polynimials. This is beneficial for parallel computing where we want to minimze communication between processors.

The following sets of piecewise defined polynomials in $ C^0(\Omega)$ are simple and thus quite popular.

Download the piecewise cubic Hermite polynomial interpolation matlab script. Verify the properties of the interpolants and compare the results of the cubic interpolation to the quadratic and linear cases.

Recall that MWR goal is to minimize $ r(x)$ by forcing it to zero in a weighted average sense over the domain $\Omega $. The most popular variants of MWR are

  1. Subdomain Method
  2. Collocation
  3. Galerkin and Petrov-Galerkin
We will only present the first 2 by example.


next up previous contents
Next: Subdomain Method Up: BOUNDARY VALUE PROBLEMS (BVP) Previous: Finite Difference Technique   Contents
Juan Restrepo 2003-05-02