explanation·Step 1 of 5

What is a Function?

A function is a rule that assigns exactly ONE output to each input.

Think of it like a vending machine:

  • You press a button (input xx)
  • You get one specific item (output f(x)f(x))
  • Pressing the same button always gives the same item

Formal definition: For each xx value, there is exactly one yy value.

Example: y=2x+3y = 2x + 3 is a function because each xx gives one yy.

NOT a function: x=y2x = y^2 — because x=4x = 4 gives y=2y = 2 AND y=−2y = -2.

1 / 5