Forward difference operators and Newton series #
We define the forward difference operator, sending f
to the function x ↦ f (x + h) - f x
for
a given h
(for any additive semigroup, taking values in an abelian group). The notation Δ_[h]
is
defined for this operator, scoped in namespace fwdDiff
.
We prove two key formulae about this operator:
shift_eq_sum_fwdDiff_iter
: the Gregory-Newton formula, expressingf (y + n • h)
as a linear combination of forward differences off
aty
, forn ∈ ℕ
;fwdDiff_iter_eq_sum_shift
: formula expressing then
-th forward difference off
aty
as a linear combination off (y + k • h)
for0 ≤ k ≤ n
.
We also prove some auxiliary results about iterated forward differences of the function
n ↦ n.choose k
.
Forward-difference and shift operators as linear endomorphisms #
This section contains versions of the forward-difference operator and the shift operator bundled as
ℤ
-linear endomorphisms. These are useful for certain proofs; but they are slightly annoying to
use, as the source and target types of the maps have to be specified each time, and various
coercions need to be un-wound when the operators are applied, so we also provide the un-bundled
version.
Linear-endomorphism version of the forward difference operator.
Equations
- fwdDiff_aux.fwdDiffₗ M G h = { toFun := fwdDiff h, map_add' := ⋯, map_smul' := ⋯ }
Instances For
Linear-endomorphism version of the shift-by-1 operator.
Equations
- fwdDiff_aux.shiftₗ M G h = fwdDiff_aux.fwdDiffₗ M G h + 1
Instances For
Express the n
-th forward difference of f
at y
in terms of the values f (y + k)
, for
0 ≤ k ≤ n
.
Gregory-Newton formula expressing f (y + n • h)
in terms of the iterated forward differences
of f
at y
.