Chapter 4: Partial Differentiation
Section 4.3: Chain Rule
Example 4.3.26
If the equation u=x3+y3+z3+u3 implicitly defines u=ux,y,z and the equation z=x2+y2+z2 implicitly defines z=zx,y, obtain ux and uy.
Solution
Mathematical Solution
Differentiate each equation with respect to x, keeping in mind the implicitly defined functions in each.
∂∂xu=x3+y3+z3+u3⇒ux=3 x2+3 z2 zx+3 u2 ux⇒ux=3 x2+3 z2 zx1−3 u2
and
∂∂xz=x2+y2+z2⇒zx=2 x+2 z zx=0⇒zx=2 x1−2 z
from which it follows that ux=3 x2+3 z2 2 x1−2 z1−3 u2=3⁢x⁢2 z2−2 x z+x3⁢u2−1⁢2⁢z−1.
Differentiate each equation with respect to y, keeping in mind the implicitly defined functions in each.
∂∂yu=x3+y3+z3+u3⇒uy=3 y2+3 z2 zy+3 u2 uy⇒uy=3 y2+3 z2 zy1−3 u2
∂∂yz=x2+y2+z2⇒zy=2 y+2 z zy⇒zy=2 y1−2 z
from which it follows that uy=3 y2+3 z2 2 y1−2 z1−3 u2=3⁢y⁢2 z2−2 y z+y3⁢u2−1⁢2⁢z−1.
Maple Solution - Interactive
Obtain ux from first principles
Write the first equation with the appropriate dependencies made explicit.
Context Panel: Differentiate≻With Respect To≻x
ux,y,z=x3+y3+zx,y3+ux,y,z3
u⁡x,y,z=x3+y3+z⁡x,y3+u⁡x,y,z3
→differentiate w.r.t. x
∂∂x⁢u⁡x,y,z=3⁢x2+3⁢z⁡x,y2⁢∂∂x⁢z⁡x,y+3⁢u⁡x,y,z2⁢∂∂x⁢u⁡x,y,z
Write the second equation with the appropriate dependencies made explicit.
zx,y=x2+y2+zx,y2
z⁡x,y=x2+y2+z⁡x,y2
∂∂x⁢z⁡x,y=2⁢x+2⁢z⁡x,y⁢∂∂x⁢z⁡x,y
Using equation labels, make a sequence of the two equations resulting from differentiation, and press the Enter key.
Context Panel: Solve≻Solve for Variables≻ux,zx Enter as per Figure 4.3.26(a).
Figure 4.3.26(a) Variables dialog
,
∂∂x⁢u⁡x,y,z=3⁢x2+3⁢z⁡x,y2⁢∂∂x⁢z⁡x,y+3⁢u⁡x,y,z2⁢∂∂x⁢u⁡x,y,z,∂∂x⁢z⁡x,y=2⁢x+2⁢z⁡x,y⁢∂∂x⁢z⁡x,y
→solve (specified)
∂∂x⁢u⁡x,y,z=3⁢x⁢2⁢z⁡x,y2−2⁢z⁡x,y⁢x+x2⁢z⁡x,y−1⁢3⁢u⁡x,y,z2−1,∂∂x⁢z⁡x,y=−2⁢x2⁢z⁡x,y−1
Thus, ux=3⁢x⁢2 z2−2 x z+x3⁢u2−1⁢2⁢z−1.
Obtain uy from first principles
Context Panel: Differentiate≻With Respect To≻y
→differentiate w.r.t. y
∂∂y⁢u⁡x,y,z=3⁢y2+3⁢z⁡x,y2⁢∂∂y⁢z⁡x,y+3⁢u⁡x,y,z2⁢∂∂y⁢u⁡x,y,z
∂∂y⁢z⁡x,y=2⁢y+2⁢z⁡x,y⁢∂∂y⁢z⁡x,y
Context Panel: Solve≻Solve for Variables≻uy,zy Enter as per Figure 4.3.26(b).
Figure 4.3.26(b) Variables dialog
∂∂y⁢u⁡x,y,z=3⁢y2+3⁢z⁡x,y2⁢∂∂y⁢z⁡x,y+3⁢u⁡x,y,z2⁢∂∂y⁢u⁡x,y,z,∂∂y⁢z⁡x,y=2⁢y+2⁢z⁡x,y⁢∂∂y⁢z⁡x,y
∂∂y⁢u⁡x,y,z=3⁢y⁢2⁢z⁡x,y2−2⁢z⁡x,y⁢y+y2⁢z⁡x,y−1⁢3⁢u⁡x,y,z2−1,∂∂y⁢z⁡x,y=−2⁢y2⁢z⁡x,y−1
Thus, uy=3⁢y⁢2 z2−2 y z+y3⁢u2−1⁢2⁢z−1.
Maple Solution - Coded
Apply the implicitdiff command
implicitdiffu=x3+y3+z3+u3,z=x2+y2+z2,u,z,u,z,x
D1⁡u=3⁢x⁢−2⁢x⁢z+2⁢z2+x3⁢u2−1⁢2⁢z−1,D1⁡z=−2⁢x2⁢z−1
implicitdiffu=x3+y3+z3+u3,z=x2+y2+z2,u,z,u,z,y
D2⁡u=3⁢y⁢−2⁢y⁢z+2⁢z2+y3⁢u2−1⁢2⁢z−1,D2⁡z=−2⁢y2⁢z−1
From the first calculation, obtain ux=3⁢x⁢2 z2−2 x z+x3⁢u2−1⁢2⁢z−1; and from the second, uy=3⁢y⁢2 z2−2 y z+y3⁢u2−1⁢2⁢z−1.
The following computation of ux and uy from first principles makes use of some notational simplifications. Unfortunately, Maple can either suppress the arguments on ux,y,z or zx,y, but not both because z would be a suppressed argument of u. The choice here is to suppress the arguments for ux,y,z.
Notational simplifications
These commands cause u and ux,y,z to be equivalent, and for its derivatives to be written with subscripts.
interfacetypesetting=extended:Typesetting:-Suppressux,y,z:Typesetting:-Settingsuserep=true:
Obtain ux
Write the two defining equations with the appropriate dependencies explicitly stated. Press the Enter key.
q1≔ux,y,z=x3+y3+z3x,y+u3x,y,z;q2≔z⁡x,y=x2+y2+z2x,y
q1≔u=x3+y3+z⁡x,y3+u3
Differentiate both equations with respect to x and solve for the two derivatives ux and zx.
q3≔solvediffq1,x,diffq2,x,diffu,x,diffzx,y,x
q3≔ux=3⁢x⁢2⁢z⁡x,y2−2⁢z⁡x,y⁢x+x2⁢z⁡x,y−1⁢3⁢u2−1,∂∂xz⁡x,y=−2⁢x2⁢z⁡x,y−1
Extract the solution for ux and replace zx,y with z.
evalop1,1,q3,zx,y=z
ux=3⁢x⁢−2⁢x⁢z+2⁢z2+x2⁢z−1⁢3⁢u2−1
Obtain uy
Differentiate both equations with respect to y and solve for the two derivatives uy and zy.
q4≔solvediffq1,y,diffq2,y,diffu,y,diffzx,y,y
q4≔uy=3⁢y⁢2⁢z⁡x,y2−2⁢z⁡x,y⁢y+y2⁢z⁡x,y−1⁢3⁢u2−1,∂∂yz⁡x,y=−2⁢y2⁢z⁡x,y−1
Extract the solution for uy and replace zx,y with z.
evalop1,1,q4,zx,y=z
uy=3⁢y⁢−2⁢y⁢z+2⁢z2+y2⁢z−1⁢3⁢u2−1
<< Previous Example Section 4.3 Next Example >>
© Maplesoft, a division of Waterloo Maple Inc., 2024. All rights reserved. This product is protected by copyright and distributed under licenses restricting its use, copying, distribution, and decompilation.
For more information on Maplesoft products and services, visit www.maplesoft.com
Download Help Document