On Tues., Mr. Varner's math class filed into the room, and gawked at the message on the whiteboard: "The first student to add together all of the numbers between 1 and 100 wins four free movie tickets to the theater next Friday!" Everyone grabbed a pencil and started adding: 1 + 2 + 3 + 4 + 5... No one was further than about 20 when Brian walked in, late as usual, looked at the white board for about 15 secs, and wrote: "5050" on the bottom. The surprised Mr. Varner handed Brian the tickets and told him to take his seat.
How did he come up with the answer so fast?
Watch This
Coach McCullers: Function Families
Guidance
In this Concept we will examine several “families” of functions. A family of functions is a set of functions whose equations have a similar form. The “parent” of the family is the equation in the family with the simplest form. For example, y = x^{2} is a parent to other functions, such as y = 2x^{2}  5x + 3.
Linear Function Family
An equation is a member of the linear function family if it contains no powers of \begin{align*}x\end{align*} greater than 1. For example, \begin{align*}y = 2x\end{align*} and \begin{align*}y = 2\end{align*} are linear equations, while \begin{align*}y = x^2\end{align*} and \begin{align*}y = \frac{1}{x}\end{align*} are nonlinear.
Linear equations are called linear because their graphs form straight lines. As you may recall from your earlier studies of algebra, we can describe any line by its average rate of change, or slope, and its yintercept. (In fact, it is the constant slope of a line that makes it a line!) These aspects of a line are easiest to identify if the equation of the line is written in slopeintercept form, or y = mx + b. The slope of the line is equal to the coefficient m, and the yintercept of the line is the point (0, b).
Note that a line can be a member of a family such as the family of "linear functions", and also a member of a subfamily of linear functions with the same slope. The graphs of this subfamily will be a set of parallel lines. One particular subfamily of linear functions is the constant function subfamily. The line x = 5 is a constant function, as the function values are constant, or unchanging. The constant functions “subfamily” of linear functions is composed of functions whose graphs are horizontal lines.
Absolute Value Function Family
Let’s first consider the parent of the family: y = x. Because the absolute value of a number is that number’s distance from zero, all of the function values of an absolute value function will be nonnegative. If x = 0, then y = 0 = 0. If x is positive, then the function value is equal to x. For example, the graph contains the points (1, 1), (2, 2), (3, 3), etc. However, when x is negative, the function value will be the opposite of the number. For example, the graph contains the points (1, 1), (2, 2), (3, 3), etc. As you can see in the graph below, the absolute value function forms a “V” shape.
There are two important things to note about the graph of this kind of function. First, the absolute value graph has a vertex (a highest or lowest point) and a line of symmetry (a line that splits the function into equal and opposite 'halves'). For example, the graph of y = x has its vertex at (0, 0) and it is symmetric across the yaxis. Second, note that the graph is not curved, but composed of two straight portions. Every absolute value graph will take this shape, as long as the expression inside the absolute value is linear.
PieceWise Defined Functions
Consider again the function y = x. For positive x values, the graph resembles the identity function y = x. For negative x values, the graph resembles the function y = x. We can express this relationship by defining the absolute value function in two pieces:
\begin{align*}f(x) = \begin{cases} x, x < 0\\ x, x \ge 0\\ \end{cases}\end{align*}
We can read this notation as: the function values are equal to x if x is negative. The function values are equal to x if x is 0 or positive.
A piecewise defined function does not have to represent a function that can already be written as a single equation, such as the absolute value function. For example, one “piece” may be from one function family, while another piece is from a different function family.
Example A
Identify the slope and the yintercept of each line:
a. \begin{align*}y=\frac{2}{3}x1\end{align*}  b. \begin{align*}y=5\end{align*}  c. \begin{align*}x=2\end{align*}  d. \begin{align*}y=\frac{2}{3}x+3\end{align*} 

Solution:
 a. \begin{align*}y=\frac{2}{3}x1\end{align*}

 This line has slope (2/3) and the yintercept is the point (0, 1).
 b. \begin{align*}y=5\end{align*}

 This is a horizontal line. The slope is 0, and the yintercept is (0,5).
 c. \begin{align*}x=2\end{align*}

 This is a vertical line. The slope is undefined, and the line does not cross the yaxis. (Note that this line is not a function!)
 d. \begin{align*}y=\frac{2}{3}x+3\end{align*}

 The slope of this line is 2/3, and the yintercept is the point (0, 3).
Example B
Graph the following: \begin{align*}y=2x1\end{align*} and \begin{align*}y=2x^2 1\end{align*}
Solution:
The graph of \begin{align*}y=2x1\end{align*} makes a “V” shape, much like \begin{align*}y=x\end{align*}
The function inside the absolute value, 2x+1, is linear, so the graph is composed of straight lines.
The graph of \begin{align*}y=2x^21\end{align*} is curved, and it does not have a single vertex, but two “cusps.”
The function inside the absolute value is NOT linear, therefore the graph contains curves.
Example C
Sketch a graph of the function
\begin{align*}f(x) = \begin{cases} x^2, x < 2\\ x + 3, x \ge 2\\ \end{cases}\end{align*}
Solution:
It is important to note that the pieces of a piecewise defined function may or may not meet up. For example, in the graph of f(x) above, the function value is 4 at x = 2, but the piece of the graph that is defined by x + 3 is headed to the y value of 1. Therefore the two pieces do not meet.
Concept question wrapup Brian recognized that he didn't need to add each of the numbers individually, only the pairs: 100 + 0 = 100, so does 99 + 1, and 98 + 2, and so on. Since there are 50 pairs of 100, that adds up to 5000. The only number without a pair is 50, so it gets added to the total: 5050. Function families represent this same sort of timesaver. By recognizing common bits of information and combining them in different ways, we can 'automate' some very complexseeming processes. There is a (very) detailed exploration of this trick at http://betterexplained.com/articles/techniquesforaddingthenumbers1to100/. 

>
Guided Practice
Questions
 1) Find the xintercepts of the function: \begin{align*}f(x) = 8x  7  64\end{align*}
 2) What is the graph of \begin{align*}y = x\end{align*}? How is that graph related to the graph of \begin{align*}y = axh + k\end{align*}?
 3) What happens to the graph of \begin{align*}y = x\end{align*} when the equation changes to \begin{align*}y = x  5\end{align*}?
 4) What is the yintercept of the graph of the function: \begin{align*}f(x) = 2x + 5 + 2\end{align*}
 5) If the graph of \begin{align*} f(x) = x\end{align*} is shifted three units to the right, then what would be the equation of the new graph?
Answers
 1) To find the xintercepts, set f(x) equal to 0, and solve for x:
 \begin{align*}0 = 8x  7  64\end{align*}
 \begin{align*}64 = 8x  7\end{align*}
 \begin{align*}8 = x  7\end{align*}
 \begin{align*}8 = (x7)\end{align*} or \begin{align*}8 = (x7)\end{align*}
 \begin{align*}15 = x\end{align*} or \begin{align*}1 = x\end{align*}
 \begin{align*}\therefore\end{align*} the xintercepts are 15 and 1
 2) The graph of \begin{align*}y = x\end{align*} is shown below. You can either use a graphing tool, or plot points, noting that every positive x has a matching y, and every negative x matches with its positive equivalent as y. \begin{align*}y = x\end{align*} is the simplest example of a graph in the absolute value function family, of which \begin{align*}y = axh + k\end{align*} is the parent. Changes to \begin{align*}a\end{align*}, \begin{align*}h\end{align*}, and \begin{align*}k\end{align*} shift the graph of \begin{align*}y = x\end{align*} in different ways.
 3) The graph of \begin{align*}y = x\end{align*} is above, the graph of \begin{align*}y = x  5\end{align*} is below. It is clear that the 5 after the absolute value causes the graph to shift down 5 places.
The link: Graph of y = x + k takes you to a graph of y = x + k that has a slider for k, allowing you to see the effect of changing the value of a number added or subtracted after the absolute value.
 4) To find the yintercept of \begin{align*}f(x) = 2x + 5 + 2\end{align*} solve the equation for x = 0.
 \begin{align*}y = 2 0 + 5 + 2\end{align*}
 \begin{align*}y = 2 \cdot 5 + 2\end{align*}
 \begin{align*}y = 12\end{align*}
 5) To shift the graph of an absolute value equation horizontally, add or subtract from inside the absolute symbol.
 \begin{align*}f(x) = x + 5\end{align*} shifts the graph 5 places left, as we see above.
 \begin{align*}\therefore f(x) = x  3\end{align*} would shift the graph 3 places right.
Explore More
For questions 15, identify the family that each function belongs to:
 \begin{align*}y = x  7\end{align*}
 \begin{align*}y = 3x  4\end{align*}
 \begin{align*}f(x) = x^2\end{align*}
 \begin{align*}x  2 = y\end{align*}
 \begin{align*}f(x) = x + \frac{3x}{2}\end{align*}
 Graph the following piecewise function by hand: \begin{align*}f(x) = \begin{cases} x, x\geq 0\\ x, x < 0\\ \end{cases}\end{align*}
 On your graphing calculator, graph the function \begin{align*} f(x) = x 2\end{align*}, and answer the following questions: a) What is the shape of the graph? b) Compare the graph to the graph in the problem above. What is the difference between the two graphs? c) What is the slope of the two lines that create the graph?
For each equation that follows, identify the coordinates of the vertex of the graph, without actually graphing.
 \begin{align*}f(x) = 6x\end{align*}
 \begin{align*}f(x) = x  6 + 8\end{align*}
 \begin{align*}f(x) = x +7  8\end{align*}
 \begin{align*}f(x) = x + 5\end{align*}
 The graph of \begin{align*}p(x) = x\end{align*} is shown below. If \begin{align*}t(x) = x3\end{align*}, how will the graph of \begin{align*}t(x)\end{align*} be different from the graph of \begin{align*}p(x)\end{align*}?
 Graph the absolute value equation, create your own table to justify values: \begin{align*}f(x) = x  3\end{align*}
 Graph the absolute value equation, create your own table to justify values: \begin{align*}g(x) = x+3\end{align*}
Identify the parent function for each set of linear functions. Graph each set of functions using a graphing calculator. Identify similarities and differences of each set.
 a) \begin{align*}f(x) = x 7\end{align*} b) \begin{align*}f(x) = x  2\end{align*} c) \begin{align*}f(x) = x + 1\end{align*} d) \begin{align*}f(x) = x + 5\end{align*} e) \begin{align*}f(x) = x + 10\end{align*} Parent Function: Similarities: Differences:
 a) \begin{align*}f(x) = \frac{2}{11}x\end{align*} b) \begin{align*}f(x) = \frac{1}{2}x\end{align*} c) \begin{align*}f(x) = \frac{2}{3}x\end{align*} Parent Function: Similarities: Differences:
 a) \begin{align*}f(x) = x 7\end{align*} b) \begin{align*}f(x) = 2x\end{align*} c) \begin{align*}f(x) = 4x\end{align*} d) \begin{align*}f(x) = 2x + 5\end{align*} e) \begin{align*}f(x) = 6x  10\end{align*} Parent Function: Similarities: Differences:
Use the standard form of a linear equation: \begin{align*}f(x) = ax + b\end{align*} and your investigations above to help you answer the following questions:
 How does the a value affect the graph?
 How does the b value affect the graph?
 How are the domain values similar/different?
 How are the range values similar/different?
 Does the a and/or b value affect the domain?
 Does the a and/or b value affect the range?
Answers for Explore More Problems
To view the Explore More answers, open this PDF file and look for section 1.10.