Math 276
Calculus III
Fall 2005
Dr. Constant J. Goutziers
Department of Mathematics, Computer Science and Statistics
goutzicj@oneonta.edu
Lesson 6a
Cartesian, Cylindrical and Spherical Coordinates
Initializations
| > | restart; |
Conversion between coordinate systems.
Examples
Example 6a.1
Find the cartesian coordinates of the point
=
Substitute the cylindrical coordinates
into the transformation formulas
| > | P:={r=3, theta=Pi/6, z=5}; |
| > | ans[`6a.1`]:=[x,y,z]=simplify(subs(P, [r*cos(theta), r*sin(theta), z])); evalf(ans[`6a.1`]); |
| > |
Example 6a.2
Find the cylindrical coordinates of the point
=
.
Substitute the cartesian coordinates
into the transformation formulas
| > | P:={x=1, y=2, z=3}; |
| > | ans[`6a.2`]:=[r, theta, z]=simplify(subs(P, [sqrt(x^2+y^2), arctan(y,x), z])); evalf(ans[`6a.2`]); |
| > |
Example 6a.3
Find the cartesian coordinates of the point
=
.
Substitute the spherical coordinates
into the transformation formulas
| > | P:={rho=4, theta=Pi/6, phi=Pi/4}; |
| > | ans[`6a.3`]:=[x,y,z]=combine(simplify(subs(P, [rho*cos(theta)*sin(phi), rho*sin(theta)*sin(phi), rho*cos(phi)])), radical); evalf(ans[`6a.3`]); |
| > |
Example 6a.4
Find the spherical coordinates of the point
=
.
Substitute the cartesian coordinates
into the transformation formulas
=
| > | P:={x=1, y=2, z=3}; |
| > | ans[`6a.4`]:=[rho, theta, phi]=simplify(subs(P, [sqrt(x^2+y^2+z^2), arctan(y,x), arccos(z/sqrt(x^2+y^2+z^2))])); evalf(ans[`6a.4`]); |
| > |
Example 6a.5
Find the cylindrical coordinates of the point
=
Substitute the spherical coordinates
into the transformation formulas
| > | P:={rho=3, theta=Pi/3, phi=Pi/6}; |
| > | ans[`6a.5`]:=[r, theta, z]=simplify(subs(P, [rho*sin(phi), theta, rho*cos(phi)])); evalf(ans[`6a.5`]); |
| > |
Example 6a.6
Find the spherical coordinates of the point
=
.
Substitute the cylindrical coordinates
into the transformation formulas
=
| > | P:={r=2, theta=Pi/4, z=7}; |
| > | ans[`6a.6`]:=[rho, theta, phi]=simplify(subs(P, [sqrt(r^2+z^2), theta, arccos(z/sqrt(r^2+z^2))])); evalf(ans[`6a.6`]); |
| > |