hanegreefs.com/Math I
Chapter 5 of 8

Derivatives and their proofs

The derivative as the limit of a difference quotient, the differentiation rules with the proofs the exam asks for, the chain rule, derivatives of exponential, logarithmic and trigonometric functions, logarithmic differentiation, higher derivatives, Rolle, the mean value theorem and l'Hôpital's rule.

Syllabus: Syllabus ch. 6 (first half) · Sessions: Lectures 6 to 8, WPO 6 and 7 · About 70 minutes

The derivative as a limitImportant

The slope of the secant through (x, f(x)) and (x + h, f(x + h)) is the difference quotient (f(x + h) − f(x))/h, an average rate of change. Letting h shrink to 0 turns the secant into the tangent and the average rate into an instantaneous one:

Formula
f'(x) = limh→0 f(x + h) − f(x)h

Notations: f'(x), dy/dx, df/dx and D f(x) all mean the same thing. If the limit exists, f is differentiable at x. Differentiable implies continuous, but not the other way round: |x| is continuous at 0 yet has a corner there, with left slope −1 and right slope 1.

The tangent line at x = a follows from the point-slope form: y = f(a) + f'(a)(x − a).

Worked example

From the definition: f(x) = x2

Compute the limit directly.

1

Difference quotient

((x + h)2 − x2)/h = (2xh + h2)/h
2

Simplify for h ≠ 0

2x + h
3

Let h → 0

2x
Answer

f'(x) = 2x; the tangent at a = 1 is y = 1 + 2(x − 1) = 2x − 1. The secant lab shows the secants turning into this tangent.

Differentiation rulesImportant

RuleFormula
Constant(c)' = 0
Power(xn)' = n xn−1 for every real n
Constant multiple and sum(c f + g)' = c f' + g'
Product(f g)' = f' g + f g'
Quotient(f / g)' = (f' g − f g') / g2
Chain(f(g(x)))' = f'(g(x)) · g'(x)
Exponential(ex)' = ex, (ax)' = ax ln a
Logarithm(ln x)' = 1/x, (loga x)' = 1/(x ln a)
Trigonometric(sin x)' = cos x, (cos x)' = −sin x, (tan x)' = 1/cos2 x
Inverse trigonometric(arctan x)' = 1/(1 + x2), (arcsin x)' = 1/√(1 − x2)

With the chain rule every basic rule gets an inner derivative: (eu)' = eu u', (ln u)' = u'/u, (sin u)' = cos u · u', (un)' = n un−1 u'.

Worked example

Chain and product together

Differentiate f(x) = x2 e3x and g(x) = √(1 + x2).

1

Product rule for f

f'(x) = 2x e3x + x2 · 3e3x = x e3x(2 + 3x)
2

Write g as a power

g(x) = (1 + x2)1/2
3

Chain rule

g'(x) = (1/2)(1 + x2)−1/2 · 2x = x / √(1 + x2)
Answer

Identify the outermost operation first; it decides which rule you apply first.

Common trap(f g)' is not f' g'. The January 2024 exam even asked students to find the faulty step in a "proof" that the derivative of a product is always 0.

Proofs you must be able to giveImportant

Half of the exam is theory, and a typical question reads "complete and prove the rule for ...". The lectures list the proofs to know: the definition of the derivative, the derivative of a constant and of a linear function, the constant multiple and sum rules, the product and quotient rules, the derivatives of ln x, ex and the trigonometric functions, the definition of the definite integral, the fundamental theorem of calculus and the mean value theorem. Below are the key ideas in short form; write every step and justify each limit.

Proof

Product rule

Proof, step by step.

1

Start from the definition

(fg)'(x) = lim (f(x + h)g(x + h) − f(x)g(x))/h
2

Add and subtract f(x + h)g(x)

= lim [f(x + h)(g(x + h) − g(x)) + g(x)(f(x + h) − f(x))]/h
3

Split the limit

= lim f(x + h) · lim (g(x + h) − g(x))/h + g(x) · lim (f(x + h) − f(x))/h
4

Use continuity of f (differentiable implies continuous)

= f(x)g'(x) + g(x)f'(x)
Answer

The trick is the extra term that is added and subtracted, so each piece becomes a known difference quotient.

Proof

Derivative of ln x

Proof, step by step.

1

Definition, with log rules

(ln x)' = lim (ln(x + h) − ln x)/h = lim (1/h) ln(1 + h/x)
2

Move 1/h into the exponent

= lim ln((1 + h/x)1/h)
3

Substitute n = x/h, so 1/h = n/x

= limn→∞ (1/x) ln((1 + 1/n)n)
4

Standard limit and continuity of ln

= (1/x) ln e = 1/x
Answer

(ln x)' = 1/x for x > 0.

Proof

Derivative of ex

Proof, step by step.

1

Write y = ex

so ln y = x
2

Differentiate both sides, chain rule on the left

y'/y = 1
3

Solve

y' = y = ex
Answer

Alternative: from the definition, (ex)' = ex lim (eh − 1)/h = ex · 1.

Proof

Quotient rule from the product rule

Proof, step by step.

1

Write q = f/g

so f = q g
2

Product rule

f' = q' g + q g'
3

Solve for q'

q' = (f' − q g')/g = (f' − (f/g) g')/g
4

Multiply top and bottom by g

q' = (f' g − f g')/g2
Answer

This short route assumes q is differentiable; the syllabus also gives the direct limit proof.

Logarithmic differentiation and higher derivativesImportant

When x appears in both the base and the exponent, as in xx or xsin x, no basic rule applies. Take ln of both sides first, then differentiate implicitly. The same trick simplifies long products and quotients.

Worked example

Differentiate y = xx (x > 0)

Take logarithms.

1

ln of both sides

ln y = x ln x
2

Differentiate

y'/y = ln x + x · (1/x) = ln x + 1
3

Multiply by y

y' = xx(ln x + 1)
Answer

General pattern for y = uv: y' = uv(v' ln u + v u'/u).

The second derivative f'' is the derivative of f'; it measures how the slope changes (curvature) and returns in chapter 6. Higher derivatives f''', f(4), ... are found the same way. Example: for f(x) = x4, f' = 4x3, f'' = 12x2, f''' = 24x and f(4) = 24.

Extreme value theorem, Rolle and the mean value theoremImportant

Extreme value theorem: a continuous function on a closed interval [a, b] reaches a largest and a smallest value on that interval.

Rolle's theorem: if f is continuous on [a, b], differentiable on ]a, b[ and f(a) = f(b), then f'(c) = 0 for some c in ]a, b[: somewhere the tangent is horizontal.

Mean value theorem: if f is continuous on [a, b] and differentiable on ]a, b[, there is a c in ]a, b[ with

Formula
f'(c) = f(b) − f(a)b − a

In words: at some moment the instantaneous rate of change equals the average rate. If you drive 120 km in one hour, at some instant the speedometer showed exactly 120 km/h. The proof applies Rolle to f minus the secant line, a function that takes equal values at a and b.

Consequences: if f' > 0 on an interval, f is increasing there; if f' = 0 on an interval, f is constant there.

L'Hôpital's ruleImportant

If lim f(x)/g(x) gives 0/0 or ±∞/±∞, and f and g are differentiable near a with g'(x) ≠ 0, then

Formula
limx→a f(x)g(x) = limx→a f'(x)g'(x)   (if the right-hand limit exists)

It also works for a = ±∞. Other indeterminate forms are first rewritten: 0 · ∞ becomes a quotient, and powers such as 1∞ or 00 go through a logarithm.

Worked example

Two l'Hôpital limits

Check the form before every application.

1

limx→0 (ex − 1 − x)/x2: 0/0

gives (ex − 1)/(2x), again 0/0, then ex/2 → 1/2
2

limx→0+ x ln x: 0 · (−∞)

rewrite as ln x / (1/x), form −∞/∞
3

Differentiate top and bottom

(1/x)/(−1/x2) = −x → 0
Answer

Both limits are confirmed numerically by the limit explorer in chapter 4.

Common trapL'Hôpital differentiates numerator and denominator separately. It is not the quotient rule, and it only applies to 0/0 or ∞/∞.

Key takeaways

  • f'(x) = limh→0 (f(x + h) − f(x))/h: the slope of the tangent.
  • Tangent at a: y = f(a) + f'(a)(x − a).
  • Know the product, quotient and chain rules by heart, and the proofs on the lecture list.
  • Variable base and variable exponent: take ln first.
  • Mean value theorem: some instantaneous rate equals the average rate.
  • L'Hôpital only for 0/0 or ∞/∞, top and bottom separately.

Loading cards
Question
Click, tap or press space to flip
Answer

Multiple choice (11)

Question 1 · Chapter 5

The derivative of x3 − 4/x is...

Why: −4x−1 gives +4x−2.
Question 2 · Chapter 5

(ex2)' equals...

Why: Chain rule: the inner derivative is 2x.
Question 3 · Chapter 5

(ln(x2 + 1))' equals...

Why: (ln u)' = u'/u.
Question 4 · Chapter 5

The derivative of x/(x + 1) is...

Why: ((x + 1) − x)/(x + 1)2.
Question 5 · Chapter 5

The tangent to y = ln x at x = 1 is...

Why: f(1) = 0 and f'(1) = 1.
Question 6 · Chapter 5

(xx)' at x = 1 equals...

Why: xx(ln x + 1) = 1 · (0 + 1).
Question 7 · Chapter 5

limx→0 (1 − cos x)/x2 equals...

Why: Twice l'Hôpital: sin x/(2x) then cos x/2.
Question 8 · Chapter 5

Which theorem guarantees f'(c) = (f(b) − f(a))/(b − a)?

Why: Rolle is the special case f(a) = f(b).
Question 9 · Chapter 5

Which step proves the product rule?

Why: It splits the quotient into two known difference quotients.
Question 10 · Chapter 5

If f'(x) = 0 for all x in ]a, b[, then f is...

Why: A consequence of the mean value theorem.
Question 11 · Chapter 5

(sin(3x + 1))' equals...

Why: Chain rule.

Exam-style open questions (3)

Open question · Chapter 5

Prove a rule

Complete and prove: d/dx ln(x) = ...

Show the worked outline
  • Answer: 1/x for x > 0.
  • Definition: lim (ln(x + h) − ln x)/h = lim (1/h) ln(1 + h/x).
  • Rewrite as lim ln((1 + h/x)1/h) and substitute n = x/h.
  • Get (1/x) ln(lim (1 + 1/n)n) = (1/x) ln e = 1/x, using continuity of ln.
Open question · Chapter 5

Logarithmic differentiation

Differentiate y = xcos x for x > 0.

Show the worked outline
  • ln y = cos x · ln x.
  • y'/y = −sin x ln x + cos x / x.
  • y' = xcos x(cos x / x − sin x ln x).
Open question · Chapter 5

Mean value theorem

For f(x) = x3 on [0, 3], find the c promised by the mean value theorem.

Show the worked outline
  • Average slope: (27 − 0)/3 = 9.
  • f'(c) = 3c2 = 9 gives c = ±√3.
  • Only c = √3 ≈ 1.732 lies in ]0, 3[.

LabSecant to tangent lab

Includes xsin x and the January 2024 exam function.

LabDifferentiation rule sorter

Two quick games with explanations.