Skip to content

Restriction of a Function

Definition

Let f ⁣:A→Bf\colon A\to B be a function and let S⊆AS\subseteq A. The restriction of ff to SS is the function

f∣S ⁣:S→B,f∣S(x)=f(x).f|_S\colon S\to B, \qquad f|_S(x)=f(x).

Only the domain is changed; the rule used to compute the value is the same.


Interpretation

A restriction keeps the rule of ff and only shrinks its domain to a subset SS. This is the formal step behind optimizing a function subject to constraints: the objective stays the same, only the admissible inputs change.

Graph of f on the interval A from 0 to 6 drawn dashed, with the part over the subinterval S from c to d highlighted as the restriction of f to S.

The dashed curve is ff on A=[0,6]A=[0,6]; the red piece over S=[c,d]S=[c,d] is the graph of f∣Sf|_S, with the same values and a smaller domain. Its largest value is at the left endpoint cc, where ff itself is decreasing and has no local maximum. The extrema of f∣Sf|_S are the constrained extrema of ff, and they can sit where ff has none.

Other properties change with the domain too: f∣Sf|_S may be injective or bounded when ff is not: x2x^2 is injective on [0,∞)[0,\infty) (see the Examples) and bounded on [0,1][0,1], but neither on R\mathbb{R}. In the same way, arcsin⁡\arcsin is defined as the inverse of the restriction of sin⁡\sin to [−π/2,π/2][-\pi/2,\pi/2] (inverse trigonometric functions), and the multivariable inverse function theorem inverts f∣V\boldsymbol{f}|_V on a small neighbourhood VV. For an equality constraint g(x)=bg(\boldsymbol{x})=b, the restricted domain is a level set of gg.

A common slip is to look for the extrema of f∣Sf|_S among the stationary points of ff. On the unit circle, f(x,y)=x+yf(x,y)=x+y is largest at (1/2,1/2)(1/\sqrt{2},1/\sqrt{2}), although its gradient (1,1)(1,1) is never zero.


Key Results

  • The restricted function can have extrema that the unrestricted function does not have.
  • A constraint set often defines the domain of the restricted objective.
  • Properties such as injectivity can change after restriction.

Examples

  • The function f(x,y)=x+yf(x,y)=x+y restricted to the circle x2+y2=1x^2+y^2=1 becomes an objective on that circle only.
  • The function f(x)=x2f(x)=x^2 is not injective on R\mathbb{R}, but its restriction to [0,∞)[0,\infty) is injective.

Prerequisites

Sources

Aliases: restriction to a set Keywords: function restriction, restricted function Symbols: infinity, pi, real numbers, square root, subset

Last updated: 27 October 2026 11:52