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 classifies the local behavior of an interior stationary point of . At a candidate , the function and all first- and second-order partial derivatives must be continuous on an open neighborhood of that point, so is there; also, . Points outside the domain interior or without these regularity conditions are not classified by this theorem.
Second Partials Discriminant
Evaluate the Hessian determinant at an interior stationary point.
Variables
| Symbol | Description | Unit |
|---|---|---|
| Hessian determinant at the candidate point | - | |
| Pure second partial derivatives | - | |
| Mixed second partial derivative | - |
Apply the Second Partials Test
- Solve and together. Keep every solution that lies in the interior of the domain.
- For each candidate, verify that the first and second partial derivatives are continuous on an open neighborhood of . If this condition fails, do not apply this test to that point.
- Evaluate , , and at the candidate, then calculate .
- Classify that candidate:
- If and , it is a local minimum.
- If and , it is a local maximum.
- If , it is a saddle point.
- If , the test is inconclusive; assign no maximum, minimum, or saddle classification from this test.
- Repeat the calculation and classification for every other interior stationary candidate.
Two-Variable Second Partials Test: Classify Each Interior Stationary Point
Find every interior stationary candidate, check the theorem's local regularity assumptions, then compute and interpret the discriminant separately at each point.
Applicability at each candidate (a,b): f_x(a,b)=f_y(a,b)=0, (a,b) is interior, and f plus all first- and second-order partial derivatives are continuous throughout an open neighborhood of (a,b), so f is C² there. Compute D=f_xx(a,b)f_yy(a,b)-[f_xy(a,b)]² for every candidate. D<0 gives a saddle; D>0 with f_xx>0 gives a local minimum; D>0 with f_xx<0 gives a local maximum; D=0 is inconclusive and receives no class. This is a local interior-point test only. Boundary points, constrained-domain candidates, and comparison of values for absolute extrema require separate analysis. Critical points where a first partial does not exist are outside this workflow.
Start → Solve f_x = 0 and f_y = 0; retain all interior solutions (a,b).; Solve f_x = 0 and f_y = 0; retain all interior solutions (a,b). → Any interior stationary candidates?; Any interior stationary candidates? — Yes → Select the next untested candidate (a,b).; Any interior stationary candidates? — No → No point is available for this stationary-point test.; No point is available for this stationary-point test. → Local classifications are complete. Analyze boundaries and constraints separately for global extrema.; Select the next untested candidate (a,b). → Interior and C² near (a,b)?; Interior and C² near (a,b)? — Yes → Evaluate f_xx, f_yy, f_xy; compute D at (a,b).; Interior and C² near (a,b)? — No → Do not classify this point with the test; analyze it separately.; Evaluate f_xx, f_yy, f_xy; compute D at (a,b). → Is D < 0?; Is D < 0? — Yes → Classify (a,b) as a saddle point.; Is D < 0? — No → Is D > 0?; Is D > 0? — Yes → Is f_xx(a,b) > 0?; Is D > 0? — No: D = 0 → D = 0: record inconclusive; assign no class.; Is f_xx(a,b) > 0? — Yes → Classify (a,b) as a local minimum.; Is f_xx(a,b) > 0? — No: f_xx < 0 → Classify (a,b) as a local maximum.; Classify (a,b) as a saddle point. → Any untested interior candidates remain?; Classify (a,b) as a local minimum. → Any untested interior candidates remain?; Classify (a,b) as a local maximum. → Any untested interior candidates remain?; D = 0: record inconclusive; assign no class. → Any untested interior candidates remain?; Do not classify this point with the test; analyze it separately. → Any untested interior candidates remain?; Any untested interior candidates remain? — Yes → Return to candidate selection.; Return to candidate selection. → Select the next untested candidate (a,b).; Any untested interior candidates remain? — No → Local classifications are complete. Analyze boundaries and constraints separately for global extrema.; Local classifications are complete. Analyze boundaries and constraints separately for global extrema. → End
- Start: terminator
- Solve f_x = 0 and f_y = 0; retain all interior solutions (a,b).: process. This workflow classifies stationary points where both first partial derivatives equal zero. Boundary points and points where a first partial does not exist are outside its candidate set.
- Any interior stationary candidates?: decision
- No point is available for this stationary-point test.: process
- Select the next untested candidate (a,b).: process
- Interior and C² near (a,b)?: decision. Confirm the candidate is interior and f, all first partials, and all second partials are continuous on an open neighborhood of the point.
- Do not classify this point with the test; analyze it separately.: process
- Evaluate f_xx, f_yy, f_xy; compute D at (a,b).: process. Use D=f_xx(a,b)f_yy(a,b)-[f_xy(a,b)]² for this candidate, not a value carried over from another point.
- Is D < 0?: decision
- Classify (a,b) as a saddle point.: process
- Is D > 0?: decision
- Is f_xx(a,b) > 0?: decision
- Classify (a,b) as a local minimum.: process
- Classify (a,b) as a local maximum.: process
- D = 0: record inconclusive; assign no class.: process
- Any untested interior candidates remain?: decision
- Return to candidate selection.: process
- Local classifications are complete. Analyze boundaries and constraints separately for global extrema.: process
- End: terminator
Local Classification Does Not Establish Global Extrema
The Second Partials Test addresses local behavior at interior stationary points. It does not evaluate boundary points or determine absolute extrema on a closed, constrained, or otherwise restricted domain. Analyze boundary and constraint candidates with methods suited to those sets, then compare the relevant function values when seeking a global maximum or minimum.
Contour Signatures for the Second Partials Test
Lagrange Multipliers
Method of Lagrange Multipliers
For a differentiable objective and equality constraint , a constrained local extremum at a regular interior point where must satisfy for some scalar .
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 | - |
Objective and Constraint Gradients at a Constrained Point
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.