MATH U101 · First-time lesson · Module 4, lectures L8–L9

Partial Derivatives and the Chain Rule, taught from zero

Thomas' Calculus (15th ed.) §14.3–14.4 — differentiating a function of two variables one direction at a time, and the bookkeeping rule for when its inputs move together. Budget 75–90 minutes, in two sittings.

🎧 Narrated walkthroughs for this module

Partial derivatives & implicit differentiation (6.7 min, T6 Q1–Q2) · The chain rule as a tree (7.4 min, T6 Q3–Q5) · Rates along a curve (6.2 min, T6 Q6–Q7). Each one is sound-on and pauses for your next move.

Start here — the honest scope

Here is the module's secret: there is almost no new calculus in §14.3. A partial derivative is computed with exactly the differentiation rules you have been drilling since week 1 — power, product, quotient, chain — with one small discipline added (treat the other letter as a constant). If the daily drill has been doing its job, the computing half of this module is already in your hands; what's genuinely new is one idea (a surface has a different slope in every direction) and one bookkeeping rule (§14.4's chain rule diagram). Both are new to the whole hall — no 12th-class syllabus, JEE or otherwise, touches ∂.

How to use this page

First time → read in order, attempt every green "check yourself" box before opening it. Revising → the notes page has the compressed map, three exam-level worked examples and the exercise table.

1 · A surface has no single slope — so pick a direction §14.3

For a one-variable function, "the derivative at a point" made sense because a curve has one slope at each point. A surface z = f(x, y) doesn't. Stand on a hillside: facing east the ground may climb steeply, facing north it may be level, facing north-east something in between. "The slope of the hill" is not a number — the slope of the hill in a chosen direction is.

§14.3 picks the two simplest directions, the ones along the axes:

Formally each one is the old limit definition with the other variable frozen:

∂f∂x(x0, y0) = limh→0 f(x0+h, y0) − f(x0, y0)h

Notice y0 never moves in that formula — that is the entire content of the word "partial". The symbol ∂ (a curled d, read "partial") exists purely to flag this: other variables are being held still. Connect it to Module 3: walking east across the contour map, fx is how fast you cross the level curves.

Classic trap · ∂ is not d

Writing df/dx for a function of two variables loses marks because it asserts something false — that f depends on x alone. Use ∂ whenever the function has more than one input, and d only when, after substitution, a quantity genuinely depends on a single variable (that distinction becomes the whole story in section 6).

2 · Computing them: the old rules, one letter frozen

The recipe: to find fx, differentiate with respect to x exactly as in one-variable calculus, treating every y as if it were a number like 7. And symmetrically for fy. Watch it once, slowly, on

f(x, y) = x2y + sin(xy)

For fx (y is "7"): the term x2y is "x2 times a constant", derivative 2xy. The term sin(xy) is sin of ("constant" times x) — chain rule, inner derivative y — giving y cos(xy). So:

fx = 2xy + y cos(xy)

For fy (now x is "7"): x2y is "constant times y", derivative x2; and sin(xy) gives x cos(xy):

fy = x2 + x cos(xy)

One with a quotient, because exams like them: g(x, y) = xyx + y. Quotient rule in x (y frozen): gx = y(x+y) − xy·1(x+y)2 = y2(x+y)2, and by the mirror argument gy = x2/(x+y)2.

Unpack this step: why is freezing y legal?

Because that's what the definition says: in the limit defining fx, the second input is y0 in both function calls — it genuinely is a constant during the computation. "Treat y as a number" isn't a trick; it's the definition restated as a work instruction.

This is what the daily drill was for

Every partial-derivative computation is a one-variable derivative in costume. The speed and accuracy the 20-minute drill builds — product rule without thinking, chain rule without thinking — is exactly what a §14.3 exam question spends. If a computation here feels shaky, the gap is in the old rules, not the new idea: drill, then return.

Check yourself: f(x, y) = x³ − 3xy + y². Find fx and fy, then evaluate both at (2, 1).

fx = 3x2 − 3y (the y2 term is a constant when y is frozen — its derivative is 0). fy = −3x + 2y. At (2, 1): fx = 12 − 3 = 9, fy = −6 + 2 = −4. Meaning: from the point above (2, 1), the surface climbs steeply going east and drops going north.

3 · Seeing it: slice the surface

Where does "freeze y" live geometrically? Cut the surface with the vertical plane y = y0. The cut edge — the trace — is an ordinary one-variable curve, and fx(x0, y0) is its ordinary slope at x0. The widget slices the dome z = 9 − x2 − y2: slide y0 and the whole trace drops (a slice further north cuts a lower part of the dome); slide x0 and watch the tangent tilt — slope fx = −2x0, positive on the left of the dome, zero at the crest, negative on the right.

trace z = (9 − y₀²) − x² · tangent, slope fx = −2x₀

Two readings of the widget worth saying aloud: the tangent's slope never depends on y0 (for this surface, fx = −2x has no y in it — moving the slice slides the parabola down without reshaping it), and at the crest of every slice the tangent is level, which is where Module 6's max/min story will begin.

4 · Second partials — and a small miracle §14.3

Partial derivatives are functions of (x, y) themselves, so differentiate again — four second partials:

fxx = ∂2f∂x2  fyy = ∂2f∂y2  fxy = (fx)y  fyx = (fy)x

The miracle: compute the two mixed partials for section 2's f = x2y + sin(xy). Differentiate fx = 2xy + y cos(xy) with respect to y (product rule on the second term): 2x + cos(xy) − xy sin(xy). Now go the other way: differentiate fy = x2 + x cos(xy) with respect to x: 2x + cos(xy) − xy sin(xy). Identical. That is the Mixed Derivative (Clairaut) Theorem: if fxy and fyx are continuous, then fxy = fyx — the order of differentiation doesn't matter. Every function this course throws at you meets the continuity condition, so in practice: compute whichever order is easier, and use the equality as a free error-check — if your two mixed partials disagree, one computation is wrong.

Check yourself: f(x, y) = x ey. Compute fxy and fyx separately and confirm they match.

fx = ey (x-derivative of x times the "constant" ey), then fxy = ey. Other way: fy = x ey, then fyx = ey. Equal ✓.

5 · "Differentiable" means more than "the partials exist" §14.3

In one variable, having a derivative at a point was the gold standard of smoothness. In two variables the bar sits higher, and the handout's word "differentiability" (lecture L9) is about exactly this. Differentiable at a point means: near that point the surface is well approximated by a flat plane — zoom in far enough and the landscape looks like a tilted sheet (that sheet is the tangent plane, which Module 5 will build). The two partials are just the plane's east-slope and north-slope.

Here is the surprise: the two partials can exist while the surface is nothing like a plane there. The standard example is Module 3's troublemaker f(x, y) = xy/(x2 + y2) with f(0, 0) = 0. Along the entire x-axis the function is 0 (numerator has a factor y), so walking east the ground is flat: fx(0, 0) = 0. Same north: fy(0, 0) = 0. Both partials exist — yet the two-path test showed this function isn't even continuous at the origin (along y = x it sits at ½). Two flat directions, and a cliff between them. Partials only sample two directions; differentiability is a promise about all of them.

What rescues everyday computations is the theorem you'll actually cite:

If fx and fy exist near the point and are continuous at it, then f is differentiable there.

Polynomials, sin, cos, ex and their sane combinations have continuous partials everywhere they're defined — so differentiability holds automatically for the course's standard functions, and differentiable ⟹ continuous (no differentiable function has a cliff). That's the honest, examable core of L9's "differentiability"; if your instructor pushes deeper (the increment definition, ε₁/ε₂ error terms), confirm the required depth with them — the handout line names the topic without fixing it.

6 · The chain rule: when the inputs move together §14.4

Motivation first. Temperature over a map is T(x, y); you drive along a road, position (x(t), y(t)). The temperature you feel depends on one variable — time — and its rate of change ought to combine "how temperature varies over the ground" with "how fast you're moving". It does, one term per input:

dzdt = ∂f∂x dxdt + ∂f∂y dydt

Read it as travel bookkeeping: your eastward drift changes the temperature at rate (east-slope) × (east-speed); your northward drift adds (north-slope) × (north-speed); total rate = sum. Note the symbols carefully — ∂ on the slopes (T has two inputs) and d on the speeds and on the left (each is a function of t alone). Getting the symbols right is understanding the formula.

The diagram that organises everything. Draw z at the top, its direct inputs x, y below, and t at the bottom, with a line for each dependence. The rule: one product per route from z down to t, multiply the derivatives along the route, add the routes. Two routes here (z→x→t, z→y→t) — two terms. Every §14.4 formula, however many variables, is this one sentence applied to a diagram.

zxyt ∂z/∂x∂z/∂y dx/dtdy/dt
One route per chain of dependence: multiply down a route, add the routes — dz/dt = ∂z/∂x · dx/dt + ∂z/∂y · dy/dt.
zxyst ∂z/∂x∂z/∂y ∂x/∂s∂y/∂s
Two independent variables: ∂z/∂s = the two highlighted routes; ∂z/∂t is the mirror pair through the grey edges.

Worked, verified both ways. Let z = x2 + y2 (the bowl) with x = cos t, y = sin t (walking the unit circle). Chain rule:

dzdt = (2x)(−sin t) + (2y)(cos t) = −2 cos t sin t + 2 sin t cos t = 0

Zero — and it must be: substituting directly, z = cos2t + sin2t = 1, a constant. Walking a circle around the bowl keeps your altitude fixed; the chain rule knows it. When both routes are available (substitute-then-differentiate vs chain rule), they always agree — on an exam, use whichever is faster and the other as a check.

Unpack this step: why one product per route?

Over a tiny dt, x shifts by (dx/dt)dt, nudging z by ∂z/∂x times that; y's shift contributes likewise. For small changes the two nudges simply add (that's what differentiability — section 5 — guarantees). Divide the total by dt.

Classic trap · the frozen letter thaws

In §14.3 you froze y to compute ∂z/∂x — correct there. The chain-rule mistake is to keep it frozen: differentiating z = x2 + y2, x = cos t, by "dz/dt = 2x·(−sin t)" forgets that y is also moving. Every input that depends on t contributes a term — count the routes in the diagram before computing anything, and check you wrote that many terms.

Check yourself: z = xy, x = t², y = t³. Find dz/dt by chain rule, then confirm by substituting first.

Chain rule: dz/dt = y·2t + x·3t2 = t3·2t + t2·3t2 = 5t4. Substitute: z = t5, so dz/dt = 5t4 ✓.

7 · More routes: two independent variables, and implicit curves §14.4

Two independent variables. Suppose z = f(x, y) where x = x(s, t), y = y(s, t). Nothing new — same diagram, now with s and t on the bottom row. For ∂z/∂t, trace only the routes ending at t:

∂z∂t = ∂z∂x ∂x∂t + ∂z∂y ∂y∂t

(all ∂ now — every quantity has two inputs). The skill being examined is diagram discipline: draw it, count routes, one product per route.

Check yourself: w = x² + y², x = s + t, y = s − t. Find ∂w/∂t two ways.

Routes: ∂w/∂t = 2x·1 + 2y·(−1) = 2(x − y) = 2(2t) = 4t. Substitute first: w = (s+t)2 + (s−t)2 = 2s2 + 2t2, so ∂w/∂t = 4t ✓.

Implicit differentiation, upgraded. In 12th class you differentiated x2 + y2 = 25 term by term, wrestling y′ out by algebra. §14.4 turns that into a formula. Write the curve as F(x, y) = 0 (here F = x2 + y2 − 25). Then wherever Fy ≠ 0:

dydx = − FxFy

For the circle: Fx = 2x, Fy = 2y, so dy/dx = −x/y — at (3, 4), slope −3/4. The old method (2x + 2y y′ = 0) gives the same, but the formula wins on speed the moment the equation is ugly: two partial derivatives, one ratio, done. The notes page runs it on the folium x3 + y3 = 6xy.

Unpack this step: where does −Fx/Fy come from?

On the curve, F(x, y(x)) is constantly 0, so its d/dx is 0. Chain rule (two routes, x direct and x via y): Fx·1 + Fy·(dy/dx) = 0. Solve for dy/dx. It's section 6's diagram wearing formal clothes.

Check yourself: xy + y² = 1. Find dy/dx at (0, 1) with the formula.

F = xy + y2 − 1: Fx = y, Fy = x + 2y. So dy/dx = −y/(x + 2y), and at (0, 1): −1/2. (Sanity: the point is on the curve, since 0 + 1 = 1 ✓ — always check that first; the formula is meaningless off the curve.)

8 · You're ready — what to do next

The whole module in four sentences: a partial derivative is an old derivative with the other letter frozen; mixed partials match (free error-check); "differentiable" is a promise about every direction, guaranteed by continuous partials; and when inputs move together, one product per route, summed. To turn it into marks:

Still stuck on something? Ask an AI well

Pin it to §14.3–14.4 so it doesn't run ahead into gradients or tangent planes (that's Module 5). Prompts that work:

"I'm learning Thomas' Calculus 15th ed. §14.3. Give me six functions of two variables of increasing difficulty and check my fx and fy one at a time — don't show yours until I've answered."

"Draw the dependency diagram in text for w = f(x, y, z) with x(t), y(t), z(t), then for z = f(x, y) with x(s, t), y(s, t). Quiz me on writing the chain rule from each diagram. Stay within §14.4."

"Explain why partial derivatives existing at a point doesn't make a function differentiable there, using xy/(x² + y²) — one step at a time, letting me predict each step first."

One caution: AI answers can contain confident errors — cross-check any computed number against the textbook's answers in the back.