Multivariable Calculus: Limits, Derivatives, Optimization, and Lagrange Multipliers
Limits and Continuity in Higher Dimensions
Functions of Two Variables:
Let be a real-valued function of two independent variables and .
Limit of a Multivariable Function:
The limit of as approaches the point is written as:
Definition of Continuity:
A function is continuous at if the limit exists and the value of the limit equals the value of the function at that point:
Multivariable Partial Derivatives
Limit Definitions of Partial Derivatives:
The partial derivative of with respect to is defined as:
The partial derivative of with respect to is defined as:
Worked Example Using the Limit Definition:
Given the function :
Differentiating with respect to :
Differentiating with respect to :
The Constant-Variable Shortcut Rule:
An easier method to compute partial derivatives is to treat the variable not currently being differentiated with respect to as a constant.
Computational Examples:
Given :
Differentiating with respect to :
Differentiating with respect to :
Given :
Differentiating with respect to :
Differentiating with respect to :
Higher-Order Partial Derivatives and Clairaut's Theorem
Definitions of Mixed Partial Derivatives:
represents taking the partial derivative first with respect to , and then with respect to .
represents taking the partial derivative first with respect to , and then with respect to .
Demonstration of Mixed Partials Equality:
Let .
Finding :
First partial with respect to via the product rule:
Differentiating with respect to :
Finding :
First partial with respect to treating as constant:
Differentiating with respect to via the product rule:
Conclusion: , showing that mixed partial derivatives are equal.
The Gradient Vector and Level Curves
Gradient Definition:
Given a surface , the gradient of is denoted by the total derivative vector:
Geometric Property:
The gradient vector is orthogonal (perpendicular) to the level curves of .
Worked Example:
Find the gradient of at the point :
Partial derivative with respect to :
Partial derivative with respect to :
Evaluating at :
The resulting gradient vector is:
Tangent Planes to Surfaces
Vector Formulation of Tangent Vectors:
}The lines lying within the tangent plane at are given by:
Equation of the Tangent Plane via Cross Product:
Computing the cross product of the two tangent vectors yields the normal vector:
Parametric plane formulation:
Standard Tangent Plane Equation:
The Cartesian equation of the tangent plane at is:
Worked Example: Derivatives of an Exponential-Trigonometric Function:
Given :
First partial with respect to :
First partial with respect to :
Second mixed partial :
Worked Example: Tangent Vectors for an Oscillating Surface:
Given :
Tangent vector along the -direction:
Tangent vector along the -direction:
The Multivariable Chain Rule
Chain Rule Formula:
Given a function dependent on parameter :
Worked Example:
Given where and :
Compute the spatial partial derivatives:
Compute the derivatives with respect to :
Apply the chain rule formula:
Substitute into the expression:
The Directional Derivative
Definition and Formula:
The directional derivative of in the direction of a unit vector is:
Worked Example:
Find the directional derivative of at the point in the direction of vector :
Normalize the direction vector to a unit vector :
Formulate the general directional derivative:
Evaluate at the coordinates where :
Since :
Taking the dot product of the gradient and the unit vector:
Multivariable Optimization, Critical Points, and Extrema
Critical Points:
A point is a critical point of if: or if either or does not exist (DNE).
Worked Example:
Find the critical points of :
Compute partial derivatives:
Set both equations to zero:
Critical point is .
Gradient vector at the critical point:

Geometric Significance of Critical Points:
At an extreme point (such as the peak of a surface), there is no unique direction of greatest increase because the directional derivative in every direction is zero.
Definitions of Local Extrema:
A function has a local minimum at if for all that are close to .
A function has a local maximum at if for all that are close to .
Definition of Saddle Points:
If a critical point is neither a local minimum nor a local maximum, is classified as a saddle point of the function.
The Hessian Matrix and Second-Order Taylor Approximation
Definition of the Hessian Matrix:
The Hessian matrix is the matrix of second-order partial derivatives used to classify critical points:
Determinant Formula:
The determinant of is defined as:
where , , and .
Multivariable Taylor Approximation (Second Order):
The second-order Taylor expansion about is:
Simplified Algebraic Representation via Completing the Square:
In terms of , , and :
Worked Example: Hessian Matrix Calculation:
Calculate for at the point :
First-order partial derivatives:
Second-order partial derivatives:
General Hessian matrix:
Evaluating at :
Determinant calculation:
Classification of Critical Points via the Second Derivative Test
Second Derivative Test Criteria:
If and , then is a local minimum.
If and , then is a local maximum.
If , then is a saddle point.
If , the test is inconclusive.
Worked Classification Example 1:
Find and classify the critical points of :
First partial derivatives set to zero:
Critical point is .
Compute the Hessian matrix:
Evaluate classification parameters:
Conclusion: The point is a local minimum.
Worked Classification Example 2:
Find and classify the critical points of :
First partial derivatives set to zero:
Solving the system:
If , then , giving critical point .
If , then , giving critical points and .
Second partial derivatives:
Classifying : Conclusion: Inconclusive.
Classifying : Conclusion: Saddle point.
Classifying : Conclusion: Local maximum.
Absolute Extrema on Closed and Bounded Domains
Definitions of Sets:
A set is closed if it contains all of its boundary points.
A set is bounded if it can fit entirely inside a disc of fixed radius.
Extreme Value Theorem (EVT):
For a continuous function defined on a closed and bounded set, there exist points and such that:
is an absolute maximum.
is an absolute minimum.
Worked Example: Triangular Domain:
Find the absolute minimum and maximum of on the region bounded by vertices , , and .

Step 1: Interior Critical Points:
Setting first partial derivatives to zero:
Interior critical point candidate is .
Hessian matrix:
Step 2: Boundary Evaluation along the Bottom Edge from to :
Parametrized as with :
Step 3: Boundary Evaluation along the Left Edge from to :
Parametrized as with : Critical point evaluation yields .
Step 4: Boundary Evaluation along the Hypotenuse from to :
Parametrized as vector line:
Substitute into the function:
Differentiating and setting to zero:
The boundary critical point on the hypotenuse is:
Step 5: Candidate Evaluation:
At : (Absolute Minimum)
At : (Absolute Maximum)
At :
At :
Constrained Optimization Using Lagrange Multipliers
Method Concept:
At an extremum subject to the constraint , the gradient of is proportional to the gradient of for some scalar multiplier :
Four-Step Optimization Procedure:
Identify the objective function and constraint .
Set up the vector equation along with .
Solve the resulting system of equations for and .
Compare the values of at the solution points: the largest value maximizes , and the smallest value minimizes .
Worked Example 1:
Optimize subject to :
Formulate constraint equation:
Compute gradients:
Equate components:
Simplify second equation:
Equate the expressions for :
Solving the system with constraint gives:
Classification: is the extremum point (absolute maximum or minimum determined by testing surrounding constraint values).
Worked Example 2:
Find the maximum and minimum values of subject to :
Constraint equation:
Gradient equations:
Equate gradient components using multiplier :
Case 1 ():
Dividing by yields:
Substitute into the second equation:
Substitute into the relation:
Solve for :
Resulting points:
Case 2 ():
Substitute into the constraint equation:
Resulting point is .
Candidate Evaluation:
At : (Maximum)
At : (Maximum)
At : (Minimum)
Comparative constraint point test: confirming the maximum value is and the minimum value is .