Skip to main content
AI Graphing Calculator

Learn · 3 min read

Derivatives: Understanding Rate of Change and Slope

The derivative measures how fast things change

The derivative of a function is a new function that reports, at each point, how fast the original function is changing. If f(x) describes a quantity — position, price, population — then f′(x), the derivative at x, is the rate at which that quantity is changing when the input is x. A positive derivative means the quantity is growing; a negative one means it is shrinking; zero means it is momentarily flat.

Concretely, f′(x) is the slope of the tangent line to the curve at x. Zoom in close enough on almost any smooth curve and it looks like a straight line — the tangent line — and its steepness is the derivative. This is why the derivative has a geometric meaning and a physical meaning at the same time: slope on the graph, rate of change in the world.

Average vs. instantaneous rate of change

Over an interval, the average rate of change of f from x = a to x = b is (f(b) − f(a)) / (b − a) — rise over run of the secant line between the two points. That is exactly how you compute average speed: distance traveled divided by time elapsed. But it says nothing about what happened between a and b.

The instantaneous rate of change is what you get when the interval shrinks to nothing: the limit of (f(a+h) − f(a)) / h as h approaches zero. That limit, when it exists, is f′(a). In practice the calculator computes derivatives numerically from this idea, and you can watch the secant line tilt into the tangent line as the interval shrinks. Instantaneous rate is what a speedometer shows; average rate is what the trip computer shows.

Reading increasing and decreasing behavior

The sign of the derivative tells you the behavior of the function. Where f′(x) > 0, the function is increasing — the graph climbs left to right. Where f′(x) < 0, it is decreasing. Where f′(x) = 0, the tangent is horizontal, and the function is momentarily neither climbing nor falling.

Take f(x) = x^2. Its derivative is f′(x) = 2*x, which is negative for x < 0 and positive for x > 0. Sure enough, the parabola descends toward the origin from the left and ascends away from it on the right. For f(x) = sin(x), the derivative is cos(x): the sine wave climbs where the cosine is positive and falls where it is negative, with flat peaks exactly where cos(x) = 0.

Critical points and local extrema

Points where f′(x) = 0 or where the derivative does not exist are called critical points, and they are the candidates for local maxima and minima — the peaks and valleys of the curve. At x = 0, f(x) = x^2 has derivative 2*x = 0, and indeed (0, 0) is the bottom of the parabola: the function falls, flattens, then rises.

But a zero derivative does not guarantee a peak or valley. For f(x) = x^3, the derivative is 3*x^2, which is zero at x = 0 — yet the function passes straight through, flattening for an instant at an inflection point and then continuing to climb. To classify a critical point, check whether the derivative changes sign around it: negative-to-positive is a local minimum, positive-to-negative is a local maximum, no change means neither.

The second derivative and concavity

Differentiating twice gives f′′(x), the second derivative — the rate of change of the rate of change. Geometrically it describes concavity: where f′′(x) > 0 the curve bends upward like a cup (concave up), and where f′′(x) < 0 it bends downward like a frown (concave down).

For f(x) = x^3, the second derivative is f′′(x) = 6*x: negative left of the origin, positive right of it. The cubic bends downward on the left, upward on the right, and switches concavity at x = 0 — that switch is an inflection point. Concavity completes the picture of a curve's shape once the first derivative has told you where it rises and falls.

Try it in the calculator

Type any of these into the graphing calculator to see the ideas above in action:

  • x^3 - 3*x
  • sin(x)
  • exp(x)
  • x^2 * sin(x)

Key takeaways

  • The derivative f′(x) is the instantaneous rate of change of f at x — the slope of the tangent line.
  • Positive derivative means increasing, negative means decreasing, zero means momentarily flat.
  • Critical points (where f′ = 0 or is undefined) are the candidates for local maxima and minima; the sign change of f′ classifies them.
  • A zero derivative does not always mark an extreme — x^3 has f′(0) = 0 but keeps climbing through an inflection point.
  • The second derivative f′′ describes concavity: cup-up where positive, frown-down where negative.

Frequently asked questions

What is the difference between average and instantaneous rate of change?

The average rate over [a, b] is (f(b) − f(a)) / (b − a), the slope of the secant line between the endpoints. The instantaneous rate at a is the limit of that quotient as the interval shrinks to zero — the slope of the tangent line, i.e., f′(a).

If the derivative is zero at a point, is it always a maximum or minimum?

No. A zero derivative only makes the point a critical point. For f(x) = x^3, f′(0) = 0 but the function continues increasing through x = 0 (an inflection point). Check whether f′ changes sign on either side to classify the point.

What does the second derivative tell you?

It describes concavity: where f′′(x) > 0 the curve bends upward (concave up), and where f′′(x) < 0 it bends downward (concave down). Points where concavity switches are inflection points.

Related pages