Gradient of a curve and differentiation from first principles

Gradient of a curve and differentiation from first principles

Spec G1 · AQA A-Level Maths: Revision notes

Studying this course? Keep your progress in one place.

Key facts

  • The gradient of a curve at a point is the gradient of the tangent there; the derivative f′(x)=dydxf'(x)=\frac{dy}{dx} is a rate of change.
  • The chord gradient f(x+h)−f(x)h\frac{f(x+h)-f(x)}{h} tends to the tangent gradient as h→0h\to0.
  • First principles: f′(x)=lim⁡h→0f(x+h)−f(x)hf'(x)=\lim_{h\to0}\frac{f(x+h)-f(x)}{h}, and ddx(xn)=nxn−1\frac{d}{dx}(x^n)=nx^{n-1}.
  • The second derivative f′′(x)=d2ydx2f''(x)=\frac{d^2y}{dx^2} is the rate of change of the gradient.
  • Turning points of ff are where the gradient function meets the xx-axis.
  • f′(x)f'(x)lim⁡h→0f(x+h)−f(x)h\displaystyle\lim_{h\to0}\dfrac{f(x+h)-f(x)}{h}

Gradient and the tangent

The gradient at a point is the gradient of the tangent there.

A curve has a different gradient at each point. The tangent touches the curve and has the same direction. The gradient function gives the gradient at a general point.

Gradient is the rate at which yy changes with xx: if hh is height and tt is time, dhdt\frac{dh}{dt} is the velocity.

−1−0.50.511.522.53−112345xy(1, 1)y = x²tangent: y = 2x − 1
The tangent to y = x² at (1, 1) has gradient 2.

What is the gradient of a curve at a point?

From chord to tangent

As the second point approaches the first, the chord gradient approaches the tangent gradient.

Take P(x,f(x))P(x,f(x)) and QQ with xx-coordinate x+hx+h. The chord PQPQ has gradient f(x+h)−f(x)h\frac{f(x+h)-f(x)}{h}. As h→0h\to0, Q→PQ\to P and the chord becomes the tangent.

This is differentiation from first principles.

0.511.522.533.544.552468101214161820xyP(3, 9)y = x²chord
Chord from P(3, 9). As h tends to 0 it becomes the tangent (gradient 6).

Worked example

Find the gradient of the chord from P(3,9)P(3,9) on y=x2y=x^2 to x=3+hx=3+h, then let h→0h\to0.

For f(x)=x2f(x)=x^2 at x=2x=2 the chord gradient is 4+h4+h. What is the tangent gradient?

First principles for powers

Find f(x+h)−f(x)h\frac{f(x+h)-f(x)}{h}, simplify, then let h→0h\to0.

For x2x^2: (x+h)2−x2h=2x+h→2x\frac{(x+h)^2-x^2}{h}=2x+h\to2x. For x3x^3: (x+h)3−x3h=3x2+3xh+h2→3x2\frac{(x+h)^3-x^3}{h}=3x^2+3xh+h^2\to3x^2. The pattern is ddx(xn)=nxn−1\frac{d}{dx}(x^n)=nx^{n-1}.

For a function such as 3x2−5x3x^2-5x, apply the definition to the whole expression, and write "as h→0h\to0" in your working.

−1−0.50.511.522.532468xy(1, 1)y = x²chord
The chord from x = 1 to x = 1 + h on y = x² has gradient 2 + h. As h shrinks to 0 the chord becomes the tangent, gradient 2.
  • ddx(xn)\dfrac{d}{dx}\left(x^n\right)nxn−1nx^{n-1}

Worked example

Differentiate f(x)=3x2−5xf(x)=3x^2-5x from first principles.

For f(x)=x3f(x)=x^3, which is the chord gradient before taking the limit?

Tangents and rates of change

The gradient at x=ax=a is f′(a)f'(a) and the tangent is y−f(a)=f′(a)(x−a)y-f(a)=f'(a)(x-a).

To find where the gradient has a given value, solve f′(x)=valuef'(x)=\text{value}.

The mean rate of change between two points is a chord gradient; the instantaneous rate is the tangent gradient. For h=12t−t3h=12t-t^3 between t=1t=1 and 1.11.1 the mean velocity is 8.698.69 m s−1^{-1}, but at t=1t=1 it is 99 m s−1^{-1}.

0.511.522.533.5−55101520xy(2, 2)y = 3x² − 5xtangent: y = 7x − 12
The tangent to y = 3x² − 5x at x = 2 touches the curve at (2, 2).

Worked example

Find the tangent to f(x)=3x2−5xf(x)=3x^2-5x at x=2x=2.

For f(x)=3x2−5xf(x)=3x^2-5x, what is the gradient at x=1x=1?

Second derivatives

Differentiating again gives d2ydx2\frac{d^2y}{dx^2}, the rate of change of the gradient.

y=x3y=x^3 has dydx=3x2\frac{dy}{dx}=3x^2 and d2ydx2=6x\frac{d^2y}{dx^2}=6x.

For h=12t−t3h=12t-t^3, dhdt=12−3t2\frac{dh}{dt}=12-3t^2 is the velocity and d2hdt2=−6t\frac{d^2h}{dt^2}=-6t is the rate of change of velocity. A negative f′′(x)f''(x) means the gradient is decreasing.

−2−1.5−1−0.50.511.52−8−6−4−224681012xyy = x³dy/dx = 3x²d²y/dx² = 6x
Each differentiation lowers the power: x³, then 3x², then 6x.

Find d2ydx2\frac{d^2y}{dx^2} for y=x4y=x^4.

Sketching the gradient function

Read the gradient at several points: zero at turning points, positive where increasing, negative where decreasing.

  • At a minimum or maximum the gradient is 0, so f′f' meets the xx-axis.
  • Where the curve increases, f′(x)>0f'(x)>0; where it decreases, f′(x)<0f'(x)<0.
  • Where the curve is steepest, ∣f′(x)∣|f'(x)| is largest.

A quadratic has a straight-line gradient function; a cubic has a quadratic one.

−1−0.50.511.522.53−2246xyminimum (1, 1)f′ = 0y = f(x) = x² − 2x + 2y = f′(x) = 2x − 2
At the minimum (x = 1) the gradient function crosses the x-axis.

A curve has a maximum at x = 4. What does its gradient function do there?

Try an exam question

Differentiate f(x)=x2+3xf(x)=x^2+3x from first principles.

[4 marks]

That's the notes covered.

Carry on to the next subtopic.

Try a question

Find the gradient of the chord PQPQ.

1 mark, marked against the mark scheme

Revision notes