The concept of a function formalises the idea of a “law” that associates one and only one output with each input.

Definition — Function

Given two non-empty sets AA and BB, a function ff from AA to BB (written f:ABf:A\to B) is a law that associates with each element xAx\in A one and only one element yBy\in B, called the image of xx under ff and denoted f(x)f(x).

Remark — The uniqueness of the image

The “one and only one” condition is crucial. A law that associates with x=2x = 2 both y=3y=3 and y=5y=5 is not a function. A law that associates no yy with x=2x = 2 is not a function on the whole of AA (but it may be one on a subset of AA, which will then be its “natural domain”).

Topics: Functions and properties
Concepts: Function · Image