Beruflich Dokumente
Kultur Dokumente
R1
0
vw = 0,
Answer 1. Lets partition [0, 1] in such a way that v 0 will be continuous on each of them.
[0, 1] = [0, x1 ] [x1 , x2 ] ... [xi , xi+1 ] ... [xk , 1]
We will prove this by Proof by Contradiction method. Assume that w 6= 0.
Lets assume that {i1 = i, i2 , ..., ik } is the set of the indices of x, for which the
following condition holds. If the infimum of w
k
vwdx L([xi , xi+1 ]) = ik=i
(([xi , xi+1 ]))Inf ((wv)(x)|[xi ,xi +1] )dx > 0
1
w is given as a continuous function, we definitely know that the infimum of w, exists on a compact domain.
(1)
Therefore, A is positive definite.
Question 3. Let the nodes be equally spaced with spacing h, what is A? DOos it remind
you of anything that we talked previously in class?
Answer 3. Steps size:=u, and since we have equally spaced nodes, {0 = x0 , x1 , x2 , ..., xm =
1}, it will become u =
1
.
m+1
i (xj ) =
1,
if i 6= j
0,
if i = j
0j (x) = lim
(2)
j
1
j (xj ) = 1
xj1xjxj+1
x
1
j (x) =
(xxj1 )
,
u
if x [xj1 , xj )
1 xxj ,
if x [xj , xj+1 )
therefore,
0j (x) =
u1 ,
if x [xj1 , xj )
1 ,
if x [xj , xj+1 )
Now, we only need to calculate the inner products of {0j }0 s. Note that outside of the support of these basis functions, clearly we have 0, for the derivatives for all j = 1, 2, ..., M.
(0j , 0j ) =
R xj+1 1 2
R
( ) dx + xj+1 ( 1 )2 dx
xj1
(0j1 , 0j ) =
xj
R xj+1
xj2
= u2 .
R xj
xj1
R xj
1
xj1 u
u1 dx =
1
.
u
Lets assume that |i j| > 1, meaning that the best case that could happen would be
|i j| = 2, then we have the following figure:
1
j1 j+1
xj1x xj+1
xj2
xj+2
j
As we see on the above figure, suppi suppj = . This means that there is no interval
on which they are non zero thus, (0i , 0j ) = 0, when |i j| > 1.
1
.
M +1
1,
if i 6= j
0,
if i = j
Pi (xj ) =
2 Note
(xxj1 )(xxj+1 )
,
(xj xj1 )(xj xj+1 )
Pj (x) =
for j {1, 2, ..., M }. If we take each Pj supported in [xj1 , xj+1 ] as the basis element of
Vh , we will have the following, for the derivative of these basis functions:
limh0
,
(u)2 h
Pj (x + h) Pj (x)
=
h0
h
0,
Pj0 (x) =
if x (xj1 , xj+1 )
if x [xj1 , xj+1 ]c
(2x+xj+1 +xj1 )
,
(u)2
if x (xj1 , xj+1 )
0,
if x [xj1 , xj+1 ]c
In order to get the entries of the corresponding stiffness matrix A = (aij ) for considered
quadratic polynomial basis {Pj }M
j=1 , that we have the figure below, associated to the (Vh )
problem, we need to calculate the following inner products:
ajj = (Pj0 , Pj0 ) =
(u)4
dx =
R a+2u (2x+a+2u+a)2
a
(u)4
8
dx = 3 3u
,
0
0
; then
, Pj0 ) = aj1j
) = 4 (Pj1
ajj1
= (Pj0 , Pj1
0
(Pj1
, Pj0 ) =
0
(Pj1
, Pj0 ) = 6
xj2
(u)4
dx = 5
R b+2u (2x+b+2u+b)(2x+b+2u+u+b+u)
b+u
(u)4
R xj
dx =
xj1
2
3u
Now, we would like to find the inner product when we have |i j| > 1
aij = (Pi0 , Pj0 ) =
(u)4
3 Thanks
to Mathematica
of the symetry property of the inner product
5 Due to the supports of these basis functions
6 Take x
j2 = b
7 Due to the supports of these basis functions
4 Because
dx = 7 0.
Pj1 Pj
xj2x
j1
Pj1Pj+1
xj x
x
j+1
xj2x
j1
xj x xj+2
j+1
|(j) (j 1)| = 1,
|(j 1) (j + 1)| = 1,
suppPj1 suppPj 6=
suppPj1 suppPj+1 =
3
3
2
2 8
3 3 3
2 8
3 3
1 .
..
A = u ..
.
..
.
..
2
0
3
..
..
..
.
..
.
..
..
.
.
2 8
2
0
3 3
3
2 8
0
3 3