Maximum and Minimum as Operations on Functions
The previous tutorial studied addition and multiplication in \(C(K)\). Those algebraic operations combine function values by adding or multiplying them. Another useful way to combine two functions is to select, at each point, whichever value is larger or smaller. These pointwise maximum and minimum operations will be important in approximation theory because they allow us to build new continuous functions from existing ones.
Throughout this tutorial, \(K\) is a nonempty compact subset of \(\mathbb{R}\), and \(C(K)\) is equipped with the supremum norm. We compare functions by comparing their values at every point. This is an order on functions, rather than a comparison of their norms or of their values at just one selected point.
At each \(x\), the real numbers \(f(x)\) and \(g(x)\) have a maximum and a minimum. It remains to check that the resulting functions are continuous. One way to do this is to express these operations using addition and absolute value. Since the absolute value function on \(\mathbb{R}\) is continuous, \(|f-g|\) is continuous whenever \(f\) and \(g\) are continuous.
Proof. For real numbers \(a,b\), the identities
hold. To verify them, first suppose \(a\geq b\). Then \(|a-b|=a-b\), so the right sides are \(a\) and \(b\), respectively. If \(a<b\), then \(|a-b|=b-a\), so the right sides are \(b\) and \(a\), respectively. Applying these scalar identities with \(a=f(x)\) and \(b=g(x)\) proves both function identities at every \(x\in K\).
The functions \(f+g\) and \(|f-g|\) are continuous, so the two displayed formulas show that \(f\vee g\) and \(f\wedge g\) are continuous. At every point, their definitions give \(f\leq f\vee g\) and \(g\leq f\vee g\). If \(h\in C(K)\) also satisfies \(f\leq h\) and \(g\leq h\), then for each \(x\in K\),
Thus \(f\vee g\leq h\), proving it is the least such function. Similarly, \(f\wedge g\leq f\) and \(f\wedge g\leq g\). If \(h\leq f\) and \(h\leq g\), then \(h(x)\leq\min\{f(x),g(x)\}=(f\wedge g)(x)\) for every \(x\), so \(h\leq f\wedge g\). This proves the greatest-lower-bound property. \(\square\)
The least-upper-bound and greatest-lower-bound properties explain the word “lattice”: any pair of functions has a least upper bound and a greatest lower bound under the pointwise order. These are not the supremum and infimum of the set of all values of one function. They are functions constructed by comparing two functions at each point.
Worked Example: A Maximum with a Changing Formula
Let \(K=[-1,2]\), \(f(x)=2x-1\), and \(g(x)=1-x\). The two formulas agree when \(2x-1=1-x\), which gives \(x=2/3\). For \(x\leq2/3\), \(g(x)-f(x)=2-3x\geq0\), while for \(x\geq2/3\), \(f(x)-g(x)=3x-2\geq0\). Therefore,
At \(x=0\), the two original values are \(-1\) and \(1\), so the maximum is \(1\), as the first formula gives. At \(x=1\), the values are \(1\) and \(0\), so the maximum is \(1\), as the second formula gives. At the joining point \(x=2/3\), both formulas give \(1/3\). The maximum is continuous there, as the theorem guarantees.
Identities and Positive Parts
The pointwise definitions immediately give familiar identities from real numbers. For example, \(f\vee g=g\vee f\), \(f\wedge g=g\wedge f\), and \(f\vee f=f\wedge f=f\). The lattice operations are also distributive: taking the maximum with a minimum gives the same result as taking the minimum of the two maxima. These statements hold because they hold for the real values at each point.
Proof. The first two identities follow by adding and subtracting the formulas in the Lattice Operations Theorem. For the distributive identity, fix \(x\in K\) and set \(a=f(x)\), \(b=g(x)\), and \(c=h(x)\). If \(b\leq c\), then \(\min\{b,c\}=b\), and \(\max\{a,b\}\leq\max\{a,c\}\). Hence
If \(c\leq b\), the same calculation with \(b\) and \(c\) interchanged gives the identity. It therefore holds at every \(x\), proving the function identity. For the other distributive identity, if \(b\leq c\), then \(\max\{b,c\}=c\) and \(\min\{a,b\}\leq\min\{a,c\}\), so
The case \(c\leq b\) follows by interchanging \(b\) and \(c\). This proves the second distributive identity pointwise as well. \(\square\)
A particularly useful construction is the positive part of a function: \(f^+=f\vee\mathbf{0}\). It retains the values of \(f\) where they are positive and replaces negative values by zero. The negative part is \(f^-=(-f)\vee\mathbf{0}\); it records the magnitude of the negative values. Both belong to \(C(K)\), since they are lattice operations on continuous functions.
The last identity follows by considering the two cases \(f(x)\geq0\) and \(f(x)<0\). In the first case \(f^+(x)=f(x)\) and \(f^-(x)=0\); in the second case \(f^+(x)=0\) and \(f^-(x)=-f(x)\). In either case their difference is \(f(x)\).
Worked Example: Clipping a Function to a Range
Let \(K=[-2,2]\) and \(f(x)=x^2-1\). Define a new function by first taking the positive part and then taking the minimum with \(1\):
For \(|x|\leq1\), \(x^2-1\leq0\), so \(f(x)\vee0=0\) and \(q(x)=0\). For \(1<|x|<\sqrt{2}\), \(0<x^2-1<1\), so \(q(x)=x^2-1\). For \(\sqrt{2}\leq|x|\leq2\), \(x^2-1\geq1\), so \(q(x)=1\). Thus
At \(x=1\), the middle expression approaches \(1^2-1=0\), agreeing with the first expression. At \(x=\sqrt{2}\), it gives \((\sqrt{2})^2-1=1\), agreeing with the last expression. The resulting clipped function is continuous because it was built from two lattice operations on continuous functions.
Stability in the Supremum Norm
Lattice operations do more than preserve continuity: small uniform changes in the inputs produce small uniform changes in their maximum or minimum. This stability is especially useful when the input functions are approximations. The estimate below is a pointwise fact about real numbers, transferred to functions by taking the supremum.
Proof. Set \(\delta=\max\{\|f-u\|_\infty,\|g-v\|_\infty\}\). By the definition of the supremum norm, for every \(x\in K\),
Taking maxima gives
Interchanging \((f,g)\) and \((u,v)\) gives \((u\vee v)(x)\leq(f\vee g)(x)+\delta\). Combining the two inequalities yields
Taking the supremum over \(x\in K\) proves the stated bound. For minima, the same argument applies with the inequalities reversed when taking the smaller value: from \(f(x)\leq u(x)+\delta\) and \(g(x)\leq v(x)+\delta\), we obtain \((f\wedge g)(x)\leq(u\wedge v)(x)+\delta\); interchanging the pairs gives the reverse bound. Thus the minimum estimate follows too. \(\square\)
Worked Example: Approximating a Maximum
On \(K=[0,1]\), let \(f(x)=x^2\), \(g(x)=1/2\), and approximate them by \(u(x)=x^2+1/100\) and \(v(x)=1/2-1/200\). Then
The stability theorem therefore gives
For a direct check at \(x=0\), the original maximum is \(1/2\), while the approximating maximum is \(u(0)\vee v(0)=1/100\vee99/200=99/200\); their difference is \(1/200\), within the bound. At \(x=1\), the original maximum is \(1\), the approximating maximum is \(101/100\), and the difference is \(1/100\), exactly the bound. The estimate controls the difference uniformly, not just at these two points.
Why Lattice Operations Matter in Approximation
A continuous function built with maxima and minima remains in \(C(K)\), even when its formula changes from place to place. This permits useful constructions such as clipping a function to a prescribed range or joining candidate approximants by selecting whichever is larger at each point. The supremum-norm stability theorem adds a quantitative guarantee: if each input is uniformly close to its target, then the resulting maximum and minimum are uniformly close as well.
This estimate also explains a practical way to use approximation results. Suppose \(u\) and \(v\) approximate \(f\) and \(g\) within \(\varepsilon\) in the supremum norm. Then their pointwise maximum approximates \(f\vee g\) within \(\varepsilon\), and their pointwise minimum approximates \(f\wedge g\) within \(\varepsilon\). No additional loss of accuracy is introduced by taking the lattice operation.
A common mistake is to treat the maximum of two continuous functions as though the choice between them must be fixed across the entire domain. It need not be: the function that is larger can change with \(x\). The pointwise maximum remains continuous, including at points where the two functions cross, because the formulas for the maximum agree at every equality point. The lattice identities and norm estimate give precise ways to work with this changing choice.
Check Your Understanding
Use the definitions and results in this tutorial to answer the following questions.
- What does \(f\leq g\) mean for two functions in \(C(K)\), and how are \(f\vee g\) and \(f\wedge g\) defined?
- Use the absolute-value formulas to explain why the pointwise maximum and minimum of two continuous functions are continuous.
- Why is \(f\vee g\) the least upper bound of \(f\) and \(g\) in the pointwise order?
- Write \(f^+\) and \(f^-\) using lattice operations, and verify that \(f=f^+-f^-\).
- If \(\|f-u\|_\infty\leq\varepsilon\) and \(\|g-v\|_\infty\leq\varepsilon\), what bound follows for \(\|(f\wedge g)-(u\wedge v)\|_\infty\)?
- Why can the formula for a pointwise maximum change across the domain without making the resulting function discontinuous?