Derivative from the limit definition
Agent-Assisted Engineering Check
Prerequisites
Complete the previous activity and use the listed recovery source if blocked.
Learning Objective
Derive f'(a)=lim(h->0)[f(a+h)-f(a)]/h for f(x)=x^2 at a=3, naming h != 0 during cancellation and the two-sided limit assumption.
Instructions
Study source: within this activity's existing reading/practice time, use MIT OCW 18.01SC Single Variable Calculus, Unit 1: Differentiation, Part A: Definition and Basic Rules; worked examples and problem sets, then explain one connection to the local task in your own words. Keep the local exercise and acceptance checks; use its original explanation if the external source is unavailable. 1. Write the definition with the point fixed: f'(3) = lim(h->0) [f(3+h) - f(3)]/h. Say what h is: a nonzero step, positive or negative.
2. Predict the value from Day 16 Activity 4 (secant slopes 6.1, 6.01, ...).
3. Expand f(3+h) completely before subtracting, and subtract f(3) as a whole.
4. Factor h out of the numerator and cancel it, writing "for h != 0" next to the cancellation.
5. Only then let h approach 0 in the simplified expression. The limit is about nearby h, not about h = 0 in the original quotient.
6. Check the result numerically with h = 0.01 and h = -0.01, then repeat the derivation on the practice items.
Time plan (120 min): reading 30 + exercise 60 + check 30. Reading: OpenStax Section 3.1 (defining the derivative). Exercise: items (a)-(c). Check: the mastery item at a=2, unaided, then a numerical check of each result.
Practice & Prediction Log
(a) Write f(3+h), subtract f(3), divide by h, simplify, and take the limit. Do not jump directly to the power rule. (b) Use the same definition for f(x)=x^2 at a general point a. (c) Use the definition for g(x)=1/x at a=2. Check (a) and (c) numerically with h=0.01.
Expand before cancelling. Cancellation is valid only for h != 0; the final limit asks what happens as h approaches zero, not what happens at h=0 in the quotient. Recovery: OpenStax Section 3.1 or redo the Day 16 bridge.
(a) f(3 + h) = (3 + h)^2 = 9 + 6h + h^2.
f(3 + h) - f(3) = 9 + 6h + h^2 - 9 = 6h + h^2.
[f(3 + h) - f(3)]/h = (6h + h^2)/h = 6 + h, for h != 0 (the cancellation divides by h).
lim(h->0) (6 + h) = 6, so f'(3) = 6. Both one-sided limits are 6, because 6 + h approaches 6 whether h is positive or negative.
Numerical check: h = 0.01 gives (9.0601 - 9)/0.01 = 6.01; h = -0.01 gives (8.9401 - 9)/(-0.01) = 5.99. Both are 0.01 away from 6, as 6 + h predicts.
(b) [(a + h)^2 - a^2]/h = (2ah + h^2)/h = 2a + h for h != 0, so f'(a) = 2a. At a = 3 this gives 6 again; at a = 2 it gives 4 (the mastery item). This is the power rule for n = 2, derived rather than assumed.
(c) g(2 + h) - g(2) = 1/(2 + h) - 1/2 = (2 - (2 + h))/(2(2 + h)) = -h/(2(2 + h)).
Divide by h (h != 0, and h != -2 so that 2 + h is not zero): -1/(2(2 + h)).
As h approaches 0 this tends to -1/(2 * 2) = -1/4, so g'(2) = -0.25.
Numerical check: h = 0.01 gives (1/2.01 - 0.5)/0.01 = (0.497512 - 0.5)/0.01 ≈ -0.2488, close to -0.25.
Common errors: writing (3 + h)^2 = 9 + h^2 (the 6h is missing); setting h = 0 before cancelling, which gives 0/0; leaving the answer as 6 + h.
Unaided, derive the same result for f(x)=x^2 at a=2 and state why the derivative is 4.
Authoritative Source Resources & Provenance
MIT OCW 18.01SC Single Variable Calculus
Relevant Section / Range: Unit 1: Differentiation, Part A: Definition and Basic Rules; worked examples and problem sets
Verified Version & Date: Public edition checked 2026-11-01; moving pages may change
Independent-study teaching sequence with lectures, worked recitations, problem sets and solutions for Days 16-19; OpenStax remains the numbered written reference.
Functions, algebra and high-school trigonometry.
Use the original localized explanations, exercises and checks already present in this activity; no external account or purchase is required for that fallback.
Compared Candidate Sources & Selection Analysis (2)
Stable numbered text and exercises; retained alongside the lecture and recitation sequence.
Visual motivation without an answer-keyed exercise sequence; retained for intuition.
OpenStax Calculus Volume 1
Relevant Section / Range: Sections 2.1-2.3 (Functions, Limits, and the Derivative); Sections 3.1-3.2 (Derivative Rules)
Verified Version & Date: 3rd edition, verified 2026-10-30
Open, systematic treatment of the limit definition and derivative rules with stable section locations.
Algebra, coordinate geometry, and function notation
The authored derivations, tables, and exercises in these three Study Days are complete offline recovery material; use the linked section only for optional comparison.
Compared Candidate Sources & Selection Analysis (3)
Strong exercises and transcripts, but the noncommercial share-alike terms and course navigation make OpenStax the primary stable text.
Useful reference, but rights and redistribution terms are less suitable for embedded recovery material.
A primary API reference for numerical derivative step-size behavior; it complements rather than replaces the hand derivation.
SciPy numerical derivative reference
Relevant Section / Range: derivative API: finite differences, step-size iteration, tolerances
Verified Version & Date: SciPy documentation, verified 2026-10-30
Documents numerical differentiation as an approximation with finite step sizes and stopping criteria.
Python arithmetic and the definition of a derivative
The local Day 18 tables and pure-Python snippets reproduce the relevant finite-difference behavior without SciPy.
Compared Candidate Sources & Selection Analysis (2)
Array-oriented gradient estimation on sampled grids; the SciPy derivative reference matches the pointwise finite-difference helper the exercises implement.
Symbolic rather than numerical differentiation; useful for exact cross-checks but not the finite-difference practice target.