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=an−1a, where a0=1.
  • Factorial n! is n!=(n−1)!n, where 0!=1.
  • Fibonacci numbers: Fn=Fn−1+Fn−2, where F1=F2=1.


Binomial Coefficients

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

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

If k>0, then

(nk)=n(n−1)…(n−k+1)1⋅2…k

"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)=(nk−1)+(nk)

Proof.

(nk−1)+(nk)=n!(k−1)!(n−k+1)!+n!k!(n−k)!=n!(k−1)!(n−k)!(1n−k+1+1k)=n!(k−1)!(n−k)!⋅n+1k(n−k+1)=(n+1)!k!(n−k+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)an−kbk

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)an−kbk=∑k=0n(nk)an−k+1bk+∑k=0n(nk)an−kbk+1=∑k=0n(nk)an−k+1bk+∑k=1n+1(nk−1)an−k+1bk=(n0)an+1+∑k=1n((nk)+(nk−1))an−k+1bk+(nn)bn+1=(n+10)an+1+∑k=1n(n+1k)an+1−kbk+(n+1n+1)bn+1=∑k=0n+1(n+1k)an+1−kbk

Which completes the induction step.

quod erat demonstrandum

Functions

(See MATH 409 Lecture 4#Functions→)


Composition

The composition of functions f:X→Y and g:Y→Z is a function from X to Z denoted g∘f, that is defined by (g∘f)(x)=g(f(x)) for x∈X.

Properties

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


Images and Preimages

Given a function f:X→Y, the image of a set E⊂X under F, denoted f(E) is a subset of Y defined by f(e)={f(x)∣x∈E}.

The preimage (or inverse image) of a set D⊂Y under f, denoted f−1(D), is a subset of X defined by f−1(D)={x∈X∣f(x)∈D}

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

Properties

  • f(⋃α∈IEα)=⋃α∈If(Eα), f(⋂α∈IEα)⊂⋂α∈If(Eα)
  • Same as previous for f−1 and D
  • f−1(D∖D0)=f−1(D)∖f−1(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:A→B. 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:A→A is bijective.
  • Symmetry: If f is a bijection of A onto B, then the inverse map f−1 is a bijection of B onto A.
  • Transitivity: If f:A→B and g:B→C are bijections, then the composition g∘f is a bijection of A→C.
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.d11d12d13d14d15…x2=0.d21d22d23d24d25…x3=0.d31d32d33d34d35…x4=0.d41d42d43d44d45…x5=0.d51d52d53d54d55…

Now for any n∈ℕ, choose a decimal digit d~n such that d~n≠dnn 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