Chapter 9: Vector Calculus
Section 9.2: Vector Objects
Example 9.2.14
Express in Cartesian coordinates the spherical vector field whose components are the constants a, b, and c.
Solution
Mathematical Solution
From Example 9.2.11, the spherical basis vectors are
eρ=cosθsin(φ)sin⁡θ⁢sin⁡φcos⁡φ
eφ=cosθcos(φ)sinθ⁢cosφ−sinφ
eθ=−sin⁡θcos⁡θ0
From the defining equations of spherical coordinates, the following relations are obtained.
ρ=x2+y2+z2
cosφ=z/ρ=z/x2+y2+z2
sinφ=1−cos2φ=1−z2/ρ2=ρ2−z2/ρ=x2+y2x2+y2+z2
sinθ=yρ sinφ=yρ x2+y2ρ=y/x2+y2
cosθ=xρ sinφ=xρ x2+y2ρ=x/x2+y2
These relationships allow the spherical basis vectors to be given their Cartesian equivalents.
eρ=cosθsin(φ)sin⁡θ⁢sin⁡φcos⁡φ = xx2+y2 x2+y2ρyx2+y2x2+y2ρzρ = 1x2+y2+z2xyz
eφ=cosθcos(φ)sinθ⁢cosφ−sinφ = xx2+y2 zρyx2+y2zρ−x2+y2ρ = 1x2+y2x2+y2+z2x zy z−(x2+y2)
eθ=−sin⁡θcos⁡θ0 = −yx2+y2xx2+y20 = 1x2+y2−yx0
Consequently,
F=a eρ+b eφ+c eθ
=aρ xyz+bρ x2+y2x zy z−(x2+y2)+cx2+y2 −yx0
=a⁢xx2+y2+z2+b⁢x⁢zx2+y2⁢x2+y2+z2−c⁢yx2+y2a⁢yx2+y2+z2+b⁢y⁢zx2+y2⁢x2+y2+z2+c⁢xx2+y2a⁢zx2+y2+z2+b⁢−x2−y2x2+y2⁢x2+y2+z2
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 spherical field F
Write a free vector. Context Panel: Evaluate and Display Inline
Context Panel: Student Vector Calculus≻Conversions≻Apply Co-ordinate System (Complete the "Choose Co-ordinate system" dialog as per the figure to the right.)
Context Panel: Student Vector Calculus≻Conversions≻To Vector Field
Context Panel: Assign to a Name≻F
a,b,c = abc→apply coordinatesabc→to Vector Fieldabc→assign to a nameF
Express F in Cartesian coordinates
Write the name F. Context Panel: Evaluate and Display Inline
Context Panel: Student Vector Calculus≻Conversions≻Change Co-ordinate System (Provide the coordinate-variable names in the ensuing "Specify coordinates" dialog.)
F = abc→change coordinatesa⁢xx2+y2+z2+b⁢x⁢zx2+y2⁢x2+y2+z2−c⁢yx2+y2a⁢yx2+y2+z2+b⁢y⁢zx2+y2⁢x2+y2+z2+c⁢xx2+y2a⁢zx2+y2+z2+b⁢−x2−y2x2+y2⁢x2+y2+z2
Maple Solution - Coded
Load the Student VectorCalculus package and execute the BasisFormat command.
withStudent:-VectorCalculus:BasisFormatfalse:
Define F=a er+b eθ as a polar vector field
Apply the VectorField command.
F≔VectorFielda,b,c,sphericalρ,φ,θ:
Change to Cartesian coordinates
Apply the MapToBasis command.
MapToBasisF,cartesianx,y,z
<< Previous Example Section 9.2 Next Section >>
© 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