Tutorials › Topology (Undergraduate) › Dense Open Sets of Functions with Steep Secants

The Baire Category Theorem · Tutorial 613 of 799

Dense Open Sets of Functions with Steep Secants

Learn how to define and prove openness and density for sets of continuous functions with steep secants, and how these sets fit into the Baire-category framework.

Advanced 10 min read

What You'll Learn

  • Define the steep-secant sets for rational subintervals of the unit interval.
  • Prove that a witnessing secant makes the condition open in the sup norm.
  • Construct a small continuous triangular perturbation that creates a steep secant.
  • Track the perturbation size and secant slope in explicit examples.
  • Use completeness and the Baire theorem to interpret the countable family of open dense sets.

Steep Secants as Open Dense Conditions

A continuous function can be uniformly close to a given function while changing rapidly over a very short interval. That observation lets us study steep secants as conditions on an entire space of functions, rather than on a single graph. We will prove that, in any fixed rational subinterval of \([0,1]\), the condition of having a secant whose slope magnitude exceeds a prescribed positive integer is both open and dense in the sup-norm topology.

Let \(C([0,1])\) denote the set of continuous real-valued functions on \([0,1]\). We use the metric induced by the sup norm \(\|f\|_\infty=\sup_{t\in[0,1]}|f(t)|\), so the distance between \(f\) and \(g\) is \(\|f-g\|_\infty\). A rational subinterval will mean an interval \(J=(p,q)\), where \(p,q\in\mathbb{Q}\), \(0\le p<q\le1\). For distinct \(x,y\in[0,1]\), the secant slope of \(f\) between them is \((f(y)-f(x))/(y-x)\); we measure steepness by its absolute value.

Definition: For a rational subinterval \(J=(p,q)\) and \(n\in\mathbb{N}\), define $$ U_{J,n}=\left\{f\in C([0,1]):\text{ there are }x,y\in J,\ x<y,\text{ with }\left|\frac{f(y)-f(x)}{y-x}\right|>n\right\}. $$ Thus membership requires at least one pair of distinct points strictly inside \(J\); the inequality is strict.

The two parts of the proof use different facts. Openness follows because a secant that exceeds \(n\) by a positive margin continues to exceed \(n\) after sufficiently small uniform perturbations. Density follows by adding a bump of small height and sufficiently narrow support. Its height controls the distance moved in the sup norm, while its width controls the secant slope.

Why Each Steep-Secant Set Is Open

Theorem 1: For every rational subinterval \(J\) and every \(n\in\mathbb{N}\), the set \(U_{J,n}\) is open in \(C([0,1])\) with the sup-norm topology.

Proof. Let \(f\in U_{J,n}\). By definition, there are \(x,y\in J\) with \(x<y\) such that \(S=\left|(f(y)-f(x))/(y-x)\right|>n\). Write \(d=y-x>0\), and set \(\eta=d(S-n)/2>0\). Suppose \(g\in C([0,1])\) satisfies \(\|g-f\|_\infty<\eta\). The reverse triangle inequality gives $$ \left|\frac{g(y)-g(x)}{y-x}\right| \ge \left|\frac{f(y)-f(x)}{y-x}\right| -\frac{|g(y)-f(y)|+|g(x)-f(x)|}{d} >S-\frac{2\eta}{d}=n. $$ The same pair \(x,y\) therefore witnesses \(g\in U_{J,n}\). We have found an open sup-norm ball about each \(f\in U_{J,n}\) that is contained in \(U_{J,n}\), which proves openness. \(\square\)

The estimate depends on the separation \(d\) of the witnessing points. If the points are close together, a small uniform change can have a larger effect on that secant. This does not obstruct openness: for the particular witness, \(d>0\) and the margin \(S-n>0\), so the radius \(\eta\) is positive.

Worked Example: An Explicit Openness Radius

Take \(J=(1/4,3/4)\), \(n=2\), and \(f(t)=3t\). Choose \(x=1/3\) and \(y=2/3\), which both lie strictly inside \(J\). The distance is \(y-x=2/3-1/3=1/3\). The function values are \(f(1/3)=1\) and \(f(2/3)=2\), so the secant slope is \((2-1)/(1/3)=3\). Its magnitude exceeds \(2\) by \(1\).

The radius from the proof is \(\eta=(1/3)(3-2)/2=1/6\). If \(\|g-f\|_\infty<1/6\), then the change in this secant is at most \(2\|g-f\|_\infty/(1/3)=6\|g-f\|_\infty<1\). Thus the magnitude of the new secant is at least \(3-6\|g-f\|_\infty>2\). The same two points still witness membership in \(U_{J,2}\).

Check: the displayed witness for \(f\) has slope \(3\), and the chosen ball radius is \(1/6>0\). The inequality is strict because \(\|g-f\|_\infty<1/6\), not merely \(\le1/6\).

A Small Perturbation Creates a Steep Secant

For density, start with any \(f\in C([0,1])\), any positive tolerance \(\varepsilon\), any rational subinterval \(J=(p,q)\), and any \(n\in\mathbb{N}\). We need to find a function in \(U_{J,n}\) within sup-norm distance \(\varepsilon\) of \(f\). Choose a center \(c\) strictly inside \(J\), and add a triangular bump whose peak is at \(c\). By continuity of \(f\), the original function changes very little between \(c\) and a sufficiently nearby point to its right. The bump can then dominate that change, while its narrow width makes the resulting secant steep.

Theorem 2: For every rational subinterval \(J\) and every \(n\in\mathbb{N}\), the set \(U_{J,n}\) is dense in \(C([0,1])\) with the sup-norm topology.

Proof. Fix \(f\in C([0,1])\) and \(\varepsilon>0\). Write \(J=(p,q)\), choose \(c=(p+q)/2\), and let \(\delta=\varepsilon/2>0\). Continuity of \(f\) at \(c\) gives a positive number \(\rho\) such that, whenever \(t\in[0,1]\) and \(|t-c|<\rho\), we have \(|f(t)-f(c)|<\delta/4\). Choose \(r>0\) small enough that \(r<\rho\), \(c+r<q\), \(c-r>p\), and \(nr<\delta/4\). In particular \(c,c+r\in J\).

Define $$ h(t)=\delta\max\left(1-\frac{|t-c|}{r},0\right),\qquad g(t)=f(t)+h(t)\quad (t\in[0,1]). $$ The function \(h\) is continuous, since it is formed from continuous functions by taking a maximum, and hence \(g\) is continuous. The quantity \(\max(1-|t-c|/r,0)\) lies between \(0\) and \(1\), and equals \(1\) at \(c\). Therefore \(\|h\|_\infty=\delta\), so \(\|g-f\|_\infty=\delta<\varepsilon\). Also \(h(c)=\delta\) and \(h(c+r)=0\). It follows that $$ g(c+r)-g(c)=f(c+r)-f(c)-\delta. $$ Since \(|f(c+r)-f(c)|<\delta/4\), the reverse triangle inequality yields \(\left|g(c+r)-g(c)\right|>3\delta/4\). The secant magnitude between \(c\) and \(c+r\) is consequently greater than \(3\delta/(4r)\). Our choice \(nr<\delta/4\) gives \(n<\delta/(4r)<3\delta/(4r)\). This secant is therefore greater than \(n\), and \(g\in U_{J,n}\). We have found such a \(g\) within \(\varepsilon\) of every \(f\), proving density. \(\square\)

Worked Example: A Triangular Bump Starting from Zero

Let \(f(t)=0\), \(J=(1/4,3/4)\), \(n=4\), and \(\varepsilon=0.1\). Set \(c=(1/4+3/4)/2=1/2\), \(\delta=\varepsilon/2=0.05\), and \(r=0.005\). The interval \([c-r,c+r]=[0.495,0.505]\) lies inside \(J\). Define \(g(t)=0.05\max(1-|t-0.5|/0.005,0)\). The maximum factor is between \(0\) and \(1\), and equals \(1\) at \(t=0.5\), so \(\|g-f\|_\infty=0.05<0.1\).

At \(c=0.5\), \(g(c)=0.05\). At \(c+r=0.505\), the factor is \(\max(1-0.005/0.005,0)=0\), so \(g(c+r)=0\). The secant slope is \((0-0.05)/(0.505-0.5)=-0.05/0.005=-10\), whose magnitude \(10\) is greater than \(n=4\). Thus \(g\in U_{J,4}\).

Check: the witness points \(0.5\) and \(0.505\) are both strictly between \(0.25\) and \(0.75\); the perturbation norm is \(0.05\), and the computed secant magnitude is \(10>4\).

Worked Example: Perturbing a Nonconstant Function

Take \(f(t)=t^2\), \(J=(1/4,3/4)\), \(n=10\), and \(\varepsilon=0.05\). Choose \(c=0.5\), \(\delta=0.02\), and \(r=0.001\). Both \(c\) and \(c+r=0.501\) lie in \(J\). Use \(g(t)=t^2+0.02\max(1-|t-0.5|/0.001,0)\). The bump factor lies between \(0\) and \(1\), with value \(1\) at \(0.5\), so \(\|g-f\|_\infty=0.02<0.05\).

Compute the original function change: \(f(0.501)-f(0.5)=0.501^2-0.5^2=0.251001-0.25=0.001001\). The bump has value \(0.02\) at \(0.5\) and value \(0\) at \(0.501\), so \(g(0.501)-g(0.5)=0.001001-0.02=-0.018999\). Dividing by the distance \(0.501-0.5=0.001\), the secant slope is \(-18.999\). Its magnitude \(18.999\) exceeds \(10\).

Check: the endpoint values are \(g(0.5)=0.25+0.02=0.27\) and \(g(0.501)=0.251001\); their difference is \(0.251001-0.27=-0.018999\), agreeing with the computed slope after division by \(0.001\).

Countably Many Conditions and a Common Pitfall

There are countably many rational subintervals \(J\) and countably many positive integers \(n\). Thus the sets \(U_{J,n}\) form a countable family of open dense subsets of \(C([0,1])\). The space \(C([0,1])\) with the sup-norm metric is complete, a standard result from the earlier material on the sup-norm space. The complete-metric Baire theorem says that in a complete metric space, every countable intersection of open dense sets is dense. Applying that theorem, \(\bigcap_{J,n}U_{J,n}\) is dense. Its members have secants of magnitude greater than each prescribed integer within every rational subinterval. This is the category-theoretic payoff of proving openness and density separately.

Common pitfall. If one writes \(h(t)=\delta(1-|t-c|/r)\) without the maximum with \(0\), the claim \(\|h\|_\infty=\delta\) can fail. For example, take \(c=0.5\), \(r=0.1\), and \(\delta=0.02\). At \(t=0\), the factor is \(1-|0-0.5|/0.1=1-5=-4\), so \(h(0)=-0.08\). Hence \(\|h\|_\infty\ge0.08>0.02\). The corrected definition \(h(t)=\delta\max(1-|t-c|/r,0)\) gives \(h(0)=0\), keeps all values between \(0\) and \(\delta\), and still has peak value \(\delta\) at \(c\). The truncation is essential both for the support and for the claimed perturbation bound.

The two proofs also illustrate why the strict inequality in the definition matters. A witnessing secant has a positive margin above \(n\), which provides a positive openness radius. For density, choosing \(r\) so that \(nr<\delta/4\) makes the constructed secant strictly exceed \(n\), rather than merely reach it.

Check Your Understanding

Use the definitions and estimates above to answer the following questions.

  1. For a witnessed secant of magnitude \(S>n\) between points at distance \(d\), what sup-norm radius in the openness proof guarantees that the same pair still witnesses membership?
  2. Why must the bump's center and the point to its right both lie strictly inside the rational subinterval?
  3. In the density proof, which two bounds on \(r\) control the original function's change and the target slope threshold?
  4. For \(f(t)=0\), \(c=1/2\), \(\delta=0.03\), and \(r=0.002\), compute the secant slope of the triangular perturbation from \(c\) to \(c+r\).
  5. Explain why the untruncated expression \(\delta(1-|t-c|/r)\) need not have sup norm \(\delta\).