Graphs of Functions
Learning goals
- Read the graph as every pair
- Build a graph from a table of inputs and outputs
- Find by going up to the curve and across
- Locate the intercepts, where the graph crosses each 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
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 #
Start from the definition: the graph of is the collection of points , one for each input in the domain. Take any point and ask whether it belongs to that collection.
Suppose first that is on the graph. Then it is one of the listed points, so its first coordinate is an input. The point’s second coordinate must then be the output paired with , namely . Therefore .
Now suppose instead that . Then the point is literally , which is the graph’s point at the input , so is on the graph. The two directions together give the equivalence
This one equivalence is the engine of every reading in this lesson. Set to the height of the graph above , and it says that height is . Fix a height instead, and it says the inputs whose output is are exactly the where the horizontal line crosses the graph.
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 . Join them with a ruler for a linear rule, or with a smooth curve for a bending one. A small spread of inputs, including a negative, zero, and a few positives, keeps the shape honest and reveals any turning.
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.
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 .
Intercepts and where the graph crosses the axes
Two special readings come up so often that they have their own names.
The y-intercept is the point where the graph crosses the vertical axis. Every point on that axis has , so the y-intercept is the single point , and you find it by evaluating . A function has at most one y-intercept, because is one input with one output.
The x-intercepts are the points where the graph crosses 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
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 .
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 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 numbers. With those arrows, the range would be , every height from the low point upward.
Check your understanding
A graph is drawn only between the endpoints and , and 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.
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. From that turning point onward 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, 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 as goes from onward. On which interval is the function increasing?
A function is increasing where its graph rises as you read left to right. The graph rises only after the turning point at .
Before the turning point, from the left up to , the graph falls, so the function is decreasing there.