Changes

1,644 bytes added ,  04:20, February 9, 2010
→‎More About Coordinate Systems: Cross product in curvilinear coordinates.
Line 211: Line 211:  
::<math>J(x, y / r, \theta) = \begin{bmatrix} \cos \theta & - r \sin \theta \\ \sin \theta & r \cos \theta \end{bmatrix}</math>
 
::<math>J(x, y / r, \theta) = \begin{bmatrix} \cos \theta & - r \sin \theta \\ \sin \theta & r \cos \theta \end{bmatrix}</math>
 
with determinant r, and:
 
with determinant r, and:
−
::<math>J(r, \theta / x, y) = \begin{bmatrix} \frac{x}{\sqrt{x^2 + y^2}} & \frac{y}{\sqrt{x^2 + y^2}} \\ \frac{- y}{x^2 + y^2} & \frac{x}{x^2 + y^2} \end{bmatrix} = \begin{bmatrix} \cos \theta & \sin \theta \\ \frac{- \sin \theta}{r} & \frac{\cos \theta}{r} \end{bmatrix}</math>
+
::<math>J(r, \theta / x, y) = \begin{bmatrix} \displaystyle\frac{x}{\sqrt{x^2 + y^2}} & \displaystyle\frac{y}{\sqrt{x^2 + y^2}} \\ \\ \displaystyle\frac{- y}{x^2 + y^2} & \displaystyle\frac{x}{x^2 + y^2} \end{bmatrix} = \begin{bmatrix} \cos \theta & \sin \theta \\ \\ \displaystyle\frac{- \sin \theta}{r} & \displaystyle\frac{\cos \theta}{r} \end{bmatrix}</math>
 
with determinant 1/r.
 
with determinant 1/r.
   Line 254: Line 254:     
Working this out:
 
Working this out:
−
::<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>
+
::<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 287: Line 287:  
*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 first matrix.
 
*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 first matrix.
 
We will call [J] the "Jacobian of the coordinate system".
 
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 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.
   Line 307: Line 308:  
Then:
 
Then:
 
::<math>\vec{A} \cdot \vec{B} = \sum_{jk} [g]_{jk} A_j B_k</math>
 
::<math>\vec{A} \cdot \vec{B} = \sum_{jk} [g]_{jk} A_j B_k</math>
−
This is the rule for the dot product in general coordinates.  The matrix [g] is called the ''metric tensor'' or just the ''metric''.
+
This is the rule for the dot product in general coordinates.  The matrix [g] is called the ''metric tensor'' or just the ''metric''. We will have occasion to use its determinant, which we will call just g.  Actually, its square root is more commonly used.
 +
 
 +
To review what we have for two popular systems, in 2-dimensional polar coordinates:
   −
For polar coordinates in 2 dimensions:
   
::<math>[J] = \begin{bmatrix} \cos \theta & - r \sin \theta \\ \sin \theta & r \cos \theta \end{bmatrix}</math>
 
::<math>[J] = \begin{bmatrix} \cos \theta & - r \sin \theta \\ \sin \theta & r \cos \theta \end{bmatrix}</math>
 +
 +
::<math>[J]^{-1} = \begin{bmatrix} \cos \theta & \sin \theta \\ \\ \displaystyle\frac{- \sin \theta}{r} & \displaystyle\frac{\cos \theta}{r} \end{bmatrix}</math>
 +
 
::<math>[g] = \begin{bmatrix} 1 & 0 \\ 0 & r^2 \end{bmatrix}</math>
 
::<math>[g] = \begin{bmatrix} 1 & 0 \\ 0 & r^2 \end{bmatrix}</math>
 +
 +
::<math>\sqrt{g} = r</math>
 +
 +
For spherical coordinates in 3 dimensions (we will need these soon):
 +
 +
::<math>[J] = \begin{bmatrix} \sin \theta \cos \phi & r \cos \theta \cos \phi & - r \sin \theta \sin \phi \\ \sin \theta \sin \phi & r \cos \theta \sin \phi & r \sin \theta \cos \phi \\ \cos \theta & - r \sin \theta & 0 \end{bmatrix}</math>
 +
 +
::<math>[J]^{-1} = \begin{bmatrix} \sin \theta \cos \phi & \sin \theta \sin \phi & cos \theta \\ \\ \displaystyle\frac{\sin \theta \cos \phi}{r} & \displaystyle\frac{\cos \theta \sin \phi}{r} & - \displaystyle\frac{\sin \theta}{r} \\ \\ - \displaystyle\frac{\sin \phi}{r \sin \theta} & \displaystyle\frac{\cos \phi}{r \sin \theta} & 0 \end{bmatrix}</math>
 +
 +
::<math>[g] = \begin{bmatrix} 1 & 0 & 0 \\ 0 & r^2 & 0 \\ 0 & 0 & r^2 \sin^2 \theta \end{bmatrix}</math>
 +
 +
::<math>\sqrt{g} = r^2 \sin \theta</math>
 +
 
So, in polar coordinates:
 
So, in polar coordinates:
 
::<math>\vec{A} \cdot \vec{B} = A_1 B_1 + r^2 A_2 B_2</math>
 
::<math>\vec{A} \cdot \vec{B} = A_1 B_1 + r^2 A_2 B_2</math>
 
or, going back to giving the coordinates names:
 
or, going back to giving the coordinates names:
 
::<math>\vec{A} \cdot \vec{B} = A_r B_r + r^2 A_\theta B_\theta</math>
 
::<math>\vec{A} \cdot \vec{B} = A_r B_r + r^2 A_\theta B_\theta</math>
−
  −
For spherical coordinates in 3 dimensions:
  −
::<math>[J] = \begin{bmatrix} \sin \theta \cos \phi & r \cos \theta \cos \phi & - r \sin \theta \sin \phi \\ \sin \theta \sin \phi & r \cos \theta \sin \phi & r \sin \theta \cos \phi \\ \cos \theta & - r \sin \theta & 0 \end{bmatrix}</math>
  −
::<math>[g] = \begin{bmatrix} 1 & 0 & 0 \\ 0 & r^2 & 0 \\ 0 & 0 & r^2 \sin^2 \theta \end{bmatrix}</math>
      
The metric is always a symmetric matrix.  (Exercise:  Prove this.  Use the definition in terms of <math>[J]</math> and <math>[J]^{-1}</math>.)  For all coordinate systems that have the coordinate lines crossing at right angles everywhere (which includes all the common systems), the metric is a ''diagonal matrix''&mdash;the only nonzero items are on the main diagonal.
 
The metric is always a symmetric matrix.  (Exercise:  Prove this.  Use the definition in terms of <math>[J]</math> and <math>[J]^{-1}</math>.)  For all coordinate systems that have the coordinate lines crossing at right angles everywhere (which includes all the common systems), the metric is a ''diagonal matrix''&mdash;the only nonzero items are on the main diagonal.
    
===The Cross Product in Arbitrary Coordinates===
 
===The Cross Product in Arbitrary Coordinates===
 +
 +
The rule for the cross product in the general u/v/w coordinate system makes use of all the things we have been developing.  First, make a vector from the determinant with basis vectors (in the u/v/w system!) across the top, the way we did previously:
 +
::<math>\vec{P}=\begin{vmatrix}\hat{u}&\hat{v}&\hat{w}\\ A_u & A_v & A_v \\ B_u & B_v & B_w \end{vmatrix}</math>
 +
If the coordinate system is Cartesian, we are done.  Otherwise, apply the inverse of [g] to it, and then multiply by <math>\sqrt{g}</math>.  (Remember that just "g", without brackets, is the determinant of the matrix.)
 +
::<math>\vec{A} \times \vec{B} = \sqrt{g}\ [g]^{-1}\ \vec{P} = \sqrt{g}\ [g]^{-1}\ \begin{vmatrix}\hat{u}&\hat{v}&\hat{w}\\ A_u & A_v & A_v \\ B_u & B_v & B_w \end{vmatrix}</math>
    
=Introduction to Integrals in Multivariable Calculus=
 
=Introduction to Integrals in Multivariable Calculus=
SkipCaptcha, Automoderated users, edit
3,266

edits