Graphs of Functions
Learning goals
- Read the graph as every pair
- Build a graph from a table of inputs and outputs
- Find by moving up or down to the curve and across
- Locate any intercepts, where the graph meets an axis
- Take the domain as horizontal spread and the range as vertical
- Say where a function increases, decreases, and turns
The graph of a function is a picture of every input and output
Take from the callout above. The input gives , so the graph includes the point . Every other allowed input produces another point the same way, and together all of those points make up the graph.
The graph of a function is the set of all points as runs over the domain of . Read that pairing carefully: the first coordinate of each point is an input, and the second coordinate is the output the function assigns to it. Setting says the same thing in the language of the last chapters, because then each allowed input gives exactly one point with . So graphing a function is nothing new. It is graphing the equation , and every technique you built for lines and parabolas carries straight over. What is new is everything the finished picture now lets you read.
The single most useful fact is this. The second coordinate of every point on the graph is an output. So the height of the graph above an input , measured against the vertical axis, is exactly . The function pairs with one output, so there is exactly one point of the graph directly above (or below) each input in the domain. That single point is why “the height at ” names one definite number. That is the vertical line test from the What Is a Function? lesson, seen from the reading side. Each vertical line meets the graph at most once, and where it does, the height it reaches is the output.
A point lies on the graph exactly when , because the graph’s point at input is . Set to the height of the graph above , and that says the height is . Fix a height instead, and it says the inputs whose output is are exactly the where the horizontal line crosses the graph. That one fact is behind every reading below.
Building a graph from a table
To draw a function’s graph, use the routine you already trust for lines and parabolas. Choose several inputs, evaluate at each to get the matching output, then plot the points . A table only pins down the points you compute; it is the rule itself, not the sample, that decides what happens between them. Join the points with a ruler when you already know the rule is linear, or with a smooth parabola when you already know it is quadratic, as in the next example. A small spread of inputs, including a negative, zero, and a few positives, is enough to see that known shape clearly.
Worked example 1 Graph from a table
The rule squares the input, subtracts twice the input, then subtracts . Because the highest power of is a square, you already know the graph will be a parabola. Pick a spread of inputs and evaluate, keeping the parentheses so the signs are safe.
Collect the input-output pairs in a table so each point is easy to plot:
Plot the five points , , , , and . They do not lie on a line; they bend into a smooth U. Joining them gives the parabola that is the graph of , dipping to its lowest point at and rising on both sides.
Check your understanding
A function is given by this table of inputs and outputs.
Building the graph means plotting each input together with the output written beneath it. Which point belongs on the graph of ?
Building a graph from a table means pairing each input with the output written directly beneath it, giving the point .
The input comes first and the output second, so has the coordinates swapped. and each pair an input with the neighboring column's output instead of its own; reading straight down one column avoids that slip.
Reading a value off the graph
Two questions come up again and again, and the graph answers both by tracing a straight path to an axis.
Finding from the picture. Locate the input on the horizontal axis, move straight up or down until you meet the curve, then read the height there against the vertical axis. That height is , because the point you land on is .
Solving from the picture. This asks the reverse question: which inputs produce the output . Locate the value on the vertical axis, move straight across to the curve, and read the input below each meeting point. Every such input satisfies . A horizontal line can cross a curve more than once, so an equation can have several solutions, one solution, or none. The picture shows exactly which case you are in.
Worked example 2 Reading and solving from the graph
Use the graph of above, without any algebra.
To find , start at on the horizontal axis and move straight down to the curve. You land on the point , whose height is , so
To solve , do the reverse. Find on the vertical axis and slide across the horizontal line . It meets the parabola at two points, the ones sitting above and above . Reading the input beneath each gives the two solutions
The same value is an output of the function at two different inputs, which is why the horizontal line crosses twice. A quick check confirms both: and .
Check your understanding
The graph of a function passes through the points , , , , and . What is ?
Finding means reading the output at the input , so look for the point whose first coordinate is .
The input is the first coordinate and the output is the second, so the height above is .
Check your understanding
Using the same graph of , through , , , , and , which of these five points have ?
Solving means finding every listed input whose output is , so look for the points whose second coordinate is .
Both points sit at height , so both of their inputs solve the equation. A single output can come from more than one input.
Intercepts and where the graph meets the axes
Two special readings come up so often that they have their own names.
The y-intercept is the point where the graph meets the vertical axis. Every point on that axis has , so when is an allowed input, the y-intercept is the single point , found by evaluating . A function has at most one y-intercept: either is not an input at all, or it is one input with one output.
The x-intercepts are the points where the graph meets the horizontal axis. Every point on that axis has , so an x-intercept is a point with . Finding the x-intercepts therefore means solving the equation , which is the case of the reading above. These inputs are also called the zeros or roots of the function, and there may be several, one, or none.
Worked example 3 Find the intercepts of
The graph plotted earlier already marks these crossings: on the vertical axis, and and on the horizontal axis. Here is how to find each one directly from the rule, which confirms what the picture already shows.
For the y-intercept, evaluate the rule at :
so the y-intercept is the point .
For the x-intercepts, set the output to and solve . The rule factors, which is the fastest route to its zeros:
A product is zero exactly when one of its factors is zero, so or . The x-intercepts are and . All three points match the graph: it crosses the vertical axis once, at , and the horizontal axis twice, at and .
Check your understanding
The graph of a function passes through , , , , and . What is the y-intercept?
The y-intercept is the point where the graph meets the vertical axis, which is the point with .
The points and both have , so those are the x-intercepts instead.
Check your understanding
Using the same graph of , through , , , , and , which of these listed points are x-intercepts?
The x-intercepts are the points where the graph meets the horizontal axis, where .
is the y-intercept, not an x-intercept. and have , so neither sits on the axis. Of the listed points, a graph can meet the horizontal axis more than once, so picking only one intercept misses the other.
Domain and range from a graph
The domain is the set of allowed inputs and the range is the set of outputs the function actually produces, and a graph puts both on display. Sweep your eye left to right across the graph: the -values it covers are the domain. Sweep bottom to top: the -values it covers are the range. A graph that runs on forever to the left and right, like a full parabola, has domain “all real numbers.” By contrast, a graph drawn only between two endpoints has a domain that stops at those endpoints.
Worked example 4 Read the domain and range from the graph
The curve above is drawn only between its two endpoints, on the left and on the right, so those endpoints fence in the inputs.
Sweeping left to right, the graph occupies every horizontal position from to , and nothing outside. That horizontal spread is the domain:
Sweeping bottom to top, the lowest the curve reaches is the valley at height , and the highest is , shared by the two endpoints. That vertical spread is the range:
Notice the domain is read along the horizontal axis and the range along the vertical axis. If instead the parabola were drawn with arrows running off both sides, the inputs would never stop and the domain would be all real numbers. With those arrows, the range would be , every height from the low point upward.
Check your understanding
A graph is one continuous curve, drawn only between the endpoints and and reaching every height in between as it goes. Over that stretch its lowest height is and its highest height is . What is the range?
The range is the vertical spread of the graph, from its lowest height to its highest, read along the -axis.
The values and are the endpoints' -coordinates, so they describe the domain, not the range.
Check your understanding
Using the same continuous graph, drawn only between the endpoints and , what is the domain?
The domain is the horizontal spread of the graph, from its leftmost point to its rightmost, read along the -axis.
The values and are the lowest and highest heights, so they describe the range, not the domain.
Increasing and decreasing
The last thing a picture shows at a glance is the function’s direction. Read the graph the way you read a sentence, left to right, in the direction of increasing . Where the curve rises as you move right, the outputs are getting larger, and the function is increasing there. Where the curve falls as you move right, the outputs are getting smaller, and the function is decreasing.
Made precise, a function is increasing on an interval if larger inputs give larger outputs across it (if then ). A function is decreasing on an interval if larger inputs give smaller outputs across it (if then ). A point where the graph stops falling and starts rising, or the reverse, is a turning point. At the bottom of a valley the output is smaller than at any nearby input, a minimum. At the top of a hill the output is larger than at any nearby input, a maximum.
Worked example 5 Where is increasing?
Trace the graph from left to right. Starting far to the left, the curve comes down steadily, so the outputs are shrinking and is decreasing. It keeps falling until it reaches the lowest point at , then it turns and climbs. To the right of that turning point the outputs grow, so is increasing.
Reading the two stretches off the horizontal axis, the turning happens at , so
The turning point is the minimum point, and is the single lowest output the function ever produces. This is the same value you would get by hunting for the vertex algebraically, but here you simply saw it on the picture.
Check your understanding
The graph of a function falls as goes from up to , then rises for greater than . On which interval is the function increasing?
A function is increasing where its graph rises as you read left to right. The description states the graph rises for .
From up to , the graph falls, so the function is decreasing there.
Check your understanding
Using the same graph (falls as goes from up to , then rises for greater than ), on which interval is the function decreasing, and what kind of turning point sits at ?
The graph falls, so the function decreases, exactly on the stretch stated: from up to the turning point at , so . The description says nothing about what happens for , so claiming the function decreases there too would go beyond what is given. Since the graph falls into and then rises back out of it, that point is the bottom of a valley, a minimum, not the top of a hill.