### Intro

One can write a general differential equation as:

An example, which we will often consider is

**ex.**

to model e.g. heat conduction with a space-dependent heat conduction coefficient and a heat production term . (Notice the “**ex**” when we are talking about a particular example.)

This is pretty technical, so please stop reading here if you are already lost!

On top of that we of course need boundary conditions, Neumann, Dirichlet, Robin… In our case we will consider

**ex.**

### Approximation

The method of weighed residuals proceeds as follows: approximate the solution by a linear combination of *approximation functions* (aka *solution functions*) :

(The last term is introduced for convenience when dealing with boundary conditions, see below).

Of course, this approximation is not a solution of the original equation in general, so introduce the residual:

### “Zero” residual

Now, this residual is not zero in general, but we can make it zero in a weighted residual sense:

where we introduce *weight functions* (aka *test functions*) .

Now, different choices for the weight functions result in different methods:

- : Galerkin method. The residual is “spat out” of the functional space: it is made orthogonal to it. A similar idea to Tsebitchev polynomials…
- The least-squares Galerkin method.
- The collocation method.

### Boundary conditions

Since we lack a weak form of our problem, *all* boundary conditions (BCs) must be taken into account by the solution functions (we no longer distinguish natural and essential ones). It is often very convenient to split this task:

- is to satisfy the actual BCs.
- All the other are to satisfy
*homogeneous*BCs.

###### Refs

*An Introduction to the Finite Element Method*, J. Reddy. McGraw-Hill; 3 edition (January 11, 2005).**ISBN-10:**0072466855. At amazon (167 bucks!).- Petrov-Galerkin_method at wikipedia. (Not to be trusted so much!)
- Method of mean weighted residuals at wikipedia
- Galerkin method at wikipedia
- Weak formulation of boundary value problems.
- The Rayleigh-Ritz method (to be written!)