Lesson 51 — The derivative: definition via limits
The derivative as the limit of the average rate of change. Tangent line. Differentiability implies continuity, but not conversely. Computing derivatives from the definition for elementary functions.
Used in: Year 2 of high school (ages 16–17) · Equiv. Japanese Math II (微分) · Equiv. German Klasse 11 (Analysis)
The derivative of f at the point a: the limit of the average rate of change as the increment shrinks to zero. Geometrically, it is the slope of the tangent line to the graph of f at the point . Physically, it is the instantaneous rate of change of f at a.
Rigorous notation, full derivation, hypotheses
Rigorous definition and theorems
Definition of the derivative
"We say that a function is differentiable at whenever exists. […] The derivative measures the instantaneous rate of change of the function, as well as the slope of the tangent line to the function at the given point." — Boelkins, Active Calculus §1.3
"The derivative of a function at a point in its domain, if it exists, is ." — OpenStax Calculus Vol. 1, §3.1
Equivalent notations
The expression denotes the derivative evaluated at the point .
From secant to tangent — geometry of the limit
The secant line (orange) passes through the points (a, f(a)) and (a+h, f(a+h)). As h → 0, the secant rotates until it coincides with the tangent line (gold). The derivative is the slope of that limiting line.
Tangent line and normal line
If is differentiable at :
- Tangent line at :
- Normal line at (perpendicular to the tangent, when ):
Fundamental theorem of differentiability
"If is differentiable at , then is continuous at . […] The converse is not true, and a function can be continuous but fail to be differentiable at a point." — OpenStax Calculus Vol. 1, §3.2
Points of non-differentiability
Basic derivatives via the definition
| Function | |
|---|---|
| (constant) | |
| () | |
Worked examples
Exercise list
40 exercises · 10 with worked solution (25%)
- Ex. 51.1Application
Compute for using the definition of the derivative.
Show solution
By the definition: . Answer: .Show step-by-step (with the why)
- Form the difference quotient with . Compute and . The quotient is .
- Factor and cancel . The numerator has common factor : . The cancellation is valid because in the limit process .
- Take the limit. . Therefore .
Shortcut: for , the derivative is — evaluate directly at to check your result. Distractor (C) represents the mistake of giving the difference quotient without taking the limit — a classic definitional error.
- Ex. 51.2Application
Compute for using the definition.
Show solution
Expand . The difference quotient simplifies to . Taking the limit : . Distractor (B) is the classic mistake of stopping at the simplified difference quotient without taking the limit — the difference quotient (average rate) is not the derivative (instantaneous rate).Show step-by-step (with the why)
- Compute . (cube of a sum).
- Form the quotient. . The terms without () cancel exactly.
- Take the limit . . Terms containing vanish.
Pattern: for , the derivative is . This exercise confirms the case .
- Ex. 51.3Application
Compute for (a real constant) from the definition.
Show solution
For (constant), and . Therefore the quotient for all . The limit is . A constant function has no variation — rate of change is zero at every point. - Ex. 51.4ApplicationAnswer key
Compute for (linear function) from the definition. (Ans: .)
Show solution
For : . Quotient: . Limit: . The derivative of a linear function is its own slope — constant. Distractor (D) is the difference quotient before the limit ( still contains ).Show step-by-step (with the why)
- Compute . Substitute : .
- Form the quotient. . The cancels exactly.
- Limit. . The derivative is the slope , constant at every point.
Curiosity: this result confirms that the tangent line to a line is the line itself — the "linear approximation" of a function that is already linear is exact.
- Ex. 51.5Application
Compute for from the definition.
Show solution
For : . . Quotient: . Limit: . Distractor (A) is the mistake of confusing the average rate (the simplified difference quotient, which still depends on ) with the instantaneous rate (the limit as ). - Ex. 51.6Application
Compute for from the definition. (Ans: .)
Show solution
For : . . Quotient: . Limit: . Negative sign: is decreasing at .Show step-by-step (with the why)
- Compute . Substitute : . Expand . Therefore .
- Form the quotient. . Quotient: .
- Limit. . Negative derivative: the function is decreasing at .
Shortcut: before applying the definition to polynomials, fully expand and organize by powers of — terms without always cancel with .
- Ex. 51.7Application
Compute the derivative function for from the definition.
Show solution
For : difference quotient . Limit: . Distractor (A) gives the simplified difference quotient (which still contains ) as the final answer, without completing the limit . - Ex. 51.8Application
Use the definition to compute for .
Show solution
Expand . The difference quotient is . In the limit: . This confirms the pattern for . Distractor (D) gives the simplified difference quotient as the derivative — forgetting that the derivative requires . - Ex. 51.9ApplicationAnswer key
Compute for from the definition.
Show solution
For : , . Quotient: . Limit: . The negative sign means the function is decreasing at . Distractor (A) is a sign error in — computing incorrectly as .Show step-by-step (with the why)
- Compute . . And .
- Form the quotient. . Cancel the .
- Take the limit. . Negative derivative: is decreasing at .
Watch the sign: the numerator is , not . The sign error produces instead of .
- Ex. 51.10ApplicationAnswer key
Compute for from the definition.
Show solution
Expand . Subtracting and dividing by : . Limit: . Distractor (D) is the simplified difference quotient without the limit — confuses average rate with derivative. - Ex. 51.11Application
Compute for from the definition. (Ans: .)
Show solution
For : (computed in Example 2). At : . Negative sign: the hyperbola is decreasing for . Distractor (A) is the classic sign error for rational functions: when combining , taking as instead of .Show step-by-step (with the why)
- Difference quotient. . Combine the fractions: numerator = .
- Divide by . .
- Limit. .
Shortcut: for , always use common denominator to combine the numerator fractions — the manipulation is always the same.
- Ex. 51.12ApplicationAnswer key
Compute for from the definition. (Ans: .)
Show solution
For : multiply numerator and denominator by . The quotient becomes . Limit: . At : . - Ex. 51.13ApplicationAnswer key
Compute for from the definition and write the equation of the tangent line at .
Show solution
For , . At : . The tangent line passes through with slope : . Distractor (A) gets the sign of the derivative wrong — takes (sign error in ). Distractor (D) gets the derivative right but writes the wrong tangent equation (wrong intercept sign). - Ex. 51.14Application
Find the equation of the tangent line to at the point .
Show solution
The derivative of is . At : and . Tangent line: .Show step-by-step (with the why)
- Compute . . Point of tangency: .
- Compute . From the definition or Example 1 result: , so . This is the slope of the tangent.
- Point-slope form. . Simplify: .
- Check. At : . Correct.
Shortcut: the tangent line always has the form — memorize this template and you will not need to rederive it.
- Ex. 51.15ApplicationAnswer key
Find the equation of the tangent line to at the point .
Show solution
, , . Tangent line: . - Ex. 51.16Application
For , at what value of is the tangent line horizontal? Find the point on the graph.
Show solution
The derivative of is (from the definition). The tangent is horizontal when : . The point is . Distractor (A) confuses the root of ( where ) with the zero of — mixing up function value and tangent slope. - Ex. 51.17Application
Compute for from the definition.
Show solution
For , . At : . Distractor (A) misses the factor 2: drops the from the denominator, giving . Distractor (D) uses instead of .Show step-by-step (with the why)
- Conjugate. .
- Cancel . .
- Limit. .
Conjugate technique: always use to eliminate square roots in the numerator and cancel .
- Ex. 51.18Application
Compute for from the definition.
Show solution
For : difference quotient . Limit: . Distractor (A) is the classic sign error: computing as instead of . - Ex. 51.19Application
Equation of the tangent line to at .
Show solution
From Example 3: . At : and . Tangent: . - Ex. 51.20ApplicationAnswer key
Find the equation of the normal line to at the point .
Show solution
For : , so . The tangent at has slope . The normal line is perpendicular, slope . Point: . Equation: . Distractor (A) gives the tangent () instead of the normal — confuses tangent with its perpendicular. - Ex. 51.21Understanding
Is differentiable at ? Justify your answer by computing the one-sided derivatives.
Show solution
Right-hand derivative: . Left-hand derivative: . Since , the derivative does not exist at . Note that is continuous at — this is the canonical example of continuity without differentiability.Show step-by-step (with the why)
- Check continuity. . Continuous — but continuity does not guarantee differentiability.
- Right-hand derivative (). .
- Left-hand derivative (). For , . Therefore .
- Conclusion. : one-sided derivatives diverge. Not differentiable at . The graph has a corner at .
Shortcut: whenever a function is piecewise-defined or involves absolute value, compute the one-sided derivatives separately — do not assume that the existence of the limit implies the two sides agree.
- Ex. 51.22Understanding
Is differentiable at ? (Ans: yes, .)
Show solution
For : right-hand limit . Left-hand limit: . Both equal : differentiable with . Contrast with : the extra factor smooths out the corner. - Ex. 51.23Understanding
Analyze at . Does the limit of the difference quotient exist? (Ans: — vertical tangent.)
Show solution
Quotient: . As , . The "derivative" is : vertical tangent at . Not differentiable in the classical sense (the derivative must be finite). - Ex. 51.24UnderstandingAnswer key
Let , x^2 & x \leq 1, 3x - 2 & x > 1. Is differentiable at ? Compute the one-sided derivatives.
Show solution
Left-hand derivative (, branch ): . Right-hand derivative (, branch ): . Since : corner at , not differentiable. Note that is continuous at (, ) — distractor (D) mistakenly conflates discontinuity with non-differentiability. - Ex. 51.25Understanding
Let for and . Show that . (Hint: use the squeeze theorem — .)
Show solution
For , : the difference quotient at is . Since by the squeeze theorem, the limit is . Therefore . - Ex. 51.26Understanding
Let for and . Is differentiable at ?
Show solution
The difference quotient is . As , oscillates between and indefinitely — the limit does not exist. Therefore is not differentiable at . Contrast with : the factor "damps" the oscillation. - Ex. 51.27Understanding
Let , x^2 & x \geq 0, -x^2 & x < 0. Compute using one-sided derivatives.
Show solution
Right-hand limit (): quotient . Left-hand limit (): quotient . Both equal : . Geometrically, the two branches meet with a horizontal tangent at the origin. Distractor (A) incorrectly concludes non-differentiability merely because the formula for differs on each side — what matters is the equality of the one-sided derivative limits, not the form of the formula. - Ex. 51.28Understanding
Interpret geometrically: what does , , and each mean?
Show solution
Geometrically: means a tangent with positive slope — the function is increasing at . : negative slope — decreasing. : horizontal tangent — potentially a maximum, minimum, or inflection point (stationary point). The value has no direct relationship to the sign of . - Ex. 51.29Understanding
What is the correct relationship between differentiability and continuity?
Show solution
The theorem proves the implication : differentiable continuous. The canonical counterexample for the false converse is : continuous at but not differentiable. Differentiability is a stronger condition than continuity. - Ex. 51.30Understanding
Explain with a numerical example why the central difference is numerically more accurate than the forward difference .
Show solution
The forward difference has truncation error . The central difference cancels the first-order term by symmetry, giving error . For : forward error , central error — 100 times better. Check with at : the central difference gives , which divided by yields exactly — zero error. - Ex. 51.31ModelingAnswer key
An object moves with position meters. What is its instantaneous velocity at s?
Show solution
Position . From the definition: . At : m/s. Numerical check: . Average speed over the interval: m/s — converges to 8. - Ex. 51.32Modeling
Position meters. Compute the instantaneous velocity at s using the definition of the derivative.
Show solution
Position . Derivative from the definition: . At : m/s. Distractor (A) is the classic mistake of computing the average velocity on instead of the instantaneous velocity — the secant instead of the tangent. - Ex. 51.33Modeling
Cost dollars. What is the marginal cost at units?
Show solution
From Example 5: . At : dollars. Each additional unit beyond 50 costs approximately $130.Show step-by-step (with the why)
- Identify . Total cost in dollars for units. Marginal cost = derivative = instantaneous rate of change of cost.
- Compute from the definition. Quotient: . Limit: .
- Evaluate at . dollars per unit.
- Check. dollars. The marginal cost (130) underestimates by $1 — the expected second-order difference.
Curiosity: the gap between marginal cost ($130) and the actual increment ($131) is exactly — confirming the linear approximation theory.
- Ex. 51.34Modeling
Population individuals. Compute the growth rate at years using the definition of the derivative.
Show solution
For : (from the definition). At : individuals/year. Distractor (A) confuses the instantaneous growth rate (derivative) with the average rate on — secant slope versus tangent slope. Distractor (D) confuses the value with the derivative. - Ex. 51.35Modeling
In machine learning, the loss function is . Compute from the definition and find the that minimizes .
Show solution
For : difference quotient . Limit: . Minimum when . Distractor (A) stops at the difference quotient (without taking the limit) and obtains a "derivative" that still depends on — confuses average rate with instantaneous rate. - Ex. 51.36Modeling
Electric charge coulombs. Current . Compute .
Show solution
Charge coulombs. Current . At : A. Derivation: quotient , limit . - Ex. 51.37Modeling
Volume of a sphere . Compute the rate of change of volume with respect to radius at cm.
Show solution
Volume of a sphere: . Difference quotient: . Limit: . At : cm³/cm. Note that (surface area). Distractor (A) confuses the value (volume, not derivative) with the rate of change. - Ex. 51.38Challenge
Find such that has a horizontal tangent line at .
Show solution
The derivative of is (from the definition). For a horizontal tangent at : . Distractor (A) makes a sign error: solving gives — sign swapped in the transposition. - Ex. 51.39ChallengeAnswer key
Prove that if is an even function and differentiable at , then . (Hint: use the definition of one-sided derivatives and the property .)
Show solution
If is even, . Left-hand derivative: . Substitute with : . For differentiable at : , so . - Ex. 51.40Proof
Let , with and differentiable at . Use the definition of the derivative to prove that .
Show solution
For : . Since both limits exist (by hypothesis, and are differentiable at ), the limit of the sum is the sum of the limits: . This is the proof of the sum rule from the definition.