science tinker

Calculus explorer: gradients, tangents and areas

Type a function or pick one. In Gradient mode, drag the red point along the curve to see the tangent and its gradient, and shrink the orange chord to see where the derivative comes from. In Area mode, fill the area under the curve with strips and watch the estimate close in on the integral.

The gradient of a curve

A straight line has the same gradient (steepness) everywhere, but a curve does not. The gradient of a curve at a point is the gradient of the tangent there: the straight line that just touches the curve at that point. Finding it is called differentiation, and the formula that gives the gradient at every x is the derivative, written dy/dx or f′(x).

Where the derivative comes from

Draw a chord from the point to another point a small distance h further along. Its gradient is (f(x + h) − f(x)) ÷ h. As h gets smaller, the chord turns towards the tangent, and its gradient gets closer to the gradient of the tangent. The derivative is this limit as h → 0. Move the slider to see it happen.

Rules worth knowing

  • Power rule: the derivative of xⁿ is nxⁿ⁻¹, so x² → 2x and x³ → 3x².
  • The derivative of a constant is 0, and constants in front stay: 5x² → 10x.
  • sin x → cos x, cos x → −sin x, eˣ → eˣ and ln x → 1/x.
  • At a turning point (maximum or minimum) the gradient is 0.

Area under a curve

To find the area between a curve and the x-axis from a to b, split it into thin strips and add their areas. More strips give a better estimate. The exact area is the definite integral ∫ₐᵇ f(x) dx, found by integration, which is the reverse of differentiation: find an antiderivative F, then work out F(b) − F(a). Area below the x-axis comes out negative. The trapezium rule taught in school is the “Trapeziums” option here.

Plot several functions together in the graphing calculator, and see calculus used for motion in the SUVAT calculator.

Questions students ask

What does the derivative tell you?

The derivative tells you the gradient of a curve at any point, which is the rate at which y changes as x changes; for a distance-time graph it is the speed.

Why is the derivative of x² equal to 2x?

The derivative of x² is 2x because the chord gradient ((x + h)² − x²) ÷ h simplifies to 2x + h, which becomes 2x as h shrinks to 0.

How do rectangles estimate the area under a curve?

Rectangles estimate the area under a curve by splitting it into thin strips of equal width and adding their areas; with more, thinner strips the estimate approaches the exact integral.

Check yourself

3 quick questions. Tap an answer to see if you are right.

1. What does the derivative of a curve at a point tell you?

2. What is the derivative of x²?

3. What does a definite integral measure on a graph?

More math tools

Know someone who needs this?

It’s free for every student. Send it to your class group chat.

Updated · Free, no sign-up ·

Connected tools

The same idea from another angle, across the site.