Multivariable-Calculus · Unit 13 · Video 3 · Interactive Practice

Computing Constrained Partial Derivatives: Total Differentials vs. the Chain Rule

IKey Formulas

FormulaNameWhat it does
A=12absin⁡θ,a=bcos⁡θA = \tfrac{1}{2}ab\sin\theta,\quad a = b\cos\thetaSetupArea of the right triangle; aa is held fixed and bb is the dependent variable
b=asec⁡θ  ⇒  A=12a2tan⁡θ  ⇒  (∂A∂θ)a=12a2sec⁡2θb = a\sec\theta \;\Rightarrow\; A = \tfrac{1}{2}a^2\tan\theta \;\Rightarrow\; \left(\dfrac{\partial A}{\partial\theta}\right)_a = \tfrac{1}{2}a^2\sec^2\thetaMethod 0: solve and substituteWorks only when the constraint can be solved for the dependent variable
dA=Aθ dθ+Aa da+Ab dbdA = A_\theta\,d\theta + A_a\,da + A_b\,db, with da=0da = 0 and da=cos⁡θ db−bsin⁡θ dθda = \cos\theta\,db - b\sin\theta\,d\thetaMethod 1: total differentialsThe constraint gives db=btan⁡θ dθdb = b\tan\theta\,d\theta; substitute and read off the coefficient of dθd\theta
(∂A∂θ)a=Aθ+Ab(∂b∂θ)a=12absec⁡θ\left(\dfrac{\partial A}{\partial\theta}\right)_a = A_\theta + A_b\left(\dfrac{\partial b}{\partial\theta}\right)_a = \tfrac{1}{2}ab\sec\thetaMethod 2: chain rule(∂θ∂θ)a=1\left(\frac{\partial\theta}{\partial\theta}\right)_a = 1, (∂a∂θ)a=0\left(\frac{\partial a}{\partial\theta}\right)_a = 0, and (∂b∂θ)a=btan⁡θ\left(\frac{\partial b}{\partial\theta}\right)_a = b\tan\theta from the constraint

Key Insight: Divide dA=Aθ dθ+Aa da+Ab dbdA = A_\theta\,d\theta + A_a\,da + A_b\,db by dθd\theta and put the subscript aa on every rate: that is the chain-rule formula. Both methods differentiate the constraint instead of solving it, and both agree with method 0, since 12absec⁡θ=12a2sec⁡2θ\tfrac{1}{2}ab\sec\theta = \tfrac{1}{2}a^2\sec^2\theta when b=asec⁡θb = a\sec\theta.

IIWhy the Answer Is Not Just AθA_\theta

Holding aa fixed, the apex moves in two pieces: rotate with bb frozen (Aθ dθA_\theta\,d\theta), then stretch bb (Ab dbA_b\,db).

💡 With bb frozen the shape is a triangle with sides aa, bb and included angle θ\theta, so A=12absin⁡θA = \tfrac{1}{2}ab\sin\theta still gives its area, but it no longer satisfies a=bcos⁡θa = b\cos\theta. The Ab dbA_b\,db term is what brings the apex back onto the constraint.

IIIOne Computation, Written Two Ways

Each step of the total-differential method has a matching chain-rule step; dividing by dθd\theta turns one into the other.

1 · Total differentials

Write dAdA with the formal partials:

dA=Aθ dθ+Aa da+Ab db=12abcos⁡θ dθ+12bsin⁡θ da+12asin⁡θ db\begin{aligned} dA &= A_\theta\,d\theta + A_a\,da + A_b\,db \\ &= \tfrac{1}{2}ab\cos\theta\,d\theta + \tfrac{1}{2}b\sin\theta\,da + \tfrac{1}{2}a\sin\theta\,db \end{aligned}

2 · Chain rule

Every rate is taken with aa held fixed:

(∂A∂θ)a=Aθ(∂θ∂θ)a+Aa(∂a∂θ)a+Ab(∂b∂θ)a\begin{aligned} \left(\frac{\partial A}{\partial\theta}\right)_a = {} & A_\theta\left(\frac{\partial\theta}{\partial\theta}\right)_a + A_a\left(\frac{\partial a}{\partial\theta}\right)_a \\ & + A_b\left(\frac{\partial b}{\partial\theta}\right)_a \end{aligned}

IVQuiz Questions

Problem 1 · Evaluate the Constrained Rate

Given: the right triangle with A=12absin⁡θA = \tfrac{1}{2}ab\sin\theta and a=bcos⁡θa = b\cos\theta, at a=2a = 2 and θ=π4\theta = \tfrac{\pi}{4} — find (∂A∂θ)a\left(\dfrac{\partial A}{\partial\theta}\right)_a.

✅ Correct! 12a2sec⁡2θ=12⋅4⋅2=4\tfrac{1}{2}a^2\sec^2\theta = \tfrac{1}{2}\cdot 4\cdot 2 = 4, and 12absec⁡θ\tfrac{1}{2}ab\sec\theta with b=22b = 2\sqrt{2} gives the same value.
❌ Not quite. 22 is Aθ=12abcos⁡θA_\theta = \tfrac{1}{2}ab\cos\theta, the rate with bb frozen. Holding aa fixed makes bb grow, and that adds Ab(∂b∂θ)a=2A_b\left(\frac{\partial b}{\partial\theta}\right)_a = 2.
❌ Close, but… the derivative of tan⁡θ\tan\theta is sec⁡2θ\sec^2\theta, not sec⁡θ\sec\theta. With sec⁡π4=2\sec\frac{\pi}{4} = \sqrt{2}, squaring gives 22.
❌ Not quite. The constant 12a2\tfrac{1}{2}a^2 comes out of the derivative intact: 12⋅4⋅sec⁡2π4\tfrac{1}{2}\cdot 4\cdot\sec^2\tfrac{\pi}{4}, not 4⋅sec⁡2π44\cdot\sec^2\tfrac{\pi}{4}.
Show solution

Method 0 applies, since the constraint solves for bb: b=asec⁡θb = a\sec\theta, so A=12a⋅asec⁡θ⋅sin⁡θ=12a2tan⁡θA = \tfrac{1}{2}a\cdot a\sec\theta\cdot\sin\theta = \tfrac{1}{2}a^2\tan\theta. With aa fixed this is an ordinary derivative:

(∂A∂θ)a=12a2sec⁡2θ=12⋅22⋅(2)2=4.\left(\frac{\partial A}{\partial\theta}\right)_a = \tfrac{1}{2}a^2\sec^2\theta = \tfrac{1}{2}\cdot 2^2\cdot\left(\sqrt{2}\right)^2 = 4.

Check with methods 1 and 2: b=2sec⁡π4=22b = 2\sec\tfrac{\pi}{4} = 2\sqrt{2}, and 12absec⁡θ=12⋅2⋅22⋅2=4\tfrac{1}{2}ab\sec\theta = \tfrac{1}{2}\cdot 2\cdot 2\sqrt{2}\cdot\sqrt{2} = 4.

Problem 2 · The Missing Term

Given: a student differentiates A=12absin⁡θA = \tfrac{1}{2}ab\sin\theta with respect to θ\theta, treating aa and bb as constants, and reports (∂A∂θ)a=12abcos⁡θ\left(\dfrac{\partial A}{\partial\theta}\right)_a = \tfrac{1}{2}ab\cos\theta — find the term the student left out.

✅ Correct! bb is the dependent variable, so it changes with θ\theta: Ab(∂b∂θ)a=12asin⁡θ⋅btan⁡θA_b\left(\frac{\partial b}{\partial\theta}\right)_a = \tfrac{1}{2}a\sin\theta\cdot b\tan\theta.
❌ Not quite. aa is the variable held fixed, so (∂a∂θ)a=0\left(\frac{\partial a}{\partial\theta}\right)_a = 0 and the AaA_a term vanishes.
❌ Close, but… AbA_b is only a coefficient. It must multiply the rate (∂b∂θ)a=btan⁡θ\left(\frac{\partial b}{\partial\theta}\right)_a = b\tan\theta.
❌ Not quite. Treating bb as constant while aa is fixed breaks a=bcos⁡θa = b\cos\theta: opening the angle with both sides frozen loses the right angle.
Show solution

The chain rule with aa held fixed gives

(∂A∂θ)a=Aθ⋅1+Aa⋅0+Ab(∂b∂θ)a.\left(\frac{\partial A}{\partial\theta}\right)_a = A_\theta\cdot 1 + A_a\cdot 0 + A_b\left(\frac{\partial b}{\partial\theta}\right)_a.

The student kept only Aθ=12abcos⁡θA_\theta = \tfrac{1}{2}ab\cos\theta. Differentiating the constraint gives (∂b∂θ)a=btan⁡θ\left(\frac{\partial b}{\partial\theta}\right)_a = b\tan\theta, so the missing term is 12asin⁡θ⋅btan⁡θ=12absin⁡θtan⁡θ\tfrac{1}{2}a\sin\theta\cdot b\tan\theta = \tfrac{1}{2}ab\sin\theta\tan\theta. Together:

12ab(cos⁡θ+sin⁡2θcos⁡θ)=12ab⋅cos⁡2θ+sin⁡2θcos⁡θ=12absec⁡θ.\tfrac{1}{2}ab\left(\cos\theta + \frac{\sin^2\theta}{\cos\theta}\right) = \tfrac{1}{2}ab\cdot\frac{\cos^2\theta + \sin^2\theta}{\cos\theta} = \tfrac{1}{2}ab\sec\theta.

Problem 3 · Differentials on a Constraint You Cannot Solve

Given: w=xy+z2w = xy + z^2, where xx, yy, zz satisfy x2+yz+z3=8x^2 + yz + z^3 = 8 (a cubic in zz). At the point (x,y,z)=(2,3,1)(x, y, z) = (2, 3, 1) — find (∂w∂x)y\left(\dfrac{\partial w}{\partial x}\right)_y.

✅ Correct! dz=−23 dxdz = -\tfrac{2}{3}\,dx on the constraint with dy=0dy = 0, so dw=3 dx+2(−23)dx=53 dxdw = 3\,dx + 2\left(-\tfrac{2}{3}\right)dx = \tfrac{5}{3}\,dx.
❌ Not quite. 33 is the formal partial wx=yw_x = y. Here zz is the dependent variable, so wz dzw_z\,dz contributes too.
❌ Close, but check the sign of dzdz. From 2x dx+(y+3z2) dz=02x\,dx + (y + 3z^2)\,dz = 0, dz=−2xy+3z2 dxdz = -\tfrac{2x}{y + 3z^2}\,dx, which is negative.
❌ Close, but… dzdz enters dwdw multiplied by its coefficient wz=2z=2w_z = 2z = 2.
Show solution

The point is on the constraint: 4+3+1=84 + 3 + 1 = 8. Step 1: dw=y dx+x dy+2z dzdw = y\,dx + x\,dy + 2z\,dz. Step 2: yy is fixed, so dy=0dy = 0.

Step 3: differentiate the constraint: 2x dx+z dy+(y+3z2) dz=02x\,dx + z\,dy + (y + 3z^2)\,dz = 0. With dy=0dy = 0 at (2,3,1)(2, 3, 1): 4 dx+6 dz=04\,dx + 6\,dz = 0, so dz=−23 dxdz = -\tfrac{2}{3}\,dx.

Step 4: substitute:

dw=3 dx+2⋅1⋅(−23)dx=53 dx⇒(∂w∂x)y=53.dw = 3\,dx + 2\cdot 1\cdot\left(-\tfrac{2}{3}\right)dx = \tfrac{5}{3}\,dx \quad\Rightarrow\quad \left(\frac{\partial w}{\partial x}\right)_y = \tfrac{5}{3}.

Method 0 would need zz solved from a cubic; the differential never solves the constraint.

Problem 4 · Hold the Hypotenuse Instead

Given: the same triangle, A=12absin⁡θA = \tfrac{1}{2}ab\sin\theta with a=bcos⁡θa = b\cos\theta, but now the hypotenuse bb is held fixed and aa is dependent — find (∂A∂θ)b\left(\dfrac{\partial A}{\partial\theta}\right)_b.

✅ Correct! Aθ+Aa(∂a∂θ)b=12b2cos⁡2θ−12b2sin⁡2θ=12b2cos⁡2θA_\theta + A_a\left(\frac{\partial a}{\partial\theta}\right)_b = \tfrac{1}{2}b^2\cos^2\theta - \tfrac{1}{2}b^2\sin^2\theta = \tfrac{1}{2}b^2\cos 2\theta; it vanishes at θ=π4\theta = \tfrac{\pi}{4}, where the area is largest.
❌ Not quite. That is the rate with aa fixed. With bb fixed the dependent variable is aa, and (∂a∂θ)b=−bsin⁡θ\left(\frac{\partial a}{\partial\theta}\right)_b = -b\sin\theta changes the second term.
❌ Not quite. 12abcos⁡θ\tfrac{1}{2}ab\cos\theta is only AθA_\theta. The leg a=bcos⁡θa = b\cos\theta shrinks as θ\theta opens, which adds Aa(∂a∂θ)bA_a\left(\frac{\partial a}{\partial\theta}\right)_b.
❌ Close, but… that is only the dependent-variable term Aa(∂a∂θ)bA_a\left(\frac{\partial a}{\partial\theta}\right)_b. The Aθ(∂θ∂θ)b=AθA_\theta\left(\frac{\partial\theta}{\partial\theta}\right)_b = A_\theta term stays.
Show solution

Chain rule with bb held fixed: (∂b∂θ)b=0\left(\frac{\partial b}{\partial\theta}\right)_b = 0, so

(∂A∂θ)b=Aθ+Aa(∂a∂θ)b.\left(\frac{\partial A}{\partial\theta}\right)_b = A_\theta + A_a\left(\frac{\partial a}{\partial\theta}\right)_b.

Differentiate a=bcos⁡θa = b\cos\theta with bb fixed: (∂a∂θ)b=−bsin⁡θ\left(\frac{\partial a}{\partial\theta}\right)_b = -b\sin\theta. With Aθ=12abcos⁡θA_\theta = \tfrac{1}{2}ab\cos\theta and Aa=12bsin⁡θA_a = \tfrac{1}{2}b\sin\theta:

(∂A∂θ)b=12abcos⁡θ−12b2sin⁡2θ=12b2cos⁡2θ−12b2sin⁡2θ=12b2cos⁡2θ,\left(\frac{\partial A}{\partial\theta}\right)_b = \tfrac{1}{2}ab\cos\theta - \tfrac{1}{2}b^2\sin^2\theta = \tfrac{1}{2}b^2\cos^2\theta - \tfrac{1}{2}b^2\sin^2\theta = \tfrac{1}{2}b^2\cos 2\theta,

using a=bcos⁡θa = b\cos\theta. Method 0 agrees: A=12b2sin⁡θcos⁡θ=14b2sin⁡2θA = \tfrac{1}{2}b^2\sin\theta\cos\theta = \tfrac{1}{4}b^2\sin 2\theta, whose θ\theta-derivative is 12b2cos⁡2θ\tfrac{1}{2}b^2\cos 2\theta.

Solved: 0 / 4