Foundations to FrontierPart VI: Calculus IIIBezhig

Module 36: Partial derivatives, differentiability, and the chain rule

8 exercises, each with a complete solution. 1 figure.

On this page
  1. A. Prerequisites and observable goals
  2. B. The central idea: coordinate rates are pieces of a full local model
  3. C. Definitions and sufficient conditions
  4. D. Why every dependency path contributes
  5. E. How to solve without losing a variable
  6. F. Worked examples
  7. G. Independent practice
  8. H. Complete solutions: Module 36
  9. I. Retention and readiness

A. Prerequisites and observable goals#

Before

Multivariable domains and limits, ordinary differentiation, and vector notation.

After

Compute partial and mixed derivatives, distinguish them from total differentiability, and track all dependency paths in a multivariable chain rule.

B. The central idea: coordinate rates are pieces of a full local model#

The partial derivative fxf_x changes xx while holding yy fixed. The partial derivative fyf_y changes yy while holding xx fixed. They are ordinary derivatives of coordinate slices. A full multivariable derivative is stronger: one linear map must predict the first-order change for all small input displacements, not merely the coordinate axes.

Partial derivatives are slopes of slices. For f(x,y)=4−x2−12y2f(x,y)=4-x^2-\tfrac12y^2 at (1,1)(1,1), where f=2.5f=2.5: holding y=1y=1 leaves the curve z=3.5−x2z=3.5-x^2, whose slope at x=1x=1 is fx=−2f_x=-2; holding x=1x=1 leaves z=3−12y2z=3-\tfrac12y^2, whose slope at y=1y=1 is fy=−1f_y=-1.

C. Definitions and sufficient conditions#

At an interior point,

fx(a,b)=lim⁡h→0f(a+h,b)−f(a,b)h,fy(a,b)=lim⁡k→0f(a,b+k)−f(a,b)k.f_x(a,b)=\lim_{h\to0}\frac{f(a+h,b)-f(a,b)}h, \quad f_y(a,b)=\lim_{k\to0}\frac{f(a,b+k)-f(a,b)}k.

The function is differentiable at (a,b)(a,b) if

f(a+h,b+k)=f(a,b)+fx(a,b)h+fy(a,b)k+E(h,k),E(h,k)h2+k2→0.f(a+h,b+k)=f(a,b)+f_x(a,b)h+f_y(a,b)k+E(h,k), \quad\frac{E(h,k)}{\sqrt{h^2+k^2}}\to0.

Differentiability implies continuity and existence of partial derivatives. Existence of partial derivatives alone implies neither continuity nor differentiability. Continuous partial derivatives in a neighborhood of a point are a sufficient condition for differentiability there. [O3Diff]

We use fxy=∂(fx)/∂yf_{xy}=\partial(f_x)/\partial y: differentiate in xx, then in yy. If the relevant second partials are continuous in a neighborhood, fxy=fyxf_{xy}=f_{yx} (Clairaut’s theorem). Without appropriate regularity, interchanging the order is not automatically justified.

If z=f(x,y)z=f(x,y) is differentiable and x=x(t),y=y(t)x=x(t),y=y(t) are differentiable, then

 dz dt=fxx′+fyy′.\frac{\dd z}{\dd t}=f_x x'+f_y y'.

For x=x(s,t),y=y(s,t)x=x(s,t),y=y(s,t), zs=fxxs+fyysz_s=f_xx_s+f_yy_s and zt=fxxt+fyytz_t=f_xx_t+f_yy_t, with all outer partials evaluated at the current inner inputs. [O3Chain]

D. Why every dependency path contributes#

A small time change produces Δx≈x′Δt\Delta x\approx x'\Delta t and Δy≈y′Δt\Delta y\approx y'\Delta t. Differentiability says Δz≈fxΔx+fyΔy\Delta z\approx f_x\Delta x+f_y\Delta y. Substituting the two input changes and dividing by Δt\Delta t gives the chain rule. The neglected error terms vanish in the limit under the stated differentiability assumptions.

For the polynomial f(x,y)=x2+y2f(x,y)=x^2+y^2 at (a,b)(a,b), the exact expansion has error h2+k2h^2+k^2. Dividing by h2+k2\sqrt{h^2+k^2} leaves that distance itself, which tends to zero. This is an explicit differentiability proof. It uses a first-order error test, not only the existence of derivatives along two axes.

E. How to solve without losing a variable#

Identify which variables are independent. For a partial derivative, circle the variable being changed and treat the others as constants. For compositions, draw a small dependency tree: each path from the output to the requested input contributes a product, and parallel paths add. For implicit relations F(x,y,z)=0F(x,y,z)=0 defining z=z(x,y)z=z(x,y), differentiate every occurrence of zz; when Fz≠0F_z\ne0 and sufficient smoothness holds, zx=−Fx/Fzz_x=-F_x/F_z and zy=−Fy/Fzz_y=-F_y/F_z. If Fz=0F_z=0, those solved formulas cannot be used without further analysis.

F. Worked examples#

Partial versus total change. For f(x,y)=x2y+sin⁡yf(x,y)=x^2y+\sin y, fx=2xyf_x=2xy and fy=x2+cos⁡yf_y=x^2+\cos y. If x=t2,y=3tx=t^2,y=3t, then

 df dt=(2xy)(2t)+(x2+cos⁡y)(3)=15t4+3cos⁡3t.\frac{\dd f}{\dd t}=(2xy)(2t)+(x^2+\cos y)(3) =15t^4+3\cos3t.

Direct substitution gives f(t2,3t)=3t5+sin⁡3tf(t^2,3t)=3t^5+\sin3t, whose ordinary derivative checks the result.

A smooth implicit graph. For x2+y2+z2=9x^2+y^2+z^2=9 near a point with z>0z>0, differentiation with respect to xx gives 2x+2zzx=02x+2zz_x=0, so zx=−x/zz_x=-x/z. The choice z>0z>0 identifies the upper hemisphere as a function locally; near the equator, the solved graph formula becomes singular.

A necessary warning. Define f=xy/(x2+y2)f=xy/(x^2+y^2) off the origin and f(0,0)=0f(0,0)=0. Both coordinate partials at zero equal zero because the axis restrictions are identically zero. Yet the diagonal path gives 1/21/2, so the function is not continuous and therefore not differentiable there.

G. Independent practice#

F foundation C standard course work T transfer S optional stretch L runnable lab or project. Attempt the complete set before opening its solutions.

M36.01FSolution

Find fx,fyf_x,f_y for f(x,y)=x3y2+exyf(x,y)=x^3y^2+e^{xy}.

M36.02CSolution

Find fxyf_{xy} and fyxf_{yx} for f(x,y)=x2sin⁡yf(x,y)=x^2\sin y, and justify their equality.

M36.03CSolution

For z=x2+y2z=x^2+y^2, x=tcos⁡tx=t\cos t, y=tsin⁡ty=t\sin t, find  dz/ dt\dd z/\dd t by the chain rule and by direct simplification.

M36.04TSolution

Let z=xyz=xy, x=s+tx=s+t, y=s−ty=s-t. Find zs,ztz_s,z_t both from the chain rule and from the simplified composition.

M36.05TSolution

The equation x2+2y2+3z2=12x^2+2y^2+3z^2=12 defines a positive zz near (1,1,3)(1,1,\sqrt3). Find zx,zyz_x,z_y there.

M36.06CSolution

Prove differentiability of f(x,y)=xyf(x,y)=xy at an arbitrary point (a,b)(a,b) by explicitly bounding the error after its linear terms.

M36.07TSolution

For T(x,y)=e−x2−y2T(x,y)=e^{-x^2-y^2} and motion x=t,y=t2x=t,y=t^2, find the temperature rate at t=1t=1.

M36.08SSolution

Define f(x,y)=x3/(x2+y2)f(x,y)=x^3/(x^2+y^2) off zero and f(0,0)=0f(0,0)=0. Show that every directional derivative at zero exists, yet the function is not differentiable there.

Optional small hints

For M36.05, verify the point lies on the surface before differentiating. For M36.06, the error is hkhk, and ∣hk∣≤(h2+k2)/2|hk|\le(h^2+k^2)/2. For M36.08, along a unit vector u\vv u the directional difference quotient is u13u_1^3, not the linear expression predicted by the coordinate partials.

H. Complete solutions: Module 36#

Compare the first step where your work differs. A corrected answer is not yet an independent success.

M36.01Show solution

Hold the other input fixed

Differentiating with respect to xx gives fx=3x2y2+yexy\boxed{f_x=3x^2y^2+y e^{xy}}. Differentiating with respect to yy gives fy=2x3y+xexy\boxed{f_y=2x^3y+x e^{xy}}. The factors yy and xx in the exponential terms are chain-rule derivatives of its inner product with the other variable held fixed.

Back to M36.01
M36.02Show solution

The mixed-order equality has a smoothness justification

First fx=2xsin⁡yf_x=2x\sin y, so fxy=2xcos⁡yf_{xy}=2x\cos y. Conversely fy=x2cos⁡yf_y=x^2\cos y, so fyx=2xcos⁡yf_{yx}=2x\cos y. Both are continuous everywhere, as are the other second partials, so Clairaut’s sufficient hypotheses hold. Direct computation also verifies the equality here.

Back to M36.02
M36.03Show solution

Two dependency paths collapse by a trigonometric identity

The chain rule gives z′=2x(cos⁡t−tsin⁡t)+2y(sin⁡t+tcos⁡t)z'=2x(\cos t-t\sin t)+2y(\sin t+t\cos t). Substituting x=tcos⁡t,y=tsin⁡tx=t\cos t,y=t\sin t cancels the cross terms, leaving 2t(cos⁡2t+sin⁡2t)=2t2t(\cos^2t+\sin^2t)=\boxed{2t}. Directly z=t2z=t^2, giving the same derivative. Ignoring either input path would miss part of this cancellation.

Back to M36.03
M36.04Show solution

Two independent parameters require two different partials

Here fx=y,fy=xf_x=y,f_y=x. Thus zs=y(1)+x(1)=2sz_s=y(1)+x(1)=2s, while zt=y(1)+x(−1)=−2tz_t=y(1)+x(-1)=-2t. The composition is z=(s+t)(s−t)=s2−t2z=(s+t)(s-t)=s^2-t^2, whose partials confirm zs=2s,zt=−2t\boxed{z_s=2s,z_t=-2t}. The sign difference comes from yt=−1y_t=-1.

Back to M36.04
M36.05Show solution

Check geometry and the nonzero implicit denominator

The point satisfies 1+2+3(3)=121+2+3(3)=12. Differentiating gives 2x+6zzx=02x+6zz_x=0 and 4y+6zzy=04y+6zz_y=0. Thus zx=−x/(3z)z_x=-x/(3z) and zy=−2y/(3z)z_y=-2y/(3z). At the stated point, zx=−1/(33), zy=−2/(33)\boxed{z_x=-1/(3\sqrt3),\ z_y=-2/(3\sqrt3)}. The denominator is nonzero, consistent with a local positive graph.

Back to M36.05
M36.06Show solution

A uniform error estimate proves differentiability

Expand exactly: f(a+h,b+k)=(a+h)(b+k)=ab+bh+ak+hkf(a+h,b+k)=(a+h)(b+k)=ab+bh+ak+hk. The partials at (a,b)(a,b) are b,ab,a, and the error is E=hkE=hk. For r=h2+k2>0r=\sqrt{h^2+k^2}>0, ∣E∣/r≤r/2→0|E|/r\le r/2\to0. This proves differentiability at every point and identifies its derivative as the linear map (h,k)↦bh+ak(h,k)\mapsto bh+ak.

Back to M36.06
M36.07Show solution

Evaluate outer derivatives at the moving point

The partials are Tx=−2xe−x2−y2T_x=-2x e^{-x^2-y^2} and Ty=−2ye−x2−y2T_y=-2y e^{-x^2-y^2}. At t=1t=1, the point is (1,1)(1,1) and velocity is (1,2)(1,2). Thus T′=(−2e−2)(1)+(−2e−2)(2)=−6e−2T'=(-2e^{-2})(1)+(-2e^{-2})(2)=\boxed{-6e^{-2}} in temperature units per time unit. The negative sign means the moving particle experiences cooling at that instant.

Back to M36.07
M36.08Show solution

All directional rates need not assemble into one linear map

For a unit direction u=(u1,u2)\vv u=(u_1,u_2) and nonzero tt, f(tu)=tu13f(t\vv u)=t u_1^3, since u12+u22=1u_1^2+u_2^2=1. Therefore every directional derivative exists and equals u13u_1^3. Coordinate partials are fx(0,0)=1f_x(0,0)=1 and fy(0,0)=0f_y(0,0)=0, so differentiability would require directional derivative u1u_1. At u=(1,1)/2\vv u=(1,1)/\sqrt2, u13=1/(22)≠1/2u_1^3=1/(2\sqrt2)\ne1/\sqrt2. Equivalently, along h=kh=k, the linear error divided by distance stays nonzero. Thus no single linear derivative exists, despite all directional derivatives existing.

Back to M36.08

I. Retention and readiness#

Retrieve M35.08 and M10.07. Explain why the total derivative is a linear approximation in every direction, not just a collection of separate rates. Advance when you can show every chain-rule dependency and audit the regularity needed for interchanging mixed partials.