Size of the power set

February 28, 2009

Introduction. Let X be any arbitrary set. We say a set Y is a subset of X (written Y \subseteq X) if every element of Y is also an element of X. For example, \{ 1, 2, 3 \} \subseteq \mathbb{N}, every set is a subset of itself, and the empty set is the only subset of itself.

Again consider set X. We define the power set of X, \mathcal{P}(X),  as

\mathcal{P}(X) = \{ A ~|~ A \subseteq X \}.

Thus the power set of X is “the set of all subsets of X”. Here are a few examples of power sets:

  • Let A = \{ 1, 2, 3 \}. Then the power set of A is \{ \emptyset, \{1\}, \{2\}, \{3\}, \{1,2\}, \{1,3\}, \{2,3\}, \{1,2,3\} \};
  • Let B = \{ \textrm{red},\textrm{blue} \}. Then the power set of B is \{ \emptyset, \{\textrm{red}\}, \{\textrm{blue}\}, \{\textrm{red},\textrm{blue}\} \};
  • The power set of \emptyset is \{ \emptyset \}. Notice that these two are different: the former is a set with no elements, while the latter is a set with a single element which happens to be the empty set.

We now pose an interesting question: given a set X with n elements (written |X| = n), what is the number of elements of its power set \mathcal{P}(X) (written |\mathcal{P}(X)|)? Peeking at concrete examples like those above, 2^n looks like the correct answer — even for the last one, since 2^0 = 1. But is it really so?

Read the rest of this entry »

Quadratic formula

February 28, 2009

Introduction. Let a, b, c \in \mathbb{R}, where a \neq 0. We call the equation ax^2 + bx + c = 0 a quadratic equation. It is a well-known fact that, given a, b and c, there are at most two distinct values of x \in \mathbb{R} satisfying the equation — called solutions or roots. For example:

  • The equation x^2 = 0 has one solution, namely 0;
  • The equation x^2 - 1 = 0 has two solutions, namely 1 and -1;
  • The equation x^2 + 1 = 0 has no solutions. This can be shown pictorially by drawing the graph of p(x) = x^2 + 1, which never intersects the x-axis.

Given a quadratic equation, its roots can be found by applying the quadratic formula:

x = \frac{-b \pm \sqrt{b^2 - 4 a c}}{2a}.

We now intend to prove the correctness of this formula.

Read the rest of this entry »

Irrationality of √2

February 27, 2009

Introduction. Let \mathbb{R} be the set of real numbers. Intuitively, these are all the numbers that can turn up when we measure the distance between two points. The set \mathbb{R} includes the naturals \mathbb{N} = \{ 1,2,3,\ldots \}, the integers \mathbb{Z} = \{ \ldots, -2, -1, 0, 1, 2, \ldots \}, and the rationals \mathbb{Q}. The latter are all the numbers that can be written as fractions; more precisely, if p, q \in \mathbb{Z} and q \neq 0, then p/q \in \mathbb{Q}. Every fraction can be made irreducible, i.e., we can write any rational number as p/q where p and q are coprime — they have no common divisors apart from 1.

Clearly, all the sets mentioned so far are successively contained in each other: \mathbb{N} \subset \mathbb{Z} \subset \mathbb{Q}. But is \mathbb{R} = \mathbb{Q}? The answer is negative. The remaining elements of \mathbb{R} — i.e., those not in \mathbb{Q} — are aptly called irrational.

Consider a real x. We say y is a square root of x if x = y^2. It can be shown — but we will not show here — that every non-negative real number has a real-valued square root; in fact, every positive real number has two distinct square roots (one positive and the other negative), and zero is the unique square root of itself. Whenever x has a square root, we denote by \sqrt{x} the non-negative square root of x.

Since 2 is a positive real number, it follows that \sqrt{2} exists in \mathbb{R}. Here we will show that \sqrt{2} is irrational. The importance of this theorem lies in the fact that it proves irrational numbers do indeed exist.

Read the rest of this entry »

Fundamental theorem of arithmetic

February 27, 2009

Introduction. Let \mathbb{N} = \{1, 2, 3, \ldots \} be the set of natural numbers. We say p \in \mathbb{N} is a prime number if p has exactly two distinct divisors: 1 and p itself. The first few prime numbers are: 2, 3, 5, 7, 11, \ldots

Given n \in \mathbb{N}, a prime factorization of n is a product of naturals p_1 \times p_2 \times \cdots \times p_k = n such that the p_i are all prime. Notice that a prime factorization may contain multiple occurrences of the same prime number, but the order in which the p_i appear is not important. For example, 3 \times 5 and 2 \times 2 \times 7 are prime factorizations of 15 and 28, respectively. Clearly, if n is a prime number, n itself is its unique prime factorization. Also, the number 1 is special in that its unique prime factorization is the empty product.

Considering an arbitrary natural number n, two interesting questions arise. First, is n guaranteed to have a prime factorization? Second, if it does exist, is it unique (up to rearrangement)? The Fundamental Theorem of Arithmetic answers affirmatively to these two questions.

Read the rest of this entry »


Follow

Get every new post delivered to your Inbox.