8TH GRADE MATH • FUNCTIONS

Understand the Function Concept

Learn how functions connect every input to exactly one output, forming the foundation of algebra.

Where Did Functions Come From?

Have you ever wondered why math uses the word function? It comes from the idea that one number can depend on another. For centuries, mathematicians noticed patterns where changing one value would change another in a predictable way. This idea became one of the most important concepts in all of math.

People have been using function-like thinking for thousands of years. Ancient tax collectors used tables that matched each amount of grain to a specific tax. Astronomers matched dates to the positions of stars. Over time, mathematicians gave this matching process a formal name and set of rules.

~300 BCE
Ancient Tables
Babylonian and Greek astronomers used tables that paired each date with the position of planets. Each date had exactly one position — an early function idea.
1673
Leibniz Coins the Word
The German mathematician Gottfried Wilhelm Leibniz was the first person to use the word "function" in a math paper.
1748
Euler's Notation
Leonhard Euler introduced the familiar f(x) notation we still use today. This made it easy to talk about inputs and outputs.
1837
Modern Definition
Peter Gustav Lejeune Dirichlet defined a function as a rule where each input maps to exactly one output — the definition you learn today!

So the big question that functions answer is: "If I know the input, can I be sure of the output?" When the answer is yes — every time — you have a function.

Core Principles of Functions

A function is a rule that takes each input (a number you put in) and assigns it exactly one output (the number you get out). That word "exactly one" is the key. An input can never produce two different outputs. Let's break this down into a few big ideas.

1

One Input → One Output

Every input value is paired with exactly one output value. If an input gives two different outputs, the relation is not a function.
2

Inputs & Outputs Form Ordered Pairs

Each input and its output create an ordered pair written as (input, output). For example, if the input 3 gives the output 7, the pair is (3, 7).
3

The Graph Tells the Story

When you plot all the ordered pairs on a coordinate plane, you get the graph of the function. The graph is a picture of every input-output pair.
4

Multiple Representations

You can show a function as a table, an equation, a graph, or a mapping diagram. They all describe the same rule.
KEY TAKEAWAY
Think of a function like a vending machine. You press one button (the input), and you get exactly one snack (the output). If pressing button A3 sometimes gave you chips and sometimes gave you a candy bar, the machine would be broken! A working vending machine is a function — each button gives you one and only one item.

Visualizing Functions with Mapping Diagrams

One of the best ways to see whether a relationship is a function is to draw a mapping diagram. A mapping diagram has two ovals — one for inputs and one for outputs. Arrows connect each input to its output. The diagram below shows two examples side by side.

Left: every input has exactly one arrow going out — this is a function. Right: the input 5 has two arrows pointing to 9 and 10, so this is not a function.

Notice the key difference. On the left, every input has one arrow leaving it. On the right, the input 5 has two arrows. That breaks the function rule. It is okay for two different inputs to share the same output. But one input can never point to two outputs.

The Math Behind Functions

You can write a function as an equation. The most common form uses f(x) notation. The letter f is the name of the function. The letter x represents the input. Whatever expression comes after the equals sign tells you the rule for getting the output.

FUNCTION NOTATION
f(x) = 3x + 2
f = name of the function • x = input value • 3x + 2 = the rule (multiply the input by 3, then add 2)

When you substitute a number for x, you get an ordered pair. For example, if x = 4, then f(4) = 3 × 4 + 2 = 14. That gives you the ordered pair (4, 14).

ORDERED PAIR FROM A FUNCTION
If f(x) = 3x + 2 and x = 4, then f(4) = 14 → (4, 14)
The input is the x-coordinate. The output is the y-coordinate. Together they form a point on the graph.
GRAPH OF A FUNCTION
Graph = { (x, f(x)) for every input x }
The graph is the collection of all ordered pairs made by plugging every allowed input into the rule.
💡 Quick Tip
The notation f(x) does not mean "f times x." It means "the output of function f when the input is x." Think of the parentheses as a container holding the input value.

The Vertical Line Test

How can you tell if a graph represents a function? Use the Vertical Line Test. Imagine sliding a vertical line across the graph from left to right. If the line ever touches the graph in more than one point at the same time, the graph is not a function. Why? Because that would mean one input (the x-value where the line sits) has two or more outputs.

The dashed yellow vertical line slides across each graph. On the left (a curve), it only touches one point — it's a function. On the right (an ellipse), the line hits two points — it's not a function.

The left graph shows a smooth curve. The yellow dashed line touches the curve at just one spot. That means every x-value has only one y-value. The right graph is an ellipse (oval). The yellow line crosses it in two places. That means one x-value has two y-values, so the ellipse is not a function.

KEY TAKEAWAY
The Vertical Line Test is like using a ruler held straight up and down and sliding it across a picture. If the ruler only touches the drawing at one point everywhere you slide, you have a function. If the ruler hits the drawing twice, you don't!

Worked Example: Is It a Function?

Let's work through a full example. Suppose you are given a set of ordered pairs and need to decide if the relation is a function. Then you will find the output for a given input.

Given the relation {(1, 4), (2, 7), (3, 10), (4, 13)}, is it a function? If so, find f(3).
1
Step 1 — List the InputsLook at the first number in each pair. The inputs are: 1, 2, 3, and 4.
2
Step 2 — Check for Repeated InputsDoes any input appear more than once? Let's check: 1 appears once, 2 appears once, 3 appears once, and 4 appears once. No input is repeated.
3
Step 3 — Decide: Function or Not?Since every input has exactly one output, this relation is a function.
Yes, it is a function.
4
Step 4 — Find f(3)Look for the ordered pair that has 3 as its input. That pair is (3, 10). So the output when the input is 3 is 10.
f(3) = 10
5
Step 5 — Discover the RuleCan we find a rule? Notice the pattern: 1 → 4 (that's 1 × 3 + 1), 2 → 7 (that's 2 × 3 + 1), 3 → 10 (that's 3 × 3 + 1). The rule is f(x) = 3x + 1.
f(x) = 3x + 1

Comparing Ways to Show Functions

You can represent a function in many different ways. Each way has strengths and limitations. The table below compares four common representations.

Comparing four ways to represent a function
RepresentationStrengthsLimitations
Equation (e.g., f(x) = 2x + 5)Shows the rule clearly. Works for any input, even ones you haven't tried yet.Can be hard to read if the rule is complicated. Doesn't show the shape at a glance.
Table of valuesEasy to read. Great for spotting patterns in specific values.Only shows a few input-output pairs. You can't see the big picture.
Graph on a coordinate planeShows the overall shape and trend. You can use the vertical line test.Hard to read exact values. Requires careful drawing.
Mapping diagramMakes it very clear whether each input has one output. Great for checking the function rule.Gets messy with many values. Not practical for large sets of data.
KEY TAKEAWAY
Think of each representation as a different camera angle on the same scene. A table is like a close-up — great for details. A graph is like a wide shot — great for the big picture. An equation is like a script — it tells you exactly what happens. They all describe the same function!

Functions Now and Later

The function concept you are learning now is the foundation for everything that comes next in math. In high school, you will study specific types of functions like linear, quadratic, and exponential functions. The table below shows how the ideas you learned today grow over time.

How 8th-grade function ideas connect to future math
Idea You Learn Now (8th Grade)Where It Goes Next
A function assigns each input exactly one output.In Algebra 1, you classify functions by their rules (linear, quadratic, etc.).
The graph is a set of ordered pairs.In Algebra 2, you analyze features of graphs: intercepts, maximums, minimums, and symmetry.
f(x) notation names the output for a given input.In Precalculus and Calculus, you use notation like f′(x) to describe how a function changes.
Tables show specific input-output pairs.In Statistics, you analyze tables of real-world data and model them with functions.

By mastering the idea that each input gives exactly one output, you are building a skill you will use in every math class from now on. This is one of the most important ideas in all of mathematics!

Practice Problems

PROBLEM 1CONCEPTUAL
In your own words, explain why the relation {(2, 5), (3, 8), (2, 11)} is not a function.
PROBLEM 2BASIC CALCULATION
Given the function f(x) = 2x − 3, find f(5). Write the result as an ordered pair.
PROBLEM 3INTERMEDIATE
A function is described by this table: | x | 1 | 2 | 3 | 4 | | f(x) | 6 | 9 | 12 | 15 | Find the rule (equation) for this function. Then use it to predict f(10).
PROBLEM 4APPLIED
A movie streaming service charges $8 per month plus $3 for each movie you rent. Write a function for the total monthly cost, C, based on the number of movies rented, m. Is this a function? How much would you pay if you rent 6 movies?
PROBLEM 5CRITICAL THINKING
Sarah says that every equation with x and y is a function. Marcus disagrees and says the equation x² + y² = 25 is not a function. Who is correct? Explain your reasoning using the concepts from this lesson.

Lesson Summary

A function is a rule that assigns each input exactly one output. Each input-output pair forms an ordered pair (x, y), and the collection of all those ordered pairs makes up the graph of the function. You can use f(x) notation to name the output for any input x.

To check whether a relation is a function, make sure no input repeats with different outputs. On a graph, use the Vertical Line Test — if every vertical line crosses the graph at most once, it is a function. You can represent functions as equations, tables, graphs, or mapping diagrams. Mastering this concept prepares you for all the advanced function work in high school math.

Varsity Tutors • 8th Grade Math • Understand the Function Concept