Tutorials › Real Analysis › Continuity of the Identity Function

Continuity · Tutorial 337 of 1000

Continuity of the Identity Function

Learn why the identity function preserves distances and how that gives continuity at each point and uniform continuity on its entire domain.

Intermediate 8 min read

What You'll Learn

  • Define the identity function on an arbitrary subset of the real line
  • Prove its continuity at every point using an explicit delta choice
  • Show that the same delta works across the whole domain
  • Use distance preservation to verify continuity on restricted domains
  • Distinguish continuity of the identity from the shape of its domain

When Each Input Is Its Own Output

For a constant function, every input produces the same output, so output differences vanish. The identity function behaves in the opposite way: it returns the input itself. Its output difference is therefore not zero in general, but it exactly matches the input difference. That equality makes the epsilon-delta proof especially direct.

As in the previous tutorial, the domain may be any subset of \(\mathbb{R}\). It need not contain an interval around a point, and it may be unbounded or even empty. The continuity condition tests only those inputs that belong to the domain.

Definition: Let \(E\subseteq\mathbb{R}\). The identity function on \(E\) is the function \(i:E\to E\) defined by \(i(x)=x\) for every \(x\in E\). We may also regard it as a function \(i:E\to\mathbb{R}\) with the same rule. The distances between its values are unchanged in either interpretation.

If \(a,x\in E\), then \(i(x)=x\) and \(i(a)=a\). Consequently, \(|i(x)-i(a)|=|x-a|\). Thus, to make the output error smaller than \(\varepsilon\), it is enough to require the input to be within \(\varepsilon\) of \(a\). This suggests choosing \(\delta=\varepsilon\).

The Identity Preserves Distances

The key calculation applies not only when one input is a fixed continuity point, but to every pair of inputs in the domain. It is useful to state this as a result in its own right.

Theorem: Let \(E\subseteq\mathbb{R}\), and let \(i:E\to E\) be the identity function. For every \(x,y\in E\), \(|i(x)-i(y)|=|x-y|\). In particular, the identity function preserves distances.

Proof. Fix \(x,y\in E\). By the definition of the identity function, \(i(x)=x\) and \(i(y)=y\). Substitution gives \[ |i(x)-i(y)|=|x-y|. \] This proves the equality for every pair \(x,y\in E\). If \(E\) is empty, there are no pairs to check, so the assertion is vacuously true. \(\square\)

A function that preserves distances is sometimes called an isometry. Here, the term describes the exact equality just proved; no assumptions about the shape of \(E\) are needed. In particular, the identity function does not stretch or shrink any distance, even when the domain has gaps or consists of isolated points.

Continuity at Each Domain Point

Theorem: Let \(E\subseteq\mathbb{R}\), and let \(i:E\to E\) be the identity function. Then \(i\) is continuous at every \(a\in E\).

Proof. Fix \(a\in E\), and let \(\varepsilon>0\). Choose \(\delta=\varepsilon\), which is positive. Suppose \(x\in E\) and \(|x-a|<\delta\). Since \(i(x)=x\) and \(i(a)=a\), we have \[ |i(x)-i(a)|=|x-a|<\delta=\varepsilon. \] This is precisely the epsilon-delta condition for continuity at \(a\). Since \(a\) was arbitrary, \(i\) is continuous at every point of \(E\). If \(E\) is empty, there are no points at which to check continuity, and the statement holds vacuously. \(\square\)

The choice \(\delta=\varepsilon\) works because the input and output errors are equal. As in the epsilon-delta definition, \(\delta\) need not be the largest possible choice. For example, any positive \(\delta\leq\varepsilon\) also works: if \(|x-a|<\delta\), then \(|i(x)-i(a)|=|x-a|<\delta\leq\varepsilon\).

Worked Example: Continuity at an Endpoint of an Interval

Let \(E=[-2,1]\), let \(i(x)=x\), and check continuity at \(a=-2\) for \(\varepsilon=0.4\). Choose \(\delta=0.4\). If \(x\in E\) satisfies \(|x-(-2)|<0.4\), then \[ |i(x)-i(-2)|=|x-(-2)|<0.4=\varepsilon. \] For instance, \(x=-1.8\) belongs to \(E\), and \(|-1.8-(-2)|=0.2<0.4\); the output difference is also \(|i(-1.8)-i(-2)|=|-1.8-(-2)|=0.2\). The same distance equality applies to every \(x\in E\) meeting the input condition, not only to this test value. The fact that \(-2\) is an endpoint causes no difficulty: the definition asks only about \(x\) in \(E\).

One Delta Works on the Whole Domain

Continuity at a point allows the choice of \(\delta\) to depend on that point. Uniform continuity requires a stronger arrangement: once \(\varepsilon\) is fixed, the same \(\delta\) must work for every pair of domain points. The distance-preserving calculation proves this stronger property immediately.

Theorem: For every \(E\subseteq\mathbb{R}\), the identity function \(i:E\to E\) is uniformly continuous on \(E\).

Proof. Fix \(\varepsilon>0\), and choose \(\delta=\varepsilon\). Let \(x,y\in E\) satisfy \(|x-y|<\delta\). By distance preservation, \[ |i(x)-i(y)|=|x-y|<\delta=\varepsilon. \] The choice of \(\delta\) depends only on \(\varepsilon\), not on \(x\) or \(y\). It therefore works for every pair in \(E\), which is the definition of uniform continuity. If \(E\) is empty, there are no pairs to check, so uniform continuity holds vacuously as well. \(\square\)

In fact, the same \(\delta=\varepsilon\) also gives continuity at every individual point. The difference is the scope of the claim: pointwise continuity fixes a center \(a\), whereas uniform continuity must handle all pairs \(x,y\) in the domain at once. For the identity, the exact distance equality makes the single choice work throughout.

Worked Example: Uniform Continuity on an Unbounded Domain

Consider the identity function on \(E=(3,\infty)\). To verify uniform continuity for \(\varepsilon=0.01\), choose \(\delta=0.01\). Take any \(x,y\in E\) such that \(|x-y|<0.01\). Then \[ |i(x)-i(y)|=|x-y|<0.01. \] For example, \(x=4.2\) and \(y=4.205\) are both in \(E\), and \[ |x-y|=|4.2-4.205|=0.005,\qquad |i(x)-i(y)|=|4.2-4.205|=0.005<0.01. \] This calculation is not limited to inputs near \(4.2\); it holds for every pair in the domain meeting the input condition. The domain is unbounded, but no bound on \(x\) or \(y\) is needed.

Restricted Domains and Exact Delta Choices

A function’s domain matters because it determines which inputs must be tested. But restricting the identity function to a smaller set does not alter its rule at any point that remains in the domain. The distance equality continues to hold for every pair of points in that smaller set.

Worked Example: Continuity on a Finite Domain

Let \(E=\{-5,0,\sqrt{3},8\}\), and let \(i:E\to E\) be the identity function. We verify continuity at \(a=\sqrt{3}\) for \(\varepsilon=0.2\). Choose \(\delta=0.2\). For every \(x\in E\) with \(|x-\sqrt{3}|<0.2\), the identity rule gives \[ |i(x)-i(\sqrt{3})|=|x-\sqrt{3}|<0.2. \] In this particular domain, the only point that meets this input condition is \(x=\sqrt{3}\): the distances from \(\sqrt{3}\) to the other domain points are \(\sqrt{3}>0.2\), \(5+\sqrt{3}>0.2\), and \(8-\sqrt{3}>0.2\). For the point that does meet the condition, the output difference is \(|i(\sqrt{3})-i(\sqrt{3})|=0<0.2\). Thus the implication holds. The general distance calculation would prove it without first identifying which points of this finite domain lie within \(\delta\).

The finite example shows one way a continuity condition can be satisfied on a restricted domain: there may be few points to test near the chosen center. But the identity function does not rely on that feature. The same proof works whether a neighborhood contains one domain point, many domain points, or none other than its center.

Worked Example: Continuity on a Sequence of Domain Points

Let \(E=\{2+1/n:n\text{ is a positive integer}\}\), and consider the identity function at \(a=3\), which belongs to \(E\) because \(3=2+1/1\). For \(\varepsilon=0.05\), choose \(\delta=0.05\). If \(x\in E\) satisfies \(|x-3|<0.05\), then \[ |i(x)-i(3)|=|x-3|<0.05. \] As a concrete check, \(x=2+1/20=2.05\) is in \(E\), and \(|2.05-3|=0.95\), so it does not meet the input condition. By contrast, \(x=2+1/2=2.5\) is also in \(E\), but its distance from \(3\) is \(0.5\), which again is not less than \(0.05\). These test values illustrate why the proof is conditional: it makes a claim only about domain points that satisfy the chosen input bound. For any domain point that does satisfy it, the output difference equals that same input distance and is therefore less than \(0.05\).

Why the Distance Equality Matters

For the identity function, the central estimate is an equality: \[ |i(x)-i(a)|=|x-a|. \] There is no need to produce an indirect bound or first restrict \(x\) to a smaller region. The epsilon-delta choice follows directly from the desired output tolerance.

A common pitfall is to treat continuity as a statement about all real numbers near \(a\), even when the function’s domain is only \(E\). The correct implication tests \(x\in E\). For example, if \(E\) has gaps, values in those gaps are not inputs to the function and need not be considered. Another pitfall is to assume that pointwise continuity alone automatically gives uniform continuity for every function. That implication is not generally valid; here uniform continuity follows from the stronger, domain-wide distance calculation.

The identity function is also a useful reference point for later continuity arguments. Its output changes at exactly the same rate as its input: a given input distance is neither enlarged nor reduced. In the next tutorial, polynomial functions will be built from simpler functions, and their output differences will generally require more involved estimates than this exact equality.

Check Your Understanding

Use the distance-preserving property and the epsilon-delta definition to answer the following questions.

  1. For \(x,y\in E\), what is the exact relationship between \(|i(x)-i(y)|\) and \(|x-y|\)?
  2. At a fixed point \(a\in E\), what choice of \(\delta\) proves continuity of the identity function for a given \(\varepsilon>0\)?
  3. Why does the same choice also prove uniform continuity on the entire domain?
  4. Does the domain need to contain an open interval around \(a\) for the continuity proof to work? Explain.
  5. Why does an unbounded domain not prevent the identity function from being uniformly continuous?