Lably
Skip to content

Domain of a function

Set of all things that may be the input of a mathematical function

  • 3 min read
  • 3 chapters
  • 1 lab on Lably

Learn it on Lably

More precisely, given a function f:X→Y, the domain of f is X. In modern mathematical language, the domain is part of the definition of a function rather than a property of it.

In the special case that X and Y are both sets of real numbers, the function f can be graphed in the Cartesian coordinate system. In this case, the domain is represented on the x-axis of the graph, as the projection of the graph of the function onto the x-axis.

For a function f:X→Y, the set Y is called the codomain: the set to which all outputs must belong. The set of specific outputs the function assigns to elements of X is called its range or image. The image of f is a subset of Y, shown as the yellow oval in the accompanying diagram.

Any function can be restricted to a subset of its domain. The restriction of f:X→Y to A, where A⊆X, is written as f|A:A→Y.

Natural domain

If a real function f is given by a formula, it may be not defined for some values of the variable. In this case, it is a partial function, and the set of real numbers on which the formula can be evaluated to a real number is called the natural domain or domain of definition of f. In many contexts, a partial function is called simply a function, and its natural domain is called simply its domain.

Examples

  • The function f defined by f(x)=1x cannot be evaluated at 0. Therefore, the natural domain of f is the set of real numbers excluding 0, which can be denoted by R∖{0} or {x∈R:x≠0}.
  • The piecewise function f defined by f(x)={1/xx≠00x=0, has as its natural domain the set R of real numbers.
  • The square root function f(x)=x has as its natural domain the set of non-negative real numbers, which can be denoted by R≥0, the interval [0,∞), or {x∈R:x≥0}.
  • The tangent function, denoted tan, has as its natural domain the set of all real numbers which are not of the form π2+kπ for some integer k, which can be written as R∖{π2+kπ:k∈Z}.

Sign in to keep reading

2 more chapters are free with a Lably account.

More in Functions