Paul's Online Math Notes
[Notes]
Algebra - Notes

Internet Explorer 10 & 11 Users : If you have been using Internet Explorer 10 or 11 to view the site (or did at one point anyway) then you know that the equations were not properly placed on the pages unless you put IE into "Compatibility Mode". I believe that I have partially figured out a way around that and have implimented the "fix" in the Algebra notes (not the practice/assignment problems yet). It's not perfect as some equations that are "inline" (i.e. equations that are in sentences as opposed to those on lines by themselves) are now shifted upwards or downwards slightly but it is better than it was.

If you wish to test this out please make sure the IE is not in Compatibility Mode and give it a test run in the Algebra notes. If you run into any problems please let me know. If things go well over the next week or two then I'll push the fix the full site. I'll also continue to see if I can get the inline equations to display properly.
 Solving Equations and Inequalities Previous Chapter Next Chapter Common Graphs The Definition of a Function Previous Section Next Section Combining Functions

## Graphing Functions

Now we need to discuss graphing functions.  If we recall from the previous section we said that  is nothing more than a fancy way of writing y.  This means that we already know how to graph functions.  We graph functions in exactly the same way that we graph equations.  If we know ahead of time what the function is a graph of we can use that information to help us with the graph and if we don’t know what the function is ahead of time then all we need to do is plug in some x’s compute the value of the function (which is really a y value) and then plot the points.

Example 1  Sketch the graph of .

Solution

Now, as we talked about when we first looked at graphing earlier in this chapter we’ll need to pick values of x to plug in and knowing the values to pick really only comes with experience.  Therefore, don’t worry so much about the values of x that we’re using here.  By the end of this chapter you’ll also be able to correctly pick these values.

Here are the function evaluations.

 x f(x) -1 -7 0 0 1 1 2 2 3 9

Here is the sketch of the graph.

So, graphing functions is pretty much the same as graphing equations.

There is one function that we’ve seen to this point that we didn’t really see anything like when we were graphing equations in the first part of this chapter.  That is piecewise functions.  So, we should graph a couple of these to make sure that we can graph them as well.

Example 2  Sketch the graph of the following piecewise function.

Solution

Okay, now when we are graphing piecewise functions we are really graphing several functions at once, except we are only going to graph them on very specific intervals.  In this case we will be graphing the following two functions,

We’ll need to be a little careful with what is going on right at  since technically that will only be valid for the bottom function.  However, we’ll deal with that at the very end when we actually do the graph.  For now, we will use  in both functions.

The first thing to do here is to get a table of values for each function on the specified range and again we will use  in both even though technically it only should be used with the bottom function.

 x -2 0 -1 3 0 4 1 3 x 1 1 2 3 3 5

Here is a sketch of the graph and notice how we denoted the points at .  For the top function we used an open dot for the point at  and for the bottom function we used a closed dot at .  In this way we make it clear on the graph that only the bottom function really has a point at .

Notice that since the two graphs didn’t meet at  we left a blank space in the graph.  Do NOT connect these two points with a line.  There really does need to be a break there to signify that the two portions do not meet at .

Sometimes the two portions will meet at these points and at other times they won’t.  We shouldn’t ever expect them to meet or not to meet until we’ve actually sketched the graph.

Let’s take a look at another example of a piecewise function.

Example 3  Sketch the graph of the following piecewise function.

Solution

In this case we will be graphing three functions on the ranges given above.  So, as with the previous example we will get function values for each function in its specified range and we will include the endpoints of each range in each computation.  When we graph we will acknowledge which function the endpoint actually belongs with by using a closed dot as we did previously.  Also, the top and bottom functions are lines and so we don’t really need more than two points for these two.  We’ll get a couple more points for the middle function.

 x -3 0 -2 1 x -2 4 -1 1 0 0 1 1 x 1 1 2 0

Here is the sketch of the graph.

Note that in this case two of the portions met at the breaking point  and at the other breaking point, , they didn’t meet up.  As noted in the previous example sometimes they meet up and sometimes they won’t.

 The Definition of a Function Previous Section Next Section Combining Functions Solving Equations and Inequalities Previous Chapter Next Chapter Common Graphs

[Notes]

 © 2003 - 2016 Paul Dawkins