Domain of a function
It has been suggested that this article be merged into partial function. (Discuss) Proposed since February 2019. |
In mathematics, and more specifically in naive set theory, the domain of definition (or simply the domain) of a function is the set of "input" or argument values for which the function is defined. That is, the function provides an "output" or value for each member of the domain.[1] Conversely, the set of values the function takes on as output is termed the image of the function, which is sometimes also referred to as the range of the function.
For instance, the domain of cosine is the set of all real numbers, while the domain of the square root consists only of numbers greater than or equal to 0 (ignoring complex numbers in both cases).
If the domain of a function is a subset of the real numbers and the function is represented in a Cartesian coordinate system, then the domain is represented on the x-axis.
Contents
1 Formal definition
2 Natural domain
3 Domain of a partial function
4 Category theory
5 Real and complex analysis
6 More examples
7 See also
8 References
Formal definition
Given a function f:X→Y{displaystyle fcolon Xto Y}, the set X{displaystyle X} is the domain of f{displaystyle f}; the set Y{displaystyle Y} is the codomain of f{displaystyle f}. In the expression f(x){displaystyle f(x)}, x{displaystyle x} is the argument and f(x){displaystyle f(x)} is the value. One can think of an argument as a member of the domain that is chosen as an "input" to the function, and the value as the "output" when the function is applied to that member of the domain.
The image (sometimes called the range) of f{displaystyle f} is the set of all values assumed by f{displaystyle f} for all possible x{displaystyle x}; this is the set {f(x)|x∈X}{displaystyle left{f(x)|xin Xright}}. The image of f{displaystyle f} can be the same set as the codomain or it can be a proper subset of it. It is, in general, smaller than the codomain; it is the whole codomain if and only if f{displaystyle f} is a surjective function.
A well-defined function must map every element of its domain to an element of its codomain. For example, the function f{displaystyle f} defined by
- f(x)=1x{displaystyle f(x)={frac {1}{x}}}
has no value for f(0){displaystyle f(0)}. Thus, the set of all real numbers, R{displaystyle mathbb {R} }, cannot be its domain. In cases like this, the function is either defined on R∖{0}{displaystyle mathbb {R} setminus {0}} or the "gap is plugged" by explicitly defining f(0){displaystyle f(0)}.
If we extend the definition of f{displaystyle f} to
- f(x)={1/xx≠00x=0{displaystyle f(x)={begin{cases}1/x&xnot =0\0&x=0end{cases}}}
then f is defined for all real numbers, and its domain is R{displaystyle mathbb {R} }.
Any function can be restricted to a subset of its domain. The restriction of g:A→B{displaystyle gcolon Ato B} to S{displaystyle S}, where S⊆A{displaystyle Ssubseteq A}, is written g|S:S→B{displaystyle left.gright|_{S}colon Sto B}.
Natural domain
The natural domain of a function is the maximum set of values for which the function is defined, typically within the reals but sometimes among the integers or complex numbers. For instance the natural domain of square root is the non-negative reals when considered as a real number function. When considering a natural domain, the set of possible values of the function is typically called its range.[2]
Domain of a partial function
There are two distinct meanings in current mathematical usage for the notion of the domain of a partial function from X to Y, i.e. a function from a subset X' of X to Y. Most mathematicians, including recursion theorists, use the term "domain of f" for the set X' of all values x such that f(x) is defined. But some, particularly category theorists, consider the domain to be X, irrespective of whether f(x) exists for every x in X.
Category theory
In category theory one deals with morphisms instead of functions. Morphisms are arrows from one object to another. The domain of any morphism is the object from which an arrow starts. In this context, many set theoretic ideas about domains must be abandoned or at least formulated more abstractly. For example, the notion of restricting a morphism to a subset of its domain must be modified. See subobject for more.
Real and complex analysis
In real and complex analysis, a domain is an open connected subset of a real or complex vector space.
In partial differential equations, a domain is an open connected subset of the Euclidean space Rn{displaystyle mathbb {R} ^{n}}, where the problem is posed, i.e., where the unknown function(s) are defined.
More examples
- As a partial function from the real numbers the function x↦x{displaystyle xmapsto {sqrt {x}}} is defined for all x≥0{displaystyle xgeq 0}.
- If one defines the square root of a negative number x as the complex number z, with positive imaginary part, such that z2 = x, the function x↦x{displaystyle xmapsto {sqrt {x}}} is defined for all real numbers x.
- Function tanx=sinxcosx{displaystyle tan x={frac {sin x}{cos x}}} is defined for all x≠π2+kπ,k=0,±1,±2,…{displaystyle xneq {frac {pi }{2}}+kpi ,k=0,pm 1,pm 2,ldots }
See also
- Bijection, injection and surjection
- Codomain
- Domain decomposition
- Effective domain
- Lipschitz domain
- Naive set theory
- Range (mathematics)
References
^ Paley, Hiram; Weichsel, Paul M. (1966). A First Course in Abstract Algebra. New York: Holt, Rinehart and Winston. p. 16..mw-parser-output cite.citation{font-style:inherit}.mw-parser-output .citation q{quotes:"""""""'""'"}.mw-parser-output .citation .cs1-lock-free a{background:url("//upload.wikimedia.org/wikipedia/commons/thumb/6/65/Lock-green.svg/9px-Lock-green.svg.png")no-repeat;background-position:right .1em center}.mw-parser-output .citation .cs1-lock-limited a,.mw-parser-output .citation .cs1-lock-registration a{background:url("//upload.wikimedia.org/wikipedia/commons/thumb/d/d6/Lock-gray-alt-2.svg/9px-Lock-gray-alt-2.svg.png")no-repeat;background-position:right .1em center}.mw-parser-output .citation .cs1-lock-subscription a{background:url("//upload.wikimedia.org/wikipedia/commons/thumb/a/aa/Lock-red-alt-2.svg/9px-Lock-red-alt-2.svg.png")no-repeat;background-position:right .1em center}.mw-parser-output .cs1-subscription,.mw-parser-output .cs1-registration{color:#555}.mw-parser-output .cs1-subscription span,.mw-parser-output .cs1-registration span{border-bottom:1px dotted;cursor:help}.mw-parser-output .cs1-ws-icon a{background:url("//upload.wikimedia.org/wikipedia/commons/thumb/4/4c/Wikisource-logo.svg/12px-Wikisource-logo.svg.png")no-repeat;background-position:right .1em center}.mw-parser-output code.cs1-code{color:inherit;background:inherit;border:inherit;padding:inherit}.mw-parser-output .cs1-hidden-error{display:none;font-size:100%}.mw-parser-output .cs1-visible-error{font-size:100%}.mw-parser-output .cs1-maint{display:none;color:#33aa33;margin-left:0.3em}.mw-parser-output .cs1-subscription,.mw-parser-output .cs1-registration,.mw-parser-output .cs1-format{font-size:95%}.mw-parser-output .cs1-kern-left,.mw-parser-output .cs1-kern-wl-left{padding-left:0.2em}.mw-parser-output .cs1-kern-right,.mw-parser-output .cs1-kern-wl-right{padding-right:0.2em}
^ Rosenbaum, Robert A.; Johnson, G. Philip (1984). Calculus: basic concepts and applications. Cambridge University Press. p. 60. ISBN 0-521-25012-9.