You have measured the engine, fuel tank, and wing servo in your RC airplane. Each part now has coordinates. But what if a small mounting bracket is turned sideways? You could measure every hole again. Or you could find a rule that moves all the coordinates at once.
Take a sheet of graph paper and a little L-shaped bracket. Hold it down with one screw. Mark a mounting hole 2 cm right and 1 cm above the screw: P = (2, 1) cm. Turn the bracket 90° counterclockwise. The screw stays put. Where is the hole now?
This is where a matrix becomes useful. Four numbers will do the job—but they are not four numbers chosen at random.
A quarter turn, without a ruler
Keep the drawing axes fixed: positive x points right, positive y points up. Rotate the arrow from the screw O to P one quarter turn counterclockwise. The old (2, 1) becomes (−1, 2) cm: one centimeter left and two centimeters up.
You can check without trusting an equation. The squared distance from O was 2² + 1² = 5 cm². After the turn it is (−1)² + 2² = 5 cm². Both distances are √5 cm. Rotating a rigid piece around the screw has not stretched it.
Tracing one hole is easy. But if we want to turn every hole, edge, and measured point, we need one repeatable rule.
The turn is hiding in two small arrows
Take the two simplest arrows on the paper: ex = (1, 0) points right, and ey = (0, 1) points up. These are the unit vectors, one unit long, that describe our two directions.
After a 90° counterclockwise turn, the first points up: ex → (0, 1). The second points left: ey → (−1, 0). If we remember those two changes, we can turn any arrow in this plane.
Why? Because P = (2, 1) is simply two copies of the first unit arrow plus one of the second:
(2, 1) = 2(1, 0) + 1(0, 1).
Turn both arrows and keep the same amounts:
P′ = 2(0, 1) + 1(−1, 0) = (−1, 2).
We can store the two turned unit arrows as the columns of a small table of numbers—a 2×2 matrix:
R = [[0, −1], [1, 0]].
The first column, (0, 1), records what happens to ex. The second, (−1, 0), records what happens to ey. This is the answer to the title's puzzle: four entries describe how our two independent directions change.
Why does matrix multiplication add products?
Put our arrow under the matrix as a column vector. The column is written vertically; in one line, [2, 1]T means the transpose of the row [2, 1], turning it into a column.
R [2, 1]T = [−1, 2]T.
The first result is 0×2 + (−1)×1 = −1. The second is 1×2 + 0×1 = 2. This is the familiar row times column, then add rule. But now you can see where it came from: the original arrow contains two copies of one reference arrow and one copy of the other. Their effects must be added together.
Multiplying each matrix entry by the entry sitting opposite it would not do that job. We need two new coordinates, each built from the two old ones—not four unrelated products.
So our 90° rotation turns any (x, y) into (−y, x). This works because the turn preserves vector addition and multiplication by an ordinary number. That is what makes it a linear transformation.
Try the rule on a second hole at Q = (3, 0) cm. Where will it land? One quarter turn gives Q′ = (0, 3) cm. If it helps, mark both holes on graph paper and turn the drawing.
Move the entire bracket onto the airplane
Our coordinates so far have been measured from the bracket's screw. But the screw itself may be mounted at (50, 25) cm in a larger aircraft drawing. That gives us two steps, not one:
First rotate: the hole's local position (2, 1) becomes (−1, 2) cm.
Then move to the aircraft reference: (50, 25) + (−1, 2) = (49, 27) cm.
A matrix handled the change of direction. Vector addition handled the change of origin. We did not rotate the whole airplane, and we did not confuse a point's local coordinates with its coordinates on the airframe.
Let Python check the turn
Before you run the code, make sure your pencil gives (−1, 2) for one turn and (−2, −1) for two. This small program has no external dependencies:
R90 = ((0, -1), (1, 0))
def matvec(A, v):
return tuple(sum(A[i][j] * v[j] for j in range(2))
for i in range(2))
p = (2, 1)
q = (3, 0)
print("P after one turn:", matvec(R90, p))
print("Q after one turn:", matvec(R90, q))
print("P after two turns:", matvec(R90, matvec(R90, p)))
P after one turn: (-1, 2)
Q after one turn: (0, 3)
P after two turns: (-2, -1)
Change P to (1, 2) and predict the result before running it again. It should become (−2, 1). The downloadable Python file also checks the lengths, reverse turn, and position offset.
Two turns—and why order sometimes matters
Two quarter turns make a half turn. Multiplying the two rotation matrices packages that sequence into one transformation:
R × R = [[−1, 0], [0, −1]].
It sends every (x, y) to (−x, −y). When we apply two transformations to a column vector, the matrix on the right acts first.
Not every matrix is a rotation. Consider S = [[2, 0], [0, 1]], which doubles horizontal distances but leaves vertical ones alone. Starting from (2, 1), stretch then rotate gives (−1, 4). Rotate then stretch gives (−2, 2). Different answers: the order matters. The first transformation changes what the next one receives.
A fixed arrow can have different coordinates
We have turned the bracket while keeping the axes fixed. There is another situation worth separating: hold the bracket and its arrow (2, 1) still, but rotate the coordinate axes 90° counterclockwise.
We now describe the same unchanged arrow using its new axes. Its new coordinates are (1, −2), not (−1, 2). The physical arrow did not move; only our description did.
For this rotation, the reverse matrix is RT = [[0, 1], [−1, 0]], obtained by swapping rows and columns. Multiplying by it gives (1, −2). Because a pure rotation keeps lengths and right angles, its transpose is also its inverse—the matrix that undoes the turn. This resembles division in ordinary arithmetic, but matrices do not have a universal division operation, and not every matrix has an inverse.
Our four-entry matrix was enough for a flat drawing. A three-dimensional aircraft needs three coordinates and, for a linear rotation about the origin, a 3×3 rotation matrix. Other turning angles use different numbers, but the idea remains: find where the reference directions go, then combine them. We will build toward that rather than hiding it inside a formula today.
That brings us back to CG and MOI. Knowing a part's location is not the end of the problem. A wing or battery has mass spread through its own shape. If we tilt that component, we must also express its rotational resistance in the aircraft's axes. This is where the inertia matrix becomes necessary.