Chapter 4: Partial Differentiation
Section 4.5: Gradient Vector
|
Example 4.5.8
|
|
Show both graphically and analytically that the level curves of are orthogonal to the level curves of .
|
|
|
|
Solution
|
|
|
Mathematical Solution
|
|
•
|
Figure 4.5.8(a) shows the level curves of in black, and the level curves of in red. From the figure, it appears that these sets of level curves intersect at right angles.
|
•
|
Analytically, the orthogonality of these sets of level curves is shown by the computation
|
which shows that the respective gradient vectors are orthogonal. Since these gradient vectors are themselves orthogonal to vectors tangent to the level curves, the sets of level curves are then orthogonal to each other.
|
>
|
use plots in
module()
local u,v,p1,p2,p3;
u:=x^2-y^2-3*x+2;
v:=2*x*y-3*y;
p1:=contourplot(u,x=-3..6,y=-3..3,color=black,colorbar=false);
p2:=contourplot(v,x=-3..6,y=-3..3,color=red,colorbar=false);
p3:=display(p1,p2,scaling=constrained);
print(p3);
end module:
end use:
|
|
Figure 4.5.8(a) Level curves of and
|
|
|
|
|
|
|
|
Maple Solution - Interactive
|
|
Initialize
|
•
|
Tools≻Load Package: Student Multivariate Calculus
|
|
Loading Student:-MultivariateCalculus
|
•
|
Control-drag expressions for each of u and v.
|
•
|
Context Panel: Student Multivariate Calculus≻Differentiate≻Gradient
|
•
|
Context Panel: Assign to a Name≻Gu or Gv, as appropriate
|
|
|
|
Show
|
•
|
Common Symbols palette: Dot product operator
|
•
|
Context Panel: Evaluate and Display Inline
|
|
=
|
Use the Plot Builder to generate Figure 4.5.8(a)
|
•
|
Context Panel: Plot Builder≻2-D contour plot
|
•
|
Color Options≻color 1≻black
|
|
•
|
Context Panel: Plot Builder≻2-D contour plot
|
•
|
Color Options≻color 1≻red
|
•
|
Copy the graph on the left and paste it onto the one on the right.
|
|
|
|
|
|
|
|
Maple Solution - Coded
|
|
Initialize
|
•
|
Install the Student VectorCalculus package.
|
|
|
|
|
Show
|
|
=
|
Obtain Figure 4.5.8(a)
|
•
|
The contourplot and display commands from the plots package will produce Figure 4.5.8(a), as illustrated by the following code. Simply remove the colon from the last line and execute.
|
|
|
|
|
|
|
|
<< Previous Example Section 4.5
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
|