Domain of a function: Difference between revisions

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search
imported>D.Lazard
Reverted 1 edit by Crocusfleur (talk): Overlinking
 
imported>KawaiiAngelx
No edit summary
 
Line 1: Line 1:
{{short description|Mathematical concept}}
{{short description|Mathematical concept}}
[[File:Codomain2.SVG|right|thumb|250px|A function {{mvar|f}} from {{mvar|X}} to {{mvar|Y}}. The set of points in the red oval {{mvar|X}} is the domain of {{mvar|f}}.]]
[[File:Codomain2.SVG|thumb|A function {{mvar|f}} from {{mvar|X}} to {{mvar|Y}}. The set of points in the red oval {{mvar|X}} is the domain of {{mvar|f}}.]]
[[File:Square_root_0_25.svg|thumb|250px|Graph of the real-valued [[square root]] function, ''f''(''x'') = {{radic|''x''}}, whose domain consists of all nonnegative real numbers]]
[[File:Arcsine Arccosine.svg|thumb|upright=0.75|Graph of the arcsine and arccosine functions, ''f''(''x'') = arcsin(''x'') and ''f''(''x'') = arccos(''x''), each of whose domain consists of the set of real numbers [–1,1] inclusively]]


In [[mathematics]], the '''domain of a function''' is the [[Set (mathematics)|set]] of inputs accepted by the [[Function (mathematics)|function]]. It is sometimes denoted by <math>\operatorname{dom}(f)</math> or <math>\operatorname{dom }f</math>, where {{math|''f''}} is the function. In layman's terms, the domain of a function can generally be thought of as "what x can be".<ref>{{Cite web|title=Domain, Range, Inverse of Functions|url=https://www.easysevens.com/domain-range-inverse-of-functions/|access-date=2023-04-13|website=Easy Sevens Education|date=10 April 2023 |language=en}}</ref>
In [[mathematics]], the '''domain of a function''' is the [[Set (mathematics)|set]] of inputs accepted by the [[Function (mathematics)|function]]. It is sometimes denoted by <math>\operatorname{dom}(f)</math> or <math>\operatorname{dom }f</math>, where {{math|''f''}} is the function. In layman's terms, the domain of a function can generally be thought of as "what x can be".<ref>{{Cite web|title=Domain, Range, Inverse of Functions|url=https://www.easysevens.com/domain-range-inverse-of-functions/|access-date=2023-04-13|website=Easy Sevens Education|date=10 April 2023 |language=en}}</ref>
Line 9: Line 9:
In the special case that {{math|''X''}} and {{math|''Y''}} are both sets of [[real number]]s, the function {{math|''f''}} can be graphed in the [[Cartesian coordinate system]]. In this case, the domain is represented on the {{math|''x''}}-axis of the graph, as the projection of the graph of the function onto the {{math|''x''}}-axis.
In the special case that {{math|''X''}} and {{math|''Y''}} are both sets of [[real number]]s, the function {{math|''f''}} can be graphed in the [[Cartesian coordinate system]]. In this case, the domain is represented on the {{math|''x''}}-axis of the graph, as the projection of the graph of the function onto the {{math|''x''}}-axis.


For a function <math>f\colon X\to Y</math>, the set {{math|''Y''}} is called the ''[[codomain]]'': the set to which all outputs must belong. The set of specific outputs the function assigns to elements of {{math|''X''}} is called its ''[[Range of a function|range]]'' or ''[[Image (mathematics)|image]]''. The image of f is a subset of {{math|''Y''}}, shown as the yellow oval in the accompanying diagram.
For a function <math>f\colon X\to Y</math>, the set {{math|''Y''}} is called the ''[[codomain]]'': the set to which all outputs must belong. The set of specific outputs the function assigns to elements of {{math|''X''}} is called its ''[[Range of a function|range]]'' or ''[[Image (mathematics)|image]]''. The image of <math>f</math> is a subset of {{math|''Y''}}, shown as the yellow oval in the accompanying diagram.


Any function can be restricted to a subset of its domain. The [[Restriction (mathematics)|restriction]] of <math>f \colon X \to Y</math> to <math>A</math>, where <math>A\subseteq X</math>, is written as <math>\left. f \right|_A \colon A \to Y</math>.
Any function can be restricted to a subset of its domain. The [[Restriction (mathematics)|restriction]] of <math>f \colon X \to Y</math> to <math>A</math>, where <math>A\subseteq X</math>, is written as <math>\left. f \right|_A \colon A \to Y</math>.


== Natural domain ==
== Natural domain ==
If a [[real function]] {{mvar|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 {{mvar|f}}. In many contexts, a partial function is called simply a ''function'', and its natural domain is called simply its ''domain''.
If a [[real function]] {{mvar|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 {{mvar|f}}. In many contexts, a partial function is called simply a ''function'', and its natural domain is called simply its ''domain''.


=== Examples ===
=== Examples ===

Latest revision as of 23:40, 24 October 2025

Template:Short description

File:Codomain2.SVG
A function Template:Mvar from Template:Mvar to Template:Mvar. The set of points in the red oval Template:Mvar is the domain of Template:Mvar.
File:Arcsine Arccosine.svg
Graph of the arcsine and arccosine functions, f(x) = arcsin(x) and f(x) = arccos(x), each of whose domain consists of the set of real numbers [–1,1] inclusively

In mathematics, the domain of a function is the set of inputs accepted by the function. It is sometimes denoted by dom(f) or domf, where Template:Math is the function. In layman's terms, the domain of a function can generally be thought of as "what x can be".[1]

More precisely, given a function f:XY, the domain of Template:Math is Template:Math. 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 Template:Math and Template:Math are both sets of real numbers, the function Template:Math can be graphed in the Cartesian coordinate system. In this case, the domain is represented on the Template:Math-axis of the graph, as the projection of the graph of the function onto the Template:Math-axis.

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

Any function can be restricted to a subset of its domain. The restriction of f:XY to A, where AX, is written as f|A:AY.

Natural domain

If a real function Template:Mvar 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 Template:Mvar. 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 {0} or {x:x0}.
  • The piecewise function f defined by f(x)={1/xx=00x=0, has as its natural domain the set 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 0, the interval [0,), or {x:x0}.
  • 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 {π2+kπ:k}.

Other uses

The term domain is also commonly used in a different sense in mathematical analysis: a domain is a non-empty connected open set in a topological space. In particular, in real and complex analysis, a domain is a non-empty connected open subset of the real coordinate space n or the complex coordinate space n.

Sometimes such a domain is used as the domain of a function, although functions may be defined on more general sets. The two concepts are sometimes conflated as in, for example, the study of partial differential equations: in that case, a domain is the open connected subset of n where a problem is posed, making it both an analysis-style domain and also the domain of the unknown function(s) sought.

Set theoretical notions

For example, it is sometimes convenient in set theory to permit the domain of a function to be a proper class Template:Mvar, in which case there is formally no such thing as a triple Template:Math. With such a definition, functions do not have a domain, although some authors still use it informally after introducing a function in the form Template:Math.[2]

See also

Notes

Template:Reflist

References

  • Script error: No such module "citation/CS1".
  • Script error: No such module "citation/CS1".
  • Script error: No such module "citation/CS1".
  • Script error: No such module "citation/CS1".
  • Script error: No such module "citation/CS1".
  • Script error: No such module "citation/CS1".

Template:Mathematical logic

  1. Script error: No such module "citation/CS1".
  2. Script error: No such module "Footnotes"., p. 91 ([[[:Template:Google books]] quote 1], [[[:Template:Google books]] quote 2]); Script error: No such module "Footnotes"., [[[:Template:Google books]] p. 8]; Mac Lane, in Script error: No such module "Footnotes"., [[[:Template:Google books]] p. 232]; Script error: No such module "Footnotes"., [[[:Template:Google books]] p. 91]; Script error: No such module "Footnotes"., [[[:Template:Google books]] p. 89]