Skip to content
mathismaths.com

Calculus · Lesson 2 of 4

Derivatives

The derivative measures instantaneous rate of change: the gradient of a curve at a single point.

What you will learn

  • See the derivative as the gradient of a tangent.
  • Use the power rule.
  • Find gradients and turning points.

Before you start: you should know gradient and limits. See Understanding Limits.

The idea

For a straight line, the gradient is the same everywhere. A curve is different: it is steep in some places and flat in others. The derivative tells you the gradient of a curve at any particular point. In other words, it is the instantaneous rate of change.

From chords to tangents

Pick a point on a curve and a second point a small distance hh further along. The straight line through them (a chord) has gradient

f(x+h)−f(x)h\frac{f(x + h) - f(x)}{h}

Now slide the second point closer, making hh smaller and smaller. The chord swings round until it just touches the curve at one point, forming the tangent. Its gradient is the derivative:

f′(x)=lim⁡h→0f(x+h)−f(x)hf'(x) = \lim_{h \to 0} \frac{f(x + h) - f(x)}{h}

This is differentiation from first principles.

Coordinate grid with shapesA coordinate grid from -1 to 4 across and -1 to 10 up, showing 2 shapes.-11234-112345678910
The curve y = x squared and its tangent at (1, 1), the line y = 2x - 1. The tangent's gradient, 2, is the derivative at x = 1.

Notation

If y=f(x)y = f(x), the derivative can be written f′(x)f'(x), dydx\dfrac{dy}{dx} or ddxf(x)\dfrac{d}{dx}f(x). The dydx\frac{dy}{dx} form reminds us it is a tiny change in yy divided by a tiny change in xx.

The power rule

Working from first principles every time would be slow. Fortunately, patterns emerge. For any power of xx:

ddx xn=nxn−1\frac{d}{dx}\, x^n = n x^{n-1}

Bring the power down in front, then reduce the power by one. Constants disappear (a flat line has gradient zero), and derivatives of sums are sums of derivatives.

Sorted into groups: Function, DerivativeFunction: x², x³, 5x², 7x. Derivative: 2x, 3x², 10x, 7.Functionx²x³5x²7xDerivative2x3x²10x7
The power rule: multiply by the power, then reduce the power by one.

Worked examples

Example 1: First principles

Differentiate f(x)=x2f(x) = x^2 from first principles.

  1. f(x+h)=(x+h)2=x2+2xh+h2f(x + h) = (x + h)^2 = x^2 + 2xh + h^2.
  2. f(x+h)−f(x)h=2xh+h2h=2x+h\dfrac{f(x + h) - f(x)}{h} = \dfrac{2xh + h^2}{h} = 2x + h.
  3. Let h→0h \to 0: the expression approaches 2x2x.

Answer: f′(x)=2xf'(x) = 2x, agreeing with the power rule.

Example 2: Using the rules

Differentiate y=4x3−5x2+7x−2y = 4x^3 - 5x^2 + 7x - 2 and find the gradient at x=2x = 2.

  1. Differentiate term by term: dydx=12x2−10x+7\dfrac{dy}{dx} = 12x^2 - 10x + 7.
  2. Substitute x=2x = 2: 12(4)−10(2)+7=48−20+7=3512(4) - 10(2) + 7 = 48 - 20 + 7 = 35.

Answer: dydx=12x2−10x+7\dfrac{dy}{dx} = 12x^2 - 10x + 7; gradient 3535 at x=2x = 2.

Example 3: Turning points

Find the turning points of y=x3−3xy = x^3 - 3x and say whether each is a maximum or minimum.

  1. Differentiate: dydx=3x2−3\dfrac{dy}{dx} = 3x^2 - 3.
  2. At a turning point the gradient is zero: 3x2−3=03x^2 - 3 = 0, so x=±1x = \pm 1.
  3. Find yy: at x=1x = 1, y=−2y = -2; at x=−1x = -1, y=2y = 2.
  4. Second derivative: d2ydx2=6x\dfrac{d^2y}{dx^2} = 6x. At x=1x = 1 it is positive, so this is a minimum; at x=−1x = -1 it is negative, so this is a maximum.

Answer: maximum at (−1,2)(-1, 2), minimum at (1,−2)(1, -2).

Rewrite roots and fractions as powers before differentiating: x=x1/2\sqrt{x} = x^{1/2} and 1x2=x−2\frac{1}{x^2} = x^{-2}.

Why it matters

Derivatives are everywhere change is measured. Velocity is the derivative of position and acceleration is the derivative of velocity. Economists talk about marginal cost, the derivative of total cost. Engineers find the dimensions that minimise material, and machine-learning algorithms train by following derivatives (gradients) downhill to reduce error.

Practice

Your turn. Type or choose an answer, then press Check. Getting one wrong is fine, that is what practice is for. You can try as many times as you like.

Question 1 of 8

Find the gradient of y=x3y = x^3 at x=2x = 2.

Question 2 of 8

Find the gradient of y=5x2y = 5x^2 at x=3x = 3.

Question 3 of 8

What is the derivative of 7x7x?

Question 4 of 8

What is the derivative of the constant 99?

Question 5 of 8

Find the gradient of y=x2+3xy = x^2 + 3x at x=1x = 1.

Question 6 of 8

Find the gradient of y=x2y = x^2 at x=−2x = -2.

Question 7 of 8

Find the xx-value of the turning point of y=x2−6xy = x^2 - 6x.

Question 8 of 8

Find the gradient of y=4x3y = 4x^3 at x=1x = 1.