Skip to content
All apps

Derivative as a sequence of secants

About this app

The derivative as a limit: three sequences hₙ → 0 (right, left, alternating) yield three sequences of secants — for x², x³, sin(x) they merge into the tangent; for |x|, √x and x·sin(1/x) they fail visibly.

The difference quotient

The derivative is defined as f′(x₀) = lim (f(x₀ + h) − f(x₀))/h as h → 0. Every sequence hₙ → 0 gives a sequence of secant lines through x₀ and x₀ + hₙ with slopes mₙ. f is differentiable at x₀ if these slope sequences converge to the same value for every null sequence. For f(x) = x² the calculation gives mₙ = 2x₀ + hₙ, so f′(x₀) = 2x₀.

What the app shows

Six examples: x² and x³ at x₀ = 1, sin(x) at 0, and |x|, √x and x·sin(1/x) at 0. Three sequences hₙ = ±h₀/n and (−1)ⁿ·h₀/n approach 0 from the right, from the left and alternating; their secants appear in the plot together with a slope triangle marking Δx and Δy. The result panel lists the slope sequences and reports “differentiable”, “kink”, “vertical tangent” or “sequence oscillates”. A limit panel works out the limit symbolically for each example.

Things to try

Raise N up to 25 and reduce h₀: for x², all secants settle onto the tangent. For |x| the slopes tend to +1 from the right and −1 from the left, so the one-sided limits disagree. For √x they grow without bound. For x·sin(1/x) the function is continuous, but the secant slope sin(1/hₙ) oscillates between −1 and 1. Switch off individual sequences to look at each side separately.

Frequently asked questions

When is a function differentiable?
f is differentiable at x₀ if the limit of the difference quotient (f(x₀ + h) − f(x₀))/h as h → 0 exists and is finite. That limit is f′(x₀). The left-hand and right-hand limits must agree.
Why is |x| not differentiable at 0?
The difference quotient is |h|/h, which is +1 for h > 0 and −1 for h < 0. The one-sided limits differ, so the graph has a corner at 0. The function is continuous there but not differentiable.
Is every continuous function differentiable?
No. Every differentiable function is continuous, but not the other way round. Counterexamples are |x| with a corner, √x with a vertical tangent at 0, and x·sin(1/x) with f(0) = 0, whose secant slopes oscillate at 0.
What does the limit panel in the app show?
For each of the six examples it shows the symbolic calculation of the difference quotient, such as mₙ = 2x₀ + hₙ for x² or mₙ = sin(1/hₙ) for x·sin(1/x). It ends with the derivative or the reason it does not exist.

Subject: Analysis (one-dimensional)

More from Analysis (one-dimensional)

A VisuApp by heyprof: interactive, free in your browser, no sign-up. What is a VisuApp? · All apps