Tutorials › Calculus I › Secant Slopes From Coordinates

Rates of Change and Tangents · Tutorial 302 of 1495

Secant Slopes From Coordinates

Use the two endpoint coordinates on a graph to find a secant slope, keeping each input and its corresponding output together.

Beginner 9 min read

What You'll Learn

  • Identify the graph coordinates associated with the endpoints of an input interval.
  • Calculate a secant slope using the coordinate slope formula.
  • Keep the subtraction order consistent in the numerator and denominator.
  • Check a calculated slope using the two points or the secant-line equation.
  • Recognize when two points do not determine a finite secant slope.

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.

Definition: For two points \((x_1,y_1)\) and \((x_2,y_2)\) with \(x_1\ne x_2\), the slope of the line through them is \[ \frac{y_2-y_1}{x_2-x_1}. \] For a function graph and distinct inputs \(a\) and \(b\), the secant slope is \[ \frac{f(b)-f(a)}{b-a}. \]

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:

$$ f(-1)=2(-1)+1=-2+1=-1 $$

Thus the point at input \(-1\) is \((-1,-1)\). At the other endpoint,

$$ f(3)=2(3)+1=6+1=7, $$

so the point at input \(3\) is \((3,7)\). Apply the coordinate formula in matching order:

$$ \frac{7-(-1)}{3-(-1)} = \frac{8}{4} = 2. $$

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\).

1
Substitute the first point.
\(y_1=mx_1+c\).
2
Substitute the second point.
\(y_2=mx_2+c\).
3
Subtract the equations.
\(y_2-y_1=m(x_2-x_1)\).
4
Solve for the slope.
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

$$ \frac{1-7}{4-(-2)} = \frac{-6}{6} = -1. $$

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 endpointCorresponding 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\),

$$ f(1)=1^2-1=1-1=0, $$

so the first point is \((1,0)\). At input \(3\),

$$ f(3)=3^2-1=9-1=8, $$

so the second point is \((3,8)\). Using the coordinate slope formula gives

$$ \frac{8-0}{3-1} = \frac{8}{2} = 4. $$

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

$$ \frac{8-0}{1-3} = \frac{8}{-2} = -4. $$

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:

$$ \frac{8-0}{3-1} = \frac{8}{2} = 4. $$

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.

1
Identify the two inputs.
Record the distinct endpoint values \(a\) and \(b\).
2
Write the two points.
Use \((a,f(a))\) and \((b,f(b))\), or transcribe the given coordinates carefully.
3
Subtract in matching order.
Calculate output difference over input difference: \(\frac{f(b)-f(a)}{b-a}\).
4
Check against both points.
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.

  1. The graph contains \((0,2)\) and \((5,12)\). What is the slope of the secant line through them?
  2. For \(f(x)=x^2\), find the secant slope between inputs \(2\) and \(4\). What are the two graph points?
  3. A graph contains \((-3,6)\) and \((1,-2)\). What slope results when the coordinate differences are taken in matching order?
  4. Why must the denominator \(x_2-x_1\) be nonzero in the coordinate slope formula?
  5. In the expression \(\frac{f(b)-f(a)}{b-a}\), which graph point corresponds to input \(a\)?

Test yourself: Calculus I final exam practice

Ready to check what you know? Work a full-length practice final, then open the complete worked solutions.

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers the full Calculus AB & BC curriculum (the core of Calculus I and II): full review, every practice question, and step-by-step solutions to each one.

QR code to download the Calc Pass app

Get the Calc Pass App

Scan to download and practice on the go, with instant scoring.

Calc Pass Volume 1: 1,114 Practice Questions book cover

Vol. 1: 1,114 Questions

The complete practice question bank, organized by AB & BC topic.

View on Amazon
Calc Pass Volume 2: Solutions Manual book cover

Vol. 2: Solutions Manual

Fully worked solutions to every question in Volume 1.

View on Amazon