Derivative in this visualization
The derivative of a function at a point , written or at , is the slope of the tangent line to the graph there: the instantaneous rate of change of . It is defined as a limit of slopes of secant lines. This page builds that limit on smooth curves, at corners, cusps, vertical tangents and jumps, and on a position–time graph.
The blue point P sits on the curve at , the red point Q at . The yellow line through them is a secant line; its slope is the difference quotient
Now
The tangent line at P has slope equal to the derivative, when this limit exists and is finite:
Now
As Q slides toward P, the secant turns into the tangent and its slope closes in on . The limit has to be the same whether Q comes from the left or from the right. The page never lets reach 0, where the quotient would be . With for and for , the derivative is also written .
Things to notice
- On , , and , the slopes from both sides approach the same number.
- at 0: the two sides approach and . A corner has no derivative, although the function is continuous there.
- at 0: and , a cusp.
- at 0: both sides grow without bound. The tangent is vertical, so there is no finite derivative.
- The jump example at 1: a function that is not continuous cannot be differentiable.
Where it is used
- Velocity is the derivative of position, as in the page’s Motion mode. In general the derivative is the rate of change of any quantity: marginal cost in economics, a reaction rate in chemistry, a growth rate in biology.
- Near , the tangent line is the best straight-line approximation, . Newton’s method for solving equations follows tangent lines like this one.
- At a maximum or minimum inside an interval, a differentiable function has : the way calculus finds the best value.
Controls
- Drag Q, or use the |h| fader or h → 0 button in the panel, to change . Left / Right sets its sign.
- Drag P or turn the Point knob to move . Drag the background to pan; use + and − to zoom.
- Compare & record opens a window plotting the secant slope against on both sides and collecting the values left by the approach. Values are still collected while the window is closed.
- Motion turns the curve into a position : the secant slope becomes an average velocity, the derivative the instantaneous velocity .
- Presentation mode opens a full-screen view for projectors, with large type and keyboard control (Space runs h → 0, Page Up / Page Down step through the highlights, H hides the derivative).
Related
- D06Derivative function
- D07Linear approximation
- D10Related ratesPlanned
- D01Limit
Further reading: Wikipedia: Derivative; OpenStax, Calculus Volume 1, 3.1 Defining the Derivative.