Chapter 4: Partial Differentiation
Section 4.2: Higher-Order Partial Derivatives
Example 4.2.2
If f=x−yx+y and a,b=−3,2, obtain all second partial derivatives, both at x,y and at a,b.
Solution
Mathematical Solution
Table 4.2.2(a) lists the simplified forms of the second partial derivatives of f, both at x,y and at a,b.
Partial
at x,y
at a,b
fxx
−4⁢yx+y3
8
fxy
2⁢x−yx+y3
10
fyx
fyy
4⁢xx+y3
12
Table 4.2.2(a) Second partials of f at x,y and −3,2
Maple Solution - Interactive
Define f as an expression and use the second-partial operators from the Calculus palette.
Control-drag f=…
Context Panel: Assign Name
f=x−yx+y→assign
Second partial derivatives at x,y
Calculus palette: Second-partials operators
Context Panel: Evaluate and Display Inline
Context Panel: Simplify≻Simplify
∂2∂x2 f = −2x+y2+2⁢x−yx+y3= simplify −4⁢yx+y3
∂2∂ y⁢∂ x f = 2⁢x−yx+y3
∂2∂ x⁢∂ y f = 2⁢x−yx+y3
∂2∂y2 f = 2x+y2+2⁢x−yx+y3= simplify 4⁢xx+y3
Second partial derivatives at a,b
Expression palette: Evaluation template
∂2∂x2 fx=a|f(x)x=−3,y=2 = 8
∂2∂ y⁢∂ x fx=a|f(x)x=−3,y=2 = 10
∂2∂y2 fx=a|f(x)x=−3,y=2 = 12
∂2∂ x⁢∂ y fx=a|f(x)x=−3,y=2 = 10
Alternatively, define the second partial derivatives as functions. Every subscripted name must be an Atomic Identifier.
Calculus palette: Second-partial operators
Context Panel: Assign Function
f__xxx,y=∂2∂x2 f→assign as functionf__xx
f__xyx,y=∂2∂ y⁢∂ x f→assign as functionf__xy
f__yyx,y=∂2∂y2 f→assign as functionf__yy
f__yxx,y=∂2∂ x⁢∂ y f→assign as functionf__yx
Obtain the second partial derivatives at x,y
f__xxx,y = −2x+y2+2⁢x−yx+y3= simplify −4⁢yx+y3
f__xyx,y = 2⁢x−yx+y3
f__yxx,y = 2⁢x−yx+y3
f__yyx,y = 2x+y2+2⁢x−yx+y3= simplify 4⁢xx+y3
Obtain the second partial derivatives at a,b
f__xx−3,2 = 8
f__xy−3,2 = 10
f__yx−3,2 = 10
f__yy−3,2 = 12
Maple Solution - Coded
If f is an expression, the simplified forms for its four second partial derivatives are obtained with the simplify and diff commands. Evaluation at a,b is obtained with the eval command. The names to which the derivatives have been assigned are all Atomic Identifiers.
Assign the expression to the name f.
f≔x−yx+y:
Second partials at x,y
Second partials at a,b
f__xx≔simplifydifff,x,x
evalf__xx,x=−3,y=2
f__xy≔simplifydifff,x,y
evalf__xy,x=−3,y=2
f__yx≔simplifydifff,y,x
evalf__yx,x=−3,y=2
f__yy≔simplifydifff,y,y
evalf__yy,x=−3,y=2
If f is a function, the simplified forms for its four second partial derivatives are obtained with the simplify command applied to the D-operator. Evaluation at a,b is immediate since the D-operator returns derivatives as functions.
Define the function f.
f≔x,y→x−yx+y:
simplifyD1,1fx,y
D1,1f−3,2
simplifyD1,2fx,y
D1,2f−3,2
simplifyD2,1fx,y
D2,1f−3,2
simplifyD2,2fx,y
D2,2f−3,2
<< Previous Example Section 4.2 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