Chapter 4: Partial Differentiation
Section 4.3: Chain Rule
Example 4.3.29
The composition of fx,y with x=r cost, y=r sint produces the function Fr,t=fxr,t,yr,t. Express fx and fy in terms of Fr and Ft.
Solution
Mathematical Solution
Start with the identity fr cost,r sint=Fr,t and form two equations by differentiating first with respect to r, then with respect to t. The resulting equations are
fx cost+fy sint=Fr and fx −r sint+fy r cost=Ft
Solve these equations for fx and fy. One approach to solving these equations "by hand" is to write the system in matrix form and apply Cramer's rule. Thus, write
cos(t)sin(t)−r sin(t)r cos(t)fxfy=FrFt
so that
fx=FrsintFtr costcostsint−r sintr cost=Fr r cost−Ft sintr cos2t+sin2t=Fr cost−Ft sint/r
and
fy=costFr−r sintFtcostsint−r sintr cost=Fr r sint+Ft costr cos2t+sin2t=Fr sint+Ft cost/r
are the desired solutions.
Maple Solution - Interactive
Assign the identity f→F the name q
Context Panel: Assign to a Name≻q
fr cost,r sint=Fr,t→assign to a nameq
Differentiate and solve for fx and fy
Calculus palette: Partial-derivative operator
Context Panel: Solve≻Solve for Variables≻fx and fy (See Figure 4.3.29(a) for data entry.)
Context Panel: Simplify≻Simplify
Figure 4.3.29(a) Entering fx and fy
∂∂ r q,∂∂ t q
D1⁡f⁡r⁢cos⁡t,r⁢sin⁡t⁢cos⁡t+D2⁡f⁡r⁢cos⁡t,r⁢sin⁡t⁢sin⁡t=∂∂r⁢F⁡r,t,−D1⁡f⁡r⁢cos⁡t,r⁢sin⁡t⁢r⁢sin⁡t+D2⁡f⁡r⁢cos⁡t,r⁢sin⁡t⁢r⁢cos⁡t=∂∂t⁢F⁡r,t
→solve (specified)
D1⁡f⁡r⁢cos⁡t,r⁢sin⁡t=−−cos⁡t⁢∂∂r⁢F⁡r,t⁢r+∂∂t⁢F⁡r,t⁢sin⁡tr⁢cos⁡t2+sin⁡t2,D2⁡f⁡r⁢cos⁡t,r⁢sin⁡t=∂∂r⁢F⁡r,t⁢r⁢sin⁡t+∂∂t⁢F⁡r,t⁢cos⁡tr⁢cos⁡t2+sin⁡t2
= simplify
D1⁡f⁡r⁢cos⁡t,r⁢sin⁡t=cos⁡t⁢∂∂r⁢F⁡r,t⁢r−∂∂t⁢F⁡r,t⁢sin⁡tr,D2⁡f⁡r⁢cos⁡t,r⁢sin⁡t=∂∂r⁢F⁡r,t⁢r⁢sin⁡t+∂∂t⁢F⁡r,t⁢cos⁡tr
Extract from this display the solution
fx=Fr cost−Ft sint/r and fy=Fr sint+Ft cost/r
Maple Solution - Coded
Notational simplifications
These commands allow xr,t and yr,t to be represented by x and y,respectively; and for derivatives to be written with subscripts.
interfacetypesetting=extended:Typesetting:-Suppressxr,t,yr,t,Fr,t:Typesetting:-Settingsuserep=true:
Differentiate the equation fx,y=Fr,t with respect to r and t
Apply the diff command.
qr≔difffx,y=F,r;qt≔difffx,y=F,t
qr≔D1⁡f⁡x,y⁢xr+D2⁡f⁡x,y⁢yr=Fr
Solve the two equations for fx and fy
Apply the solve command.
q1≔solveqr,qt,D1fx,y,D2fx,y:
Display the two solutions on separate lines
Invoke the print command, using the tilde (~) to apply the command to each item in q1, the set of solutions.
print~q1
D1⁡f⁡x,y=−yr⁢Ft−yt⁢Fryt⁢xr−yr⁢xt
Replace the names x and y with r cost and r sint, respectively; display the results
Apply the eval, simplify, and expand commands to obtain the results.
Invoke the print command, using the tilde (~) to apply the command to each item in q2.
q2≔expandsimplifyevalq1,x=r cost,y=r sint:
print~q2
D1⁡f⁡r⁢cos⁡t,r⁢sin⁡t=−sin⁡t⁢Ftr+cos⁡t⁢Fr
<< 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