Docsity

CS161: Data Structures and Algorithms Handout # 6, Summaries of Data Structures and Algorithms

Partial preview of the text

Download CS161: Data Structures and Algorithms Handout # 6 and more Summaries Data Structures and Algorithms in PDF only on Docsity!

CS161: Data Structures and Algorithms Handout # 6

Stanford University Tuesday, 18 January 2000

The following is a copy of the Theoretical Computer Science Cheat Sheet by

Seiden, from the December 1996 issue of ACM Sigact News.

De nitions Series

f (n) = O (g (n)) i 9 p ositive c; n 0 such that

0  f (n)  cg (n) 8 n  n 0.

X^ n

i=

i =

n(n + 1) 2

X^ n

i=

i^2 =

n(n + 1)(2n + 1) 6

X^ n

i=

i^3 =

n^2 (n + 1)^2 4

In general:

X^ n

i=

im^ =

m + 1

(n + 1)m+1^ 1

Xn

i=

(i + 1)m+1^ im+1^ (m + 1)im^

nX 1

i=

im^ =

m + 1

X^ m

k =

m + 1 k

Bk nm+1k^ :

Geometric series:

X^ n

i=

ci^ =

cn+1^ 1

c 1

; c 6 = 1 ;

X^1

i=

ci^ =

1 c

X^1

i=

ci^ =

c

1 c

; c < 1 ;

X^ n

i=

ici^ =

ncn+2^ (n + 1)cn+1^ + c

(c 1)^2

; c 6 = 1 ;

X^1

i=

ici^ =

c

(1 c)^2

; c < 1 :

Harmonic series:

Hn =

X^ n

i=

i

X^ n

i=

iHi =

n(n + 1) 2

Hn

n(n 1)

X^ n

i=

Hi = (n + 1)Hn n;

X^ n

i=

i m

Hi =

n + 1 m + 1

Hn+1

m + 1

f (n) = (g (n)) i 9 p ositive c; n 0 such that

f (n)  cg (n)  0 8 n  n 0.

f (n) = (g (n)) i f (n) = O (g (n)) and f (n) = (g (n)).

f (n) = o(g (n)) i limn!1 f (n)=g (n) = 0. lim n!

an = a i 8  2 R, 9 n 0 such that

jan aj < , 8 n  n 0.

sup S least b 2 R such that b  s,

8 s 2 S.

inf S greatest b 2 R such that b 

s, 8 s 2 S.

lim inf n! an lim n!

inf fai j i  n; i 2 Ng.

lim sup n!

an lim n!

sup fai j i  n; i 2 Ng.

n

k

Combinations: Size k sub- sets of a size n set.

 n

k

Stirling numb ers (1st kind): Arrangements of an n ele- ment set into k cycles.

n k

n!

(n k )!k!

X^ n

k =

n k

= 2 n^ ; 3.

n k

n

n k

n k

n k

n 1

k 1

n k

n 1

k

n 1

k 1

n m

m k

n k

n k

m k

X

k n

r + k k

r + n + 1 n

X^ n

k =

k m

n + 1 m + 1

X^ n

k =

r k

s

n k

r + s n

n k

= (1)k

k n 1

k

n 1

n n

n 2

= 2 n^1 1 ; 13.

n k

= k

n 1

k

n 1

k 1

 n

k Stirling^ numb^ ers^ (2nd^ kind): Partitions of an n element set into k non-empty sets. n k 1st^ order^ Eulerian^ numb^ ers: Permutations  1  2 : : : n on

f 1 ; 2 ; : : : ; ng with k ascents.

n k 2nd^ order^ Eulerian^ numb^ ers. Cn Catlan Numb ers: Binary trees with n + 1 vertices.

n 1

= (n 1)!; 15.

n 2

= (n 1)!Hn 1 ; 16.

n n

n k

n k

n k

= (n 1)

n 1

k

n 1

k 1

n

n 1

n

n 1

n 2

X^ n

k =

n k

= n!; 21. Cn =

n + 1

2 n n

n 0

n

n 1

n k

n

n 1 k

n k

= (k + 1)

n 1

k

+ (n k )

n 1

k 1

k

n

1 if k = 0, 0 otherwise

n 1

= 2 n^ n 1 ; 27.

n 2

= 3 n^ (n + 1)2n^ +

n + 1 2

  1. xn^ =

X^ n

k =

n k

x + k n

n m

X^ m

k =

n + 1 k

(m + 1 k )n^ (1)k^ ; 30. m!

n m

X^ n

k =

n k

k

n m

n m

X^ n

k =

n k

n k

m

(1)nk^ m^ k !; 32.

n 0

n n

= 0 for n 6 = 0 ;

n k

= (k + 1)

n 1

k

+ (2n 1 k )

n 1

k 1

X^ n

k =

n k

(2n)n 2 n^

x

x n

X^ n

k =

n k

x + n 1 k

2 n

n + 1 m + 1

X

k

n k

k m

X^ n

k =

k m

(m + 1)nk^ ;

  3 :14159, e  2 :71828,  0 :57721,  = 1+

p 5

2 ^1 :61803,^

^ = 1

p 5

2 ^ :^61803

i 2 i^ pi General Probability

1 2 2 Bernoulli Numb ers (Bi = 0, o dd i 6 = 1):

B 0 = 1, B 1 = 12 , B 2 = 16 , B 4 = 301 ,

B 6 = 421 , B 8 = 301 , B 10 = 665.

Change of base, quadratic formula:

logb x =

loga x loga b

b 

p

b^2 4 ac

2 a

Euler's numb er e:

e = 1 + 12 + 16 + 241 + 1201 +   

lim n!

x n

n

= ex^ :

1 + (^) n^1

n

< e <

1 + (^1) n

n+

1 + (^1) n

n

= e

e 2 n

11 e 24 n^2

O

n^3

Harmonic numb ers: 1, 32 , 116 , 2512 , 13760 , 4920 , 363140 , 761280 , 71292520 ; : : :

ln n < Hn < ln n + 1 ;

Hn = ln n + + O

n

Factorial, Stirling's approximation: 1, 2, 6, 24, 120, 720, 5040, 40320, 362880, : : :

n! =

p

2  n

n e

n 

n

Ackermann's function and inverse:

a(i; j ) =

2 j^ i = 1

a(i 1 ; 2) j = 1

a(i 1 ; a(i; j 1)) i; j  2

(i) = minfj j a(j; j )  ig:

Continuous distributions: If

Pr[a < X < b] =

Z b

a

p(x) dx;

then p is the probability density function of X. If Pr[X < a] = P (a); then P is the distribution function of X. If P and p b oth exist then

P (a) =

Z a

p(x) dx:

Exp ectation: If X is discrete E[g (X )] =

X

x

g (x) Pr [X = x]:

If X continuous then

E[g^ (X^ )]^ =

Z 1

g (x)p(x) dx =

Z 1

g (x) dP (x):

Variance, standard deviation:

VAR[X ] = E [X 2 ] E[X ]^2 ;

p

VAR[X ]:

Basics:

Pr[X _ Y ] = Pr[X ] + Pr[Y ] Pr [X ^ Y ]

Pr[X ^ Y ] = Pr[X ]  Pr [Y ];

i X and Y are indep endent.

Pr [X jY ] =

Pr[X ^ Y ]

Pr[B ]

E[X^ ^ Y^ ]^ =^ E[X^ ]^ ^ E[Y^ ];

i X and Y are indep endent. E [X^ +^ Y^ ]^ =^ E[X^ ]^ +^ E [Y^ ]; E[cX^ ]^ =^ c^ E[X^ ]: Bayes' theorem:

Pr [Ai jB ] =

Pr [B jAi ] Pr[Ai ]

Pn

j =1 Pr[Aj^ ]^ Pr[B^ jAj^ ]^

Inclusion-exclusion:

Pr

h _n

i=

Xi

i

X^ n

i=

Pr[Xi ] +

X^ n

k =

(1)k^ +^

X

ii <<ik

Pr

h ^k

j =

Xij

i

Moment inequalities:

Pr

jX j   E[X ]

Pr

h

X E[X ]    

i

^2

Geometric distribution:

Pr [X = k ] = pk^ ^1 q ; q = 1 p;

E[X ] =

X^1

k =

k pq k^ ^1 =

p

28 268,435,456 107 Binomial distribution:

Pr[X = k ] =

n k

pk^ q nk^ ; q = 1 p;

E[X^ ]^ =

X^ n

k = 1 k

n k

pk^ q nk^ = np:

Poisson distribution:

Pr[X = k ] =

e^ k k!

; E[X ] = :

Normal (Gaussian) distribution:

p(x) =

p

e(x)

(^2) = 2  2 ; (^) E [X ] = :

The \coup on collector": We are given a random coup on each day, and there are n di erent typ es of coup ons. The distribu- tion of coup ons is uniform. The exp ected numb er of days to pass b efore we to col- lect all n typ es is nHn :

Pascal's Triangle 1 1 1 1 2 1 1 3 3 1 1 4 6 4 1 1 5 10 10 5 1 1 6 15 20 15 6 1 1 7 21 35 35 21 7 1 1 8 28 56 70 56 28 8 1 1 9 36 84 126 126 84 36 9 1

1 10 45 120 210 252 210 120 45 10 1

Trigonometry Matrices More Trig.

A

c B

a

b C

(0,-1)

(0,1)

(-1,0) (1,0)

(cos  ; sin  ) 

Pythagorean theorem: C 2 = A^2 + B 2 :

De nitions: sin a = A=C ; cos a = B =C ; csc a = C =A; sec a = C =B ;

tan a =

sin a cos a

A

B

; cot a =

cos a sin a

B

A

Area, radius of inscrib ed circle: 1 2 AB^ ;^

AB

A + B + C

Identities:

sin x =

csc x

; cos x =

sec x

tan x =

cot x ; sin^2 x + cos 2 x = 1 ;

1 + tan^2 x = sec 2 x; 1 + cot^2 x = csc 2 x;

sin x = cos

2 ^ x

; sin x = sin( x);

cos x = cos ( x); tan x = cot

2 ^ x

cot x = cot ( x); csc x = cot x 2 cot x;

sin(x  y ) = sin x cos y  cos x sin y ;

cos(x  y ) = cos x cos y  sin x sin y ;

tan(x  y ) =

tan x  tan y

1  tan x tan y

cot(x  y ) =

cot x cot y  1

cot x  cot y

sin 2 x = 2 sin x cos x; sin 2 x =

2 tan x 1 + tan^2 x

cos 2 x = cos 2 x sin^2 x; cos 2 x = 2 cos^2 x 1 ;

cos 2 x = 1 2 sin^2 x; cos 2 x =

1 tan^2 x

1 + tan^2 x

tan 2 x =

2 tan x

1 tan^2 x

; cot 2 x =

cot^2 x 1

2 cot x

sin(x + y ) sin (x y ) = sin^2 x sin^2 y ;

cos(x + y ) cos (x y ) = cos 2 x sin^2 y :

Euler's equation:

eix^ = cos x + i sin x; ei^ = 1 :

Multiplication:

C = A  B ; ci;j =

X^ n

k =

ai;k bk ;j :

Determinants: det A = 0 i A is non-singular.

det A  B = det A  det B ;

det A =

X



Yn

i=

sign( )ai; (i) :

2  2 and 3  3 determinant:

a b c d

= ad bc;

a b c d e f g h i

= g b c e f

h

a c d f

  • i a b d e

aei + bf g + cdh

ceg f ha ibd:

Permanents:

p erm A =

X



Yn

i=

ai; (i) :

A

a

c

b

B

C

h

Law of cosines:

c^2 = a^2 +b^2 2 ab cos C :

Area:

A = 12 hc; = 12 ab sin C ;

=

c^2 sin A sin B 2 sin C

Heron's formula:

A =

p

s  sa  sb  sc ;

s = 12 (a + b + c);

sa = s a;

sb = s b;

sc = s c:

More identities:

sin x 2 =

r

1 cos x

cos x 2 =

r

1 + cos x 2

tan x 2 =

r

1 cos x

1 + cos x

1 cos x

sin x

sin x 1 + cos x

cot x 2 =

r

1 + cos x

1 cos x

1 + cos x sin x

sin x

1 cos x

sin x =

eix^ eix

2 i

cos x =

eix^ + eix 2

tan x = i

eix^ eix

eix^ + eix^

= i

e^2 ix^ 1

e^2 ix^ + 1

sin x =

sinh ix i

cos x = cosh ix;

tan x = tanh ix i

Hyp erb olic Functions De nitions:

sinh x =

ex^ ex

; cosh x =

ex^ + ex 2

tanh x =

ex^ ex

ex^ + ex^

; csch x =

sinh x

sech x =

cosh x

; coth x =

tanh x

Identities:

cosh 2 x sinh^2 x = 1 ; tanh^2 x + sech 2 x = 1 ;

coth 2 x csch 2 x = 1 ; sinh(x) = sinh x;

cosh (x) = cosh x; tanh(x) = tanh x;

sinh(x + y ) = sinh x cosh y + cosh x sinh y ;

cosh (x + y ) = cosh x cosh y + sinh x sinh y ;

sinh 2 x = 2 sinh x cosh x;

cosh 2 x = cosh^2 x + sinh^2 x;

cosh x + sinh x = ex^ ; cosh x sinh x = ex^ ;

(cosh x + sinh x)n^ = cosh nx + sinh nx; n 2 Z;

2 sinh^2 x 2 = cosh x 1 ; 2 cosh^2 x 2 = cosh x + 1 :

 sin  cos  tan  0 0 1 0  6

1 2

p 3 2

p 3 3  4

p 2 2

p 2 2 1  3

p 3 2

1 2

p



: : : in mathematics you don't under- stand things, you just get used to them. c (^1994) by Steve Seiden { J. von Neumann [email protected] http://www.ics.uci.edu/~sseiden

 Calculus

Wallis' identity:

Brouncker's continued fraction expansion:

 4 =^1 +^

2 2+ 52 2+ (^) 2+^72 

Gregrory's series: 

4 =^1 ^

1 3 +^

1

5 ^

1 7 +^

1

9 ^ ^ ^ 

Newton's series:

 6 =^

Sharp's series:

 6 =^

p

Euler's series:

 2 6 =^

1 12 +^

1 22 +^

1 32 +^

1 42 +^

1

52 +^ ^ ^ 

 2 8 =^

1 12 +^

1 32 +^

1 52 +^

1 72 +^

1

92 +^ ^ ^ 

 2 12 =^

1

12 ^

1 22 +^

1

32 ^

1 42 +^

1

52 ^ ^ ^ 

Derivatives:

d(cu) dx

= c

du dx

d(u + v ) dx

du dx

dv dx

d(uv ) dx

= u

dv dx

  • v

du dx

d(un^ ) dx

= nun^1

du dx

d(u=v ) dx

v

du

dx

u

dv

dx

v 2

d(ecu^ ) dx

= cecu^

du dx

d(cu^ ) dx

= (ln c)cu^

du dx

d(ln u) dx

u

du dx

d(sin u) dx = cos u

du dx

d(cos u) dx

= sin u

du dx

d(tan u) dx = sec 2 u

du dx

d(cot u) dx = csc 2 u

du dx

d(sec u) dx = tan u sec u

du dx

d(csc u) dx

= cot u csc u

du dx

d(arcsin u) dx

p

1 u^2

du dx

d(arccos u) dx

p

1 u^2

du dx

d(arctan u) dx

1 u^2

du dx

d(arccot u) dx

1 u^2

du dx

d(arcsec u) dx

u

p

1 u^2

du dx

d(arccsc u) dx

u

p

1 u^2

du dx

d(sinh u) dx

= cosh u

du dx

d(cosh u) dx

= sinh u

du dx

d(tanh u) dx

= sech 2 u

du dx

d(coth u) dx

= csch 2 u

du dx

d(sech u) dx

= sech u tanh u

du dx

d(csch u) dx

= csch u coth u

du dx

d(arcsinh u) dx

p

1 + u^2

du dx

d(arccosh u) dx

p

u^2 1

du dx

d(arctanh u) dx

1 u^2

du dx

d(arccoth u) dx

u^2 1

du dx

d(arcsech u) dx

u

p

1 u^2

du dx

d(arccsch u) dx

juj

p

1 + u^2

du dx

Integrals:

Z

cu dx = c

Z

u dx; 2.

Z

(u + v ) dx =

Z

u dx +

Z

v dx;

Z

xn^ dx =

n + 1

xn+1^ ; n 6 = 1 ; 4.

Z

x

dx = ln x; 5.

Z

ex^ dx = ex^ ;

Z

dx 1 + x^2 = arctan x; 7.

Z

u

dv dx

dx = uv

Z

v

du dx dx;

Z

sin x dx = cos x; 9.

Z

cos x dx = sin x;

Z

tan x dx = ln j cos xj; 11.

Z

cot x dx = ln j cos xj;

Z

sec x dx = ln j sec x + tan xj; 13.

Z

csc x dx = ln j csc x + cot xj;

Z

arcsin x a dx = arcsin x a +

p

a^2 x^2 ; a > 0 ;

Partial Fractions

Let N (x) and D (x) b e p olynomial func- tions of x. We can break down N (x)=D (x) using partial fraction expan- sion. First, if the degree of N is greater than or equal to the degree of D , divide N by D , obtaining N (x) D (x)

= Q(x) +

N 0 (x) D (x)

where the degree of N 0 is less than that of D. Second, factor D (x). Use the follow- ing rules: For a non-rep eated factor: N (x)

(x a)D (x)

A

x a

N 0 (x) D (x)

where

A =

N (x) D (x)

x=a

For a rep eated factor:

N (x)

(x a)m^ D (x)

mX 1

k =

Ak

(x a)mk^

N 0 (x) D (x)

where

Ak =

k!

dk dxk

N (x) D (x)

x=a

The reasonable man adapts himself to the world; the unreasonable p ersists in trying to adapt the world to himself. Therefore all progress dep ends on the unreasonable. { George Bernard Shaw

Calculus Cont.

Z

arccos x a dx = arccos x a

p

a^2 x^2 ; a > 0 ; 16.

Z

arctan x a dx = x arctan x a a 2 ln(a^2 + x^2 ); a > 0 ;

Z

sin^2 (ax)dx = (^21) a

ax sin(ax) cos (ax)

Z

cos 2 (ax)dx = (^21) a

ax + sin(ax) cos(ax)

Z

sec 2 x dx = tan x; 20.

Z

csc 2 x dx = cot x;

Z

sinn^ x dx =

sinn^1 x cos x n

n 1

n

Z

sinn^2 x dx; 22.

Z

cosn^ x dx =

cos n^1 x sin x n

n 1

n

Z

cosn^2 x dx;

Z

tann^ x dx =

tann^1 x

n 1

Z

tann^2 x dx; n 6 = 1 ; 24.

Z

cotn^ x dx =

cot n^1 x

n 1

Z

cotn^2 x dx; n 6 = 1 ;

Z

sec n^ x dx =

tan x sec n^1 x

n 1

n 2

n 1

Z

sec n^2 x dx; n 6 = 1 ;

Z

csc n^ x dx =

cot x csc n^1 x

n 1

n 2

n 1

Z

csc n^2 x dx; n 6 = 1 ; 27.

Z

sinh x dx = cosh x; 28.

Z

cosh x dx = sinh x;

Z

tanh x dx = ln j cosh xj; 30.

Z

coth x dx = ln j sinh xj; 31.

Z

sech x dx = arctan sinh x; 32.

Z

csch x dx = ln tanh x 2 ;

Z

sinh^2 x dx = 14 sinh(2x) 12 x; 34.

Z

cosh^2 x dx = 14 sinh (2x) + 12 x; 35.

Z

sech 2 x dx = tanh x;

Z

arcsinh x a dx = x arcsinh x a

p

x^2 + a^2 ; a > 0 ; 37.

Z

arctanh x a dx = x arctanh x a + a 2 ln ja^2 x^2 j;

Z

arccosh x a dx =

x arccosh

x a

p

x^2 + a^2 ; if arccosh x a > 0 and a > 0,

x arccosh

x a

p

x^2 + a^2 ; if arccosh x a < 0 and a > 0,

Z

dx

p

a^2 + x^2

= ln

x +

p

a^2 + x^2

; a > 0 ;

Z

dx a^2 + x^2

= (^1) a arctan x a ; a > 0 ; 41.

Z p

a^2 x^2 dx = x 2

p

a^2 x^2 + a

2 2 arcsin^

x a ;^ a^ >^0 ;

Z

(a^2 x^2 )^3 =^2 dx = x 8 (5a^2 2 x^2 )

p

a^2 x^2 + 3 a

4 8 arcsin^

x a ;^ a^ >^0 ;

Z

dx

p

a^2 x^2

= arcsin x a ; a > 0 ; 44.

Z

dx

a^2 x^2

2 a

ln

a + x

a x

Z

dx

(a^2 x^2 )^3 =^2

x a^2

p

a^2 x^2

Z p

a^2  x^2 dx = x 2

p

a^2  x^2  a

2 2 ln^ x^ +

p

a^2  x^2 ; 47.

Z

dx

p

x^2 a^2

= ln x +

p

x^2 a^2 ; a > 0 ;

Z

dx ax^2 + bx

a

ln

x a + bx

Z

x

p

a + bx dx =

2(3bx 2 a)(a + bx)^3 =^2

15 b^2

Z p

a + bx x

dx = 2

p

a + bx + a

Z

x

p

a + bx

dx; 51.

Z

x

p

a + bx

dx =

p

ln

p

a + bx

p

a

p

a + bx +

p

a

; a > 0 ;

Z p

a^2 x^2

x

dx =

p

a^2 x^2 a ln

a +

p

a^2 x^2

x

Z

x

p

a^2 x^2 dx = 13 (a^2 x^2 )^3 =^2 ;

Z

x^2

p

a^2 x^2 dx = x 8 (2x^2 a^2 )

p

a^2 x^2 + a

4 8 arcsin^

x a ;^ a^ >^0 ;^ 55.

Z

dx

p

a^2 x^2

= 1 a ln

a +

p

a^2 x^2

x

Z

x dx

p

a^2 x^2

p

a^2 x^2 ; 57.

Z

x^2 dx

p

a^2 x^2

= x 2

p

a^2 x^2 + a

2 2 arcsin^

x a; a^ >^0 ;

Z p

a^2 + x^2 x

dx =

p

a^2 + x^2 a ln

a +

p

a^2 + x^2 x

Z p

x^2 a^2

x

dx =

p

x^2 a^2 a arccos jaxj ; a > 0 ;

Z

x

p

x^2  a^2 dx = 13 (x^2  a^2 )^3 =^2 ; 61.

Z

dx x

p

x^2 + a^2

= (^1) a ln

x a +

p

a^2 + x^2

Series

Taylor's series:

f (x) = f (a) + (x a)f 0 (a) +

(x a)^2

f 00 (a) +    =

X^1

i=

(x a)i

i! f (i)^ (a):

Expansions: 1

1 x

= 1 + x + x^2 + x^3 + x^4 +    =

X^1

i=

xi^ ;

1

1 cx

= 1 + cx + c^2 x^2 + c^3 x^3 +    =

X^1

i=

ci^ xi^ ;

1

1 xn^

= 1 + xn^ + x^2 n^ + x^3 n^ +    =

X^1

i=

xni^ ;

x

(1 x)^2

= x + 2 x^2 + 3 x^3 + 4 x^4 +    =

X^1

i=

ixi^ ;

xk^ dn dxn

1 x

= x + 2 n^ x^2 + 3 n^ x^3 + 4 n^ x^4 +    =

X^1

i=

in^ xi^ ;

ex^ = 1 + x + 12 x^2 + 16 x^3 +    =

X^1

i=

xi i!

ln(1 + x) = x 12 x^2 + 13 x^3 14 x^4    =

X^1

i=

(1)i+^

xi i

ln

1 x

= x + 12 x^2 + 13 x^3 + 14 x^4 +    =

X^1

i=

xi i

sin x = x 3!^1 x^3 + 5!^1 x^5 7!^1 x^7 +    =

X^1

i=

(1)i^

x^2 i+ (2i + 1)!

cos x = 1 2!^1 x^2 + 4!^1 x^4 6!^1 x^6 +    =

X^1

i=

(1)i^

x^2 i (2i)!

tan^1 x = x 13 x^3 + 15 x^5 17 x^7 +    =

X^1

i=

(1)i^

x^2 i+ (2i + 1)

(1 + x)n^ = 1 + nx + n(n 2 1)x^2 +    =

X^1

i=

n i

xi^ ;

1

(1 x)n+^

= 1 + (n + 1)x +

n+

2

x^2 +    =

X^1

i=

i + n i

xi^ ;

x

ex^ 1

= 1 12 x + 121 x^2 7201 x^4 +    =

X^1

i=

Bi xi i!

2 x

p

1 4 x) = 1 + x + 2 x^2 + 5 x^3 +    =

X^1

i=

i + 1

2 i i

xi^ ;

1

p

1 4 x

= 1 + x + 2 x^2 + 6 x^3 +    =

X^1

i=

2 i i

xi^ ;

1

p

1 4 x

p

1 4 x

2 x

n

= 1 + (2 + n)x +

4+n

2

x^2 +    =

X^1

i=

2 i + n i

xi^ ;

1

1 x

ln

1 x

= x + 32 x^2 + 116 x^3 + 2512 x^4 +    =

X^1

i=

Hi xi^ ;

1 2

ln

1 x

= 12 x^2 + 34 x^3 + 1124 x^4 +    =

X^1

i=

Hi 1 xi i

x

1 x x^2

= x + x^2 + 2 x^3 + 3 x^4 +    =

X^1

i=

Fi xi^ ;

Fn x

1 (Fn 1 + Fn+1 )x (1)n^ x^2

= Fn x + F 2 nx^2 + F 3 nx^3 +    =

X^1

i=

Fni xi^ :

Ordinary p ower series:

A(x) =

X^1

i=

ai xi^ :

Exp onential p ower series:

A(x) =

X^1

i=

ai

xi i!

Dirichlet p ower series:

A(x) =

X^1

i=

ai ix^

Binomial theorem:

(x + y )n^ =

X^ n

k =

n k

xnk^ y k^ :

Di erence of like p owers:

xn^ y n^ = (x y )

nX 1

k =

xn^1 k^ y k^ :

For ordinary p ower series:

A(x) + B (x) =

X^1

i=

( ai + bi )xi^ ;

xk^ A(x) =

X^1

i=

aik xi^ ;

A(x)

Pk 1

i=0 ai^ x

i xk^

X^1

i=

aik xi^ ;

A(cx) =

X^1

i=

ci^ ai xi^ ;

A^0 (x) =

X^1

i=

(i + 1)ai+1 xi^ ;

xA^0 (x) =

X^1

i=

iai xi^ ;

Z

A(x) dx =

X^1

i=

ai 1 i

xi^ ;

A(x) + A(x)

X^1

i=

a 2 i x^2 i^ ;

A(x) A(x)

X^1

i=

a 2 i+1 x^2 i+1^ :

Summation: If bi =

Pi

j =0 ai^ then B (x) =

1 x

A(x):

Convolution:

A(x)B (x) =

X^1

i=

Xi

j =

aj bij

A xi^ :

Go d made the natural numb ers; all the rest is the work of man. { Leop old Kronecker

Series Escher's Knot

Expansions:

1

(1 x)n+^

ln

1 x

X^1

i=

(Hn+i Hn )

n + i i

xi^ ;

x

n

X^1

i=

i n

xi^ ;

xn^ =

X^1

i=

n i

xi^ ; (ex^ 1)n^ =

X^1

i=

i n

n!xi i!

ln

1 x

n

X^1

i=

i n

n!xi i!

; x cot x =

X^1

i=

(4)i^ B 2 i x^2 i

(2i)!

tan x =

X^1

i=

(1)i^1

22 i^ (2^2 i^ 1)B 2 i x^2 i^1

(2i)!

;  (x) =

X^1

i=

ix^

 (x)

X^1

i=

(i) ix^

 (x 1)

 (x)

X^1

i=

(i) ix^

 (x) = Stieltjes Integration

Y

p

1 px^

 2 (x) =

X^1

i=

d(i) xi^

where d(n) =

P

djn 1 ;

 (x) (x 1) =

X^1

i=

S (i) xi^

where S (n) =

P

djn d;

 (2n) =

22 n^1 jB 2 n j

(2n)!

 2 n^ ; n 2 N;

x sin x

X^1

i=

(1)i^1

(4i^ 2)B 2 i x^2 i

(2i)!

p

1 4 x

2 x

n

X^1

i=

n(2i + n 1)!

i!(n + i)!

xi^ ;

ex^ sin x =

X^1

i=

2 i=^2 sin i 4 i!

xi^ ;

s

p

1 x

x

X^1

i=

(4i)! 16 i

p

2(2i)!(2i + 1)!

xi^ ;

arcsin x x

X^1

i=

4 i^ i!^2 (i + 1)(2i + 1)! x^2 i^ :

If G is continuous in the interval [a; b] and F is nondecreasing then

Z b

a

G(x) dF (x)

exists. If a  b  c then

Z c

a

G(x) dF (x) =

Z b

a

G(x) dF (x) +

Z c

b

G(x) dF (x):

If the integrals involved exist

Z b

a

G(x) + H (x)

dF (x) =

Z b

a

G(x) dF (x) +

Z b

a

H (x) dF (x);

Z b

a

G(x) d

F (x) + H (x)

Z b

a

G(x) dF (x) +

Z b

a

G(x) dH (x);

Z b

a

c  G(x) dF (x) =

Z b

a

G(x) d

c  F (x)

= c

Z b

a

G(x) dF (x);

Z b

a

G(x) dF (x) = G(b)F (b) G(a)F (a)

Z b

a

F (x) dG(x):

If the integrals involved exist, and F p ossesses a derivative F 0 at every p oint in [a; b] then

Z b

a

G(x) dF (x) =

Z b

a

G(x)F 0 (x) dx:

Crammer's Rule 0 47 18 76 29 93 85 34 61 52 86 11 57 28 70 39 94 45 2 63 95 80 22 67 38 71 49 56 13 4 59 96 81 33 7 48 72 60 24 15 73 69 90 82 44 17 58 1 35 26 68 74 9 91 83 55 27 12 46 30 37 8 75 19 92 84 66 23 50 41 14 25 36 40 51 62 3 77 88 99 21 32 43 54 65 6 10 89 97 78 42 53 64 5 16 20 31 98 79 87

Fib onacci Numb ers If we have equations:

a 1 ; 1 x 1 + a 1 ; 2 x 2 +    + a 1 ;n xn = b 1

a 2 ; 1 x 1 + a 2 ; 2 x 2 +    + a 2 ;n xn = b 2

an; 1 x 1 + an; 2 x 2 +    + an;n xn = bn

Let A = (ai;j ) and B b e the column matrix (bi ). Then

there is a unique solution i det A 6 = 0. Let Ai b e A

with column i replaced by B. Then xi =

det Ai det A

De nitions: Fi = Fi 1 +Fi 2 ; F 0 = F 1 = 1 ;

Fi = (1)i^1 Fi ;

Fi = p^15

i^ ^i

Cassini's identity: for i > 0:

Fi+1 Fi 1 F i^2 = (1)i^ :

Additive rule: Fn+k = Fk Fn+1 + Fk 1 Fn ; F 2 n = Fn Fn+1 + Fn 1 Fn : Calculation by matrices:

Fn 2 Fn 1 Fn 1 Fn

n

The Fib onacci numb er system: Every integer n has a unique representation

n = Fk 1 + Fk 2 +    + Fkm ;

where ki  ki+1 + 2 for all i,

1  i < m and km  2.

Improvement makes strait roads, but the cro oked roads without Improvement, are roads of Genius. { William Blake (The Marriage of Heaven and Hell)