← MATH 114 MathScape 0 MATH114

Function Definition and Notation

9 min read

Jump to a section

Textbook Reference

Primary source OpenStax College Algebra 2e, Section 3.1: “Functions and Function Notation”
Direct link https://openstax.org/books/college-algebra-2e/pages/3-1-functions-and-function-notation

This source is free and openly licensed. College Algebra 2e Section 3.1 opens the functions chapter.


Key idea

A function is a reliable machine: put one input in, get exactly one output out, every single time.

The defining promise is the word “exactly one”. A vending machine that gave you a different snack each time you pressed B4 would be useless. A function is trustworthy in the same way: the same input always produces the same single output. That single-valuedness is the whole idea. Everything else, including the notation $f(x)$, is just a convenient way to name the machine and to say which input you fed it.

This means: the notation $f(x)$ is not multiplication and not mystery. It is a label that reads “the output of machine $f$ when the input is $x$”. Once you hear it that way, function notation stops being intimidating and becomes a clear sentence.


Prerequisite Check

Before this lesson, make sure you can do all of the following:

If plotting points is shaky, review The Rectangular Coordinate Plane first.


Quick Reference

Definition of a function. A function is a rule that assigns to each input exactly one output. The set of allowed inputs is the domain; the set of resulting outputs is the range.

Function notation. The symbol \[ f(x) \] is read “$f$ of $x$” and means “the output of the function $f$ at the input $x$”. Here $f$ is the name of the function, $x$ is the input, and $f(x)$ is the output.

Three ways to recognize a function.

Representation The function test
Set of ordered pairs no $x$-value is paired with two different $y$-values
Graph the vertical line test: no vertical line crosses the graph more than once
Equation solving for $y$ gives exactly one $y$ for each allowed $x$

The one idea to hold onto. Each input has exactly one output. An input may share an output with another input (two inputs can map to the same value), but one input may never have two outputs.


Key Concepts

1. What Makes a Rule a Function

A function pairs each input with exactly one output. The same output may come from several inputs, but a single input is never allowed two different outputs. Think of the input as a question and the output as the one definite answer.

Example 1. Decide whether each set of ordered pairs is a function.

Important: repeated outputs are fine; repeated inputs with different outputs are not. The third example is a function even though every output is $7$. The single rule is “one input, one output”, and it says nothing against reusing an output.


2. Reading Function Notation

The notation $f(x)$ names a function $f$ and states its input $x$. It is read aloud as “$f$ of $x$”. The parentheses do not mean multiplication; they hold the input.

Example 2. In the function $f(x) = 2x + 3$, identify the name, the input, and the rule.

The name is $f$. The input is $x$. The rule says: take the input, double it, then add $3$. So $f(x)$ is the output of that rule.

Important: $f(x)$ is not “$f$ times $x$”. The expression $f(x)$ is a single object, the output of $f$ at $x$. Reading it as multiplication leads to errors such as “cancel the $f$”, which is meaningless. The parentheses signal “evaluate the function at”, not “multiply”.


3. Several Names for Several Functions

Different functions get different names, often $f$, $g$, and $h$. The input letter can also change; $f(t)$ means the function $f$ with input $t$. The letter inside the parentheses is just a placeholder.

Example 3. If $g(t) = t^2 - 1$, what does $g$ do to its input?

The function $g$ squares its input and then subtracts $1$. Whether the input is called $t$, $x$, or anything else, the rule is the same: square it, then subtract $1$.


4. The Vertical Line Test for Graphs

A graph represents a function exactly when no vertical line crosses it more than once. A vertical line picks out a single input value; if it hits the graph twice, that input has two outputs, which breaks the function rule.

Example 4. Does a circle, such as $x^2 + y^2 = 25$, represent a function?

No. A vertical line through the middle of the circle crosses it at a top point and a bottom point, so one input $x$ has two outputs. A circle fails the vertical line test and is not a function.

A straight line that is not vertical, such as $y = 2x + 3$, passes the test: every vertical line crosses it exactly once, so it is a function.

Important: a vertical line itself is not a function. The graph $x = 4$ is a single vertical line. The one input $x = 4$ corresponds to infinitely many outputs (every $y$), so it fails its own test and is not a function.


5. Functions Given by Equations

An equation in $x$ and $y$ defines $y$ as a function of $x$ when solving for $y$ yields exactly one $y$ for each allowed $x$.

Example 5. Is $y = 3x - 1$ a function of $x$? Is $y^2 = x$ a function of $x$?

Self-check: Is the set $\{(2, 1), (3, 1), (2, 5)\}$ a function? Explain.

No. The input $2$ appears twice, paired with $1$ and with $5$. One input has two different outputs, which violates the definition. (The repeated output $1$ across inputs $2$ and $3$ would be fine on its own; the problem is the repeated input with conflicting outputs.)


Common Errors Summary

Error Example Correction
Reading $f(x)$ as multiplication “$f(x)$ means $f$ times $x$” $f(x)$ is the output of $f$ at input $x$
Calling repeated outputs a violation $\{(1,7),(2,7)\}$ “not a function” Repeated outputs are allowed; only repeated inputs with different outputs fail
Forgetting the $\pm$ when solving for $y$ $y^2 = x \Rightarrow y = \sqrt{x}$ only $y = \pm\sqrt{x}$, so it is not a function of $x$
Misapplying the vertical line test testing with a horizontal line The test uses VERTICAL lines, one per input $x$
Thinking the input letter matters $f(x)$ and $f(t)$ are “different functions” The placeholder letter is irrelevant; the rule is the same

Common Misconceptions

Common misconception

$f(x)$ means $f$ multiplied by $x$.

This is the input-output-confusion error. The notation $f(x)$ reads “the output of $f$ at input $x$”; the parentheses indicate function application, not multiplication. Reading it as a product leads to nonsensical moves such as “dividing both sides by $f$” to solve $f(x) = 4$. A concrete example: for $f(x) = 2x + 1$, the value $f(3) = 7$, and there is no product $f \cdot 3$ involved. This same confusion transfers to trigonometry, where $\sin(\theta)$ is the sine function applied to the angle $\theta$, not a product of $\sin$ and $\theta$.

Common misconception

a function must produce different outputs for different inputs.

This is the action-view-of-function error. The rule for a function requires that each input has exactly one output, not that different inputs produce different outputs. The set $\{(1,7),(2,7),(3,7)\}$ is a valid function because each input is paired with exactly one output, even though all three share the same output value $7$. The property that different inputs produce different outputs is called injectivity (one-to-one), which is a stricter requirement than being a function.


Leveled Practice

Level 1 -- Direct Application

Problem 1. Is $\{(0, 1), (1, 2), (2, 3)\}$ a function?

Show answer

Yes. Each input ($0, 1, 2$) has exactly one output.


Problem 2. In $h(x) = 5 - x$, what does the function do to its input?

Show answer

It subtracts the input from $5$. (Equivalently, it negates the input and adds $5$.)


Problem 3. Does the line $y = -4x + 2$ pass the vertical line test?

Show answer

Yes. It is a non-vertical line, so every vertical line crosses it exactly once. It is a function.


Level 2 -- Reasoning

Problem 4. Is $\{(4, 2), (4, -2), (9, 3)\}$ a function? Explain.

Show answer

No. The input $4$ has two outputs, $2$ and $-2$. One input may not have two outputs.


Problem 5. Solve $2y = 6x + 4$ for $y$ and state whether $y$ is a function of $x$.

Show answer

Divide by $2$: $y = 3x + 2$. This gives exactly one $y$ for each $x$, so $y$ is a function of $x$.


Level 3 -- Deeper Reasoning

Problem 6. Explain why a circle is not a function but the upper half of a circle, $y = \sqrt{25 - x^2}$, is a function.

Show answer

The full circle $x^2 + y^2 = 25$ has two $y$-values for most $x$ (a top and a bottom point), so it fails the vertical line test. Restricting to $y = \sqrt{25 - x^2}$ keeps only the non-negative output for each $x$, so each input now has exactly one output. The upper half passes the vertical line test and is a function.


Problem 7. A classmate says “$f(x) = 2x$ and $f(t) = 2t$ are two different functions because they use different letters.” Is this correct?

Show answer

No. The letter inside the parentheses is only a placeholder for the input. Both expressions describe the same rule, “double the input”, so they are the same function. Renaming the input changes nothing.


Mastery Checklist

You have mastered this skill when you can do all of the following without referring to notes:


Mental Model

Think of a function as a vending machine with a name on the front.

You press one button (the input), and the machine drops exactly one item (the output). The machine $f$ is reliable: press the same button and you always get the same item. The notation $f(\text{B4})$ just says “the item machine $f$ drops when you press B4”. Two different buttons may dispense the same snack (repeated outputs are fine), but a single button may never randomly drop one of two snacks (one input, one output). The vertical line test is the inspector checking the machine: slide a vertical line across the graph, and if it ever touches the graph in two places at once, that one button is dispensing two items, and the machine is broken as a function.


Connections

Within MATH 114

Toward Later Mathematics

Audience Notes

For students who find math intimidating: The scary-looking $f(x)$ is just a label, like a name tag. Read it as a short sentence, “the output of $f$ at $x$”, and it becomes ordinary language about a machine you already understand.

For students interested in proof: The formal definition of a function is a set of ordered pairs in which no two pairs share a first coordinate. Stating it this precisely is what lets later mathematics reason about functions as objects, not just as formulas.

For students interested in careers: In programming, a pure function returns the same output for the same input with no surprises, which is exactly the mathematical definition. The reliability that makes functions easy to reason about is the same reliability that makes code easy to test.


Back to MATH 114 Skills | Next: Evaluating Functions