Material for Students Prior to Fall 2023 (Module 8)
8.3: Graphing Basic Absolute Value and Quadratic Functions
Section 8.3 Learning Objectives
8.3: Graphing Absolute Value and Quadratic Functions
Graph basic absolute value functions
Graph basic quadratic functions
The Basic Absolute Value Function
In Chapter 2, we reviewed the idea of absolute value and introduced strategies to solve absolute value equations and inequalities. In this section, our goal is to graph absolute value functions.
Let us begin with the most basic absolute value function, f(x)=|x|.
Recall that the absolute value of a number is its distance from zero on the number line. As with any function, we can use a table to assist us in graphing it.
Since we are unsure of the shape, we want to pick several points, including positives and negatives. This leads to the table given below.
x
f(x)=|x|
−3
|−3|=3
−2
|−2|=2
−1
|−1|=1
0
|0|=0
1
|1|=1
2
|2|=2
3
|3|=3
Next we plot the points.
Had we not chosen enough points, we may be tempted to draw something more like a smooth curve through the points. However, we can see that this will require a graph that is more linear, except that it seems to suddenly change directions at the origin. Had we only chosen points to the right of 0, we may have thought the graph would be a simple straight line instead of the “V” shape that is ends up being. The final graph of f(x)=|x| is shown below.
This “V” shape will appear in all of the simple absolute value functions we will consider in this section. However, the “V” might be shifted, made narrower or wider, or even flipped.
Graphing Absolute Value Functions of the Form f(x)=a|x|+b
Knowing the basic shape of an absolute value graph will help us as we continue our exploration of absolute values.
Consider the function f(x)=|x|−3. Let us try plugging in the same values for x that we use for the basic absolute value function.
x
f(x)=|x|−3
−3
|−3|−3=3−3=0
−2
|−2|−3=2−3=−1
−1
|−1|−3=1−3=−2
0
|0|−3=0−3=−3
1
|1|−3=1−3=−2
2
|2|−3=2−3=−1
3
|3|−3=3−3=0
Plotting these points gives the graph shown below.
We see that same “V” shape, which we will come to expect with this type of absolute value function. However, not coincidentally, notice that the curve has moved down 3 units.
Example 1
Graph f(x)=|x|+2.
Show Solution
Now that we are starting to recognize what shape to expect, we could plug in fewer values. Let us plug in integer value for x from −2 to 2. However, if you are more comfortable plugging in more values, it never hurts!
x
f(x)=|x|+2
f(x)
−2
|−2|+2=2+2=4
4
−1
|−1|+2=1+2=3
3
0
|0|+2=0+2=2
2
1
|1|+2=1+2=3
3
2
|2|+2=2+2=4
4
Plotting these points, we arrive at the following graph:
So, we again end up with the same shape, but this time it is shifted up 2 units.
Strategy for Graphing Absolute Value Functions of the Form f(x)=a|x|+b
Make an xy-table. We recommend (at least) five values for x, x=−2,−1,0,1,2.
Graph. The resulting curve should have a “V” shape.
In the next problem, we will see what happens when there is a coefficient other than 1 in front of the absolute value.
Example 2
Graph f(x)=2|x|.
Show Solution
We proceed by plugging in the same set of x-values.
x
f(x)=2|x|
f(x)
−2
2|−2|=2(2)=4
4
−1
2|−1|=2(1)=2
2
0
2|0|=2(0)=0
0
1
2|1|=2(1)=2
2
2
2|2|=2(2)=4
4
This gives us the graph below.
And there is our “V” shape again. If we are exploring this for relationships and patterns, you may notice that the y-values were all doubled as compared to the basic absolute value function. In a way, this made the curve “twice as tall,” or equivalently, narrower.
In our last example, we combine some of the ideas we have seen. Moreover, we look at the effect of a negative coefficient.
Example 3
Graph f(x)=−2|x|+1.
Show Solution
Despite everything going on with this function, we utilize the same approach. Just be careful with the computations as we follow the order of operations.
x
f(x)=−2|x|+1
f(x)
−2
−2|−2|+1=−2(2)+1=−4+1=−3
−3
−1
−2|−1|+1=−2(1)+1=−2+1=−1
−1
0
−2|0|+1=−2(0)+1=0+1=1
1
1
−2|1|+1=−2(1)+1=−2+1=−1
−1
2
−2|2|+1=−2(2)+1=−4+1=−3
−3
We obtain the following graph:
Once again, we may find it interesting to explore how the different pieces of the function affected the graph. How do you think the negative exponent affected the graph? If you were thinking that it caused our “V” shape to “flip over,” you are right! Putting everything together, the curve flipped (vertically), is narrower, and shifted up 1 unit.
If you would like to investigate further into absolute value graphs, check out the “Think About It” below.
think about it
Graph f(x)=|x−3|.
Show Solution
We could simply plug in the same values for x that we selected for the basic graph, but we will see that this leads to a slight problem.
x
f(x)=|x−3|
−3
|−3−3|=|−6|=6
−2
|−2−3|=|−5|=5
−1
|−1−3|=|−4|=4
0
|0−3|=|−3|=3
1
|1−3|=|−2|=2
2
|2−3|=|−1|=1
3
|3−3|=|0|=0
If you plot these points (try it), it looks like a line and does not change directions. Yet, we know we are anticipating that “V” shape. So maybe we have not picked enough points or the right points. Let’s continue adding to our table.
x
f(x)=|x−3|
−3
|−3−3|=|−6|=6
−2
|−2−3|=|−5|=5
−1
|−1−3|=|−4|=4
0
|0−3|=|−3|=3
1
|1−3|=|−2|=2
2
|2−3|=|−1|=1
3
|3−3|=|0|=0
4
|4−3|=|1|=1
5
|5−3|=|2|=2
6
|6−3|=|3|=3
Now that traditional absolute value shape begins to emerge, and we obtain the graph for f(x)=|x−3| below.
This example teaches us an important and extremely helpful lesson. Notice where the graph changed directions and where we begin to see the “V” shape…it occurred at x=3. This was not coincidence, as we saw a 3 in the original function. However, it was “minus 3” in the original. The key is to focus on the value for x that will make the quantity inside the absolute value equal to zero. In this case, with f(x)=|x−3|, when x=3, we get 0 inside the absolute value. So, it is wise to choose values for x that are around x=3.
Graphing Basic Quadratic Functions
In Modules 5 and 6 we learned about polynomials. An equation containing a second-degree polynomial is called a quadratic equation. For example, equations such as x2−3x−4=0 and x2−16=0 are in the “family” of quadratic equations. They are used in countless ways in the fields of engineering, architecture, finance, biological science, and, of course, mathematics.
Just like the functions in other “families” we’ve learned about (linear, exponential, absolute value), quadratic functions can also be graphed. It is helpful to have an idea about what the shape should be so you can be sure that you have chosen enough points to plot as a guide. Let us start with the most basic quadratic function, f(x)=x2.
Graph f(x)=x2.
We’ll start with a table of values. Then think of each row of the table as an ordered pair.
x
f(x)=x2
−2
(−2)2=4
−1
(−1)2=1
0
(0)2=0
1
(1)2=1
2
(2)2=4
Now we’ll plot the points (−2,4),(−1,1),(0,0),(1,1),(2,4)
At first glance, it might appear that these points make a “V” shape like the absolute value functions we have graphed previously. But, the quadratic family of functions is not drawn using straight lines. Since the points are not on a line, you cannot use a straight edge. Connect the points as best you can using a smooth curve (not a series of straight lines). You may want to find and plot additional points (such as the ones in blue below). Placing arrows on the tips of the lines implies that they continue in that direction forever.
Notice that the shape is similar to the letter U. This is called a parabola. One-half of the parabola is a mirror image of the other half. The lowest point on this graph is called the vertex. The vertical line that goes through the vertex is called the line of symmetry. In this case, that line is the y-axis, which is the line x=0.
In the following video, we show an example of graphing another quadratic function, f(x)=12x2, using a table of values.
The equations for quadratic functions can be written in the form f(x)=ax2+bx+c (where a≠0). In the two basic quadratic functions we graphed above, notice there was only the ax2 term and that both b=0, and c=0 for those functions.
Although there are many forms that quadratic functions can be written in, this Elementary Algebra course will focus only on graphing basic quadratic functions of the form f(x)=ax2+c.
Quadratic functions of the form f(x)=ax2+c will always be centered around the y-axis which is the line x=0.
We have shared two examples above of graphing a basic quadratic function of the form f(x)=ax2+c, where c=0, so let’s now explore how to graph a quadratic function of the form f(x)=ax2+c where c≠0 .
Graph f(x)=x2−4.
Similar to the problems above, lets start with a table of values.
x
f(x)=x2−4
f(x)
−2
(−2)2−4=4−4=0
0
−1
(−1)2−4=1−4=−3
-3
0
(0)2−4=0−4=−4
-4
1
(1)2−4=1−4=−3
-3
2
(2)2−4=4−4=0
0
We’ll now plot the points (−2,0),(−1,−3),(0,−4),(1,−3),(2,0) on the graph.
If we connect all the points with a smooth curve we will have the graph of our function f(x)=x2−4.
Let’s have you now try one on your own:
Example 4
Graph the function: f(x)=x2−16
Show Answer
Notice our function f(x)=x2−16 is of the form f(x)=ax2+c. This means it will be centered around x=0.
We can start our table with any values we want, but will want to make sure to choose values on both sides of 0, as well as the value of x=0.
x
f(x)=x2−16
f(x)
4
(4)2−16=0
0
-4
(−4)2−16=0
0
0
(0)2−16=−16
-16
2
(2)2−16=−12
-12
-2
(−2)2−16=−12
-12
Plotting the ordered pairs from the table above gives us:
Connecting the points with a smooth curve gives our final graph:
Lets try a few more examples.
Example 5
Graph the function: f(x)=x2+5
Show Answer
Notice our function f(x)=x2+5 is of the form f(x)=ax2+c. This means it will be centered around x=0.
Create a table of values
x
f(x)=x2+5
f(x)
-2
(−2)2+5=9
9
-1
(−1)2+5=6
6
0
(0)2+5=5
5
1
(1)2+5=6
6
2
(2)2+5=9
9
Plot the points (-2,9), (-1,6), (0,5), (1,6) and (2,9) and connect them with a smooth curve.
Extension:
Notice some quadratic functions never cross the x-axis. The function f(x)=x2+5 is one example. If we try to solve for the x-intercepts in this function by setting the function equal to 0, we would have the following:
x2+5=0
x2=−5
√x2=±√−5
If we try and find the square root of -5 in our calculator we will find that it gives us an error message. There are no real number answers to the square root of a negative value. Thus this function does not have any x-intercepts on our graph.
As we can see with the graph we made above, the parabola falls above the x-axis.
In the next example we will explore how parabolas don’t always open upwards.
Example 6
Graph the function: f(x)=−3x2
Show Answer
Notice our function f(x)=−3x2, is of the form f(x)=ax2+c, where a=−3 and c=0. We will start to graph this by choosing values surrounding 0.
*It is important that you understand how to evaluate a function like this correctly. For this reason, we will show the steps for the input value of -2 in detail:
f(−2)=−3(−2)2
We must make sure we follow the correct “Order of Operations” here. This means that before we multiply the −3 with anything, we must first raise the −2 to the exponent of 2. When we raise (−2)2, we are multiplying (−2)⋅(−2), which is equal to 4.
f(−2)=−3(4)
We can now multiply the -3 with the 4 to find the final output.
f(−2)=−12
This process will be repeated with all the x values input in the table of values below:
x
f(x)=−3x2
f(x)
-2
−3(−2)2=(−3)(4)=−12
-12
-1
−3(−1)2=(−3)(1)=−3
-3
0
−3(0)2=(−3)(0)=0
0
1
−3(1)2=(−3)(1)=−3
-3
2
−3(2)2=(−3)(4)=−12
-12
Plotting the ordered pairs from the table above gives us:
Connecting the points with a smooth curve gives our final graph below. Notice that this is an upside down U-shape this time.
As we saw with the last example, with quadratic functions of the form f(x)=ax2+c, changing the value of a can change the width of the parabola and whether it opens up (a>0) or down (a<0). If a is positive, the vertex is the lowest point, and the parabola opens up. If a is negative, the vertex is the highest point, and the parabola opens down.
When graphing quadratic functions of the form f(x)=ax2+c follow the steps below:
Recognize the form of the quadratic function and that it will be a parabola centered around x=0.
Make a table of values, making sure to choose some values on either side of x=0, as well as the value of x=0
Plot your points and connect them with a smooth curve into a parabola shape.
Think About it
Graph the equation: f(x)=x2+x−6. (It may be helpful to factor it, and set it equal to 0 to find the x-intercepts.)
Show Solution
To factor f(x)=x2+x−6, we look for two numbers whose product equals −6 and whose sum equals 1. Begin by looking at the possible factors of −6.
1⋅(−6)(−6)⋅12⋅(−3)3⋅(−2)
The last pair, 3⋅(−2) sums to 1, so these are the numbers. Note that only one pair of numbers will work. Then, write the factors.
f(x)=(x−2)(x+3)
We can now set this equation equal to 0 and use the zero-product property to find the x-intercepts. To do this, we will set each factor equal to zero and solve.
(x−2)(x+3)=0
(x−2)(x+3)=0(x−2)=0(x+3)=0x=2x=−3
Recall that x-intercepts are where the outputs, or y values are zero, therefore the points (−3,0) and (2,0) represent the places where the parabola crosses the x axis.
To find other points on the graph, we could make a table of values
x
f(x)=x2+x−6
f(x)
2
(2)2+(2)−6=0
0
-3
(−3)2+(−3)−6=0
0
0
(0)2+(0)−6=−6
-6
1
(1)2+(1)−6=−4
-4
If we plot the points found above and connect them with a smooth curve, we will get the parabola in the figure below.
Graphing Quadratics Summary
Creating a graph of a function is one way to understand the relationship between the inputs and outputs of that function. Creating a graph can be done by choosing values for x, finding the corresponding y values, and plotting them. However, it helps to understand the basic shape of the function. Knowing how changes to the basic function equation affect the graph is also helpful.
The shape of a quadratic function is a parabola. Parabolas have the equation f(x)=ax2+bx+c, where a,b and c are real numbers and a≠0. The value of a determines the width and the direction of the parabola, while the vertex depends on the values of a,b and c.