4: Differential Calculus of Several Variables
Extending derivatives to functions of multiple variables.
Functions of Several Variables
A function f:Rn→R assigns a real number to each point in n-dimensional space.
Examples:
- f(x,y)=x2+y2 (paraboloid)
- f(x,y)=1−x2−y2 (hemisphere)
- f(x,y,z)=x2+y2+z2 (distance squared from origin)
Level Curves and Surfaces
Level curve: Set of points where f(x,y)=c (constant)
Level surface: Set of points where f(x,y,z)=c
These are the “contour lines” on a topographic map.
Limits and Continuity
(x,y)→(a,b)limf(x,y)=L
means f(x,y) approaches L as (x,y) approaches (a,b) along any path.
Showing a Limit Doesn’t Exist
Find two different paths to (a,b) that give different limits.
Example: For f(x,y)=x2+y2xy:
- Along y=0: lim=0
- Along y=x: lim=21
So the limit doesn’t exist at (0,0).
Partial Derivatives
Hold all variables constant except one, then differentiate:
∂x∂f=fx=h→0limhf(x+h,y)−f(x,y)
∂y∂f=fy=h→0limhf(x,y+h)−f(x,y)
Higher-Order Partials
fxx=∂x2∂2f,fyy=∂y2∂2f,fxy=∂y∂x∂2f
Clairaut’s Theorem: If fxy and fyx are continuous, then fxy=fyx.
The Gradient
The gradient of f is the vector of partial derivatives:
∇f=⟨∂x∂f,∂y∂f,∂z∂f⟩
Key Properties
- ∇f points in the direction of steepest increase
- ∣∇f∣ is the rate of steepest increase
- ∇f is perpendicular to level curves/surfaces
Directional Derivatives
The rate of change of f in direction u (unit vector):
Duf=∇f⋅u=∣∇f∣cosθ
Maximum: Duf=∣∇f∣ when u is parallel to ∇f
Minimum: Duf=−∣∇f∣ when u is opposite to ∇f
Zero: Duf=0 when u⊥∇f (along level curve)
Chain Rule
Case 1: z=f(x,y) where x=g(t), y=h(t)
dtdz=∂x∂fdtdx+∂y∂fdtdy
Case 2: z=f(x,y) where x=g(s,t), y=h(s,t)
∂s∂z=∂x∂f∂s∂x+∂y∂f∂s∂y
∂t∂z=∂x∂f∂t∂x+∂y∂f∂t∂y
Implicit Differentiation
If F(x,y)=0 defines y implicitly as a function of x:
dxdy=−FyFx
Tangent Planes and Linear Approximation
Tangent Plane
To surface z=f(x,y) at (a,b,f(a,b)):
z−f(a,b)=fx(a,b)(x−a)+fy(a,b)(y−b)
Linear Approximation
f(x,y)≈f(a,b)+fx(a,b)(x−a)+fy(a,b)(y−b)
Total Differential
df=∂x∂fdx+∂y∂fdy
Optimization
Critical Points
Points where ∇f=0 (or gradient doesn’t exist).
fx=0andfy=0
Second Derivative Test
At critical point (a,b), compute:
D=fxx(a,b)fyy(a,b)−[fxy(a,b)]2
| Condition | Conclusion |
|---|
| D>0 and fxx>0 | Local minimum |
| D>0 and fxx<0 | Local maximum |
| D<0 | Saddle point |
| D=0 | Test inconclusive |
Lagrange Multipliers
To optimize f(x,y) subject to constraint g(x,y)=c:
Solve the system:
∇f=λ∇g
g(x,y)=c
Geometric interpretation: At the optimum, ∇f is parallel to ∇g (level curve of f is tangent to constraint curve).
Summary
| Concept | Formula |
|---|
| Partial derivative | fx=limh→0hf(x+h,y)−f(x,y) |
| Gradient | ∇f=⟨fx,fy,fz⟩ |
| Directional derivative | Duf=∇f⋅u |
| Tangent plane | z=f(a,b)+fx(x−a)+fy(y−b) |
| Critical points | ∇f=0 |
| Lagrange multipliers | ∇f=λ∇g |