Grade 9 Math • Algebra & Functions

Functions & Function Notation — I can determine whether a relation is a function and use function notation appropriately.

Learn how to identify functions and communicate with the powerful shorthand mathematicians use every day.

Grade 9 Math emblem with a calculator, geometric shapes, and line graph
Inside this lesson 10 sections 5 questions 8 figures

SECTION 1

Historical Context & Motivation

Long before smartphones could graph equations instantly, mathematicians struggled with a deceptively simple question: how do we describe a rule that takes in a number and spits out exactly one result? The idea of a function grew out of centuries of work in algebra, geometry, and calculus. Early thinkers noticed patterns — such as the relationship between the side of a square and its area — and needed a precise language to talk about those patterns without writing out tables of values every time.

The notation we use today, like f(x), did not appear overnight. It evolved through the contributions of several brilliant minds over roughly three hundred years. Understanding this history helps you appreciate why the notation is shaped the way it is and why functions became the backbone of modern mathematics.

1637 • Descartes & Variable Relationships

René Descartes introduced the idea of using letters like x and y to represent unknown quantities, laying the groundwork for expressing relationships algebraically.

1694 • Leibniz Coins 'Function'

Gottfried Wilhelm Leibniz first used the Latin word functio to describe a quantity that depends on a variable — the earliest recorded use of the term in a mathematical sense.

1734 • Euler Introduces f(x)

Leonhard Euler popularized the notation f(x) in his writings, giving mathematicians a compact way to name a rule and its input simultaneously.

1837 • Dirichlet's Modern Definition

Peter Gustav Lejeune Dirichlet proposed the definition still used in classrooms today: a function assigns exactly one output to each input, regardless of whether a formula exists.

So here is the big question this lesson tackles: given a set of paired values — a relation — how do you decide whether it qualifies as a function, and how do you write and interpret function notation correctly? By the end of this lesson, you will be able to answer both questions with confidence.

SECTION 2

Core Principles & Definitions

Before diving into examples, you need a handful of foundational ideas. These definitions form the vocabulary you will use throughout algebra and beyond, so take a moment to internalize each one.

1

Relation

A relation is any set of ordered pairs (x, y). It pairs inputs with outputs, but there are no restrictions on how many outputs an input can have.
2

Function

A function is a special relation where every input (x-value) maps to exactly one output (y-value). No input is allowed to produce two different outputs.
3

Domain & Range

The domain is the set of all possible inputs. The range is the set of all actual outputs that the function produces.
4

Function Notation

Writing f(x) (read 'f of x') names the function f and indicates the input is x. The entire expression f(x) represents the output.
5

Vertical Line Test

If you can draw a vertical line anywhere on a graph and it hits the curve at most once, the graph represents a function. This visual check is called the vertical line test.
✦

KEY TAKEAWAY

Think of a function like a vending machine. You press one button (the input), and the machine gives you exactly one snack (the output). If pressing the same button sometimes gave you chips and other times gave you a candy bar, the machine would be broken — just like a relation that is not a function. One input → one output. That is the golden rule.

SECTION 3

Visual Explanation — Mapping Diagrams

One of the clearest ways to see whether a relation is a function is through a mapping diagram. In a mapping diagram, inputs are listed in one oval (or column) and outputs in another, with arrows showing which input connects to which output. If any single input has two or more arrows leaving it, the relation is not a function.

Function ✓DomainRange1234581012NOT a Function ✗DomainRange123581012Two arrows!
On the left, every input maps to exactly one output — this is a function. On the right, the input 3 maps to both 10 and 12 (highlighted with a dashed box), so this relation is not a function.

Notice the key difference in the diagram above. In the left mapping, each element in the domain sends out exactly one arrow. It is perfectly fine for two different inputs to share the same output (for example, both 1 and 4 could map to 5). However, one input sending arrows to multiple outputs is the deal-breaker. When you evaluate relations given as sets of ordered pairs, mentally draw these arrows to check the rule: one input, one output.

SECTION 4

Mathematical Framework — Function Notation

Now that you understand what makes a relation a function, let's formalize the notation. When we write f(x) = 2x + 3, we are saying three things at once: the function is named f, the input variable is x, and the rule for producing an output is to double the input and add 3.

FUNCTION NOTATION

f(x)=expressioninvolvingxf(x) = expression involving x

f = the name of the function • x = the input (independent variable) • f(x) = the output (dependent variable, the same as y)

An important distinction: f(x) does not mean f times x. The parentheses in function notation indicate that x is being fed into the function f. When you see f(5), you replace every x in the rule with 5 and simplify.

EVALUATING A FUNCTION

Iff(x)=2x+3,thenf(5)=2(5)+3=13If f(x) = 2x + 3, then f(5) = 2(5) + 3 = 13

Substitute 5 for every occurrence of x in the expression, then simplify to get the output value.

Functions can be named with any letter — g, h, p — and the input variable can be any letter too. For instance, A(t) = 50 − 9.8t could model the altitude of a ball at time t. The notation tells you both the name and what the independent variable is.

REWRITING y = mx + b AS FUNCTION NOTATION

y=3x−7→f(x)=3x−7y = 3x − 7 → f(x) = 3x − 7

Replace y with f(x). The equation says the same thing; function notation simply gives the rule a name and makes the input explicit.

⚠

Common Mistake

Students sometimes confuse f(−2) with −f(2). These are different operations! f(−2) means substitute −2 for x, while −f(2) means find f(2) first and then negate the result. Always pay close attention to where the negative sign sits.

SECTION 5

The Vertical Line Test — Graphs & Classification

When a relation is presented as a graph rather than a set of points, the fastest way to check for function status is the vertical line test. Imagine sweeping a vertical line across the graph from left to right. If the line ever crosses the graph in more than one place simultaneously, some x-value is paired with multiple y-values, and the relation fails to be a function.

Passes ✓ (Parabola)xy1 intersection1 intersectionFails ✗ (Circle)xyHit 1Hit 22 intersections → NOT a function
Left: a parabola (y = x²) passes the vertical line test because every vertical line touches the curve at most once. Right: a circle fails the test because a single vertical line can intersect the circle at two points, meaning one x-value maps to two y-values.

The diagram above contrasts two common curves. The parabola opens upward and each vertical slice hits only one point on the curve, confirming it as a function. The circle, however, has top and bottom halves that share the same x-values — a vertical line through the interior of the circle always hits both halves. That is why a full circle is a relation but not a function.

RepresentationHow to Test for FunctionExample
Set of ordered pairsCheck that no x-value appears with two different y-values.{(1,4), (2,7), (3,4)} → ✓ Function
Table of valuesScan the input column for repeats; if a repeat has a different output, it's not a function.x: 1,2,2 y: 5,3,7 → ✗ Not a function
GraphApply the vertical line test.Parabola → ✓ | Circle → ✗
EquationSolve for y. If you get ± (two y-values for one x), it's not a function.y = √x → ✓ | y² = x → ✗
Mapping diagramEach input should have at most one arrow leaving it.See Section 3 diagram

Five ways to represent a relation and how to test each for function status

SECTION 6

Worked Example

Let's walk through a multi-part problem that combines both skills: identifying a function and using function notation.

Evaluating and Analyzing f(x) = x² − 4x + 1

  1. 1

    Step 1 — Confirm It Is a Function

    The rule f(x) = x² − 4x + 1 is a polynomial. For every real-number input x, squaring, multiplying by −4, and adding 1 each produce a single value. There is no ± and no ambiguity, so this relation is a function.
    Yes, f(x) = x² − 4x + 1 is a function.
  2. 2

    Step 2 — Evaluate f(3)

    Substitute 3 wherever x appears: f(3) = (3)² − 4(3) + 1 = 9 − 12 + 1.
    f(3) = −2
  3. 3

    Step 3 — Evaluate f(−1)

    Substitute −1: f(−1) = (−1)² − 4(−1) + 1 = 1 + 4 + 1. Notice that (−1)² = 1 and −4(−1) = +4.
    f(−1) = 6
  4. 4

    Step 4 — Evaluate f(a + 2)

    Replace x with the expression (a + 2): f(a + 2) = (a + 2)² − 4(a + 2) + 1. Expand: (a + 2)² = a² + 4a + 4, and −4(a + 2) = −4a − 8. Combine: a² + 4a + 4 − 4a − 8 + 1.
    f(a + 2) = a² − 3
  5. 5

    Step 5 — Interpret the Result

    The ordered pair (3, −2) lies on the graph because f(3) = −2. Likewise (−1, 6) lies on the graph. The expression f(a + 2) = a² − 3 shows how the function behaves when its input is shifted 2 units — a preview of function transformations you will study soon.

SECTION 7

Strengths & Common Pitfalls of Function Notation

Function notation is powerful, but it can trip you up if you are not careful. The table below compares its strengths with the most common mistakes students make, so you know what to watch out for.

StrengthCommon Pitfall
Clearly names the function and its input: f(x) tells you both.Reading f(x) as 'f times x' and treating it as multiplication.
Easily handles multiple functions: f(x), g(x), h(x).Mixing up function names — accidentally writing g(x) when you mean f(x).
Substitution is explicit: f(−2) means plug in −2.Forgetting parentheses when substituting negatives, e.g., writing −2² instead of (−2)².
Outputs are specific: f(3) = 7 pins down a single value.Confusing f(−2) with −f(2); the negative is in different positions.
Works with any input expression: f(a + 1) is valid.Forgetting to apply the rule to the entire input expression (e.g., squaring only part of it).

Strengths of function notation alongside common student errors

✦

KEY TAKEAWAY

Function notation is like a named recipe. The name (f) tells you which recipe you are following, the ingredient (x) is what you put in, and f(x) is the finished dish. If you swap the ingredient — say, using 5 instead of x — you follow the same recipe steps but end up with a different dish. Keeping that image in mind will help you avoid the 'f times x' trap.

SECTION 8

Connection to Advanced Topics

The concept of a function is the springboard for nearly every advanced math course you will encounter. In Algebra 2, you will study families of functions — quadratic, exponential, logarithmic — and learn how to combine and transform them. In precalculus, you will explore inverse functions, composition of functions, and trigonometric functions. Calculus itself is essentially the study of how functions change (derivatives) and accumulate (integrals). Mastering the basics now sets you up for all of that.

What You Learn NowWhere It Leads
Determining if a relation is a functionAnalyzing one-to-one functions and inverse functions (Algebra 2)
Evaluating f(x) by substitutionComposition of functions: f(g(x)) (Precalculus)
Understanding domain and rangeRestricting domains for inverse trig functions (Precalculus)
Reading graphs with the vertical line testSketching and analyzing derivative graphs (Calculus)
Using notation like f(a + h)The difference quotient and definition of the derivative (Calculus)

How today's skills connect to future math courses

In particular, the expression f(a + h) that you practiced in the worked example will reappear in calculus as part of the difference quotient: [f(a + h) − f(a)] / h. This quotient measures the average rate of change of a function, and taking its limit leads to the derivative. So every time you practice substituting expressions into function notation, you are building skills that will serve you for years.

SECTION 9

Practice Problems

Test your understanding with these five problems. They increase in difficulty, so work through them in order for the best learning experience.

Question 1: CONCEPTUAL

In your own words, explain why the set {(2, 5), (3, 8), (2, 11)} is NOT a function. What specific rule does it violate?
Show answer
This set is not a function because the input x = 2 is paired with two different outputs: y = 5 and y = 11. A function requires that every input map to exactly one output. Since the input 2 appears twice with different y-values, the fundamental rule — one input, one output — is broken. If you drew a mapping diagram, the input 2 would have two arrows leaving it, which instantly disqualifies the relation from being a function.

Question 2: BASIC CALCULATION

Given g(x) = 5x − 9, find g(4) and g(−3).
Show answer
To find g(4), substitute 4 for x: g(4) = 5(4) − 9 = 20 − 9 = 11. To find g(−3), substitute −3 for x: g(−3) = 5(−3) − 9 = −15 − 9 = −24. Each evaluation follows the same process: replace x with the given value and simplify. The ordered pairs (4, 11) and (−3, −24) both lie on the graph of g.

Question 3: INTERMEDIATE

Let h(x) = x² + 2x. Find h(a − 1) and simplify completely.
Show answer
Substitute (a − 1) for every x: h(a − 1) = (a − 1)² + 2(a − 1). Expand: (a − 1)² = a² − 2a + 1, and 2(a − 1) = 2a − 2. Combine like terms: a² − 2a + 1 + 2a − 2 = a² − 1. Therefore h(a − 1) = a² − 1. Notice how the middle terms cancelled, leaving a clean difference of squares. This kind of algebraic simplification is common when evaluating functions at expressions rather than plain numbers.

Question 4: APPLIED

A ride-share company charges a flat fee of $2.50 plus $1.75 per mile. Write a function C(m) for the total cost in dollars as a function of miles driven m. Then find the cost of a 12-mile ride.
Show answer
The total cost combines a fixed fee and a variable rate, so C(m) = 1.75m + 2.50. To find the cost of a 12-mile ride, evaluate C(12): C(12) = 1.75(12) + 2.50 = 21.00 + 2.50 = 23.50. The ride costs $23.50. This is a function because each mileage value m produces exactly one cost — you would never expect the same distance to give two different prices. The model is a linear function where 1.75 is the slope (cost per mile) and 2.50 is the y-intercept (the base fee).

Question 5: CRITICAL THINKING

Consider the relation defined by x² + y² = 25. Explain why this is not a function. Then describe how you could split it into two separate functions, and write those functions using function notation.
Show answer
The equation x² + y² = 25 describes a circle of radius 5 centered at the origin. If you solve for y, you get y = ±√(25 − x²), which means each x-value (except x = ±5) produces two y-values — one positive and one negative. This fails the vertical line test. To split it into two functions, separate the cases: f(x) = √(25 − x²) gives the upper semicircle, and g(x) = −√(25 − x²) gives the lower semicircle. Each half on its own passes the vertical line test because there is only one y-value per x. The domain for both is −5 ≤ x ≤ 5. This technique of 'splitting' a non-function into function pieces is used throughout higher math.

SUMMARY

Lesson Summary

Summary

A relation is any set of ordered pairs, but a function is a special relation where each input maps to exactly one output. You can test for function status using mapping diagrams (one arrow per input), the vertical line test (at most one intersection), tables (no repeated x with different y), or by solving an equation for y and checking for ±.

Function notation f(x) names the function, identifies the input, and represents the output — all in one compact expression. To evaluate, substitute the given value (or expression) for x and simplify. Remember: f(x) does not mean f × x. The domain is the set of all valid inputs, and the range is the set of all outputs the function actually produces. Mastering these ideas prepares you for function transformations, composition of functions, and eventually calculus.

Varsity Tutors • Grade 9 Math • Functions & Function Notation