Lesson 12
NYS COMMON CORE MATHEMATICS CURRICULUM
M3
ALGEBRA I
Lesson 12: The Graph of the Equation ๐ = ๐(๐)
Classwork
In Module 1, you graphed equations such as 4๐ฅ + ๐ฆ = 10 by plotting the points on the Cartesian coordinate plane that
corresponded to all of the ordered pairs of numbers (๐ฅ, ๐ฆ) that were in the solution set. We called the geometric figure
that resulted from plotting those points in the plane the โgraph of the equation in two variables.โ
In this lesson, we extend this notion of the graph of an equation to the graph of ๐ฆ = ๐(๐ฅ) for a function ๐. In doing so,
we use computer thought code to describe the process of generating the ordered pairs in the graph of ๐ฆ = ๐(๐ฅ).
Example 1
In the previous lesson, we studied a simple type of instruction that computers perform called a for-next loop. Another
simple type of instruction is an if-then statement. Below is example code of a program that tests for and prints โTrueโ
when ๐ฅ + 2 = 4; otherwise it prints โFalse.โ
Declare ๐ integer
For all ๐ from 1 to 4
If ๐ + ๐ = ๐ then
Print True
else
Print False
End if
Next ๐
The output of this program code is:
False
True
False
False
Notice that the if-then statement in the code above is really just testing whether each number in the loop is in the
solution set!
Lesson 12:
Date:
The Graph of the Equation ๐ฆ = ๐(๐ฅ)
7/28/17
© 2014 Common Core, Inc. Some rights reserved. commoncore.org
S.70
This work is licensed under a
Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.
Lesson 12
NYS COMMON CORE MATHEMATICS CURRICULUM
M3
ALGEBRA I
Example 2
Perform the instructions in the following programming code as if you were a computer and your paper was the
computer screen.
Declare ๐ integer
Initialize ๐ฎ as {}
For all ๐ from 0 to 4
If ๐๐ โ ๐๐ + ๐ = ๐ then
Append ๐ to ๐ฎ
else
Do NOT append ๐ to ๐ฎ
End if
Next ๐
Print ๐ฎ
Output: {1, 3}
Discussion
Compare the for-next/if-then code above to the following set-builder notation we used to describe solution sets in
Module 1:
{๐ฅ integer | 0 โค ๐ฅ โค 4 and ๐ฅ 2 โ 4๐ฅ + 5 = 2}.
Check to see that the set-builder notation also generates the set {1, 3}. Whenever you see set-builder notation to
describe a set, a powerful way to interpret that notation is to think of the set as being generated by a program like the
for-next or if-then code above.
Lesson 12:
Date:
The Graph of the Equation ๐ฆ = ๐(๐ฅ)
7/28/17
© 2014 Common Core, Inc. Some rights reserved. commoncore.org
S.71
This work is licensed under a
Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.
Lesson 12
NYS COMMON CORE MATHEMATICS CURRICULUM
M3
ALGEBRA I
Exploratory Challenge 1
Next we write code that generates a graph of a two-variable equation ๐ฆ = ๐ฅ(๐ฅ โ 2)(๐ฅ + 2) for ๐ฅ in {โ2, โ1, 0, 1, 2} and
๐ฆ in {โ3, 0, 3}. The solution set of this equation is generated by testing each ordered pair (๐ฅ, ๐ฆ) in the set,
{(โ2, โ3), (โ2,0), (โ2,3), (โ1, โ3), (โ1,0), (โ1,3), โฆ , (2, โ3), (2,0), (2,3)},
to see if it is a solution to the equation ๐ฆ = ๐ฅ(๐ฅ โ 2)(๐ฅ + 2). Then the graph is just the plot of solutions in the Cartesian
plane. We can instruct a computer to find these points and plot them using the following program.
Declare ๐ and ๐ integers
Initialize ๐ฎ as {}
For all ๐ in {โ๐, โ๐, ๐, ๐, ๐}
For all ๐ in {โ๐, ๐, ๐}
If ๐ = ๐(๐ โ ๐)(๐ + ๐) then
Append (๐, ๐) to ๐ฎ
else
Do NOT append (๐, ๐) to ๐ฎ
End if
Next ๐
Next ๐
Print ๐ฎ
Plot ๐ฎ
a.
Loops through each ๐ for
๐ = โ๐, then for ๐ = โ๐,
and so on (see arrows in
table below).
Use the table below to record the decisions a computer would make when following the program instructions
above. Fill in each cell with โYesโ or โNoโ depending on whether the ordered pair (๐ฅ, ๐ฆ) would be appended
or not. (The step where ๐ฅ = โ2 has been done for you.)
๐ฅ = โ2
b.
Tests whether (๐, ๐)
is a solution.
๐ฆ=3
No
๐ฆ=0
Yes
๐ฆ = โ3
No
๐ฅ = โ1
๐ฅ=0
๐ฅ=1
๐ฅ=2
What would be the output to the โPrint ๐บโ command? (The first ordered pair is listed for you.)
Output:
{ (โ2,0)
, __________, __________, __________, __________ }
Lesson 12:
Date:
The Graph of the Equation ๐ฆ = ๐(๐ฅ)
7/28/17
© 2014 Common Core, Inc. Some rights reserved. commoncore.org
S.72
This work is licensed under a
Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.
Lesson 12
NYS COMMON CORE MATHEMATICS CURRICULUM
M3
ALGEBRA I
c.
Plot the solution set ๐บ in the Cartesian plane. (The first ordered pair in ๐บ has been plotted for you.)
Exploratory Challenge 2
The program code in Exercise 3 is a way to imagine how set-builder notation generates solution sets and figures in the
plane. Given a function ๐(๐ฅ) = ๐ฅ(๐ฅ โ 2)(๐ฅ โ 3) with domain and range all real numbers, a slight modification of the
program code above can be used to generate the graph of the equation ๐ฆ = ๐(๐ฅ):
{(๐ฅ, ๐ฆ) | ๐ฅ real and ๐ฆ = ๐(๐ฅ)}.
Even though the code below cannot be run on a computer, we can run the following thought code in our minds:
Declare ๐ and ๐ real
Let ๐(๐) = ๐(๐ โ ๐)(๐ + ๐)
Initialize ๐ฎ as {}
For all ๐ in the real numbers
For all ๐ in the real numbers
If ๐ = ๐(๐) then
Append (๐, ๐) to ๐ฎ
else
Do NOT append (๐, ๐) to ๐ฎ
End if
Next ๐
Next ๐
Plot ๐ฎ
Lesson 12:
Date:
Tests whether (๐, ๐)
is a solution to
๐ = ๐(๐ โ ๐)(๐ + ๐).
For each ๐-value, the code
loops through all ๐-values.
The Graph of the Equation ๐ฆ = ๐(๐ฅ)
7/28/17
© 2014 Common Core, Inc. Some rights reserved. commoncore.org
S.73
This work is licensed under a
Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.
Lesson 12
NYS COMMON CORE MATHEMATICS CURRICULUM
M3
ALGEBRA I
a.
Plot ๐บ on the Cartesian plane (the figure drawn is called the graph of ๐ฆ = ๐(๐ฅ)).
b.
Describe how the thought code is similar to the set-builder notation {(๐ฅ, ๐ฆ) | ๐ฅ real and ๐ฆ = ๐(๐ฅ)}.
c.
A relative maximum for the function ๐ occurs at the ๐ฅ-coordinate of (โ โ3,
3
2
2
16
9
โ3). Substitute this point
into the equation ๐ฆ = ๐ฅ(๐ฅ โ 4) to check that it is a solution to ๐ฆ = ๐(๐ฅ), and then plot the point on your
graph.
Lesson 12:
Date:
The Graph of the Equation ๐ฆ = ๐(๐ฅ)
7/28/17
© 2014 Common Core, Inc. Some rights reserved. commoncore.org
S.74
This work is licensed under a
Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.
Lesson 12
NYS COMMON CORE MATHEMATICS CURRICULUM
M3
ALGEBRA I
2
16
d.
A relative minimum for the function ๐ occurs at the ๐ฅ-coordinate of ( โ3, โ
โ3). A similar calculation as
3
9
you did above shows that this point is also a solution to ๐ฆ = ๐(๐ฅ). Plot this point on your graph.
e.
Look at your graph. On what interval(s) is the function ๐ decreasing?
f.
Look at your graph. On what interval(s) is the function ๐ increasing?
Lesson 12:
Date:
The Graph of the Equation ๐ฆ = ๐(๐ฅ)
7/28/17
© 2014 Common Core, Inc. Some rights reserved. commoncore.org
S.75
This work is licensed under a
Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.
Lesson 12
NYS COMMON CORE MATHEMATICS CURRICULUM
M3
ALGEBRA I
Lesson Summary
๏ง
Graph of ๐ = ๐(๐): Given a function ๐ whose domain ๐ท and the range are subsets of the real numbers,
the graph of ๐ฆ = ๐(๐ฅ) is the set of ordered pairs (๐ฅ, ๐ฆ) in the Cartesian plane given by
{(๐ฅ, ๐ฆ) | ๐ฅ โ ๐ท and ๐ฆ = ๐(๐ฅ)}.
When we write {(๐ฅ, ๐ฆ) | ๐ฆ = ๐(๐ฅ)} for the graph of ๐ฆ = ๐(๐ฅ), it is understood that the domain is the
largest set of real numbers for which the function ๐ is defined.
๏ง
The graph of ๐ is the same as the graph of the equation ๐ฆ = ๐(๐ฅ).
๏ง
Increasing/Decreasing: Given a function ๐ whose domain and range are subsets of the real numbers and
๐ผ is an interval contained within the domain, the function is called increasing on the interval ๐ผ if
๐(๐ฅ1 ) < ๐(๐ฅ2 ) whenever ๐ฅ1 < ๐ฅ2 in ๐ผ.
It is called decreasing on the interval ๐ผ if
๐(๐ฅ1 ) > ๐(๐ฅ2 ) whenever ๐ฅ1 < ๐ฅ2 in ๐ผ.
Problem Set
1.
Perform the instructions in the following programming code as if you were a computer and your paper was the
computer screen.
Declare ๐ integer
For all ๐ from 1 to 6
If ๐๐ โ ๐ = ๐ then
Print True
else
Print False
End if
Next ๐
Lesson 12:
Date:
The Graph of the Equation ๐ฆ = ๐(๐ฅ)
7/28/17
© 2014 Common Core, Inc. Some rights reserved. commoncore.org
S.76
This work is licensed under a
Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.
Lesson 12
NYS COMMON CORE MATHEMATICS CURRICULUM
M3
ALGEBRA I
2.
Answer the following questions about the computer programming code.
Declare ๐ integer
Initialize ๐ฎ as {}
For all ๐ from โ3 to 3
If ๐๐ + ๐โ๐ =
๐๐
๐
then
Append ๐ to ๐ฎ
else
Do NOT append ๐ to ๐ฎ
End if
Next ๐
Print ๐ฎ
3.
a.
Perform the instructions in the programming code as if you were a computer and your paper was the
computer screen.
b.
Write a description of the set ๐บ using set-builder notation.
Answer the following questions about the computer programming code.
Declare ๐ and ๐ integers
Initialize ๐ฎ as {}
For all ๐ in {๐, ๐, ๐, ๐}
For all ๐ in {๐, ๐, ๐, ๐}
If ๐ = โ๐ + ๐๐๐ โ ๐๐๐๐ + ๐๐๐ then
Append (๐, ๐) to ๐ฎ
else
Do NOT append (๐, ๐) to ๐ฎ
End if
Next ๐
Next ๐
Plot ๐ฎ
a.
Use the table below to record the decisions a computer would make when following the program instructions
above. Fill in each cell with โYesโ or โNoโ depending on whether the ordered pair (๐ฅ, ๐ฆ) would be appended
or not.
๐ฅ=0
๐ฅ=1
๐ฅ=2
๐ฅ=3
๐ฆ=3
๐ฆ=2
๐ฆ=1
๐ฆ=0
Lesson 12:
Date:
The Graph of the Equation ๐ฆ = ๐(๐ฅ)
7/28/17
© 2014 Common Core, Inc. Some rights reserved. commoncore.org
S.77
This work is licensed under a
Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.
Lesson 12
NYS COMMON CORE MATHEMATICS CURRICULUM
M3
ALGEBRA I
b.
4.
Plot the set ๐บ in the Cartesian plane.
Answer the following questions about the thought code.
Declare ๐ and ๐ real
Let ๐(๐) = โ๐๐ + ๐
Initialize ๐ฎ as {}
For all ๐ in the real numbers
For all ๐ in the real numbers
If ๐ = ๐(๐) then
Append (๐, ๐) to ๐ฎ
else
Do NOT append (๐, ๐) to ๐ฎ
End if
Next ๐
Next ๐
Plot ๐ฎ
a.
What is the domain of the function ๐(๐ฅ) = โ2๐ฅ + 8?
b.
What is the range of the function ๐(๐ฅ) = โ2๐ฅ + 8?
c.
Write the set ๐บ generated by the thought code in set-builder notation.
d.
Plot the set ๐บ to obtain the graph of the function ๐(๐ฅ) = โ2๐ฅ + 8.
e.
The function ๐(๐ฅ) = โ2๐ฅ + 8 is clearly a decreasing function on the domain of the real numbers. Show that
the function satisfies the definition of decreasing for the points 8 and 10 on the number line, i.e., show that
since 8 < 10, then ๐(8) > ๐(10).
Lesson 12:
Date:
The Graph of the Equation ๐ฆ = ๐(๐ฅ)
7/28/17
© 2014 Common Core, Inc. Some rights reserved. commoncore.org
S.78
This work is licensed under a
Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.
Lesson 12
NYS COMMON CORE MATHEMATICS CURRICULUM
M3
ALGEBRA I
5.
6.
Sketch the graph of the functions defined by the following formulas and write the graph of ๐ฆ = ๐(๐ฅ) as a set using
set-builder notation. (Hint: For each function below you can assume the domain is all real numbers.)
1
2
a.
๐(๐ฅ) = โ ๐ฅ + 6
b.
๐(๐ฅ) = ๐ฅ 2 + 3
c.
๐(๐ฅ) = ๐ฅ 2 โ 5๐ฅ + 6
d.
๐(๐ฅ) = ๐ฅ 3 โ ๐ฅ
e.
๐(๐ฅ) = โ๐ฅ 2 + ๐ฅ โ 1
f.
๐(๐ฅ) = (๐ฅ โ 3)2 + 2
g.
๐(๐ฅ) = ๐ฅ 3 โ 2๐ฅ 2 + 3
Answer the following questions about the set:
{(๐ฅ, ๐ฆ) | 0 โค ๐ฅ โค 2 and ๐ฆ = 9 โ 4๐ฅ 2 }
a.
b.
7.
The equation can be rewritten in the form ๐ฆ = ๐(๐ฅ) where ๐(๐ฅ) = 9 โ 4๐ฅ 2 . What are the domain and range
of the function ๐ specified by the set?
i.
Domain:
ii.
Range:
Write thought code like in Problem 4 that will generate and then plot the set.
Answer the following about the graph of a function below.
a.
Which points (A, B, C, or D) are
relative maxima?
b.
Which points (A, B, C, or D) are
relative minima?
c.
Name any interval where the
function is increasing.
d.
Name any interval where the
function is decreasing.
Lesson 12:
Date:
The Graph of the Equation ๐ฆ = ๐(๐ฅ)
7/28/17
© 2014 Common Core, Inc. Some rights reserved. commoncore.org
S.79
This work is licensed under a
Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.
© Copyright 2026 Paperzz