Skip to main content

Thomas’ Calculus · Chapter 14 · Section 14.10

By Muhammad Abdullah Athar · SymPy Verified

Partial Derivatives with Constrained Variables

❦

Read this page the way you would a book: first the notes, then the key ideas, then every worked example in order — each step explains not only what to do, but why it works.

Part One

Section Notes

❧

Section 14.10: Partial Derivatives with Constrained Variables

When variables are linked by equations of state or geometric constraints, a partial derivative depends critically on which other variables are held fixed.


1. Explicit Variable Dependency

Given w=f(x,y,z)w = f(x, y, z) subject to constraint g(x,y,z)=0g(x, y, z) = 0:

  • (∂w∂x)y\left(\frac{\partial w}{\partial x}\right)_y: Treat xx and yy as independent; solve constraint for z=z(x,y)z = z(x, y) and substitute into ww.
  • (∂w∂x)z\left(\frac{\partial w}{\partial x}\right)_z: Treat xx and zz as independent; solve constraint for y=y(x,z)y = y(x, z) and substitute into ww.

In general: (∂w∂x)y≠(∂w∂x)z\left(\frac{\partial w}{\partial x}\right)_y \ne \left(\frac{\partial w}{\partial x}\right)_z.


2. The Cyclic Rule

For any equation F(x,y,z)=0F(x, y, z) = 0: (∂x∂y)z(∂y∂z)x(∂z∂x)y=−1\left( \frac{\partial x}{\partial y} \right)_z \left( \frac{\partial y}{\partial z} \right)_x \left( \frac{\partial z}{\partial x} \right)_y = -1

Part Two

Key Ideas to Remember

2 essential statements for this section, each with a plain-words explanation.

Definition #1Sec 14.10

Constrained Partial Derivative Notation

(∂w∂x)y\left( \frac{\partial w}{\partial x} \right)_y

When variables w, x, y, z are related by one or more constraint equations, the symbol (dw/dx)_y denotes the partial derivative of w with respect to x holding y constant, meaning x and y are selected as the independent variables while other variables are eliminated.

Conditions: Constraint system can be solved locally for dependent variables

In plain words: In multivariable systems with constraints, dw/dx is ambiguous unless the remaining held-constant independent variables are explicitly designated.

Remember — Subscripts outside the parentheses identify which variables are held fixed.

Rule #2Sec 14.10

Triple Product (Cyclic) Rule

(∂x∂y)z(∂y∂z)x(∂z∂x)y=−1\left( \frac{\partial x}{\partial y} \right)_z \left( \frac{\partial y}{\partial z} \right)_x \left( \frac{\partial z}{\partial x} \right)_y = -1

For any smooth constraint relation F(x, y, z) = 0 connecting three variables, the cyclic product of their constrained partial derivatives equals -1.

Conditions: All partial derivatives exist and are non-zero

In plain words: Follows from implicit differentiation: (dx/dy)_z = -F_y / F_x, etc., causing numerator and denominator terms to cancel with three negative signs (-1)^3 = -1.

Remember — Fundamental identity in chemical thermodynamics relating P, V, and T equations of state.

Part Three

Worked Examples

5 exercises, solved in full. Every answer has been checked symbolically with SymPy before printing.

Example 01(Section 14.10, Exercise 1)

Core practice

Problem. For w = x^2 + y^2 + z^2 subject to constraint z = x + y, find (dw/dx)_y.

Step-by-Step Derivation (2 steps)

1

Eliminate Dependent Variable z

w=x2+y2+(x+y)2=x2+y2+x2+2xy+y2=2x2+2xy+2y2w = x^2 + y^2 + (x + y)^2 = x^2 + y^2 + x^2 + 2xy + y^2 = 2x^2 + 2xy + 2y^2

Substitute z = x + y into w to express w solely in terms of independent variables x and y.

Why this works: Selecting (x, y) as independent coordinate basis.
2

Differentiate with Respect to x Holding y Constant

(∂w∂x)y=∂∂x(2x2+2xy+2y2)=4x+2y\left(\frac{\partial w}{\partial x}\right)_y = \frac{\partial}{\partial x}(2x^2 + 2xy + 2y^2) = 4x + 2y

Compute partial derivative treating y as constant.

Why this works: Evaluating constrained rate.

Answer: (∂w∂x)y=4x+2y\left(\frac{\partial w}{\partial x}\right)_y = 4x + 2y

✓ Verified by SymPy CAS

Example 02(Section 14.10, Exercise 2)

Core practice

Problem. For the same system w = x^2 + y^2 + z^2 with z = x + y, find (dw/dx)_z.

Step-by-Step Derivation (2 steps)

1

Eliminate Dependent Variable y

z=x+y  ⟹  y=z−x  ⟹  w=x2+(z−x)2+z2=x2+z2−2xz+x2+z2=2x2−2xz+2z2z = x + y \implies y = z - x \implies w = x^2 + (z - x)^2 + z^2 = x^2 + z^2 - 2xz + x^2 + z^2 = 2x^2 - 2xz + 2z^2

Express w in terms of independent coordinates x and z.

Why this works: Selecting (x, z) as independent coordinate basis.
2

Differentiate with Respect to x Holding z Constant

(∂w∂x)z=∂∂x(2x2−2xz+2z2)=4x−2z\left(\frac{\partial w}{\partial x}\right)_z = \frac{\partial}{\partial x}(2x^2 - 2xz + 2z^2) = 4x - 2z

Compute partial derivative treating z as constant.

Why this works: Evaluating constrained rate with different fixed variable.

Answer: (∂w∂x)z=4x−2z\left(\frac{\partial w}{\partial x}\right)_z = 4x - 2z

✓ Verified by SymPy CAS

Example 03(Section 14.10, Exercise 3)

Core practice

Problem. Evaluate and compare (dw/dx)_y and (dw/dx)_z at the point (x, y, z) = (1, 2, 3) for w = x^2 + y^2 + z^2 and z = x + y.

Step-by-Step Derivation (3 steps)

1

Evaluate (dw/dx)_y at (1, 2)

(∂w∂x)y=4(1)+2(2)=4+4=8\left(\frac{\partial w}{\partial x}\right)_y = 4(1) + 2(2) = 4 + 4 = 8

Substitute x = 1, y = 2 into 4x + 2y.

Why this works: Computing numerical value holding y constant.
2

Evaluate (dw/dx)_z at (1, 3)

(∂w∂x)z=4(1)−2(3)=4−6=−2\left(\frac{\partial w}{\partial x}\right)_z = 4(1) - 2(3) = 4 - 6 = -2

Substitute x = 1, z = 3 into 4x - 2z.

Why this works: Computing numerical value holding z constant.
3

Compute Difference

8−(−2)=108 - (-2) = 10

Illustrates that holding different variables constant produces completely different directional rates of change.

Why this works: Highlighting dependence on held variable.

Answer: (∂w∂x)y=8,(∂w∂x)z=−2;Difference: 10\left(\frac{\partial w}{\partial x}\right)_y = 8, \quad \left(\frac{\partial w}{\partial x}\right)_z = -2; \quad \text{Difference: } 10

✓ Verified by SymPy CAS

Example 04(Section 14.10, Exercise 4)

Core practice

Problem. Verify the cyclic relation (dP/dV)_T (dV/dT)_P (dT/dP)_V = -1 for the ideal gas law PV = RT.

Step-by-Step Derivation (2 steps)

1

Compute Each Constrained Partial Derivative

P=RTV  ⟹  (∂P∂V)T=−RTV2;V=RTP  ⟹  (∂V∂T)P=RP;T=PVR  ⟹  (∂T∂P)V=VRP = \frac{RT}{V} \implies \left(\frac{\partial P}{\partial V}\right)_T = -\frac{RT}{V^2}; \quad V = \frac{RT}{P} \implies \left(\frac{\partial V}{\partial T}\right)_P = \frac{R}{P}; \quad T = \frac{PV}{R} \implies \left(\frac{\partial T}{\partial P}\right)_V = \frac{V}{R}

Solve for each variable in turn and differentiate.

Why this works: Computing individual partial factors.
2

Multiply the Three Factors

(−RTV2)(RP)(VR)=−R2TVRPV2=−RTPV=−1\left(-\frac{RT}{V^2}\right) \left(\frac{R}{P}\right) \left(\frac{V}{R}\right) = -\frac{R^2 T V}{R P V^2} = -\frac{RT}{PV} = -1

Cancel common factors and use PV = RT.

Why this works: Proving cyclic rule identity.

Answer: (∂P∂V)T(∂V∂T)P(∂T∂P)V=−1\left(\frac{\partial P}{\partial V}\right)_T \left(\frac{\partial V}{\partial T}\right)_P \left(\frac{\partial T}{\partial P}\right)_V = -1

✓ Verified by SymPy CAS

Example 05(Section 14.10, Exercise 5)

Core practice

Problem. For points on the unit sphere x^2 + y^2 + z^2 = 1, find (dz/dx)_y using the implicit function theorem.

Step-by-Step Derivation (2 steps)

1

Differentiate Constraint Implicitly with Respect to x

∂∂x(x2+y2+z2−1)=0  ⟹  2x+0+2z(∂z∂x)y=0\frac{\partial}{\partial x}(x^2 + y^2 + z^2 - 1) = 0 \implies 2x + 0 + 2z\left(\frac{\partial z}{\partial x}\right)_y = 0

Since y is held constant, dy/dx = 0.

Why this works: Applying implicit differentiation holding y fixed.
2

Solve for Constrained Derivative

2z(∂z∂x)y=−2x  ⟹  (∂z∂x)y=−xz2z\left(\frac{\partial z}{\partial x}\right)_y = -2x \implies \left(\frac{\partial z}{\partial x}\right)_y = -\frac{x}{z}

Divide both sides by 2z.

Why this works: Isolating constrained partial derivative.

Answer: (∂z∂x)y=−xz\left(\frac{\partial z}{\partial x}\right)_y = -\frac{x}{z}

✓ Verified by SymPy CAS