Ten artykuł należy dopracować:
Dana jest funkcja
y
=
f
(
x
)
.
{\displaystyle y=f(x).}
Jej pierwsza różnica skończona wyraża się wzorem
Δ
y
=
Δ
f
(
x
)
=
f
(
x
+
Δ
x
)
−
f
(
x
)
,
{\displaystyle \Delta y=\Delta f(x)=f(x+\Delta x)-f(x),}
(1)
gdzie:
Δ
x
=
h
{\displaystyle \Delta x=h}
jest ustalonym krokiem różnicowym.
Różnice skończone wyższych rzędów otrzymuje się według reguły
Δ
n
y
=
Δ
n
−
1
(
Δ
y
)
.
{\displaystyle \Delta ^{n}y=\Delta ^{n-1}(\Delta y).}
Tak na przykład
Δ
2
y
=
Δ
(
Δ
y
)
=
Δ
[
f
(
x
+
Δ
x
)
−
f
(
x
)
]
=
[
f
(
x
+
2
Δ
x
)
−
f
(
x
+
Δ
x
)
]
−
[
f
(
x
+
Δ
x
)
−
f
(
x
)
]
=
f
(
x
+
2
Δ
x
)
−
2
f
(
x
+
Δ
x
)
+
f
(
x
)
.
{\displaystyle {\begin{aligned}\Delta ^{2}y&=\Delta (\Delta y)\\[1ex]&=\Delta {\big [}f(x+\Delta x)-f(x){\big ]}\\[1ex]&={\big [}f(x+2\Delta x)-f(x+\Delta x){\big ]}-{\big [}f(x+\Delta x)-f(x){\big ]}\\[1ex]&=f(x+2\Delta x)-2f(x+\Delta x)+f(x).\end{aligned}}}
Niech będzie
P
(
x
)
=
x
3
.
{\displaystyle P(x)=x^{3}.}
Dla
h
=
1
{\displaystyle h=1}
otrzymuje się
Δ
P
(
x
)
=
(
x
+
1
)
3
−
x
3
=
3
x
2
+
3
x
+
1
,
Δ
2
P
(
x
)
=
[
3
(
x
+
1
)
2
+
3
(
x
+
1
)
+
1
]
−
(
3
x
2
+
3
x
+
1
)
=
6
x
+
6
,
Δ
3
P
(
x
)
=
[
6
(
x
+
1
)
+
6
]
−
(
6
x
+
6
)
=
6
,
Δ
n
P
(
x
)
=
0
d
l
a
n
>
3.
{\displaystyle {\begin{aligned}\Delta P(x)&=(x+1)^{3}-x^{3}=3x^{2}+3x+1,\\[1ex]\Delta ^{2}P(x)&={\big [}3(x+1)^{2}+3(x+1)+1{\big ]}-(3x^{2}+3x+1)=6x+6,\\[1ex]\Delta ^{3}P(x)&={\big [}6(x+1)+6{\big ]}-(6x+6)=6,\\[1ex]\Delta ^{n}P(x)&=0\quad \mathrm {dla} \;n>3.\end{aligned}}}
Jak widać różnica skończona trzeciego rzędu, wielomianu trzeciego stopnia ma wartość stałą. Można wykazać, że jeżeli
P
n
(
x
)
=
a
0
x
n
+
a
1
x
n
−
1
+
…
a
n
,
{\displaystyle P_{n}(x)=a_{0}x^{n}+a_{1}x^{n-1}+\ldots a_{n},\quad {}}
to
Δ
n
P
n
(
x
)
=
n
!
a
0
h
n
=
c
o
n
s
t
→
Δ
s
P
n
(
x
)
=
0
,
{\displaystyle \Delta ^{n}P_{n}(x)=n!a_{0}h^{n}=\mathrm {const} \quad \to \quad \Delta ^{s}P_{n}(x)=0,\quad {}}
gdy
s
>
n
.
{\displaystyle {}\;s>n.}
Symbol
Δ
{\displaystyle \Delta }
można traktować jako pewien operator odwzorowujący funkcję
y
=
f
(
x
)
{\displaystyle y=f(x)}
w funkcję
Δ
y
=
f
(
x
+
Δ
x
)
−
f
(
x
)
.
{\displaystyle \Delta y=f(x+\Delta x)-f(x).}
Operator ten ma trzy własności
Δ
(
u
+
v
)
=
Δ
u
+
Δ
v
,
{\displaystyle \Delta (u+v)=\Delta u+\Delta v,}
Δ
(
C
u
)
=
C
Δ
u
,
{\displaystyle \Delta (Cu)=C\Delta u,}
Δ
m
(
Δ
n
y
)
=
Δ
m
+
n
y
.
{\displaystyle \Delta ^{m}(\Delta ^{n}y)=\Delta ^{m+n}y.}
Ze wzoru (1) wynika, że
f
(
x
+
Δ
x
)
=
f
(
x
)
+
Δ
f
(
x
)
.
{\displaystyle f(x+\Delta x)=f(x)+\Delta f(x).}
Traktując operator
Δ
{\displaystyle \Delta }
jako symboliczny mnożnik, możemy napisać
f
(
x
+
Δ
x
)
=
(
1
+
Δ
)
f
(
x
)
,
{\displaystyle f(x+\Delta x)=(1+\Delta )f(x),}
(2)
f
(
x
+
n
Δ
x
)
=
(
1
+
Δ
)
n
f
(
x
)
.
{\displaystyle f(x+n\Delta x)=(1+\Delta )^{n}f(x).}
(3)
Wykorzystując wzór dwumienny Newtona , otrzymujemy
f
(
x
+
n
Δ
x
)
=
∑
m
=
0
n
C
n
m
Δ
m
f
(
x
)
,
C
n
m
=
n
!
m
!
(
n
−
m
)
!
{\displaystyle f(x+n\Delta x)=\sum _{m=0}^{n}C\;\!_{n}^{m}\Delta ^{m}f(x),\quad C\;\!_{n}^{m}={\frac {n!}{m!(n-m)!}}}
(4)
oraz dzięki temu, że
Δ
=
(
1
+
Δ
)
−
1
{\displaystyle \Delta =(1+\Delta )-1}
(5)
możemy napisać
Δ
n
f
(
x
)
=
[
(
1
+
Δ
)
−
1
]
n
f
(
x
)
=
(
1
+
Δ
)
n
f
(
x
)
−
C
n
1
(
1
+
Δ
)
n
−
1
f
(
x
)
+
C
n
2
(
1
+
Δ
)
n
−
2
f
(
x
)
−
…
+
(
−
1
)
n
−
1
C
n
n
−
1
(
1
+
Δ
)
f
(
x
)
+
(
−
1
)
n
f
(
x
)
,
{\displaystyle {\begin{aligned}\Delta ^{n}f(x)&={\big [}(1+\Delta )-1{\big ]}^{n}f(x)\\[1ex]&=(1+\Delta )^{n}f(x)\\[1ex]&\quad -C_{n}^{1}(1+\Delta )^{n-1}f(x)\\[1ex]&\quad +C_{n}^{2}(1+\Delta )^{n-2}f(x)\\[1ex]&\quad -\ldots \\[1ex]&\quad +(-1)^{n-1}C\;\!_{n}^{n-1}(1+\Delta )f(x)\\[1ex]&\quad +(-1)^{n}f(x),\end{aligned}}}
a wykorzystując (3)
Δ
n
f
(
x
)
=
f
(
x
+
n
Δ
x
)
−
C
n
1
f
[
x
+
(
n
−
1
)
Δ
x
]
+
C
n
2
f
[
x
+
(
n
−
2
)
Δ
x
]
−
…
+
(
−
1
)
n
−
1
C
n
n
−
1
f
(
x
+
Δ
x
)
+
(
−
1
)
n
f
(
x
)
.
{\displaystyle {\begin{aligned}\Delta ^{n}f(x)&=f(x+n\Delta x)\\[1ex]&\quad -C_{n}^{1}f{\big [}x+(n-1)\Delta x{\big ]}\\[1ex]&\quad +C_{n}^{2}f{\big [}x+(n-2)\Delta x{\big ]}\\[1ex]&\quad -\ldots \\[1ex]&\quad +(-1)^{n-1}C\;\!_{n}^{n-1}f(x+\Delta x)\\[1ex]&\quad +(-1)^{n}f(x).\end{aligned}}}
(6)
W przypadku gdy funkcja
f
(
x
)
{\displaystyle f(x)}
ma ciągłą pochodną
f
(
n
)
(
x
)
{\displaystyle f^{(n)}(x)}
na odcinku
(
x
+
n
Δ
x
)
,
{\displaystyle (x+n\Delta x),}
można wykazać[1] , że
Δ
n
f
(
x
)
=
(
Δ
x
)
n
f
(
n
)
(
x
+
θ
n
Δ
x
)
,
0
<
θ
<
1.
{\displaystyle \Delta ^{n}f(x)=(\Delta x)^{n}f^{(n)}(x+\theta n\Delta x),\quad 0<\theta <1.}
(7)
Wynika stąd, że
f
(
n
)
(
x
+
θ
n
Δ
x
)
=
Δ
n
f
(
x
)
(
Δ
x
)
n
→
f
(
n
)
(
x
)
=
lim
Δ
x
→
0
Δ
n
f
(
x
)
(
Δ
x
)
n
.
{\displaystyle f^{(n)}(x+\theta n\Delta x)={\frac {\Delta ^{n}f(x)}{(\Delta x)^{n}}}\quad \to \quad f^{(n)}(x)=\lim _{\Delta x\to 0}{\frac {\Delta ^{n}f(x)}{(\Delta x)^{n}}}.}
W zagadnieniach interpolacji funkcji
y
=
f
(
x
)
,
{\displaystyle y=f(x),}
której rzędne
y
i
=
f
(
x
i
)
{\displaystyle y_{i}=f(x_{i})}
są dane dla równoodległych punktów
x
i
,
i
=
0
,
1
,
2
,
…
,
n
,
{\displaystyle x_{i},\;i=0,1,2,\dots ,n,}
wykorzystuje się różnice skończone
Z drugiej równości otrzymujemy
y
i
+
1
=
y
i
+
Δ
y
i
=
(
1
+
Δ
)
y
i
,
{\displaystyle y_{i+1}=y_{i}+\Delta y_{i}=(1+\Delta )y_{i},}
y
i
+
2
=
(
1
+
Δ
)
y
i
+
1
=
(
1
+
Δ
)
2
y
i
,
{\displaystyle y_{i+2}=(1+\Delta )y_{i+1}=(1+\Delta )^{2}y_{i},}
y
i
+
3
=
(
1
+
Δ
)
y
i
+
2
=
(
1
+
Δ
)
3
y
i
,
{\displaystyle y_{i+3}=(1+\Delta )y_{i+2}=(1+\Delta )^{3}y_{i},}
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
{\displaystyle ............................}
y
i
+
n
=
(
1
+
Δ
)
n
y
i
.
{\displaystyle y_{i+n}=(1+\Delta )^{n}y_{i}.}
Dzięki wzorowi dwumiennemu Newtona otrzymujemy
y
i
+
n
=
y
i
+
C
n
1
Δ
y
i
+
C
n
2
Δ
2
y
i
…
+
Δ
n
y
i
,
{\displaystyle {\begin{aligned}y_{i+n}&=y_{i}\\[1ex]&\quad +C_{n}^{1}\Delta y_{i}\\[1ex]&\quad +C_{n}^{2}\Delta ^{2}y_{i}\\[1ex]&\quad \ldots \\[1ex]&\quad +\Delta ^{n}y_{i},\end{aligned}}}
Δ
n
y
i
=
[
(
1
+
Δ
)
−
1
]
n
=
(
1
+
Δ
)
n
y
i
−
C
n
1
(
1
+
Δ
)
n
−
1
y
i
+
…
+
C
n
n
−
1
(
1
+
Δ
)
y
i
,
{\displaystyle {\begin{aligned}\Delta ^{n}y_{i}&={\big [}(1+\Delta )-1{\big ]}^{n}\\[1ex]&=(1+\Delta )^{n}y_{i}\\[1ex]&\quad -C_{n}^{1}(1+\Delta )^{n-1}y_{i}\\[1ex]&\quad +\ldots \\[1ex]&\quad +C\;\!_{n}^{n-1}(1+\Delta )y_{i},\end{aligned}}}
Δ
n
y
i
=
y
n
+
i
−
C
n
1
y
n
+
i
−
1
+
C
n
2
y
n
+
i
−
2
+
…
+
(
−
1
)
n
−
1
C
n
n
−
1
y
i
+
1
+
(
−
1
)
n
y
i
.
{\displaystyle {\begin{aligned}\Delta ^{n}y_{i}&=y_{n+i}\\[1ex]&\quad -C_{n}^{1}y_{n+i-1}\\[1ex]&\quad +C_{n}^{2}y_{n+i-2}\\[1ex]&\quad +\ldots \\[1ex]&\quad +(-1)^{n-1}C\;\!_{n}^{n-1}y_{i+1}\\[1ex]&\quad +(-1)^{n}y_{i}.\end{aligned}}}
Na przykład
Δ
2
y
i
=
y
i
+
2
−
2
y
i
+
1
+
y
i
,
{\displaystyle \Delta ^{2}y_{i}=y_{i+2}-2y_{i+1}+y_{i},}
Δ
3
y
i
=
y
i
+
3
−
3
y
i
+
2
+
3
y
i
+
1
−
y
i
,
{\displaystyle \Delta ^{3}y_{i}=y_{i+3}-3y_{i+2}+3y_{i+1}-y_{i},}
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
{\displaystyle ............................}
Wzory (8) pozwalają tworzyć tablice różnic skończonych o postaci
x
{\displaystyle {}\;x\;{}}
y
{\displaystyle {}\;y\;{}}
Δ
y
{\displaystyle \Delta y}
Δ
2
y
{\displaystyle \Delta ^{2}y}
Δ
3
y
{\displaystyle \Delta ^{3}y}
x
0
{\displaystyle x_{0}}
y
0
{\displaystyle y_{0}}
Δ
y
0
{\displaystyle \Delta y_{0}}
Δ
2
y
0
{\displaystyle \Delta ^{2}y_{0}}
Δ
3
y
0
{\displaystyle \Delta ^{3}y_{0}}
x
1
{\displaystyle x_{1}}
y
1
{\displaystyle y_{1}}
Δ
y
1
{\displaystyle \Delta y_{1}}
Δ
2
y
1
{\displaystyle \Delta ^{2}y_{1}}
Δ
3
y
1
{\displaystyle \Delta ^{3}y_{1}}
x
2
{\displaystyle x_{2}}
y
2
{\displaystyle y_{2}}
Δ
y
2
{\displaystyle \Delta y_{2}}
Δ
2
y
2
{\displaystyle \Delta ^{2}y_{2}}
Δ
3
y
2
{\displaystyle \Delta ^{3}y_{2}}
…
{\displaystyle \ldots }
…
{\displaystyle \ldots }
…
{\displaystyle \ldots }
…
{\displaystyle \ldots }
…
{\displaystyle \ldots }
Przykładowo dla wielomianu
y
=
2
x
3
−
2
x
2
+
3
x
−
1
{\displaystyle y=2x^{3}-2x^{2}+3x-1}
otrzymuje się dla kroku
h
=
1
{\displaystyle h=1}
i wartości początkowej
x
0
=
0
{\displaystyle x_{0}=0}
x
{\displaystyle {}\;x\;{}}
y
{\displaystyle {}\;y\;{}}
Δ
y
{\displaystyle \Delta y}
Δ
2
y
{\displaystyle \Delta ^{2}y}
Δ
3
y
{\displaystyle \Delta ^{3}y}
0
–1
3
8
12
1
2
11
20
12
2
13
31
32
12
3
44
63
44
12
4
107
107
56
12
5
214
163
68
12
…
{\displaystyle \ldots }
…
{\displaystyle \ldots }
…
{\displaystyle \ldots }
…
{\displaystyle \ldots }
…
{\displaystyle \ldots }
W zagadnieniach interpolacji wygodnie jest wprowadzić pojęcie uogólnionej potęgi
x
[
n
]
=
x
(
x
−
h
)
(
x
−
2
h
)
…
[
x
−
(
n
−
1
)
h
]
,
x
[
0
]
=
1
,
0
[
0
]
=
1
,
{\displaystyle x^{[n]}=x(x-h)(x-2h)\ldots \,{\big [}x-(n-1)h{\big ]},\quad x^{[0]}=1,\quad 0^{[0]}=1,}
(9)
gdzie:
h
{\displaystyle h}
jest ustalonym krokiem.
Ze wzoru (1) wynika, że
x
[
n
]
=
x
n
,
g
d
y
h
=
0.
{\displaystyle x^{[n]}=x^{n},\;\;\mathrm {gdy} \;h=0.}
Pierwsza różnica skończona uogólnionej potęgi, po uwzględnieniu (9), wyraża się wzorem
Δ
x
[
n
]
=
(
x
+
h
)
[
n
]
−
x
[
n
]
=
n
h
x
[
n
−
1
]
.
{\displaystyle \Delta x^{[n]}=(x+h)^{[n]}-x^{[n]}=nhx^{[n-1]}.}
(10)
Na zasadzie indukcji można dowieść, że
Δ
k
x
[
n
]
=
n
(
n
−
1
)
…
[
n
−
(
k
−
1
)
]
h
k
x
[
n
−
k
]
=
n
!
(
n
−
k
)
!
h
k
x
[
n
−
k
]
,
k
=
1
,
2
,
…
,
n
.
{\displaystyle {\begin{aligned}\Delta ^{k}x^{[n]}&=n(n-1)\ldots {\big [}n-(k-1){\big ]}\ h^{k}x^{[n-k]}\\[1ex]&={\frac {n!}{(n-k)!}}\ h^{k}x^{[n-k]},\qquad k=1,2,\dots ,n.\end{aligned}}}
Ponieważ
x
[
n
]
{\displaystyle x^{[n]}}
jest wielomianem n-tego stopnia więc oczywiście
Δ
k
x
[
n
]
=
0
,
g
d
y
k
>
n
.
{\displaystyle \Delta ^{k}x^{[n]}=0,\;\;\mathrm {gdy} \;k>n.}
Dane są wartości
y
i
=
f
(
x
i
)
{\displaystyle y_{i}=f(x_{i})}
funkcji
y
=
f
(
x
)
{\displaystyle y=f(x)}
na zbiorze równoodległych punktów
x
i
=
x
0
+
i
h
,
i
=
0
,
1
,
2
,
…
,
n
.
{\displaystyle x_{i}=x_{0}+ih,\;i=0,1,2,\dots ,n.}
Należy zbudować wielomian interpolacyjny
P
(
x
)
{\displaystyle P(x)}
taki, który spełnia warunki
P
n
(
x
i
)
=
f
(
x
i
)
,
i
=
0
,
1
,
…
,
n
.
{\displaystyle P_{n}(x_{i})=f(x_{i}),\quad i=0,1,\dots ,n.}
(11)
Warunki te są równoważne warunkom
Δ
m
P
n
(
x
0
)
=
Δ
m
y
0
,
m
=
0
,
1
,
…
,
n
.
{\displaystyle \Delta ^{m}P_{n}(x_{0})=\Delta ^{m}y_{0},\quad m=0,1,\dots ,n.}
Zgodnie z koncepcją Newtona wielomianu
P
n
(
x
)
{\displaystyle P_{n}(x)}
będziemy poszukiwać w postaci
P
n
(
x
)
=
a
0
+
a
1
(
x
−
x
0
)
+
a
2
(
x
−
x
0
)
(
x
−
x
1
)
…
+
a
n
(
x
−
x
0
)
(
x
−
x
1
)
…
(
x
−
x
n
−
1
)
{\displaystyle {\begin{aligned}P_{n}(x)=a_{0}&+a_{1}(x-x_{0})\\[1ex]&+a_{2}(x-x_{0})(x-x_{1})\\[1ex]&\ldots \\[1ex]&+a_{n}(x-x_{0})(x-x_{1})\ldots (x-x_{n-1})\end{aligned}}}
lub
P
n
(
x
)
=
a
0
+
a
1
(
x
−
x
0
)
[
1
]
+
a
2
(
x
−
x
0
)
[
2
]
…
+
a
n
(
x
−
x
0
)
[
n
]
.
{\displaystyle {\begin{aligned}P_{n}(x)=a_{0}&+a_{1}(x-x_{0})^{[1]}\\[1ex]&+a_{2}(x-x_{0})^{[2]}\\[1ex]&\ldots \\[1ex]&+a_{n}(x-x_{0})^{[n]}.\end{aligned}}}
(12)
Korzystając ze wzoru (10), możemy napisać
P
n
(
x
)
=
a
0
+
a
1
(
x
−
x
0
)
[
1
]
+
a
2
(
x
−
x
0
)
[
2
]
…
+
a
n
(
x
−
x
0
)
[
n
]
,
Δ
P
n
(
x
)
=
0
+
a
1
Δ
(
x
−
x
0
)
[
1
]
+
a
2
Δ
(
x
−
x
0
)
[
2
]
…
+
a
n
Δ
(
x
−
x
0
)
[
n
]
=
a
1
h
+
2
a
2
(
x
−
x
0
)
[
1
]
h
+
3
a
3
(
x
−
x
0
)
[
2
]
h
…
+
n
a
n
(
x
−
x
0
)
[
n
−
1
]
h
,
Δ
2
P
n
(
x
)
=
0
+
1
⋅
2
h
2
a
2
+
2
⋅
3
h
2
a
3
(
x
−
x
0
)
[
1
]
…
+
(
n
−
1
)
n
h
2
(
x
−
x
0
)
[
n
−
1
]
=
1
⋅
2
a
2
h
2
+
2
⋅
3
a
3
(
x
−
x
0
)
h
2
…
+
(
n
−
1
)
n
(
x
−
x
0
)
[
n
−
2
]
h
2
,
{\displaystyle {\begin{aligned}P_{n}(x)=a_{0}&+a_{1}(x-x_{0})^{[1]}\\&+a_{2}(x-x_{0})^{[2]}\\&\ldots \\&+a_{n}(x-x_{0})^{[n]},\\\\\Delta P_{n}(x)=0&+a_{1}\Delta (x-x_{0})^{[1]}\\&+a_{2}\Delta (x-x_{0})^{[2]}\\&\ldots \\&+a_{n}\Delta (x-x_{0})^{[n]}\\[4px]=a_{1}h&+2a_{2}(x-x_{0})^{[1]}h\\&+3a_{3}(x-x_{0})^{[2]}h\\&\ldots \\&+na_{n}(x-x_{0})^{[n-1]}h,\\\\\Delta ^{2}P_{n}(x)=0&+1\cdot 2h^{2}a_{2}\\&+2\cdot 3h^{2}a_{3}(x-x_{0})^{[1]}\\&\ldots \\&+(n-1)nh^{2}(x-x_{0})^{[n-1]}\\[4px]=1\cdot 2a_{2}h^{2}&+2\cdot 3a_{3}(x-x_{0})h^{2}\\&\ldots \\&+(n-1)n(x-x_{0})^{[n-2]}h^{2},\end{aligned}}}
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
{\displaystyle ............................................}
Δ
m
P
n
(
x
)
=
∑
i
=
m
n
i
!
(
i
−
m
)
!
a
i
(
x
−
x
0
)
[
i
−
m
]
h
m
.
{\displaystyle \Delta ^{m}P_{n}(x)=\sum _{i=m}^{n}{\frac {i!}{(i-m)!}}a_{i}(x-x_{0})^{[i-m]}h^{m}.}
(13)
Ze wzoru (13) wynika, że dla
m
=
0
,
1
,
2
,
…
,
n
i
0
[
0
]
=
1
{\displaystyle m=0,1,2,\dots ,n\;\;\mathrm {i} \;\;0^{[0]}=1}
Δ
m
P
n
(
x
0
)
=
∑
i
=
m
n
i
!
(
i
−
m
)
!
a
i
(
x
0
−
x
0
)
[
i
−
m
]
h
m
=
m
!
h
m
a
m
→
a
m
=
Δ
m
P
n
(
x
0
)
m
!
h
m
.
{\displaystyle \Delta ^{m}P_{n}(x_{0})=\sum _{i=m}^{n}{\frac {i!}{(i-m)!}}a_{i}(x_{0}-x_{0})^{[i-m]}h^{m}=m!h^{m}a_{m}\quad \to \quad a_{m}={\frac {\Delta ^{m}P_{n}(x_{0})}{m!h^{m}}}.}
(14)
Na podstawie (12) i (14) otrzymujemy interpolacyjny wielomian Newtona w postaci
P
n
(
x
)
=
y
0
+
Δ
y
0
1
!
h
(
x
−
x
0
)
[
1
]
+
Δ
2
y
0
2
!
h
2
(
x
−
x
0
)
[
2
]
…
+
Δ
n
y
0
n
!
h
n
(
x
−
x
0
)
[
n
]
=
∑
i
=
0
n
Δ
i
y
0
i
!
h
i
(
x
−
x
0
)
[
i
]
,
Δ
0
=
1
,
{\displaystyle {\begin{aligned}P_{n}(x)=y_{0}+{}&{\frac {\Delta y_{0}}{1!h}}(x-x_{0})^{[1]}\\[1ex]+\ &{\frac {\Delta ^{2}y_{0}}{2!h^{2}}}(x-x_{0})^{[2]}\\[1ex]\ldots &\\[1ex]+\ &{\frac {\Delta ^{n}y_{0}}{n!h^{n}}}(x-x_{0})^{[n]}\\[1ex]=\sum _{i=0}^{n}&{\frac {\Delta ^{i}y_{0}}{i!h^{i}}}(x-x_{0})^{[i]},\quad \Delta ^{0}=1,\end{aligned}}}
(15)
gdzie:
y
0
=
P
n
(
x
0
)
=
a
0
.
{\displaystyle y_{0}=P_{n}(x_{0})=a_{0}.}
Na podstawie wzoru (15) można obliczyć wartości
P
n
(
x
k
)
,
k
=
1
,
2
,
…
,
n
,
{\displaystyle P_{n}(x_{k}),\;k=1,2,\dots ,n,}
uwzględniając, że
(
x
k
−
x
0
)
[
i
]
=
(
x
k
−
x
0
)
(
x
k
−
x
1
)
…
(
x
k
−
x
i
−
1
)
=
k
(
k
−
1
)
(
k
−
2
)
…
[
k
−
(
i
−
1
)
]
h
i
=
k
!
(
k
−
i
)
!
h
i
,
{\displaystyle {\begin{aligned}(x_{k}-x_{0})^{[i]}&=(x_{k}-x_{0})(x_{k}-x_{1})\ldots \,(x_{k}-x_{i-1})\\[1ex]&=k(k-1)(k-2)\ldots \,{\big [}k-(i-1){\big ]}h^{i}={\frac {k!}{(k-i)!}}h^{i},\end{aligned}}}
(
1
+
Δ
)
k
=
∑
i
=
0
n
C
k
i
Δ
i
,
C
k
i
=
k
!
i
!
(
k
−
i
)
!
.
{\displaystyle (1+\Delta )^{k}=\sum _{i=0}^{n}C\;\!_{k}^{i}\Delta ^{i},\quad C\;\!_{k}^{i}={\frac {k!}{i!(k-i)!}}.}
Ostatecznie otrzymujemy
P
n
(
x
k
)
=
∑
i
=
0
n
Δ
i
y
0
i
!
h
i
k
!
(
k
−
i
)
!
h
i
=
∑
i
=
0
n
C
k
i
Δ
i
y
0
=
(
1
+
Δ
)
k
y
0
.
{\displaystyle P_{n}(x_{k})=\sum _{i=0}^{n}{\frac {\Delta ^{i}y_{0}}{i!h^{i}}}{\frac {k!}{(k-i)!}}h^{i}=\sum _{i=0}^{n}C\;\!_{k}^{i}\Delta ^{i}y_{0}=(1+\Delta )^{k}y_{0}.}
Po wprowadzeniu nowej zmiennej
q
=
x
−
x
0
h
→
q
[
i
]
=
(
x
−
x
0
)
[
i
]
h
i
{\displaystyle q={\frac {x-x_{0}}{h}}\quad \to \quad q^{[i]}={\frac {(x-x_{0})^{[i]}}{h^{i}}}}
wzór (15) przyjmuje postać pierwszej formuły Newtona
P
n
(
x
)
=
∑
i
=
0
n
Δ
i
y
0
i
!
q
[
i
]
,
q
[
i
]
=
q
(
q
−
1
)
(
q
−
2
)
…
[
q
−
(
i
−
1
)
]
,
{\displaystyle P_{n}(x)=\sum _{i=0}^{n}{\frac {\Delta ^{i}y_{0}}{i!}}q^{[i]},\quad q^{[i]}=q(q-1)(q-2)\ldots \,{\big [}q-(i-1){\big ]},}
(16)
przy czym
q
[
i
]
i
!
=
∑
m
=
1
i
c
m
i
λ
m
.
{\displaystyle {\frac {q^{[i]}}{i!}}=\sum _{m=1}^{i}c_{mi}\lambda ^{m}.}
Współczynniki
c
m
i
,
i
=
1
,
2
,
…
,
n
{\displaystyle c_{mi},\;i=1,2,\dots ,n}
zostały stablicowane[2] .
Dla
n
=
1
,
2
,
3
{\displaystyle n=1,2,3}
otrzymujemy
P
1
(
x
)
=
y
0
+
q
Δ
y
0
{\displaystyle P_{1}(x)=y_{0}+q\Delta y_{0}\quad {}}
– dla interpolacji liniowej,
P
2
(
x
)
=
y
0
+
q
Δ
y
0
+
q
(
q
−
1
)
2
Δ
2
y
0
{\displaystyle P_{2}(x)=y_{0}+q\Delta y_{0}+{\frac {q(q-1)}{2}}\Delta ^{2}y_{0}\quad {}}
– dla interpolacji kwadratowej,
P
3
(
x
)
=
y
0
+
q
Δ
y
0
+
q
(
q
−
1
)
2
!
Δ
2
y
0
+
q
(
q
−
1
)
(
q
−
2
)
3
!
Δ
3
y
0
{\displaystyle P_{3}(x)=y_{0}+q\Delta y_{0}+{\frac {q(q-1)}{2!}}\Delta ^{2}y_{0}+{\frac {q(q-1)(q-2)}{3!}}\Delta ^{3}y_{0}\quad {}}
– dla interpolacji sześciennej.
Tym razem poszukuje się wielomianu o postaci
P
n
(
x
)
=
a
0
+
a
1
(
x
−
x
n
)
+
a
2
(
x
−
x
n
)
(
x
−
x
n
−
1
)
…
+
a
n
(
x
−
x
n
)
(
x
−
x
n
−
1
)
…
(
x
−
x
1
)
=
∑
i
=
0
n
a
i
(
x
−
x
n
−
i
+
1
)
[
i
]
,
{\displaystyle {\begin{aligned}P_{n}(x)&=a_{0}\\&\quad +a_{1}(x-x_{n})\\&\quad +a_{2}(x-x_{n})(x-x_{n-1})\\&\quad \ldots \\&\quad +a_{n}(x-x_{n})(x-x_{n-1})\ldots (x-x_{1})\\&=\sum _{i=0}^{n}a_{i}(x-x_{n-i+1})^{[i]},\end{aligned}}}
gdzie:
(
x
−
x
k
)
[
i
]
=
(
x
−
x
n
)
(
x
−
x
n
−
1
)
(
x
−
x
n
−
2
)
…
(
x
−
x
k
)
.
{\displaystyle (x-x_{k})^{[i]}=(x-x_{n})(x-x_{n-1})(x-x_{n-2})\ldots (x-x_{k}).}
Dla obliczenia współczynników
a
i
,
i
=
0
,
1
,
…
,
n
{\displaystyle a_{i},\;i=0,1,\dots ,n}
wykorzystuje się wzory na kolejne różnice
Δ
P
n
(
x
)
=
0
+
a
1
h
+
a
2
2
h
(
x
−
x
n
−
1
)
+
a
3
3
h
(
x
−
x
n
−
2
)
[
2
]
…
+
a
n
n
h
(
x
−
x
1
)
[
n
−
1
]
,
{\displaystyle {\begin{aligned}\Delta P_{n}(x)=0&+a_{1}\ h\\&+a_{2}\ 2h(x-x_{n-1})\\&+a_{3}\ 3h(x-x_{n-2})^{[2]}\\&\ldots \\&+a_{n}\ nh(x-x_{1})^{[n-1]},\end{aligned}}}
Δ
2
P
n
(
x
)
=
1
⋅
2
a
2
h
2
+
2
⋅
3
a
3
h
2
(
x
−
x
n
−
2
)
+
3
⋅
4
a
4
h
2
(
x
−
x
n
−
3
)
[
2
]
…
+
n
(
n
−
1
)
a
n
h
2
(
x
−
x
1
)
[
n
−
2
]
,
{\displaystyle {\begin{aligned}\Delta ^{2}P_{n}(x)&=1\cdot 2a_{2}h^{2}\\&\,+2\cdot 3a_{3}h^{2}(x-x_{n-2})\\&\,+3\cdot 4a_{4}h^{2}(x-x_{n-3})^{[2]}\\&\,\dots \\&\,+n(n-1)a_{n}h^{2}(x-x_{1})^{[n-2]},\end{aligned}}}
Δ
3
P
n
(
x
)
=
1
⋅
2
⋅
3
a
3
h
3
+
2
⋅
3
⋅
4
a
4
h
3
(
x
−
x
n
−
3
)
…
+
(
n
−
2
)
(
n
−
1
)
n
a
n
h
3
(
x
−
x
1
)
[
n
−
3
]
,
{\displaystyle {\begin{aligned}\Delta ^{3}P_{n}(x)&=1\cdot 2\cdot 3a_{3}h^{3}\\&\,+2\cdot 3\cdot 4a_{4}h3(x-x_{n-3})\\&\,\dots \\&\,+(n-2)(n-1)na_{n}h^{3}(x-x_{1})^{[n-3]},\end{aligned}}}
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
{\displaystyle ................................}
Δ
m
P
n
(
x
)
=
∑
i
=
m
n
i
!
(
i
−
m
)
!
a
i
h
m
(
x
−
x
n
−
i
+
1
)
[
i
−
m
]
.
{\displaystyle \Delta ^{m}P_{n}(x)=\sum _{i=m}^{n}{\frac {i!}{(i-m)!}}a_{i}h^{m}(x-x_{n-i+1})^{[i-m]}.}
Z powyższych wzorów wynika, że
a
m
=
Δ
m
P
n
(
x
n
−
m
)
m
!
h
m
{\displaystyle a_{m}={\frac {\Delta ^{m}P_{n}(x_{n-m})}{m!h^{m}}}}
i dzięki temu poszukiwany wielomian można zapisać w postaci
P
n
(
x
)
=
∑
i
=
0
n
Δ
i
P
n
(
x
n
−
i
)
i
!
h
i
(
x
−
x
n
−
i
+
1
)
[
i
]
=
P
n
(
x
n
)
+
Δ
1
P
n
(
x
n
−
1
)
1
!
h
(
x
−
x
n
)
+
Δ
2
P
n
(
x
n
−
2
)
2
!
h
2
(
x
−
x
n
)
(
x
−
x
n
−
1
)
…
+
Δ
n
P
n
(
x
0
)
n
!
h
n
(
x
−
x
n
)
(
x
−
x
n
−
1
)
…
(
x
−
x
1
)
.
{\displaystyle {\begin{aligned}P_{n}(x)&=\sum _{i=0}^{n}{\frac {\Delta ^{i}P_{n}(x_{n-i})}{i!h^{i}}}(x-x_{n-i+1})^{[i]}\\&=P_{n}(x_{n})+{\frac {\Delta ^{1}P_{n}(x_{n-1})}{1!h}}(x-x_{n})\\&\qquad \qquad \;+{\frac {\Delta ^{2}P_{n}(x_{n-2})}{2!h^{2}}}(x-x_{n})(x-x_{n-1})\\[1ex]&\qquad \qquad \;\ldots \\[1ex]&\qquad \qquad \;+{\frac {\Delta ^{n}P_{n}(x_{0})}{n!h^{n}}}(x-x_{n})(x-x_{n-1})\ldots (x-x_{1}).\end{aligned}}}
Po wprowadzeniu nowej zmiennej
q
=
x
−
x
n
h
→
x
−
x
n
−
i
h
=
q
+
i
,
i
=
0
,
1
,
…
,
n
−
1
{\displaystyle q={\frac {x-x_{n}}{h}}\quad \to \quad {\frac {x-x_{n-i}}{h}}=q+i,\quad i=0,1,\dots ,n-1}
powstaje druga formuła Newtona
P
n
(
x
)
=
P
n
(
x
n
)
+
q
Δ
P
n
(
x
n
−
1
)
+
q
(
q
+
1
)
2
!
Δ
2
P
n
(
x
n
−
2
)
+
q
(
q
+
1
)
(
q
+
2
)
3
!
Δ
3
P
n
(
x
n
−
3
)
…
+
q
(
q
+
1
)
…
[
q
+
(
n
−
1
)
]
n
!
Δ
n
P
n
(
x
0
)
=
P
n
(
x
n
)
+
∑
i
=
1
n
q
[
i
]
i
!
Δ
i
P
n
(
x
n
−
i
)
,
{\displaystyle {\begin{alignedat}{1}P_{n}(x)&=P_{n}(x_{n})&{}+{}q\Delta P_{n}(x_{n-1})\\[1ex]&&{}+{}{\frac {q(q+1)}{2!}}\Delta ^{2}P_{n}(x_{n-2})\\&&{}+{}{\frac {q(q+1)(q+2)}{3!}}\Delta ^{3}P_{n}(x_{n-3})\\&&\ \ldots \\&&{}+{}{\frac {q(q+1)\ldots {\big [}q+(n-1){\big ]}}{n!}}\Delta ^{n}P_{n}(x_{0})\\&=P_{n}(x_{n})&{}+{}\sum _{i=1}^{n}{\frac {q^{[i]}}{i!}}\Delta ^{i}P_{n}(x_{n-i}),\end{alignedat}}}
gdzie:
q
[
i
]
=
q
(
q
+
1
)
(
q
+
2
)
…
[
q
+
(
i
−
1
)
]
,
i
=
1
,
2
,
…
,
n
.
{\displaystyle q^{[i]}=q(q+1)(q+2)\ldots {\big [}q+(i-1){\big ]},\quad i=1,2,\dots ,n.}
Zarówno pierwsza, jak i druga formuła Newtona umożliwiają nie tylko interpolację w przedziale
(
x
0
,
x
1
)
,
{\displaystyle (x_{0},\,x_{1}),}
ale również ekstrapolację na zewnątrz tego przedziału. Tak więc formułę pierwszą stosuje się do interpolacji wprzód i ekstrapolacji wstecz z punktu
x
0
,
{\displaystyle x_{0},}
a formułę drugą do interpolacji wstecz i ekstrapolacji wprzód z punktu
x
n
.
{\displaystyle x_{n}.}
Przy czym ekstrapolacja jest mniej dokładna od interpolacji.
Za pomocą obydwu formuł możliwa jest interpolacja tzw. różnicami centralnymi . Należy w tm celu, w przypadku korzystania z formuły pierwszej, zastosować wzory
x
i
=
x
0
+
i
h
,
i
=
0
,
±
1
,
±
2
,
…
,
y
i
=
f
(
x
i
)
,
{\displaystyle x_{i}=x_{0}+ih,\quad i=0,\,\pm 1,\,\pm 2,\dots ,\quad y_{i}=f(x_{i}),}
Δ
y
i
=
y
i
+
1
−
y
i
,
Δ
2
y
i
=
Δ
y
i
+
1
−
Δ
y
i
{\displaystyle \Delta y_{i}=y_{i+1}-y_{i},\quad \Delta ^{2}y_{i}=\Delta y_{i+1}-\Delta y_{i}\quad {}}
itd.
Dane jest
2
n
+
1
{\displaystyle 2n+1}
równo odległych węzłów interpolacji
x
−
n
,
x
n
−
1
,
…
,
x
−
1
,
x
0
,
x
1
,
x
2
,
…
,
x
n
−
1
,
n
,
{\displaystyle x_{-n},\,x_{n-1},\dots ,\,x_{-1},\,x_{0},\,x_{1},\,x_{2},\dots ,\,x_{n-1},\,n,}
gdzie:
Δ
x
i
=
x
i
+
1
−
x
i
=
h
=
c
o
n
s
t
,
i
=
−
n
,
−
(
n
−
1
)
,
…
,
n
−
1.
{\displaystyle \Delta x_{i}=x_{i+1}-x_{i}=h=\mathrm {const} ,\quad i=-n,\,-(n-1),\dots ,\,n-1.}
Dane są również wartości funkcji interpolowanej
y
i
=
f
(
x
i
)
,
i
=
0
,
±
1
,
…
,
±
n
.
{\displaystyle y_{i}=f(x_{i}),\quad i=0,\,\pm 1,\dots ,\,\pm n.}
Należy zbudować wielomian
P
2
n
+
1
(
x
)
{\displaystyle P_{2n+1}(x)}
taki, że
P
2
n
+
1
(
x
i
)
=
y
i
,
i
=
0
,
±
1
,
…
,
±
n
.
{\displaystyle P_{2n+1}(x_{i})=y_{i},\quad i=0,\,\pm 1,\dots ,\pm n.}
Z żądania tego wynika, że
Δ
k
P
2
n
+
1
(
x
i
)
=
Δ
k
y
i
{\displaystyle \Delta ^{k}P_{2n+1}(x_{i})=\Delta ^{k}y_{i}\quad {}}
dla
i
,
k
,
…
{\displaystyle {}\;i,k,\dots }
(a)
Wielomianu szukamy w postaci
P
2
n
+
1
(
x
)
=
a
0
+
a
1
(
x
−
x
0
)
+
a
2
(
x
−
x
0
)
(
x
−
x
1
)
+
a
3
(
x
−
x
−
1
)
(
x
−
x
0
)
(
x
−
x
1
)
+
a
4
(
x
−
x
−
1
)
(
x
−
x
0
)
(
x
−
x
1
)
(
x
−
x
2
)
+
a
5
(
x
−
x
−
2
)
(
x
−
x
−
1
)
(
x
−
x
0
)
(
x
−
x
1
)
(
x
−
x
2
)
…
+
a
2
n
−
1
(
x
−
x
−
(
n
−
1
)
)
…
(
x
−
x
−
1
)
(
x
−
x
0
)
(
x
−
x
1
)
…
(
x
−
x
n
−
1
)
+
a
2
n
(
x
−
x
−
(
n
−
1
)
)
…
(
x
−
x
−
1
)
(
x
−
x
0
)
(
x
−
x
1
)
…
(
x
−
x
n
−
1
)
(
x
−
x
n
)
=
a
0
+
a
1
(
x
−
x
0
)
[
1
]
+
a
2
(
x
−
x
0
)
[
2
]
+
a
3
(
x
−
x
−
1
)
[
3
]
+
a
4
(
x
−
x
−
1
)
[
4
]
…
+
a
2
n
−
1
(
x
−
x
−
(
n
−
1
)
)
[
2
n
−
1
]
+
a
2
n
(
x
−
x
−
(
n
−
1
)
)
[
2
n
]
.
{\displaystyle {\begin{aligned}P_{2n+1}(x)=a_{0}&+a_{1}(x-x_{0})\\&+a_{2}(x-x_{0})(x-x_{1})\\&+a_{3}(x-x_{-1})(x-x_{0})(x-x_{1})\\&+a_{4}(x-x_{-1})(x-x_{0})(x-x_{1})(x-x_{2})\\&+a_{5}(x-x_{-2})(x-x_{-1})(x-x_{0})(x-x_{1})(x-x_{2})\\&\ldots \\&+a_{2n-1}(x-x_{-(n-1)})\ldots (x-x_{-1})(x-x_{0})(x-x_{1})\ldots (x-x_{n-1})\\&+a_{2n}(x-x_{-(n-1)})\ldots (x-x_{-1})(x-x_{0})(x-x_{1})\ldots (x-x_{n-1})(x-x_{n})\\=a_{0}&+a_{1}(x-x_{0})^{[1]}\\&+a_{2}(x-x_{0})^{[2]}\\&+a_{3}(x-x_{-1})^{[3]}\\&+a_{4}(x-x_{-1})^{[4]}\\&\ldots \\&+a_{2n-1}(x-x_{-(n-1)})^{[2n-1]}\\&+a_{2n}(x-x_{-(n-1)})^{[2n]}.\end{aligned}}}
Współczynniki wielomianu
P
2
n
+
1
(
x
)
{\displaystyle P_{2n+1}(x)}
oblicza się w ten sam sposób co w formułach Newtona, wykorzystując wzór (a). Otrzymujemy w ten sposób wzory
a
0
=
y
0
,
a
2
m
−
1
=
Δ
2
m
−
1
y
−
(
m
−
1
)
(
2
m
−
1
)
!
h
2
m
−
1
,
a
2
m
=
Δ
2
m
y
−
m
(
2
m
)
!
h
2
m
,
m
=
1
,
2
,
…
,
n
.
{\displaystyle a_{0}=y_{0},\quad a_{2m-1}={\frac {\Delta ^{2m-1}y_{-(m-1)}}{(2m-1)!h^{2m-1}}},\quad a_{2m}={\frac {\Delta ^{2m}y_{-m}}{(2m)!h^{2m}}},\quad m=1,2,\dots ,n.}
Wprowadzając nową zmienną
q
=
x
−
x
0
h
,
{\displaystyle q={\frac {x-x_{0}}{h}},}
otrzymujemy pierwszą formułę Gaussa w postaci
P
2
n
+
1
(
x
)
=
y
0
+
q
Δ
y
0
+
q
(
q
−
1
)
2
!
Δ
2
y
−
1
+
(
q
+
1
)
q
(
q
−
1
)
3
!
Δ
3
y
−
1
+
(
q
+
1
)
q
(
q
−
1
)
(
q
−
2
)
4
!
Δ
4
y
−
2
+
(
q
+
2
)
(
q
+
1
)
q
(
q
−
1
)
(
q
−
2
)
5
!
Δ
5
y
−
2
…
+
(
q
+
n
−
1
)
…
(
q
−
n
+
1
)
(
2
n
−
1
)
!
Δ
2
n
−
1
y
−
(
n
−
1
)
+
(
q
+
n
−
1
)
…
(
q
−
n
)
(
2
n
)
!
Δ
2
n
y
−
n
{\displaystyle {\begin{aligned}P_{2n+1}(x)=y_{0}&+q\Delta y_{0}\\[1ex]&+{\frac {q(q-1)}{2!}}\Delta ^{2}y_{-1}\\&+{\frac {(q+1)q(q-1)}{3!}}\Delta ^{3}y_{-1}\\&+{\frac {(q+1)q(q-1)(q-2)}{4!}}\Delta ^{4}y_{-2}\\&+{\frac {(q+2)(q+1)q(q-1)(q-2)}{5!}}\Delta ^{5}y_{-2}\\[1ex]&\ldots \\[1ex]&+{\frac {(q+n-1)\ldots \,(q-n+1)}{(2n-1)!}}\Delta ^{2n-1}y_{-(n-1)}\\&+{\frac {(q+n-1)\ldots \,(q-n)}{(2n)!}}\Delta ^{2n}y_{-n}\end{aligned}}}
(b)
albo krócej
P
2
n
+
1
(
x
)
=
y
0
+
q
Δ
y
0
+
q
[
2
]
2
!
Δ
2
y
−
1
+
(
q
+
1
)
[
3
]
3
!
Δ
3
y
−
1
+
(
q
+
1
)
[
4
]
4
!
Δ
4
y
−
2
…
+
(
q
+
n
−
1
)
[
2
n
−
1
]
(
2
n
−
1
)
!
Δ
2
n
−
1
y
−
(
n
−
1
)
+
(
q
+
n
−
1
)
[
2
n
]
(
2
n
)
!
Δ
2
n
y
−
n
,
{\displaystyle {\begin{aligned}P_{2n+1}(x)=y_{0}&+q\Delta y_{0}\\[1ex]&+{\frac {q^{[2]}}{2!}}\Delta ^{2}y_{-1}\\[1ex]&+{\frac {(q+1)^{[3]}}{3!}}\Delta ^{3}y_{-1}\\[1ex]&+{\frac {(q+1)^{[4]}}{4!}}\Delta ^{4}y_{-2}\\[1ex]&\ldots \\[1ex]&+{\frac {(q+n-1)^{[2n-1]}}{(2n-1)!}}\Delta ^{2n-1}y_{-(n-1)}\\[1ex]&+{\frac {(q+n-1)^{[2n]}}{(2n)!}}\Delta ^{2n}y_{-n},\end{aligned}}}
(c)
gdzie:
q
=
x
−
x
0
h
,
q
[
m
]
=
q
(
q
−
1
)
…
[
q
−
(
m
−
1
)
]
.
{\displaystyle q={\frac {x-x_{0}}{h}},\quad q^{[m]}=q(q-1)\ldots \,{\big [}q-(m-1){\big ]}.}
Ta formuła zawiera różnice
Δ
y
0
,
Δ
2
y
−
1
,
Δ
3
y
−
1
,
Δ
4
y
−
2
,
Δ
5
y
−
2
,
Δ
6
y
−
3
,
…
,
Δ
2
n
−
1
y
−
(
n
−
1
)
,
Δ
2
n
y
−
n
.
{\displaystyle \Delta y_{0},\;\Delta ^{2}y_{-1},\;\Delta ^{3}y_{-1},\;\Delta ^{4}y_{-2},\;\Delta ^{5}y_{-2},\;\Delta ^{6}y_{-3},\dots ,\Delta ^{2n-1}y_{-(n-1)},\;\Delta ^{2n}y_{-n}.}
Druga formuła Gaussa ma postać
P
2
n
+
1
(
x
)
=
y
0
+
q
Δ
y
−
1
+
(
q
+
1
)
[
2
]
2
!
Δ
2
y
−
1
+
(
q
+
1
)
[
3
]
3
!
Δ
3
y
−
2
+
(
q
+
2
)
[
4
]
4
!
Δ
4
y
−
2
…
+
(
q
+
n
−
1
)
[
2
n
−
1
]
(
2
n
−
1
)
!
Δ
2
n
−
1
y
−
n
+
(
q
+
n
)
[
2
n
]
(
2
n
)
!
Δ
2
n
y
−
n
,
{\displaystyle {\begin{aligned}P_{2n+1}(x)=y_{0}&+q\Delta y_{-1}\\[2px]&+{\frac {(q+1)^{[2]}}{2!}}\Delta ^{2}y_{-1}\\[2px]&+{\frac {(q+1)^{[3]}}{3!}}\Delta ^{3}y_{-2}\\[2px]&+{\frac {(q+2)^{[4]}}{4!}}\Delta ^{4}y_{-2}\\[2px]&\ldots \\[2px]&+{\frac {(q+n-1)^{[2n-1]}}{(2n-1)!}}\Delta ^{2n-1}y_{-n}\\[2px]&+{\frac {(q+n)^{[2n]}}{(2n)!}}\Delta ^{2n}y_{-n},\end{aligned}}}
(c)
gdzie:
q
=
x
−
x
0
h
.
{\displaystyle q={\frac {x-x_{0}}{h}}.}
Ta formuła zawiera różnice
Δ
y
−
1
,
Δ
2
y
−
1
,
Δ
3
y
−
2
,
Δ
4
y
−
2
,
Δ
5
y
−
3
,
Δ
6
y
−
3
,
…
,
Δ
2
n
−
1
y
−
n
,
Δ
2
n
y
−
n
.
{\displaystyle \Delta y_{-1},\;\Delta ^{2}y_{-1},\;\Delta ^{3}y_{-2},\;\Delta ^{4}y_{-2},\;\Delta ^{5}y_{-3},\;\Delta ^{6}y_{-3},\dots ,\Delta ^{2n-1}y_{-n},\;\Delta ^{2n}y_{-n}.}
Tę formułę otrzymuje się jako średnią arytmetyczną obydwu formuł Gaussa
P
2
n
+
1
(
x
)
=
y
0
+
q
⋅
Δ
y
−
1
+
Δ
y
0
2
+
q
2
2
⋅
Δ
2
y
−
1
+
q
(
q
2
−
1
2
)
3
!
⋅
Δ
3
y
−
2
+
Δ
3
y
−
1
2
+
q
2
(
q
2
−
1
2
)
4
!
⋅
Δ
4
y
−
2
+
q
(
q
2
−
1
2
)
(
q
2
−
2
2
)
5
!
⋅
Δ
5
y
−
3
+
Δ
5
y
−
2
2
+
q
2
(
q
2
−
1
2
)
(
q
2
−
2
2
)
6
!
⋅
Δ
6
y
−
3
…
+
q
(
q
2
−
1
2
)
(
q
2
−
2
2
)
(
q
2
−
3
2
)
…
[
q
2
−
(
n
−
1
)
2
]
(
2
n
−
1
)
!
⋅
Δ
2
n
−
1
y
−
n
+
Δ
2
n
−
1
y
−
(
n
−
1
)
2
+
q
2
(
q
2
−
1
2
)
(
q
2
−
2
2
)
…
[
q
2
−
(
n
−
1
)
2
]
(
2
n
)
!
Δ
2
n
y
−
n
,
{\displaystyle {\begin{aligned}P_{2n+1}(x)=y_{0}&+q\cdot {\frac {\Delta y_{-1}+\Delta y_{0}}{2}}\\[1ex]&+{\frac {q^{2}}{2}}\cdot \Delta ^{2}y_{-1}\\[2px]&+{\frac {q(q^{2}-1^{2})}{3!}}\cdot {\frac {\Delta ^{3}y_{-2}+\Delta ^{3}y_{-1}}{2}}\\[1ex]&+{\frac {q^{2}(q^{2}-1^{2})}{4!}}\cdot \Delta ^{4}y_{-2}\\[1ex]&+{\frac {q(q^{2}-1^{2})(q^{2}-2^{2})}{5!}}\cdot {\frac {\Delta ^{5}y_{-3}+\Delta ^{5}y_{-2}}{2}}\\[1ex]&+{\frac {q^{2}(q^{2}-1^{2})(q^{2}-2^{2})}{6!}}\cdot \Delta ^{6}y_{-3}\\[1ex]&\ldots \\[1ex]&+{\frac {q(q^{2}-1^{2})(q^{2}-2^{2})(q^{2}-3^{2})\ldots {\big [}q^{2}-(n-1)^{2}{\big ]}}{(2n-1)!}}\\[1ex]&\qquad \cdot {\frac {\Delta ^{2n-1}y_{-n}+\Delta ^{2n-1}y_{-(n-1)}}{2}}\\[1ex]&+{\frac {q^{2}(q^{2}-1^{2})(q^{2}-2^{2})\ldots {\big [}q^{2}-(n-1)^{2}{\big ]}}{(2n)!}}\Delta ^{2n}y_{-n},\end{aligned}}}
gdzie:
q
=
x
−
x
0
h
.
{\displaystyle q={\frac {x-x_{0}}{h}}.}
Formułę Bessela można wyprowadzić na podstawie drugiej formuły Gaussa zapisanej dla punktu początkowego
x
1
.
{\displaystyle x_{1}.}
W tym celu we wzorze (c) należy: 1) powiększyć o 1 wartości indeksów w różnicach skończonych i 2) zmniejszyć o 1 wartości zmiennej
q
.
{\displaystyle q.}
W ten sposób otrzymuje się
P
2
n
+
1
=
y
1
+
(
q
−
1
)
Δ
y
0
+
q
(
q
−
1
)
2
!
Δ
2
y
0
+
q
(
q
−
1
)
(
q
−
2
)
3
!
Δ
3
y
−
1
+
(
q
+
1
)
q
(
q
−
1
)
(
q
−
2
)
4
!
Δ
4
y
−
1
+
(
q
+
1
)
q
(
q
−
1
)
(
q
−
2
)
(
q
−
3
)
5
!
Δ
5
y
−
2
…
+
(
q
+
n
−
2
)
…
(
q
−
n
)
(
2
n
−
1
)
!
Δ
2
n
−
1
y
−
(
n
−
1
)
+
(
q
+
n
−
1
)
…
(
q
−
n
)
(
2
n
)
!
Δ
2
n
y
−
(
n
−
1
)
.
{\displaystyle {\begin{aligned}P_{2n+1}&=y_{1}+(q-1)\Delta y_{0}\\&+{\frac {q(q-1)}{2!}}\Delta ^{2}y_{0}\\&+{\frac {q(q-1)(q-2)}{3!}}\Delta ^{3}y_{-1}\\&+{\frac {(q+1)q(q-1)(q-2)}{4!}}\Delta ^{4}y_{-1}\\&+{\frac {(q+1)q(q-1)(q-2)(q-3)}{5!}}\Delta ^{5}y_{-2}\\[1ex]&\ldots \\[1ex]&+{\frac {(q+n-2)\ldots (q-n)}{(2n-1)!}}\Delta ^{2n-1}y_{-(n-1)}\\&+{\frac {(q+n-1)\ldots (q-n)}{(2n)!}}\Delta ^{2n}y_{-(n-1)}.\end{aligned}}}
(d)
Średnia arytmetyczna wzorów (c) i (d), po pewnych przekształceniach[1] , daje w wyniku formułę Bessela
P
2
n
+
1
(
x
)
=
y
0
+
y
1
2
+
(
q
−
1
2
)
⋅
Δ
y
0
+
q
(
q
−
1
)
2
!
⋅
Δ
2
y
−
1
+
Δ
2
y
0
2
+
(
q
−
1
2
)
q
(
q
−
1
)
3
!
⋅
Δ
3
y
−
1
+
q
(
q
−
1
)
(
q
+
1
)
(
q
−
2
)
4
!
⋅
Δ
4
y
−
2
+
Δ
4
y
−
1
2
+
(
q
−
1
2
)
q
(
q
−
1
)
(
q
+
1
)
(
q
−
2
)
5
!
⋅
Δ
5
y
−
2
+
q
(
q
−
1
)
(
q
+
1
)
(
q
−
2
)
(
q
+
2
)
(
q
−
3
)
6
!
⋅
Δ
6
y
−
3
+
Δ
6
y
−
2
2
…
+
q
(
q
−
1
)
(
q
+
1
)
(
q
−
2
)
(
q
+
2
)
…
(
q
−
n
)
(
q
+
n
−
1
)
2
n
!
⋅
Δ
2
n
y
−
n
+
Δ
2
n
y
−
n
+
1
2
+
(
q
−
1
2
)
q
(
q
−
1
)
(
q
+
1
)
(
q
−
2
)
(
q
+
2
)
…
(
q
−
n
)
(
q
+
n
−
1
)
(
2
n
+
1
)
!
⋅
Δ
2
n
+
1
y
−
n
.
{\displaystyle {\begin{aligned}P_{2n+1}(x)&={\frac {y_{0}+y_{1}}{2}}\\&+(q-{\tfrac {1}{2}})\cdot \Delta y_{0}\\&+{\frac {q(q-1)}{2!}}\cdot {\frac {\Delta ^{2}y_{-1}+\Delta ^{2}y_{0}}{2}}\\&+{\frac {(q-{\tfrac {1}{2}})q(q-1)}{3!}}\cdot \Delta ^{3}y_{-1}\\&+{\frac {q(q-1)(q+1)(q-2)}{4!}}\cdot {\frac {\Delta ^{4}y_{-2}+\Delta ^{4}y_{-1}}{2}}\\&+{\frac {(q-{\tfrac {1}{2}})q(q-1)(q+1)(q-2)}{5!}}\cdot \Delta ^{5}y_{-2}\\&+{\frac {q(q-1)(q+1)(q-2)(q+2)(q-3)}{6!}}\cdot {\frac {\Delta ^{6}y_{-3}+\Delta ^{6}y_{-2}}{2}}\\[1ex]&\ldots \\[1ex]&+{\frac {q(q-1)(q+1)(q-2)(q+2)\ldots (q-n)(q+n-1)}{2n!}}\cdot {\frac {\Delta ^{2n}y_{-n}+\Delta ^{2n}y_{-n+1}}{2}}\\&+{\frac {(q-{\tfrac {1}{2}})q(q-1)(q+1)(q-2)(q+2)\ldots (q-n)(q+n-1)}{(2n+1)!}}\cdot \Delta ^{2n+1}y_{-n}.\end{aligned}}}
Wspólną cechą wszystkich metod różnicowych jest założenie, że
x
i
+
1
=
x
i
+
h
,
d
l
a
i
=
0
,
1
,
…
,
h
=
c
o
n
s
t
.
{\displaystyle x_{i+1}=x_{i}+h,\;\;dla\;\;i=0,1,\dots ,h=\mathrm {const} .}
W formule Lagrange’a założenie to nie jest spełnione i dlatego nie jest ona zaliczana do formuł różnicowych.
Na odcinku
[
a
,
b
]
{\displaystyle [a,b]}
dane są węzły interpolacji
x
0
,
x
1
,
…
,
n
{\displaystyle x_{0},\,x_{1},\dots ,\,n}
i wartości
y
i
=
f
(
x
i
)
{\displaystyle y_{i}=f(x_{i})}
interpolowanej funkcji
y
=
f
(
x
)
.
{\displaystyle y=f(x).}
Poszukiwany jest wielomian
P
n
(
x
)
{\displaystyle P_{n}(x)}
stopnia
n
{\displaystyle n}
taki, który spełnia warunki
P
n
(
x
i
)
=
y
i
.
i
=
0
,
1
,
…
,
n
.
{\displaystyle P_{n}(x_{i})=y_{i}.\quad i=0,1,\dots ,n.}
Budujemy wielomian
φ
i
(
x
)
=
a
i
(
x
−
x
0
)
(
x
−
x
1
)
…
(
x
−
x
i
−
1
)
(
x
−
x
i
+
1
)
…
(
x
−
x
n
)
{\displaystyle \varphi _{i}(x)=a_{i}(x-x_{0})(x-x_{1})\ldots (x-x_{i-1})(x-x_{i+1})\ldots (x-x_{n})}
taki, że
φ
i
(
x
j
)
=
δ
i
j
{
1
gdy
j
=
i
,
0
gdy
j
≠
i
.
{\displaystyle \varphi _{i}(x_{j})=\delta _{ij}{\begin{cases}\;1\quad {\text{gdy}}\;j=i,\\\;0\quad {\text{gdy}}\;j\neq i.\end{cases}}}
Stąd
φ
i
(
x
i
)
=
a
i
(
x
i
−
x
0
)
(
x
i
−
x
1
)
…
(
x
i
−
x
i
−
1
)
(
x
i
−
x
i
+
1
)
…
(
x
i
−
x
n
)
=
1
,
a
i
=
1
(
x
i
−
x
0
)
(
x
i
−
x
1
)
…
(
x
i
−
x
i
−
1
)
(
x
i
−
x
i
+
1
)
…
(
x
i
−
x
n
)
,
{\displaystyle {\begin{aligned}&\varphi _{i}(x_{i})=a_{i}(x_{i}-x_{0})(x_{i}-x_{1})\ldots (x_{i}-x_{i-1})(x_{i}-x_{i+1})\ldots (x_{i}-x_{n})=1,\\[1em]&a_{i}={\frac {1}{(x_{i}-x_{0})(x_{i}-x_{1})\ldots (x_{i}-x_{i-1})(x_{i}-x_{i+1})\ldots (x_{i}-x_{n})}},\\\\\end{aligned}}}
φ
i
(
x
)
=
(
x
−
x
0
)
(
x
−
x
1
)
…
(
x
−
x
i
−
1
)
(
x
−
x
i
+
1
)
…
(
x
−
x
n
)
(
x
i
−
x
0
)
(
x
i
−
x
1
)
…
(
x
i
−
x
i
−
1
)
(
x
i
−
x
i
+
1
)
…
(
x
i
−
x
n
)
{\displaystyle \varphi _{i}(x)={\frac {(x-x_{0})(x-x_{1})\ldots (x-x_{i-1})(x-x_{i+1})\ldots (x-x_{n})}{(x_{i}-x_{0})(x_{i}-x_{1})\ldots (x_{i}-x_{i-1})(x_{i}-x_{i+1})\ldots (x_{i}-x_{n})}}}
(e)
i formuła Lagrange’a ma postać
P
n
(
x
)
=
∑
i
=
0
n
φ
i
(
x
)
y
i
.
{\displaystyle P_{n}(x)=\sum _{i=0}^{n}\varphi _{i}(x)y_{i}.}
Funkcję
φ
i
(
x
)
{\displaystyle \varphi _{i}(x)}
można zapisać w sposób bardziej zwarty, posługując się wielomianem
w
(
x
)
=
(
x
−
x
0
)
(
x
−
x
1
)
…
(
x
−
x
n
)
{\displaystyle w(x)=(x-x_{0})(x-x_{1})\ldots (x-x_{n})}
i jego pochodną
w
′
(
x
)
=
∑
i
=
0
n
(
x
−
x
0
)
(
x
−
x
1
)
…
(
x
−
x
i
−
1
)
(
x
−
x
i
+
1
)
…
(
x
−
x
n
)
=
∑
i
=
0
n
w
(
x
)
x
−
x
i
,
{\displaystyle {\begin{aligned}w^{'}(x)&=\sum _{i=0}^{n}(x-x_{0})(x-x_{1})\ldots (x-x_{i-1})(x-x_{i+1})\ldots (x-x_{n})\\&=\sum _{i=0}^{n}{\frac {w(x)}{x-x_{i}}},\end{aligned}}}
w
′
(
x
i
)
=
(
x
i
−
x
0
)
(
x
i
−
x
1
)
…
(
x
i
−
x
i
−
1
)
(
x
i
−
x
i
+
1
)
…
(
x
−
x
n
)
.
{\displaystyle w^{'}(x_{i})=(x_{i}-x_{0})(x_{i}-x_{1})\ldots (x_{i}-x_{i-1})(x_{i}-x_{i+1})\ldots (x-x_{n}).}
Stąd na podstawie wzoru (e) dla
i
=
0
,
1
,
…
,
n
{\displaystyle i=0,1,\dots ,n}
φ
i
(
x
)
=
w
(
x
)
(
x
−
x
i
)
w
′
(
x
i
)
=
w
(
x
)
D
i
(
x
)
,
{\displaystyle \varphi _{i}(x)={\frac {w(x)}{(x-x_{i})w^{'}(x_{i})}}={\frac {w(x)}{D_{i}(x)}},}
(f)
gdzie:
D
i
(
x
)
=
(
x
−
x
i
)
w
′
(
x
i
)
=
(
x
i
−
x
0
)
(
x
i
−
x
2
)
…
(
x
i
−
x
i
−
1
)
(
x
−
x
i
)
(
x
i
−
x
i
+
1
)
…
(
x
i
−
x
n
)
.
{\displaystyle {\begin{aligned}D_{i}(x)&=(x-x_{i})w^{'}(x_{i})\\[1ex]&=(x_{i}-x_{0})(x_{i}-x_{2})\\[1ex]&\qquad \ldots (x_{i}-x_{i-1})(x-x_{i})(x_{i}-x_{i+1})\\[1ex]&\qquad \ldots (x_{i}-x_{n}).\end{aligned}}}
Wielomian
D
i
(
x
)
{\displaystyle D_{i}(x)}
można obliczyć jako iloczyn elementów tworzących wiersz
i
+
1
{\displaystyle i+1}
macierzy
[
x
−
x
0
x
0
−
x
1
x
0
−
x
2
…
x
0
−
x
n
x
1
−
x
0
x
−
x
1
x
1
−
x
2
…
x
1
−
x
n
x
2
−
x
0
x
2
−
x
1
x
−
x
2
…
x
2
−
x
n
…
…
…
…
…
x
n
−
x
0
x
n
−
x
1
x
n
−
x
2
…
x
−
x
n
]
.
{\displaystyle {\begin{bmatrix}x-x_{0}&x_{0}-x_{1}&x_{0}-x_{2}&\ldots &x_{0}-x_{n}\\x_{1}-x_{0}&x-x_{1}&x_{1}-x_{2}&\ldots &x_{1}-x_{n}\\x_{2}-x_{0}&x_{2}-x_{1}&x-x_{2}&\ldots &x_{2}-x_{n}\\\ldots &\ldots &\ldots &\ldots &\ldots \\x_{n}-x_{0}&x_{n}-x_{1}&x_{n}-x_{2}&\ldots &x-x_{n}\end{bmatrix}}.}
Przykłady
1) Interpolacja liniowa:
n
=
1.
{\displaystyle n=1.}
w
(
x
)
=
(
x
−
x
0
)
(
x
−
x
1
)
,
w
′
(
x
)
=
(
x
−
x
1
)
+
(
x
−
x
0
)
,
w
′
(
x
0
)
=
x
0
−
x
1
,
w
′
(
x
1
)
=
x
1
−
x
0
,
φ
0
(
x
)
=
x
−
x
1
x
0
−
x
1
,
φ
1
(
x
)
=
x
−
x
0
x
1
−
x
0
,
P
n
(
x
)
=
φ
0
(
x
)
y
0
+
φ
1
(
x
)
y
1
.
{\displaystyle {\begin{aligned}w(x)&=(x-x_{0})(x-x_{1}),\\[1ex]w^{'}(x)&=(x-x_{1})+(x-x_{0}),\\[1ex]w^{'}(x_{0})&=x_{0}-x_{1},\\[1ex]w^{'}(x_{1})&=x_{1}-x_{0},\\[2ex]\varphi _{0}(x)&={\frac {x-x_{1}}{x_{0}-x_{1}}},\\[1ex]\varphi _{1}(x)&={\frac {x-x_{0}}{x_{1}-x_{0}}},\\[2ex]P_{n}(x)&=\varphi _{0}(x)y_{0}+\varphi _{1}(x)y_{1}.\end{aligned}}}
2) Interpolacja kwadratowa:
n
=
2.
{\displaystyle n=2.}
w
(
x
)
=
(
x
−
x
0
)
(
x
−
x
1
)
(
x
−
x
2
)
,
w
′
(
x
)
=
(
x
−
x
1
)
(
x
−
x
2
)
+
(
x
−
x
0
)
(
x
−
x
2
)
+
(
x
−
x
0
)
(
x
−
x
1
)
,
w
′
(
x
0
)
=
(
x
0
−
x
1
)
(
x
0
−
x
2
)
,
w
′
(
x
1
)
=
(
x
1
−
x
0
)
(
x
1
−
x
2
)
,
w
′
(
x
2
)
=
(
x
2
−
x
0
)
(
x
2
−
x
1
)
,
φ
0
(
x
)
=
(
x
−
x
1
)
(
x
−
x
2
)
(
x
0
−
x
1
)
(
x
0
−
x
2
)
,
φ
1
(
x
)
=
(
x
−
x
0
)
(
x
−
x
2
)
(
x
1
−
x
0
)
(
x
1
−
x
2
)
,
φ
2
(
x
)
=
(
x
−
x
0
)
(
x
−
x
1
)
(
x
2
−
x
0
)
(
x
2
−
x
1
)
,
P
n
(
x
)
=
φ
0
(
x
)
y
0
+
φ
1
(
x
)
y
1
+
φ
2
(
x
)
y
2
.
{\displaystyle {\begin{aligned}w(x)&=(x-x_{0})(x-x_{1})(x-x_{2}),\\[1ex]w^{'}(x)&=(x-x_{1})(x-x_{2})+(x-x_{0})(x-x_{2})+(x-x_{0})(x-x_{1}),\\[1ex]w^{'}(x_{0})&=(x_{0}-x_{1})(x_{0}-x_{2}),\\[1ex]w^{'}(x_{1})&=(x_{1}-x_{0})(x_{1}-x_{2}),\\[1ex]w^{'}(x_{2})&=(x_{2}-x_{0})(x_{2}-x_{1}),\\[2ex]\varphi _{0}(x)&={\frac {(x-x_{1})(x-x_{2})}{(x_{0}-x_{1})(x_{0}-x_{2})}},\\[1ex]\varphi _{1}(x)&={\frac {(x-x_{0})(x-x_{2})}{(x_{1}-x_{0})(x_{1}-x_{2})}},\\[1ex]\varphi _{2}(x)&={\frac {(x-x_{0})(x-x_{1})}{(x_{2}-x_{0})(x_{2}-x_{1})}},\\[2ex]P_{n}(x)&=\varphi _{0}(x)y_{0}+\varphi _{1}(x)y_{1}+\varphi _{2}(x)y_{2}.\end{aligned}}}
W przypadku szczególnym, gdy węzły są równoodległe:
x
i
+
1
=
x
i
+
h
,
h
=
c
o
n
s
t
,
i
=
0
,
1
,
…
,
n
{\displaystyle x_{i+1}=x_{i}+h,\quad h=\mathrm {const} ,\quad i=0,1,\dots ,n}
można wprowadzić nową zmienną
q
=
x
−
x
0
h
{\displaystyle q={\frac {x-x_{0}}{h}}}
i wtedy
w
(
x
)
=
q
(
q
−
1
)
(
q
−
2
)
…
(
q
−
n
)
h
n
+
1
,
{\displaystyle w(x)=q(q-1)(q-2)\ldots (q-n)h^{n+1},}
D
m
(
x
)
=
(
x
−
x
m
)
w
′
(
x
m
)
=
(
q
−
m
)
(
−
1
)
n
−
m
m
!
(
n
−
m
)
!
h
n
+
1
,
{\displaystyle D_{m}(x)=(x-x_{m})w^{'}(x_{m})=(q-m)(-1)^{n-m}m!(n-m)!h^{n+1},}
φ
m
(
x
)
=
w
(
x
)
D
m
(
x
)
.
{\displaystyle \varphi _{m}(x)={\frac {w(x)}{D_{m}(x)}}.}
Wielomian
D
m
(
x
)
{\displaystyle D_{m}(x)}
można utworzyć jako iloczyn elementów wiersza
m
+
1
{\displaystyle m+1}
macierzy
[
q
−
1
−
2
−
3
…
−
n
1
q
−
1
−
1
−
2
…
−
(
n
−
1
)
2
1
q
−
2
−
1
…
−
(
n
−
2
)
…
…
…
…
…
…
n
n
−
1
n
−
2
n
−
3
…
q
−
n
]
.
{\displaystyle {\begin{bmatrix}q&-1&-2&-3&\ldots &-n\\1&q-1&-1&-2&\ldots &-(n-1)\\2&1&q-2&-1&\ldots &-(n-2)\\\ldots &\ldots &\ldots &\ldots &\ldots &\ldots &\\n&n-1&n-2&n-3&\ldots &q-n\end{bmatrix}}.}
Różnicowe podejście do interpolacji funkcji
y
=
f
(
x
)
{\displaystyle y=f(x)}
o wartościach danych na zbiorze węzłów równoodległych
x
i
+
1
=
x
i
+
h
,
h
=
c
o
n
s
t
,
i
=
0
,
1
,
…
{\displaystyle {}\quad x_{i+1}=x_{i}+h,\quad h=\mathrm {const} ,\quad i=0,1,\dots }
można uogólnić na przypadek węzłów, które nie są równoodległe.
W tym celu wprowadza się pojęcie różnicy uogólnionej (pierwszego rzędu) zdefiniowanej jako
[
x
i
,
x
i
+
1
]
=
y
i
+
1
−
y
i
x
i
+
1
−
x
i
,
i
=
0
,
1
,
…
,
{\displaystyle [x_{i},\,x_{i+1}]={\frac {y_{i+1}-y_{i}}{x_{i+1}-x_{i}}},\quad i=0,1,\dots ,}
przy czym
Δ
x
i
=
x
i
+
1
−
x
i
≠
0
,
i
=
0
,
1
,
…
{\displaystyle \Delta x_{i}=x_{i+1}-x_{i}\neq 0,\quad i=0,1,\dots }
Na przykład
[
x
0
,
x
1
]
=
y
1
−
y
0
x
1
−
x
0
,
[
x
1
,
x
2
]
=
y
2
−
y
1
x
2
−
x
1
,
…
{\displaystyle [x_{0},\,x_{1}]={\frac {y_{1}-y_{0}}{x_{1}-x_{0}}},\quad [x_{1},\,x_{2}]={\frac {y_{2}-y_{1}}{x_{2}-x_{1}}},\quad \ldots }
Analogicznie określa się różnice uogólnione drugiego rzędu
[
x
i
,
x
i
+
1
,
x
i
+
2
]
=
[
x
i
+
1
,
x
i
+
2
]
−
[
x
i
,
x
i
+
1
]
x
i
+
2
−
x
i
,
…
{\displaystyle [x_{i},\,x_{i+1},\,x_{i+2}]={\frac {[x_{i+1},\,x_{i+2}]-[x_{i},\,x_{i+1}]}{x_{i+2}-x_{i}}},\quad \ldots }
Na przykład
[
x
0
,
x
1
,
x
2
]
=
[
x
1
,
x
2
]
−
[
x
0
,
x
1
]
x
2
−
x
0
.
{\displaystyle [x_{0},\,x_{1},\,x_{2}]={\frac {[x_{1},\,x_{2}]-[x_{0},\,x_{1}]}{x_{2}-x_{0}}}.}
Ogólnie
[
x
i
,
x
i
+
1
,
…
,
x
i
+
n
]
=
[
x
i
+
1
,
…
,
x
i
+
n
]
−
[
x
i
,
…
,
x
i
+
n
−
1
]
x
i
+
n
−
x
i
,
{\displaystyle [x_{i},\,x_{i+1},\dots ,\,x_{i+n}]={\frac {[x_{i+1},\dots ,\,x_{i+n}]-[x_{i},\dots ,\,x_{i+n-1}]}{x_{i+n}-x_{i}}},}
i
=
0
,
1
,
2
,
…
,
n
=
1
,
2
,
…
{\displaystyle {}\qquad i=0,1,2,\dots ,\quad n=1,2,\dots }
Ważną własnością różnic uogólnionych jest ich symetria względem swoich argumentów. Na przykład
[
x
0
,
x
1
]
=
y
1
−
y
0
x
1
−
x
0
=
y
0
−
y
1
x
0
−
x
1
=
[
x
1
,
x
0
]
{\displaystyle [x_{0},\,x_{1}]={\frac {y_{1}-y_{0}}{x_{1}-x_{0}}}={\frac {y_{0}-y_{1}}{x_{0}-x_{1}}}=[x_{1},\,x_{0}]}
lub
[
x
0
,
x
1
,
…
,
x
k
,
x
k
+
1
,
…
,
x
m
]
=
[
x
0
,
x
1
,
…
,
x
k
+
1
,
x
k
,
…
,
x
m
]
,
{\displaystyle [x_{0},\,x_{1},\dots ,\,x_{k},\,x_{k+1},\dots ,\,x_{m}]=[x_{0},\,x_{1},\dots ,\,x_{k+1},\,x_{k},\dots ,\,x_{m}],}
k
=
0
,
1
,
…
,
m
−
1
,
m
=
1
,
2
,
…
{\displaystyle k=0,1,\dots ,\,m-1,\quad m=1,2,\dots }
Kolejne różnice uogólnione najwygodniej jest obliczać według schematu tablicowego
x
y
rząd 1
rząd 2
rząd 3
rząd 4
x
0
{\displaystyle x_{0}}
y
0
{\displaystyle y_{0}}
[
x
0
,
x
1
]
{\displaystyle [x_{0},\,x_{1}]}
x
1
{\displaystyle x_{1}}
y
1
{\displaystyle y_{1}}
[
x
0
,
x
1
,
x
2
]
{\displaystyle [x_{0},\,x_{1},\,x_{2}]}
[
x
1
,
x
2
]
{\displaystyle [x_{1},\,x_{2}]}
[
x
0
,
x
1
,
x
2
,
x
3
]
{\displaystyle [x_{0},\,x_{1},\,x_{2},\,x_{3}]}
x
2
{\displaystyle x_{2}}
y
2
{\displaystyle y_{2}}
[
x
1
,
x
2
,
x
3
]
{\displaystyle [x_{1},\,x_{2},\,x_{3}]}
[
x
0
,
x
1
,
x
2
,
x
3
,
x
4
]
{\displaystyle [x_{0},\,x_{1},\,x_{2},\,x_{3},\,x_{4}]}
[
x
2
,
x
3
]
{\displaystyle [x_{2},\,x_{3}]}
[
x
1
,
x
2
,
x
3
,
x
4
]
{\displaystyle [x_{1},\,x_{2},\,x_{3},\,x_{4}]}
x
3
{\displaystyle x_{3}}
y
3
{\displaystyle y_{3}}
[
x
2
,
x
3
,
x
4
]
{\displaystyle [x_{2},\,x_{3},\,x_{4}]}
[
x
3
,
x
4
]
{\displaystyle [x_{3},\,x_{4}]}
x
4
{\displaystyle x_{4}}
y
4
{\displaystyle y_{4}}
Lemat[1] : Jeżeli funkcja
y
=
P
n
(
x
)
{\displaystyle y=P_{n}(x)}
jest wielomianem
n
{\displaystyle n}
-tego stopnia, to jego różnica uogólniona rzędu
n
+
1
{\displaystyle n+1}
jest tożsamościowo równa zeru, tzn.
[
x
,
x
0
,
x
1
,
…
,
x
n
]
≡
0
{\displaystyle [x,\,x_{0},\,x_{1},\dots ,\,x_{n}]\equiv 0}
dla dowolnego zbioru liczb
x
,
x
0
,
x
1
,
…
,
x
n
{\displaystyle x,\,x_{0},\,x_{1},\dots ,\,x_{n}}
różniących się od siebie.
Wielomian
w
n
(
x
)
=
P
n
(
x
)
−
P
n
(
x
0
)
{\displaystyle w_{n}(x)=P_{n}(x)-P_{n}(x_{0})}
jest wielomianem, który zeruje się w punkcie
x
=
x
0
.
{\displaystyle x=x_{0}.}
Ponieważ ten punkt jest pierwiastkiem wielomianu
w
n
(
x
)
{\displaystyle w_{n}(x)}
więc zgodnie z twierdzeniem Bezout’a wielomian ten dzieli się bez reszty przez dwumian
(
x
−
x
0
)
.
{\displaystyle (x-x_{0}).}
Możemy więc napisać
[
x
,
x
0
]
=
P
n
(
x
)
−
P
n
(
x
0
)
x
−
x
0
=
P
n
−
1
(
x
)
,
{\displaystyle [x,\,x_{0}]={\frac {P_{n}(x)-P_{n}(x_{0})}{x-x_{0}}}=P_{n-1}(x),}
przy czym
P
n
−
1
(
x
)
{\displaystyle P_{n-1}(x)}
jest wielomianem stopnia
n
−
1.
{\displaystyle n-1.}
I dalej
[
x
,
x
0
,
x
1
]
=
[
x
,
x
0
]
−
[
x
1
,
x
0
]
x
−
x
1
=
P
n
−
1
(
x
)
−
P
n
−
1
(
x
1
)
x
−
x
1
=
P
n
−
2
(
x
)
.
{\displaystyle [x,\,x_{0},\,x_{1}]={\frac {[x,\,x_{0}]-[x_{1},\,x_{0}]}{x-x_{1}}}={\frac {P_{n-1}(x)-P_{n-1}(x_{1})}{x-x_{1}}}=P_{n-2}(x).}
[
x
,
x
0
,
x
1
,
x
2
]
=
[
x
,
x
0
,
x
1
]
−
[
x
2
,
x
0
,
x
1
]
x
−
x
2
=
P
n
−
2
(
x
)
−
P
n
−
2
(
x
2
)
x
−
x
2
=
P
n
−
3
(
x
)
,
{\displaystyle [x,\,x_{0},\,x_{1},\,x_{2}]={\frac {[x,\,x_{0},\,x_{1}]-[x_{2},\,x_{0},\,x_{1}]}{x-x_{2}}}={\frac {P_{n-2}(x)-P_{n-2}(x_{2})}{x-x_{2}}}=P_{n-3}(x),}
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
{\displaystyle ..................................}
[
x
,
x
0
,
x
1
,
…
,
x
m
]
=
[
x
,
x
0
,
x
1
,
…
,
x
m
−
1
]
−
[
x
m
,
x
0
,
x
1
,
…
,
x
m
−
1
]
x
−
x
m
=
P
n
−
m
(
x
)
−
P
n
−
m
(
x
m
)
x
−
x
m
=
P
n
−
(
m
+
1
)
(
x
)
,
{\displaystyle {\begin{aligned}{}[x,\,x_{0},\,x_{1},\dots ,\,x_{m}]&={\frac {[x,\,x_{0},\,x_{1},\dots ,\,x_{m-1}]-[x_{m},\,x_{0},\,x_{1},\dots ,\,x_{m-1}]}{x-x_{m}}}\\&={\frac {P_{n-m}(x)-P_{n-m}(x_{m})}{x-x_{m}}}=P_{n-(m+1)}(x),\end{aligned}}}
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
{\displaystyle ..................................}
[
x
,
x
0
,
x
1
,
…
,
x
n
]
=
P
0
(
x
)
−
P
0
(
x
n
)
x
−
x
n
=
C
−
C
x
−
x
n
≡
0.
{\displaystyle [x,\,x_{0},\,x_{1},\dots ,\,x_{n}]={\frac {P_{0}(x)-P_{0}(x_{n})}{x-x_{n}}}={\frac {C-C}{x-x_{n}}}\equiv 0.\qquad {}}
c.n.d.
Z powyższych związków wynika następująca formuła rekurencyjna
P
n
−
m
(
x
)
=
P
n
−
m
(
x
m
)
+
P
n
−
(
m
+
1
)
(
x
)
(
x
−
x
m
)
,
{\displaystyle P_{n-m}(x)=P_{n-m}(x_{m})+P_{n-(m+1)}(x)(x-x_{m}),}
dzięki której otrzymujemy uogólnioną formułę Newtona dla węzłów nierówno odległych [1]
P
n
(
x
)
=
P
n
(
x
0
)
+
P
n
−
1
(
x
)
(
x
−
x
0
)
=
P
n
(
x
0
)
+
P
n
−
1
(
x
1
)
(
x
−
x
0
)
+
P
n
−
2
(
x
2
)
(
x
−
x
0
)
(
x
−
x
1
)
…
+
P
n
−
m
(
x
m
)
(
x
−
x
0
)
(
x
−
x
1
)
…
(
x
−
x
m
−
1
)
…
+
P
0
(
x
n
)
(
x
−
x
0
)
(
x
−
x
1
)
…
(
x
−
x
n
−
1
)
+
0
⋅
(
x
−
x
0
)
(
x
−
x
1
)
…
(
x
−
x
n
)
,
{\displaystyle {\begin{aligned}P_{n}(x)=P_{n}(x_{0})&+P_{n-1}(x)(x-x_{0})\\[1ex]=P_{n}(x_{0})&+P_{n-1}(x_{1})(x-x_{0})\\[1ex]&+P_{n-2}(x_{2})(x-x_{0})(x-x_{1})\\[1ex]&\ldots \\[1ex]&+P_{n-m}(x_{m})(x-x_{0})(x-x_{1})\ldots \,(x-x_{m-1})\\[1ex]&\ldots \\[1ex]&+P_{0}(x_{n})(x-x_{0})(x-x_{1})\ldots \,(x-x_{n-1})\\[1ex]&+0\cdot (x-x_{0})(x-x_{1})\ldots \,(x-x_{n}),\end{aligned}}}
gdzie:
P
n
−
m
(
x
)
=
[
x
,
x
0
,
x
1
,
…
,
x
m
−
1
]
,
m
=
1
,
2
,
…
,
n
.
{\displaystyle P_{n-m}(x)=[x,\,x_{0},\,x_{1},\dots ,\,x_{m-1}],\quad m=1,2,\dots ,n.}
Dany jest zbiór wartości rzędnych
y
0
,
y
1
,
…
,
y
n
{\displaystyle y_{0},\,y_{1},\dots ,\,y_{n}}
monotonicznej funkcji
y
=
f
(
x
)
,
{\displaystyle y=f(x),}
określonych na zbiorze węzłów
x
0
,
x
1
,
…
,
x
n
.
{\displaystyle x_{0},\,x_{1},\dots ,\,x_{n}.}
Interpolacja odwrotna polega na tym[1] , aby obliczyć taką wartość argumentu
x
∈
[
x
0
,
x
1
]
{\displaystyle x\in [x_{0},\,x_{1}]}
funkcji
f
(
x
)
,
{\displaystyle f(x),}
która odpowiada jej danej wartości
y
∈
[
y
0
,
y
1
]
.
{\displaystyle y\in [y_{0},\,y_{1}].}
Interpolację taką najczęściej stosuje się wtedy, gdy wartości funkcji
f
(
x
)
{\displaystyle f(x)}
dane są za pomocą tablicy zawierającej wartości jej rzędnych
y
i
,
i
=
0
,
1
,
…
,
n
.
{\displaystyle y_{i},\;i=0,1,\dots ,n.}
W przypadku węzłów równoodległych funkcję
y
=
f
(
x
)
{\displaystyle y=f(x)}
można interpolować wielomianem Newtona o postaci
y
=
y
0
+
Δ
y
0
1
!
q
+
Δ
2
y
0
2
!
q
(
q
−
1
)
+
…
+
Δ
n
y
0
n
!
q
(
q
−
1
)
…
(
q
−
n
+
1
)
,
{\displaystyle y=y_{0}+{\frac {\Delta y_{0}}{1!}}q+{\frac {\Delta ^{2}y_{0}}{2!}}q(q-1)+\ldots +{\frac {\Delta ^{n}y_{0}}{n!}}q(q-1)\ldots \,(q-n+1),}
gdzie:
q
=
x
−
x
0
h
.
{\displaystyle q={\frac {x-x_{0}}{h}}.}
Zadanie interpolacji odwrotnej rozwiązuje się metodą iteracyjną kolejnych przybliżeń, przy czym korzysta się ze wzoru
q
=
φ
(
q
)
,
{\displaystyle q=\varphi (q),}
w którym
φ
(
q
)
=
y
−
y
0
Δ
y
0
−
Δ
2
y
0
2
!
Δ
y
0
q
(
q
−
1
)
…
−
Δ
n
y
0
n
!
Δ
y
0
q
(
q
−
1
)
…
(
q
−
n
+
1
)
.
{\displaystyle {\begin{aligned}\varphi (q)&={\frac {y-y_{0}}{\Delta y_{0}}}\\[1ex]&-{\frac {\Delta ^{2}y_{0}}{2!\Delta y_{0}}}q(q-1)\\&\ldots \\&-{\frac {\Delta ^{n}y_{0}}{n!\Delta y_{0}}}q(q-1)\ldots \,(q-n+1).\end{aligned}}}
Jako pierwsze przybliżenie przyjmuje się wartość
q
0
=
y
−
y
0
Δ
y
0
,
{\displaystyle q_{0}={\frac {y-y_{0}}{\Delta y_{0}}},}
a następne przybliżenia otrzymuje się iteracyjnie według wzoru
q
m
=
φ
(
q
m
−
1
)
,
m
=
1
,
2
,
…
{\displaystyle q_{m}=\varphi (q_{m-1}),\quad m=1,2,\dots }
aż do osiągnięcia wymaganej dokładności. Poszukiwaną wartość
x
{\displaystyle x}
oblicza się według wzoru
x
=
x
0
+
q
h
.
{\displaystyle x=x_{0}+qh.}
W przypadku, gdy węzły nie są równoodległe wartość
x
,
{\displaystyle x,}
można obliczyć, stosując formułę Newtona o postaci[1]
x
=
x
0
+
[
y
0
,
y
1
]
(
y
−
y
0
)
+
[
y
0
,
y
1
,
y
2
]
(
y
−
y
0
)
(
y
−
y
1
)
…
+
[
y
0
,
y
1
,
…
y
n
]
(
y
−
y
0
)
(
y
−
y
1
)
…
(
y
−
y
n
−
1
)
.
{\displaystyle {\begin{aligned}x=x_{0}&+[y_{0},\,y_{1}](y-y_{0})\\[1ex]&+[y_{0},\,y_{1},\,y_{2}](y-y_{0})(y-y_{1})\\[1ex]&\ldots \\[1ex]&+[y_{0},\,y_{1},\dots y_{n}](y-y_{0})(y-y_{1})\ldots \,(y-y_{n-1}).\end{aligned}}}
Wartość wyznacznika:
det
(
A
−
λ
E
)
{\displaystyle \det(A-\lambda E)}
edytuj
Wyznacznik charakterystyczny (wiekowy)
D
(
λ
)
=
det
(
A
−
λ
E
)
{\displaystyle D(\lambda )=\det(A-\lambda E)}
macierzy
A
(
n
×
n
)
{\displaystyle A(n\times n)}
jest funkcją parametru
λ
,
{\displaystyle \lambda ,}
którą można interpolować na zbiorze węzłów równoodleglych
λ
i
=
i
,
i
=
0
,
1
,
2
,
…
,
n
{\displaystyle \lambda _{i}=i,\;i=0,1,2,\dots ,n}
za pomocą formuły Newtona o postaci
D
(
λ
)
=
D
(
0
)
+
∑
i
=
1
n
Δ
i
D
(
0
)
i
!
λ
(
λ
−
1
)
,
…
,
(
λ
−
i
+
1
)
,
{\displaystyle D(\lambda )=D(0)+\sum _{i=1}^{n}{\frac {\Delta ^{i}D(0)}{i!}}\lambda (\lambda -1),\dots ,(\lambda -i+1),}
gdzie:
Δ
i
D
(
λ
)
{\displaystyle \Delta ^{i}D(\lambda )}
jest różnicą skończoną i -tego rzędu funkcji
D
(
λ
)
.
{\displaystyle D(\lambda ).}
Po uwzględnieniu tożsamości[2]
λ
(
λ
−
1
)
…
(
λ
−
i
+
1
)
i
!
=
∑
m
=
1
i
c
m
i
λ
m
{\displaystyle {\frac {\lambda (\lambda -1)\ldots \,(\lambda -i+1)}{i!}}=\sum _{m=1}^{i}c_{mi}\lambda ^{m}}
otrzymujemy wzór Markowa[1]
D
(
λ
)
=
D
(
0
)
+
∑
m
=
1
n
λ
m
∑
i
=
m
n
c
m
i
Δ
i
D
(
0
)
.
{\displaystyle D(\lambda )=D(0)+\sum _{m=1}^{n}\lambda ^{m}\sum _{i=m}^{n}c_{mi}\Delta ^{i}D(0).}
W przypadku, gdy
λ
i
=
a
+
i
h
,
i
=
0
,
1
,
2
,
…
,
n
,
{\displaystyle \lambda _{i}=a+ih,\;i=0,1,2,\dots ,n,}
wzór ten przybiera postać
D
(
λ
)
=
D
(
a
)
+
∑
m
=
1
n
(
λ
−
a
)
m
∑
i
=
m
n
c
m
i
h
i
Δ
i
D
(
a
)
.
{\displaystyle D(\lambda )=D(a)+\sum _{m=1}^{n}(\lambda -a)^{m}\sum _{i=m}^{n}c_{mi}h^{i}\Delta ^{i}D(a).}
W przypadku, gdy funkcja dwu zmiennych
z
=
f
(
x
,
y
)
{\displaystyle z=f(x,y)}
jest określona za pomocą tablicy jej wartości
z
i
j
,
{\displaystyle z_{ij},}
można zdefiniować dwoiste różnice skończone pierwszego rzędu
Δ
x
z
i
j
=
z
i
+
1
,
j
−
z
i
j
,
Δ
y
z
i
j
=
z
i
,
j
+
1
−
z
i
j
{\displaystyle \Delta _{x}z_{ij}=z_{i+1,j}-z_{ij},\quad \Delta _{y}z_{ij}=z_{i,j+1}-z_{ij}}
i wyższych rzędów
Δ
m
+
n
z
i
j
=
Δ
x
m
y
n
m
+
n
z
i
j
=
Δ
x
m
m
(
Δ
y
n
n
z
i
j
)
=
Δ
x
n
n
(
Δ
y
m
m
z
i
j
)
,
{\displaystyle {\begin{aligned}&\Delta ^{m+n}z_{ij}\\[2px]={}&\Delta _{x^{m}y^{n}}^{m+n}z_{ij}\\[2px]={}&\Delta _{x^{m}}^{m}\left(\Delta _{y^{n}}^{n}z_{ij}\right)\\[2px]={}&\Delta _{x^{n}}^{n}\left(\Delta _{y^{m}}^{m}z_{ij}\right),\end{aligned}}}
przy czym
Δ
0
+
0
z
i
j
=
0.
{\displaystyle \Delta ^{0+0}z_{ij}=0.}
Na przykład
Δ
1
+
2
z
i
j
=
Δ
x
(
Δ
y
y
2
z
i
j
)
=
Δ
x
(
z
i
,
j
+
2
−
2
z
i
,
j
+
1
+
z
i
j
)
=
(
z
i
+
1
,
j
+
2
−
2
z
i
+
1
,
j
+
1
+
z
i
+
1
,
j
)
−
(
z
i
,
j
+
2
−
2
z
i
,
j
+
1
+
z
i
j
)
.
{\displaystyle {\begin{aligned}\Delta ^{1+2}z_{ij}&=\Delta _{x}(\Delta _{yy}^{2}z_{ij})\\[1ex]&=\Delta _{x}(z_{i,j+2}-2z_{i,j+1}+z_{ij})\\[1ex]&=(z_{i+1,j+2}-2z_{i+1,j+1}+z_{i+1,j})-(z_{i,j+2}-2z_{i,j+1}+z_{ij}).\end{aligned}}}
Dla funkcji dwu zmiennych
z
=
f
(
x
,
y
)
{\displaystyle z=f(x,y)}
można zbudować wielomian interpolacyjny Newtona
P
(
x
,
y
)
{\displaystyle P(x,y)}
taki, że
Δ
x
m
y
n
m
+
n
P
(
x
0
,
y
0
)
=
Δ
m
+
n
f
(
x
0
,
y
0
)
=
Δ
m
+
n
z
00
,
m
,
n
=
0
,
1
,
2
,
…
{\displaystyle \Delta _{x^{m}y^{n}}^{m+n}P(x_{0},y_{0})=\Delta ^{m+n}f(x_{0},y_{0})=\Delta ^{m+n}z_{00},\;\;m,n=0,1,2,\dots }
Wielomian ten ma następującą postać
P
(
x
,
y
)
=
c
00
+
c
10
(
x
−
x
0
)
+
c
01
(
y
−
y
0
)
+
c
20
(
x
−
x
0
)
(
x
−
x
1
)
+
c
11
(
x
−
x
0
)
(
y
−
y
0
)
+
c
02
(
y
−
y
0
)
(
y
−
y
1
)
…
{\displaystyle {\begin{aligned}P(x,y)=c_{00}&+c_{10}(x-x_{0})\\[1ex]&+c_{01}(y-y_{0})\\[1ex]&+c_{20}(x-x_{0})(x-x_{1})\\[1ex]&+c_{11}(x-x_{0})(y-y_{0})\\[1ex]&+c_{02}(y-y_{0})(y-y_{1})\\[1ex]&\ldots \end{aligned}}}
Podstawiając
x
=
x
0
,
y
=
y
0
,
{\displaystyle x=x_{0},\,y=y_{0},}
otrzymujemy
P
(
x
0
,
y
0
)
=
z
00
=
c
00
,
{\displaystyle P(x_{0},y_{0})=z_{00}=c_{00},}
a na podstawie różnic pierwszego rzędu
Δ
x
P
(
x
,
y
)
=
c
10
h
+
2
c
20
h
(
x
−
x
0
)
+
c
11
h
(
y
−
y
0
)
+
…
,
{\displaystyle \Delta _{x}P(x,y)=c_{10}h+2c_{20}h(x-x_{0})+c_{11}h(y-y_{0})+\dots ,}
Δ
y
P
(
x
,
y
)
=
c
01
k
+
c
11
k
(
x
−
x
0
)
+
2
c
02
k
(
y
−
y
0
)
+
…
,
{\displaystyle \Delta _{y}P(x,y)=c_{01}k+c_{11}k(x-x_{0})+2c_{02}k(y-y_{0})+\dots ,}
po podstawieniu
x
=
x
0
,
y
=
y
0
{\displaystyle x=x_{0},\;y=y_{0}}
Δ
x
P
(
x
0
,
y
0
)
=
Δ
1
+
0
z
00
=
c
10
h
,
{\displaystyle \Delta _{x}P(x_{0},y_{0})=\Delta ^{1+0}z_{00}=c_{10}h,}
Δ
y
P
(
x
0
,
y
0
)
=
Δ
0
+
1
z
00
=
c
01
k
.
{\displaystyle \Delta _{y}P(x_{0},y_{0})=\Delta ^{0+1}z_{00}=c_{01}k.}
Stąd otrzymujemy
c
10
=
Δ
1
+
0
z
00
h
,
c
01
=
Δ
0
+
1
z
00
k
.
{\displaystyle c_{10}={\frac {\Delta ^{1+0}z_{00}}{h}},\quad c_{01}={\frac {\Delta ^{0+1}z_{00}}{k}}.}
Ze wzorów na różnice drugiego rzędu
Δ
x
x
P
(
x
,
y
)
=
2
!
c
20
h
2
+
…
{\displaystyle \Delta _{xx}P(x,y)=2!c_{20}h^{2}+\ldots }
Δ
x
y
P
(
x
,
y
)
=
c
11
h
k
+
…
{\displaystyle \Delta _{xy}P(x,y)=c_{11}hk+\ldots }
Δ
y
y
P
(
x
,
y
)
=
2
!
c
02
k
2
+
…
{\displaystyle \Delta _{yy}P(x,y)=2!c_{02}k^{2}+\ldots }
wynika, po podstawieniu
x
=
x
0
,
y
=
y
0
,
{\displaystyle x=x_{0},\;y=y_{0},}
że
Δ
x
x
P
(
x
,
y
)
=
2
!
c
20
h
2
,
{\displaystyle \Delta _{xx}P(x,y)=2!c_{20}h^{2},}
Δ
x
y
P
(
x
,
y
)
=
c
11
h
k
,
{\displaystyle \Delta _{xy}P(x,y)=c_{11}hk,}
Δ
y
y
P
(
x
,
y
)
=
2
!
c
02
k
2
,
{\displaystyle \Delta _{yy}P(x,y)=2!c_{02}k^{2},}
a stąd
c
20
=
1
2
!
Δ
2
+
0
z
00
h
2
,
c
11
=
Δ
1
+
1
z
00
h
k
,
c
02
=
1
2
!
Δ
0
+
2
z
00
k
2
.
{\displaystyle c_{20}={\frac {1}{2!}}{\frac {\Delta ^{2+0}z_{00}}{h^{2}}},\;\;c_{11}={\frac {\Delta ^{1+1}z_{00}}{hk}},\;\;c_{02}={\frac {1}{2!}}{\frac {\Delta ^{0+2}z_{00}}{k^{2}}}.}
Ostatecznie wielomian interpolacyjny przybiera postać
P
(
x
,
y
)
=
z
00
+
[
Δ
1
+
0
z
00
h
(
x
−
x
0
)
+
Δ
0
+
1
z
00
k
(
y
−
y
0
)
]
+
1
2
!
[
Δ
2
+
0
z
00
h
2
(
x
−
x
0
)
2
+
2
Δ
1
+
1
z
00
h
k
(
x
−
x
0
)
(
y
−
y
0
)
+
Δ
0
+
2
z
00
k
2
(
y
−
y
0
)
2
]
…
{\displaystyle {\begin{aligned}P(x,y)=z_{00}&+\left[{\frac {\Delta ^{1+0}z_{00}}{h}}(x-x_{0})+{\frac {\Delta ^{0+1}z_{00}}{k}}(y-y_{0})\right]\\&+{\frac {1}{2!}}\left[{\frac {\Delta ^{2+0}z_{00}}{h^{2}}}(x-x_{0})^{2}+2{\frac {\Delta ^{1+1}z_{00}}{hk}}(x-x_{0})(y-y_{0})+{\frac {\Delta ^{0+2}z_{00}}{k^{2}}}(y-y_{0})^{2}\right]\\[1ex]&\ldots \end{aligned}}}
Dla wygody obliczeń wprowadza się nowe zmienne
p
=
x
−
x
0
h
,
q
=
y
−
y
0
k
,
x
−
x
1
h
=
p
−
1
,
y
−
y
1
k
=
q
−
1
{\displaystyle p={\frac {x-x_{0}}{h}},\;q={\frac {y-y_{0}}{k}},\;{\frac {x-x_{1}}{h}}=p-1,\;{\frac {y-y_{1}}{k}}=q-1}
i wtedy
P
(
p
,
q
)
=
z
00
+
(
p
Δ
1
+
0
z
00
+
q
Δ
0
+
1
z
00
)
+
1
2
!
[
p
(
p
−
1
)
Δ
2
+
0
z
00
+
2
p
q
Δ
1
+
1
z
00
+
q
(
q
−
1
)
Δ
0
+
2
z
00
]
…
{\displaystyle {\begin{aligned}P(p,q)=z_{00}&+(p\Delta ^{1+0}z_{00}+q\Delta ^{0+1}z_{00})\\[1ex]&+{\frac {1}{2!}}\left[p(p-1)\Delta ^{2+0}z_{00}+2pq\Delta ^{1+1}z_{00}+q(q-1)\Delta ^{0+2}z_{00}\right]\\[1ex]&\ldots \end{aligned}}}
↑ a b c d e f g B.P. Demidowicz, I.A. Maron, Metody numeryczne , PWN, Warszawa 1965.
↑ a b W.N. Faddiejewa, Metody numeryczne algebry liniowej , PWN, Warszawa 1955.