Chapter 9: Vector Calculus
Section 9.2: Vector Objects
Example 9.2.12
Draw the constant Cartesian vector field F=i+2 j, then express F in polar coordinates and draw that field.
Solution
Mathematical Solution
The arrows of the Cartesian vector field F=i+2 j must be exactly the same as those of the polar version of the field. This equivalence is explored graphically in the Maple solutions below.
Using the results of Example 9.2.8, namely that the Cartesian field F=a i+b j becomes
a cosθ+b sinθ er+b cosθ−a sinθ eθ
in polar coordinates, the polar form of the field F is then
cosθ+2 sinθ er+2 cosθ−sinθ eθ
Maple Solution - Interactive
Initialize
Tools≻Load Package: Student Vector Calculus
Loading Student:-VectorCalculus
Tools≻Tasks≻Browse: Calculus - Vector≻ Vector Algebra and Settings≻ Display Format for Vectors
Press the Access Settings button and select "Display as Column Vector"
Display Format for Vectors
Define the Cartesian field F
Enter F as a free vector. Context Panel: Evaluate and Display Inline
Context Panel: Student Vector Calculus≻Conversions≻To Vector Field
Context Panel: Assign to a Name≻F
1,2 = →to Vector Field →assign to a nameF
Launch the Vector Field tutor in Cartesian coordinates
Tools≻Tutors≻Vector Calculus≻Vector Fields
Enter F for the Vector Field.
Enter 0, 0 for the Initial Point
Change the Coordinate System to cartesian[x,y] and press the Display button. (See Figure 9.2.12(a).)
Figure 9.2.12(a) The Vector Field tutor in Cartesian coordinates
Express F in the polar coordinates r and t
Type the name F. Context Panel: Evaluate and Display Inline
Context Panel: Student Vector Calculus≻Conversions≻Change Co-ordinate System (Complete the "Specify coordinates" dialog as per the figure to the right.)
Context Panel: Assign to a Name≻G
F = →change coordinatescos⁡t+2⁢sin⁡t−sin⁡t+2⁢cos⁡t→assign to a nameG
Launch the Vector Field tutor in polar coordinates
Write the name G. Context Panel: Evaluate and Display Inline
Context Panel: Student Vector Calculus≻Conversions≻To List
Context Panel: Assign to a Name≻H
G = cos⁡t+2⁢sin⁡t−sin⁡t+2⁢cos⁡t→to listcos⁡t+2⁢sin⁡t,−sin⁡t+2⁢cos⁡t
Copy and paste the members of the list.
cos⁡t+2⁢sin⁡t,−sin⁡t+2⁢cos⁡t→assign to a nameH
Enter < H > for the Vector Field.
Enter 0, 0.707 for the Initial Point
Change the Coordinate System to polar[r,t] and press the Display button. (See Figure 9.2.12(a).)
Figure 9.2.12(b) The Vector Field tutor
Although the vector field is entered as < H >, as soon as the Display button is pressed, the name H will be replaced with the sequence of expressions shown in Figure 9.2.12(a).
Maple Solution - Coded
Define and draw the Cartesian vector field:
Load the Student VectorCalculus package and execute the BasisFormat command.
withStudent:-VectorCalculus:BasisFormatfalse:
true
Apply the VectorField command with the option "output=plot"
VectorField1,2,output=plot,fieldoptions=arrows=medium,grid=10,10
The tutor can be used to draw the vector field in polar coordinates. If the launched tutor is carefully examined, it will be seen that the field is entered as a free vector whose components are those of the field in polar coordinates. The coordinates are then set to polar, with coordinate-variable names r and t a necessity. If the code at the bottom of the tutor is inspected, it will be seen that the ambient coordinates have to be set to the polar frame and the FlowLine command invoked to draw the field.
Getting the Vector Field tutor to launch on a vector field defined in polar coordinates requires use of the SetCoordinates command to change the ambient coordinates to polar, and the calling of the VectorFieldTutor command with a second argument, a point from which the FlowLine command can integrate a flow line. As yet, no provision has been made for a simple link via the Context Panel.
Define the vector field in polar coordinates
Apply the VectorField command.
F≔VectorField1,2:
Use the MapToBasis command to change F to polar coordinates.
G≔MapToBasisF,polarr,t:
Use the SetCoordinates command to change to, and back from, polar coordinates.
Invoke the VectorFieldTutor command.
SetCoordinatespolarr,t: #VectorFieldTutorG,0,0;SetCoordinatescartesian:
The VectorFieldTutor command preceded by comment character (#) to prevent it from launching at this point, should the commands in these cells be executed. The tutor that launches with the button will be in the state that the commands in these cells would provide if they were executed.
<< Previous Example Section 9.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