In this Worksheet, we will practice a technique of analyzing a function to create a sketch by hand, and checking our results using XFunctions. As before, we will give step-by-step instructions, with each instruction numbered separately. You should work with a partner and make sure that both of you work with the program for some amount of time. As you work through the Worksheet, try to answer the bulleted questions. As usual, you should give an honest attempt to answer the question before looking at the solutions.
For our first example, we will analyze and graph the function f(x) = -2|x| + 1. We begin by decomposing this as:
Now we will calculate points on the graph of this function numerically as follows:
When we calculate points, it is important to choose the right points to plot. Remember the examples given in the introduction to this chapter. By not choosing the correct points to plot, we may obtain a misleading result. The "right" points are those which display the most important features of the graph. For example, the most important features of the graph of y = g(x) = |x|:

are:
Note: We will see that quite a large number of functions have special behavior near 0, and display some sort of symmetry. These features can be clearly displayed by plotting the points at x = -1, 0, 1 and "connecting-the-dots" appropriately.
| Corresponding Algebraic formula |
x | |x| | 2|x| | -2|x| | -2|x| + 1 |
|---|---|---|---|---|---|
| Numerical Effect | Take the input | Apply the absolute value function |
Multiply by 2 | Multiply by -1 | Add 1 |
| Numerical Results |
Inputs | Outputs | |||
| -1 | |||||
| 0 | |||||
| 1 | |||||
so that f goes through the points:
| x | y = f(x) = -2|x| + 1 |
|
-1 0 1 |
Finally, we want to "connect-the-dots" to obtain our sketch. However, in order to do this correctly, we must a rough idea of how the graph should look. To do this, we again use the graphing principles in the text to envision the geometric effects of these operations on the graph of g(x) = |x|. Remember, since numerically the outputs of the function are effected, all geometric effects will be in the vertical direction.
| Corresponding Algebraic formula |
y = |x| | y = 2|x| | y = -2|x| | y = -2|x| + 1 |
|---|---|---|---|---|
| Geometric Effect | Take the graph
of the absolute value function |
Stretch vertically by a factor of 2 |
| Corresponding Algebraic formula |
x | |x| | |||
|---|---|---|---|---|---|
| Geometric Effect | Take the graph
of the absolute value function |
||||
| Numerical Effect | Take the input | Apply the absolute value function |
|||
| Numerical Results |
Inputs | Outputs | |||
| -1 | |||||
| 0 | |||||
| 1 | |||||
Notice that we can use a very similar analysis to graph the function , based on our knowledge of the graph of :
The most important features of this graph are:
This time, we should use the inputs x = 0, 1, 4, since these are easily calculated points near the vertex and will display the curvature of the graph.
| Corresponding Algebraic formula |
x | ||||
|---|---|---|---|---|---|
| Geometric Effect | Take the graph
of the square root function |
||||
| Numerical Effect | Take the input | Apply the square root function |
|||
| Numerical Results |
Inputs | Outputs | |||
| 0 | |||||
| 1 | |||||
| 4 | |||||
so that h goes through the points:
| x | |
|
0 1 4 |
Plot the points you calculated for y = h(x) and use the the geometric description to envision how to correctly connect-the-dots to create a fairly accurate sketch of the resulting graph. Hint: Imagine, in your mind's eye what the arithmetic operations would do geometrically to the graph of the square root function; if necessary, make a rough sketch of the graph after each operation. Answer.
| Corresponding Algebraic formula |
x | ||||
|---|---|---|---|---|---|
| Geometric Effect | Take the graph
of the square root function |
||||
| Numerical Effect | Take the input | Apply the square root function |
|||
| Numerical Results |
Inputs | Outputs | |||
| 0 | |||||
| 1 | |||||
| 4 | |||||
As a final example, we will apply this technique to sketch a graph of r(x) = -2ëxû + 1. This will again illustrate the importance of knowing how the graph of s(x) = ëxû looks and thinking about how the graph is transformed geometrically, in addition to simply plotting points. Remember the graph of s(x) = ëxû:

The important features of this graph are:
Once we plot the points at x = -1, 0, 1, although we cannot simply "connect-the-dots" (or we would obtain a straight line), if we remember these features, we can sketch the horizontal lines from (-1, -1), (0, 0), and (1, 1), and then extend this pattern to obtain the rest of the graph. Note: While any three consecutive integer points would work just as well, these numbers are the easiest with which to compute.
| Corresponding Algebraic formula |
x | ëxû | 2ëxû | -2ëxû | -2ëxû + 1 |
|---|---|---|---|---|---|
| Geometric Effect | Take the graph
of the greatest integer function |
||||
| Numerical Effect | Take the input | Apply the greatest integer function |
|||
| Numerical Results |
Inputs | Outputs | |||
| -1 | |||||
| 0 | |||||
| 1 | |||||
so that r goes through the points:
| x | y = r(x) = -2ëxû + 1 |
|
-1 0 1 |
Plot the points you calculated for y = r(x) and use the the geometric description to envision how to draw in the rest of the resulting graph. In particular, you should be careful to correctly place the open and closed circles on the graph. Answer.
To summarize, our strategy for sketching the graph of a function that has been obtained by performing arithmetic a "core" function whose graph we know is to:
We will refine this graphing technique in the following sections to allow us to graph even more complex expression, and we will use this technique throughout the remainder of the text to graph a wide variety of important mathematical functions.
Go to Graphing and Linear Functions
| Table of Contents | Glossary |