Home › Chapter 18 › Gradients and differentiation

4. Gradients and differentiation

A straight line has the same steepness everywhere. A curve’s steepness changes from point to point. This section shows how to measure it, first by drawing and then exactly using algebra.

Prior knowledge Gradient of a straight line · coordinates · powers · solving quadratics · rate of change

Gradient of a curve at a point

The gradient of a curve at a point is the gradient of the tangent at that point.

Slide the point along y = x². When the tangent slopes up the gradient is positive, when it slopes down it is negative, and at the bottom it is flat (gradient 0).

How to draw a tangent and find its gradient

  1. Mark the point on the curve.
  2. Place a ruler so it touches the curve only at that point, with the curve balanced equally on both sides. Draw the line.
  3. Choose two points on the tangent that are far apart and easy to read (whole-number coordinates are best).
  4. Gradient = (change in y) ÷ (change in x). Use the scales on each axis.
Common mistakes Counting squares instead of using the axis scales; choosing points close together (small errors become big); getting the sign wrong. Rising left to right means positive, falling means negative.

Because you draw the tangent by eye, answers are estimates. Your answer may differ slightly from the true value. The gradient is also a rate of change: on a height–time graph, it is the speed.

Differentiation

Drawing tangents is slow. Differentiation gives an exact formula for the gradient at any point, called the derivative, written dy/dx.

The rule. If y = axⁿ then dy/dx = a × n × xⁿ⁻¹.
In words: multiply by the power, then reduce the power by 1.

For an expression with several terms, differentiate each term separately.

Worked example y = 4x³ − 5x² + 3x − 7.
dy/dx = 12x² − 10x + 3.
Gradient at x = 2: 12(4) − 10(2) + 3 = 31.
Worked example: where is the gradient …? Find the point on y = x² − 6x + 4 where the gradient is 4.
dy/dx = 2x − 6. Set 2x − 6 = 4, so x = 5. Then y = 25 − 30 + 4 = −1. The point is (5, −1).

Equation of a tangent

  1. Differentiate and substitute the x-value: this is the gradient m.
  2. Find y on the curve at that x. This is the point the tangent passes through.
  3. Use y = mx + c with that point to find c.
Worked example Tangent to y = x² + 2x at x = 1.
dy/dx = 2x + 2 = 4 at x = 1, so m = 4. Point: y = 1 + 2 = 3, so (1, 3).
3 = 4(1) + c, so c = −1. The tangent is y = 4x − 1.

Stationary points

A stationary point is where the curve is momentarily flat, so dy/dx = 0. Maximum and minimum points are stationary points.

  1. Find dy/dx.
  2. Solve dy/dx = 0 to find the x-values.
  3. Substitute into y to find the y-values.
  4. Decide whether each is a maximum or a minimum (see below).
Worked example Find and classify the stationary points of y = x³ − 3x.
  1. dy/dx = 3x² − 3.
  2. 3x² − 3 = 0 → x² = 1 → x = 1 or x = −1.
  3. x = 1: y = 1 − 3 = −2. x = −1: y = −1 + 3 = 2. Points (1, −2) and (−1, 2).
  4. The graph is cubic with a positive x³, so it rises, then falls, then rises. So (−1, 2) is a maximum and (1, −2) is a minimum. (Or check the gradient either side: at x = 0, dy/dx = −3, so the curve is falling between the two points.)
Telling max from min Look at the gradient just before and just after the point. Gradient + then −: maximum (a hill). Gradient − then +: minimum (a valley). For a quadratic, use the sign of x²: positive means minimum.

Application: greatest height

Worked example A ball’s height is h = 20t − 5t² metres after t seconds. When is it highest, and how high?
dh/dt = 20 − 10t = 0 → t = 2 seconds. h = 20(2) − 5(4) = 20 metres.

In problems like this, the same idea (set the derivative to 0) finds the greatest area, volume or profit, or the least cost.

← Solving with graphsGo to practice →