Chapter 4: Partial Differentiation
Section 4.2: Higher-Order Partial Derivatives
Example 4.2.3
If f=sinx y and a,b=π/6,π/3, obtain all second partial derivatives, both at x,y and at a,b.
Solution
Mathematical Solution
Table 4.2.3(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
−y2⁢sin⁡x⁢y
−19⁢π2⁢sin⁡118⁢π2
fxy
cos⁡x⁢y−y⁢x⁢sin⁡x⁢y
cos⁡118⁢π2−118⁢π2⁢sin⁡118⁢π2
fyx
fyy
−x2⁢sin⁡x⁢y
−136⁢π2⁢sin⁡118⁢π2
Table 4.2.3(a) Second partials of f at x,y and π/6,π/3
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=sinx y→assign
Second partial derivatives at x,y
Calculus palette: Second-partials operators
Context Panel: Evaluate and Display Inline
∂2∂x2 f = −y2⁢sin⁡x⁢y
∂2∂ y⁢∂ x f = cos⁡x⁢y−x⁢y⁢sin⁡x⁢y
∂2∂ x⁢∂ y f = cos⁡x⁢y−x⁢y⁢sin⁡x⁢y
∂2∂y2 f = −x2⁢sin⁡x⁢y
Second partial derivatives at a,b
Expression palette: Evaluation template
∂2∂x2 fx=a|f(x)x=π/6,y=π/3 = −19⁢π2⁢sin⁡118⁢π2
∂2∂ y⁢∂ x fx=a|f(x)x=π/6,y=π/3 = cos⁡118⁢π2−118⁢π2⁢sin⁡118⁢π2
∂2∂y2 fx=a|f(x)x=π/6,y=π/3 = −136⁢π2⁢sin⁡118⁢π2
∂2∂ x⁢∂ y fx=a|f(x)x=π/6,y=π/3 = cos⁡118⁢π2−118⁢π2⁢sin⁡118⁢π2
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
Obtain the second partial derivatives at a,b
f__xxx,y = −y2⁢sin⁡x⁢y
f__xxπ6,π3 = −19⁢π2⁢sin⁡118⁢π2
f__xyx,y = cos⁡x⁢y−y⁢x⁢sin⁡x⁢y
f__xyπ6,π3 = cos⁡118⁢π2−118⁢π2⁢sin⁡118⁢π2
f__yxx,y = cos⁡x⁢y−y⁢x⁢sin⁡x⁢y
f__yxπ6,π3 = cos⁡118⁢π2−118⁢π2⁢sin⁡118⁢π2
f__yyx,y = −x2⁢sin⁡x⁢y
f__yyπ6,π3 = −136⁢π2⁢sin⁡118⁢π2
Maple Solution - Coded
If f is an expression, the simplified forms for its four second partial derivatives are obtained with the diff command. 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≔sinx y:
Second partials at x,y
Second partials at a,b
f__xx≔difff,x,x
evalf__xx,x=π/6,y=π/3
−19⁢π2⁢sin⁡118⁢π2
f__xy≔difff,x,y
evalf__xy,x=π/6,y=π/3
cos⁡118⁢π2−118⁢π2⁢sin⁡118⁢π2
f__yx≔difff,y,x
evalf__yx,x=π/6,y=π/3
f__yy≔difff,y,y
evalf__yy,x=π/6,y=π/3
−136⁢π2⁢sin⁡118⁢π2
If f is a function, its four second partial derivatives are obtained with the D-operator. Evaluation at a,b is immediate since the D-operator returns derivatives as functions.
Define the function f.
f≔x,y→sinx y:
D1,1fx,y
D1,1fπ/6,π/3
D1,2fx,y
D1,2fπ/6,π/3
D2,1fx,y
D2,1fπ/6,π/3
D2,2fx,y
D2,2fπ/6,π/3
<< 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