09.12.2012 Views

Concrete mathematics : a foundation for computer science

Concrete mathematics : a foundation for computer science

Concrete mathematics : a foundation for computer science

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Infinite calculus<br />

avoids E here by<br />

letting 1 -3 0.<br />

1 guess ex = 2”) <strong>for</strong><br />

small values of 1<br />

Table 55 What’s the difference?<br />

f = zg Af = g<br />

x0 = 1 0<br />

x1 = x 1<br />

x2=x(x-l) 2 x<br />

mxti<br />

XB<br />

xmf'/(m+l) x=<br />

HX x-‘= l/(x+1)<br />

2.6 FINITE AND INFINITE CALCULUS 55<br />

f=Lg Af = g<br />

2" 2"<br />

CX (c - 1 )cX<br />

c"/(c-1) cx<br />

cf cAf<br />

f+g Af+Ag<br />

f g<br />

fAg + EgAf<br />

after integration and rearranging terms; we can do a similar thing in finite<br />

calculus.<br />

We start by applying the difference operator to the product of two functions<br />

u(x) and v(x):<br />

A@(x) v(x)) = u(x+l) v(x+l) - u(x) v(x)<br />

= u(x+l)v(x+l)-u(x)v(x+l)<br />

+u(x)v(x+l)-u(x)v(x)<br />

= u(x) Av(x) + v(x+l) Au(x). (2.54)<br />

This <strong>for</strong>mula can be put into a convenient <strong>for</strong>m using the shij?! operator E,<br />

defined by<br />

Ef(x) = f(x+l).<br />

Substituting this <strong>for</strong> v(x+l) yields a compact rule <strong>for</strong> the difference of a<br />

product:<br />

A(uv) = uAv + EvAu. (2.55)<br />

(The E is a bit of a nuisance, but it makes the equation correct.) Taking<br />

the indefinite sum on both sides of this equation, and rearranging its terms,<br />

yields the advertised rule <strong>for</strong> summation by parts:<br />

ix uAv = uv- t EvAu. (2.56)<br />

As with infinite calculus, limits can be placed on all three terms, making the<br />

indefinite sums definite.<br />

This rule is useful when the sum on the left is harder to evaluate than the<br />

one on the right. Let’s look at an example. The function s xe’ dx is typically<br />

integrated by parts; its discrete analog is t x2’ 6x, which we encountered<br />

earlier this chapter in the <strong>for</strong>m xt=, k2k. To sum this by parts, we let

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!