What is a Function?

Every input gives exactly one output — the whole definition of a function, turned into a visual check with the vertical line test.

--
What is a Function? — Moosa Academy

A function is a relation with exactly one rule attached: every input gives one output, and only one. That is the whole definition. Everything else — domains, graphs, transformations — is built on it.

Concept Input and output

One input may never produce two different outputs.

f x f(x) input one output
x — the independent variable, the input you control. It sits on the horizontal axis.
y — the dependent variable, the output. It depends on x and sits on the vertical axis.

The output is allowed to be the same for different inputs — a constant function returns 3 no matter what you feed it, and that is still a function. What is forbidden is one input returning two different answers.

Concept The vertical line test

The definition turns into a visual check. Slide a vertical line across the graph — that line asks "what does the curve give at this x?"

one crossing — a function two crossings — not a function
One crossing — one output, so the graph is a function.
Two or more — one input giving several outputs, so it is not.
Example Applying the test
Graph Function? Reason
 y = x^2 Yes One output for each x
 y = 2x + 1 Yes A straight line always gives one
 f(x) = 3 Yes Constant, but still a single reading
A circle No Two y values for one x
 y = |x| Yes The V shape passes the test
 y = x^3 Yes One output for each x
Example Functions in the world
The area of a square from its side — one side length gives one area. A function.
Distance travelled from time — at any instant a car is at one distance. A function.
A thermometer reading over the day — one reading per moment, even if it does not change. A function.
A circle drawn on paper — at most x values the curve has an upper point and a lower point.
⟹ the circle fails, and it is the only one that does
Summary
  1. A function gives exactly one output for each input.
  2. x is the independent variable and y the dependent one.
  3. Repeating an output is allowed; producing two outputs for one input is not.
  4. The vertical line test turns the definition into a quick visual check.