Function vs. Relation

Topic: Functions

  • Relation: A set of input-output pairs (x, y).

  • Function: A special relation where each input (x) is related to only one output (y).

Example of a Function:
{(1, 2), (2, 3), (3, 4)}

 

Not a Function:
{(1, 2), (1, 3)} – because input 1 has two outputs.