Professional Documents
Culture Documents
Chapter 3
Chapter 3
Chapter 3
AF
METHODS OF WEIGHTED
RESIDUALS
3.1
Introduction
DR
k
[
i = .
i=1
Figure 3.1: An open and connected domain with smooth boundary written as the union of
boundary regions i
33
34
in ,
Bi [u] = gi
on i
i = 1, . . . , k .
(3.1)
AF
R =
w (A[u] f ) d +
i=1
(3.2)
be algebraically consistent (i.e., all integrals of the right-hand side have the same units).
These functions are called weighting functions (or test functions).
Equations (3.1) constitute the strong form of the differential equation. The scalar equation
Z
w (A[u] f ) d +
k Z
X
i=1
wi (Bi [u] gi ) d = 0 ,
(3.3)
By inspection, the strong form (3.1) implies the general weighted-residual form. The
converse is also true, conditional upon sufficient smoothness of the involved fields. The
DR
following lemma provides the necessary background for the ensuing proof in the context of
Rn .
(3.4)
In proving the above lemma, one immediately notes that if f = 0, then the integral of f will
vanish identically over any i . To prove the converse, assume by contradiction that there
exists a point x0 in where
f (x0 ) = f0 6= 0 ,
ME280A
(3.5)
Version: September 21, 2010, 11:56
35
Introduction
and without loss of generality, let f0 > 0. It follows that, since f is continuous, there is an
f0
2
(3.6)
(3.7)
f0
AF
f (x) >
everywhere in N , hence
(3.8)
Z
1
f d >
f0 d > 0 ,
(3.9)
2 N
N
which constitutes a contradiction with the original assumption that the integral of f vanishes
Z
Returning to the relation between (3.1) and (3.3), note that since the latter holds for
arbitrary choices of w and wi , let
w (x) =
1 if x i
0 otherwise
wi = 0 ,
i = 1, . . . , k .
(3.10)
(3.11)
Invoking the localization lemma, it is readily concluded that (3.1)1 should hold everywhere
DR
in , conditional upon continuity of A[u] and f . Repeating the same process k times (once for
each of the boundary conditions) for appropriately defined weighting functions and involving
the localization theorem, each one of equations (3.1)2 is recovered on its respective domain.
The equivalence of the strong form and the weighted-residual form plays a fundamental
role in the construction of approximate solutions (including finite element solutions) to the
underlying problem. Various approximation methods, such as the Galerkin, collocation and
least-squares methods, are derived by appropriately restricting the admissible form of the
weighting functions and the actual solution.
The above preliminary development applies to linear and non-linear differential operators
ME280A
36
Galerkin methods
3.2
Galerkin methods provide a fairly general framework for the numerical solution of differential
equations within the context of the weighted-residual formalization. Here, an introduction
to Galerkin methods is attempted by means of their application to the solution of a representative boundary-value problem.
AF
(k
) +
(k
) = f
x1 x1
x2 x2
u
k
= q
n
u = u
in ,
on q ,
(3.5)
on u ,
DR
Figure 3.2: The domain of the Laplace-Poisson equation with Dirichlet boundary u and
Neumann boundary q
conditions (3.5)2 and (3.5)3 are termed Neumann and Dirichlet conditions, respectively.
It is clear from the statement of the strong form that both the domain and the boundary
differential operators are linear in u. This is the Laplace-Poisson equation, which has applications in the mathematical modeling of numerous systems in structural mechanics, heat
conduction, electrostatics, flow in porous media, etc.
ME280A
37
Galerkin methods
u
(k
) +
(k
) f
x1 x1
x2 x2
u
q
on q ,
Rq (x1 , x2 ) = k
n
Ru (x1 , x2 ) = u u
on u .
R (x1 , x2 ) =
in ,
(3.6)
AF
w R d +
wq Rq d +
wu Ru d = 0 ,
(3.7)
and, as argued earlier, is equivalent to the strong form of the boundary-value problem,
provided that the weighting functions are arbitrary to within unit consistency and proper
definition of the integrals in (3.7).
A series of assumptions are introduced in deriving the Galerkin method. First, assume
that boundary condition (3.5)3 is satisfied at the outset, namely that the solution u is sought
over a set of candidate functions that already satisfy (3.5)3 . Hence, the third integral of the
left-hand side of (3.7) vanishes and the choice of function wu becomes irrelevant.
DR
Observing that the two remaining integral terms in (3.7) are consistent unit-wise, provided that w and wq have the same units, introduce the second assumption leading to a
so-called Galerkin formulation: this is a particular choice of functions w and wq according
to which
w = w
in ,
wq = w
on q .
(3.8)
Substitution of the above expressions for the weighting functions into the reduced form of
(3.7) yields
Z
w
x1
u
k
x1
+
x2
Z
u
u
w k
k
f d
+ q d = 0 ,
x2
n
q
(3.9)
ME280A
38
which, after integration by parts and use of the divergence theorem1 , is rewritten as
Z
Z
w u
w u
u
u
k
+
k
+ wf d +
wk
n1 +
n2 d
x1
x2 x2
x1
x2
x1
Z
u
+ q d = 0 . (3.10)
w k
n
q
Recall that the projection of the gradient of u in the direction of the outward unit normal n
is given by
AF
u
du
u
u
=
n =
n1 +
n2 ,
(3.11)
n
dx
x1
x2
and, thus, the above weighted-residual equation is also written as
Z
Z
Z
w u
u
w u
wk
w q d = 0 . (3.12)
k
+
k
+ wf d +
d
x1
x2 x2
n
x1
q
u
Here, an additional assumption is introduced, namely
w = 0
on u .
(3.13)
(3.14)
Alternatively, it is possible to assume that both (3.5)2,3 are satisfied at the outset and
DR
k
+
k
f d = 0 .
w
x1
x1
x2
x2
(3.15)
Again, integration by parts and use of the divergence theorem transform the above equation
into
Z
Z
w u
w u
u
k
+
k
+ wf d +
wk
d = 0 ,
x1 x1
x2 x2
n
(3.16)
which, in turn, becomes identical to (3.14) by imposing restriction (3.13) and making explicit
use of the assumed condition (3.5)2 .
1
This theorem states that given a closed smooth surface with interior and a C 1 function f : R,
then
f,i d =
f ni d ,
ME280A
39
Galerkin methods
The weighted residual problem associated with equation (3.14) can be expressed opera-
u H 1 ()
W = w H 1 ()
U =
u = u on u
w = 0 on u
AF
whereas (w, f ) and (w, q)q are linear forms defined respectively as
Z
(w, f ) =
wf d
(3.17)
(3.18)
(3.19)
(3.20)
(3.21)
and
(w, q)q =
w q d .
(3.22)
The identification of admissible solution fields U and weighting function fields W is dictated
by restrictions placed during the derivation of (3.14) and by the requirement that the bi-linear
form B(w, u) be computable (i.e., that the integral be well-defined). Clearly, alternative
DR
(3.23)
.
w = wh =
I=1
N
X
(3.24)
I I (x1 , x2 ) .
I=1
In the above, I (x1 , x2 ) and I (x1 , x2 ), I = 1, 2, . . . , N, are given functions (called interpolation or basis functions), which vanish on u , and 0 (x1 , x2 ) is chosen so that uh satisfy
ME280A
40
I = 1, 2, . . . , N. This is the most popular version of the Galerkin method. Use of functions
I 6= I yields a so-called Petrov-Galerkin approximation.
Substitution of uh and wh , as defined in (3.24), into the weak form (3.14) results in
I
I=1
I,1
N
X
I,2 k
"
J,1
J,2
J +
"
0,1
J=1
d
0,2
Z
Z
N
N
X
X
I q d = 0 , (3.25)
+
I
I f d +
I
I=1
or, alternatively,
N
X
I=1
where
KIJ =
and
FI =
#
AF
N
X
I f d
N
X
J=1
I=1
KIJ J FI
I,1 I,2 k
I,1 I,2 k
= 0,
(3.26)
(3.27)
"
J,1
"
0,1
J,2
0,2
d ,
I q d .
(3.28)
DR
N
X
KIJ J = FI
I = 1, 2, . . . , N ,
(3.29)
J=1
K = F ,
(3.30)
It is important to note that the Galerkin approximation (3.24) transforms the integro-
differential equation (3.14) into a system of linear algebraic equations to be solved for .
Remarks:
ME280A
Galerkin methods
41
It should be noted that, strictly speaking, U is not a linear space, since it violates the
closure property (see Section 2.1). However, it is easy to reformulate equations (3.5)
so that they only involve homogeneous Dirichlet boundary conditions, in which case
U is formally a linear space and Uh a linear subspace of it. Indeed, any linear partial
A[u] = f
AF
u = u
It can be easily seen from (3.27) that the stiffness matrix K is symmetric for a BubnovGalerkin approximation. For the same type of approximation, it can be shown that,
under mild assumptions, K is also positive-definite (therefore non-singular), so that
the system (3.30) possesses a unique solution.
Generally, there exists no precisely defined set of assumptions that guarantee the non-
DR
The terminology stiffness matrix and forcing vector originates in structural engineering and is associated with the physical interpretation of these quantities in the
context of linear elasticity.
Example:
= 2
dx
u = 0
in = (0, 1) ,
on q = {1} ,
on u = {0} .
ME280A
42
()
1 (x) = x .
AF
(1 1 + 1 x) dx + 21 = 0 ,
5
.
2
Thus, the one-parameter Bubnov-Galerkin approximation of the solution to the above differential
equation is
5
uh (x) = x .
2
Similarly, a two-parameter Bubnov-Galerkin approximation is obtained by choosing
0 (x) = 0
and
2 (x) = x2 .
DR
1 (x) = x
1
(1 + 22 x)(1 + 22 x) + (1 x + 2 x2 ) dx + 2(1 + 2 ) = 0 ,
5
,
2
7
= .
3
1 + 2 =
1 +
ME280A
4
2
3
Collocation methods
43
uh (x) = 3x +
AF
It can be easily confirmed by direct integration that the exact solution of the differential equation
is identical to the one obtained by the above two-parameter Bubnov-Galerkin approximation. It
can be concluded that in this particular problem, the two-dimensional subspace Uh of all admissible
functions U contains the exact solution, and, also, that the Bubnov-Galerkin method is capable of
recovering it.
In the remainder of this section, the Galerkin method is summarized in the context of
the model problem
A[u] = f
in ,
B[u] = g
on q ,
u = u
on u ,
(3.31)
where A is a linear second-order differential operator on a space of admissible domain functions u, and B is a linear first-order differential operator on the space of the traces of u. In
addition, it is assumed that = u q and u q = . The method is based on the
(3.32)
DR
where the space of admissible solutions u satisfies (3.31)3 at the outset. In addition, wq is
chosen to vanish identically on u and, depending on unit consistency and the particular
form of (3.31)2 , is chosen to be equal to w (or w) on q .
3.3
Collocation methods
Collocation methods are based on the idea that an approximate solution to a boundaryor initial-value problem can be obtained by enforcing the underlying equations at suitably
chosen points in the domain of analysis. Starting from the general weighted-residual form
given in (3.3), assume, as in the Galerkin method, that boundary condition (3.31)3 will be
explicitly satisfied by the admissible functions uh , and obtain the reduced form
Z
Z
wq (B[u] g) d = 0 ,
w (A[u] f ) d +
(3.33)
ME280A
44
N
X
.
I I (x) + 0 (x) ,
u(x) = uh (x) =
(3.34)
I=1
3.3.1
AF
Point-collocation method
n+2
DR
n+1
The interior and boundary weighting functions are respectively defined according to
wh (x) =
n
X
i=1
i (x xi )
(3.35)
and
wqh (x) =
N
X
i=n+1
i (x xi ) ,
(3.36)
where the scalar parameter 2 is introduced in wqh for unit consistency. Substitution of
ME280A
45
Point-collocation methods
n
X
i=1
+ 2
N
X
i=n+1
N
X
i B[
I I (xi ) + 0 (xi )] g(xi ) = 0 . (3.37)
I=1
n
X
i=1
N
X
I=1
AF
N
X
i=n+1
N
X
I=1
= 0 . (3.38)
Since the parameters i are arbitrary, the above scalar equation results in a system of N
linear algebraic equations of the form
N
X
KiI I = Fi
i = 1, . . . , N ,
(3.39)
I=1
where
KiI =
and
B[I (xi )] ,
1in,
n+1 iN
DR
Fi =
A[I (xi )] ,
I = 1, . . . , N ,
1in,
n+1iN
(3.40)
(3.41)
These equations are solved for the parameters I , so that the approximate solution uh is
obtained from (3.34).
The particular choice of admissible fields renders the integrals in (3.33) well-defined,
since products of Dirac-delta functions (from wh ) and smooth functions (from uh ) are always
properly integrable.
Example:
in = {(x1 , x2 )
| | x1 | 1 , | x2 | 1} ,
on .
ME280A
46
The domain of the problem is sketched in Figure 3.4. It is immediately concluded that the boundary
does not possess a unique outward unit normal at points (1, 1). It can be shown, however,
that this difficulty can be surmounted by a limiting process, thus rendering the present method of
analysis valid.
x2
AF
x1
DR
2 uh
2 uh
+
= 41 (1 3x21 )(1 x22 )2 + (1 x21 )2 (1 3x22 ) .
2
2
x1
x2
()
Noting that the solution should be symmetric with respect to axes x1 = 0 and x2 = 0, pick the
single interior collocation point to be located at the intersection of these axes, namely at (0, 0). It
follows from () that
K11 1 = F1 ,
where K11 = 8 and F = 1, so that 1 =
uh =
1
8
1
(1 x21 )2 (1 x22 )2 .
8
Alternatively, one may choose to start with a one-parameter space of admissible solutions which
satisfies the domain equation everywhere, and enforce the boundary conditions at a single point on
the boundary. For example, let
1
uh (x1 , x2 ) = (x21 + x22 ) + 1 (x41 + x42 6x21 x22 ) ,
4
ME280A
Subdomain-collocation methods
47
and choose to satisfy the boundary condition at point (1, 0) (thus, due to symmetry, also at point
(1, 0)). It follows that
uh
uh
1
(1, 0) =
(1, 0) = + 41 = 0 ,
n
x1
2
hence 1 = 18 , and
1
1
uh (x1 , x2 ) = (x21 + x22 ) + (x41 + x42 6x21 x22 ) .
4
8
AF
A combined domain and boundary point collocation solution can be obtained by starting with
a two-parameter approximation function
uh (x1 , x2 ) = 1 (x21 + x22 ) + 2 (1 x21 )(1 x22 )
and selecting one interior and one boundary collocation point. In particular, taking (0, 0) to be the
interior collocation point leads to the algebraic equation
1 2 = 1/4 .
Clearly the system of the preceding two equations is singular, which means here that the two
collocations points, in effect, generate conflicting restrictions for the two-parameter approximation
function. In such a case, one may choose an alternative boundary collocation point, e.g., (1, 1/ 2),
which results in the equation
21 2 = 0 ,
which, when solved simultaneously with the equation obtained from interior collocation, leads to
,
DR
1 = 1/4
hence,
uh (x1 , x2 ) =
3.3.2
2 = 1/2 ,
1 2
1
(x + x22 ) + (1 x21 )(1 x22 ) .
4 1
2
Subdomain-collocation method
i=1
(3.42)
ME280A
48
q,N
n
1
2
q,n+2
AF
q,n+1
N
[
i=n+1
q,i q .
(3.43)
Recall the weighted residual form (3.33) and define the weighting function on as
n
X
wh (x) =
i w,i(x) ,
(3.44)
i=1
with
if x i ,
DR
w,i (x) =
otherwise
(3.45)
Similarly, write on q
N
X
wqh (x) =
i wq,i (x) ,
(3.46)
i=n+1
with
wq,i (x) =
2
0
if x q,i ,
otherwise
(3.47)
Given the above weighting functions, the weighted-residual form (3.33) is rewritten as
n Z
X
i=1
ME280A
i (A[u] f ) d +
N
X
i=n+1
q,i
i (B[u] g) d = 0 .
(3.48)
49
Subdomain-collocation methods
n
X
i=1
N
X
q,i
i=n+1
N
X
B[
I I (x) + 0 (x)] g d = 0 . (3.49)
I=1
n
X
N
X
i I=1
i=1
AF
Invoking the linearity of A and B in u, the above equation can be also written as
I A[I (x)] + A[0 (x)] f d
2
N
X
i=n+1
N
X
q,i I=1
I B[I (x)] + B[0 (x)] g d = 0 , (3.50)
KiI I = Fi
i = 1, . . . , N ,
(3.51)
I=1
where
KiI
A[I (xi )] d ,
iZ
=
B[I (xi )] d ,
q,i
Fi =
Remarks:
Z
i
A[0 (xi )] + f (xi ) d ,
q,i
I = 1, . . . , N ,
(3.52)
n+1iN
DR
and
1in,
B[0 (xi )] + g(xi) d ,
1in,
(3.53)
n+1iN
The point-collocation method requires very small computational effort to form the
stiffness matrix and the forcing vector.
Choice of collocation points is not arbitrary for certain classes of differential equations,
one may identify collocation points that yield optimal accuracy of the approximate
solution.
ME280A
50
Least-squares methods
3.4
Consider the model problem (3.31) of the previous section, and assuming that (3.31)3 is
satisfied by the space of admissible solutions u, form the least-squares functional I[u],
defined as
I[u] =
(A[u] f ) d +
(B[u] g)2 d ,
(3.54)
AF
at the solution of (3.31). In order to find the extrema of the functional defined in (3.54),
determine its first variation as
Z
Z
2
(B[u] g) (B[u] g) d . (3.55)
I[u] = 2 (A[u] f ) (A[u] f ) d + 2
q
A[u + u] A[u]
0
A[u] = lim
(3.56)
A[u](A[u] f ) d +
B[u](B[u] g) d = 0 .
DR
(3.57)
addition, write
N
X
.
u(x) = uh (x) =
I I (x) ,
(3.58)
I=1
N
N
X
X
A[
I I (x)] A[
J J (x) + 0 (x)] f d
I=1
ME280A
J=1
N
X
B[
I=1
N
X
I I (x)] B[
J J (x) + 0 (x)] g d = 0 . (3.59)
J=1
51
Least-squares methods
Z X
N
I A[I (x)]
I=1
N
X
J=1
+ 2
Z X
N
Since A and B are linear in u, it follows that the above equation can be also written as
J A[J (x)] + A[0 (x)] f d
N
X
I B[I (x)]
q I=1
J=1
J B[J (x)] + B[0 (x)] g d = 0 , (3.60)
which, in turn, invoking the arbitrariness of I , gives rise to a system of linear algebraic
AF
N
X
KIJ J = FI
I = 1, . . . , N ,
(3.61)
J=1
where
KIJ =
and
FI =
A[I ]A[J ] d +
A[I ] f A[0 ] d + 2
B[I ]B[J ] d ,
I, J = 1, . . . , N
(3.62)
B[I ] g B[0 ] d ,
I = 1, . . . , N . (3.63)
It is important to note that the smoothness requirements for the admissible functions u
are governed by the integrals that appear in (3.54). It can be easily deduced that if A is a
differential operator of second order (i.e., maps functions u to partial derivatives of second
DR
order), then for (3.54) to be well-defined, it is necessary that u H 2 (). This requirement
can be contrasted to the one obtained in the Galerkin approximation of (3.5), where it was
concluded that both u and w need only belong to H 1 ().
Remarks:
The stiffness matrix that emanates from the least-squares functional is symmetric by
construction and, may be positive-definite, conditional upon the particular form of the
boundary conditions.
of u.
ME280A
52
Composite methods
3.5
The Galerkin, collocation and least-squares methods can be appropriately combined to yield
composite weighted residual methods. The choice of admissible weighting functions defines
the degree and form of blending between the above methods. Without attempting to provide
an exhaustive presentation, note that a simple Galerkin/collocation method can be obtained
for the model problem (3.31), with associated weighted-residual form (3.32), by defining the
AF
m
X
.
w (x) = wh (x) =
I I (x) +
I=1
n
X
I=m+1
I 21 (x xI ) ,
(3.64)
m
N
X
X
.
wq (x) = wqh (x) =
I I (x) +
I 22 (x xI ) ,
I=1
(3.65)
I=n+1
DR
I=1
n
X
I=m+1
I 21 (x xI )
(3.66)
and
m
N
X
X
.
wq (x) = wqh (x) =
I B[I (x)] +
I 22 (x xI ) ,
I=1
(3.67)
I=n+1
3.6
ME280A
53
u2 2u1
f1 x2
=
u0 ,
k
fl x2
=
, l = 2, . . . , N 1 ,
k
fN x2
uL
=
k
(3.68)
AF
(3.69)
at all interior points. Note that in the above equations ()l = ()(xl ).
2
du
w k 2 f dx = 0 ,
dx
(3.70)
where boundary conditions (1.1)2 and (1.1)3 are assumed to hold at the outset. Subsequently,
, xl + x
], l = 2, . . . , N 1,
define the approximate solution uh within each sub-domain (xl x
2
2
as
uh (x) =
l+1
X
Ni (x)i ,
(3.71)
i=l1
DR
Nl
l1
Nl+1
1
x
Nl1
l+1
(x xl )(x xl+1 )
,
2x2
(x xl1 )(x xl+1 )
,
Nl (x) =
x2
(x xl1 )(x xl )
Nl+1 (x) =
.
2x2
Nl1 (x) =
(3.72)
ME280A
54
Figure 3.6 illustrates the three interpolation functions in the representative sub-domain. It
can be readily seen from the definition of Nl1 , Nl and Nl+1 that l = ul , which implies
that the parameters l can be interpreted as the values of the dependent variable at x = xl ,
therefore
uh (x) =
l+1
X
Ni (x)ui .
(3.73)
i=l1
and (xN
AF
2
X
x
]
2
uh (x) = N0 (x)u0 +
x
, L]
2
Ni (x)ui ,
i=1
uh (x) =
N
X
by
(3.74)
Ni (x)ui + NN +1 (x)uL ,
i=N 1
N
X
l=1
l (x xl ) ,
(3.75)
2
d uh
l k 2 (xl ) f (xl ) = 0 .
dx
(3.76)
DR
2
+
.
dx2
x2
x2
x2
(3.77)
k
(ul1 2ul + ul+1 ) fl = 0 ,
x2
(3.78)
x
],
2
k
(u0 2u1 + u2 ) f1 = 0 ,
x2
and, in sub-domain (xN x
, L],
2
k
(uN 1 2uN + uL ) fN = 0 .
x2
ME280A
(3.79)
(3.80)
55
The traditional distinction between the finite difference and the finite element method is
summarized by noting that finite differences approximate differential operators by (algebraic)
difference operators which apply on admissible fields U, whereas finite elements use the exact
differential operators which apply only on subspaces of these admissible fields. The weightedresidual framework allows for a unified interpretation of both methods.
Remark:
AF
The choice of admissible fields Uh and Wh is legitimate, since the integral on the lefthand side of (3.70) is always well-defined.
It is instructive at this point to review a finite element solution of the same problem
(1.1), which can be deduced using a Bubnov-Galerkin formulation. To this end, assume that
DR
x
x<0
x
,
l1 (x) =
0
x0
x
1+
x<0
x
,
,
l (x) =
(3.81)
1 x
x0
x
0
x<0
l+1 (x) =
,
x
x0
x
see Figure 3.7. Note that here the coordinate system x is centered at point l, without any
loss of generality. Then, letting
uh =
l+1
X
ui i (x) ,
wh =
i=l1
l+1
X
wii (x)
(3.82)
i=l1
and, likewise,
u u
l1
l
duh
x
=
ul+1 ul
dx
x
w w
l1
l
dwh
x
=
wl+1 wl
dx
x
x<0
(3.83)
x0
x<0
x0
(3.84)
ME280A
56
1
l1
l+1
l+1
AF
two-cell domain
Neglecting any boundary conditions at xl1 and xl+1 , one may write the weak form as
Z x
dwh duh
k
+ wh f ) dx = 0 ,
(3.85)
(
dx
x dx
which, upon substituting (3.83) and (3.84) in (3.85), becomes
Z 0
(wl wl1 )k(ul ul1 ) n x
x o
wl f dx
+
wl1 + 1 +
x2
x
x
x
Z x
o
x
x
(wl+1 wl )k(ul+1 ul ) n
wl +
+ (1
wl+1 f dx = 0 . (3.86)
+
x2
x
x
0
DR
(3.88)
Subsequently, recalling that wl is arbitrary and integrating (3.87) leads to (3.78). This
means that, under the definition in (3.88), the finite element solution of (1.1) with piecewise
linear polynomial interpolations coincides with the finite difference solution that uses the
classical difference operator (1.2). The latter can be equivalently thought of as a weighted
residual method with piecewise quadratic approximations for the dependent variable u and
delta function approximations for the corresponding weighting functions. This observation
is consistent with the findings in Sections 1.2.2 and 1.2.3.
ME280A
57
Exercises
Exercises
Problem 1
Consider the boundary-value problem
3.7
d2 u
+ u + x = 0 in = (0, 1) ,
dx2
u = 1 on u = {0} ,
du
= 0 on q = {1} .
dx
AF
x 12
,
< x 1
x 12
.
< x 1
DR
(c) Starting again from the general quadratic form of uh in (), enforce all boundary conditions on uh and uniquely determine a one-parameter point-collocation approximation.
Problem 2
The stiffness matrix K = [KIJ ] emanating from a Bubnov-Galerkin approximation of the
boundary-value problem
u
u
k
+
k
= f in R2 ,
x1 x1
x2 x2
u = u
on u ,
u
k
= q on q
n
KIJ =
I,1 I,2
J,1
J,2
d ,
ME280A
58
N
X
.
I I (x1 , x2 ) + 0 (x1 , x2 ) ,
u(x1 , x2 ) = uh (x1 , x2 ) =
I=1
AF
Problem 3
Consider the weak form of the one-dimensional Laplace equation
Z
Z
wf d + w(0)
q = 0,
kw,x u,x d +
where = (0, 1) and k > 0 is a constant. Assume that the admissible fields U and W for
u and w, respectively, allow the first derivative of u and w to exhibit finite jumps at points
xi , i = 1, 2, . . . , n, and show that
n Z
X
i=0
xi+1
xi
n
X
i=1
From the above equation derive the strong form of the problem. What can you conclude
regarding smoothness of the exact solution across the xi s?
x1
x0
xi
xn
xn+1
u(1) = u
DR
Problem 4
Consider the boundary-value problem
2u
2u
+
x21
x22
u
u +
n
= 1 in = (1, 1) (1, 1) ,
= 0 on ,
ME280A
Exercises
59
(b) Start from the general two-dimensional polynomial field which is complete up to degree
6 and show that using only the aforementioned symmetries of the exact solution, the
polynomial approximation is reduced to
uh = 0 + 1 (x21 + x22 ) + 2 x21 x22 + 3 (x41 + x42 )
+ 4 (x41 x22 + x21 x42 ) + 5 (x61 + x62 ) ,
AF
(c) Find two non-trivial approximate solutions to the above problem by means of a oneparameter and a two-parameter interior collocation method using appropriate approximation functions from the family of functions obtained in part (b). Pick collocation
points judiciously for both approximations.
Problem 5
Consider the initial-value problem
du
+ u = t in = (0, 1) ,
dt
u(0) = 1 ,
(a) Place a restriction on uh by directly enforcing the initial condition, and, subsequently,
obtain an approximate solution to the problem using the point-collocation method.
Select the collocation points judiciously.
DR
(b) Place the same restriction on uh as in part (a), and obtain an approximate solution to
the problem using a Bubnov-Galerkin method.
Problem 6
Consider the non-linear second-order ordinary differential equation of the form
A[u] = f
where
A[u] = 2u
and
in = (0, 1) ,
du2
d2 u
+
dx2
dx
f = 4,
with boundary conditions u(0) = 1 and u(1) = 0. Find each of the approximate polynomial
solutions uh , as instructed in the problem statement, and compute the residual error norm
E defined as
E(uh ) = kA[uh ] f kL2 .
Compare the approximate solutions by means of E. Comment on the results of your analysis.
ME280A
60
Problem 7
Consider the partial differential equation
u
2u
= 0
2
x
t
subject to boundary conditions
()
()
u
(1, t) = 0 for t (0, T ) ,
x
()
()
AF
()
where (t) is a (yet unknown) function of time, and 0 , 1 and 2 are scalar parameters to
be determined.
(a) Obtain a reduced form of uh (x, t) by enforcing boundary conditions () and ().
(b) Determine an initial condition (0) for function (t) by forcing the reduced form of uh (x, t)
obtained in part (a) to satisfy equation () in the sense of the least-squares method.
(c) Arrive at a first-order ordinary differential equation for function (t) by applying to
differential equation () a Petrov-Galerkin method in the spatial domain. Use the approximation function uh (x, t) of part (a) and a weighting function wh (x, t) given by
DR
wh (x, t) = x .
Find a closed-form expression for (t) by solving the differential equation analytically
and using the initial condition obtained in part (b).
The solution procedure outlined above, where a partial differential equation is reduced into
an ordinary differential equation by an approximation of the form (), is referred to as the
Kantorovich method.
Problem 8
Consider the differential equation
2u
2u
+ 2 2 = 2
2
x1
x2
in the square domain = {(x1 , x2 ) | | x1 |< 1 , | x2 |< 1}, with homogeneous Dirichlet
boundary condition u = 0 everywhere on .
ME280A
61
(a) Reformulate the above boundary-value problem in terms of a new dependent variable v
defined as
1
1
v = u + x21 + x22 .
2
4
Verify that the resulting partial differential equation in v is homogeneous, while the
boundary condition is non-homogeneous and expressed as
v = v =
1
1 2
x1 + x22
2
4
on .
AF
where
1 2
x ,
2 2
and show that vh satisfies the homogeneous partial differential equation obtained in
part (a). Subsequently, determine the scalar parameter using a weighted-residual
method on by requiring that
Z
wu (vh v) d = 0 ,
= x21
3.8
DR
Sections 3.1-3.5
[1] B.A. Finlayson and L.E. Scriven. The method of weighted residuals a review.
Appl. Mech. Rev., 19:735748, 1966. [This is an excellent review of weighted residual
methods, including a discussion of their relation to variational methods].
Prentice-Hall, Englewood Cliffs, 1983. [This volume discusses the Galerkin method
in Chapter 1 and the other weighted residual methods in Chapter 4].
[3] O.D. Kellogg. Foundations of Potential Theory. Dover, New York, 1953. [Chapter IV of this book contains an excellent discussion of the divergence theorem for domains with boundaries that possess corners].
ME280A
62
Section 3.4
[1] P.P. Lynn and S.K. Arya. Use of the least-squares criterion in the finite element
formulation.
Int. J. Num. Meth. Engr., 6:7588, 1973. [This article uses the
AF
Section 3.6
[1] O.C. Zienkiewicz and K. Morgan. Finite Elements and Approximation. Wiley,
New York, 1983. [The relation between finite element and finite difference methods is
addressed in Section 3.10].
Comp. Phys.
Comm., 12:99-108, (1976). [This article presents a comparison between finite differ-
DR
ME280A