Secant Line Calculator

Type a function and two values of x to find the secant line.

Use x. Type powers with ^, and functions with brackets: sin(x), e^(2x), ln(x), sqrt(x).

First xaa

A number such as 1, -1/2 or 0.5.

Second xbb

A different number from the first.

Try

Result

You enteredf(x)=x,a=1,b=4f(x) = \sqrt{x},\quad a = 1,\quad b = 4

y=13x+23\displaystyle y = \frac{1}{3}x + \frac{2}{3}
Show the work
  1. The two points on the curve

    A secant line cuts the curve at two points; find their heights.

    f(1)=1f(4)=2\begin{gathered} f(1) = 1 \\ f(4) = 2 \end{gathered}
  2. Slope of the secant

    The slope is the rise over the run between the two points: the average rate of change.

    m=f(b)−f(a)b−a=2−14−1=13\begin{aligned} m &= \frac{f(b) - f(a)}{b - a} \\ &= \frac{2 - 1}{4 - 1} \\ &= \frac{1}{3} \end{aligned}
  3. Point-slope form of a line

    Through (1,1)(1, 1) with slope 13\frac{1}{3}, then solved for yy.

    Using y−y1=m(x−x1)y - y_1 = m(x - x_1)

    y−1=13(x−1)  ⇒  y=13x+23\begin{aligned} y - 1 &= \frac{1}{3}\left(x - 1\right) \;\Rightarrow\; y \\ &= \frac{1}{3}x + \frac{2}{3} \end{aligned}
  4. Result

    The secant line through the two points.

    y=13x+23y = \frac{1}{3}x + \frac{2}{3}
Drag to pan. Scroll or pinch to zoom. Arrow keys pan and + / − zoom when the graph has focus.
  • y = √x
  • y = (1/3)x + 2/3

Points on the graph

  • y = √x and y = (1/3)x + 2/3: intersection (1, 1)
  • y = √x and y = (1/3)x + 2/3: intersection (4, 2)

Worked examples