Function (mathematics)
In mathematics, a function is a mathematical object that produces an output, when given an input (which could be a number, a vector, or anything that can exist inside a set of things).
In essence, a function is like a machine, that takes a value of [math]\displaystyle{ x }[/math] and returns an output [math]\displaystyle{ y }[/math]. The set of all values that [math]\displaystyle{ x }[/math] can have is called the domain, and the set that contains every value that [math]\displaystyle{ y }[/math] can have is called the codomain. A function is often denoted by italic letters such as [math]\displaystyle{ f }[/math], [math]\displaystyle{ g }[/math], [math]\displaystyle{ h }[/math].[1][2][3]
If this happens, then we say that [math]\displaystyle{ y }[/math] is a function of [math]\displaystyle{ x }[/math], and we write [math]\displaystyle{ y=f(x) }[/math]. Here, [math]\displaystyle{ f }[/math] is the name of the function, and one writes [math]\displaystyle{ f:X\to Y }[/math] (function from X to Y) to represent the three parts of the function: the domain ([math]\displaystyle{ X }[/math]), the codomain ([math]\displaystyle{ Y }[/math]), and the pairing process (the arrow), or, the mapping from and to the sets.
An example of a function is [math]\displaystyle{ f(x)=x+1 }[/math]. One gives a natural number [math]\displaystyle{ x }[/math] as the input, and gets a natural number [math]\displaystyle{ y }[/math], which is [math]\displaystyle{ x+1 }[/math]. For example, giving 3 as input to [math]\displaystyle{ f }[/math] results in an output of 4.
A function doesn't have to be an equation. The main idea is that inputs and outputs are paired up somehow—even if the process might be very complicated.
Metaphors
Tables
The inputs and outputs can be put in a table like the picture; this is easy if there is not too much data.
Graphs
In the picture, one can see that both 2 and 3 have been paired with c; this is not allowed in the other direction, as 2 could not output c and d at the same time (each input can only have one output). All of the [math]\displaystyle{ f(x) }[/math] ([math]\displaystyle{ c }[/math] and [math]\displaystyle{ d }[/math] in the picture) are usually called the image set of [math]\displaystyle{ f }[/math], and the image set can be the entire codomain or one of its subset.
One can say that the image set of a subset A of the domain is [math]\displaystyle{ f(A) }[/math]. If the inputs and outputs have an order, then it is easy to plot them on a graph:
In that way, the image comes on the image of the set A.
History
In the 1690s, Gottfried Leibniz and Johann Bernoulli used the word "function" in letters between them, so the modern concept began at the same time as calculus.
In 1748, Leonhard Euler gave the following definition for function:
"A function of a variable quantity is an analytic expression composed in any way whatsoever of the variable quantity and numbers or constant quantities."
and then in 1755:
"If some quantities so depend on other quantities that if the latter are changed the former undergoes change, then the former quantities are called functions of the latter. This definition applies rather widely and includes all ways in which one quantity could be determined by other. If, therefore, [math]\displaystyle{ x }[/math] denotes a variable quantity, then all quantities which depend upon [math]\displaystyle{ x }[/math] in any way, or are determined by it, are called functions of [math]\displaystyle{ x }[/math]."
Usually, Peter Dirichlet is credited with the first modern definition of function (formulated in 1837).[4] It was often used in schools until the second half of the 20th century:
"[math]\displaystyle{ y }[/math] is a function of a variable [math]\displaystyle{ x }[/math], defined on the interval [math]\displaystyle{ a\lt x\lt b }[/math], if to every value of the variable [math]\displaystyle{ x }[/math] in this interval there corresponds a definite value of the variable [math]\displaystyle{ y }[/math]. Also, it is irrelevant in what way this correspondence is established."
In 1939, the Bourbaki generalized the Dirichlet definition, and gave a set-theoretic version of the definition as a correspondence between inputs and outputs; this has been used in schools from about 1960.
Finally in 1970, Bourbaki gave the modern definition as a triple [math]\displaystyle{ f=(X,Y,F) }[/math], with [math]\displaystyle{ F\sub X\times Y,(x,f(x))\in F }[/math] (i.e. [math]\displaystyle{ f:X\to Y }[/math] and [math]\displaystyle{ F=\{(x,f(x))\mid x\in X,f(x)\in Y\} }[/math]). [math]\displaystyle{ X }[/math] is called the domain of [math]\displaystyle{ f }[/math], [math]\displaystyle{ Y }[/math] its codomain, and [math]\displaystyle{ F }[/math] its graph.[5] The set of all elements of the form [math]\displaystyle{ f(x) }[/math], where [math]\displaystyle{ x }[/math] ranges over the elements of the domain [math]\displaystyle{ X }[/math], is called the image of [math]\displaystyle{ f }[/math]. The image of a function is a subset of its codomain and might not coincide with it.
Types of functions
- Elementary functions - The functions that are usually studied in school: fractions, square roots, the sine, cosine and tangent functions and some other functions along those lines.
- Non-elementary functions - Most of them use operations that we don't learn in school (like + or −, or powers). Many integrals, for example, are non-elementary.
- Inverse functions - Functions that undo another function. For example: if [math]\displaystyle{ F(x) }[/math] is the inverse of [math]\displaystyle{ f(x)=y }[/math], then [math]\displaystyle{ F(y)=x }[/math]. Not all functions have inverses.
- Special functions: Functions that have names. These include trigonometric functions such as sine, cosine and tangent. Functions like [math]\displaystyle{ f(x)=3x }[/math] (three times [math]\displaystyle{ x }[/math]) are not called special functions. Special functions can be elementary, non-elementary or inverses.
Function (mathematics) Media
Schematic depiction of a function described metaphorically as a "machine" or "black box" that for each input yields a corresponding output
The red curve is the graph of a function, because any vertical line has exactly one crossing point with the curve.
The function mapping each year to its US motor vehicle death count, shown as a line chart
Related pages
- Constant function
- Continuous function
- Function composition
- Linear function
- MatLab, Wolfram Mathematica - software to compute mathematical functions
- Relation
- Special functions
References
- ↑ "Compendium of Mathematical Symbols". Math Vault. 2020-03-01. Retrieved 2020-08-17.
- ↑ "What is a Function". www.mathisfun.com. Retrieved 2020-08-17.
- ↑ Weisstein, Eric W. "Function". mathworld.wolfram.com. Retrieved 2020-08-17.
- ↑ "function | Definition, Types, Examples, & Facts". Encyclopedia Britannica. Retrieved 2020-08-17.
- ↑ Bourbaki 1970, p. 76