Chapter 4: Partial Differentiation
Section 4.3: Chain Rule
Example 4.3.5
The composition of fx,y=x3y with x=r cost,y=r sint forms the function Fr,t=fxr,t,yr,t. Obtain the partial derivatives Fr and Ft by appropriate forms of the chain rule, and again by writing the rule for F explicitly. Show that the results agree.
Solution
Mathematical Solution
An application of the chain rule gives
Fr
=fx xr+fy yr
Ft
=fx xt+fy yt
=3⁢x2⁢y⁢cos⁡t+x3⁢sin⁡t
=−3⁢x2⁢y⁢r⁢sin⁡t+x3⁢r⁢cos⁡t
=4⁢r3⁢cos⁡t3⁢sin⁡t
=−3⁢r4⁢cos⁡t2⁢sin⁡t2+r4⁢cos⁡t4
=r44⁢cos⁡t2−3⁢cost2
Writing Fr,t=fxr,t,yr,t=r4cos3tsint explicitly gives Fr=4⁢r3⁢cos⁡t3⁢sin⁡t and Ft=r44⁢cos⁡t2−3⁢cost2, in agreement with the chain-rule results.
Maple Solution - Interactive
Formal statement of the relevant chain rules
Context Panel: Differentiate≻With Respect To≻r
fxr,t,yr,t→differentiate w.r.t. rD1⁡f⁡x⁡r,t,y⁡r,t⁢∂∂r⁢x⁡r,t+D2⁡f⁡x⁡r,t,y⁡r,t⁢∂∂r⁢y⁡r,t
Context Panel: Differentiate≻With Respect To≻t
fxr,t,yr,t→differentiate w.r.t. tD1⁡f⁡x⁡r,t,y⁡r,t⁢∂∂t⁢x⁡r,t+D2⁡f⁡x⁡r,t,y⁡r,t⁢∂∂t⁢y⁡r,t
It is possible to obtain notational simplifications interactively, via the Typesetting Rules Assistant in the View menu. However, this is a tedious multistep process, so will not be pursued here.
Implement the chain rule
Context Panel: Assign Function
fx,y=x3y→assign as functionf
Context Panel: Assign Name
X=r cost→assign
Y=r sint→assign
Calculus palette: Partial and ordinary differential operators Press the Enter key.
Context Panel: Evaluate at a Point≻x=X,y=Y
Context Panel: Simplify≻Simplify
∂∂ x fx,y ⅆⅆ r X+∂∂ y fx,y ⅆⅆ r Y
3⁢x2⁢y⁢cos⁡t+x3⁢sin⁡t
→evaluate at point
4⁢r3⁢cos⁡t3⁢sin⁡t
∂∂ x fx,y ⅆⅆ t X+∂∂ y fx,y ⅆⅆ t Y
−3⁢x2⁢y⁢r⁢sin⁡t+x3⁢r⁢cos⁡t
−3⁢r4⁢cos⁡t2⁢sin⁡t2+r4⁢cos⁡t4
= simplify
4⁢cos⁡t2−3⁢cos⁡t2⁢r4
Obtain Fr and Ft from the explicit representation Fr,t=fxr,t,yr,t
Calculus palette: Partial differentiation operator
Context Panel: Evaluate and Display Inline
∂∂ r fX,Y = 4⁢r3⁢cos⁡t3⁢sin⁡t
∂∂ t fX,Y = −3⁢r4⁢cos⁡t2⁢sin⁡t2+r4⁢cos⁡t4= simplify 4⁢cos⁡t2−3⁢cos⁡t2⁢r4
Maple Solution - Coded
Initialize
Simplified Maple notation is available if the commands to the right are first executed.
interfacetypesetting=extended:Typesetting:-Suppressxr,t,yr,t:Typesetting:-Settingsuserep=true:
difffxr,t,yr,t,r
D1⁡f⁡x,y⁢xr+D2⁡f⁡x,y⁢yr
difffxr,t,yr,t,t
D1⁡f⁡x,y⁢xt+D2⁡f⁡x,y⁢yt
Although the chain rules for this problem could be written as Fr=fx xr+fy yr and Ft=fx xt+fy yt, Maple uses the D-operator notation to express the partial derivatives fx and fy, and cannot suppress the arguments of f once suppression of arguments has been applied to x and y.
Restore the variables x and y.
Typesetting:-Unsuppressxr,t,yr,t:
Define the function f.
f≔x,y→x3y:
Assign xr,t and yr,t to the names X and Y, respectively.
X≔r cost:Y≔r sint:
Apply the simplify and diff commands.
D1fX,Y diffX,r+D2fX,Y diffY,r
simplifyD1fX,Y diffX,t+D2fX,Y diffY,t
Obtain Fr and Ft from an explicit representation of Fr,t
Using the diff and simplify commands, explicitly differentiate fxr,t,yr,t.
difffX,Y,r
simplifydifffX,Y,t
<< 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