Partial Differentiation
Learning Objectives
- Define and compute partial derivatives for functions of multiple variables, identifying variables to hold constant.
- Apply the Second Partials Test (Hessian matrix discriminant) to rigorously classify relative maxima, minima, and saddle points on 3D surfaces.
- Employ the method of Lagrange Multipliers to solve constrained optimization problems commonly found in engineering design.
- Utilize the multivariable Chain Rule and Implicit Function Theorem to differentiate complex, interdependent parameter systems.
- Compute and geometrically interpret the Gradient Vector, understanding its relationship to steepest ascent and orthogonal level curves.
- Apply Total Differentials to approximate multidimensional functional changes and estimate compound measurement errors.
Functions of Several Variables
Multivariable Function
A function assigns a unique output for every independent input pair in its domain. The geometric graph of such a function forms a surface in 3D Cartesian space.
Partial Derivatives
Notation
- or : Partial derivative with respect to (treat as constant).
- or : Partial derivative with respect to (treat as constant).
- Note the use of the "curly d" symbol ().
Interactive Simulation
Use the simulation below to explore partial derivatives.
Partial Derivatives
Visualizing Surface:
Red Arrow: Slope along x-axis ()
Green Arrow: Slope along y-axis ()
Higher-Order Partial Derivatives
Second-Order Partial Derivatives:
- (Mixed partial: differentiate w.r.t then )
- (Mixed partial: differentiate w.r.t then )
Clairaut's Theorem
Clairaut's Theorem: If the mixed partial derivatives are continuous, then the order doesn't matter: .
Extrema of Functions of Two Variables (Second Partials Test)
The Second Partials Test
- Find all critical points such that and .
- Compute the second partial derivatives: , , and .
- Evaluate the discriminant (Hessian determinant) at :
Classify the point based on :
- If and , then is a local minimum.
- If and , then is a local maximum.
- If , then is a saddle point (neither max nor min, looks like a horse saddle).
- If , the test is inconclusive.
Lagrange Multipliers
Method of Lagrange Multipliers
To maximize or minimize subject to the constraint , we find the points where the gradient of is parallel to the gradient of . This introduces a scalar parameter (lambda).
Method of Lagrange Multipliers
Gradient relationship for constrained optimization.
Variables
| Symbol | Description | Unit |
|---|---|---|
| Gradient of the objective function | - | |
| Lagrange multiplier | - | |
| Gradient of the constraint function | - |
Chain Rule for Several Variables
Chain Rule for Several Variables
Total derivative with respect to a parameter t.
Variables
| Symbol | Description | Unit |
|---|---|---|
| Total derivative of z with respect to t | - | |
| Partial derivatives of z | - | |
| Derivatives of intermediate variables | - |
Implicit Partial Differentiation
Implicit Partial Derivative (w.r.t x)
Finding partial derivative implicitly.
Variables
| Symbol | Description | Unit |
|---|---|---|
| Partial derivative of z with respect to x | - | |
| Partial derivatives of implicit function F | - |
Implicit Partial Derivative (w.r.t y)
Finding partial derivative implicitly.
Variables
| Symbol | Description | Unit |
|---|---|---|
| Partial derivative of z with respect to y | - | |
| Partial derivatives of implicit function F | - |
The Gradient Vector
The Gradient
For a function , the gradient, denoted by (read "del f"), is the vector:
The Gradient Vector
Vector of partial derivatives.
Variables
| Symbol | Description | Unit |
|---|---|---|
| Gradient vector of f | - | |
| Partial derivatives of f | - |
Properties of the Gradient Vector
- The gradient vector points in the direction of the maximum rate of increase of the function.
- The magnitude of the gradient vector, , gives the maximum rate of increase in that direction.
- The gradient vector is always perpendicular (orthogonal) to the level curves of the function.
Directional Derivatives
Directional Derivative
The directional derivative of in the direction of a unit vector is defined as the dot product of the gradient and the unit vector:
Directional Derivative
Rate of change in an arbitrary direction.
Variables
| Symbol | Description | Unit |
|---|---|---|
| Directional derivative in direction u | - | |
| Gradient vector | - | |
| Unit direction vector | - | |
| Components of unit vector u | - |
Interactive Simulation
Use the simulation below to explore directional derivatives and gradient vectors on a contour map, illustrating steepest ascent and orthogonal level curves.
Gradient Vector Visualization
Surface: f(x, y) = x² + y²
Current State
Move your mouse over the grid. Notice how the red gradient vector always points directly outward from the origin, perpendicular to the circular level curves. This shows the direction of steepest ascent on the paraboloid surface.
Total Differentials
Total Differential
Approximate total change in z.
Variables
| Symbol | Description | Unit |
|---|---|---|
| Total differential of z | - | |
| Partial derivatives | - | |
| Differentials of independent variables | - |
Engineering Applications
Partial differentiation is foundational in solid mechanics and fluid dynamics. For example, the stress and strain on a structural element are described by tensors derived from partial derivatives of displacement fields. The gradient vector is also heavily used in optimization algorithms to find structural configurations that minimize weight while meeting safety constraints.
- Partial Derivatives measure the rate of change with respect to one variable while holding others constant. Geometrically, they represent the slopes of tangent lines in the x and y directions.
- The Second Partials Test classifies critical points on surfaces as local max, min, or saddle points using the Hessian discriminant.
- Lagrange Multipliers optimize multivariable functions subject to constraint equations.
- The Chain Rule for multivariable functions sums the contributions from each intermediate variable.
- The Gradient Vector points in the direction of steepest ascent and its magnitude gives the maximum rate of change. It is orthogonal to level curves.
- Total Differentials approximate changes in multivariable functions, useful for total error estimation.