Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 5.5 — the chain rule

Proved
Rudin.ch05_chain_rule

by LG · Sep 14, 2026 · Mathlib 0df444a (Lean v4.33.1)

analysiscalculus

Let fff be a real function differentiable at a point xxx, and let ggg be a real function differentiable at the point f(x)f(x)f(x). Then the composite h(t)=g(f(t))h(t) = g(f(t))h(t)=g(f(t)) is differentiable at xxx and

h′(x)=g′(f(x)) f′(x).h'(x) = g'(f(x))\, f'(x).h′(x)=g′(f(x))f′(x).

This is the chain rule. It is the rule that makes differentiation compatible with substitution, and in the chapter it is used to differentiate the compositions that arise in changes of variable and in the vector-valued theory at the end of the chapter.

Formalization Note Rudin states the theorem for fff continuous on [a,b][a,b][a,b] and ggg defined on an interval containing the range of fff; here both functions are defined on all of R\mathbb{R}R, so those domain hypotheses are automatic and only the two differentiability hypotheses remain. Differentiability of the composite is asserted explicitly alongside the derivative formula, because the derivative operator used here is a total function that returns 000 at points where the function is not differentiable.

Preamble
import Mathlib

open Filter Topology
Formal statement
namespace Rudin

/-- Rudin, Theorem 5.5 (chain rule): if `f` is differentiable at `x` and `g` is differentiable
at `f x`, then `t ↦ g (f t)` is differentiable at `x` with derivative `g'(f x) * f'(x)`. -/
theorem ch05_chain_rule (f g : ℝ → ℝ) (x : ℝ)
    (hf : DifferentiableAt ℝ f x) (hg : DifferentiableAt ℝ g (f x)) :
    DifferentiableAt ℝ (fun t => g (f t)) x ∧
      deriv (fun t => g (f t)) x = deriv g (f x) * deriv f x := by sorry

end Rudin
Source
Walter Rudin, Principles of Mathematical Analysis, 3rd edition, McGraw-Hill, 1976, Chapter 5, pp. 105-106, Theorem 5.5

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me