Differentiation Basics
Learn differentiation from scratch: the power rule, dy/dx notation, differentiating polynomials, and finding the gradient at a point, with many fully worked examples.
Key takeaways
- Differentiation gives the gradient function dy/dx, the gradient at any point on a curve
- Power rule: if y = xⁿ then dy/dx = n·xⁿ⁻¹
- Differentiate term by term: a constant multiplier stays, and a lone constant differentiates to 0
- Substitute an x-value into dy/dx to find the gradient at that exact point
From limits to a shortcut
In introduction to calculus: rates of change we found the gradient of a curve the slow way — taking a chord and letting the gap h shrink to zero. Doing that every time would be exhausting. Differentiation is the shortcut: a set of rules that give the gradient instantly.
The result of differentiating is the gradient function, written dy/dx (read "dee y by dee x") or f'(x) (read "f dashed of x"). It is a new formula: feed in any x-value and it returns the gradient of the curve there.
The power rule
The single most useful rule is the power rule:
If y = xⁿ, then dy/dx = n · xⁿ⁻¹
In words: bring the power down to the front as a multiplier, then reduce the power by one.
Worked example 1: Differentiate y = x³.
- The power is n = 3.
- Bring it down:
3 × x. Reduce the power by 1:x³⁻¹ = x². dy/dx = 3x².
Worked example 2: Differentiate y = x⁷.
- Bring down the 7, reduce the power to 6.
dy/dx = 7x⁶.
Constant multipliers
If a term has a number in front, that multiplier stays and you differentiate the power as normal.
If y = a·xⁿ, then dy/dx = a·n·xⁿ⁻¹
Worked example 3: Differentiate y = 5x².
- Keep the 5. Differentiate x²:
2x. dy/dx = 5 × 2x = 10x.
Worked example 4: Differentiate y = 2x⁴.
- Keep the 2. Differentiate x⁴:
4x³. dy/dx = 2 × 4x³ = 8x³.
Two special cases: x and constants
- The term
xis reallyx¹. By the power rule:1 · x⁰ = 1(sincex⁰ = 1). So x differentiates to 1, and5xdifferentiates to5. - A lone constant like
9is a flat line with zero gradient, so a constant differentiates to 0.
| Term | Derivative |
|---|---|
| x⁴ | 4x³ |
| 6x² | 12x |
| x | 1 |
| 3x | 3 |
| 10 | 0 |
Differentiating a polynomial
A polynomial is a sum of terms, and you simply differentiate each term separately.
Worked example 5: Differentiate y = x³ + 4x² − 7x + 2.
x³ → 3x².4x² → 8x.−7x → −7.+2 → 0.- Collect:
dy/dx = 3x² + 8x − 7.
Worked example 6: Differentiate y = 2x⁵ − 3x³ + x − 6.
2x⁵ → 10x⁴.−3x³ → −9x².x → 1.−6 → 0.dy/dx = 10x⁴ − 9x² + 1.
If a function comes with brackets, expand it first using expanding brackets so that every term is a simple power of x before you differentiate.
Worked example 7: Differentiate y = x(x + 3).
- Expand:
y = x² + 3x. - Differentiate:
dy/dx = 2x + 3.
Finding the gradient at a point
The derivative is a formula. To get the gradient at one specific point, substitute that x-value into dy/dx.
Worked example 8: For y = x² − 4x + 1, find the gradient at x = 5.
- Differentiate:
dy/dx = 2x − 4. - Substitute x = 5:
2(5) − 4 = 10 − 4 = 6. - The gradient at x = 5 is 6.
Worked example 9: For y = x³ − 6x, find where the gradient equals 0.
- Differentiate:
dy/dx = 3x² − 6. - Set equal to 0:
3x² − 6 = 0, so3x² = 6,x² = 2,x = ±√2. - The curve is momentarily flat at
x = √2andx = −√2— these are the turning points (peaks and troughs).
Solving dy/dx = 0 uses ordinary equation-solving — revise solving linear equations if rearranging feels shaky.
Negative and fractional powers
The power rule never changes. You just rewrite the function as a power first.
Worked example 10: Differentiate y = 1/x².
- Rewrite:
y = x⁻². - Power rule: bring down −2, reduce power by 1:
−2 · x⁻³. dy/dx = −2x⁻³ = −2/x³.
Worked example 11: Differentiate y = √x.
- Rewrite:
y = x^(1/2). - Bring down ½, reduce power by 1:
½ · x^(−1/2). dy/dx = ½x^(−1/2) = 1/(2√x).
Where differentiation is used
Differentiation finds maximum and minimum values — the most profit, the least material, the highest point of a thrown ball — by solving dy/dx = 0. Physicists differentiate position to get velocity, and velocity to get acceleration. Engineers use it to find where stress on a beam is greatest. Economists differentiate cost and revenue to optimise. Whenever you need "the rate right now" or "the best value," differentiation is the tool.
Practice activity
- Differentiate
y = x⁶. - Differentiate
y = 4x³ + 2x² − x. - Differentiate
y = (x + 2)(x − 5)(expand first). - For
y = x² − 6x + 4, find the gradient at x = 1. - For
y = x³ − 12x, find the x-values where the gradient is 0.
Answers:
dy/dx =6x⁵.dy/dx =12x² + 4x − 1.- Expand:
x² − 3x − 10; differentiate → 2x − 3. dy/dx = 2x − 6; at x = 1 → 2 − 6 = −4.3x² − 12 = 0 → x² = 4 →x = ±2.
Summary
Differentiation turns a curve y into its gradient function dy/dx. The key rule is the power rule: xⁿ → n·xⁿ⁻¹. Constant multipliers stay, x differentiates to 1, and a lone constant differentiates to 0. Differentiate polynomials term by term, expanding brackets first. Substitute an x-value into dy/dx for the gradient there, and solve dy/dx = 0 to find flat turning points. The same power rule even handles negative and fractional powers once you rewrite roots and reciprocals.
Quick quiz
Test yourself and earn XP
Differentiate y = x⁵.
By the power rule, bring down the 5 and reduce the power by 1: dy/dx = 5x⁴.
Differentiate y = 7.
A constant has gradient 0 everywhere — its graph is a horizontal line — so its derivative is 0.
Differentiate y = 3x².
Keep the 3, apply the power rule to x²: 3 × 2x = 6x.
If dy/dx = 2x − 4, the gradient at x = 5 is…
Substitute x = 5: 2(5) − 4 = 10 − 4 = 6.
Differentiate y = 4x³ − x.
4x³ → 12x²; −x → −1. So dy/dx = 12x² − 1.
FAQ
dy/dx is the derivative — the gradient function. It tells you the gradient (rate of change of y with respect to x) at any point on the curve. f'(x) means the same thing.
A constant like y = 7 is a flat horizontal line. Its gradient is 0 everywhere, so its derivative is 0. Any constant added to a function shifts the graph up or down but never changes its steepness.
Yes. The rule n·xⁿ⁻¹ works for any power, including negatives and fractions, once you rewrite roots and reciprocals as powers (for example √x = x^(1/2) and 1/x = x⁻¹).
Keep exploring
More in Math