Sunday, 15 January 2012

Generating functions part 1: by differentiation on GS

Happy new year and hope all of you success in 2012.

In the summation of geometric series, the method of expanding terms is quite complicated and you might wonder if there's a faster way to do it, we call that the method of generating functions, through differentiation.

We all know that r=112r=1 and nr=112r=112n. Now we try to differentiate both side once. However we can directly use a generalized result to be differentiated:

r=0xr=11x where |x| < 1.
Now differentiate both side once, we can state r as constant just like when we do explicit differentiation or partial differentiation:
r=1rxr1=1(1x)2. Note that the original term for r=0 is eliminated since d1dx=0. The recent term for r=1 is from dxdx=1 the original term r=1.

Therefore we have r=0rxr1=1(1x)2.

(From now on it's infinite sum from r=1.)

Note that rxr=rxr1xr, we have rxr=(1x)2(1x)1=x(1x)2.

Check by x = 0.5:
rxr=12+24+38+...=0.5(10.5)2=2 which is correct.

Now let's differentiate it once again:
rxr=x(1x)2
r2xr1=x+1(1x)3
Now aware that r2xr=r2xr1(2r+1)xr=x+1(1x)32x(1x)211x
Which gives r2xr=x(x+1)(1x)3.
As we have discussed before, for x = 0.5, r2(0.5)r=6
Now check 0.5(0.5+1)(10.5)3=6 which is correct as well.

Here's another method to derive the geometric sum:
Consider the expression (r+1)xr we have two equlity against it:
1) (r+1)xr=x1rxr1
2) (r+1)xr=rxr+xr1
Now comparing both sides:
(1x1)rxr=11x, rxr=x(1x)2

Similarly, consider (r+1)2xr,
x1r2xr1=r2xr+2rxr+xr1
(1x1)r2xr=2x(1x)2+11x
r2xr=x(x+1)(1x)3 which is the same result as above.

Exercise:
1) Compute the followings: (Typical A-level questions)
Cnr2r, nCnr2r, n3Cnr2r, summation from 0 to n.
2) Show that ni=1i(Cni)2n+1i=n(2n)!(n+1)(n!)2 (HKALE Pure 2007 I 1b)
3) Compute the infinite sum xrr where x[1,1]

No comments:

Post a Comment