
Algorithms of approximation of geophysical data 221
of the first or the second derivatives of the desired function ϕ(x), i.e. ϕ
0
(x
1
) and
ϕ
0
(x
K
), or ϕ
00
(x
1
) and ϕ
00
(x
K
). For the calculation of the approximating function
ϕ(x), let require a proportionality of the difference (u
k
−ϕ(x
k
)) with a jump of the
third derivative in the points (k = 2, 3, . . . , K − 1) (Ahlberg et al., 1967):
g
k
(u
k
− ϕ(x
k
)) = α
k
, k = 1, 2, . . . , K, (8.18)
where
g
k
> 0, α
1
= f
000
1
(x
1
),
α
k
= f
000
k
(x
k
) − f
000
k−1
(x
k
), α
n
= f
000
1
(x
n
),
f
k
are the polynomials, given by the formula (8.4), g
k
are the coefficients of the
proportionality (must be positive). Using the conditions (8.18) and equations (8.8)
for the coefficients, we obtain the system of K equations with K−2 unknown ϕ
00
(x
2
)
(for k = 2, . . . , K − 1) and K unknown ϕ(x
k
) (k = 1, 2, . . . , K) in the form
1
∆x
1
(ϕ
00
(x
1
) − ϕ
00
(x
2
)) = g
1
(u
1
− ϕ(x
1
)),
1
∆x
k−1
(ϕ
00
(x
k−1
) − ϕ
00
(x
k
)) −
1
∆x
k
(ϕ
00
(x
k
) − ϕ
00
(x
k+1
)) = g
k
(u
k
− ϕ(x
k
)),
1
∆x
K−1
(ϕ
00
(x
K−1
) − ϕ
00
(x
K
)) = g
K
(u
K
− ϕ(x
K
)).
Moreover, we have K − 2 equations else relative to the same unknowns, which can
be obtained by substituting u
k
for ϕ(x
k
). In the case of the edge conditions for the
second derivative in the form of (8.11), we can write the mentioned systems in the
matrix form
−B
T
ϕ
00
+ Gϕ = Guu, A
1
ϕϕ
00
+ B
ϕ
ϕ = 0, (8.19)
where
G =
g
1
g
2
.
.
.
g
K
,
B =
−
1
∆x
1
1
∆x
1
+
1
∆x
2
. . . 0 0
0 −
1
∆x
1
. . . . . . 0
. . . . . . . . . . . . . . .
0 0 . . . −
1
∆x
2
−
1
∆x
K−1
,
ϕϕ
00
= [ϕ
00
(x
2
), . . . , ϕ
00
(x
2
)], ϕϕ = [ϕ(x
1
), . . . , ϕ(x
k
)], uu = [u − 1, . . . , u
k
].
The matrix A
1
can be obtained from the matrix A of the system (8.12) by multi-
plying all its elements by 1/6. Because the matrix A is positive defined, and for
the positive values of g
k
the diagonal matrix G is positive defined, then the system
(8.12) has the solution for all g
k
, which satisfies the inequality 0 < g
k
< ∞.