Chapter 4: Partial Differentiation
Section 4.3: Chain Rule
Example 4.3.27
If the equation u=x+y+z+eu implicitly defines u=ux,y,z and the equation z=x+y+cosz 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=x+y+z+eu⇒ux=1+ zx+eu ux⇒ux=1+ zx1−eu
and
∂∂xz=x+y+cosz⇒zx=1−sinz zx⇒zx=11+sinz
from which it follows that ux=1+ 11+sinz1−eu=2+sin⁡z1−ⅇu⁢1+ sinz.
Differentiate each equation with respect to y, keeping in mind the implicitly defined functions in each.
∂∂yu=x+y+z+eu⇒uy=1+ zy+eu uy⇒uy=1+ zy1−eu
∂∂yz=x+y+cosz⇒zy=1−sinz zy⇒zy=11+sinz
from which it follows that uy=1+ 11+sinz1−eu=2+sinz1−ⅇu⁢1+ sinz.
Maple Solution - Interactive
Obtain ux from first principles
Write the first equation with the appropriate dependencies made explicit. Be sure to use Maple's exponential "e".
Context Panel: Differentiate≻With Respect To≻x
ux,y,z=x+y+zx,y+ⅇux,y,z
u=x+y+z⁡x,y+ⅇu
→differentiate w.r.t. x
ux=1+∂∂xz⁡x,y+ux⁢ⅇu
Write the second equation with the appropriate dependencies made explicit.
zx,y=x+y+coszx,y
z⁡x,y=x+y+cos⁡z⁡x,y
∂∂xz⁡x,y=1−∂∂xz⁡x,y⁢sin⁡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.27(a).
Figure 4.3.27(a) Variables dialog
,
ux=1+∂∂xz⁡x,y+ux⁢ⅇu,∂∂xz⁡x,y=1−∂∂xz⁡x,y⁢sin⁡z⁡x,y
→solve (specified)
ux=−2+sin⁡z⁡x,yⅇu−1⁢sin⁡z⁡x,y+1,∂∂xz⁡x,y=1sin⁡z⁡x,y+1
Thus, ux=2+sin⁡z1−ⅇu⁢1+ sinz.
Obtain uy from first principles
Context Panel: Differentiate≻With Respect To≻y
→differentiate w.r.t. y
uy=1+∂∂yz⁡x,y+uy⁢ⅇu
∂∂yz⁡x,y=1−∂∂yz⁡x,y⁢sin⁡z⁡x,y
Context Panel: Solve≻Solve for Variables≻uy,zy Enter as per Figure 4.3.27(b).
Figure 4.3.27(b) Variables dialog
uy=1+∂∂yz⁡x,y+uy⁢ⅇu,∂∂yz⁡x,y=1−∂∂yz⁡x,y⁢sin⁡z⁡x,y
uy=−2+sin⁡z⁡x,yⅇu−1⁢sin⁡z⁡x,y+1,∂∂yz⁡x,y=1sin⁡z⁡x,y+1
Thus, uy=2+sin⁡z1−ⅇu⁢1+ sinz.
Maple Solution - Coded
When writing the first equation, be sure to use Maple's exponential "e".
Apply the implicitdiff command
implicitdiffu=x+y+z+ⅇu,z=x+y+cosz,u,z,u,z,x
D1⁡u=−2+sin⁡zⅇu−1⁢sin⁡z+1,D1⁡z=1sin⁡z+1
implicitdiffu=x+y+z+ⅇu,z=x+y+cosz,u,z,u,z,y
D2⁡u=−2+sin⁡zⅇu−1⁢sin⁡z+1,D2⁡z=1sin⁡z+1
From the first calculation, obtain ux=2+sin⁡z1−ⅇu⁢1+ sinz; and from the second, uy=2+sin⁡z1−ⅇu⁢1+ sinz.
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. Be sure to use Maple's exponential "e". Press the Enter key.
q1≔ux,y,z=x+y+zx,y+ⅇux,y,z;q2≔zx,y=x+y+coszx,y
q1≔u=x+y+z⁡x,y+ⅇu
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=−2+sin⁡z⁡x,yⅇu−1⁢sin⁡z⁡x,y+1,∂∂xz⁡x,y=1sin⁡z⁡x,y+1
Extract the solution for ux and replace zx,y with z.
evalop1,1,q3,zx,y=z
ux=−2+sin⁡zⅇu−1⁢sin⁡z+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=−2+sin⁡z⁡x,yⅇu−1⁢sin⁡z⁡x,y+1,∂∂yz⁡x,y=1sin⁡z⁡x,y+1
Extract the solution for uy and replace zx,y with z.
evalop1,1,q4,zx,y=z
uy=−2+sin⁡zⅇu−1⁢sin⁡z+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