01 / 21

Understanding
Functions, Domain, & Range

Learn how functions map inputs to outputs, identify domain and range, and read function notation like \( f(x) \).

Algebra 1

What Is a Function?

A function is a rule that assigns each input exactly one output. Think of it as a machine: you feed in a number, and the machine always gives back one specific result.

Input
\( x \)
Function
\( f \)
Output
\( f(x) \)

Domain and Range

Domain
The set of all possible inputs (\( x \)-values) that you can feed into the function.
Range
The set of all possible outputs (\( y \)-values) that the function can produce.
Domain 1 2 3 4 Range 5 7 9

Why Do Functions Matter?

Functions are the backbone of mathematics. Every equation you graph, every formula you use, and every real-world model you build relies on the idea that inputs produce predictable outputs.

Prediction
If you know the rule, you can predict the output for any input without testing every case.
Graphs
The graph of \( f \) is the set of all points \( (x, f(x)) \). It gives a visual picture of the function.
Modeling
Real situations (distance vs. time, cost vs. quantity) are modeled as functions to solve problems.

The Formal Definition

1
Set \( A \) is the domain: every element must be assigned.
2
Set \( B \) contains the range: the actual outputs that appear.
3
Exactly one output per input: no input maps to two different outputs.

Reading \( f(x) \) Notation

The symbol \( f(x) \) is read "f of x". It does not mean \( f \) times \( x \). It means: "the output of function \( f \) when the input is \( x \)."

f(x) = y
function name input output
Example:
If \( f(x) = 2x + 3 \),
then \( f(4) = 2(4)+3 = 11 \)

Function vs. Not a Function

✓ Function
Each input maps to exactly one output. Two inputs can share the same output.
✕ Not a Function
If any single input maps to two or more different outputs, the relation is not a function.
✓ Function 1 2 3 a b ✕ Not a Function 1 2 3 a b

The Vertical Line Test

On a graph, draw vertical lines. If any vertical line crosses the curve more than once, the graph does not represent a function.

✓ Passes 1 point ✕ Fails 2 points

How to Find Domain and Range

1
Domain: Ask "what values of \( x \) can I plug in?" Look for restrictions: denominators \( \neq 0 \), square roots \( \geq 0 \), etc.
2
Range: Ask "what \( y \)-values does the function actually produce?" Trace the outputs from the graph or reason algebraically.
3
From a graph: project all points onto the \( x \)-axis for domain and the \( y \)-axis for range.
4
Write your answer using interval notation: \( [a, b] \), \( (a, b) \), or set-builder notation \( \{x \mid x \geq 0\} \).

Example 1: \( f(x) = 2x + 1 \)

\( x \)
\( y \)
1 2 3 -1 -2 1 2 3 -1 (0, 1) (1, 3) (-1, -1)

Example 2: \( f(x) = x^2 \)

\( x \)
\( y \)
1 2 3 -1 -2 -3 1 2 3 4 5 (0, 0) (1, 1) (2, 4) Domain: all real numbers
Range: \( y \geq 0 \)

Example 3: \( f(x) = \sqrt{x} \)

\( x \)
\( y \)
1 2 3 4 5 6 7 8 1 2 3 (0, 0) (1, 1) (4, 2) (8, 2.83) no negatives

Domain & Range from a Table

When a function is defined by a table of values, the domain is the set of inputs listed, and the range is the set of outputs listed.

\( x \) (input) -2 0 1 3 5
\( f(x) \) (output) 4 0 1 9 25
Domain
\( \{-2, 0, 1, 3, 5\} \)
Range
\( \{0, 1, 4, 9, 25\} \)

The Graph of \( f \)

The graph of a function \( f \) is the set of all points \( (x, y) \) where \( y = f(x) \). Every point on the curve tells you: "when the input is \( x \), the output is \( y \)."

1
Pick an \( x \)-value from the domain.
2
Compute \( f(x) \) to get the \( y \)-value.
3
Plot the point \( (x, f(x)) \) on the coordinate plane.
4
Repeat for many \( x \)-values and connect the dots.

Common Mistakes

✕ Confusing \( f(x) \) with multiplication
\( f(x) \) means "f of x," not "\( f \) times \( x \)." Writing \( f \cdot x \) changes the meaning entirely.
✕ Forgetting domain restrictions
Not all inputs are valid. For \( f(x) = \frac{1}{x} \), the domain excludes \( x = 0 \). Always check for division by zero or negative square roots.
✕ Mixing up domain and range
Domain = inputs (\( x \)-values). Range = outputs (\( y \)-values). A common error is reading the range off the \( x \)-axis instead of the \( y \)-axis.

Summary Table

Concept Definition How to Find It
Function Each input maps to exactly one output Vertical line test / mapping diagram
Domain Set of all valid inputs Check restrictions; read \( x \)-extent from graph
Range Set of all actual outputs Evaluate or read \( y \)-extent from graph
\( f(x) \) Notation Output of \( f \) at input \( x \) Substitute \( x \) into the rule and simplify
Graph of \( f \) All points \( (x, f(x)) \) Plot input-output pairs on coordinate plane

Question 1 of 5

Which of the following is not a function?

Question 2 of 5

If \( f(x) = 4x - 7 \), what is \( f(3) \)?

Question 3 of 5

What is the domain of \( f(x) = \frac{1}{x - 2} \)?

Question 4 of 5

The function \( g \) is defined by the set \( \{(1,5), (2,8), (3,5), (4,10)\} \). What is the range of \( g \)?

Question 5 of 5

What is the range of \( f(x) = x^2 + 1 \)?