Changes

Jump to navigation Jump to search
2,719 bytes added ,  03:23, February 8, 2010
→‎More About Coordinate Systems: More. Lots more to do.
Line 230: Line 230:  
It follows from this that, if the second change is just the inverse of the first, bringing us back to the original coordinate system, the two matrices are inverses.
 
It follows from this that, if the second change is just the inverse of the first, bringing us back to the original coordinate system, the two matrices are inverses.
   −
The coordinates should always be chosen such that the Jacobian determinant is positive.  If it isn't, exchange the order of two of the coordinates.  This ensures that the coordinate system is "right handed".  (Or more precisely, that it has the same handedness as the Cartesian system.)  As an exmple, the coordinate order (r/<math>\theta</math>) is correct for polar coordinates; (<math>\theta</math>/r) is not.  The order (r/<math>\theta</math>/<math>\phi</math>) is correct for spherical coordinates; (r/<math>\phi</math>/<math>\theta</math>) is not.
+
The coordinates should always be chosen such that the Jacobian determinant is positive.  If it isn't, exchange the order of two of the coordinates.  This ensures that the coordinate system is "right handed".  (Or more precisely, that it has the same handedness as the Cartesian system.)  As an example, the coordinate order (r/<math>\theta</math>) is correct for polar coordinates; (<math>\theta</math>/r) is not.  The order (r/<math>\theta</math>/<math>\phi</math>) is correct for spherical coordinates; (r/<math>\phi</math>/<math>\theta</math>) is not.
    
The Jacobian determinant must not be zero.  (Equivalently, the Jacobian matrix must not be singular.)  The astute reader will notice that this means that polar coordinates don't work at the origin, and spherical coordinates don't work at the north and south poles.
 
The Jacobian determinant must not be zero.  (Equivalently, the Jacobian matrix must not be singular.)  The astute reader will notice that this means that polar coordinates don't work at the origin, and spherical coordinates don't work at the north and south poles.
Line 243: Line 243:  
::<math>\vec{A} = \begin{bmatrix} A_x \\ A_y \\ A_z \end{bmatrix}</math>
 
::<math>\vec{A} = \begin{bmatrix} A_x \\ A_y \\ A_z \end{bmatrix}</math>
 
then the transformation rule is:
 
then the transformation rule is:
−
::<math>\begin{bmatrix} A_u \\ A_v \\ A_w \end{bmatrix} = \begin{bmatrix} \frac{\partial u}{\partial x} & \frac{\partial u}{\partial y} & \frac{\partial u}{\partial z} \\ \frac{\partial v}{\partial x} & \frac{\partial v}{\partial y} & \frac{\partial v}{\partial z} \\ \frac{\partial w}{\partial x} & \frac{\partial w}{\partial y} & \frac{\partial w}{\partial z}\end{bmatrix} \begin{bmatrix} A_x \\ A_y \\ A_z \end{bmatrix}</math>
+
::<math>\begin{bmatrix} A_u \\ A_v \\ A_w \end{bmatrix} = \begin{bmatrix} \displaystyle\frac{\partial u}{\partial x} & \displaystyle\frac{\partial u}{\partial y} & \displaystyle\frac{\partial u}{\partial z} \\ \\ \displaystyle\frac{\partial v}{\partial x} & \displaystyle\frac{\partial v}{\partial y} & \displaystyle\frac{\partial v}{\partial z} \\ \\ \displaystyle\frac{\partial w}{\partial x} & \displaystyle\frac{\partial w}{\partial y} & \displaystyle\frac{\partial w}{\partial z}\end{bmatrix} \begin{bmatrix} A_x \\ A_y \\ A_z \end{bmatrix}</math>
    
In other words, the transformation of vector components is just a matrix multiplication by the Jacobian matrix
 
In other words, the transformation of vector components is just a matrix multiplication by the Jacobian matrix
Line 251: Line 251:  
::<math>\begin{bmatrix} A_r \\ A_\theta \end{bmatrix} = \begin{bmatrix}J(r, \theta / x, y)\end{bmatrix} \begin{bmatrix} A_x \\ A_y \end{bmatrix}</math>
 
::<math>\begin{bmatrix} A_r \\ A_\theta \end{bmatrix} = \begin{bmatrix}J(r, \theta / x, y)\end{bmatrix} \begin{bmatrix} A_x \\ A_y \end{bmatrix}</math>
 
or
 
or
−
::<math>\begin{bmatrix} A_r \\ A_\theta \end{bmatrix} = \begin{bmatrix} \frac{\partial r}{\partial x} & \frac{\partial r}{\partial y} \\ \frac{\partial \theta}{\partial x} & \frac{\partial \theta}{\partial y}\end{bmatrix} \begin{bmatrix} A_x \\ A_y \end{bmatrix}</math>
+
::<math>\begin{bmatrix} A_r \\ A_\theta \end{bmatrix} = \begin{bmatrix} \displaystyle\frac{\partial r}{\partial x} & \displaystyle\frac{\partial r}{\partial y} \\ \\ \displaystyle\frac{\partial \theta}{\partial x} & \displaystyle\frac{\partial \theta}{\partial y}\end{bmatrix} \begin{bmatrix} A_x \\ A_y \end{bmatrix}</math>
    
Working this out:
 
Working this out:
−
::<math>\begin{bmatrix} A_r \\ A_\theta \end{bmatrix} = \begin{bmatrix} \cos \theta & \sin \theta \\ \frac{- \sin \theta}{r} & \frac{\cos \theta}{r} \end{bmatrix} \begin{bmatrix} A_x \\ A_y \end{bmatrix}</math>
+
::<math>\begin{bmatrix} A_r \\ A_\theta \end{bmatrix} = \begin{bmatrix} \cos \theta & \sin \theta \\ \displaystyle\frac{- \sin \theta}{r} & \displaystyle\frac{\cos \theta}{r} \end{bmatrix} \begin{bmatrix} A_x \\ A_y \end{bmatrix}</math>
 
And, going the other way:
 
And, going the other way:
 
::<math>\begin{bmatrix} A_x \\ A_y \end{bmatrix} = \begin{bmatrix} \cos \theta & - r \sin \theta \\ \sin \theta & r \cos \theta \end{bmatrix} \begin{bmatrix} A_r \\ A_\theta \end{bmatrix}</math>
 
::<math>\begin{bmatrix} A_x \\ A_y \end{bmatrix} = \begin{bmatrix} \cos \theta & - r \sin \theta \\ \sin \theta & r \cos \theta \end{bmatrix} \begin{bmatrix} A_r \\ A_\theta \end{bmatrix}</math>
Line 261: Line 261:     
In polar coordinates, a "radial basis vector" at any point has components:
 
In polar coordinates, a "radial basis vector" at any point has components:
−
::<math>(A_r=1, A_\theta=0)</math>
+
::<math>(A_r=1, A_\theta=0)\,</math>
 
Its Cartesian components (from the formulas above) are:
 
Its Cartesian components (from the formulas above) are:
−
::<math>(A_x=\cos \theta, A_y=\sin \theta)</math>
+
::<math>(A_x=\cos \theta, A_y=\sin \theta)\,</math>
−
The actual (Cartesian) direction in which the vector points depends on its location.  It always points radially outward.  Its length is <math>\sqrt{A_x^2 + A_y^2} = \sqrt{\cos^2 \theta + \sin^2 \theta} = 1</math>.  So the radial basis vector is a unit vector.
+
The actual (Cartesian) direction in which the vector points depends on its location.  It always points radially outward.  Its length is <math>\sqrt{A_x^2 + A_y^2} = \sqrt{\cos^2 \theta + \sin^2 \theta} = 1\,</math>.  So the radial basis vector is a unit vector.
    
The "angular basis vector" has components:
 
The "angular basis vector" has components:
−
::<math>(A_r=0, A_\theta=1)</math>
+
::<math>(A_r=0, A_\theta=1)\,</math>
 
Its Cartesian components are:
 
Its Cartesian components are:
−
::<math>(A_x=- r \sin \theta, A_y=r \cos \theta)</math>
+
::<math>(A_x=- r \sin \theta, A_y=r \cos \theta)\,</math>
−
It always points "laterally", at right angles to the radial direction.  More surprisingly, its length is <math>\sqrt{A_x^2 + A_y^2} = r</math>.  The angular basis vector is not a unit vector!  It is bigger when farther away from the origin, even though the sum of the squares of its components is 1.<ref>Some textbooks use a definition of vector components such that basis vectors always have length 1.  Such a treatment imposes the requirement that the coordinate lines be perpendicular everywhere.  The formulas for vector operations are more complicated and less elegant when this is done.</ref>
+
It always points "laterally", at right angles to the radial direction.  More surprisingly, its length is <math>\sqrt{A_x^2 + A_y^2} = r\,</math>.  The angular basis vector is ''not'' a unit vector!  It is bigger when farther away from the origin, even though the sum of the squares of its components is 1.<ref>Some textbooks use a definition of vector components such that basis vectors always have length 1.  Such a treatment imposes the requirement that the coordinate lines be perpendicular everywhere.  The formulas for vector operations are more complicated and less elegant when this is done.</ref>
    
We need a better formula for the dot product than the rule that works for Cartesian coordinates:
 
We need a better formula for the dot product than the rule that works for Cartesian coordinates:
−
::<math>\vec{A} \cdot \vec{B} = A_x B_x + A_y B_y + A_z B_z</math>
+
::<math>\vec{A} \cdot \vec{B} = A_x B_x + A_y B_y + A_z B_z\,</math>
    
===The Dot Product in Arbitrary Coordinates===
 
===The Dot Product in Arbitrary Coordinates===
 +
 +
Given two vectors <math>\vec{A}</math> and <math>\vec{B}</math>, described in a u/v/w coordinate system, we can find their dot product by converting to Cartesian coordinates and using the simple rule that we know, which is the sum of the pairwise products of the vector components.  This means that, at least momentarily, we will have to keep track of the vectors' components in both the Cartesian system, which we have been calling <math>A_x</math>, <math>A_y</math>, and <math>A_z</math>, and in the new coodinate system, which we have been calling <math>A_u</math>, <math>A_v</math>, and <math>A_w</math>.  To do the required matrix manipulations, we have to give the components numbers instead of names.  Things like <math>A_{u_1}</math>, <math>A_{u_2}</math>, and <math>A_{u_3}</math> are just too unwieldy.<ref>This is a well known notational problem in multivariable consequence.  It is one of the reasons why tensor algebra textbooks are so hard to read.</ref>  So we will make this simplification:
 +
*The components of a vector in the new coordinate system (formerly <math>A_u</math>, <math>A_v</math>, and <math>A_w</math>) will just be called <math>A_1</math>, <math>A_2</math>, and <math>A_3</math>.
 +
*The components of a vector in the "reference" Cartesian system will be written with a tilde: <math>\tilde{A_1}</math>, <math>\tilde{A_2}</math>, and <math>\tilde{A_3}</math>.
 +
 +
Once we reformulate the rules for vectors in terms of the coordinate system of interest, we will only use <math>A_1</math>, <math>A_2</math>, and <math>A_3</math> (or <math>A_u</math>, <math>A_v</math>, and <math>A_w</math>), and we will never have to look at another tilde again.
 +
 +
We make another simplification to avoid having our notation get completely out of control.  In keeping with our goal of expressing everything just in terms of the new coordinate system:
 +
*The matrix that we have been calling [J(x, y, z / u, v, w)] we will call just [J].
 +
*The matrix that goes the other way, formerly called [J(u, v, w / x, y, z)] we will call <math>[J]^{-1}</math>.  It's just the inverse of the other matrix.
 +
We will call [J] the "Jacobian of the coordinate system".
 +
::The astute reader will notice that this is not a good definition.  [J] depends on the choice of the "reference" Cartesian system, so we're not justified in calling it just "the Jacobian".  But it turns out that it won't make any difference.  We will always get the same answers, no matter what reference system we used.  See the exercises.
    
===The Cross Product in Arbitrary Coordinates===
 
===The Cross Product in Arbitrary Coordinates===
SkipCaptcha, Automoderated users, edit
3,266

edits

Navigation menu