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 and returns an output . The set of all values that can have is called the domain, and the set that contains every value that can have is called the codomain. A function is often denoted by italic letters such as , , .[1][2][3]

If this happens, then we say that is a function of , and we write . Here, is the name of the function, and one writes (function from X to Y) to represent the three parts of the function: the domain (), the codomain (), and the pairing process (the arrow), or, the mapping from and to the sets.

An example of a function is . One gives a natural number as the input, and gets a natural number , which is . For example, giving 3 as input to 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.

  1. "Compendium of Mathematical Symbols". Math Vault. 2020-03-01. Retrieved 2020-08-17.
  2. "What is a Function". www.mathisfun.com. Retrieved 2020-08-17.
  3. Weisstein, Eric W. "Function". mathworld.wolfram.com. Retrieved 2020-08-17.

Developed by StudentB