Multivariable Calculus: Functions of Several Variables, Differentiation, and Optimization
Functions of Several Variables and Their Visualizations
Definition of a Function of Two Variables:
A function of two variables assigns to each ordered pair in a subset of a unique real number .
The set is called the domain of , representing all permissible input coordinates in the plane.
The range of is the set of all real outputs taken on by : .
Domain and Range Examples:
For :
Domain: Entire plane .
Range: Non-negative real numbers .
For :
Domain: Entire plane .
Range: Since can be arbitrarily large and , the range is .
For :
Domain: All points in where the denominator is non-zero: .
Range: All real numbers .
For :
Domain: Set of points satisfying , which describes the closed unit disk .
Range: The radical takes values from up to , so the range is .
For :
Domain: The argument of the natural logarithm must be strictly positive: .
Range: All real numbers .
Graphs of Functions of Two Variables:
The graph of a function is the set of all points such that for .
Geometrically, this graph represents a two-dimensional surface in three-dimensional space whose vertical projection onto the -plane is the domain .

Graph Analysis of :
Domain: .
Range: .
Geometric description: Because is absent from the formula, every cross-section parallel to the -plane is an identical downward-opening parabola . The surface is a parabolic cylinder extending infinitely along the -axis with vertex line along .
Graph Analysis of :
Domain: Points satisfying (an elliptical region in the -plane).
Range: .
Traces: Squaring both sides gives with , or , which represents the upper half of an ellipsoid.
Horizontal trace at :
Substitute into the explicit equation: .
Square both sides: .
Rearrange terms: .
Standard form: , an ellipse in the plane .
Level Curves and Contour Maps:
Definition: Given a function and a constant in the range of , the level curve (or contour curve) of for the value is the set of points in the -plane satisfying the equation .
Contour Map: A collection of several level curves plotted in the -plane for equally spaced values of .
Circular Cone Example: .
For each , the level curve is , representing concentric circles centered at the origin of radius .
The 3D surface is the upper half of a right circular cone with vertex at the origin.
Hyperbolic Paraboloid Example: .
For , the level curves are hyperbolas opening along the -axis: .
For , the level curves are hyperbolas opening along the -axis: .
For , the level curve consists of the pair of intersecting lines .

Functions of Three or More Variables and Level Surfaces:
For a function of three variables , the domain is a subset of and its graph resides in four-dimensional space .
Level surfaces are the three-dimensional solution sets to the equation , where is a constant in the range of .
Classification Summary:
1 Independent Variable: Explicit form , Implicit form , graph resides in .
2 Independent Variables: Explicit form , Implicit form , graph resides in .
3 Independent Variables: Explicit form , Implicit form , graph resides in .
Example: .
Domain: All points in where the logarithm argument is positive: (the interior of a solid ellipsoid).
Range: The argument varies over , so the range is .
Level Surfaces: For a constant , setting gives , or . In standard form: . These are concentric ellipsoids centered at the origin.
Comparative Roadmap from Single-Variable to Multivariable Calculus:
Derivative:
Single-variable curve : .
Multivariable surface : Partial derivatives and .
Second Derivatives:
Single-variable: .
Multivariable: , , , and .
Tangent Approximation:
Single-variable tangent line: .
Multivariable tangent plane: .
Differentials / Linear Approximations:
Single-variable: .
Multivariable: .
Chain Rule:
Single-variable: .
Multivariable: .
Critical Points:
Single-variable: .
Multivariable: Both first partials vanish simultaneously: and .
Limits and Continuity in Higher Dimensions
Single-Variable Review:
exists if and only if both one-sided limits exist and are equal: .
A function is continuous at if:
is defined.
exists.
.
Definition and Geometry of Multivariable Limits:
means that as the point approaches along every possible continuous path in the domain, the value approaches .
In , there are infinitely many paths of approach (lines, parabolas, cubics, spirals) toward .
The Two-Path Test for Non-Existence of Limits:
If approaches different values along two distinct paths as , or if fails to approach a finite value along any single path, then does not exist (DNE).
Caution: Showing that approaches the same number along several paths (or even infinitely many straight lines) does not prove that the limit exists.
Example: Calculate .
Approach along the line (as ):
.
Approach along the line (as ):
.
Since , the limit does not exist.
Example: Show that does not exist.
Approach along straight lines :
.
The limit along every straight line through the origin is .
Approach along parabolic paths (matching powers of the denominator):
.
Along the parabola (), the value is .
Along the parabola (), the value is .
Because the values differ along different paths, the limit DNE.
Multivariable Limit Laws:
Let , , and be a constant:
Constant Law: .
Identity Laws: and .
Sum and Difference: .
Scalar Multiple: .
Product Law: .
Quotient Law: , provided .
Power Law: for an integer .
Root Law: for an integer (assuming if is even).
Evaluating Limits via Polar Coordinates:
For limits at , substituting and transforms the condition into .
Example 1: .
Substitute :
.
Example 2: .
Convert to polar form:
.
Since , we have .
As , by the Squeeze Theorem the limit is .
Continuity of Multivariable Functions:
A function is continuous at if .
A function is continuous on a domain if it is continuous at every point .
Properties:
All polynomials of two or more variables are continuous on .
Rational functions are continuous at all points in their domains (where the denominator is non-zero).
Sums, differences, constant multiples, products, quotients (with non-zero denominators), and compositions of continuous functions are continuous.
Direct Substitution Examples:
.
.
Continuity Discussion Examples:
Function : Continuous on its open domain .
Let .
Factoring the numerator gives .
Taking the limit: .
Since , is continuous everywhere on .
Let .
Since , is discontinuous at .
Additional Worked Exercises on Limits and Continuity:
Limit by Factoring: .
Factor numerator: for .
Evaluate: .
Limit by Rationalization: .
Let . Since , .
The fraction becomes .
Evaluate: .
Squeeze Theorem Application: Show .
For the first term: .
Since and , .
Similarly, .
By the sum law, .
Removable Discontinuity: For for .
Let . As , .
.
To make continuous at , define .
Three-Variable Limit: .
Group terms: .
Cancel : .
Continuity in Three Variables: .
is continuous at all points in except where (the surface of an infinite cylinder of radius 2 centered along the -axis).
Partial Derivatives and Mixed Partials
Definition of First Partial Derivatives:
For a function , the partial derivative of with respect to at is:
The partial derivative of with respect to at is:
Notations:
With respect to : .
With respect to : .
Evaluated at a point : , .
Geometric Interpretation:
Curve is the intersection of the vertical plane with the surface . The value is the slope of the tangent line to at .
Curve is the intersection of the vertical plane with the surface . The value is the slope of the tangent line to at .

Computation Rule:
To compute , differentiate with respect to using standard single-variable rules while holding strictly constant.
To compute , differentiate with respect to while holding strictly constant.
Worked Partial Differentiation Examples:
For :
.
By the product rule: .
For :
.
.
.
Slope of Tangent Line to Intersection Curve:
Surface cut by plane at point .
Since is fixed at , the slope is along the -direction, given by .
.
Evaluated at : .
Implicit Differentiation of to find :
Differentiate both sides with respect to , viewing as an implicit function of and :
.
.
.
Second-Order and Higher Partial Derivatives:
Definitions of second partial derivatives for :
Second pure partial in : .
Second pure partial in : .
Mixed partial (differentiate first by , then by ): .
Mixed partial (differentiate first by , then by ): .
Example: For :
.
.
Here, .
Clairaut's Theorem (Equality of Mixed Partials):
Let be defined on an open set . If both mixed partial derivatives and are continuous on , then for all .
Failure of Clairaut's Theorem when Continuity Fails:
Consider .
Using the limit definition of partial derivatives:
.
.
Computing mixed second partials at :
.
.
Thus, . Away from the origin, . As along the -axis the limit is , while along the -axis the limit is . Because is not continuous at , Clairaut's Theorem does not apply.
Higher Order Derivative Calculation: If , calculate .
First step: .
Second step: .
Third step: .
Additional Worked Exercises on Partial Derivatives:
Second Partials of Inverse Tangent: .
.
.
Pure second partials:
.
.
Mixed partials:
.
Integrability Condition Test: Could and be partial derivatives of a function in the plane?
Compute mixed partials: and .
Since , Clairaut's Theorem would be violated. Therefore, no such function exists.
Existence of Potential Function: Could and be partial derivatives of ?
Check mixed partials: .
Integrating with respect to yields , which has the given . Thus, yes.
Existence of Partials without Continuity: Let .
At the origin: , and similarly .
However, is not continuous at : along the line , the limit is , while along the line , .
Tangent Planes, Differentiability, and Linear Approximations
Tangent Planes to Surfaces :
If has continuous partial derivatives at , the surface has a tangent plane at .
The tangent plane contains the tangent lines to the two vertical trace curves passing through .
Tangent Plane Equation:
Equivalently: .

Example: Find the equation of the tangent plane to at .
Compute .
Partials:
.
.
Plane equation: .
Differentiability in Multivariable Calculus:
Definition: A function is differentiable at if can be expressed in the form:
, where as .
Theorem (Sufficient Condition for Differentiability):
If the first partial derivatives and exist in an open neighborhood containing and are both continuous at , then is differentiable at .
Differentiability Example: Check differentiability of at .
Partials:
.
.
Since the rational expressions and have denominators that are non-zero at and near , both partials are continuous. Thus, is differentiable at .
Theorem (Differentiability Implies Continuity):
If is differentiable at , then is continuous at .
Counterexample (Existence of Partials Does Not Imply Differentiability):
Let .
Partials at origin: and . Both partials exist.
Discontinuity at origin: Along paths , . For , the limit is , but along , the limit is . Thus, is not continuous at , which implies is not differentiable at .
Linear Approximations (Linearization):
If is differentiable at , its linear approximation is given by the tangent plane function:
Alternatively, in terms of increments: .
Example: Find the linear approximation of at and approximate .
Base value: .
Partials:
.
.
Linearization:
.
Estimation for and :
.
Total Differentials:
For , the independent differentials are and .
The total differential (or ) is defined as:
Geometrically, represents the actual change in the height of the surface, whereas represents the change in the height of the tangent plane.

Comparative Increment Example: For , find and as changes from to () and changes from to ().
Initial point: .
Final point: .
Actual change: .
Partials at : ; .
Differential: .
Error Propagation Example: A piece of cylindrical cable has measured length and radius . Measurement errors in height and radius are at most . Estimate the error in volume.
Cylinder Volume: .
Total Differential: .
Substitute values: .
Relative Error: ().
Additional Worked Exercises on Linear Approximations and Tangent Planes:
Tangent Plane: Surface at point .
.
.
Plane: .
Multiply by 16: .
Standard form: .
Linearization: at , estimate .
.
.
.
Linearization: .
Estimate: .
Copper Tank Differential Problem: Rectangular copper tank with open top, inside dimensions length , width , depth . Sheet copper thickness .
Copper surrounds 4 sides and bottom. Inside volume is .
Increments: Length increases by (two walls), width by (two walls), depth by (bottom only).
, , .
Volume differential: .
.
Parallel Resistors Network: Three resistors in parallel have net resistance defined by .
Given: , , .
Base value: .
Differentiating implicitly: .
Multiply by : .
Changes: , , .
.
The Multivariable Chain Rule and Implicit Differentiation
Single Independent Variable Chain Rule:
If is a differentiable function of and , and and are differentiable functions of a single variable , then is a differentiable function of , and:
Example 1: , with and .
Partials: , .
Derivatives: , .
Chain rule: .
Example 2: , with and .
Partials: , .
Derivatives: , .
Chain rule: .
Physical Application (Pouring Conical Sandpile):
Volume of a right circular cone: .
Given rates: , .
Evaluation values: , .
Rate of volume change via Chain Rule:
.
Multivariable Chain Rule (Multiple Independent Variables):
If where and , then:
Three Intermediate Variables: If with , , , then:
Worked Example: , with , , . Find and at .
Evaluate coordinate points: , , .
Partials of :
.
.
.
Derivatives with respect to : , , .
.
Derivatives with respect to : , , .
.
Nested Tree Diagram Formula: If is a function of , is a function of and , and are functions of :
.
Implicit Differentiation Formulas:
Case 1 (Two Variables): If defines implicitly, differentiating both sides with respect to yields , which gives:
, provided .
Example: Find for .
Define .
.
.
Applying the formula: .
Case 2 (Three Variables): If defines implicitly, differentiating with respect to (holding constant) and with respect to (holding constant) yields:
, provided .
, provided .
Example: Find and at if .
Define .
.
.
.
Results: and .
Additional Worked Exercises on the Chain Rule:
Function Composition: Let , with and . Find and .
At , and .
, .
.
, .
.
Temperature Along Crawling Fly's Path: A fly crawls with position and . The temperature field satisfies and . Find at .
Position at : , .
Velocities: ; .
Rate of temperature change: .
Implicit Differentiation of near :
Let .
, , .
. At , .
. At , .
Total Derivative with Respect to Parameter : With , , , :
.
Directional Derivatives and the Gradient Vector
Definition of Directional Derivative:
The partial derivatives and evaluate the rate of change of along the coordinate axis directions and .
Let be an arbitrary unit vector (). The directional derivative of at in the direction of is defined as:
Special Cases: and .

Computing Directional Derivatives via Gradients:
Theorem: If is a differentiable function, then the directional derivative exists in the direction of any unit vector and is given by:
Angle Representation: Any unit vector in the plane can be written as , leading to:
Scaling Caution: If a direction is given by a non-unit vector , it must first be normalized to a unit vector .
Definition and Properties of the Gradient Vector:
For a function of two variables , the gradient vector is defined as:
For a function of three variables , the gradient vector is:
Dot Product Formulation: The directional derivative is the dot product of the gradient vector and the unit direction vector:
Geometric Interpretation of the Gradient:
By the geometric definition of the dot product: , where is the angle between and .
Because , the directional derivative satisfies:
Maximum Rate of Increase: Occurs when . The direction of steepest ascent is in the direction of the gradient vector , and the maximum rate of increase is .
Maximum Rate of Decrease: Occurs when . The direction of steepest descent is in the direction of , and the minimum rate of change is .
Zero Rate of Change: Occurs when . In any direction orthogonal to , the directional derivative is zero: .
Worked Gradient and Directional Derivative Examples:
Example 1: Find the directional derivative of at in the direction .
Gradient: ; .
.
Dot product: .
Example 2: Find the directional derivative of at in the direction .
Normalization: .
Partials: ; .
.
Directional derivative: .
Example 3: Gradient of .
.
Evaluated at : .
Example 4: Three-Variable Gradient and Directional Derivative for at in direction .
Point value exponent: .
Partials:
.
.
.
Gradient: .
Unit vector: .
Derivative: .
Example 5: Steepest Ascent / Descent Unit Vectors for at .
Partials: ; .
Gradient: , with magnitude .
Steepest ascent unit vector: .
Steepest descent unit vector: .
Example 6: Electric Potential at .
Partials:
.
.
.
Gradient: .
Rate in direction (): .
Direction of most rapid change: .
Maximum rate of change: .
Additional Worked Exercises:
By Limit Definition: at in direction .
.
.
Difference quotient: .
Limit as : .
Three-Variable Direction Toward Point: at in direction toward .
Vector: .
Length: .
Unit vector: .
Gradient: , , .
.
Derivative: .
Maximum Rate of Change: at .
Partials: ; ; .
Direction: .
Maximum rate: .
Temperature Field on Metal Plate: from point .
Gradient: ; .
Direction of most rapid increase: .
Rate of increase: .
Geometric Applications of Gradients: Level Sets and Tangent Planes
Orthogonality of the Gradient to Level Curves:
Along any level curve , the function value remains constant.
The rate of change in any direction tangent to the level curve must be zero: .
Because , the gradient vector is perpendicular (orthogonal) to the tangent vector of the level curve passing through , provided .

Example: For at .
.
Maximum directional derivative: .
Minimum directional derivative: .
Directions of zero change: Vectors orthogonal to , which are proportional to .
Tangent Vector to Level Curve: The point lies on the level curve . A tangent vector to this level curve at is .


Tangent Planes to Level Surfaces :
A surface in may be defined explicitly as or implicitly as a level surface .
Generalizing the 2D property: The gradient vector is normal (orthogonal) to the level surface at the point .
Tangent Plane Equation for Implicit Surface:
Equivalence to Explicit Surfaces: If , define . Then . The tangent plane equation becomes:
.
Normal Line to a Surface:
The normal line to the surface at is the line passing through parallel to the normal vector .
Symmetric Equations:
Parametric Equations: , , .

Worked Tangent Plane and Normal Line Examples:
Example 1: Tangent Plane and Normal Line to at .
Gradient: , , .
At : .
Tangent Plane: .
Normal Line: , or in parametric form: , , .
Example 2: Tangent Plane and Normal Line to at .
Define .
Partials:
.
.
.
Normal Vector: .
Tangent Plane: .
Normal Line: .
Example 3: Tangent Line to Intersection Curve of Two Surfaces.
Cylinder and plane intersect in an ellipse . Find parametric equations for the tangent line to at .
The tangent line must be tangent to both surfaces, hence orthogonal to both normal vectors and .
Gradients:
.
.
Tangent Direction Vector via Cross Product:
.
Simplified direction vector: .
Parametric Equations: , , .

Example 4: Angle Between Two Intersecting Surfaces.
Find the acute angle between and at .
The angle between two surfaces at a point is the angle bet ween their normal vectors.
Normal Vectors:
, with length .
, with length .
Dot Product: .
Angle Calculation: .
.
Additional Worked Exercises on Gradients and Geometry:
Tangent Plane to Hyperboloid: at .
Let .
.
Divide by to obtain normal vector .
Tangent Plane: .
Tangent Line to Intersection of Paraboloid and Ellipsoid: Intersection of and at .
Surface 1: .
Surface 2: .
Tangent Direction: .
Parametric equations (using direction ): , , .
Parallel Tangent Plane to Ellipsoid: Find points on where the tangent plane is parallel to .
Let . Normal vector is .
Tangent plane is parallel to the given plane if .
Thus: , , .
Substitute into ellipsoid: .
Points: and .
Orthogonality of Level Curves: Show that the families of level curves for and are orthogonal.
Gradients: and .
Dot product: .
Since their gradient vectors are orthogonal, the tangent lines to their respective level curves are perpendicular at every point of intersection.
Extreme Values and Unconstrained Optimization
Definitions of Local Extrema and Critical Points:
A function has a local maximum at if for all in an open disk centered at .
A function has a local minimum at if for all in an open disk centered at .
Critical Point Definition: An interior point in the domain of is a critical point if either:
(i.e., both and ), or
At least one of the partial derivatives or does not exist at .
Fermat's Theorem for Multivariable Functions: If has a local extremum at and both first partial derivatives exist, then and .

Saddle Points:
A critical point where is called a saddle point if every open disk centered at contains points where and points where .
Prototypical Saddle Example: .
; . Unique critical point is .
Along the -axis (): (looks like a minimum).
Along the -axis (): (looks like a maximum).
Therefore, is a saddle point.
The Second Derivative Test:
Suppose has continuous second partial derivatives in an open disk centered at a critical point where and .
Define the discriminant (Hessian determinant):
Classification Rules:
If and , then is a local maximum.
If and , then is a local minimum.
If , then has a saddle point at .
If , the test is inconclusive (the critical point must be classified via alternative means).
Worked Critical Point Classification Examples:
Example 1: .
Partials:
.
.
Critical Points: , , .
Second Partials: , , .
Discriminant: .
Classification:
At : Saddle point.
At : , Local minimum ().
At : , Local minimum ().
Example 2: .
First Partials:
.
or .
Find Critical Points:
If , then .
If , then and .
Second Partials: , , .
Discriminant formula: .
Classification:
At : , Local maximum ().
At : Saddle point.
At : Saddle point.
Example 3: .
Partials: ; . Unique critical point is .
Second Partials: , , .
At : (test is inconclusive).
Direct Analysis: Since and for all , is an absolute (and local) minimum.
Absolute Extrema and the Extreme Value Theorem:
Extreme Value Theorem: A continuous function on a closed and bounded set attains both an absolute maximum and an absolute minimum on .
Closed and Bounded Procedure:
Find the values of at all critical points in the interior of .
Find the extreme values of on the boundary of .
The largest of these values is the absolute maximum, and the smallest is the absolute minimum.
Example 1: Absolute extrema of on the disk .
Interior Critical Points: , . Value: .
Boundary Analysis ( for ):
Substitute into function: .
Differentiate: .
If , then , giving values .
Boundary endpoints (, ): .
Comparison: Values are , , and .
Absolute Maximum: at .
Absolute Minimum: at .
Example 2: Absolute extrema of on the triangular region with vertices , , and .
Interior: ; .
Critical point is . Boundary hypotenuse has equation , so at , , confirming is inside the triangle.
Value: .
Boundary Segment 1 (, ): . Min is , max is .
Boundary Segment 2 (, ): . Min is , max is .
Boundary Segment 3 (, ):
.
, .
Value: .
Endpoints: , .
Comparison of all candidate values: .
Absolute Maximum: at .
Absolute Minimum: at .
Additional Worked Exercises on Optimization:
Non-Differentiable Critical Point: Let .
First partials: and , undefined at .
Thus, is the unique critical point.
Since and everywhere else, attains an absolute minimum at .
Classification of Critical Points: .
.
.
Adding equations: .
If : . Critical points: and .
If : (no real solutions).
Second Partials: , , .
At : , , (Saddle point).
At : , , (Saddle point).
Absolute Extrema on Rectangle: on .
Interior: or .
. If , with .
If , (outside ).
Boundary Analysis:
Along (): . Min at (), max at ().
Along (): (constant).
Along (): . Vertex at has value . Max at has value .
Absolute Maximum: .
Absolute Minimum: .
Distance Minimization to Surface: Find the points on the surface closest to the origin.
Minimize squared distance .
Partials: .
.
When , .
Closest points are and .
Inscribed Box Optimization: A rectangular box rests in the first octant with one vertex at and opposite vertex on the plane .
Solve for : .
Box volume: .
Partials:
.
.
For non-zero volume ():
.
.
Multiply second equation by 2: .
Subtracting gives .
Then .
Height: .
Maximum Volume: .

Constrained Optimization: The Method of Lagrange Multipliers
Geometric Foundation of Constrained Extrema:
To optimize an objective function subject to a constraint curve , consider the level curves .
An extreme value of along occurs at the highest or lowest for which the level curve intersects the constraint curve.
At such optimal points, the level curve and the constraint curve are tangent, meaning they share a common normal line.
Since is perpendicular to the level curves of , and is perpendicular to the constraint curve, their gradient vectors must be parallel.
Lagrange's Theorem and the Multiplier Method:
Theorem: Let and have continuous first partial derivatives such that has an extremum on the smooth constraint curve . If , then there exists a real scalar (called the Lagrange multiplier) such that:
Algorithm for One Constraint:
Solve the simultaneous system of equations:
In coordinate form for two variables:
Evaluate at all solution points . The largest value is the maximum and the smallest value is the minimum.
Limitation Caveat: The method of Lagrange multipliers is suited for smooth constraints; it does not directly optimize over piecewise boundaries like triangles or rectangles where no single smooth equation describes the boundary.
Worked Lagrange Multiplier Examples:
Example 1: Maximize and minimize subject to .
Gradients: ; .
System:
Cases:
From the first equation, either or .
If , then . Candidate points: and .
If , the second equation requires . Then . Candidate points: and .
Evaluate :
.
.
Results: Maximum value is at ; Minimum value is at .
Example 2: Extrema of subject to .
Gradients: ; .
System:
Subtract equations: .
Rearrange: .
Case A: .
Constraint: .
Points: and .
Function values: , .
Case B: .
Substitute into first equation: .
Constraint: .
Points: and .
Function values: .
Results: Maximum value is at and ; Minimum value is at and .
Example 3: Three-Variable Optimization: Extrema of subject to .
Gradients: ; .
System:
Substitute into constraint :
Coordinates:
For : , , .
.
For : , , .
.
Results: Maximum value is , minimum value is .
Lagrange Multipliers with Two Constraints:
To optimize subject to two simultaneous constraints and , introduce two multipliers and :
Example: Find the minimum distance from the origin to the line of intersection of planes and .
Minimize squared distance .
Constraints: and .
Gradients: , , .
System:
Eliminate multipliers:
Subtracting second equation from first: .
Then .
Substitute into third: .
Multiplying by 3: .
Solve the 3-by-3 linear system:
(1)
(2)
(3)
Adding (2) and (3): .
Adding (1) and (2): .
Substitute into (1): .
Then , and .
The closest point is .
Minimum distance: .
Additional Worked Exercises on Constrained Optimization:
Minimum Distance from Point to Plane: Find the minimum distance from to the plane .
Method (a) - Vector Projection: Normal vector . Pick a point on plane, e.g., . Vector from to is . Distance is .
Method (b) - Unconstrained Minimization: Distance squared with :
.
Setting and yields , , resulting in minimum distance .
Method (c) - Lagrange Multipliers: Objective subject to .
, , .
Substitute into constraint to obtain identical minimum distance .
Postal Package Maximum Volume: A postal service package allows maximum combined length and girth of . Optimize volume with square cross section , so girth is , subject to .
Maximize subject to .
Gradients: ; .
System: , .
Since , .
Constraint: .
Dimensions: Width , height , length .
Ellipse Intersection on Cylinder: Plane intersects cylinder in an ellipse. Find points closest to and farthest from the origin.
Minimize and maximize (using ).
Objective reduces to finding extrema of , which depends on .
Extrema of on :
Gradients: .
Points:
For : , giving distance squared .
For : , giving distance squared .
At points where : and , which gives and . Here, distance squared is .
Closest points to origin: and (distance = 1).
Farthest point from origin: .
Functions of Several Variables and Level Sets
Function Definition:
A function of two variables assigns to each pair a unique value .
Domain represents allowable input coordinates; range represents the set of all resulting real outputs.
Level Sets:
Level Curves: Sets of points in the -plane satisfying for a constant .
Level Surfaces: Solution sets in satisfying for a constant .
Limits and Continuity
Limit Definition:
requires to approach along every possible continuous path approaching .
Two-Path Test for Non-Existence:
If approaches different values along two distinct paths as , then the limit does not exist (DNE).
Polar Coordinates Conversion at the Origin:
Substitute and , converting into the single variable limit .
Continuity Criterion:
A function is continuous at if and only if:
Partial Derivatives and Clairaut's Theorem
Limit Definitions of First Partial Derivatives:
Partial derivative with respect to :
Partial derivative with respect to :
Second-Order Partials:
Pure second partials: , .
Mixed second partials: , .
Clairaut's Theorem:
If mixed partial derivatives and are continuous on an open domain , then:
Tangent Planes, Linear Approximations, and Differentials
Tangent Plane to Explicit Surface:
For at point :
Linear Approximation (Linearization):
Tangent plane approximation near :
Differentiability Definition:
is differentiable at if: where as .
Sufficient Condition: If first partials and exist and are continuous on an open neighborhood around , then is differentiable at .
Total Differentials:
For independent changes and :
The Multivariable Chain Rule and Implicit Differentiation
Single Independent Parameter:
If with and :
Two Independent Parameters:
If with and :
Implicit Differentiation Formulas:
For defining :
For defining :
Directional Derivatives and the Gradient Vector
Gradient Vector:
Two variables:
Three variables:
Directional Derivative:
Along a unit direction vector :
In terms of angle between and :
Properties and Extremes of the Gradient:
Direction of steepest ascent: , with maximum rate of increase \+\|\nabla f\|.
Direction of steepest descent: , with maximum rate of decrease .
Directions of zero change: any vector orthogonal to ().
Geometric Applications to Level Surfaces
Orthogonality of Gradient:
The gradient vector is perpendicular to the tangent vector of the level curve through .
The gradient vector is normal to the level surface at .
Tangent Plane to Level Surface:
Tangent plane to at :
Normal Line to Surface:
Symmetric equations:
Parametric equations:
Optimization and the Second Derivative Test
Critical Points:
Interior points where ( and simultaneously) or where either first partial fails to exist.
Second Derivative Test (Discriminant / Hessian Determinant):
Let be a critical point with :
Classification Rules:
If and : Local maximum.
If and : Local minimum.
If : Saddle point.
If : Test is inconclusive.
Extreme Value Theorem (Closed and Bounded Sets):
Step 1: Evaluate at all critical points in the interior.
Step 2: Find all extreme values along the boundary.
Step 3: Absolute maximum is the greatest evaluated value; absolute minimum is the smallest evaluated value.
Constrained Optimization: Method of Lagrange Multipliers
Single Constraint:
To optimize subject to a smooth constraint :
Two Constraints:
To optimize subject to simultaneous constraints and : $$h(x, y, z) = c