A rule is a function if every allowed input goes to one and only one output. In other words: no input value is ever “confused” about where it should go.

Core idea in math

  • A function is a special kind of rule or relation between two sets: a domain (inputs) and a range (outputs).
  • The requirement: each input in the domain is paired with exactly one output in the range; if any input would produce two different outputs, the rule is not a function.
  • In ordered pairs language, no first coordinate is repeated with two different second coordinates.

A common picture is the “machine” view: put in xxx, the rule processes it, and you always get the same single result f(x)f(x)f(x) for that xxx.

Vertical line / graph view

  • When the rule is drawn as a graph, the “function test” is that a vertical line should never hit the graph in more than one point for the same xxx.
  • This just restates the same idea: no single input xxx can have two different outputs at once.

Programming analogy (quick link)

  • In programming, a function (or method) is a callable piece of code that takes inputs and produces a defined result according to fixed rules.
  • Mathematically, “what makes a rule a function” is that it behaves deterministically : each specific input leads to a single, well-defined output.

So: a rule is a function when it gives a unique, predictable output for every input in its domain, with no input branching to multiple outputs.

Information gathered from public forums or data available on the internet and portrayed here.