User talk:Paul Wormer/scratchbook: Difference between revisions
imported>Paul Wormer (Removing all content from page) |
imported>Paul Wormer No edit summary |
||
Line 1: | Line 1: | ||
Given are two unnormalized, non-parallel vectors, the rotation axis '''n''' and the vector '''r''' to be rotated. | |||
Decompose '''r''' into two orthogonal components: | |||
:<math> | |||
\mathbf{r} = \mathbf{n} \frac{\mathbf{n}\cdot\mathbf{r}}{n^2} + \underbrace{(\mathbf{r} -\mathbf{n} | |||
\frac{\mathbf{n}\cdot\mathbf{r}}{n^2} )}_{ \equiv\; \mathbf{x}} \quad\hbox{with}\quad n^2 \equiv\; \mathbf{n}\cdot\mathbf{n} | |||
</math> | |||
Clearly, '''n''' and '''x''' are orthogonal. Define further '''y''' as a [[cross product]], a vector orthogonal to the plane containing '''n''', '''r''', and '''x''', | |||
:<math> | |||
\mathbf{y} = \mathbf{n}\times \mathbf{r}. | |||
</math> | |||
As is well-known the cross product can be written as a matrix-vector product | |||
:<math> | |||
\mathbf{y} = \mathbf{n}\times \mathbf{r} | |||
= \begin{pmatrix} n_y r_z - n_z r_y \\ n_z r_x - n_x r_z \\ n_x r_y - n_y r_x \end{pmatrix} | |||
= \underbrace{ | |||
\begin{pmatrix} | |||
0 & -n_z & n_y \\ | |||
n_z& 0 & -n_x \\ | |||
-n_y& n_x & 0 | |||
\end{pmatrix}}_{\mathbf{N}} \begin{pmatrix} r_x \\ r_y \\ r_z \end{pmatrix} | |||
</math> | |||
The matrix '''N''' has as general element | |||
:<math> | |||
N_{\alpha \beta} = - \epsilon_{\alpha \beta \gamma} n_\gamma \, | |||
</math> | |||
where ε<sub>αβγ</sub> is the antisymmetric [[Levi-Civita]] tensor. | |||
For further use we compute normalization constants of '''x''' and '''y''', | |||
:<math> | |||
x^2 = \mathbf{x}\cdot \mathbf{x} = \left(\mathbf{r} -\mathbf{n} \frac{\mathbf{n}\cdot\mathbf{r}}{n^2} \right) \cdot | |||
\left(\mathbf{r} -\mathbf{n} \frac{\mathbf{n}\cdot\mathbf{r}}{n^2}\right ) = r^2 - \frac{(\mathbf{n}\cdot\mathbf{r})^2}{n^2} | |||
</math> | |||
:<math> | |||
y^2 = (\mathbf{n}\times \mathbf{r})\cdot(\mathbf{n}\times \mathbf{r}) = n^2\,r^2 - (\mathbf{n}\cdot\mathbf{r})^2, | |||
</math> | |||
and divide the two | |||
:<math> | |||
\frac{x^2}{y^2} = \frac{r^2 - \frac{(\mathbf{n}\cdot\mathbf{r})^2}{n^2}}{n^2\,r^2 - (\mathbf{n}\cdot\mathbf{r})^2} = \frac{1}{n^2}. | |||
</math> | |||
When we rotate '''r''' over an angle φ around '''n''', the component of '''r''' along '''n''' is unchanged, while the component '''x''' of '''r''' perpendicular to '''n''' becomes '''x'''′ | |||
:<math> | |||
\mathbf{x}' = \cos\phi\; \mathbf{x} + \frac{x}{y} \sin\phi \;\mathbf{y} = \cos\phi \;\mathbf{x} + \frac{1}{n} \sin\phi \;\mathbf{y} | |||
</math> | |||
Hence the rotated vector '''r'''′ is | |||
:<math> | |||
\mathbf{r}' = \mathbf{n} \frac{\mathbf{n}\cdot\mathbf{r}}{n^2} + | |||
\cos\phi(\mathbf{r} -\mathbf{n} \frac{\mathbf{n}\cdot\mathbf{r}}{n^2} ) | |||
+\frac{1}{n} \sin\phi \;\mathbf{N}\; \mathbf{r} | |||
</math> | |||
We may introduce the [[dyadic product]] of the vector '''n''' with itself, which has the form of a 3 × 3 symmetric matrix, and write | |||
:<math> | |||
\mathbf{n} \frac{\mathbf{n}\cdot\mathbf{r}}{n^2} = | |||
\frac{1}{n^2} \; \big(\mathbf{n}\otimes\mathbf{n}\big) \; \mathbf{r} | |||
</math> | |||
Now, | |||
:<math> | |||
\mathbf{r}' = \left[ \cos\phi\; \mathbf{E} + \frac{(1-\cos\phi)}{n^2} \; \big(\mathbf{n}\otimes\mathbf{n}\big) | |||
+ \frac{1}{n} \sin\phi \;\mathbf{N} \right] \mathbf{r} , | |||
</math> | |||
where '''E''' is the identity matrix. The quantity between square brackets is the matrix '''R''' that rotates '''r''' around '''n''' over an angle φ. This equation is very well-known and was first derived by Leonhard Euler [check]. | |||
A general element of '''R''' is | |||
:<math> | |||
R_{\alpha \beta} = \cos\phi\; \delta_{\alpha \beta} + \frac{(1-\cos\phi)}{n^2} n_\alpha n_\beta - \frac{\sin\phi}{n} \epsilon_{\alpha \beta\gamma} n_\gamma = | |||
\cos\phi\; \delta_{\alpha \beta} + (1-\cos\phi)\hat{n}_\alpha \hat{n}_\beta - \sin\phi\; \epsilon_{\alpha \beta\gamma}\; \hat{n}_\gamma, | |||
</math> | |||
where the unit vector is | |||
:<math> | |||
\hat\mathbf{n} \equiv \frac{\mathbf{n}}{n}. | |||
</math> |
Revision as of 21:07, 9 April 2009
Given are two unnormalized, non-parallel vectors, the rotation axis n and the vector r to be rotated. Decompose r into two orthogonal components:
Clearly, n and x are orthogonal. Define further y as a cross product, a vector orthogonal to the plane containing n, r, and x,
As is well-known the cross product can be written as a matrix-vector product
The matrix N has as general element
where εαβγ is the antisymmetric Levi-Civita tensor.
For further use we compute normalization constants of x and y,
and divide the two
When we rotate r over an angle φ around n, the component of r along n is unchanged, while the component x of r perpendicular to n becomes x′
Hence the rotated vector r′ is
We may introduce the dyadic product of the vector n with itself, which has the form of a 3 × 3 symmetric matrix, and write
Now,
where E is the identity matrix. The quantity between square brackets is the matrix R that rotates r around n over an angle φ. This equation is very well-known and was first derived by Leonhard Euler [check]. A general element of R is
where the unit vector is