Sets and their characteristic functions, Part 1

In my introductory pure maths module (FPM), one of the things we look at is the connection between sets and their characteristic functions, and how set operations affect the characteristic functions.

Here it is probably best to assume that you are currently working only with subsets of some "universal set", which we call X. Then, for EX, we denote by Ec the complement of E in X, so that

Ec=XE={xX:xE}.

The characteristic function of E (also called the indicator function of E), χE (or 1A, or variants of this), is then defined as follows. For xX,

χE(x)=1E(x)={1if xE,0if xXE.

(In case you are wondering, χ is the Greek letter chi.)

If X=R and E is a relatively easy set to work with such as the interval [1,3], then (Exercise!) you can easily sketch the graph of y=χE(x). For this particular example, the graph follows the x-axis most of the time, but jumps to follow a segment of the horizontal line y=1 in the range 1x3.

For more complicated sets such as E=Q we can't really sketch the graph properly, but traditionally we just draw dotted lines along the whole of both the x-axis and the horizontal line y=1.

In the following, we no longer assume that X=R (though if you want to work in that special case you can).

One useful thing is that we have a one to one correspondence (or a bijection) between subsets of X and their characteristic functions: for subsets A and B of X, we have

A=BχA=χB.

Here (as usual when discussing equality of functions), we say that the functions χA and χB are equal if (and only if), for all xX, we have χA(x)=χB(x).

Why might this be helpful? Well, checking equality of sets can be a little tricky to do directly. But it may be relatively easy to add, subtract and multiply functions which take integer values, and see whether they are equal. We'll see an example of this in a later post when we check that the set operation of symmetric difference is associative.

Let's finish this first part with some connections between set operations and arithmetic of characteristic functions, which you can check as an exercise.

  • The characteristic function of the empty set, χ, is just the constant function 0.
  • The characteristic function of our universal set X, χX, is just the constant function 1.
  • Let EX. Then there is an easy formula for the characteristic function χEc of the complement of E. We just have

                             χEc=1χE,

    i.e., for all xX, we have χEc(x)=1χE(x).
  • Let A and B be subsets of X. Then

                             χAB=χAχB,

    i.e., for all xX, we have χAB(x)=χA(x)χB(x).

Extension exercise: Can you find a fairly easy formula for the characteristic function χAB of the set AB?
Warning: χA+χB isn't quite right.

Comments

Popular posts from this blog

A rule of thumb for when to use the Ratio Test

An introduction to the Hahn-Banach extension theorem: Part VI

Discussion of the proof that the uniform norm really is a norm