Relations and their four representations, domain and range, the definition of a function and the vertical line test, equations in two variables and their graphs, and function notation for linear and non-linear functions.
Subject: Algebra 2 · 70 slides · symbolic lesson
Open the interactive version of this deck
Title
Algebra 2 · Lesson 2.1
Four ways to write one pairing of inputs with outputs, and the one rule that makes it a function
Objectives
Chapter 1 was about single equations in one unknown, where an answer was a number. From here on, algebra is about pairs: an input goes in, an output comes out, and the interesting object is the whole collection of pairings rather than any one of them.
Almost everything in the rest of the book rests on this lesson. Slope, lines, inequalities, quadratics, exponentials and logarithms are all functions, and the words you meet here are the words used to describe every one of them.
Two warnings worth carrying with you from the start. Repeated outputs are perfectly legal and repeated inputs are not, which is the opposite of what most people guess. And the brackets in the name of an output are a slot, never a multiplication.
McDougal Littell Algebra 2 (Texas Edition), Ch. 2 Linear Equations and Functions — Lesson 2.1 Represent Relations and Functions §2.1, p. 72 — Before, Now, Why and the Key Vocabulary
Warm-up
This lesson spends most of its time turning lists of number pairs into pictures, so start by making sure the picture-drawing itself is automatic. Write your five points down on paper before reading on.
Discussion prompt
Plot the points (−2, −3), (−1, 1), (1, 3), (2, −2) and (3, 1) on a set of axes. Then say, in your own words, what the first number in each pair tells you and what the second one tells you.
Nothing in that was new, and that is the point. The whole of Part 1 is about noticing that this familiar list of pairs already has a name and already has two sets hiding inside it.
Keep those five pairs in mind, because they are the example the first four slides return to again and again. By the end of Part 1 you will have seen them written four different ways without a single one of the numbers changing.
McDougal Littell Algebra 2 (Texas Edition), Ch. 2 Linear Equations and Functions — Lesson 2.1 Represent Relations and Functions §2.1, p. 72 — the Review Graphing note
Section
Part 1
Concept
The book's opening sentence is short enough to memorise, and everything in Part 1 is squeezed out of it. Read it once, then look at what it quietly promises.
relation — A mapping, or pairing, of input values with output values.
Notice how little that demands. There is no formula, no rule, no pattern to spot. A relation is just a collection of pairings, and any collection at all counts, however arbitrary it looks.
domain — The set of input values of a relation.
range — The set of output values of a relation.
Those two are sets, which changes how you write them. A set lists each member once, and the order you write them in does not matter, so a value that appears in three different pairs is still written down only once.
\[ \{(-2,-3),\,(-1,1),\,(1,3),\,(2,-2),\,(3,1)\} \]
For the five pairs you just plotted, the inputs are the first numbers and the outputs are the second numbers. Reading down those two columns is the entire method for finding a domain and a range.
McDougal Littell Algebra 2 (Texas Edition), Ch. 2 Linear Equations and Functions — Lesson 2.1 Represent Relations and Functions §2.1, p. 72 — the definitions of relation, domain and range
Picture it
Here is the single most useful idea of the lesson, and it is easier to show than to say. The four things below are not four relations. They are one relation, photographed from four angles.
Figure (svg): One relation drawn four ways: a list of five ordered pairs, a two-row table of x and y values, a mapping diagram with arrows from an input box to an output box, and the five points plotted on a coordinate grid.
Work across them slowly. The pair negative two with negative three is the first item in the list, the first column of the table, the top arrow in the diagram and the bottom-left point on the grid. Find it in all four before you move on.
Each picture makes one thing obvious and hides another. The list is exact but shapeless. The table lines the inputs up so patterns in the numbers stand out. The mapping diagram puts the arrows where you can count them. The graph shows the shape and nothing else.
Because they hold the same information, you are always free to swap. When a question feels awkward in one form, the first move is often to redraw it in another, and much of the work in this lesson is exactly that translation.
McDougal Littell Algebra 2 (Texas Edition), Ch. 2 Linear Equations and Functions — Lesson 2.1 Represent Relations and Functions §2.1, p. 72 — the Representing Relations Key Concept box
Worked example
The question asks for two sets and two pictures. Take the sets first, because the pictures are then just a matter of drawing what you have already written down.
\[ \{(-2,-3),\,(-1,1),\,(1,3),\,(2,-2),\,(3,1)\} \]
Read down the first coordinates
Why: the first number of each pair is an input, and the domain is the set of all of them.
\[ \text{domain} = \{-2,\,-1,\,1,\,2,\,3\} \]
Five pairs gave five inputs here because no input was repeated. That will not always happen, and when it does not, you write the repeated value only once.
Read down the second coordinates
Why: the second number of each pair is an output, and the range is the set of all of them.
\[ \text{range} = \{-3,\,-2,\,1,\,3\} \]
Five pairs and only four outputs this time, because the output 1 turned up twice: once from the input negative one and once from the input 3. A set records it once.
Figure (svg): The same five points plotted, with a dashed line dropped from each point to the horizontal axis and another run across to the vertical axis, so the inputs pile up on one axis and the outputs on the other.
The picture says the same thing geometrically. Drop every point straight down and the marks that land on the horizontal axis are the domain. Slide every point straight across and the marks on the vertical axis are the range.
Check by rebuilding the pairs
Why: pick each input in turn, find its output, and confirm you recover exactly the five pairs you were given, with no pair invented and none lost.
\[ (-2,-3),\,(-1,1),\,(1,3),\,(2,-2),\,(3,1) \]
That rebuild is the check worth doing every time, because the commonest mistake here is copying a number into the wrong set, and the rebuild catches it immediately.
McDougal Littell Algebra 2 (Texas Edition), Ch. 2 Linear Equations and Functions — Lesson 2.1 Represent Relations and Functions §2.1, p. 72 — Example 1
Notation
The line below carries four different pieces of punctuation, and each one means something. Take them apart now, because from here to the end of the course you will be reading lines shaped exactly like this.
Annotate
On: \( \{(-2,-3),\,(-1,1),\,(1,3),\,(2,-2),\,(3,1)\} \)
The distinction between the two kinds of bracket is worth fixing now. Curly braces hold a set, where order is irrelevant. Round brackets hold a pair, where order is the whole point.
It is also worth noticing what the notation does not contain: any hint of a rule. These five pairs are simply declared. No formula connects them, and none has to.
When a question hands you a relation in this form, your first move is almost always the same: read down the first coordinates, then read down the second, and write two sets underneath. Do that before you decide anything else about it.
McDougal Littell Algebra 2 (Texas Edition), Ch. 2 Linear Equations and Functions — Lesson 2.1 Represent Relations and Functions §2.1, p. 72 — the notation used throughout the lesson
Matching
All four representations hold the same facts, but they do not hold them equally conveniently. Match each one to the question it answers at a glance, and you will know which to reach for under time pressure.
Match the pairs
Why: The list is the raw data and hides nothing, which makes it the safest place to check an individual pairing. The table lines the inputs up in order, so a steady climb in the outputs jumps out. The diagram draws one arrow per pairing, so counting the arrows out of an input is trivial. The graph throws away the individual numbers and shows you the shape instead.
Notice that the mapping diagram is the only one built specifically to answer the question of Part 2. That is why the book reaches for it the moment it defines a function, and why the next part of this lesson lives in diagrams.
The graph earns its place for the opposite reason. It is hopeless for reading exact values but unbeatable for shape, and Part 3 turns that into a test you can run with a ruler.
One habit follows from all of this. When a relation is given to you in an awkward form, spend twenty seconds redrawing it in the form that suits the question. That redraw is almost never wasted time.
Worked example
Same task as Example 1, but this relation has a repeat hiding in it, so the sets come out shorter than the list of pairs.
\[ \{(-4,3),\,(-2,1),\,(0,3),\,(1,-2),\,(-2,-4)\} \]
Read down the first coordinates
Why: collecting the inputs gives negative four, negative two, zero, one and negative two again; a set records the repeat once.
\[ \text{domain} = \{-4,\,-2,\,0,\,1\} \]
Five pairs and four inputs, so one input is being used twice. Noticing that count mismatch is the fastest warning sign you will ever get about a relation, and Part 2 explains why.
Read down the second coordinates
Why: the outputs are three, one, three again, negative two and negative four, and again the repeat is written once.
\[ \text{range} = \{-4,\,-2,\,1,\,3\} \]
Figure (svg): A mapping diagram for the relation of Guided Practice 1, with the input negative two carrying two arrows, one to the output 1 and one to the output negative four.
The diagram shows exactly where both repeats are. Two arrows arrive at the output 3, from the inputs negative four and zero, and two arrows leave the input negative two, going to 1 and to negative four.
Those two situations feel similar and are treated completely differently by the next part of the lesson. Hold the picture in your head; the question will be which of the two repeats is allowed.
Check the totals against the pairs
Why: four inputs and four outputs, but five arrows, and the five arrows must match the five pairs you were given exactly.
\[ 4 \text{ inputs}, \; 4 \text{ outputs}, \; 5 \text{ arrows} \]
Counting arrows against pairs is a genuine check: if your diagram has four arrows you have quietly lost a pairing, and if it has six you have invented one.
McDougal Littell Algebra 2 (Texas Edition), Ch. 2 Linear Equations and Functions — Lesson 2.1 Represent Relations and Functions §2.1, p. 73 — Guided Practice 1
Fill the middle
Reading a range is a mechanical job, and mechanical jobs are worth doing once under supervision. Look back at the five pairs, collect the second coordinates, and drop the repeat.
Fill in the blanks
\text1 = \3},\; ___\}
Why: The second coordinates are negative three, one, three, negative two and one. Written as a set, smallest first, that is negative three, negative two, one and three. The output one appears in two of the pairs but a set lists it only once, which is why five pairs produce a range of only four values.
Sorting the values from smallest to largest is a convention rather than a rule; a set does not care about order. Doing it anyway makes two answers easy to compare and makes a missing value easy to spot.
If you found yourself writing the one twice, you have met the most common slip in this topic. The cure is to read the values out loud as you write them, because you will hear yourself repeat a number long before you see it.
It is worth noticing how much smaller these sets are than the relation. Five pairs shrank to nine numbers in two sets, and if the relation had a hundred pairs the sets might still be tiny. The domain and range are a summary, not a copy.
Sorting
Six statements about the Example 1 relation. Decide for each one whether it is a true claim about the domain, a true claim about the range, or simply false, and say to yourself which coordinate you looked at.
Sort into buckets
Sort each statement about the relation with the pairs (−2, −3), (−1, 1), (1, 3), (2, −2) and (3, 1).
The pair of statements to look at twice are the ones about negative two, because negative two lives in both sets. It is an input in the pair starting with negative two and an output in the pair ending with negative two, and those are different roles.
That overlap catches people out constantly. A number being in the domain tells you nothing at all about whether it is in the range, and the two sets are free to share as many members as they happen to share.
The counting statement is worth a second look too. The domain has five members only because no input repeats; in the Guided Practice relation on the last slide the same count came out as four.
Trap
Asked for the domain and range of the Guided Practice relation, a very common answer copies the coordinates straight down the page:
\[ \text{domain} = \{-4,-2,0,1,-2\} \]
\[ \text{range} = \{3,1,3,-2,-4\} \]
Every number in those two lines came from the relation, and nothing has been invented. It still is not the answer to the question that was asked.
The domain and the range are sets, and a set lists each member once. Writing a value twice does not make it more of a member.
\[ \text{domain} = \{-4,-2,0,1\} \]
\[ \text{range} = \{-4,-2,1,3\} \]
Beyond being untidy, the long version destroys the one signal that matters. Four inputs and five pairs shouts that an input is being reused, which is exactly the thing Part 2 is about; five inputs and five pairs says nothing at all.
So write each value once, and then compare the size of the domain with the number of pairs. That single comparison answers the function question before you have drawn anything.
McDougal Littell Algebra 2 (Texas Edition), Ch. 2 Linear Equations and Functions — Lesson 2.1 Represent Relations and Functions §2.1, p. 73 — Guided Practice 1
Section
Part 2
Concept
Here is the definition the rest of the course is built on. It is one sentence, and the two words doing all the work are exactly and one.
function — A relation for which each input has exactly one output. If any input of a relation has more than one output, the relation is not a function.
Exactly one means two things at once, and it is worth separating them. Not more than one, because an input handed two outputs leaves you with no way to say what the answer is. And not fewer than one, because an input with no output is not being used at all.
Read the second sentence of the definition carefully as well. One offending input is enough. A relation with ninety-nine well-behaved inputs and one greedy one is not a function, in the same way that one hole makes a bucket leak.
Notice the direction the rule runs in. It restricts what may leave an input; it says nothing whatever about what may arrive at an output. That asymmetry is the single most misremembered fact in the whole topic, and the next few slides attack it directly.
\[ \text{function} \;\Longleftrightarrow\; \text{each input has exactly one output} \]
Why insist on it? Because a function is a promise that a question has a single answer. Ask it for the output at an input and you get one number back, every time, which is what makes the rest of algebra possible.
McDougal Littell Algebra 2 (Texas Edition), Ch. 2 Linear Equations and Functions — Lesson 2.1 Represent Relations and Functions §2.1, p. 73 — the definition of a function
Worked example
The book gives two mapping diagrams and asks the same question of both. Judge them by the arrows leaving the input box, and nothing else.
Figure (svg): Two mapping diagrams side by side. In the left one every input has exactly one arrow leaving it, and two different inputs land on the same output. In the right one the input 1 has two arrows leaving it.
Count the arrows leaving each input
Why: the left diagram sends one arrow out of negative three, one out of negative one, one out of two and one out of four.
\[ -3 \mapsto 2, \quad -1 \mapsto 3, \quad 2 \mapsto 3, \quad 4 \mapsto -4 \]
Four inputs, four arrows, one each. The definition asks for exactly one output per input, and that is precisely what the counting shows, so the left relation is a function.
Notice what the output box is doing
Why: two arrows arrive at the output 3, one from negative one and one from two, and the definition places no limit at all on arrivals.
\[ -1 \mapsto 3 \quad \text{and} \quad 2 \mapsto 3 \]
That is the book's own Avoid Errors note, and it is worth taking seriously. A relation may map more than one input onto the same output and still be a function, because the rule counts departures, not arrivals.
Think of it as a class list of birthdays. Every pupil has exactly one birthday, so birthday is a function of pupil. Two pupils sharing a birthday breaks nothing, and a date with no pupil on it breaks nothing either.
Check by writing it as ordered pairs
Why: turn each arrow into a pair and look for two pairs sharing a first coordinate; there are none, so no input has two outputs.
\[ \{(-3,2),\,(-1,3),\,(2,3),\,(4,-4)\} \]
Reading the pairs is the version of this check you can do without a picture, and it is the one to use when a question gives you a bare list.
McDougal Littell Algebra 2 (Texas Edition), Ch. 2 Linear Equations and Functions — Lesson 2.1 Represent Relations and Functions §2.1, p. 73 — Example 2, part (a)
Worked example
The right-hand diagram on the previous slide has three inputs and four arrows, and that mismatch is the whole story. Look at where the extra arrow comes from.
\[ -2 \mapsto -4, \quad 1 \mapsto -1, \quad 1 \mapsto 2, \quad 4 \mapsto 3 \]
Find the input with more than one arrow
Why: negative two and four each send out one arrow, but the input 1 sends out two, one to negative one and one to two.
\[ 1 \mapsto -1 \quad \text{and} \quad 1 \mapsto 2 \]
One input, two outputs. That is exactly the situation the definition rules out, so the relation is not a function, and a single offending input is enough to settle it.
Say what goes wrong in plain language
Why: ask the relation for the output at 1 and it answers negative one and two at the same time, so the question has no single answer.
\[ \text{output at } 1 = \; ? \]
That is the real cost of the failure, and it is worth feeling rather than memorising. A rule that gives two answers to the same question cannot be used to predict anything, which is why mathematics gives the well-behaved ones their own name.
Compare the two diagrams one more time before moving on. The left one had two arrows arriving at a single output and was fine; the right one has two arrows leaving a single input and is not. Same picture, mirrored, opposite verdict.
Check by writing it as ordered pairs
Why: the pairs with first coordinate one are the pair ending in negative one and the pair ending in two, so the same input appears twice with different partners.
\[ (1,-1) \quad \text{and} \quad (1,2) \]
Two pairs with the same first coordinate and different second coordinates is the whole test, written without any picture at all.
McDougal Littell Algebra 2 (Texas Edition), Ch. 2 Linear Equations and Functions — Lesson 2.1 Represent Relations and Functions §2.1, p. 73 — Example 2, part (b)
Worked example
This one looks suspicious and is completely fine, which makes it the most useful checkpoint in the lesson. The relation is given as a table of five pairs.
| x | −2 | −1 | 0 | 1 | 3 |
|---|---|---|---|---|---|
| y | −4 | −4 | −4 | −4 | −4 |
List the pairs the table records
Why: each column of the table is one pairing, read top to bottom.
\[ \{(-2,-4),\,(-1,-4),\,(0,-4),\,(1,-4),\,(3,-4)\} \]
Now apply the definition rather than your instincts. The question is not whether the outputs look interesting; it is whether any single input has been given two of them.
Count the outputs for each input
Why: negative two has one, negative one has one, zero has one, one has one and three has one.
\[ \text{five inputs}, \; \text{five pairs}, \; \text{one output each} \]
Figure (svg): Five points all at a height of negative four, sitting on a dashed horizontal line, with a dashed vertical line crossing the row at exactly one point.
Drawn on axes it is a flat row of five points, all at a height of negative four. Every one of them sits at its own horizontal position, which is the only thing the definition cares about.
So the relation is a function, and the range is a set with exactly one member. That is allowed: a range may be as small as you like, as long as every input is served.
Check against the definition, both halves
Why: no input has two outputs, and no input has none, so each input has exactly one, and a repeated output breaks no rule.
\[ \text{range} = \{-4\} \]
If this one surprised you, the next two slides are written for exactly that surprise: they take apart the wrong rule that makes it look illegal.
McDougal Littell Algebra 2 (Texas Edition), Ch. 2 Linear Equations and Functions — Lesson 2.1 Represent Relations and Functions §2.1, p. 73 — Guided Practice 2
Trap
A student is asked whether this relation is a function and answers no:
\[ \{(-4,2),\,(-1,5),\,(3,6),\,(7,2)\} \]
The reasoning given is that the inputs negative four and seven are both mapped to the output 2, so an output has been used twice.
The observation is correct. Two arrows really do arrive at the output 2. The conclusion drawn from it is not.
The definition counts outputs per input, not inputs per output. Look at the first coordinates: negative four, negative one, three and seven, all different.
\[ \text{4 pairs}, \; \text{4 different inputs} \]
So every input has exactly one output, and the relation is a function. The shared output 2 is irrelevant to the question that was asked.
The everyday version makes the asymmetry obvious. Everyone has exactly one date of birth, so a shared birthday is unremarkable; being born on two different dates is what would be strange.
The permanent fix is to make the check directional. Read only the first coordinates, and ask whether any of them repeats with a different partner. Never look at the second coordinates for this question at all.
McDougal Littell Algebra 2 (Texas Edition), Ch. 2 Linear Equations and Functions — Lesson 2.1 Represent Relations and Functions §2.1, p. 77 — Exercise 14
Error analysis
Exercise 15 gives a table and a piece of reasoning about it. The reasoning reaches the right-sounding verdict for a reason that is exactly backwards, which is worse than an arithmetic slip because it survives into the next question.
The claim is that the relation given by the table is a function because there is only one value of x for each value of y. Take the table apart before judging the sentence.
Annotate
On: \( \{(0,5),\,(1,6),\,(2,7),\,(1,8),\,(0,9)\} \)
The correction is one word long: swap x and y in that sentence. A function needs one value of y for each value of x, and this table has two values of y for the value of x equal to one.
The deeper lesson is about the shape of the argument. A true observation plus the wrong definition gives a confident wrong answer, and confidence is exactly what makes it hard to catch later.
A defence you can use under pressure: before checking anything, write down the definition in five words, each input exactly one output. Then check that sentence, not the one you remember.
McDougal Littell Algebra 2 (Texas Edition), Ch. 2 Linear Equations and Functions — Lesson 2.1 Represent Relations and Functions §2.1, p. 77 — Exercise 15
Sorting
Five relations from the exercise set, all given as bare lists. Run the same check on each one: scan the first coordinates for a repeat, and only then look at what that repeat is paired with.
Sort into buckets
Sort each relation by whether it is a function.
The last relation is the most instructive, because it is what you get when you try to make a relation out of square roots. The input sixteen is paired with both four and negative four, which is exactly why the square root symbol is defined to mean only the positive one.
The first relation is the pair to watch in the other bucket. Two of its pairs end in negative one, so it has a repeated output, and it is still a function. Repeated outputs never decide anything.
If you sorted by scanning the first coordinates only, you used the method this lesson wants. If you found yourself reading whole pairs, that works too but costs twice the time on a long list.
McDougal Littell Algebra 2 (Texas Edition), Ch. 2 Linear Equations and Functions — Lesson 2.1 Represent Relations and Functions §2.1, p. 77 — Exercises 16 to 19 and Exercise 8
Prediction
Exercise 20 starts with a relation that is already a function and asks which single extra pair may be added without spoiling it. Look at the inputs already in use before you look at the options.
\[ \{(-6,3),\,(-2,4),\,(1,5),\,(4,0)\} \]
Predict first
Which ordered pair can be added to this relation so that it is still a function?
Correct: the pair with first coordinate six and second coordinate three
Why: The inputs already in use are negative six, negative two, one and four. Any new pair that reuses one of those gives that input a second output and breaks the function. Only the pair whose first coordinate is six brings in a brand new input, and the fact that its second coordinate three is already an output of another pair does not matter, because repeated outputs are always allowed.
Three of the four options reuse an input that is already spoken for, and each one would hand that input a second, different output. That is the one thing the definition forbids.
The winning option is also the one that looks most suspicious at first glance, because its output three already belongs to another pair. Being suspicious of repeated outputs is the habit this lesson keeps trying to break.
A quick general rule falls out of this. Adding a pair with a brand new input can never break a function, and adding a pair with an input already in use breaks it unless the output matches exactly what that input already gives.
McDougal Littell Algebra 2 (Texas Edition), Ch. 2 Linear Equations and Functions — Lesson 2.1 Represent Relations and Functions §2.1, p. 77 — Exercise 20
Counterexample
Being able to break a rule deliberately is the strongest evidence that you understand it. Here is a function; your job is to destroy it with the smallest possible change.
\[ \{(-2,-3),\,(-1,1),\,(1,3),\,(2,-2),\,(3,1)\} \]
Discussion prompt
Add exactly one ordered pair that turns this relation into something that is not a function, and add a different single pair that leaves it a function. Then say, in one sentence, what every pair of the first kind has in common.
Try the exercise in reverse as well: could you break it by adding a pair that reuses an existing output? You cannot, and failing to find one is a much stronger memory than being told.
Notice that a pair reusing an input with the very same output it already has does no damage either. It just restates a pairing you already had, which a set does not record twice.
Questions like this appear on tests in disguise, phrased as which of these could be added or which value of k makes this a function. Underneath, all of them are asking you to check first coordinates.
Section
Part 3
Concept
Counting arrows works when a relation is given as pairs or a diagram. On a graph there are no arrows to count, and a graph may hold infinitely many points, so the counting has to be replaced by something you can do with a ruler.
vertical line test — A relation is a function if and only if no vertical line intersects the graph of the relation at more than one point.
The phrase if and only if is doing real work there. It promises the test never lies in either direction: pass it and the relation is a function, fail it and the relation is not, with no third possibility.
Where does the test come from? Every point on one vertical line shares the same first coordinate. So the points a vertical line passes through are exactly the outputs that one input has been given.
\[ \text{the line } x = a \;\text{ meets } \; (a, y_1),\, (a, y_2),\, \ldots \]
Two crossings therefore mean two outputs for that single input, which is exactly what the definition forbids. The test is not a new rule at all; it is the old rule, drawn.
McDougal Littell Algebra 2 (Texas Edition), Ch. 2 Linear Equations and Functions — Lesson 2.1 Represent Relations and Functions §2.1, p. 73 — the Vertical Line Test Key Concept box
Picture it
The book draws the test with two curves that differ by a quarter turn. Look at them before reading the caption, and decide for yourself which one is in trouble.
Figure (svg): Two graphs side by side. On the left an upward parabola with a vertical line crossing it once. On the right a parabola lying on its side with a vertical line crossing it twice.
On the left, slide the red line anywhere you like along the horizontal axis. Wherever it goes it meets the parabola once and only once, so every input has exactly one output, and the relation is a function.
On the right, the same curve has been tipped onto its side. Now the red line at two meets the curve at a height of two and at a height of negative two, so the input two has been handed two outputs, and the relation is not a function.
Two things are worth noticing about the right-hand picture. The first is that the curve is perfectly respectable; nothing is wrong with it as a curve. It simply is not a function, which is a statement about the pairing and not about the shape.
The second is that one bad line is enough. Far to the left of the turning point the red line would miss the sideways curve entirely, and further right it still meets it twice, but a single position with two crossings has already settled the question.
McDougal Littell Algebra 2 (Texas Edition), Ch. 2 Linear Equations and Functions — Lesson 2.1 Represent Relations and Functions §2.1, p. 73 — the two graphs in the Key Concept box
Notation
Calling something a vertical line makes it sound like a drawing instrument rather than a piece of algebra. It is both, and the algebra is what explains why the test works.
Annotate
On: \( x = 3 \)
That last note is worth pausing on, because it sounds like a paradox and is not. The test is about relations drawn on axes, and a vertical line is such a relation: one input, endlessly many outputs.
It also explains the shape of the answer to a question people ask here. Why is there no horizontal line test in this lesson? Because horizontal lines collect points sharing an output, and sharing an output was never forbidden.
Keep the equation form in mind when you run the test by hand. Rather than waving a ruler about, pick a specific input where the graph looks crowded and ask how many points sit above it.
Worked example
The first graph plots the average points per game against age for the eight highest-scoring members of one basketball team at the end of a season. The question is whether the pairing of age with average is a function.
Figure (svg): A scatter graph of average points against age for eight team members, with two red vertical lines at age twenty-eight and age twenty-nine, each passing through two of the plotted points.
Look for a vertical position carrying more than one point
Why: two of the eight players were twenty-eight that season, and two more were twenty-nine.
\[ x = 28 \quad \text{and} \quad x = 29 \]
Reading the graph, the two players aged twenty-eight averaged about twenty-four points and about eight, which are two very different outputs for the same input.
Name the two points the line at twenty-eight passes through
Why: one high scorer and one lower one, both at the same horizontal position.
\[ (28, 24) \quad \text{and} \quad (28, 8) \]
That single vertical line has already decided the question. The relation is not a function, and the line at twenty-nine only confirms it a second time.
The reason is worth stating in the language of the situation rather than the graph. Age does not determine scoring average, because two different people can be the same age and score quite differently. Nothing is wrong with the data; it simply is not a rule.
Check by asking the relation a question
Why: ask for the average of a twenty-eight-year-old and the graph offers two answers at once, which is what not a function means.
\[ \text{output at } 28 = 24 \; \text{or} \; 8 \]
The zigzag on the horizontal axis of the book's graph is a warning that the scale starts at twenty-six rather than zero; it changes how the picture looks but nothing about the test.
McDougal Littell Algebra 2 (Texas Edition), Ch. 2 Linear Equations and Functions — Lesson 2.1 Represent Relations and Functions §2.1, p. 74 — Example 3, the Timberwolves graph
Worked example
The second graph plots average points per game against age for a single player over his first nine seasons. Same axes, same kind of data, opposite verdict, and the reason is worth more than the answer.
Figure (svg): A scatter graph of one player's scoring average against his age over nine seasons, with a red vertical line at age twenty-four passing through exactly one point.
Read the inputs off the graph
Why: one point for each season, at ages twenty through twenty-eight, so nine points at nine different horizontal positions.
\[ x = 20,\,21,\,22,\,23,\,24,\,25,\,26,\,27,\,28 \]
Because the ages are all different, there is no horizontal position where two points could stack up. A vertical line anywhere meets the graph once at most, and never twice.
Test the busiest-looking position
Why: around the middle the points sit close together, so try the line at twenty-four and count what it passes through.
\[ x = 24 \;\longrightarrow\; (24, 23) \; \text{only} \]
So the relation is a function. Ask it for the average at age twenty-four and exactly one season answers, which is the promise a function makes.
The structural reason is what to remember. A person is exactly one age in each season, so the inputs cannot repeat. The first graph failed only because eight different people were being crammed onto one age axis.
Check by counting points against inputs
Why: nine points and nine different ages, so one point per input and no input left with two.
\[ 9 \text{ points}, \; 9 \text{ inputs} \]
That count against count check is the graph version of comparing the size of the domain with the number of pairs, which is the check you built in Part 1.
McDougal Littell Algebra 2 (Texas Edition), Ch. 2 Linear Equations and Functions — Lesson 2.1 Represent Relations and Functions §2.1, p. 74 — Example 3, the Kevin Garnett graph
Worked example
The checkpoint asks a what-if. Suppose the same player takes a tenth season, at age twenty-nine, and averages twenty-four point two points per game, exactly as he did in his ninth. Is the enlarged relation still a function?
\[ \text{new pair: } (29, 24.2) \qquad \text{old pair: } (28, 24.2) \]
Check whether the new input is already in use
Why: the ages already present run from twenty to twenty-eight, and twenty-nine is not among them.
\[ 29 \notin \{20,21,22,23,24,25,26,27,28\} \]
Figure (svg): The same nine seasons with a tenth point added at age twenty-nine and the same scoring average as age twenty-eight, joined by a dashed horizontal line to show the repeated output.
Drawn in, the new point sits at the same height as the old one but one step to the right. The dashed line joining them is horizontal, which is the giveaway: this is a repeated output, not a repeated input.
Apply the test to the new point's position
Why: the vertical line at twenty-nine meets the graph at the new point and nowhere else.
\[ x = 29 \;\longrightarrow\; (29, 24.2) \; \text{only} \]
So yes, the relation is still a function. Two seasons with identical averages are as harmless as two people with the same birthday, and for exactly the same reason.
Check the trap the question is setting
Why: the repeated value is 24.2, which is an output, and outputs were never restricted, so nothing is broken.
\[ 28 \mapsto 24.2, \quad 29 \mapsto 24.2 \]
Had the question instead given him two different averages in the same season, the new point would sit directly above an old one and the relation would fail at once.
McDougal Littell Algebra 2 (Texas Edition), Ch. 2 Linear Equations and Functions — Lesson 2.1 Represent Relations and Functions §2.1, p. 74 — Guided Practice 3
Discrimination
Six shapes, no equations. For each one, imagine a vertical line sweeping from the far left to the far right, and record the worst moment: the largest number of crossings it ever has.
Figure (svg): Six small graphs on bare axes: a straight sloping line, an upward parabola, a circle, a parabola lying on its side, a cubic curve, and a horizontal line.
Sort into buckets
Sort each shape by whether every vertical line meets it at most once.
The useful pattern is the one about doubling back. A curve fails as soon as it turns round and travels leftwards, because that puts two pieces of it above the same horizontal position.
The horizontal line is the one people put in the wrong bucket. It looks like the opposite of a vertical line and therefore feels suspicious, but it is the flat relation from Guided Practice 2 drawn without gaps: one output, shared by every input, and perfectly legal.
Two of these shapes will reappear in later chapters. The circle is Chapter 9's conic, and the sideways parabola is what you get by swapping the roles of x and y in the ordinary one; both are studied precisely because they are not functions.
Concept
The circle deserves its own slide, because it is the example that turns up in every later chapter and because the two outputs are easy to name exactly rather than merely point at.
\[ x^2 + y^2 = 25 \]
Figure (svg): A circle of radius five centred at the origin, with a vertical line at x equal to three meeting it at the points three comma four and three comma negative four.
Put three in for the first coordinate and the equation becomes nine plus the square of the second coordinate equals twenty-five, so the square of the second coordinate is sixteen.
\[ 9 + y^2 = 25 \;\Longrightarrow\; y^2 = 16 \;\Longrightarrow\; y = 4 \; \text{or} \; y = -4 \]
Sixteen has two square roots, and both of them give points genuinely on the circle. So the input three is paired with four and with negative four, and the vertical line in the picture passes through both.
Notice that the algebra and the picture found the same failure independently. That is worth trusting: the vertical line test is not an approximation or a sketching shortcut, it is the definition with coordinates attached.
The rescue, when you need one, is to cut the relation in half. Keeping only the upper semicircle leaves a perfectly good function, and that is exactly what happens when the square root symbol is defined to mean only the positive root.
OpenStax Algebra and Trigonometry 2e, §3.1 Functions and Function Notation §3.1 — the same test, and the same circle, in the second source
Trap
Asked whether this relation is a function, a common piece of work slides a horizontal line across the graph instead:
\[ (-2,-4),\; (-1,-4),\; (0,-4), \]
\[ (1,-4),\; (3,-4) \]
The horizontal line at negative four passes through all five points at once, so the verdict comes back: not a function.
The picture really does show five points on one horizontal line. The test being applied to it is the wrong test.
The test is vertical because inputs are measured horizontally. Only a vertical line gathers points sharing an input.
\[ x = 1 \;\longrightarrow\; (1,-4) \]
Every vertical line here meets the row of points once or not at all, so the relation is a function, exactly as Guided Practice 2 concluded.
What a horizontal line detects is a repeated output, which is allowed. It does have a use, but not until Lesson 6.4, where the question is whether the inverse of a function is itself a function.
A memory hook that survives exam pressure: the test line is parallel to the axis you did not pair on. Inputs live on the horizontal axis, so the test line stands vertical.
Real world
Whether a pairing is a function depends on which quantity you call the input, and swapping them can change the answer. This challenge exercise makes that concrete with a shop's postage table.
| merchandise cost | shipping cost |
|---|---|
| $0.01 to $30.00 | $4.50 |
| $30.01 to $60.00 | $7.25 |
| $60.01 to $100.00 | $9.50 |
| over $100.00 | $12.50 |
Discussion prompt
Is the shipping cost a function of the merchandise cost? Is the merchandise cost a function of the shipping cost? Answer both, and in each case say what the input is and what would have to go wrong for the answer to be no.
This is the same shape as the birthday example from Part 2, dressed in money. Many pupils share a birthday, so birthday is a function of pupil and pupil is not a function of birthday.
It is also a warning about the phrase is a function of. It is never a property of a pair of quantities by itself; it always names which one you are feeding in. Say the input out loud before answering.
McDougal Littell Algebra 2 (Texas Edition), Ch. 2 Linear Equations and Functions — Lesson 2.1 Represent Relations and Functions §2.1, p. 79 — Exercise 50
Prediction
A relation is drawn as four points, and you are offered four extra points to add to it. Before looking at the options, work out which horizontal positions are already occupied.
\[ \{(-6,3),\,(-2,4),\,(1,5),\,(4,0)\} \]
Predict first
Adding which point would make a vertical line meet the graph twice?
Correct: a point directly above the one at negative six
Why: Directly above means the same horizontal position, so the vertical line at negative six would then pass through two points and the input negative six would have two outputs. A point at a brand new horizontal position can never cause a second crossing, and a point exactly on top of an existing one is that same pairing again rather than a new one, so it adds nothing to the set.
The wording directly above is the entire clue, and it is the wording a graph question uses instead of saying the first coordinates match. Train yourself to translate it on sight.
The option about landing exactly on an existing point is the interesting one. It looks like a repeat but it is the same pair written twice, and a set does not record a member twice, so the relation is unchanged.
Level with means the same height, which is a repeated output, and by now you should expect that to be harmless. The graph version of allowed and forbidden is: side by side is fine, one above the other is not.
Section
Part 4
Concept
Every relation so far has been a short list you could write out. Most of the useful ones are not: they pair every number with something, and no list could hold them. An equation in two variables is how you write one down anyway.
equation in two variables — An equation such as y = 3x − 5, in which x is the input variable and y is the output variable.
\[ y = 3x - 5 \]
The equation is a rule rather than a list. Hand it any input at all and it manufactures the matching output on the spot, so the relation it describes has as many pairs as there are numbers.
independent variable — The input variable, here x: you are free to choose it.
dependent variable — The output variable, here y: its value depends on the value you chose for x.
The names say which way the arrow points. You pick x freely and y is then forced, which is why x is called independent and y dependent. Swapping the names would reverse the roles and usually change the relation completely.
Two lessons from now this same equation will be read for its slope and its intercept. For the moment it is just a machine for producing pairs, and the next few slides are about what those pairs look like once drawn.
McDougal Littell Algebra 2 (Texas Edition), Ch. 2 Linear Equations and Functions — Lesson 2.1 Represent Relations and Functions §2.1, p. 74 — Equations in Two Variables
Notation
Before using a rule it is worth reading it as a sequence of actions, because that is what you will actually perform on every value you feed it.
Annotate
On: \( y = 3x - 5 \)
Lesson 1.4 was about getting an equation into exactly this shape. The pay-off arrives now: with the output alone on one side, building a table is pure substitution and no algebra remains.
Reading the right-hand side as a recipe also predicts the shape of the graph. Multiplying by three stretches the input, subtracting five slides everything down, and neither operation bends anything, so the result is a straight line.
Try the recipe on one number in your head before moving on. Feed in four: three times four is twelve, minus five is seven, so the pair with first coordinate four and second coordinate seven belongs to this relation.
Worked example
An ordered pair is called a solution of an equation in two variables when substituting both of its numbers makes the equation true. Testing one is a two-line job, and doing it carefully now pays off for the rest of the chapter.
\[ y = 3x - 5, \qquad (x, y) = (2, 1) \]
Substitute both coordinates
Why: the first coordinate goes wherever x appears and the second wherever y appears; a pair is a pair of instructions, not one.
\[ 1 = 3(2) - 5 \]
Notice that you are not solving anything. There is nothing left to find, because both letters have been given values. All that remains is to decide whether the statement in front of you is true.
Work out the right-hand side
Why: three times two is six, and six minus five is one.
\[ 1 = 6 - 5 = 1 \]
The two sides agree, so the statement is true and the pair is a solution. In the language of Part 1, the relation described by this equation contains the pairing of two with one.
Figure (svg): The line y equals three x minus five, with the point two comma one marked on it and the point one comma one marked off it.
The picture shows what being a solution means geometrically: the point lands on the line. The nearby point with first coordinate one and second coordinate one is not a solution, and it misses the line, because three times one minus five is negative two rather than one.
Check the failing pair too
Why: substituting one for x gives negative two, which is not the second coordinate one, so that pair is not a solution and its point is off the line.
\[ 3(1) - 5 = -2 \ne 1 \]
Testing a pair you expect to fail is worth the extra line: it proves the test can say no, and a test that always says yes is no test at all.
McDougal Littell Algebra 2 (Texas Edition), Ch. 2 Linear Equations and Functions — Lesson 2.1 Represent Relations and Functions §2.1, p. 74 — the definition of a solution of an equation in two variables
Concept
Once you can test one pair, the graph has a precise meaning. It is not a decorative curve near the equation; it is the complete collection of pairs that pass the test, drawn as points.
the graph of an equation in two variables — The set of all points whose coordinates are solutions of the equation.
That definition explains both directions of use. A point on the line is a pair that works, so you can read solutions off a graph. A pair that works is a point on the line, so you can build a graph from solutions.
Figure (svg): Three panels showing the same equation becoming a graph: a table of five x and y values, the five points plotted with nothing joining them, and the same five points with a straight line drawn through them.
The book's three steps are the practical version. Build a table of values, plot enough points to see a pattern, then connect them with a line or a curve.
The third step is a claim, not a decoration. Joining the points asserts that everything between them is also a solution, which is true for the equations in this lesson and false for a relation that only exists at whole numbers.
McDougal Littell Algebra 2 (Texas Edition), Ch. 2 Linear Equations and Functions — Lesson 2.1 Represent Relations and Functions §2.1, p. 74 — the Graphing Equations in Two Variables Key Concept box
Ranking
The order of these steps is not arbitrary, and getting it wrong is how a graph ends up as a confident straight line through points that were never meant to be straight.
Put in order
Arrange the moves that turn an equation into a graph.
Why: Substituting comes first because nothing can be plotted until there are pairs to plot. Plotting comes next, and then a deliberate pause to look: the book says to plot enough points to recognise a pattern, which only works if you actually look before drawing. Joining comes last, because it is a claim about everything between the points and you have no right to make that claim until you have seen the pattern.
The pause in the middle is the step people skip. Drawing a line through two points always works, in the sense that a line can always be drawn, so plotting only two points guarantees you will find a line whether or not there is one.
Five points is the book's habit and a good one. If a fifth point refuses to sit on the line through the other four, you have either made an arithmetic slip or the relation is not linear, and both are worth knowing before the ink dries.
This ordering will keep its value later. Graphing a parabola in Chapter 4 or an exponential curve in Chapter 7 uses exactly these four moves; only the shape you finally draw through the points changes.
Worked example
Follow the three steps exactly as written. Choose five inputs spread either side of zero, because a table crowded on one side hides half the picture.
\[ y = -2x - 1 \]
Substitute the inputs negative two and negative one
Why: negative two times negative two is four, and four minus one is three; negative two times negative one is two, and two minus one is one.
\[ y = -2(-2) - 1 = 3, \qquad y = -2(-1) - 1 = 1 \]
Watch the sign in the first line. A negative coefficient times a negative input gives a positive product, and forgetting that is how a falling line accidentally comes out rising.
Substitute zero, one and two
Why: zero gives negative one on its own, one gives negative two minus one, and two gives negative four minus one.
\[ y = -1, \qquad y = -3, \qquad y = -5 \]
| x | −2 | −1 | 0 | 1 | 2 |
|---|---|---|---|---|---|
| y | 3 | 1 | −1 | −3 | −5 |
Plot the five points and look before joining
Why: each pair is a point; read the table column by column and mark them.
\[ (-2,3),\,(-1,1),\,(0,-1),\,(1,-3),\,(2,-5) \]
Figure (svg): The line y equals negative two x minus one drawn through five plotted points, each labelled with its coordinates.
The points fall in a perfectly straight line, dropping two units for every one unit to the right, which is the negative two in the equation showing itself on the page.
Check a point that was not in the table
Why: the pair with first coordinate three should be on the line if the line is right, and the equation gives negative seven, which is two below the last table value as expected.
\[ y = -2(3) - 1 = -7 \]
Checking a sixth point outside the table is the strongest check available here, because it tests the line where you did not construct it.
McDougal Littell Algebra 2 (Texas Edition), Ch. 2 Linear Equations and Functions — Lesson 2.1 Represent Relations and Functions §2.1, p. 75 — Example 4
Fill the middle
Guided Practice 4 asks for the graph of another linear equation. Before drawing anything, fill in the value the table needs at the input negative one, writing the substitution line out in full rather than doing it in your head.
Fill in the blanks
y = 3(-1) - 2 = -5
Why: The input negative one goes into the bracket, three times negative one is negative three, and negative three minus two is negative five. Writing the bracket in is what keeps the sign safe: three times negative one is a single product, and leaving the bracket out invites you to read the expression as three minus one.
Brackets around a substituted negative number are not optional politeness. Without them the line reads as three, then minus one, minus two, which comes out as zero rather than negative five.
Having the middle line written down also makes a wrong answer diagnosable. If your table value disagrees with a friend's, comparing the substitution lines finds the disagreement in seconds; comparing two final numbers finds nothing.
Do the same for the other four inputs and you will have the five pairs the next slide plots. Two of them are negative and two positive, which is exactly the spread you want.
Worked example
The method does not change when the coefficient turns positive; only the direction of the finished line does. Build the table first and resist any urge to predict the picture.
\[ y = 3x - 2 \]
Substitute the two negative inputs
Why: three times negative two is negative six, less two is negative eight; three times negative one is negative three, less two is negative five.
\[ y = 3(-2) - 2 = -8, \qquad y = 3(-1) - 2 = -5 \]
Substitute zero, one and two
Why: zero leaves negative two, one gives three minus two, and two gives six minus two.
\[ y = -2, \qquad y = 1, \qquad y = 4 \]
| x | −2 | −1 | 0 | 1 | 2 |
|---|---|---|---|---|---|
| y | −8 | −5 | −2 | 1 | 4 |
Read across the bottom row before plotting. The outputs climb by three each time the input climbs by one, and that steady step is the strongest possible hint that the points will line up.
Figure (svg): The line y equals three x minus two drawn through five plotted points, rising three units for every one unit to the right.
The dashed step drawn on the graph is that three made visible: one unit across, three units up, over and over. Compare it with the previous example, where the step went two units down instead.
Check the middle point in the original equation
Why: put zero in for x and the equation gives negative two, which is where the line crosses the vertical axis in the picture.
\[ y = 3(0) - 2 = -2 \]
The crossing point is the easiest of all to check, and a line drawn through the wrong height there is wrong everywhere, so it is the first thing to look at.
McDougal Littell Algebra 2 (Texas Edition), Ch. 2 Linear Equations and Functions — Lesson 2.1 Represent Relations and Functions §2.1, p. 75 — Guided Practice 4
Tweak it
Every equation in this part has the same shape: a number multiplying the input, and a number added to the result. Drive both of them and watch which feature of the line each one controls.
Parameter explorer
Set the multiplier to three and the added number to negative two, and check that the line matches the one you just drew. Then make the multiplier negative and describe what changes about the line.
\[ y = {m}x + ({b}) \]
The number added is the easiest to read off the picture, because putting zero in for the input kills the first term and leaves that number on its own. It is where the line meets the vertical axis every single time.
The multiplier is the steepness. Doubling it makes the line twice as steep, and changing its sign flips the line from rising to falling, which is why the two examples you graphed point in opposite directions.
Set the multiplier to zero and the line lies flat, which is Guided Practice 2 again: every input sent to the same output. It still passes the vertical line test, so it is still a function.
Lesson 2.3 gives these two numbers their proper names, slope and y-intercept. Nothing about them will be new by then; you will only be learning what to call what you can already see.
Comparison
Fill in the missing table values for two equations at once, and then compare the two bottom rows rather than just the two answers. The comparison is where the pattern lives.
Comparison matrix
| input x | y = −2x − 1 | y = 3x − 2 |
|---|---|---|
| −2 | 3 | -8 |
| −1 | 1 | −5 |
| 0 | -1 | −2 |
| 1 | −3 | 1 |
| 2 | −5 | 4 |
Read down the first column of outputs and the numbers fall by two at every step. Read down the second and they rise by three. That constant step, whatever its size or sign, is what makes both graphs straight.
Now look across a row instead. At the input zero the two equations give negative one and negative two, which are the two heights at which the lines cross the vertical axis, and the numbers sitting on their own in each equation.
Finally notice that the two lines must cross somewhere, because one falls and one rises. Setting the two right-hand sides equal would find exactly where, which is the whole business of Chapter 3.
McDougal Littell Algebra 2 (Texas Edition), Ch. 2 Linear Equations and Functions — Lesson 2.1 Represent Relations and Functions §2.1, p. 77 — Exercises 25 to 33
Prediction
Both equations in this part produced straight lines, which makes it tempting to believe that plotting five points and joining them is always a matter of reaching for a ruler. Commit to an answer before reading on.
Predict first
You substitute five inputs into an equation and plot the five points. Does joining them with a straight line always give the graph?
Correct: No, only if the outputs change by the same step for equal steps in the input
Why: A straight line is what you get when equal steps in the input always produce equal steps in the output. Both equations in this part had that property, so both gave lines. Substituting negative two, negative one, zero, one and two into the square of the input gives four, one, zero, one and four, whose steps are negative three, negative one, one and three, so those five points bend into a parabola and joining them with a ruler would be wrong.
\[ y = x^2 \;\longrightarrow\; 4,\; 1,\; 0,\; 1,\; 4 \]
Work out those five outputs yourself and the steps between them are negative three, negative one, one and three: never equal, always growing. Points spaced like that curve, and the third step of the method asks you to notice before you draw.
This is why the book says to plot enough points to recognise a pattern rather than to plot two points and rule a line. The plotting is the evidence; the line is the conclusion.
For the rest of this chapter every equation will in fact be linear, so the ruler will be right every time. Chapter 4 is where the habit of looking first starts earning its keep.
Section
Part 5
Concept
Writing y for the output has served you well so far, but it hides something. Two different equations both call their output y, so the moment a page carries two rules at once you can no longer say which y you mean.
\[ y = mx + b \qquad\text{becomes}\qquad f(x) = mx + b \]
The new notation fixes that by naming the rule. The letter f is the name of the function, and what sits in the brackets is the input it has been given, so the whole symbol names one specific output.
linear function — A function that can be written in the form y = mx + b, where m and b are constants. Its graph is a line.
Both equations you graphed in Part 4 fit that form: one had the multiplier negative two and the number negative one, the other three and negative two. Both graphs were lines, which is what the definition promises.
The notation is read aloud as the value of f at x, or simply f of x, and it identifies x as the independent variable. Saying of rather than times every time you read it is the cheapest possible protection against the trap two slides from now.
Other letters work just as well. Functions are routinely called g or h, and in an applied problem they are named after the quantity they produce, so a pressure is P and a height is h.
McDougal Littell Algebra 2 (Texas Edition), Ch. 2 Linear Equations and Functions — Lesson 2.1 Represent Relations and Functions §2.1, p. 75 — Linear Functions and function notation
Notation
This single line carries a name, an input, two constants and an output, which is a lot of meaning for eight symbols. Take them one at a time.
Annotate
On: \( f(x) = mx + b \)
The last note contains the definitions of domain and range restated in this notation, and it is worth reading twice. The domain consists of all values of x for which the output is defined, and the range of all the outputs those inputs produce.
Because m and b are constants, telling someone their two values tells them the whole function. That compression is what makes the form worth learning: two numbers describe infinitely many pairs.
A quick sanity check on the form itself. If a rule squares the input, or hides the input under a root, or divides by it, there is no way to write it as a constant times x plus a constant, so it is not linear.
McDougal Littell Algebra 2 (Texas Edition), Ch. 2 Linear Equations and Functions — Lesson 2.1 Represent Relations and Functions §2.1, p. 75 — the reading note on function notation
Picture it
The picture most people find sticks is a machine. The name is painted on the outside, the rule is stamped inside, and the notation is simply a shorthand for a number going in and a number coming out.
Figure (svg): A diagram of a machine: an arrow carrying the input negative four into a box labelled g, the rule five times the input plus eight written inside the box, and an arrow carrying negative twelve out of it.
Reading the diagram left to right: negative four goes into the machine called g, the machine multiplies by five and adds eight, and negative twelve comes out. The single line at the bottom of the picture records all of that.
The machine picture also explains why exactly one output is compulsory. A machine that produced two different things from the same input would be broken, and a machine that produced nothing for an input would simply not accept it.
It explains the domain too. The domain is the set of inputs the machine will accept, and for the functions in this lesson it accepts every real number, because multiplying and adding never fail.
Where the picture stops being enough is with rules that refuse certain inputs, such as dividing by the input, which jams at zero. Those appear in Chapter 8, and the domain becomes something you have to work out rather than assume.
Trap
Asked to simplify, a very common first move treats the brackets as multiplication:
\[ f(x) = 5x + 8 \]
\[ f(x) = f \cdot x \]
From there the working divides both sides by x, cancels the f, and produces nonsense that looks like algebra all the way down.
The brackets do look exactly like the ones that mean multiply elsewhere, so the misreading is understandable.
The brackets in a function name are a slot, not a product. The book says so plainly: the symbol does not mean f times x.
\[ f(-4) = 5(-4) + 8 = -12 \]
Read it aloud as f of negative four and there is nothing left to cancel. The f is a name, and names are never factors.
A number in the slot always means: replace every x on the right by this number. So f of two would be five twos plus eight, which is eighteen, and f of zero would be eight.
The habit that protects you is to say of every time. Students who read the symbol as f of x almost never make this mistake; students who read it silently make it under time pressure.
McDougal Littell Algebra 2 (Texas Edition), Ch. 2 Linear Equations and Functions — Lesson 2.1 Represent Relations and Functions §2.1, p. 75 — the Reading note beside Example 4
Worked example
The question has two halves: decide whether the function is linear, then evaluate it at the input negative four. Do them in that order, because the first is a glance and the second is arithmetic.
\[ f(x) = -x^2 - 2x + 7 \]
Look for the shape of a linear function
Why: a linear function is a constant times x plus a constant, and this has a term in x squared, which no linear function may have.
\[ f(x) = -x^2 - 2x + 7 \quad\text{has an } x^2 \text{ term} \]
So f is not linear, and you can say that without evaluating anything. The squared term is the whole of the evidence.
Write the function, then substitute negative four for x
Why: every x on the right is replaced by the same number, and each one is wrapped in brackets so the signs survive.
\[ f(-4) = -(-4)^2 - 2(-4) + 7 \]
The first term is the one to be careful with. The square is taken first and the minus sign in front is applied afterwards, so negative four squared is sixteen and the term is negative sixteen, not positive sixteen.
Simplify the three terms and add
Why: negative sixteen, plus eight from the second term, plus seven.
\[ f(-4) = -16 + 8 + 7 = -1 \]
Figure (svg): The curve of the function in Example 5 part a, an upside-down parabola, with the points negative four comma negative one and two comma negative one marked at the same height.
Drawn out, the graph is a curve that rises to a peak and falls again, which is why the function is not linear. The marked point is the answer you just computed.
Check with the symmetry of the picture
Why: the curve is symmetric about its highest point at the input negative one, and the input two is the same distance on the other side, so it must give the same output.
\[ f(2) = -(2)^2 - 2(2) + 7 = -4 - 4 + 7 = -1 \]
Two independent routes to negative one is a real check: the arithmetic and the geometry had to agree, and they did.
McDougal Littell Algebra 2 (Texas Edition), Ch. 2 Linear Equations and Functions — Lesson 2.1 Represent Relations and Functions §2.1, p. 75 — Example 5, part (a)
Worked example
The second half of the example uses a different letter for the function and asks exactly the same two questions. Nothing about the method changes with the letter.
\[ g(x) = 5x + 8 \]
Compare the rule with the linear form
Why: a constant multiplying x, and a constant added on, with no square and no root anywhere.
\[ g(x) = 5x + 8 \quad\text{matches}\quad y = mx + b \]
So g is linear, with the multiplier five and the added number eight, and its graph is a line crossing the vertical axis at eight and climbing five units for every one to the right.
Write the function, then substitute negative four
Why: the bracket is what keeps five times negative four from being read as five minus four.
\[ g(-4) = 5(-4) + 8 \]
Simplify
Why: five times negative four is negative twenty, and negative twenty plus eight is negative twelve.
\[ g(-4) = -20 + 8 = -12 \]
Compare this with the other half of the example. Both were evaluated at negative four, and one gave negative one while the other gave negative twelve, which is a reminder that the input alone tells you nothing until you know the rule.
Check by walking the line from a known point
Why: at the input zero the output is eight, and four steps to the left drop the output by five each time, so twenty below eight is negative twelve.
\[ 8 - 4(5) = 8 - 20 = -12 \]
Walking along the line is a check you can run on any linear function in your head, and it uses the multiplier rather than repeating the same substitution.
McDougal Littell Algebra 2 (Texas Edition), Ch. 2 Linear Equations and Functions — Lesson 2.1 Represent Relations and Functions §2.1, p. 75 — Example 5, part (b)
Fill the middle
The commonest evaluation slip is not an arithmetic error but a missing middle line: the input is put in mentally and only the answer is written. Restore the middle line here.
Fill in the blanks
g(x) = 5x + 8 \quad\longrightarrow\quad g(-4) = 5(-4) + 8 = -12
Why: The number in the brackets on the left is the number that goes into every slot on the right, so negative four fills the bracket. Five times negative four is negative twenty, and adding eight gives negative twelve. The middle line is the one that makes the work checkable: with it, anyone can see in a second whether the mistake was in the substitution or in the arithmetic.
Notice how the notation carries the instruction. The negative four written inside the name on the left is the same negative four that lands in the bracket on the right, so the symbol is telling you what to do.
Writing that line also protects the sign. Five times negative four looks unambiguous once the brackets are there, and looks like a subtraction the moment they are dropped.
In the exercise set this discipline is tested with awkward numbers on purpose, such as a function with a fraction in front of x evaluated at fifteen. The middle line is what makes those manageable.
Worked example
Two checkpoints, same two questions, contrasting answers. Run the shape test first on both, then evaluate both at the input negative two.
\[ f(x) = x - 1 - x^3 \qquad\text{and}\qquad g(x) = -4 - 2x \]
Classify each rule
Why: the first has a cube of x in it, so it cannot be a constant times x plus a constant; the second is exactly that, with the two constants written in the other order.
\[ f \text{ is not linear}, \qquad g \text{ is linear} \]
The order of the terms in the second rule is worth a comment. Writing the constant first and the x term second changes nothing: it is still negative two times x plus negative four, so the multiplier is negative two and the added number is negative four.
Evaluate the first at negative two
Why: negative two, minus one, minus the cube of negative two; the cube of negative two is negative eight, and subtracting negative eight adds eight.
\[ f(-2) = -2 - 1 - (-2)^3 = -2 - 1 + 8 = 5 \]
That double negative is the whole difficulty of the first checkpoint. An odd power keeps the sign of its base, so the cube of a negative number is negative, and the minus sign in front of it then flips it back.
Evaluate the second at negative two
Why: negative four minus two times negative two, and two times negative two is negative four, so subtracting it adds four.
\[ g(-2) = -4 - 2(-2) = -4 + 4 = 0 \]
Check the linear one by walking the line
Why: at the input zero the output is negative four, and one step to the left raises the output by two because the multiplier is negative two, which lands on zero.
\[ -4 + 2 = -2 \;\text{at}\; x = -1, \qquad -2 + 2 = 0 \;\text{at}\; x = -2 \]
The non-linear one has no such shortcut, which is a practical difference worth noticing: linear functions can be walked, everything else must be substituted.
McDougal Littell Algebra 2 (Texas Edition), Ch. 2 Linear Equations and Functions — Lesson 2.1 Represent Relations and Functions §2.1, p. 75 — Guided Practice 5 and 6
Comparison
Six functions from the exercise set, each with one input to evaluate at. Decide the shape question by eye, then fill in the missing outputs, writing each substitution down before you type a number.
Comparison matrix
| function | linear? | input | output |
|---|---|---|---|
| f(x) = x + 15 | yes | 8 | 23 |
| f(x) = x² + 1 | no | −3 | 10 |
| f(x) = |x| + 10 | no | −4 | 14 |
| f(x) = 6 | yes | 2 | 6 |
| g(x) = x³ − 2x² + 5x − 8 | no | −5 | −208 |
| h(x) = 7 − (2/3)x | yes | 15 | -3 |
The constant rule is the surprising row. It has no x on the right at all, yet it is linear: take the multiplier to be zero and the added number to be six, and the form fits. Its graph is the flat line at a height of six.
The absolute value rule is the other one worth arguing about. It is not linear, because its graph is two rays meeting in a sharp corner rather than one straight line, and Lesson 2.7 is devoted to it.
Work the cubic row through on paper even though its answer is given. The cube of negative five is negative one hundred and twenty-five, twice the square is fifty to be subtracted, five times negative five takes away twenty-five more, and eight more leaves negative two hundred and eight.
The last row is where the middle line earns its keep: two thirds of fifteen is ten, and seven minus ten is negative three. Done in the head, that one slips to positive three surprisingly often.
McDougal Littell Algebra 2 (Texas Edition), Ch. 2 Linear Equations and Functions — Lesson 2.1 Represent Relations and Functions §2.1, p. 78 — Exercises 34 to 39
Concept
Every function in Example 5 accepts any real number, because multiplying, squaring and adding never fail. A function describing something physical is different: the situation itself rules inputs out.
A depth below zero would mean a diver above the water, an age of negative five would mean a season before a player was born, and a femur length of two inches belongs to no adult. None of those is an arithmetic failure; they are failures of meaning.
\[ P(d) = 1 + 0.03d, \qquad 0 \le d \le 130 \]
So a modelling question asks for a reasonable domain, and reasonable means the inputs the situation actually allows. Once you have fixed the domain, the range follows from it rather than being chosen separately.
For a linear rule the range is easy to find: the outputs march steadily in one direction, so the smallest and largest inputs give the smallest and largest outputs. Work out the two ends and everything between them is included.
Getting this the wrong way round is a common loss of marks. You cannot pick a range you like and then hope the domain fits; the domain is decided by the situation, and the range is whatever the rule then produces.
McDougal Littell Algebra 2 (Texas Edition), Ch. 2 Linear Equations and Functions — Lesson 2.1 Represent Relations and Functions §2.1, p. 76 — Domains in Real Life
Worked example
A diver descends to a depth of one hundred and thirty feet. The pressure in atmospheres at a depth of d feet is given by the rule below. Graph it, give a reasonable domain and range, and find the pressure at thirty-three feet.
\[ P(d) = 1 + 0.03d \]
Decide the domain from the situation
Why: the depth runs from the surface down to one hundred and thirty feet and no further, so those two numbers are the ends.
\[ 0 \le d \le 130 \]
Notice the letter. The function is called P because it produces a pressure, and its input is called d because it is a depth. Naming them after the quantities is what makes an applied formula readable a week later.
Evaluate at both ends of the domain
Why: the smallest input gives the smallest pressure and the largest gives the largest, because the rule adds a positive multiple of the depth.
\[ P(0) = 1, \qquad P(130) = 1 + 0.03(130) = 4.9 \]
State the range
Why: every output between those two ends occurs, because the depth passes through every value on the way down.
\[ 1 \le P(d) \le 4.9 \]
Figure (svg): A straight line rising from one atmosphere at the surface to four point nine atmospheres at a depth of a hundred and thirty feet, with the point at thirty-three feet marked at about two atmospheres.
The graph is a line segment rather than a full line, and the two blunt ends are the domain drawn. One atmosphere at the surface is the weight of the air alone; the water then adds three hundredths of an atmosphere per foot.
Check the value at thirty-three feet against the graph
Why: three hundredths of thirty-three is ninety-nine hundredths, so the pressure is one point nine nine, about two atmospheres, which is exactly where the marked point sits on the line.
\[ P(33) = 1 + 0.03(33) = 1.99 \approx 2 \]
About thirty-three feet of sea water doubles the pressure, which is a fact worth carrying: every further thirty-three feet or so adds another atmosphere.
McDougal Littell Algebra 2 (Texas Edition), Ch. 2 Linear Equations and Functions — Lesson 2.1 Represent Relations and Functions §2.1, p. 76 — Example 6
Worked example
In 1960 the deep-sea vessel Trieste descended to an estimated thirty-five thousand eight hundred feet. The rule does not change; only the stretch of it that is being used does.
\[ P(d) = 1 + 0.03d \]
Write the new domain from the new situation
Why: the descent still starts at the surface, so only the far end moves.
\[ 0 \le d \le 35\,800 \]
This is the whole point of separating the rule from its domain. Nothing about the formula needed rewriting for a dive two hundred and seventy times deeper; only the two numbers describing how far it is being pushed.
Evaluate at the deep end
Why: three hundredths of thirty-five thousand eight hundred is one thousand and seventy-four, and one more gives the pressure at the bottom.
\[ P(35\,800) = 1 + 0.03(35\,800) = 1075 \]
State the range
Why: the pressure climbs steadily all the way down, so it takes every value between the surface reading and the bottom reading.
\[ 1 \le P(d) \le 1075 \]
Over a thousand atmospheres is more than a thousand times the pressure you are under right now, which is why the vessel needed a steel sphere for its crew. The arithmetic is trivial and the physical meaning is not.
Check the answer against the shallower dive
Why: the depth is about two hundred and seventy-five times the diver's one hundred and thirty feet, and the water part of the pressure has grown by the same factor, from three point nine to one thousand and seventy-four.
\[ \dfrac{1074}{3.9} \approx 275 = \dfrac{35\,800}{130} \]
Checking that two ratios match is a strong test of a linear model, because only a rule with a constant multiplier behaves that way.
McDougal Littell Algebra 2 (Texas Edition), Ch. 2 Linear Equations and Functions — Lesson 2.1 Represent Relations and Functions §2.1, p. 76 — Guided Practice 7
Real world
Anthropologists estimate a person's height from bone lengths, and the rule is linear. It is valid only for femur lengths between fifteen and twenty-four inches, which is a domain decided by the data the model was built from, not by arithmetic.
\[ h(l) = 1.95l + 28.7, \qquad 15 \le l \le 24 \]
Discussion prompt
Find the range that goes with that domain. Then estimate the height of a woman whose femur is fifteen and a half inches long, and estimate the femur length of a woman who is five feet eleven inches tall.
Running a function backwards like that is Lesson 6.4's inverse, arriving early. It is also exactly the rearranging of Lesson 1.4, which is why that lesson insisted the skill would keep returning.
Notice the two different checks the answers invite. The first answer is checked by seeing that it lies between the two ends of the range; the second by seeing that its input lies inside the domain.
McDougal Littell Algebra 2 (Texas Edition), Ch. 2 Linear Equations and Functions — Lesson 2.1 Represent Relations and Functions §2.1, p. 78 — Exercise 47
Estimation
Two geometry exercises use function notation for volumes. Before computing anything, estimate, because an estimate you have committed to makes a wrong answer impossible to ignore.
\[ V(s) = s^3 \qquad\text{and}\qquad V(r) = \tfrac43 \pi r^3 \]
Predict first
The volume of a cube of edge four is sixty-four. Roughly how many times bigger is the volume of a sphere of radius six?
Correct: about fourteen times as big
Why: The sphere's volume is four thirds of pi times the cube of six, which is four thirds of pi times two hundred and sixteen, or two hundred and eighty-eight times pi, about nine hundred and five. Dividing by sixty-four gives just over fourteen. Cubing is what makes the gap so large: the radius is only half as big again as the edge, but cubing turns that into more than three times, and the four thirds of pi multiplies it by about four point two more.
\[ V(4) = 4^3 = 64 \qquad\text{and}\qquad V(6) = \tfrac43\pi(6)^3 = 288\pi \approx 904.78 \]
The notation is doing real work in those two lines. Both functions are called V, and without the brackets naming the input there would be no way to tell a cube's volume rule from a sphere's on the same page.
Saying what a value means is part of the answer to these exercises. The first says that a cube with edges of four units holds sixty-four cubic units; the second that a sphere of radius six holds about nine hundred and five.
Neither function is linear, and the estimate is where you feel why. Doubling a linear input doubles the output; doubling a cubed input multiplies the output by eight, which is why volumes grow so much faster than lengths.
McDougal Littell Algebra 2 (Texas Edition), Ch. 2 Linear Equations and Functions — Lesson 2.1 Represent Relations and Functions §2.1, p. 78 — Exercises 44 and 45
Section
Part 6
Pattern
Every question in this lesson is answered by looking at one specific feature and reading off its verdict. The table below is the whole lesson compressed into four looks.
Figure (svg): A flow diagram of four rows. Each row has a box naming the feature to inspect, an arrow, and a box giving the verdict that feature delivers.
Read the diagram from the left. You are always being asked to inspect something concrete, never to recall an opinion, and each inspection gives a yes or no with no room for argument.
The line most often skipped is the fourth, because linear and function get confused. Linear is a much stronger condition: every linear function is a function, and most functions are not linear.
The other thing worth keeping is the direction of the rule. Outputs may repeat as often as they like; inputs may not repeat with different partners. Almost every wrong answer in this lesson is that sentence remembered backwards.
Check
Run the Part 2 check on each option: read only the first coordinates, and look for one that appears twice with different partners.
Check your understanding
Which of these relations is a function?
Answer: B
Why: A relation is a function when no input has two different outputs. Only one of these has five different first coordinates, namely three, zero, one, negative two and two, so each input has exactly one output. It also has two pairs ending in negative one, which is a repeated output and is always allowed.
The winning relation is the one people hesitate over, because it has a repeated output and repeated anything feels wrong. Repeated outputs are the one repetition the definition permits.
The last option is worth recognising on sight. A list where every input carries a positive and a negative partner is a square-root relation, and it fails for that reason every single time.
If any of these took you more than a few seconds, the likely cause is reading whole pairs rather than scanning one column. Cover the second coordinates with a finger and the answer comes much faster.
Confirm the winner by drawing it in your head. Its five points sit at five different horizontal positions, so no vertical line could meet two of them, which is the same verdict reached by the graph route.
Check
This one tests whether domain means what you think it means, and whether you remember that it is a set. Read down the first coordinates, and write each value once.
Check your understanding
What is the domain of the relation with the pairs (−4, 2), (−1, −3), (1, 4), (1, −3) and (2, 1)?
Answer: B
Why: The domain is the set of first coordinates: negative four, negative one, one, one again and two. The input one is used by two different pairs, so it is written once, which leaves four values. Notice in passing that this same repeat means the relation is not a function, since the input one gives both four and negative three.
Every wrong option here is a real confusion rather than a random list. One is the range, one is a mixture, and one is everything at once, which are the three ways this question is usually got wrong.
The repeated input is doing double duty in this question. It shortens the domain from five values to four, and it is also the thing that stops the relation being a function, which the next question on a test would very likely ask.
A habit worth forming: after writing a domain, count it against the number of pairs. If the counts differ, an input repeats, and you already know what that means.
The range here, for completeness, is negative three, one, two and four, which also has four members because negative three appears twice as an output. That repetition, unlike the other one, breaks nothing.
Check
One substitution, with the two classic traps waiting: the sign of a negative input, and the idea that the brackets mean multiply.
Check your understanding
If g(x) = −4 − 2x, what is g(−3)?
Answer: A
Why: Put negative three into every slot: negative four minus two times negative three. Two times negative three is negative six, and subtracting negative six adds six, so the answer is negative four plus six, which is two. You can check it by walking the line: at an input of zero the output is negative four, and the multiplier is negative two, so three steps to the left raise the output by six.
The sign trap is the one that actually costs marks. A negative multiplier meeting a negative input gives a positive product, and that product is then being subtracted, so the two negatives combine into an increase.
The last option is there because it is a genuine belief rather than a joke. Reading the notation aloud as g of negative three, every time, is what stops it forming in the first place.
Note that this function is linear, with multiplier negative two and constant negative four, so its graph is a falling line crossing the vertical axis at negative four. Every answer you give should be checkable against that picture.
Try one more for yourself before moving on: the same rule at an input of two gives negative four minus four, which is negative eight, and that point sits two steps right and four lower than the crossing point, exactly as the multiplier promises.
Explain it to yourself
One idea has carried this whole lesson and it is the one most likely to fade by next week. Writing it in your own sentences, before reading the version below, is what fixes it.
Discussion prompt
Explain in two or three sentences why a relation may send two different inputs to the same output but may not send one input to two different outputs. Then say what that asymmetry looks like on a mapping diagram, and what it looks like on a graph.
If your explanation leaned on the words allowed and not allowed, try writing it again using the word answer instead. The asymmetry is not a convention someone chose; it follows from wanting a question to have one answer.
A good test of whether it has stuck: can you give a real-life pairing that is a function one way round and not the other? Pupils and birthdays, orders and postage charges, and people and passport numbers are all candidates.
Try it out loud on somebody, ideally somebody a year behind you. Explaining why the vertical line test is the definition in disguise, rather than a separate rule to memorise, is the clearest sign that you have the idea rather than the words.
Exit ticket
One relation, four questions, each from a different part of the lesson. Work through it in order and write the reason beside each answer, not just the answer.
\[ \{(-3,5),\,(0,-1),\,(2,5),\,(4,3)\} \]
Discussion prompt
Write the domain and the range of this relation. Say whether it is a function and name the feature that decided it. Say what a vertical line at negative three would meet. Finally, decide whether the pair with first coordinate two and second coordinate one could be added without breaking it.
The third question is there to make you connect two of the parts. The pairs route and the graph route are not two methods with two answers; they are one method looked at from two sides, and they must always agree.
The fourth is the counterexample skill from Part 2, pointed at a specific pair rather than left open. Notice that the same pair with second coordinate five, matching what the input two already gives, would have been harmless.
If you want one more repetition, ask yourself which single pair you could add that would leave the domain unchanged and the relation still a function. The answer is none, apart from repeating a pair you already have.
Recap
One object, four pictures, and one rule that decides everything. Relations pair inputs with outputs; functions are the relations for which each input has exactly one output; linear functions are the ones whose rule is a constant times the input plus a constant.
| given this | look at | and you can say |
|---|---|---|
| a list of pairs | the first coordinates | the domain, and whether an input repeats |
| a table | the top row against the bottom | the same, laid out in columns |
| a mapping diagram | the arrows leaving each input | function or not, at a glance |
| a graph | a vertical line swept across it | function or not, by counting crossings |
| an equation | whether it is mx + b | linear or not, and the shape of the graph |
\[ f(x) = mx + b \]
That single line is the destination of the lesson. It names the rule, marks the slot the input drops into, and carries the two constants that fix the whole line, and it is the form the next six lessons take apart.
Two things to carry forward above all else. Repeated outputs are harmless and repeated inputs are fatal, and the brackets in a function name are a slot rather than a multiplication. Almost every error in this topic is one of those two sentences remembered backwards.
Lesson 2.2 takes the multiplier in front of x and gives it a name, slope, along with a way to measure it from any two points. Lesson 2.3 does the same for the constant, and after that every straight line in the book can be written down from a picture.
The extension after this lesson adds one more distinction you already half have: a function whose graph is separate dots is called discrete, and one whose graph is an unbroken line or curve is called continuous. The five-point relations here are discrete; the diver's pressure is continuous.
OpenStax Algebra and Trigonometry 2e, §3.1 Functions and Function Notation §3.2 — domain and range, with the same two-set reading, in the second source
Want this taught 1-on-1? Alexander tutors Algebra 2 — $55/session, free consultation.