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)=x3−x,a=−1,b=2f(x) = x^{3} - x,\quad a = -1,\quad b = 2

y=2x+2\displaystyle y = 2x + 2
Show the work
  1. The two points on the curve

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

    f(−1)=0f(2)=6\begin{gathered} f(-1) = 0 \\ f(2) = 6 \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=6−02−(−1)=2\begin{aligned} m &= \frac{f(b) - f(a)}{b - a} \\ &= \frac{6 - 0}{2 - \left(-1\right)} \\ &= 2 \end{aligned}
  3. Point-slope form of a line

    Through (−1,0)(-1, 0) with slope 22, then solved for yy.

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

    y=2(x+1)  ⇒  y=2x+2\begin{aligned} y &= 2\left(x + 1\right) \;\Rightarrow\; y \\ &= 2x + 2 \end{aligned}
  4. Result

    The secant line through the two points.

    y=2x+2y = 2x + 2
Drag to pan. Scroll or pinch to zoom. Arrow keys pan and + / − zoom when the graph has focus.
  • y = x^3 - x
  • y = 2x + 2

Points on the graph

  • y = x^3 - x: zero (-1, 0)
  • y = x^3 - x: zero (0, 0)
  • y = x^3 - x: zero (1, 0)
  • y = x^3 - x: maximum (-0.57735, 0.3849)
  • y = x^3 - x: minimum (0.57735, -0.3849)
  • y = 2x + 2: zero (-1, 0)
  • y = x^3 - x and y = 2x + 2: intersection (-1, 0)
  • y = x^3 - x and y = 2x + 2: intersection (2, 6)

Worked examples