CSCE 411 Lecture 39

From Notes
Jump to navigation Jump to search
Lecture Slides

« previous | Friday, November 30, 2012 | next »


Calculus of Finite Differences (cont'd)

Calculus for Computer Scientists!

Difference Operator

Equivalent to differential operator ddx:

Δf(x)=f(x+1)−f(x)Δnm_=mnm−1_Δcn=(c−1)cn

where the falling power nm_ is defined as nm_=n(n−1)(n−2)…(n−m+2)(n−m+1).

Antidifference Operator

Analogous to indefinite integrals

Δf(n)=g(n)g(n)=nm_⟹f(n)=1m+1nm+1_g(n)=cn⟹f(n)=1c+1cn

Operator given as an indefinite sum:

∑f(n)δn

What about n−1_?

∑n−1_δn=Hn=1+12+…+1n

Thus the harmonic number plays the role of a discrete logarithm.


Fundamental Theorem of FDC

Let f(n) be an antidifference of g(n). Then

∑n=abg(n)=f(b+1)−f(a)


Example

∑n=564cn=1c−1cn|565=c65−c5c−1


Linearity

Δ(af(n)+bg(n))=a(Δf(n))+b(Δg(n))∑(af(n)+bg(n)δn=a(∑f(n)δn)+b(∑g(n)δn)

Example

Find a closed form for the sum ∑k=1nk2.

∑k2δk=∑(k2_+k1_)δk=13k3_+12k2_∑k=1n=13k3_+12k2_|1n+1

Binomial Coefficients

Δ(nk+1)=(nk)∑(nk)δn=(nk+1)

Example

∑n=0m(nk)=(m+1k+1)−(0k+1)=(m+1k+1)


Partial Summation

∑f(n)(Δg(n))δn=f(n)g(n)−∑(Δf(n))Eg(n)

The Product Rule

Δ(f(n)g(n))=f(n+1)g(n+1)−f(n)g(n)=f(n+1)g(n+1)−f(n)g(n+1)+f(n)g(n+1)−f(n)g(n)=(Δf(n))g(n+1)+f(n)(Δg(n))=(Δf(n))Eg(n)+f(n)(Δg(n))

Example

∑k=0nk2k=k2k|0n+1−∑k=0n1⋅2k+1=k2k+2k+1|0n+1

References

  • D. Gleich: Finite Calculus: A tutorial for solving Nasty Sums
  • Graham, Knuth, Patashnik: Concrete Mathematics, Addison Wesley
  • Ch. Jordan: Calculus of finite differences, AMS Chelsea, 1965