Figure 1: The Lagrange basis functions. On the left, for the boundary x = 0,
on the right, for the middle point x = −0.5. The nodes are chosen to be
x
j−1
= −1, x
j−1/2
= −0.5, x
j
= 0, x
j+1
= 1.
We can also see that the constructed basis satisfies the Lagrange property:
φ
j
(x
k
) =
1, for j = k
0, for j 6= k
, j, k = 0, 1/2, 1, . . . N.
The elemental functions
The elemental functions are the projection of the basis functions φ
j
onto each
element K
j
. For the quadratic basis, there are three elemental functions:
N
j−1,j
(x) = 1 − 3
x − x
j−1
h
j
+ 2
x − x
j−1
h
j
2
,
N
j−1/2,j
(x) = 1 − 4
x − x
j−1/2
h
j
2
,
N
j,j
(x) = 1 + 3
x − x
j
h
j
+ 2
x − x
j
h
j
2
.
In the general case, the elemental functions N
k,j
are non-zero only on their
own interval, or, in other words, only if the node k belongs to the element
K
j
. This ensures the small overlap betwee n different elemental functions.
In order to define the elemental functions of the order p, let us introduce
the canonical element −1 ≤ ξ ≤ 1 which is connected to each physical element
29