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)limโf(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โ0limโhf(x+h,y)โf(x,y)โ
โyโfโ=fyโ=hโ0limโhf(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):
Duโf=โfโ
u=โฃโfโฃcosฮธ
Maximum: Duโf=โฃโfโฃ when u is parallel to โf
Minimum: Duโf=โโฃโfโฃ when u is opposite to โf
Zero: Duโf=0 when uโฅโf (along level curve)
Chain Rule
Case 1: z=f(x,y) where x=g(t), y=h(t)
dtdzโ=โxโfโdtdxโ+โyโfโdtdyโ
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โ=โFyโFxโโ
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โfโdx+โyโfโdy
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โ0โhf(x+h,y)โf(x,y)โ |
| Gradient | โf=โจfxโ,fyโ,fzโโฉ |
| Directional derivative | Duโf=โfโ
u |
| Tangent plane | z=f(a,b)+fxโ(xโa)+fyโ(yโb) |
| Critical points | โf=0 |
| Lagrange multipliers | โf=ฮปโg |