Britannica Sources used in this answer

Why can a single input in a function not have two different outputs?

Created from Britannica articles using AI. AI can make mistakes, so verify using Britannica articles.

In mathematics, a function is defined specifically as a rule or relationship where every input (independent variable) corresponds to exactly one unique output (dependent variable).

The requirement for a unique output is fundamental to the definition established by mathematicians such as Peter Dirichlet. If a single input were permitted to produce two or more different outputs, the relationship would fail to be a function, as it would no longer provide a deterministic rule for assigning a value to the dependent variable.

This principle is visually reinforced through analytic geometry using the vertical line test: if a vertical line passes through more than one point on a graph, the relation is not a function because that specific input value on the x-axis corresponds to multiple y-values. By ensuring each input maps to only one output, functions provide the consistency necessary for formulating physical relationships and modeling phenomena in science and engineering.1