MATH 409 Lecture 5

From Notes
Jump to navigation Jump to search

« previous | Tuesday, September 10, 2013 | next »

Lecture Slides

Review

Inductive Definition

Now we can use induction to define structures recursively. For example,

  • The power an of a number is an=an1a, where a0=1.
  • Factorial n! is n!=(n1)!n, where 0!=1.
  • Fibonacci numbers: Fn=Fn1+Fn2, where F1=F2=1.


Binomial Coefficients

For any integers 0kn, we define the binomial coefficient (nk) (n choose k) by

(nk)=n!k!(nk)!

If k>0, then

(nk)=n(n1)(nk+1)12k

"n choose k" refers to the fact that (nk) is the number of all k-element subsets of an n-element set.

Lemma. A helpful recursive form

(n+1k)=(nk1)+(nk)

Proof.

(nk1)+(nk)=n!(k1)!(nk+1)!+n!k!(nk)!=n!(k1)!(nk)!(1nk+1+1k)=n!(k1)!(nk)!n+1k(nk+1)=(n+1)!k!(nk+1)!=(n+1k)

quod erat demonstrandum


Pascal's Triangle

The lemma formula above allows us to compute coefficients recursively. The results are usually formatted in a triangular array called Pascal's Triangle, where (nk) is the kth number in the nth row of the triangle. (numbering starts from 0)

                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


Binomial Expansion

Theorem. For any a,b and n,

(a+b)n=k=0n(nk)ankbk

Proof by induction. Basis. In the case n=1, the formula is trivial.

Induction. Assume that the formula holds for a particular value of n. Then

(a+b)n+1=(a+b)(a+b)n=(a+b)k=0n(nk)ankbk=k=0n(nk)ank+1bk+k=0n(nk)ankbk+1=k=0n(nk)ank+1bk+k=1n+1(nk1)ank+1bk=(n0)an+1+k=1n((nk)+(nk1))ank+1bk+(nn)bn+1=(n+10)an+1+k=1n(n+1k)an+1kbk+(n+1n+1)bn+1=k=0n+1(n+1k)an+1kbk

Which completes the induction step.

quod erat demonstrandum

Functions

(See MATH 409 Lecture 4#Functions→)


Composition

The composition of functions f:XY and g:YZ is a function from X to Z denoted gf, that is defined by (gf)(x)=g(f(x)) for xX.

Properties

  • If f and g are one-to-one (injective), then composition gf is also one-to-one. (converse is not necessarily true; if gf is injective, then we only know that f is injective)
  • Similarly, if f and g are onto (surjective), then the composition gf is also onto. (converse is not necessarily true; if gf is surjective, then we only know that g is surjective)
  • f and g are bijective if and only if their composition fg is bijective
  • If f and g are invertible, then their composition gf is also invvertible, and (gf)1=f1g1
  • If idZ denotes the identity function on set Z, then fidX=f=idYf for any function.
  • for any functions f:XY and g:YX, we have g=f1 iff gf=idX and fg=idY


Images and Preimages

Given a function f:XY, the image of a set EX under F, denoted f(E) is a subset of Y defined by f(e)={f(x)xE}.

The preimage (or inverse image) of a set DY under f, denoted f1(D), is a subset of X defined by f1(D)={xXf(x)D}

Remark: If the function f is invertible, then the pre-image f1(D) is also the image of D under the inverse function f1. However, f1(D) is well-defined even if f is not invertible.

Properties

  • f(αIEα)=αIf(Eα), f(αIEα)αIf(Eα)
  • Same as previous for f1 and D
  • f1(DD0)=f1(D)f1(D0)

Cardinality

Given two sets A and B, ew say that A is of the same cardinality as B if there exists a bijective function f:AB. Notation: |A|=|B|.

Theorem. The relation "is of the same cardinality as" is an equivalence relation. In other words, it is:

  • reflexive (|A|=|A|)
  • symmetric (|A|=|B| implies |B|=|A|), and
  • transitive (|A|=|B| and |B|=|C| implies |A|=|C|)

Proof. Since bijective functions show that two sets are of the same cardinality,

  • Reflexivity: The identity map idA:AA is bijective.
  • Symmetry: If f is a bijection of A onto B, then the inverse map f1 is a bijection of B onto A.
  • Transitivity: If f:AB and g:BC are bijections, then the composition gf is a bijection of AC.
quod erat demonstrandum

Countable and Uncountable Sets

A nonempty set is finite if it is of the same cardinality as {1,2,,n}=[1,n] for some n. Otherwise, it is infinite.

An infinite set is called countable (or countably infinite) if it is of the same cardinality as . Otherwise it is uncountable (or uncountably infinite).

An infinite set E is countable if it is possible to arrange all elements of E into a single sequence (an infinite list) x1,x2,.


Countable Sets

Examples:

  • (natural numbers)
  • 2 (even numbers)
  • (integers)
  • × (pairs of natural numbers)
  • (rational numbers, extension of above)
  • Algebraic Numbers (roots of nonzero [1]polynomials with integer coefficients)

The last bullet will be a problem on the next homework, and the hint is to count the number of polynomials first then count the roots. The third property below will also be useful

Properties

  • Any infinite set contains a countable subset
  • Any infinite subset of a countable set is also countable.
  • The union of any finite or countable sets is also finite or countable

Uncountable Sets

Theorem. The set is uncountable.

Proof. It is enough to prove that the interval (0,1) is uncountable. Assume the contrary. Then all numbers from (0,1) can be arranged into an infinite list x1,x2,. Any number x(0,1) admits a decimal expansion of the form 0.d1d2d3, where each digit di is in {0,1,2,3,4,5,6,7,8,9}. In particular,

x1=0.d11d12d13d14d15x2=0.d21d22d23d24d25x3=0.d31d32d33d34d35x4=0.d41d42d43d44d45x5=0.d51d52d53d54d55

Now for any n, choose a decimal digit d~n such that d~ndnn and d~n is neither 0 nor 9. Then 0.d~1d~2d~3 is the decimal expansion of some number x~(0,1). By construction, it is different from all expansions in the list. Although some real numbers admit two decimal expansions (e.g. 0.5000=0.4999), the condition d~n∉{0,9} ensures that x~ is not such a number. Thus x~ is not listed. CONTRADICTION!

quod erat demonstrandum

Footnotes

  1. Not identical to zero, but it can cross the x-axis