Mathematics/Lessons/Differentiation/The Power Rule & Gradient Functions
Pure · Differentiation · Year 1

The Power Rule & Gradient Functions

One shortcut replaces every first-principles derivation: multiply by the power, drop it by one. It works for roots and reciprocals too — and differentiating twice reveals a curve's shape.

10 min read 4 worked examples

The power rule

Deriving every gradient from first principles would be exhausting. Fortunately the pattern we proved for $x^2$ and $x^3$ generalises to a single shortcut, the power rule:

$\dfrac{d}{dx}\left(x^n\right) = n\,x^{n-1}.$

In words: multiply by the power, then reduce the power by one. This works for any constant power $n$ — positive, negative, or fractional — which is what makes it so powerful. The notation $\dfrac{dy}{dx}$ (read "dee-y by dee-x") means the derivative of $y$ with respect to $x$, and is used interchangeably with $f'(x)$.

Where the rule comes from

The last lesson proved this separately for $x^2$ and $x^3$, and the pattern was hard to miss. The same argument runs for a general power $n$ — the only extra ingredient is the binomial theorem to expand $(x+h)^n$.

MethodExpand with the binomial theorem, then let h → 0
1
Start from the definition: $f'(x) = \lim_{h\to 0}\dfrac{(x+h)^n - x^n}{h}$.
First principles.
2
Expand the bracket: $(x+h)^n = x^n + n\,x^{n-1}h + \binom{n}{2}x^{n-2}h^2 + \cdots + h^n$.
Binomial theorem.
3
Subtract $x^n$: the numerator becomes $n\,x^{n-1}h + \binom{n}{2}x^{n-2}h^2 + \cdots + h^n$.
The $x^n$ terms cancel.
4
Every surviving term contains at least one $h$, so dividing by $h$ leaves $n\,x^{n-1} + \binom{n}{2}x^{n-2}h + \cdots + h^{n-1}$.
Cancel one $h$ from each term.
5
Let $h\to 0$: every term still carrying an $h$ vanishes, leaving $f'(x) = n\,x^{n-1}$.
Only the $h$-free term survives.
▪ proved
You don't need to know this proof

This is here so the rule isn't a black box — you will not be asked to reproduce it. First-principles questions only ever use small positive integer powers like $x^2$ or $x^3$, exactly as in the last lesson; for everything else you simply use the power rule. One honest caveat if you're curious: the binomial theorem expands $(x+h)^n$ for positive integer $n$, so the argument above settles that case. The rule genuinely does hold for negative and fractional powers too, but proving those needs tools you'll meet later in the course.

Why the rule covers roots and reciprocals too

The trick is to rewrite every term as a power of $x$ before differentiating. A square root is a power: $\sqrt{x} = x^{1/2}$. A reciprocal is a negative power: $\dfrac{1}{x^2} = x^{-2}$. Once written this way, the power rule applies directly — for example $\dfrac{d}{dx}\!\left(x^{1/2}\right) = \tfrac12 x^{-1/2}$. Converting to index form first is the single habit that unlocks the whole topic.

Two rules for building up expressions

Constant multiple: $\dfrac{d}{dx}\!\left(k\,f(x)\right) = k\,f'(x)$  — a constant factor just comes along for the ride.
Sum (and difference): $\dfrac{d}{dx}\!\left(f(x) \pm g(x)\right) = f'(x) \pm g'(x)$  — differentiate term by term.

Together these mean you can differentiate any polynomial by handling each term separately. Two special cases fall out: the derivative of $kx$ is $k$ (a straight line has constant gradient), and the derivative of a constant is $0$ (a horizontal line has zero gradient).

The second derivative

Differentiating once gives the gradient function $f'(x)$. Differentiating again gives the second derivative, written $f''(x)$ or $\dfrac{d^2y}{dx^2}$. It measures the rate of change of the gradient — how quickly the slope itself is changing. It will be the key tool for classifying maximum and minimum points two lessons from now, and it also tells you where a curve is convex ($f''(x)>0$, curving upward) or concave ($f''(x)<0$, curving downward).

Sketching the gradient function

Because $y=f'(x)$ measures the gradient of $y=f(x)$ at every point, you can sketch one directly from a sketch of the other — without ever finding an equation. Three facts turn a picture of $f$ into a picture of $f'$:

Wherever $f$ is increasing (sloping up), $f'(x)>0$ — the gradient graph sits above the $x$-axis.
Wherever $f$ is decreasing (sloping down), $f'(x)<0$ — the gradient graph sits below the $x$-axis.
At every stationary point of $f$ (a peak, trough, or flat inflection), the gradient is momentarily $0$, so $f'(x)$ crosses the $x$-axis exactly there.

Reading a curve left to right and tracking whether it's climbing, falling, or momentarily flat is enough to plot the sign and zeros of the gradient function — the actual steepness (how far above or below the axis $f'$ sits) is harder to pin down exactly without an equation, but the shape and sign pattern are always found this way.

Image pending
gradient-function-diagram.png
A curve $y=f(x)$ sketched above its gradient function $y=f'(x)$, with dashed verticals showing how each peak, trough, and stationary point of $f$ lines up with a sign change or zero of $f'$.
Strategy — always convert to index form first

Before differentiating, rewrite roots, reciprocals and fractions as powers of $x$: $\sqrt{x}\to x^{1/2}$, $\dfrac{3}{x}\to 3x^{-1}$, $\dfrac{x^2+1}{x}\to x + x^{-1}$ (split the fraction). Only once every term is $k x^n$ can you apply "multiply by the power, drop it by one" cleanly. Trying to differentiate a root or a fraction without converting is where most marks are lost.

Worked example 1

Differentiate a polynomial
Find $\dfrac{dy}{dx}$ for $y = 4x^3 - 5x^2 + 7x - 2$.
MethodDifferentiate term by term with the power rule
1
$4x^3 \to 4\cdot 3x^2 = 12x^2$.
Multiply by 3, drop the power.
2
$-5x^2 \to -5\cdot 2x = -10x$.
Multiply by 2, drop the power.
3
$7x \to 7$ (since $\tfrac{d}{dx}(7x)=7$), and $-2 \to 0$ (constant).
Linear term gives its coefficient; constant vanishes.
4
Combine: $\dfrac{dy}{dx} = 12x^2 - 10x + 7$.
Sum the term derivatives.
▪ solved
Examiner's eye

Work strictly term by term and you won't drop anything. The two easy-to-miss terms are the linear one ($7x$ differentiates to the bare constant $7$) and the constant ($-2$ differentiates to $0$, disappearing entirely). Every term of a polynomial reduces its power by exactly one.

Worked example 2

Roots and reciprocals · convert to index form first
Differentiate $y = \sqrt{x} + \dfrac{3}{x^2}$ with respect to $x$.
MethodRewrite as powers, then apply the rule
1
Rewrite: $\sqrt{x} = x^{1/2}$ and $\dfrac{3}{x^2} = 3x^{-2}$, so $y = x^{1/2} + 3x^{-2}$.
Index form.
2
Differentiate $x^{1/2}$: $\tfrac12 x^{-1/2}$.
Multiply by $\tfrac12$, subtract 1 from the power.
3
Differentiate $3x^{-2}$: $3\cdot(-2)x^{-3} = -6x^{-3}$.
The power $-2$ comes down.
4
So $\dfrac{dy}{dx} = \tfrac12 x^{-1/2} - 6x^{-3}$, i.e. $\dfrac{1}{2\sqrt{x}} - \dfrac{6}{x^3}$.
Convert back for a tidy answer.
▪ solved
The key insight — subtracting 1 from any power

The power rule doesn't care whether $n$ is a fraction or negative: for $x^{1/2}$, one less than $\tfrac12$ is $-\tfrac12$; for $x^{-2}$, one less than $-2$ is $-3$. The arithmetic "$n-1$" runs the same regardless. Converting the final answer back into root and fraction form is good practice, but the differentiating itself happens entirely in index form.

Worked example 3

Second derivative and a gradient value
Given $y = 2x^3 - 6x^2 + 4$, find $\dfrac{dy}{dx}$ and $\dfrac{d^2y}{dx^2}$. Evaluate the gradient at $x = 2$, and state whether the curve is convex or concave there.
MethodDifferentiate twice, then evaluate each
1
First derivative: $\dfrac{dy}{dx} = 6x^2 - 12x$.
Power rule term by term.
2
Second derivative: $\dfrac{d^2y}{dx^2} = 12x - 12$.
Differentiate again.
3
Gradient at $x=2$: $6(2)^2 - 12(2) = 24 - 24 = 0$.
Substitute into $\tfrac{dy}{dx}$.
4
Second derivative at $x=2$: $12(2) - 12 = 12 > 0$, so the curve is convex there.
$f''>0$ means curving upward.
▪ solved
Look deeper — what the second derivative tells you

At $x=2$ the gradient is $0$ (a flat spot) and the second derivative is positive, meaning the gradient is increasing through that point — the curve is bowl-shaped, or convex. That's exactly the signature of a minimum, which the stationary-points lesson will make precise. The sign of $f''$ is the fingerprint distinguishing a valley ($f''>0$) from a peak ($f''<0$).

Worked example 4

Sketching a gradient function · from the shape of the original curve
The curve $y=f(x)$ increases from left to right until it reaches a local maximum at $x=-1$, then decreases until a local minimum at $x=2$, then increases again for all $x>2$. Sketch the graph of $y=f'(x)$, marking where it crosses the $x$-axis and the sign of $f'(x)$ in each region.

No equation is given, and none is needed — the gradient's sign and zeros follow entirely from where $f$ is climbing, falling, or momentarily flat.

MethodTrack increasing/decreasing regions and stationary points
1
For $x<-1$: $f$ is increasing, so $f'(x)>0$ — the gradient graph is above the $x$-axis here.
Climbing curve, positive gradient.
2
At $x=-1$: a local maximum, so $f'(-1)=0$ — the gradient graph crosses the $x$-axis here.
Stationary point.
3
For $-1<x<2$: $f$ is decreasing, so $f'(x)<0$ — the gradient graph dips below the $x$-axis.
Falling curve, negative gradient.
4
At $x=2$: a local minimum, so $f'(2)=0$ — the gradient graph crosses back up through the $x$-axis.
Second stationary point.
5
For $x>2$: $f$ is increasing again, so $f'(x)>0$ — the gradient graph is above the axis once more.
Climbing curve, positive gradient.
▪ sketched
The key insight

The gradient graph crosses the $x$-axis exactly at the $x$-values of $f$'s turning points — $x=-1$ and $x=2$ here — and its sign flips from $+$ to $-$ at a maximum, and from $-$ to $+$ at a minimum. This pattern holds for any curve: count the turning points of $f$, and you know exactly how many times $f'$ crosses the axis, and the sign either side of each crossing.

Common mistake

Two classic slips. First, forgetting to convert before differentiating: you cannot "power-rule" $\sqrt{x}$ or $\tfrac{1}{x}$ while they're still written as a root or fraction — rewrite them as $x^{1/2}$ and $x^{-1}$ first. Second, mishandling negative powers: one less than $-2$ is $-3$, not $-1$. Subtract $1$ from the power carefully, keeping track of the sign.

Check yourself

Given $y = x^4 - \dfrac{2}{x} + 5\sqrt{x}$, find $\dfrac{dy}{dx}$. Then find $\dfrac{d^2y}{dx^2}$ for $y = x^4$ only.
(Hint: rewrite $\dfrac{2}{x}=2x^{-1}$ and $5\sqrt{x}=5x^{1/2}$ before differentiating.)

Method
1
Rewrite: $y = x^4 - 2x^{-1} + 5x^{1/2}$.
Index form.
2
$x^4 \to 4x^3$; $\;-2x^{-1} \to -2\cdot(-1)x^{-2} = 2x^{-2}$; $\;5x^{1/2}\to 5\cdot\tfrac12 x^{-1/2} = \tfrac52 x^{-1/2}$.
Term by term.
3
$\dfrac{dy}{dx} = 4x^3 + \dfrac{2}{x^2} + \dfrac{5}{2\sqrt{x}}$.
Convert back.
4
For $y=x^4$: $\dfrac{dy}{dx}=4x^3$, so $\dfrac{d^2y}{dx^2}=12x^2$.
Differentiate twice.
▪ solved

Notice $-2x^{-1}$ differentiated to $+2x^{-2}$ — the two minus signs (the coefficient and the power coming down) multiplied to a plus. Sign-tracking on negative powers is exactly where care pays off.