• Foundation
  • About 15 min
  • 5 practice questions

Derivatives from first principles

Differentiate xⁿ, 1/x, √x, sin x, cos x, eˣ and ln x from the definition, using factorising, rationalising and the standard limits.

If something looks wrong, please tell us.

The definition f′(x) = lim(h→0) [f(x + h) − f(x)]/h works for every function, but each type of function needs its own algebra to make the h cancel. This lesson works through the standard functions one by one. The results form the table you will use in every later lesson, so it is worth seeing where each one comes from.

Powers of x

For f(x) = x³: (x + h)³ − x³ = 3x²h + 3xh² + h³. Dividing by h gives 3x² + 3xh + h², which tends to 3x². In general, putting t = x + h, the quotient is (tⁿ − xⁿ)/(t − x) with t → x, and the standard limit gives n xⁿ⁻¹. This is the power rule: d/dx(xⁿ) = n xⁿ⁻¹.

Worked example 1: f(x) = 1/x

f(x + h) − f(x) = 1/(x + h) − 1/x = [x − (x + h)]/[x(x + h)] = −h/[x(x + h)]. Dividing by h gives −1/[x(x + h)], which tends to −1/x² (for x ≠ 0). This agrees with the power rule for n = −1: (−1)x⁻².

Worked example 2: f(x) = √x

[√(x + h) − √x]/h. Multiply top and bottom by √(x + h) + √x: the numerator becomes (x + h) − x = h, so the expression is 1/[√(x + h) + √x], which tends to 1/(2√x) for x > 0. Again the power rule with n = 1/2 gives the same answer.

Worked example 3: f(x) = sin x

Use the identity sin A − sin B = 2 cos((A + B)/2) sin((A − B)/2): sin(x + h) − sin x = 2 cos(x + h/2) sin(h/2). Dividing by h gives cos(x + h/2) × [sin(h/2)/(h/2)]. As h → 0 the first factor tends to cos x and the second to 1 (x in radians). So d/dx(sin x) = cos x. In the same way, using cos A − cos B = −2 sin((A + B)/2) sin((A − B)/2), d/dx(cos x) = −sin x.

Worked example 4: f(x) = eˣ

e^(x + h) − eˣ = eˣ(eʰ − 1). Dividing by h gives eˣ × (eʰ − 1)/h, and the standard limit (eʰ − 1)/h → 1 gives d/dx(eˣ) = eˣ. The exponential function is its own derivative, which is why e is so important.

The logarithm

For f(x) = ln x with x > 0: ln(x + h) − ln x = ln(1 + h/x). Dividing by h and writing u = h/x gives (1/x) × ln(1 + u)/u, which tends to (1/x) × 1. So d/dx(ln x) = 1/x.

Derivatives from first principles
f(x)f′(x)Key step
xⁿn xⁿ⁻¹(tⁿ − xⁿ)/(t − x) → n xⁿ⁻¹
1/x−1/x²common denominator
√x1/(2√x)rationalise
sin xcos xsin h/h → 1
cos x−sin xsin h/h → 1
eˣeˣ(eʰ − 1)/h → 1
ln x1/xln(1 + u)/u → 1

Every first-principles proof has the same shape: expand or combine f(x + h) − f(x) until a factor h appears, divide by h, then use a standard limit as h → 0.

When the derivative does not exist

The limit in the definition must exist for the derivative to exist. For f(x) = |x| at x = 0, the quotient [f(h) − f(0)]/h = |h|/h is 1 for h > 0 and −1 for h < 0, so the limit does not exist and |x| has no derivative at 0, although it is continuous there. A function must be continuous at a point to be differentiable there, but, as |x| shows, continuity alone is not enough. The corner in the graph is what stops a single tangent slope from existing.

Key takeaways: the power rule comes from the standard limit for (tⁿ − xⁿ)/(t − x). Trigonometric derivatives need radians and sin h/h → 1. eˣ is its own derivative and ln x has derivative 1/x. Learn the table; you will rarely need first principles again except when a question asks for them.

Check your understanding

  1. 1. Using first principles, what is the derivative of f(x) = x² + 1?

    1. 2x
    2. x²
    3. 2x + 1
    4. 2
    Show answer

    Answer: A. [(x + h)² + 1 − x² − 1]/h = (2xh + h²)/h = 2x + h → 2x. The constant 1 cancels.

  2. 2. If f(x) = 1/x, what is f′(2)?

    1. 1/4
    2. −1/4
    3. −1/2
    4. 1/2
    Show answer

    Answer: B. f′(x) = −1/x², so f′(2) = −1/4.

  3. 3. If f(x) = √x, what is f′(4)?

    1. 1/4
    2. 1/2
    3. 2
    4. 4
    Show answer

    Answer: A. f′(x) = 1/(2√x), so f′(4) = 1/(2 × 2) = 1/4.

  4. 4. Which standard limit is used to show that the derivative of eˣ is eˣ?

    1. (sin h)/h → 1 as h → 0
    2. (1 + h)^(1/h) → e as h → 0
    3. (eʰ − 1)/h → 1 as h → 0
    4. (tⁿ − xⁿ)/(t − x) → n xⁿ⁻¹ as t → x
    Show answer

    Answer: C. e^(x + h) − eˣ = eˣ(eʰ − 1), so after dividing by h the limit (eʰ − 1)/h → 1 is needed.

  5. 5. What is the derivative of cos x (x in radians)?

    1. −sin x
    2. sin x
    3. cos x
    4. −cos x
    Show answer

    Answer: A. cos(x + h) − cos x = −2 sin(x + h/2) sin(h/2). Dividing by h and letting h → 0 gives −sin x.

Privacy · Terms · Refunds · Delivery