Chapter 7: Triple Integration
Section 7.5: Spherical Coordinates
Example 7.5.1
Express the Cartesian point 2,5,3 in spherical coordinates.
Solution
Mathematical Solution
Substitution into the equations on the right in Table 7.5.1 leads to
ρ=22+52+32=38 ≐ 6.16
φ=arccos3/38 ≐ 1.06
θ=arctan5/2 ≐ 1.19
Maple Solution - Interactive
Expression palette: Evaluation template Press the Enter key.
Context Panel: Approximate≻5 (digits)
x2+y2+z2,cos−1zx2+y2+z2,tan−1yxx=a|f(x)x=2,y=5,z=3
38,arccos⁡338⁢38,arctan⁡52
→at 5 digits
6.1644,1.0625,1.1903
Maple Solution - Coded
Use the eval command to make substitutions into the equations on the right in Table 7.5.1, and then apply the evalf command to obtain floating-point equivalents.
q≔evalx2+y2+z2,arccosz/x2+y2+z2,arctany/x,x=2,y=5,z=3
evalfq
6.164414003,1.062529081,1.190289950
The only tool in Maple for converting coordinates of a point is the MapToBasis command in the Student VectorCalculus package, a package in which points are represented as vectors. The BasisFormat command sets the display mode for vectors in this package.
Initialize
Install the Student VectorCalculus package.
Set the display format for vectors.
withStudent:-VectorCalculus:BasisFormatfalse:
Change to spherical coordinates
P≔MapToBasis2,5,3,spherical
evalfP =
Notice that φ is given by the arctangent function and not by the arccosine function.
<< Chapter Overview Section 7.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
Download Help Document