Definition of a function

If each value of x gives exactly one value of y, then y is a function of x. You write this as y=f(x)y = f(x). Different x values going to the same y is fine, but if one x goes to two y values, it is not a function.

Chalcack concept card · Reviewed by the Chalcack team ·

Left: each x has one arrow, so it is a function. Right: 2 has two arrows, so it is not a function.

Formulas

  • Each x value gives exactly one y value: that is a function
  • y=f(x)y = f(x)

When to use it

Use it when you decide whether a relationship between two quantities, a mapping diagram, or a table is a function.

Worked example

A pencil costs 500 won, and y won is the price of x pencils, so y=500×xy = 500 \times x. When x is 1, y is 500; when x is 2, y is 1,000, so each x gives one y. Therefore y is a function of x.

Common mistake

Many students think it is not a function when different x values go to the same y. The only thing to check is whether each single x goes to exactly one y.

Related concepts

All 181 math concepts