ArticleslgStudy

mathematics

Function (mathematics)

Function (mathematics) is a mathematics topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Function (mathematics) rather than just read about it. In short: In mathematics, a function from a set X to a set Y assigns to each element of X exactly one element of Y. The set X is called the domain of the function and the set Y is called the codomain of the function.

Function (mathematics) — main illustration
Function (mathematics) — illustration

Key takeaways

  • Function (mathematics) belongs to mathematics; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Function (mathematics) to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Function (mathematics) from memory before moving on to harder problems.

Reference excerpt

In mathematics, a function from a set X to a set Y assigns to each element of X exactly one element of Y. The set X is called the domain of the function and the set Y is called the codomain of the function. Functions were originally the idealization of how a varying quantity depends on another quantity. For example, the position of a planet is a function of time. Historically, the concept was elaborated with the infinitesimal calculus at the end of the 17th century, and, until the 19th century, the functions that were considered were differentiable (that is, they had a high degree of regularity). The concept of a function was formalized at the end of the 19th century in terms of set theory, and this greatly increased the possible applications of the concept. A function is often denoted by a letter such as f, g or h. The value of a function f at an element x of its domain (that is, the element of the codomain that is associated with x) is denoted by f(x); for example, the value of f at x = 4 is denoted by f(4). Commonly, a specific function is defined by means of an expression depending on x, such as f(x)=x2+1; in this case, some computation, called function evaluation, may be needed for deducing the value of the function at a particular value; for example, if f(x)=x2+1, then f(4)=42+1=17. Given its domain and its codomain, a function is uniquely represented by the set of all pairs (x, f (x)), called the graph of the function, a popular means of illustrating the function. When the domain and the codomain are sets of real numbers, each such pair may be thought of as the Cartesian coordinates of a point in the plane. Functions are widely used in science, engineering, and in most fields of mathematics. It has been said that functions are "the central objects of investigation" in most fields of mathematics. The concept of a function has evolved significantly over centuries, from its informal origins in ancient mathematics to its formalization in the 19th century. See History of the function concept for details.

Definition

A function f from a set X to a set Y is an assignment of one element of Y to each element of X. The set X is called the domain of the function and the set Y is called the codomain of the function. If the element y in Y is assigned to x in X by the function f, one says that f maps x to y, and this is commonly written y=f(x). In this notation, x is the argument or variable of the function. A specific element x of X is a value of the variable, and the corresponding element of Y is the value of the function at x, or the image of x under the function. The image of a function, sometimes called its range, is the set of the images of all elements in the domain. A function f, its domain X, and its codomain Y are often specified by the notation f:X→Y. One may write x↦y instead of y=f(x), where the symbol ↦ (read 'maps to') is used to specify where a particular element x in the domain is mapped to by f. This allows the definition of a function without naming. For example, the square function is the function x↦x2. The domain and codomain are not always explicitly given when a function is defined. In particular, it is common that one might only know, without some (possibly difficult) computation, that the domain of a specific function is contained in a larger set. For example, if f:ℝ→ℝ is a real function, the determination of the domain of the function x↦1/f(x) requires knowing the zeros of f. This is one of the reasons for which, in mathematical analysis, "a function from X to Y " may refer to a function having a proper subset of X as a domain. For example, a "function from the reals to the reals" may refer to a real-valued function of a real variable whose domain is a proper subset of the real numbers, typically a subset that contains a non-empty open interval. Such a function is then called a partial function. A function f on a set S means a function from the domain S, without specifying a codomain. However, some authors use it as shorthand for saying that the function is f: S → S.

Formal definition

The above definition of a function is essentially that of the founders of calculus, Leibniz, Newton and Euler. However, it cannot be formalized, since there is no mathematical definition of an "assignment". It is only at the end of the 19th century that the first formal definition of a function could be provided, in terms of set theory. This set-theoretic definition is based on the fact that a function establishes a relation between the elements of the domain and some (possibly all) elements of the codomain. Mathematically, a binary relation between two sets X and Y is a subset of the set of all ordered pairs (x,y) such that x∈X and y∈Y. The set of all these pairs is called the Cartesian product of X and Y and denoted X×Y. Thus, the above definition may be formalized as follows. A function with domain X and codomain Y is a binary relation R between X and Y that satisfies the two following conditions:

For every x in X there exists y in Y such that (x,y)∈R. If (x,y)∈R and (x,z)∈R, then y=z. This definition may be rewritten more formally, without referring explicitly to the concept of a relation, but using more notation (including set-builder notation): A function is formed by three sets (often as an ordered triple), the domain X, the codomain Y, and the graph R that satisfy the three following conditions.

R⊆{(x,y)∣x∈X,y∈Y} ∀x∈X,∃y∈Y,(x,y)∈R (x,y)∈R∧(x,z)∈R⟹y=z A relation satisfying these conditions is called a functional relation. The more usual terminology and notation can be derived from this formal definition as follows. Let ⁠f⁠ be a function defined by a functional relation ⁠R⁠. For every ⁠x⁠ in the domain of ⁠f⁠, the unique element of the codomain that is related to ⁠x⁠ is denoted ⁠f(x)⁠. If ⁠y⁠ is this element, one writes commonly ⁠y=f(x)⁠ instead of ⁠(x,y)∈R⁠ or ⁠xRy⁠, and one says that "⁠f⁠ maps ⁠x⁠ to ⁠y⁠", "⁠y⁠ is the image by ⁠f⁠ of ⁠x⁠", or "the application of ⁠f⁠ on ⁠x⁠ gives ⁠y⁠", etc.

Partial functions

… excerpt ends here. Continue reading the full article.

Illustrations

Function (mathematics): The red curve is the graph of a function, because any vertical line has exactly one crossing point with the curve.
The red curve is the graph of a function, because any vertical line has exactly one crossing point with the curve.
Function (mathematics): Diagram of a function
Diagram of a function
Function (mathematics): Diagram of a relation that is not a function. One reason is that 2 is the first element in more than one ordered pair.  Another reason is that neither 3 nor 4 are the first element (input) of any ordered pair.
Diagram of a relation that is not a function. One reason is that 2 is the first element in more than one ordered pair. Another reason is that neither 3 nor 4 are the first element (input) of any ordered pair.
Function (mathematics): A binary operation is a typical example of a bivariate function which assigns to each pair (x,y) the result x∘y.
A binary operation is a typical example of a bivariate function which assigns to each pair (x,y) the result x∘y.
Function (mathematics): The function mapping each year to its US motor vehicle death count, shown as a line chart
The function mapping each year to its US motor vehicle death count, shown as a line chart

Worked examples

Example 1 — a first encounter with Function (mathematics)

Start with the simplest possible case. Write down what Function (mathematics) claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In mathematics, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Function (mathematics) before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Function (mathematics) ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Function (mathematics)

In research
Function (mathematics) appears in mathematics research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Function (mathematics) in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Function (mathematics) is common in secondary-school and first-year university syllabi. It links to neighbouring topics Basic concepts in set theory, Elementary mathematics, Functions and mappings, so understanding it makes those chapters shorter.
In everyday life
Look for Function (mathematics) outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Function (mathematics)” →

How to study Function (mathematics) in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Function (mathematics) means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Function (mathematics) out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Function (mathematics) in simple terms?

In mathematics, a function from a set X to a set Y assigns to each element of X exactly one element of Y. The set X is called the domain of the function and the set Y is called the codomain of the function.

Why does Function (mathematics) matter?

Because it connects several mathematics ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Function (mathematics)?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Function (mathematics).

Tags

  • Basic concepts in set theory
  • Elementary mathematics
  • Functions and mappings

Keep exploring