Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 5.3(a,b) — the derivative of a sum and of a product

Proved
Rudin.ch05_deriv_sum_product

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

analysiscalculus

Let fff and ggg be real functions of a real variable and let xxx be a point at which both fff and ggg are differentiable. Then the sum f+gf+gf+g and the product fgfgfg are differentiable at xxx, and their derivatives are

(f+g)′(x)=f′(x)+g′(x),(fg)′(x)=f′(x)g(x)+f(x)g′(x).(f+g)'(x) = f'(x) + g'(x), \qquad (fg)'(x) = f'(x)g(x) + f(x)g'(x).(f+g)′(x)=f′(x)+g′(x),(fg)′(x)=f′(x)g(x)+f(x)g′(x).

These are the first two parts of the elementary algebra of derivatives. Together with the quotient rule and the chain rule they reduce the differentiation of any expression built from differentiable functions to the derivatives of its constituents, and they are used silently throughout the rest of the chapter — for instance in forming the auxiliary function of the generalized mean value theorem and the remainder function of Taylor's theorem.

Formalization Note Differentiability is asserted explicitly alongside each 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.3 (a), (b): if `f` and `g` are differentiable at `x`, then so are `f + g`
and `f * g`, and `(f + g)'(x) = f'(x) + g'(x)`, `(f g)'(x) = f'(x) g(x) + f(x) g'(x)`. -/
theorem ch05_deriv_sum_product (f g : ℝ → ℝ) (x : ℝ)
    (hf : DifferentiableAt ℝ f x) (hg : DifferentiableAt ℝ g x) :
    DifferentiableAt ℝ (fun t => f t + g t) x ∧
      deriv (fun t => f t + g t) x = deriv f x + deriv g x ∧
    DifferentiableAt ℝ (fun t => f t * g t) x ∧
      deriv (fun t => f t * g t) x = deriv f x * g x + f x * deriv g x := by sorry

end Rudin
Source
Walter Rudin, Principles of Mathematical Analysis, 3rd edition, McGraw-Hill, 1976, Chapter 5, p. 104, Theorem 5.3

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