From Graph Coordinates to Secant Slope
A graph gives a visual picture of how a function's output changes as its input changes. To calculate a secant slope from that graph, the key information is the coordinates of two points. Each point has an input coordinate and its corresponding output coordinate; keeping these paired correctly is essential.
Suppose the two inputs are \(a\) and \(b\), and the function is \(f\). The corresponding graph points are \((a,f(a))\) and \((b,f(b))\). The secant line is the straight line through these two points. Its slope measures the vertical change between them relative to the horizontal change.
The first formula uses the coordinates of two points. The second expresses the same calculation using the function and its two input values. For a point on the graph of \(f\), the input is the \(x\)-coordinate and the output \(f(x)\) is the \(y\)-coordinate.
Match Each Input to Its Point
When working with an interval from \(a\) to \(b\), first identify the graph point at each endpoint. The endpoint \(a\) gives the point \((a,f(a))\); the endpoint \(b\) gives \((b,f(b))\). The function values belong in the \(y\)-coordinate positions, not the \(x\)-coordinate positions.
Once the points are identified, subtract the \(y\)-coordinates in the same order as the \(x\)-coordinates. If the numerator is \(f(b)-f(a)\), the denominator must be \(b-a\). This pairing is what makes the coordinate formula give the slope of the line through the two actual points.
Worked Example: Finding a Slope from a Function's Endpoint Values
Let \(f(x)=2x+1\), and find the secant slope from input \(a=-1\) to input \(b=3\).
First calculate the output at each endpoint:
Thus the point at input \(-1\) is \((-1,-1)\). At the other endpoint,
so the point at input \(3\) is \((3,7)\). Apply the coordinate formula in matching order:
The secant slope is \(2\). To check, the secant line through the points has equation \(y=2x+1\): at \(x=-1\), it gives \(y=-1\), and at \(x=3\), it gives \(y=7\). Its slope is \(2\), as calculated.
Why the Coordinate Formula Works
The slope formula follows from the equation of a line. Take two points \((x_1,y_1)\) and \((x_2,y_2)\) whose \(x\)-coordinates differ. A line through them can be written in the form \(y=mx+c\), where \(m\) is its slope and \(c\) is its vertical intercept.
Because both points lie on the line, substituting their coordinates gives two equations. Subtracting the first equation from the second eliminates \(c\), leaving a relation that determines \(m\).
\(y_1=mx_1+c\).
\(y_2=mx_2+c\).
\(y_2-y_1=m(x_2-x_1)\).
Since \(x_2\ne x_1\), divide by \(x_2-x_1\) to obtain \(m=\frac{y_2-y_1}{x_2-x_1}\).
This argument also explains the condition on the formula. If \(x_2=x_1\), division by \(x_2-x_1\) is not possible. The line through two distinct points with the same \(x\)-coordinate is vertical, and a vertical line has no finite slope of the form \(m\) in \(y=mx+c\). For points on a function's graph, two distinct inputs cannot have the same input coordinate; the formula applies whenever the chosen inputs differ.
Use the Coordinates, Not Just the Picture
On a graph, a point's position may look clear even when its exact coordinates are not. If exact coordinates are given, use them directly rather than estimating from the drawing. When a point is written as \((x,y)\), read the first number as the input and the second as the output. A reliable calculation begins by writing both points explicitly.
Worked Example: Using Two Points Listed in Reverse Order
A graph contains the points \((4,1)\) and \((-2,7)\). Find the secant slope across the input interval \([-2,4]\). The points were listed in an order different from the interval endpoints, so match them to the endpoints first.
At the left endpoint \(a=-2\), the point is \((-2,7)\). At the other endpoint \(b=4\), the point is \((4,1)\). Therefore the coordinate calculation is
The secant slope is \(-1\). Check by describing the line through the points. A line of slope \(-1\) through \((4,1)\) has equation \(y-1=-(x-4)\), or \(y=-x+5\). At \(x=4\), this gives \(y=1\); at \(x=-2\), it gives \(y=7\). It passes through both given points and has the calculated slope.
This example shows why it is useful to map each endpoint to its point before subtracting. The written order of a list of coordinates does not determine which input is \(a\) or \(b\); the interval endpoints do. A quick coordinate table can make the pairing visible:
| Input endpoint | Corresponding graph point |
|---|---|
| \(a=-2\) | \((-2,7)\) |
| \(b=4\) | \((4,1)\) |
Check the Calculation with the Secant Line
A calculated slope can be checked in two related ways. First, substitute the two points into the coordinate formula again, making sure the differences are paired correctly. Alternatively, use the slope to form a line through one point and check whether it passes through the other. Both checks test whether the number really describes the line through the given points.
Worked Example: Finding and Checking a Secant Slope from a Quadratic Graph
Let \(f(x)=x^2-1\). Find the secant slope between inputs \(1\) and \(3\), then check it using the line through the endpoint coordinates.
At input \(1\),
so the first point is \((1,0)\). At input \(3\),
so the second point is \((3,8)\). Using the coordinate slope formula gives
Thus the secant slope is \(4\). To check, the line with slope \(4\) through \((1,0)\) is \(y-0=4(x-1)\), or \(y=4x-4\). At \(x=1\), it gives \(y=0\); at \(x=3\), it gives \(y=12-4=8\). Both endpoint coordinates satisfy the line equation, confirming the result.
A Common Subtraction Mistake
The numerator and denominator must use the same order of points. A common error is to subtract the output at \(a\) from the output at \(b\), but subtract the input \(b\) from the input \(a\). That mixes the point order and changes the sign.
Worked Example: Correcting a Mismatched Order
Use the points \((1,0)\) and \((3,8)\). A mismatched calculation might be written as
This is wrong: the numerator goes from the point at input \(1\) to the point at input \(3\), but the denominator goes in the opposite direction. Keep the order consistent:
Check with the line \(y=4x-4\). It gives \(0\) at \(x=1\) and \(8\) at \(x=3\), so it goes through both points and has slope \(4\). The value \(-4\) from the mismatched calculation does not describe the line through these coordinates.
A Short Procedure for Coordinate Problems
For a secant-slope question, write down the endpoint correspondence before calculating. This prevents a point from being assigned to the wrong input and makes the subtraction order easier to track.
Record the distinct endpoint values \(a\) and \(b\).
Use \((a,f(a))\) and \((b,f(b))\), or transcribe the given coordinates carefully.
Calculate output difference over input difference: \(\frac{f(b)-f(a)}{b-a}\).
Confirm the result using the coordinate formula or a line through the two points.
The central habit is simple: keep each input attached to its own output. Once the endpoint coordinates are correct, the secant slope is the coordinate slope formula applied carefully.
Check Your Understanding
For each question, identify the endpoint coordinates before calculating.
- The graph contains \((0,2)\) and \((5,12)\). What is the slope of the secant line through them?
- For \(f(x)=x^2\), find the secant slope between inputs \(2\) and \(4\). What are the two graph points?
- A graph contains \((-3,6)\) and \((1,-2)\). What slope results when the coordinate differences are taken in matching order?
- Why must the denominator \(x_2-x_1\) be nonzero in the coordinate slope formula?
- In the expression \(\frac{f(b)-f(a)}{b-a}\), which graph point corresponds to input \(a\)?