Let f:(X,dX)→(Y,dY)f:(X,d_X)\to(Y,d_Y) be a function between , and let A⊆XA\subseteq X. We say ff is continuous on AA if the restriction f∣A:A→Yf|_A:A\to Y, with AA carrying the subspace metric, is continuous. Equivalently, f∣Af|_A is a∈Aa\in A.

Spelled out: for every a∈Aa\in A and every ε>0\varepsilon>0, there exists δ>0\delta>0 such that for all x∈Ax\in A,

dX(x,a)<δ⇒dY ⁣(f(x),f(a))<ε.d_X(x,a)<\delta \quad\Rightarrow\quad d_Y\!\bigl(f(x),f(a)\bigr)<\varepsilon.
Equivalent characterizations

Equivalent viewpoints (metric spaces):

  • Sequential: if xn∈Ax_n\in A, a∈Aa\in A, and xn→ax_n\to a, then f(xn)→f(a)f(x_n)\to f(a) (see ).
  • Open-set: for every open V⊆YV\subseteq Y, the preimage (f∣A)−1(V)=A∩f−1(V)(f|_A)^{-1}(V)=A\cap f^{-1}(V) is open in AA (i.e., it equals A∩UA\cap U for some open U⊆XU\subseteq X).
Examples
  • Any polynomial p:R→Rp:\mathbb{R}\to\mathbb{R} is continuous on every A⊆RA\subseteq\mathbb{R}.
  • The function f:R∖{0}→Rf:\mathbb R\setminus\{0\}\to\mathbb R, f(x)=1/xf(x)=1/x, is continuous on every subset of its domain.
Remarks

If ff is differentiable (see ) on an open set, then it is continuous there.