Gradient

Courses

∇\nabla∇The maths behind AI0/72
π\piπMaths0/84
⋆\star⋆AI for everyone0/10
Γ\GammaΓGame theory0/49
py\texttt{py}pyPython for AI0/15
y^\hat{y}y^​Build your own AI0/15
All courses

Tuition

My tuitionOlympiad trackCompetitions

Practice

ProjectsAsk a questionTrain on a GPUExplorationsMaths StoriesUnsolved problemsPlaygroundScience labsMock testsOlympiad

Reference

GlossaryBlogDiscoveries
Explorations › Feel the change › lesson 3 of 6

Slopes everywhere: the derivative

Slide a point along a curve and record the slope at every spot. The slopes make a new curve of their own, the derivative.

You can now find the slope of a curve at one point. Do it at every point and something new appears: a whole curve made of slopes.

Build the slope curve by hand

Start at the left of x³ − 3x and slide the point slowly to the right. Each place you visit drops a black dot on the lower board at height = the slope there.

  • On the left the curve climbs steeply: big positive dots.
  • At the top of the hump the curve is flat for an instant: the dot sits on 0.
  • Going down the other side: negative dots.
  • At the bottom of the dip: 0 again, then positive.

Now press Show the whole slope curve. Your dots lie on it. That curve is the derivative, written f′(x)f'(x)f′(x) or dydx\frac{dy}{dx}dxdy​.

Reading one from the other

on the curveon the derivative
climbingabove zero
fallingbelow zero
a peak or a dipcrosses zero
steepestfurthest from zero

This is how you find the highest or lowest points of anything: look for where the derivative is zero.

Worked example

For f(x)=x2f(x) = x^2f(x)=x2 the slope at xxx is 2x2x2x: at x=1x = 1x=1 it is 2, at x=−3x = -3x=−3 it is −6-6−6, and at 0 it is 0, the bottom of the bowl. Try x² in the model: the slope curve is a straight line through the origin.

A few rules worth knowing

Mathematicians found shortcuts so you do not have to zoom every time:

ddxx2=2xddxx3=3x2ddxsin⁡x=cos⁡x\frac{d}{dx}x^2 = 2x \qquad \frac{d}{dx}x^3 = 3x^2 \qquad \frac{d}{dx}\sin x = \cos xdxd​x2=2xdxd​x3=3x2dxd​sinx=cosx

Pick sin x in the model and check: the slope curve is a wave too, shifted a quarter turn. That is cosine.

What to remember

  • The derivative is the slope of a curve at every point, drawn as a curve of its own.
  • Where the curve climbs the derivative is positive; where it falls, negative.
  • Peaks and dips are where the derivative is zero.
  • Shortcut rules: x2→2xx^2 \to 2xx2→2x, x3→3x2x^3 \to 3x^2x3→3x2, sin⁡x→cos⁡x\sin x \to \cos xsinx→cosx.
Zooming in until a curve is straightNext