A rule assigning one output number to each pair of inputs (x,y). Extends Chapter 01's single-variable f(x) to two independent inputs; its graph is a surface in three dimensions rather than a curve in two.
$\dfrac{\partial f}{\partial x}$partial f partial x — partial derivative
The rate of change of f with respect to xalone, holding every other variable fixed. The rounded ∂ (distinct from Chapter 02's straight d) signals that other variables are present but frozen during this differentiation.
$f_x,\ f_y$f sub x, f sub y — subscript notation for partials
Compact alternatives to ∂x∂f and ∂y∂f, used when writing many partial derivatives becomes cumbersome.
$f_{xx},\ f_{xy}$second-order partial derivatives
fxx differentiates with respect to x twice in a row. fxy (a mixed partial) differentiates first with respect to y, then with respect to x — order matters in the notation, though Section 03 shows it usually doesn't matter in the result.
$\nabla f$del f, or grad f — gradient
The directed quantity (Chapter 14) ∇f=⟨fx,fy⟩, built from all of f's first partial derivatives. Points in the direction f increases fastest at a given point.
$D_{\hat u}f$directional derivative of f in direction u-hat
The rate of change of f in an arbitrary direction u^ (a unit vector, Chapter 14), not just along the x- or y-axis. Generalizes fx and fy, which are the special cases u^=^ and u^=^.
01 · Functions of Several Variables and Partial Derivatives
A function like f(x,y)=x2+y2 assigns a number to every point in the plane, not just to every point on a line. Its graph is a surface hovering over the xy-plane. Differentiating such a function requires picking one direction to move in at a time.
Each is Chapter 02's difference-quotient definition, applied to only one variable at a time, with the other variable frozen as if it were a constant.
Step-by-step — Find $f_x$ and $f_y$ for $f(x,y) = x^3y^2 + 4xy$
1
Compute fx — differentiate with respect to x, treating y as a constant: the term x3y2 becomes 3x2y2 (power rule on x3, Chapter 02; y2 is just a constant multiplier). The term 4xy becomes 4y (x's coefficient is 4y, a constant with respect to x).
2
Assemble fx:fx=3x2y2+4y.
3
Compute fy — differentiate with respect to y, treating x as a constant: the term x3y2 becomes 2x3y (power rule on y2; x3 is a constant multiplier). The term 4xy becomes 4x.
4
Assemble fy:fy=2x3y+4x.
5
Evaluate both at (x,y)=(1,2):fx(1,2)=3(1)(4)+4(2)=12+8=20. fy(1,2)=2(1)(2)+4(1)=4+4=8.
Geometric meaning — slicing the surface
Fixing y=y0 and letting x vary slices the surface z=f(x,y) with a vertical plane, producing an ordinary curve z=f(x,y0) in that slice. fx(x0,y0) is exactly the slope of that sliced curve at x=x0 — an ordinary single-variable derivative (Chapter 02), just computed on the curve left behind by one particular slice. fy is the same idea, slicing the other way.
❌ Forgetting to hold the other variable fixed
For f(x,y)=x2y, computing fx by treating y as if it were also varying with x — e.g. mistakenly applying the product rule to x2 and y as if y=y(x), giving 2xy+x2dxdy.
Why it breaks: the entire point of a partial derivative is that y is treated as a fixed constant while differentiating with respect to x — there is no dxdy term at all, because y is not being allowed to change during this computation.
Consequence: the correct partial derivative is simply fx=2xy (power rule on x2, with y as a constant multiplier) — no product rule needed, since only one factor (x2) actually depends on the variable being differentiated.
Reading order for mixed partials: fxy means differentiate with respect to yfirst, then x — the rightmost subscript is applied first, since it's the inner operation.
Step-by-step — Find all second-order partials of $f(x,y)=x^3y^2$
1
First partials (Section 01's method):fx=3x2y2; fy=2x3y.
2
fxx — differentiate fx with respect to x again:6xy2 (power rule, y2 constant).
3
fyy — differentiate fy with respect to y again:2x3 (power rule, x3 constant).
4
fxy — differentiate fy=2x3y with respect to x:6x2y.
5
fyx — differentiate fx=3x2y2 with respect to y:6x2y.
6
Compare steps 4 and 5:fxy=fyx=6x2y — the two mixed partials agree, despite being computed in opposite orders.
Clairaut's Theorem
Step 6 is not a coincidence: if fxy and fyx are both continuous near a point, they are guaranteed equal there. This holds for essentially every function built from polynomials, and from ex, sinx, cosx, lnx (Chapter 02) combined by sums, products, and composition — order of mixed partial differentiation almost never matters in practice, though the continuity hypothesis is technically required.
03 · The Gradient
Bundling both partial derivatives into a single directed quantity (Chapter 14) produces the gradient — the tool that identifies the single best direction to move in.
Definition — Gradient
∇f(x,y)=⟨fx(x,y),fy(x,y)⟩
At each point, ∇f is a directed quantity (Chapter 14) pointing in the direction f increases most rapidly, with magnitude ∥∇f∥ equal to that maximum rate of increase.
Step-by-step — Find $\nabla f$ at $(1,2)$ for $f(x,y) = x^2+3xy$
1
Compute fx: treating y as constant, fx=2x+3y.
2
Compute fy: treating x as constant, fy=3x.
3
Assemble the gradient as a directed quantity (Chapter 14 component form):∇f=⟨2x+3y,3x⟩.
4
Evaluate at (1,2):∇f(1,2)=⟨2(1)+3(2),3(1)⟩=⟨8,3⟩.
04 · The Directional Derivative
fx and fy measure the rate of change only along the two axis directions. The directional derivative generalizes this to any direction at all, using the dot product (Chapter 14) to combine the gradient with a chosen direction.
Definition — Directional Derivative
For a unit vector u^ (Chapter 14: ∥u^∥=1):
Du^f=∇f⋅u^
Du^f is the rate of change of f as position moves in the direction u^.
Step-by-step — Find the directional derivative of $f(x,y)=x^2+3xy$ at $(1,2)$ in the direction of $\vec v=\langle3,4\rangle$
1
**Recall ∇f(1,2)=⟨8,3⟩ from Section 03.
2
Normalize v into a unit vector (Chapter 14, Section 02's magnitude formula):∥v∥=32+42=25=5; u^=∥v∥v=⟨53,54⟩.
3
Apply the dot product formula (Chapter 14, Section 03):Du^f=∇f⋅u^=⟨8,3⟩⋅⟨53,54⟩=8(53)+3(54)=524+512=536.
4
Conclude: moving from (1,2) in the direction of ⟨3,4⟩, f increases at rate 536=7.2 per unit distance traveled.
❌ Using a non-unit vector directly in the directional derivative formula
On the same problem, skipping step 2 and computing ∇f⋅v=⟨8,3⟩⋅⟨3,4⟩=24+12=36 directly.
Why it breaks: the directional derivative's definition (Section 04) explicitly requires u^ to be a unit vector — a direction of length exactly 1, carrying no scaling of its own. Using v=⟨3,4⟩ directly (with ∥v∥=5=1) mixes the direction together with an extra factor of 5 from its own length.
Consequence:36=536 (the correctly normalized answer from step 3) — the un-normalized result is exactly 5× too large, since it silently multiplied the true directional derivative by ∥v∥=5. Always normalize the direction vector to length 1 before applying the dot product with ∇f.
05 · The Tangent Plane and the Multivariable Chain Rule
Definition — Tangent Plane
At a point (x0,y0) where f is differentiable, the plane tangent to the surface z=f(x,y) is
directly extending Chapter 02, Section 02's tangent-line formula (y=f(a)+f′(a)(x−a)) with one extra term for the second variable.
Definition — Multivariable Chain Rule (along a parametrized path)
If x=x(t) and y=y(t) (Chapter 13's parametric functions), and z=f(x,y), then
dtdz=fx⋅dtdx+fy⋅dtdy
Each term applies Chapter 03's single-variable chain rule along one "slice" direction, and the two contributions add — the total rate of change from bothx and y moving simultaneously.
Step-by-step — Find $\dfrac{dz}{dt}$ for $z=x^2y$, $x(t)=t$, $y(t)=t^2$, at $t=2$
1
Compute the partials of z:fx=2xy; fy=x2.
2
Compute dtdx and dtdy (Chapter 02):dtdx=1; dtdy=2t.
3
At t=2: find x,y:x(2)=2, y(2)=4.
4
Evaluate the partials at (x,y)=(2,4):fx(2,4)=2(2)(4)=16; fy(2,4)=22=4.
5
Evaluate dtdx, dtdy at t=2:dtdx=1; dtdy=2(2)=4.
6
Apply the chain rule formula:dtdz=fx⋅dtdx+fy⋅dtdy=16(1)+4(4)=16+16=32.
06 · Exercises
EXERCISE 15.1
Differentiate with respect to one variable while treating the other as a fixed constant, exactly as in Section 01.
f(x,y)=4x2y3−2y. fx=8xy3 (power rule, y3 constant). fy=12x2y2−2 (power rule on y3 and y; 4x2 constant).
Find fx and fy for f(x,y)=4x2y3−2y.
EXERCISE 15.2
Compute both first partials first, then differentiate each of those again with respect to the appropriate variable.
f(x,y)=x4y2. fx=4x3y2, fy=2x4y. fxx=12x2y2. fyy=2x4. fxy=∂x∂(2x4y)=8x3y. fyx=∂y∂(4x3y2)=8x3y. The two mixed partials match, as Clairaut's theorem (Section 02) guarantees.
Find all four second-order partial derivatives of f(x,y)=x4y2, and confirm fxy=fyx.
EXERCISE 15.3
Compute both first partials, evaluate them at the given point, and assemble the result as a directed quantity in component form.
f(x,y)=xy2−x2 at (2,1). fx=y2−2x, fy=2xy. At (2,1): fx=1−4=−3; fy=4. ∇f(2,1)=⟨−3,4⟩.
Find ∇f at (2,1) for f(x,y)=xy2−x2.
EXERCISE 15.4
Normalize the direction vector to a unit vector before taking the dot product with the gradient.
Using ∇f(2,1)=⟨−3,4⟩ from Exercise 15.3 and direction v=⟨1,0⟩: ∥v∥=1 already (it's already a unit vector). Du^f=⟨−3,4⟩⋅⟨1,0⟩=−3(1)+4(0)=−3.
Using the gradient from Exercise 15.3, find the directional derivative of f at (2,1) in the direction v=⟨1,0⟩.
EXERCISE 15.5
Compute the two partial derivatives, evaluate at the given point, then plug into the tangent plane formula.
f(x,y)=x2+y2 at (1,1): f(1,1)=2. fx=2x, fy=2y; at (1,1): fx=2, fy=2. Tangent plane: z=2+2(x−1)+2(y−1)=2+2x−2+2y−2=2x+2y−2.
Find the equation of the tangent plane to z=x2+y2 at (1,1).
EXERCISE 15.6
Compute the partials of the value function and the parametric derivatives of each input, then combine using the multivariable chain rule.
A portfolio's value is V(x,y)=50x+30y dollars where x,y are two asset prices, both changing with time: x(t)=10+2t, y(t)=20−t. Vx=50, Vy=30. dtdx=2, dtdy=−1. dtdV=50(2)+30(−1)=100−30=70. Portfolio value is increasing at 70 dollars per unit time.
A portfolio's value is V(x,y)=50x+30y dollars, where x(t)=10+2t and y(t)=20−t are two asset prices changing with time t. Find dtdV using the multivariable chain rule.
07 · Chapter Summary
Concept
Formula / Rule
Partial derivative
fx=limh→0hf(x+h,y)−f(x,y); other variable held fixed
Mixed partials
fxy=fyx when both are continuous (Clairaut's Theorem)