Relations, Functions & Function Notation
Learn to tell relations from functions with the one-output rule and vertical line test, find domain and range, and evaluate f(x) notation with confidence.
What you'll do in this lesson
A voice-first session with the Crimsora tutor on Relations, Functions & Function Notation, then targeted practice and FRQs — with the tutor adapting to where you get stuck.
What this lesson covers
You already know how to plot points and graph lines. Now we give those input-output relationships a name and a rule. A relation is any pairing of inputs with outputs; a function is a relation that follows one strict promise: every input gets exactly one output. That promise is what makes it safe to write and mean something definite.
In this lesson you will decide whether a set of ordered pairs, a table, a mapping diagram, or a graph represents a function; state the domain (the inputs) and range (the outputs); and read function notation like as a machine that takes a number in and sends a number out. Everything in the rest of Unit 4 — slope, slope-intercept form, parallel and perpendicular lines — is written in this language, so getting comfortable with now pays off immediately.
In this lesson you will decide whether a set of ordered pairs, a table, a mapping diagram, or a graph represents a function; state the domain (the inputs) and range (the outputs); and read function notation like as a machine that takes a number in and sends a number out. Everything in the rest of Unit 4 — slope, slope-intercept form, parallel and perpendicular lines — is written in this language, so getting comfortable with now pays off immediately.
Relations and the One-Output Rule
A relation is simply a set of ordered pairs, such as . The first coordinate of each pair is the input (often called ), and the second is the output (often called ). Relations can be shown four ways: as a set of ordered pairs, as a table, as a mapping diagram with arrows, or as a graph.
A relation is a function when each input is paired with exactly one output. That is the entire test. Check every input value: if any input appears twice with two different outputs, the relation is not a function.
Look at . The input points to both and , so this is not a function. Now look at . Three different inputs all give the output . That is completely fine — the rule says nothing about outputs repeating. A function may reuse outputs; it may never reuse an input with a different partner.
That asymmetry is where most mistakes happen. Students see the repeated and call it "not a function" because something repeated. Say the rule out loud each time: one input, one output. Ask "does any have two different -values?" not "does anything repeat?"
A real-world way to feel it: each student has exactly one assigned locker number, so student-to-locker is a function. Two students could theoretically share a locker (repeated output, still fine), but one student cannot be assigned two different lockers.
A relation is a function when each input is paired with exactly one output. That is the entire test. Check every input value: if any input appears twice with two different outputs, the relation is not a function.
Look at . The input points to both and , so this is not a function. Now look at . Three different inputs all give the output . That is completely fine — the rule says nothing about outputs repeating. A function may reuse outputs; it may never reuse an input with a different partner.
That asymmetry is where most mistakes happen. Students see the repeated and call it "not a function" because something repeated. Say the rule out loud each time: one input, one output. Ask "does any have two different -values?" not "does anything repeat?"
A real-world way to feel it: each student has exactly one assigned locker number, so student-to-locker is a function. Two students could theoretically share a locker (repeated output, still fine), but one student cannot be assigned two different lockers.
The Vertical Line Test
When a relation is given as a graph, checking every input by hand is impossible — there are infinitely many. The vertical line test does it all at once: if any vertical line crosses the graph more than once, the relation is not a function.
The reason is exactly the one-output rule in picture form. A vertical line is the set of all points with one particular -value. If that line hits the graph twice, then that single input has two different outputs, and the relation fails.
Two cautions. First, a horizontal line is a function (a constant function) even though it looks "flat and boring" — every input has exactly one output, which happens to always be the same number. Second, the test only needs one bad vertical line to fail. Scanning left to right and finding one place where the curve stacks two points vertically is enough.
Students sometimes confuse this with a horizontal line test they have heard about elsewhere. In Algebra 1, the vertical line test is the function test. Horizontal comparisons tell you about repeated outputs, which, as we saw, do not break the function rule.
The reason is exactly the one-output rule in picture form. A vertical line is the set of all points with one particular -value. If that line hits the graph twice, then that single input has two different outputs, and the relation fails.
| Graph | Vertical line test | Function? |
|---|---|---|
| Line | Every vertical line hits once | Yes |
| Horizontal line | Every vertical line hits once | Yes |
| Parabola | Every vertical line hits once | Yes |
| Vertical line | The line hits infinitely often | No |
| Circle | The line hits at and | No |
Students sometimes confuse this with a horizontal line test they have heard about elsewhere. In Algebra 1, the vertical line test is the function test. Horizontal comparisons tell you about repeated outputs, which, as we saw, do not break the function rule.
Domain and Range
The domain is the set of all inputs; the range is the set of all outputs. From a set of ordered pairs, gather the first coordinates for the domain and the second coordinates for the range, list each value only once, and write them in increasing order inside braces.
For : the domain is and the range is . Notice the output appears twice in the pairs but is listed once in the range, because a set lists each element once.
From a graph made of separate plotted points, read the -coordinates for domain and the -coordinates for range the same way. From a graph that is a continuous curve or line, describe a span instead: for the line segment drawn from to , the domain is all with and the range is just . For a full line like with arrows on both ends, the domain is all real numbers and the range is all real numbers.
The most common error is swapping the two: writing -values under "range" because range sounds like "how far it stretches sideways." Anchor it with the alphabet — d comes before r, and x comes before y, so domain goes with . A second frequent slip is ignoring the arrows and endpoints on a graph. Arrows mean the graph keeps going, so the domain keeps going; a solid dot at the end means that endpoint is included, and an open circle means it is not.
For : the domain is and the range is . Notice the output appears twice in the pairs but is listed once in the range, because a set lists each element once.
From a graph made of separate plotted points, read the -coordinates for domain and the -coordinates for range the same way. From a graph that is a continuous curve or line, describe a span instead: for the line segment drawn from to , the domain is all with and the range is just . For a full line like with arrows on both ends, the domain is all real numbers and the range is all real numbers.
The most common error is swapping the two: writing -values under "range" because range sounds like "how far it stretches sideways." Anchor it with the alphabet — d comes before r, and x comes before y, so domain goes with . A second frequent slip is ignoring the arrows and endpoints on a graph. Arrows mean the graph keeps going, so the domain keeps going; a solid dot at the end means that endpoint is included, and an open circle means it is not.
Function Notation and Evaluating f(x)
Once you know a relation is a function, you can name it and write , read aloud as " of ." This is not multiplication. The letter is the function's name, and inside the parentheses is the input. So and describe the same rule; function notation just makes the input visible.
The advantage shows up when you evaluate. Writing packs the input, the output, and the point into four symbols. To evaluate, substitute the input everywhere appears, then simplify using order of operations.
For , evaluating at gives . Notice the parentheses around . Dropping them turns into , which is the single most common arithmetic slip in this topic.
Inputs do not have to be numbers. If , then and . Substitute the whole thing in place of and keep it in parentheses.
Questions can also run backwards. "Solve for " means find the input that produces the output : set , so . Read carefully whether you are given an input (evaluate) or an output (solve an equation). Mixing those two up is where most of the confusion in this lesson lives.
On a graph, means the point lies on the graph, so you can evaluate a function straight from a picture: go to , run up or down to the curve, and read the height.
The advantage shows up when you evaluate. Writing packs the input, the output, and the point into four symbols. To evaluate, substitute the input everywhere appears, then simplify using order of operations.
For , evaluating at gives . Notice the parentheses around . Dropping them turns into , which is the single most common arithmetic slip in this topic.
Inputs do not have to be numbers. If , then and . Substitute the whole thing in place of and keep it in parentheses.
Questions can also run backwards. "Solve for " means find the input that produces the output : set , so . Read carefully whether you are given an input (evaluate) or an output (solve an equation). Mixing those two up is where most of the confusion in this lesson lives.
On a graph, means the point lies on the graph, so you can evaluate a function straight from a picture: go to , run up or down to the curve, and read the height.
Key terms
- Relation.
- Any set of ordered pairs pairing inputs with outputs; it can be shown as a set, table, mapping diagram, or graph.
- Function.
- A relation in which every input is paired with exactly one output. Outputs may repeat; inputs may not have two different partners.
- Domain.
- The set of all input values (-values) of a relation, listed once each and usually in increasing order.
- Range.
- The set of all output values (-values) of a relation, listed once each.
- Vertical line test.
- A graphical check: if any vertical line intersects the graph more than once, the relation is not a function.
- Function notation.
- Writing for the output of function at input ; is the same information as the point .
- Evaluate a function.
- Substitute a given input value everywhere appears in the rule and simplify to find the output.
- Mapping diagram.
- A picture with input values on the left, output values on the right, and arrows showing the pairings; two arrows leaving one input means it is not a function.
Worked example
Consider the relation and the function . (a) Is a function? (b) State the domain and range of . (c) Find . (d) Solve . (e) Does the point lie on the graph of ?
(a) Check the inputs: , , , . No input repeats, so no input has two different outputs. is a function. The output appears twice, at and , but repeated outputs are allowed.
(b) Domain is the set of first coordinates: . Range is the set of second coordinates, each listed once and in increasing order: .
(c) Substitute for in . Keep the negative input in parentheses: . So , which is the point .
(d) Here is an output, not an input, so set the rule equal to and solve: . Subtract from both sides to get , then divide by to get . Check: . Correct.
(e) The point lies on the graph only if . Compute . It matches, so yes, is on the graph of .
(b) Domain is the set of first coordinates: . Range is the set of second coordinates, each listed once and in increasing order: .
(c) Substitute for in . Keep the negative input in parentheses: . So , which is the point .
(d) Here is an output, not an input, so set the rule equal to and solve: . Subtract from both sides to get , then divide by to get . Check: . Correct.
(e) The point lies on the graph only if . Compute . It matches, so yes, is on the graph of .
Practice questions
Which relation is NOT a function?
Answer:
Scan the inputs in each set. In the third set the input appears twice, once paired with and once with — one input, two different outputs, so it fails the one-output rule. The first set repeats the output four times, which is perfectly allowed; a function may send many inputs to the same output. The other two sets have all-different inputs, so they pass.
A graph consists of the single solid curve drawn only for between and , including both endpoints. Explain why this is a function, then state its domain and range.
Answer: It is a function because every vertical line drawn between and crosses the curve exactly once. Domain: all with . Range: all with .
Apply the vertical line test: for each input in the drawn interval there is exactly one height on the parabola, so no vertical line hits twice. The domain comes from how far the graph extends horizontally, and the solid endpoints mean and are included. For the range, find the lowest and highest outputs. The vertex sits at , the lowest point, and the endpoints give and , the highest points. So outputs sweep from up to .
Given , find , and separately find the value of for which .
Answer: and .
For , the is an input, so substitute it: . For the second part, is an output, so write the equation . Subtract from both sides to get , then divide by to get . Check by substituting back: . Telling these two tasks apart — input given versus output given — is the key skill here.
FAQ
- Can a function have two different inputs with the same output?
- Yes. The rule restricts inputs only. In every input has exactly one output, so it is a function, even though every output is . The graph of is a horizontal line, and it passes the vertical line test. What breaks a function is one input with two different outputs, like and appearing together.
- Does mean times ?
- No. In function notation, is the name of the function and the parentheses hold the input. Reading as multiplication would be a serious misreading. You can tell from context: a single letter followed by parentheses in a definition or evaluation, such as , , or , is function notation. If you ever need to multiply, the problem will show it with a dot or with two quantities side by side, like .
- How is different from ?
- They name the same output. Writing and gives the same graph and the same table. The advantage of is that it records the input in the statement: tells you the input, the output, and the point all at once, while alone does not say which produced it. Function notation also lets you compare several functions in one problem by calling them , , and .
- How do I find domain and range from a graph with arrows on the ends?
- Arrows mean the graph continues forever in that direction, so the corresponding set continues too. A straight line with arrows on both ends has domain all real numbers and range all real numbers. A parabola opening upward with arrows on both ends has domain all real numbers, but its range starts at the -value of the vertex and goes up. Always look at endpoints as well: a solid dot includes that value, and an open circle excludes it.
Learn this with a teacher, not a page
The Crimsora tutor teaches Relations, Functions & Function Notation live — explaining on a whiteboard, asking you questions, and adapting to where you get stuck.