|
|
Line 1: |
Line 1: |
| {{Refimprove|date=May 2010}}
| | /* To force the SVG fallback in Gecko browsers, use the following style: */ |
| This is a list of some of the most commonly used coordinate transformations.
| | span.mwe-math-mathml-inline, div.mwe-math-mathml-display { |
| | | display: none !important; |
| ==2-Dimensional==
| | } |
| Let (x, y) be the standard [[Cartesian coordinates]], and r and θ the standard [[polar coordinates]].
| | span.mwe-math-mathml-inline + .mwe-math-fallback-image-inline { |
| | | display: inline !important; |
| ===To Cartesian coordinates from polar coordinates===
| | } |
| :<math>x=r\,\cos\theta \quad</math>
| | div.mwe-math-mathml-display + .mwe-math-fallback-image-display { |
| :<math>y=r\,\sin\theta \quad</math>
| | display: block !important; |
| :<math>
| | } |
| \frac{\partial(x, y)}{\partial(r, \theta)} =
| |
| \begin{pmatrix}
| |
| \cos\theta & -r\,\sin\theta \\
| |
| \sin\theta & r\,\cos\theta
| |
| \end{pmatrix}
| |
| </math>
| |
| | |
| :<math>
| |
| \det{\frac{\partial(x, y)}{\partial(r, \theta)}} =
| |
| r
| |
| </math>
| |
| | |
| ===To polar coordinates from Cartesian coordinates===
| |
| :<math>r=\sqrt{x^2 + y^2}</math>
| |
| :<math>\theta^\prime = \arctan\left|\frac{y}{x}\right|</math>
| |
| Note: solving for <math>\theta^\prime</math> returns the resultant angle in the first quadrant (<math>0<\theta<\frac{\pi}{2}</math>). To find <math>\theta</math>, one must refer to the original Cartesian coordinate, determine the quadrant in which <math>\theta</math> lies (ex (3,-3) [Cartesian] lies in QIV), then use the following to solve for <math>\theta</math>:
| |
| | |
| :For <math>\theta^\prime</math> in QI:
| |
| :<math>\theta = \theta^\prime</math>
| |
| | |
| :For <math>\theta^\prime</math> in QII:
| |
| :<math>\theta= \pi - \theta^\prime</math>
| |
| | |
| :For <math>\theta^\prime</math> in QIII:
| |
| :<math>\theta = \pi + \theta^\prime </math>
| |
| | |
| :For <math>\theta^\prime</math> in QIV:
| |
| :<math>\theta = 2\pi - \theta^\prime </math>
| |
| | |
| The value for <math>\theta</math> must be solved for in this manner because for all values of <math>\theta</math>, <math>\tan\theta</math> is only defined for <math>-\frac{\pi}{2}<\theta<+\frac{\pi}{2}</math>, and is periodic (with period <math>\pi</math>). This means that the inverse function will only give values in the domain of the function, but restricted to a single period. Hence, the range of the inverse function is only half a full circle.
| |
| | |
| Note that one can also use
| |
| :<math>r=\sqrt{x^2 + y^2}</math>
| |
| :<math>\theta = 2 \arctan \frac{y}{x+r}</math>
| |
| | |
| ===To Cartesian coordinates from log-polar coordinates===
| |
| {{Main|Log-polar coordinates}}
| |
| | |
| :<math>\begin{cases}x = e^\rho\cos\theta, \\ y = e^\rho\sin\theta.\end{cases}</math>
| |
| | |
| By using complex numbers <math>(x,y)=x+iy'</math>, the transformation can be written as
| |
| | |
| :<math> x + iy = e^{\rho+i\theta} \, </math>
| |
| | |
| i.e. it is given by the complex exponential function.
| |
| | |
| ===To log-polar coordinates from Cartesian coordinates===
| |
| :<math>\begin{cases} \rho = \log\sqrt{ x^2 + y^2}, \\ \theta = \arctan \frac{y}{x}. \end{cases}</math>
| |
| | |
| ===To Cartesian coordinates from bipolar coordinates===
| |
| {{Main|bipolar coordinates}}
| |
| :<math>
| |
| x = a \ \frac{\sinh \tau}{\cosh \tau - \cos \sigma}
| |
| </math>
| |
| | |
| :<math>
| |
| y = a \ \frac{\sin \sigma}{\cosh \tau - \cos \sigma}
| |
| </math>
| |
| | |
| ===To Cartesian coordinates from two-center bipolar coordinates<ref>Weisstein, Eric W.. "Bipolar Coordinates." ''Treasure Troves''. 26 May 1999. Sociology and Anthropology China. 14 February 2007 [http://bbs.sachina.pku.edu.cn/Stat/Math_World/math/b/b233.htm]</ref>===
| |
| {{Main|two-center bipolar coordinates}}
| |
| | |
| :<math>
| |
| x = \frac{r_1^2-r_2^2}{4c}
| |
| </math>
| |
| | |
| :<math>
| |
| y = \pm \frac{1}{4c}\sqrt{16c^2r_1^2-(r_1^2-r_2^2+4c^2)^2}
| |
| </math>
| |
| | |
| ===To polar coordinates from two-center bipolar coordinates===
| |
| :<math>
| |
| r = \sqrt{\frac{r_1^2+r_2^2-2c^2}{2}}
| |
| </math>
| |
| | |
| :<math> | |
| \theta = \arctan \left[ \sqrt{\frac{8c^2(r_1^2+r_2^2-2c^2)}{r_1^2-r_2^2}-1}\right]
| |
| </math>
| |
| | |
| Where 2''c'' is the distance between the poles.
| |
| | |
| ===To Cartesian coordinates from Cesàro equation===
| |
| {{Main|Cesàro equation}}
| |
| :<math>
| |
| x = \int \cos \left[\int \kappa(s) \,ds\right] ds
| |
| </math>
| |
| | |
| :<math>
| |
| y = \int \sin \left[\int \kappa(s) \,ds\right] ds
| |
| </math>
| |
| | |
| ===Arc length and curvature from Cartesian coordinates===
| |
| <math>\kappa = \frac{x'y''-y'x''}{(x'^2+y'^2)^{3/2}}</math>
| |
| | |
| <math>s = \int_a^t \sqrt { x'^2 + y'^2 }\, dt</math>
| |
| | |
| ===Arc length and curvature from polar coordinates===
| |
| <math>\kappa=\frac{r^2+2r'^2-rr''}{(r^2+r'^2)^{3/2}}</math>
| |
| | |
| <math>s = \int_a^\phi \sqrt { 1 + y'^2 }\, d\phi</math>
| |
| | |
| ==3-Dimensional==
| |
| Let (x, y, z) be the standard Cartesian coordinates, and (ρ, θ, φ) the [[spherical coordinates]], with θ the angle measured away from the +Z axis. As φ has a range of 360° the same considerations as in polar (2 dimensional) coordinates apply whenever an arctangent of it is taken. θ has a range of 180°, running from 0° to 180°, and does not pose any problem when calculated from an arccosine, but beware for an arctangent. If, in the alternative definition, θ is chosen to run from −90° to +90°, in opposite direction of the earlier definition, it can be found uniquely from an arcsine, but beware of an arccotangent. In this case in all formulas below all arguments in θ should have sine and cosine exchanged, and as derivative also a plus and minus exchanged.
| |
| | |
| All divisions by zero result in special cases of being directions along one of the main axes and are in practice most easily solved by observation.
| |
| | |
| ===To Cartesian coordinates===
| |
| ====From spherical coordinates====
| |
| {{Main|spherical coordinates}}
| |
| :<math>{x}=\rho \, \cos\phi \, \sin\theta \quad </math>
| |
| :<math>{y}=\rho \, \sin\theta \, \sin\phi \quad </math>
| |
| :<math>{z}=\rho \, \cos\theta\quad </math>
| |
| | |
| :<math>
| |
| \frac{\partial(x, y, z)}{\partial(\rho, \phi, \theta)} =
| |
| \begin{pmatrix}
| |
| \sin\theta\cos\phi & \rho\cos\theta\cos\phi & -\rho\sin\theta\sin\phi
| |
| \\
| |
| \sin\theta\sin\phi & \rho\cos\theta\sin\phi & \rho\sin\theta\cos\phi
| |
| \\
| |
| \cos\theta & -\rho\sin\theta & 0
| |
| \end{pmatrix}
| |
| </math>
| |
| So for the volume element:
| |
| :<math>
| |
| dx\;dy\;dz=\det{\frac{\partial(x, y, z)}{\partial(\rho, \phi, \theta)}} d\rho\;d\theta\;d\phi =
| |
| \rho^2 \sin\theta \; d\rho \; d\theta \; d\phi \;
| |
| </math>
| |
| | |
| ====From cylindrical coordinates====
| |
| {{Main|cylindrical coordinates}}
| |
| :<math>{x}={r} \,\cos\theta</math>
| |
| :<math>{y}={r} \, \sin\theta</math>
| |
| :<math>{z}={h} \,</math>
| |
| | |
| :<math>
| |
| \frac{\partial(x, y, z)}{\partial(r, \theta, h)} =
| |
| \begin{pmatrix}
| |
| \cos\theta & -r\sin\theta & 0 \\
| |
| \sin\theta & r\cos\theta & 0 \\
| |
| 0 & 0 & 1
| |
| \end{pmatrix}
| |
| </math>
| |
| So for the volume element:
| |
| :<math>
| |
| dx\;dy\;dz=\det{\frac{\partial(x, y, z)}{\partial(r, \theta, h)}} dr\;d\theta\;dh =
| |
| {r}\; dr \; d\theta \; dh \;
| |
| | |
| </math>
| |
| | |
| ===To Spherical coordinates===
| |
| ====From Cartesian coordinates====
| |
| :<math>{\rho}=\sqrt{x^2 + y^2 + z^2}</math>
| |
| | |
| :<math>{\phi}=\arctan \left( {\frac{y}{x}} \right)= \arccos \left( \frac{x}{\sqrt{x^2+y^2}}\right) = \arcsin \left( \frac{y}{\sqrt{x^2+y^2}}\right)</math>
| |
| | |
| :<math>{\theta}=\arctan \left( \frac{\sqrt{x^2 + y^2}}{z} \right)=\arccos \left( {\frac{z}{\sqrt{x^2 + y^2 + z^2}}} \right)</math>
| |
| | |
| :<math>
| |
| \frac{\partial(\rho, \theta, \phi)}{\partial(x, y, z)} =
| |
| \begin{pmatrix}
| |
| \frac{x}{\rho} & \frac{y}{\rho} & \frac{z}{\rho} \\
| |
| \frac{xz}{\rho^2\sqrt{x^2+y^2}} & \frac{yz}{\rho^2\sqrt{x^2+y^2}} & -\frac{\sqrt{x^2+y^2}}{\rho^2}\\
| |
| \frac{-y}{x^2+y^2} & \frac{x}{x^2+y^2} & 0\\
| |
| \end{pmatrix}
| |
| </math>
| |
| | |
| So for the volume element:
| |
| | |
| :<math>d\rho\ d\theta\ d\phi=\det\frac{\partial(\rho,\theta,\phi)}{\partial(x,y,z)}dx\ dy\ dz=\frac{1}{\sqrt{x^2+y^2}\sqrt{x^2+y^2+z^2}}dx\ dy\ dz</math>
| |
| | |
| ====From cylindrical coordinates====
| |
| :<math>{\rho}=\sqrt{r^2+h^2}</math>
| |
| :<math>{\phi}=\phi \quad</math>
| |
| :<math>{\theta}=\arctan\frac{r}{h}</math>
| |
| | |
| :<math>
| |
| \frac{\partial(\rho, \theta, \phi)}{\partial(r, \phi, h)} =
| |
| \begin{pmatrix}
| |
| \frac{r}{\sqrt{r^2+h^2}} & 0 & \frac{h}{\sqrt{r^2+h^2}} \\
| |
| \frac{-r}{r^2+h^2} & 0 & \frac{h}{r^2+h^2} \\
| |
| 0 & 1 & 0
| |
| \end{pmatrix}
| |
| </math>
| |
| | |
| :<math> \det \frac{\partial(\rho, \theta, \phi)}{\partial(r, \phi, h)} = \frac{1}{\sqrt{r^2+h^2}}</math>
| |
| | |
| ===To Cylindrical Coordinates===
| |
| ====From Cartesian Coordinates====
| |
| :<math>r=\sqrt{x^2 + y^2}</math>
| |
| :<math>\theta =
| |
| \begin{cases}
| |
| 0 & \mbox{if } x = 0 \mbox{ and } y = 0\\
| |
| \arcsin(\frac{y}{r}) & \mbox{if } x \geq 0 \\
| |
| -\arcsin(\frac{y}{r}) + \pi & \mbox{if } x < 0\\
| |
| \end{cases}
| |
| </math>
| |
| :<math>h=z \quad</math>
| |
| | |
| Note that many computer systems may offer a more concise function for computing <math>\theta</math>, such as <tt>[[atan2]](y,x)</tt> in the C language.
| |
| | |
| :<math>
| |
| \frac{\partial(r, \theta, h)}{\partial(x, y, z)} =
| |
| \begin{pmatrix}
| |
| \frac{x}{\sqrt{x^2+y^2}}&\frac{y}{\sqrt{x^2+y^2}}&0\\
| |
| \frac{-y}{\sqrt{x^2+y^2}}&\frac{x}{\sqrt{x^2+y^2}}&0\\
| |
| 0&0&1
| |
| \end{pmatrix}
| |
| </math>
| |
| | |
| ====From Spherical Coordinates====
| |
| <!--
| |
| Note: this section needs updating for consistency with nomenclature. A diagram should be included for this article showing what each variable represents. Usually \theta represents the polar angle for spherical coordinates and \phi the azimuthal angle for cylindrical coordinates. Here the two are mixed and could cause confusion. Someone please update. [respeonse] Note that the conventions in physics and pure mathematics differ. This page should probably distinguish this issue itself, as is stated clearly on the wikipedia page for spherical coordinate system.
| |
| -->
| |
| :<math> r = \rho \sin \phi \,</math>
| |
| :<math> \theta = \theta \,</math>
| |
| :<math> h = \rho \cos \phi \,</math>
| |
| | |
| :<math>
| |
| \frac{\partial(r, \theta, h)}{\partial(\rho, \theta, \phi)} =
| |
| \begin{pmatrix}
| |
| \sin\phi & 0 & \rho\cos\phi \\
| |
| 0 & 1 & 0 \\
| |
| \cos\phi & 0 & -\rho\sin\phi
| |
| \end{pmatrix}
| |
| </math>
| |
| | |
| :<math> \det\frac{\partial(r, \theta, h)}{\partial(\rho, \theta, \phi)} = - \rho </math>
| |
| | |
| ===Arc length, curvature and torsion from cartesian coordinates===
| |
| :<math>s = \int_0^t \sqrt { x'^2 + y'^2 + z'^2 }\, dt</math>
| |
| | |
| :<math>\kappa=\frac{\sqrt{(z''y'-y''z')^2+(x''z'-z''x')^2+(y''x'-x''y')^2}}{(x'^2+y'^2+z'^2)^{3/2}}</math>
| |
| | |
| :<math>\tau=\frac{z'''(x'y''-y'x'')+z''(x'''y'-x'y''')+z'(x''y'''-x'''y'')}{(x'^2+y'^2+z'^2)(x''^2+y''^2+z''^2)}</math> | |
| | |
| ==References==
| |
| <references/>
| |
| {{Use dmy dates|date=September 2010}}
| |
| | |
| {{DEFAULTSORT:List Of Canonical Coordinate Transformations}}
| |
| [[Category:Transforms| ]]
| |
| [[Category:Mathematics-related lists|Coordinate transformations]]
| |
| [[Category:Coordinate systems]]
| |
| [[Category:Hamiltonian mechanics]]
| |