Partial Derivatives
Multivariable Calculus · Advanced Placement
Partial Derivatives: the big picture
Most quantities depend on several variables: temperature on latitude, longitude and time; a drug's effect on dose and body mass; an option's price on stock price and time. A function of two variables f(x, y) can be pictured as a surface z = f(x, y) or as a contour map of level curves f(x, y) = k, like the lines on a topographic map. Limits in several variables must agree along every path of approach, and continuity is defined as before. The partial derivative ∂f/∂x measures the rate of change when only x varies, holding y fixed — the slope of a slice of the surface. Higher partials and Clairaut's theorem (fₓᵧ = fᵧₓ for nice functions) follow. The tangent plane z − z₀ = f_x(x − x₀) + f_y(y − y₀) gives the best linear approximation, and the total differential dz = f_x dx + f_y dy estimates changes and errors. The multivariable chain rule handles variables that depend on further variables. The directional derivative Dᵤf = ∇f·u gives the rate of change in any direction, and the gradient ∇f = ⟨f_x, f_y⟩ points in the direction of steepest increase, with magnitude equal to that maximum rate, perpendicular to level curves. Local extrema occur where ∇f = 0, classified by the second-derivative test using D = fₓₓfᵧᵧ − fₓᵧ². Lagrange multipliers find extrema subject to a constraint g = k by solving ∇f = λ∇g: at the optimum the level curve of f is tangent to the constraint.
Functions of Several Variables, Limits & Continuity
A function of two variables, f(x, y), assigns a number to each point of the plane — like elevation on a map. You can draw it as a surface z = f(x, y) or as a contour map, whose level curves f(x, y) = k connect points of equal value; closely spaced contours mean a steep surface. Limits are trickier than in one variable: (x, y) can approach a point along infinitely many paths, and the limit exists only if every path gives the same value. A function is continuous where the limit equals the function's value; polynomials and their quotients (where defined) are continuous.
{{illustration:calc3-l14-f1}}
{{illustration:calc3-l14-f2}}
Key relations
- Limits in two variables. lim_((x,y) → (a,b)) f(x,y) = L along every path
Partial Derivatives, Tangent Planes & the Chain Rule
A partial derivative measures change in one direction at a time: ∂f/∂x treats y as a constant and differentiates in x, and ∂f/∂y does the reverse. Geometrically, each is the slope of the surface sliced along one axis. Together they define the tangent plane z = f(a, b) + fₓ(a, b)(x − a) + f_y(a, b)(y − b), the best flat approximation near a point, and the total differential dz = fₓdx + f_ydy, which estimates how errors in several inputs combine. When x and y themselves depend on t, the chain rule becomes dz/dt = fₓ·dx/dt + f_y·dy/dt.
{{illustration:calc3-l14-f3}}
{{illustration:calc3-l14-f4}}
Key relations
- Tangent plane and chain rule. z − z₀ = fₓ(x − x₀) + f_y(y − y₀) ; dz/dt = (∂ f)/(∂ x)dx/dt + (∂ f)/(∂ y)dy/dt
Directional Derivatives & the Gradient
The gradient ∇f = ⟨fₓ, f_y⟩ collects all partial derivatives; it points uphill, and its length is the steepest rate of increase. The rate of change in any direction given by a unit vector u is the directional derivative Dᵤf = ∇f·u = |∇f| cos θ: largest along ∇f, zero along a level curve, most negative straight downhill. The gradient is always perpendicular to the level curve through the point. Gradient descent — repeatedly stepping a little in the direction −∇f — is how machines minimize error functions.
{{illustration:calc3-l14-f5}}
{{illustration:calc3-l14-f6}}
Key relations
- Gradient and directional derivative. ∇ f = ⟨ (∂ f)/(∂ x), (∂ f)/(∂ y)⟩ ; Dᵤf = ∇ f·u = |∇ f|cosθ
Maximum and Minimum Values & Lagrange Multipliers
Local maxima and minima of f(x, y) occur where the gradient is zero (or not defined). To classify a critical point, use the second-derivative test with D = fₓₓf_yy − fₓ_y²: if D > 0 and fₓₓ > 0 it's a minimum; D > 0 and fₓₓ < 0 a maximum; D < 0 a saddle; D = 0 is inconclusive. To optimize subject to a constraint g(x, y) = k, use Lagrange multipliers: at the best point the level curve of f just touches the constraint curve, so their gradients are parallel, ∇f = λ∇g. The multiplier λ measures how much the optimum improves if the constraint is relaxed.
{{illustration:calc3-l14-f7}}
{{illustration:calc3-l14-f8}}
Key relations
- Second-derivative test and Lagrange condition. D = fₓₓf_yy − f_xy² ; ∇ f = λ∇ g, g(x,y) = k