Tutorials › Measure Theory › Simple-Function Integrals Under Counting Measure

Integration of Nonnegative Functions · Tutorial 240 of 798

Simple-Function Integrals Under Counting Measure

Learn how counting measure turns a nonnegative simple-function integral into a finite or countable sum, and when that sum is finite.

Advanced 8 min read

What You'll Learn

  • Express a simple-function integral using the cardinalities of its level sets.
  • Define a nonnegative sum over a countable set independently of its enumeration.
  • Compute integrals on finite sets by counting each function value.
  • Recognize when a simple function on a countable set has infinite integral.
  • Identify and correct the error of counting an infinite zero level as a positive contribution.

Counting Points in a Simple-Function Integral

For counting measure, integrating a nonnegative function means adding its values over the points of the space. If the space is finite, this is an ordinary finite sum. On a countably infinite space, the sum may be finite or infinite; in particular, infinitely many points at which a simple function has the same strictly positive value force its integral to be infinite. The level sets of a simple function make this distinction precise.

Throughout, let \(X\) be a finite or countable set, with measurable space \((X,\mathcal{P}(X))\), where \(\mathcal{P}(X)\) is the collection of all subsets of \(X\). Let \(\#\) denote counting measure, defined by \(\#E\) equal to the number of points of \(E\) if \(E\) is finite and \(+\infty\) if \(E\) is infinite. Thus \((X,\mathcal{P}(X),\#)\) is a measure space. It is finite exactly when \(X\) is finite; it is sigma-finite because \(X\) is a countable union of singletons, each of measure \(1\). It is complete because its only null set is the empty set.

Definition: A nonnegative simple function \(f:X\to[0,\infty)\) has finite range. Write its distinct strictly positive values as \(a_1,\ldots,a_r\), and let \(E_j=\{x\in X:f(x)=a_j\}\). These sets are pairwise disjoint, and \(f=\sum_{j=1}^r a_j\chi_{E_j}\); points outside their union have value zero. Under counting measure, its integral is \(\displaystyle \int f\,d\#=\sum_{j=1}^r a_j\,\#E_j\), where a term with \(a_j>0\) and \(\#E_j=+\infty\) is \(+\infty\). The zero level is omitted.

This is the simple-function integral, using the definition established in the earlier material on simple-function integrals. The omission of the zero level is important: it avoids an expression such as \(0\cdot(+\infty)\), which is not a defined product of extended real numbers. Since every subset of \(X\) is measurable, all the level sets in this definition are measurable.

Summing Values over a Countable Set

For a nonnegative function \(f\) on a countable set, define its sum over \(X\) to be the supremum of its sums over finite subsets: \(\displaystyle \sum_{x\in X}f(x)=\sup\left\{\sum_{x\in F}f(x):F\subseteq X,\ F\text{ finite}\right\}\). This definition applies when \(X\) is finite, countably infinite, or empty, and allows the value \(+\infty\). If \(X\) is enumerated without repetition as \(x_1,x_2,\ldots\), this supremum equals \(\lim_{N\to\infty}\sum_{k=1}^N f(x_k)\): each initial segment is finite, and every finite subset of \(X\) lies in some initial segment. Thus the value does not depend on the chosen enumeration. For finite \(X\), the sum is simply the sum over all its points.

Theorem: For a finite or countable set \(X\), equipped with counting measure, and any nonnegative simple function \(f:X\to[0,\infty)\), the integral equals the sum over points: \(\displaystyle \int f\,d\#=\sum_{x\in X}f(x)=\sum_{j=1}^r a_j\,\#E_j.\) All equalities are equalities of extended nonnegative real numbers.

Proof. If \(X=\varnothing\), there are no positive level sets, \(f\) is identically zero on its empty domain, and both the integral and the sum are zero. Now suppose \(X\) is nonempty. For any finite \(F\subseteq X\), the disjoint level sets give \(\displaystyle \sum_{x\in F}f(x)=\sum_{j=1}^r a_j\,\#(F\cap E_j)\). Each term is at most \(a_j\,\#E_j\), so taking the supremum over finite \(F\) gives \(\sum_{x\in X}f(x)\le\sum_{j=1}^r a_j\,\#E_j\). If some positive level set \(E_j\) is infinite, then for every positive integer \(N\) it contains a finite subset of \(N\) points. Choosing those points as \(F\) gives \(\sum_{x\in F}f(x)=Na_j\). These values are unbounded as \(N\) increases, so the sum over \(X\) is \(+\infty\), as is the level-set expression. If every positive level set is finite, their finite union is finite. Taking \(F=\bigcup_{j=1}^rE_j\) gives \(\sum_{x\in F}f(x)=\sum_{j=1}^r a_j\,\#E_j\), so the supremum is at least that expression. Combined with the upper bound, this proves equality. By the definition of the simple-function integral, the level-set expression is \(\int f\,d\#\). \(\square\)

Worked Example: A Simple Function on a Finite Set

Let \(X=\{p,q,r,s,t,u\}\) with counting measure, and define \(f(p)=0\), \(f(q)=2\), \(f(r)=2\), \(f(s)=5\), \(f(t)=5\), and \(f(u)=5\). Compute \(\int f\,d\#\).

The positive level set for the value \(2\) is \(E_1=\{q,r\}\), so \(\#E_1=2\). The positive level set for the value \(5\) is \(E_2=\{s,t,u\}\), so \(\#E_2=3\). Therefore \(\displaystyle \int f\,d\#=2\cdot2+5\cdot3=4+15=19.\) As a check, summing the values point by point gives \(0+2+2+5+5+5=19\). The two computations agree.

Finite and Infinite Integrals on Countable Sets

A countable domain does not by itself make a simple-function integral infinite: the decisive issue is how many points have positive values. Because a simple function has only finitely many distinct positive values, if even one of its positive level sets is infinite, that level alone makes the integral infinite. If all positive level sets are finite, their finite union is finite, and the integral is a finite sum.

Proposition: Let \(X\) be finite or countable with counting measure, and let \(f:X\to[0,\infty)\) be simple. Then \(\int f\,d\#<+\infty\) if and only if the support \(\{x\in X:f(x)>0\}\) is finite.

Proof. If the support is finite, it is a finite set of points, and \(f\) has a finite value at each point. Its sum over the support is therefore finite, so the theorem gives \(\int f\,d\#<+\infty\). Conversely, suppose the support is infinite. Since \(f\) is simple, its strictly positive range is a nonempty finite set \(\{a_1,\ldots,a_r\}\). Let \(a=\min\{a_1,\ldots,a_r\}\), so \(a>0\). For every positive integer \(N\), the infinite support contains a finite subset \(F\) of \(N\) points, and \(f(x)\ge a\) for every \(x\in F\). Hence \(\sum_{x\in F}f(x)\ge Na\). These lower bounds are unbounded as \(N\) increases, so the supremum defining the sum over \(X\) is \(+\infty\). The theorem then gives \(\int f\,d\#=+\infty\). If the support is empty, it is finite and \(f=0\) everywhere, so the first direction includes that case. \(\square\)

Worked Example: A Simple Function with Finite Support in \(\mathbb{N}\)

Equip \(X=\mathbb{N}=\{1,2,3,\ldots\}\) with counting measure. Define \(g(1)=\tfrac12\), \(g(4)=3\), \(g(9)=2\), and \(g(n)=0\) at every other positive integer. Compute its integral.

The positive level sets are \(\{1\}\) for the value \(\tfrac12\), \(\{4\}\) for the value \(3\), and \(\{9\}\) for the value \(2\). Each has counting measure \(1\). Thus \(\displaystyle \int g\,d\#=\tfrac12\cdot1+3\cdot1+2\cdot1=\tfrac12+3+2=\tfrac{11}{2}.\) To check using initial sums in the usual enumeration of \(\mathbb{N}\), the sum through \(n=9\) is \(g(1)+g(4)+g(9)=\tfrac12+3+2=\tfrac{11}{2}\). For every \(N\ge9\), all additional terms are zero, so the initial sum remains \(\tfrac{11}{2}\). This also confirms the integral is finite, as the support has three points.

Worked Example: Infinite Positive Level Sets

On \(X=\mathbb{N}\) with counting measure, define \(h(n)=2\) when \(n\) is odd, \(h(n)=5\) when \(n\) is divisible by \(4\), and \(h(n)=0\) otherwise. These cases are disjoint. Compute the integral.

The value \(2\) occurs on the infinite set of odd positive integers, and the value \(5\) occurs on the infinite set of positive multiples of \(4\). The level-set formula therefore gives \(\displaystyle \int h\,d\#=2\cdot(+\infty)+5\cdot(+\infty)=+\infty.\) The pointwise partial sums confirm this result. Among \(1,\ldots,4N\), there are \(2N\) odd numbers and \(N\) multiples of \(4\). The sum through \(4N\) is therefore \(2(2N)+5N=4N+5N=9N\), which is unbounded as \(N\) increases. For \(N=1\), the values at \(1,2,3,4\) are \(2,0,2,5\), giving \(2+0+2+5=9\), in agreement with \(9N=9\). The divergence also agrees with the criterion: \(h\) has infinite support.

A Common Counting Pitfall

Do not count the zero level as if it contributed a positive amount. For example, let \(X=\mathbb{N}\), and define \(u(1)=2\) and \(u(n)=0\) for \(n\ge2\). Its zero level set is infinite. A tempting but invalid calculation is \(2\cdot1+0\cdot(+\infty)=+\infty\). The product \(0\cdot(+\infty)\) is undefined, and the conclusion is wrong. The definition sums only over strictly positive levels: here the value \(2\) occurs once, so \(\int u\,d\#=2\cdot1=2\). Directly, every partial sum containing the first term equals \(2\), because all later terms are zero. The support is the singleton \(\{1\}\), so the finiteness criterion gives the same answer.

A related error is to count distinct values rather than points. In the finite-set example, the value \(5\) occurs three times; its contribution is \(5\cdot3\), not merely \(5\). Under counting measure, each point has measure \(1\), and the level-set cardinality records exactly how many times each positive value appears. This is the discrete version of the level-set definition of the simple-function integral.

Check Your Understanding

In each question, use counting measure and include only strictly positive levels in the level-set sum.

  1. On \(X=\{a,b,c,d\}\), let \(f(a)=1\), \(f(b)=4\), \(f(c)=4\), and \(f(d)=0\). Compute the integral by level sets and by summing over points.
  2. On \(\mathbb{N}\), let \(f(n)=3\) for \(n\in\{2,5\}\) and \(f(n)=0\) otherwise. Compute the integral and identify the support.
  3. On \(\mathbb{N}\), let \(g(n)=1\) for every \(n\). Use the first \(N\) terms to verify that its integral is infinite.
  4. Prove that a nonnegative simple function on a countable set has finite integral exactly when its support is finite.
  5. Explain why a zero level set of infinite counting measure does not make the integral infinite.