Notifications

Log in to see your notifications.

Differentiation

16 min read

Gradient of a curve

The derivative dy/dx of a function gives the gradient of its tangent at any point, and the rate at which y changes with x. From first principles, the derivative is the limit of the gradient of a chord as the chord shrinks to a point:

The definition of the derivative.
Worked exampleFirst principles

Differentiate f(x) = x² from first principles.

  1. Form the difference quotient.
  2. Let h → 0.

Answer: d/dx (x²) = 2x.

The gradient of y = x³ at any x is 3x², shown here.

Rules of differentiation

RuleFormulaExample
Powerd/dx (xⁿ) = nxⁿ⁻¹x⁵ → 5x⁴
Constant multipled/dx (kf) = kf′3x² → 6x
Sum(f + g)′ = f′ + g′x² + 4x → 2x + 4
Chaindy/dx = dy/du × du/dx(2x + 1)⁵ → 10(2x + 1)⁴
Product(uv)′ = u′v + uv′x² sin x → 2x sin x + x² cos x
Quotient(u/v)′ = (u′v − uv′)/v²x/(x + 1) → 1/(x + 1)²
FunctionDerivative
sin xcos x
cos x−sin x
tan xsec² x
eˣeˣ
ln x1/x
aˣaˣ ln a
Worked exampleThe chain rule

Differentiate y = (3x² + 1)⁴.

  1. Let u = 3x² + 1.
  2. Multiply.

Answer: dy/dx = 24x(3x² + 1)³.

Partial derivatives

For a function of two variables, z = f(x, y), the partial derivative ∂z/∂x is found by differentiating with respect to x while treating y as a constant, and ∂z/∂y by treating x as constant. For z = x²y + y³: ∂z/∂x = 2xy and ∂z/∂y = x² + 3y².

Try itThe gradient of y = axⁿ

Choose a, n and x. The derivative is anxⁿ⁻¹.

Check yourself d/dx (x⁷) =
Check yourself d/dx (sin 3x) =
Check yourself If z = x²y, then ∂z/∂y =

Key terms

Derivative
The gradient of a curve at a point.
Chain rule
Rule for a function of a function.
Partial derivative
A derivative with respect to one variable of several.
Tangent
A line that touches the curve and has its gradient.

Summary

  • The derivative is the limit of the gradient of a chord.
  • Use the power, chain, product and quotient rules.
  • Learn the derivatives of sin, cos, tan, eˣ and ln x.
  • Partial derivatives treat the other variables as constants.