Chapter 4: Partial Differentiation
Section 4.3: Chain Rule
Example 4.3.14
If w=fx,y and x=r coshs, y=r sinhs, obtain wr2−ws/r2 in terms of fx and fy.
Solution
Mathematical Solution
With ∂f∂x2 written as fx2, the following calculation applies the appropriate form(s) of the applicable chain rule.
wr2−ws/r2
=fx xr+fy yr2−fx xs+fy ys/r2
=fx coshs+fy sinhs2−fx r sinhs+fy r coshs/r2
=fx2 cosh2s+fy2 sinh2s +2 sinh2scosh2sfxfy −fx2 sinh2s+fy2 cosh2s +2 sinh2scosh2sfxfy
=cosh2s−sinh2sfx2−cosh2s−sinh2sfy2
=1⋅fx2−1⋅fy2
=fx2−fy2
Maple Solution - Interactive
Define r,s, and u
Context Panel: Assign Name
x=r coshs→assign
y=r sinhs→assign
w=fx,y→assign
Compute wr2−ws/r2 and simplify the result
Calculus palette: Partial-derivative operator
Context Panel: Evaluate and Display Inline
Context Panel: Simplify≻Simplify
∂∂ r w2−∂∂ s w/r2 = D1frcoshs,rsinhscoshs+D2frcoshs,rsinhssinhs2−D1frcoshs,rsinhsrsinhs+D2frcoshs,rsinhsrcoshs2r2= simplify D1frcoshs,rsinhs2−D2frcoshs,rsinhs2
To work from first principles, obtain and simplify the following derivatives.
Separately obtain and simplify the partial derivatives ux,uy, and uz
∂∂ r w = D1frcoshs,rsinhscoshs+D2frcoshs,rsinhssinhs
∂∂ s w = D1frcoshs,rsinhsrsinhs+D2frcoshs,rsinhsrcoshs
Obtain xr,xs and yr,ys
∂∂ r x = coshs
∂∂ r y = sinhs
∂∂ s x = rsinhs
∂∂ s y = rcoshs
Assemble the terms of the chain rule as per the Mathematical Solution above.
Maple Solution - Coded
Initialize
Define xr,s.
x≔r coshs:
Define yr,s.
y≔r sinhs:
Define w=fx,y.
w≔fx,y:
Apply the diff and simplify commands to evaluate the expression wr2−ws/r2
simplifydiffw,r2− diffw,s/r2 = D1frcoshs,rsinhs2−D2frcoshs,rsinhs2
Obtain wr and ws
Apply the diff command.
diffw,r = D1frcoshs,rsinhscoshs+D2frcoshs,rsinhssinhs
diffw,s = D1frcoshs,rsinhsrsinhs+D2frcoshs,rsinhsrcoshs
Obtain the derivatives xr,xs and yr,ys
diffx,r = coshs
diffy,r = sinhs
diffx,s = rsinhs
diffy,s = rcoshs
<< 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