Lecture 14: Review of Differentiability, Tangent Planes, and Introduction to the Chain Rule
Review of Differentiability and Tangent Planes (from Lecture 13)
One-Variable Case (1D):
The derivative is the slope of the tangent line to the curve at .
Approximated by slopes of secant lines, as the difference .
Limit definition: .
Rearranged form (linearization with error term): where as . This implies the error goes to zero quickly.
Linearization: By re-indexing and setting , we get the equation of the tangent line: . This is the first-degree Taylor polynomial centered at .
Two-Variable Case (2D):
An analogous multi-variable limit definition exists (e.g., and more complex algebraic manipulations).
Differentiability Definition: A function is differentiable at if it is well approximated by its tangent plane at . This is similar to the 1D case where a function is differentiable if well approximated by its tangent line.
Geometric Understanding of Partial Derivatives:
To understand partial derivatives geometrically, one slices the surface with planes of fixed or values (e.g., or ).
These slices create curves on the surface. When viewed as one-variable functions, the slope of these curves is the partial derivative at that point.
The tangent vectors to these curves at a given point effectively span the tangent plane at that point (forming an affine space).
Tangent Plane as Linearization: The tangent plane is the two-variable analog of the tangent line and represents the linearization of the function at that point.
Differentiability Condition (easier to check): A function is differentiable at if its partial derivatives, and , exist and are continuous in a region containing . This is a sufficient condition.
Differentials and Total Differential
Concept Definition: Differentials (, ) represent the linearized change in a variable, while increments (, ) represent the actual change.
1D Example:
For the independent variable: .
For the dependent variable: (actual change in ) vs. (linearized change along the tangent line). The formula for the linearized change is .
2D Case:
For independent variables: and .
For the dependent variable (), the total differential () is the linearized change in (change along the tangent plane).
Total Differential Formula: .
Geometric Interpretation of : It represents how much the coordinate changes as one moves between two points on the tangent plane, given changes and in the and directions respectively.
Relationship to Differentiability Definition in 2D: The complicated definition of 2D differentiability, where as , can be understood as:
The terms are precisely the total differential . They represent the change along the tangent plane.
The terms are error terms () that quantify the deviation between the actual surface and its tangent plane approximation.
Practical Application: Error Propagation
Differentials can be used to estimate how uncertainties in input measurements propagate to the uncertainty of a calculated output quantity (e.g., in science labs).
Example: Volume of a Cone
Formula: .
Measurements: radius cm, height cm.
Measurement errors: cm, cm.
Goal: Estimate the error in the volume ().
Apply total differential formula: .
Calculate partial derivatives:
Plug in values: (values for and are bounds of error, so is often implied).
The calculated volume is plus or minus . This provides an estimate of the error using a linear approximation.
Chain Rule
Motivation: To understand the rate of change of a function in terms of an indirect variable by compounding the rates of change of direct variables.
1D Recall: If and , then is a differentiable function of , and its derivative is given by the chain rule: .
Case 1: Two Intermediate Variables, One Independent Variable
Let where and .
The chain rule for this case is: .
This formula can be proven using limits of difference quotients, similar to the 1D case (though skipped in class).
Analogy to Total Differential: It resembles the total differential formula (), where effectively and are replaced by and and then divided by .
Example 1: Find for , with and when .
Calculate partial derivatives of : and .
Calculate derivatives of and with respect to : and .
Evaluate and .
Substitute into the chain rule formula:
.
Geometric Understanding: The path in the XY-plane creates a curve on the surface . The derivative represents the slope of the tangent vector to this curve on the surface.
Applied Example: Ideal Gas Law: Let from , assuming , so . Find the rate pressure changes () given rates of change for temperature () and volume ().
Chain Rule Formula: .
Calculate partial derivatives:
Plug in given values (e.g., , , , ) into the formula.
Case 2: Two Intermediate Variables, Two Independent Variables
Let where and .
This generalizes from Case 1 by treating one of the independent variables ( or ) as a constant when differentiating with respect to the other.
Formulas:
(treating as constant)
(treating as constant)
Terminology: is the output/dependent variable; are intermediate variables; are independent variables.
General Case: Many Intermediate and Independent Variables
Let , where each intermediate variable is a function of multiple independent variables (i.e., ).
The chain rule for any partial derivative of with respect to an independent variable is:
.
This formula sums over all intermediate variables () and covers all previous cases.
Terminology: is the output/dependent variable; are intermediate variables; are independent variables.