\restriction

The \restriction command is used in LaTeX to denote the restriction of a function to a subset of its domain. It is typically represented by a vertical bar with a subscript indicating the subset. This is useful in mathematical contexts where a function is defined on a larger set but is being considered only on a specific subset.

Examples

The function f restricted to the subset A.

f \restriction_A

The function g restricted to the interval [0,1].

g \restriction_{[0,1]}

The function h restricted to the positive real numbers.

h \restriction_{\{x \in \mathbb{R} : x > 0\}}