Lab 15 · Lecture 15 · Finite Differences and Operators
Difference Table Lab
Build difference tables for your own data, read off the degree, and find errors and missing values.
Type equally spaced data. Switch between the forward diagonal (Δ, used near the start) and the backward diagonal (∇, used near the end).
Add an error ε to one entry and watch how it spreads. Then hide it: can a classmate find which entry you changed?
Q1 Show that E=ehD.
By Taylor's series,
Ef(x)=f(x+h)=f(x)+hf′(x)+2!h2f′′(x)+⋯=(1+hD+2!(hD)2+⋯)f(x)=ehDf(x).
Q2 Prove that Δ−∇=Δ∇.
Both sides equal
E−2+E−1:
Δ−∇=(E−1)−(1−E−1) and
Δ∇=(E−1)(1−E−1).
Q3 Prove that μ2=1+41δ2.
μ2=41(E1/2+E−1/2)2=41(E+2+E−1) and
δ2=E−2+E−1, so
μ2−41δ2=41⋅4=1.
Q4 Find the missing term in 1,3,9,?,81 assuming a cubic.
Δ4y0=0:
81−4y3+54−12+1=0, so
y3=31.
Q5 Evaluate Δ2(x3) with h=1.
Δx3=(x+1)3−x3=3x2+3x+1;
Δ2x3=3(2x+1)+3=6x+6.