Mathovore, everything you need to succeed in math: Common Core lessons, worksheets, tests and quizzes
Skip to content

Function

Function – definition and example, Grade 8 math glossary – Mathovore

Key takeaway: A function is a dependable matching in which each input is paired with exactly one output, so no input ever leads to two different answers.

Grade 88.F.A.1Functions and Graphs

Definition of Function

Definition

A function is a dependable machine: feed in a value and it hands back one specific answer, every time. Allowed inputs make up the domain, and the answers that come back make up the range. Buying gas works this way, because any number of gallons has a single total price.

The one requirement concerns inputs. An input may not be tied to two different outputs. An output may be shared, however; two different inputs can lead to the same answer without breaking anything. The rule can be shown as a table, a list of ordered pairs, a mapping diagram, a graph or an equation, and each form lets you test it in its own way.

Formula and notation

Write the rule with a name, an input and an output:

\[y = f(x) \qquad \text{for example,} \qquad f(x) = 4x + 1\]

Here \(f(2) = 9\). A relation is a function exactly when no \(x\) value repeats with different \(y\) values.

12346912function58271not a function
On the right, the input 5 points to both 2 and 7, which no function allows.

Key facts

  • Each input has one and only one output.
  • Two inputs can share the same output without violating the rule.
  • On a graph, a vertical line never touches the curve twice.
  • Inputs form the domain and outputs form the range.

Function example

Problem

Two lists of (input, output) pairs come from a vending machine and a faulty one. Test both: \(\{(1, 6), (2, 9), (3, 6), (4, 12)\}\) and \(\{(5, 2), (5, 7), (8, 1)\}\).

  1. First set: no first coordinate is repeated, so each input is matched with one output.

  2. The output 6 appears twice, but it comes from two separate inputs, which is allowed.

  3. Second set: the first coordinate 5 shows up with 2 and with 7. One input leads to two outputs.

The first set is a function; the second set is not.

Common mistake

Watch out

Nia sees that 6 is repeated in the outputs of the first set and says it cannot be a function.

Why it is wrong

Repeated outputs are fine. A function only forbids a repeated input with different outputs. Here 1 and 3 both lead to 6, but each of them leads nowhere else. Scan the first coordinates for duplicates, not the second.

Tips for recognizing a function

Begin with the rule that defines a function: every input has exactly one output. Then look at a table and check whether any input repeats with different outputs. Next, apply the vertical line test to a graph. Also, read function notation carefully, because f(3) means the output when the input is 3. Finally, find the domain and the range before you draw conclusions.

For example, the rule that squares a number is a function, since each input gives one square. In contrast, the relation that pairs a number with both its square roots is not a function. Therefore, always test the input that repeats. Practice with tables, graphs and equations, because exams use all three.

Related terms and lessons

Browse the glossary: A–Z list · Grade 8 vocabulary · Functions and Graphs

Rate this page
Mathovore apps

Our free apps and software

Apps to practice math, and software for Windows.

Discover
Math textbooks to download in PDF, from grade 1 to precalculus