In the previous article on basic trigonometry for astrologers, we derived formulas for converting spherical coordinates to Cartesian ones. In this article, we will get acquainted with the equations for the coordinate conversion from one spherical coordinate system to another. It will help us solve the previously stated task of converting ecliptic coordinates to equatorial, which is necessary for calculating primary directions.
Cartesian Vector
First, we need to convert the spherical angles of the celestial object to cartesian coordinates with equation (2) from the previous article. We will perform all the conversions in cartesian coordinates.
For convenience, we introduce the idea of cartesian vector as a pointer to an object in the coordinate system.
Vector has
- starting point with coordinates
- endpoint with coordinates that coincides with the object’s location.
We will denote the vector by the letter and write its direction in the following form:
In the latter notation, we mean that the vector has an extent of units in the direction of the -axis, an extent of units along the -axis and the same for .
Rotation of the Coordinate System
What happens if we rotate the coordinate system by the angle in plane?
In the initial system vector has coordinates , but in a new (rotated) system, it has coordinates , i.e.
Let’s consider an part of the vector , namely, . It is a pointer to the coordinate.
We can project this pointer (i.e., vector) to the and axes. We remember from (1) of the previous article that these projections are and . So we can write:
In the same way
We do not change the -axis, so . Putting it all together, we have:
It means that:
For the reverse conversion we need to change to , which gives:
Sine and Cosine of Two Angles
From , it follows a vital equation. Lets denote spherical longitude in plane by , i.e.
Then we immediately get the equations for the sine and cosine of the sum of two angles:
Rotation Matrices
Let’s return to formula . This time we write it more implicitly:
We have a repeating pattern — we sequentially multiply the , , and coordinates by specific coefficients in the first, second, and third rows and then sum the product of these multiplications.
We can separately list these coefficients of the 1st, 2nd, and 3rd rows in square brackets and express the same idea more concisely:
It is a more convenient representation of these three equations, but this compactness will make our lives easier. We pronounce it like this: If we multiply the coordinates , , and by these coefficients, then we will get the new coordinates of the vector in the coordinate system rotated at an angle .
These coefficients are commonly referred to as the rotation matrix, and the expression above is the multiplication of the coordinates by the rotation matrix, which gives new coordinates .
For rotation in the plane on angle we use the following matrix
is the rotation matrix in the plane, i.e., a 2-dimensional array of coefficients to be multiplied with coordinates.
For the inverse conversion, we change to , which gives an inverted matrix symmetrical to the original:
In the same way, the rotation matrices for rotation in and planes are:
Multiple Rotations
This concise notation for translating cartesian coordinates through rotation matrices gives us a significant advantage. Now, we can efficiently perform multiple sequential rotations in different planes and express them with a straightforward formula.
Suppose we want to rotate the coordinate system by an angle along the plane and then rotate the new coordinate system by an angle along the plane. First, we obtain the vector’s coordinates after rotation by angle :
Then we rotate this vector by angle in the second plane:
We can express this even more simply:
As you can see, we simply multiply the matrices in the required sequence. Here, the first rotation matrix, according to , is:
And the second rotation matrix, according to , is:
As you can see, we can write translations from one coordinate system to another very compactly.
Voila, we have coordinates of the initial vector in a new coordinate system. What we have to do eventually is to convert new cartesian coordinates into spherical angles in the rotated coordinate system.
To do this, we will use equation (2) from the previous article.
Bottom Line
You are now familiar with vector objects and rotation matrices.
You also know that the general approach to converting one spherical system to another consist of 3 steps.
Step 1
Covert spherical angles to cartesian coordinates with equation (2) from the previous article. We denote cartesian coordinates by
Step 2
Rotate the coordinate system by angle and then by and express cartesian coordinates in a new (rotated) system:
Step 3
Finally, convert cartesian coordinates to spherical angles with equation (2) from the previous article.
