A particle’s position along a line is modeled as metres after seconds. For with its average velocity between and is
At this expression becomes so substituting zero does not give an instantaneous velocity. Instead, rationalizing for gives This approaches as approaches zero from either side: the limiting rate is m/s. The derivative formalizes this limiting process and, geometrically, gives the slope of a tangent line.
Differentiability and the Derivative
We formally define the derivative of a function at a point as a limit (Definition 1.1.1
Let be defined on an open interval containing The function is said to be differentiable at if the limit
exists. If this limit exists, we denote it by or
Let be defined on an open interval containing The function is said to be differentiable at if the limit
exists. If this limit exists, we denote it by or
Differentiability is a stronger condition than continuity (Definition 1.1.4
If is differentiable at then is continuous at
If is differentiable at then is continuous at
ProofExpand proofCollapse
To prove it suffices to show that For we can write:
Taking the limit as
Since is differentiable at the limit of the first term is Since we have:
Therefore, and is continuous at
A classic counterexample of a function that is continuous but not differentiable is at The difference quotient as is but as is so the limit does not exist.
Worked trace: derivative from the definition via rationalization. Let Find using the limit definition.
- Form difference quotient:
- Multiply numerator and denominator by conjugate
- Cancel
- Evaluate limit as
The calculation confirms the particle’s instantaneous velocity at m/s. Cancel the factor only for before taking the limit; the quotient is not defined at
Worked trace: a reciprocal function and a domain boundary. Let for At
Two features of this trace generalize. First, the same cancellation pattern appears whenever the numerator has a factor the algebra exposes the removable discontinuity rather than hiding it. Second, the computation is valid only at points where is defined on a two-sided neighbourhood. At the function is undefined, and no difference quotient exists, so is not a number to be found—it is a question with no domain.
Worked trace: a continuous function that fails differentiability. Let
Continuity at follows from The difference quotient is
As oscillates between and and has no limit. The function is continuous at but not differentiable there. The counterexample shows that the converse of Theorem 1.2.2
Verification Check
Consider for , with . Evaluate each statement regarding differentiability and derivative continuity at :
Classify each option as correct or incorrect, or leave uncertain options unanswered (“I don't know”) and verify at any time.
Fundamental Rules of Differentiation
Pause & Predict: Tangent Slopes Along a Cubic Curve. In the interactive playground below, you can move the point of tangency along the curve At what values of does the tangent line become horizontal Where is the slope positive and where is it negative Predict the coordinates of the horizontal tangents before adjusting the slider.
DerivationExpandCollapse
Differentiating using the power and sum rules: Setting
- For (the curve is strictly increasing).
- For (the curve is strictly decreasing).
- At (local maximum) and (local minimum), the tangent line is horizontal.
Slide the point of tangency
Move a along the curve and compare the tangent slope with the local shape.
A tangent line records the limiting slope at a selected point.
To compute derivatives efficiently, we establish algebraic rules derived from the definition.
Let and be differentiable at
- Sum Rule:
- Product Rule:
- Quotient Rule: If
Let and be differentiable at
- Sum Rule:
- Product Rule:
- Quotient Rule: If
ProofExpand proofCollapse
We prove the Product Rule. Let Using the definition:
Subtract and add the term in the numerator:
Since and are differentiable, their individual limits exist. Since is differentiable, it is continuous, so Applying limit laws:
The Chain Rule
The Chain Rule allows us to differentiate composite functions. It is the mathematical engine behind backpropagation in deep neural networks.
If is differentiable at and is differentiable at then the composite function is differentiable at and:
If is differentiable at and is differentiable at then the composite function is differentiable at and:
Linear Approximation
The derivative provides the best linear approximation of a function near a point. Geometrically, this is the tangent line equation.
For example, linearising at gives which closely tracks near while gradually diverging further away:
Let us visualize how the linear approximation matches around and verify the error increases as we move away from
Interactive Lab
Implicit Differentiation
When variables are defined implicitly (e.g., we differentiate both sides with respect to applying the Chain Rule to (treating locally as a differentiable function of
For the unit circle differentiating yields:
Worked trace: Folium of Descartes ( at )ExpandCollapse
- Differentiate both sides with respect to using the Product Rule on
- Collect terms:
- Evaluate at
Deep Practice
Apply differentiation rules, evaluate differentiability contracts, and explore the boundary between derivative existence and derivative continuity.
Exercise 1.2.1: Derivative from First Principles
Using Definition 1.2.1
HintExpandCollapse
Form the difference quotient , find a common denominator, and rationalize the numerator.
Worked solutionExpandCollapse
- Form the difference quotient:
- Multiply numerator and denominator by the conjugate
- Cancel
- Take the limit as using limit laws:
Verification criteria. Requires: (a) explicit difference quotient; (b) algebraic conjugate rationalization; (c) valid cancellation of for (d) correct final algebraic term
Exercise 1.2.2: Continuity Without Differentiability
Show that is continuous at by Theorem 1.2.2
HintExpandCollapse
Evaluate the left-hand and right-hand limits of the difference quotient .
Worked solutionExpandCollapse
Show corner diagram(Click to reveal)
Continuity: Since whenever Thus is continuous at
Non-Differentiability:
The difference quotient at is:
As so
As so
Since the one-sided limits disagree the two-sided limit does not exist. Hence is not differentiable at This confirms the converse of Theorem 1.2.2
Verification criteria. Requires computing both one-sided difference quotient limits and concluding divergence.
Exercise 1.2.3: Product and Quotient Rules on Algebraic Forms
HintExpandCollapse
Apply the Quotient Rule with numerator (which requires the Product Rule) and denominator .
Worked solutionExpandCollapse
- Let By the Product Rule:
- Let Its derivative is
- Applying the Quotient Rule:
- Expanding the numerator: Thus:
Verification criteria. A complete solution requires correct composition of product and quotient rules and simplification.
Exercise 1.2.4: Linear Approximation Error Bound
Let Find the linear approximation of at Use to estimate and show without a calculator that the error is less than
HintExpandCollapse
Recall . For , .
Worked solutionExpandCollapse
Show linearisation diagram(Click to reveal)
- At and so
- The linear approximation is:
- At
- Error analysis: Squaring gives Since Also Thus confirming
Verification criteria. Requires the explicit tangent line equation, the estimate and the rigorous square comparison verifying the error bound.
Exercise 1.2.5: Implicit Differentiation and Normal Slopes
Consider the Folium of Descartes Find the equations of all horizontal and vertical tangent lines on the curve where and
HintExpandCollapse
From the worked trace, . Horizontal tangents have numerator ; vertical tangents have denominator .
Worked solutionExpandCollapse
-
Horizontal Tangents: Substitute into Since divide by Then The horizontal tangent line is
-
Vertical Tangents: By symmetry (swapping and leaves unchanged), the denominator vanishes when giving the vertical tangent at
Verification criteria. Requires setting numerator/denominator to zero, solving with the curve equation, and identifying the coordinates.
Exercise 1.2.6: Derivation of the Inverse Function Rule
Let be strictly monotonic and differentiable on an interval with Let be its inverse.
Use Theorem 1.2.4
HintExpandCollapse
Differentiate both sides of with respect to , assuming is differentiable.
Worked solutionExpandCollapse
- The inverse function identity states:
- Differentiate both sides with respect to applying the Chain Rule (Theorem 1.2.4) to the composite left-hand side:Theorem 1.2.4The Chain RuleIf is differentiable at , and is differentiable at , then the composite function is differentiable at , and:
- By Theorem 1.2.4:Theorem 1.2.4The Chain RuleIf is differentiable at , and is differentiable at , then the composite function is differentiable at , and:
- Since for all Dividing gives: Equivalently, setting so
Verification criteria. A complete derivation requires correct application of chain rule to identity and explicitly noting
References & Further Reading
- Michael Spivak (2008). Calculus (4th ed.), Chapter 9 (“Derivatives”, pp. 143–162) and Chapter 10 (“Differentiation”, pp. 165–181); for the construction of a continuous nowhere-differentiable function, see Chapter 24. Publish or Perish.
- Tom M. Apostol (1967). Calculus, Volume 1: One-Variable Calculus with an Introduction to Linear Algebra (2nd ed.), Chapter 4 (“Differential Calculus”, pp. 155–182). John Wiley & Sons.
- Walter Rudin (1976). Principles of Mathematical Analysis (3rd ed.), Chapter 5 (“Differentiation”, pp. 103–118), and Chapter 9 (“Functions of Several Variables”) for the total derivative on McGraw-Hill.