Advanced Mathematics

The Derivative

The instantaneous rate of change of a function, the slope of its tangent, defined as a limit of slopes over shrinking intervals.

Needs a step first: 4

The average rate of change over [x,x+h][x, x+h] is f(x+h)−f(x)h\frac{f(x+h) - f(x)}{h}; the derivative f′(x)f'(x) is its limit as h→0h \to 0. Geometrically it is the slope of the tangent line; physically it is a speed, like velocity as the derivative of position. From the definition come the power rule ddxxn=nxn−1\frac{d}{dx}x^n = nx^{n-1} and every other rule of differentiation, and through them optimisation and gradients.

Where it shows up: Velocity and acceleration are derivatives of position, and every gradient used to train a model is a collection of derivatives.

How to hold it: In your head

See the derivative as the slope of the tangent and as a speed, the limit of average rates over shrinking intervals, and read what its sign and size say about a graph.

What knowing it looks like

  • Differentiate x2x^2 and 1x\frac{1}{x} from first principles.
  • Find the equation of the tangent to a curve at a given point.
  • Explain what the sign and size of f′(x)f'(x) say about the graph and about a quantity changing in time.

Test yourself

Use the definition of the derivative to find f′(x)f'(x) for f(x)=1xf(x) = \frac{1}{x}, then find the tangent to y=1xy = \frac{1}{x} at x=2x = 2.
Show the worked answer
f(x+h)−f(x)h=1h(1x+h−1x)=1h⋅x−(x+h)x(x+h)=−1x(x+h)\frac{f(x+h) - f(x)}{h} = \frac{1}{h}\left(\frac{1}{x+h} - \frac{1}{x}\right) = \frac{1}{h} \cdot \frac{x - (x+h)}{x(x+h)} = \frac{-1}{x(x+h)}. As h→0h \to 0 this tends to −1x2-\frac{1}{x^2}. At x=2x = 2: y=12y = \frac{1}{2} and slope −14-\frac{1}{4}, so the tangent is y−12=−14(x−2)y - \frac{1}{2} = -\frac{1}{4}(x - 2), that is y=1−x4y = 1 - \frac{x}{4}.

Needs a step first: 4

Learn it with an AI

Copy this prompt into any AI assistant. It will take you through step by step at your level and finish with the test above.

Be my maths tutor. I'm learning "The Derivative" (Core tier): The instantaneous rate of change of a function, the slope of its tangent, defined as a limit of slopes over shrinking intervals.
I already know: Limits and Continuity, Polynomials and Quadratics.
Teach it Socratically: first ask what I already know; then explain the core idea with one concrete example and why it's true; then give me three problems, one at a time, easy to hard. Wait for my answer, check every step, and point out mistakes without giving the answer away.
Finish by testing me with this: Use the definition of the derivative to find $f'(x)$ for $f(x) = \frac{1}{x}$, then find the tangent to $y = \frac{1}{x}$ at $x = 2$.
Use LaTeX for formulas. When you say where it's used later (machine learning, quantum mechanics), be specific.

On the way to

Recommended