Change of basis (components) for a vector
- Active transformation: the basis stays fixed and the vector is physically moved (e.g. rotated). We ask where the vector is taken to.
- Passive transformation: the vector stays fixed and the basis is rotated. The vector is unchanged; only its components change.
A change of basis is a passive transformation. Start in 2D. A vector has components in a coordinate system with basis vectors . What are its components in a new system with basis vectors , inclined at an angle to the original axes?
Let and let be the angle of from the original -axis. Its angle from the new -axis is then .
; is the angle of from ; is the angle of from .
Show derivation
For an orthonormal basis each component is the projection onto that basis vector (Components are projections onto the basis): . By Scalar product in terms of the angle, . Also is at to , so the angle between and is , giving .
The new axes are the old ones turned through . The angle between and is therefore , and the same two steps give and .
Turn the axes with : never moves, but its components along change. Switch on to see that the new components are those of rotated by .
The general relation
Write , where is the matrix that rotates the old basis vectors onto the new ones. For orthonormal bases each component is a projection: and . Relating the two:
So in the rotated frame the components of are given by .
Now define : the components along the new axes, but laid out in the old frame. In matrix form:
Here rotates the axes anticlockwise by .
Show derivation
Start from Components relative to the old and the new axes and expand with the compound-angle formulae (databook maths p4):
General (non-orthonormal) bases
The projection argument used orthonormal bases for simplicity. The result holds even when maps the basis vectors to a non-orthonormal frame:
takes the original axes to the new axes (); is the column of old components, the column of new components. Holds in 2D and 3D.
Show derivation
Write the same vector in the new basis and use . Matrix multiplication is linear, so can be taken outside the sum:
For a rotation, is orthogonal, so (databook maths p17; see Columns of R are the new basis vectors). This gives .
Changing frames therefore amounts to rotating the vector, but the rotation goes the other way: it is like rotating the vector by .
rotates the axes onto the new axes. The components transform with the inverse: , not . If the axes turn by , the vector looks as if it has turned by .
Explanation Why the transpose and not R itself?
Stand on the new axes as they turn anticlockwise by . The fixed vector appears to swing clockwise by , i.e. to rotate by . The matrix for a rotation by is , which is exactly . Undoing a rotation is the inverse, and for rotations the inverse is the transpose.
Quick check with . Then and . For , the formula gives . That is , which is correct.
Explanation What exactly is the column a in a’ = Rᵀa?
The lecture uses both for the geometric arrow and for the column of its old components . In , both sides are columns of numbers. The arrow itself never changes; only the list of numbers describing it does. The vector is a bookkeeping device: it places the new numbers on the old axes.
- Passive change of basis: the vector is fixed and its components change. Active: the vector moves.
- ⇒ , ; for a rotation .
- Axes turned by ⇔ the vector is turned by .
- For orthonormal bases each component is a projection, . This is the quickest check of any answer.
Example: rotation about the y-axis
Example Components after rotating the axes by 45° about y
Task. Find the matrix that transforms the components of a vector to a new coordinate system , formed by rotating by about the common -axis.
Rotation matrix. The matrix that rotates a vector through about the -axis is Rotation through α about the y-axis. For :
Change of coordinates uses the transpose (Change of coordinates for a vector):
Positive follows the right-hand screw rule about , which turns towards .
Show derivation
The columns of are the images of (Columns of R are the new basis vectors).
- lies on the axis, so it is unchanged: second column .
- The – plane rotates rigidly by . A small positive rotation about moves a vector by . Since and (Products of the basis vectors (cyclic order)), turns towards and turns towards .
- A finite rotation by in that plane therefore gives (third column ) and (first column ).
and are and turned by about , which points into the page (right-handed).
Notes:
- If the change of coordinates is not a pure rotation, replace by .
- Positive rotations are defined by the right-hand screw rule (The right-hand screw rule), screwing in the direction of the rotation axis.
Explanation How can I check Q quickly?
The rows of are the new basis vectors written in old components. So is just “row of dotted with ”.
Try . Then . Check against the figure: lies from , which gives the . It lies from , because points below the -axis; that gives the .
- Rotating the axes by about : new components are , with the ordinary rotation matrix.
- Rows of = new basis vectors in old components.
- Not a pure rotation ⇒ use . Sign of the rotation: right-hand screw about the axis.
Transformation of matrices
A linear transformation , in a coordinate system with basis , maps position vector to position vector :
In a new system with , Change of coordinates for a vector gives and . We want the matrix that does the same job in the new coordinates, .
Rearranged in terms of : and . Substitute into :
For a rotation is orthogonal, , so and . Here is the matrix of the transformation in the old coordinates, the matrix of the same transformation in the new ones, and .
Show derivation
By Change of coordinates for a vector, and . Substitute into to get . Multiply on the left by : .
By definition . Both relations hold for every . Choose in turn: the -th columns of and agree for each , so .
Multiplying by on the left and by on the right gives . For a rotation, use (databook maths p17).
To get from to , go up (), across () and down (). Matrices act right to left, so .
Order matters. In the sits next to the new-coordinate input and converts it to old coordinates first. Going back the other way, .
Explanation What stays the same when the matrix changes?
and describe one geometric transformation, so anything geometric about it cannot depend on the axes. For example, the area (volume) scale factor is unchanged: , using (databook maths p17) and . The worked example below shows this: both matrices have determinant 1.
- (rotation: ). Read right to left: convert in, apply, convert back.
- Inverse: (rotation: ).
- Derivation in two lines: substitute and into .
- : the same transformation, just described differently.
Transformation of a matrix in two dimensions
Example A = ¼(5 3; 3 5) seen from axes rotated by 45°
A transformation in 2D is represented by
- Sketch its effect on a unit square.
- Find the matrix of the same transformation in a coordinate system rotated by .
1. Unit square. Transform the corners:
2. Rotated frame. The matrix that rotates by onto is
Interpretation. In the transformation is simply a stretch along by a factor 2 and a compression along by a factor . A judicious choice of axes has turned the hard-to-interpret into the very simple . How to choose such axes comes later (eigenvectors).
Check. and . The transformation leaves area unchanged.
The grey square has its sides along the new axes (at angle ). The orange shape is its image under . At you see the lecture’s sketch. Turn to : the image becomes a rectangle and the off-diagonal entries of vanish. The determinant stays 1 throughout.
Explanation How do you know the entries of A’ without multiplying three matrices?
The columns of are and (in old components). So entry of is : the -th new component of the image of the -th new basis vector.
Here and . For example, and . This explains at once why is diagonal with entries and .
- To interpret a matrix, try it on the unit square: the columns of are the images of and .
- in axes at is : a stretch along and a compression along .
- A good choice of axes makes the matrix diagonal; is the same in every frame.
Revision example: Shear along an axis
Example 30° shear parallel to the line y = x
Task. Find the 2D matrix for a shear parallel to the line . The unit square (with sides along and ) becomes a parallelogram.
Step 1: work in a convenient frame. Use the rotated system , with an anticlockwise rotation of :
Step 2: transform back. Since , we have (Change of coordinates for a matrix):
Interpretation. Looking at , it is not at all clear what it represents. Finding the directions that simplify such matrices is the subject of the final part of the course.
Each point moves parallel to by , so . Lines that were parallel to tilt by .
Show derivation
The columns of the matrix are the images of and (Columns of R are the new basis vectors uses the same fact).
- Points on the -axis do not move, so : first column .
- keeps its height 1 but slides along . Its side through the origin is tilted by from vertical, so it slides by : , giving second column .
The default (, ) is the lecture’s example. The readout matches . Set to recover . Points on the dashed line never move.
Explanation How can I check the final A?
- Points on the line must not move: . ✓
- A shear preserves area: with . ✓
These two checks take thirty seconds and catch most slips in , for example using by mistake.
- Shear by along : . Points on the shear line are fixed and .
- Shear along any other line: write it in axes with along the line, then .
- Check: the shear line is unchanged by , and .
Change of basis (coordinates) summary
- Find the transformation in a convenient coordinate system.
- Transform to the original coordinates: ( for a rotation).
| Orthogonal matrix, | , where is the result of rotating , etc. |
| Change of coordinates (vector) | (in general ), see Change of coordinates for a vector |
| Change of coordinates (matrix) | , which becomes , see Change of coordinates for a matrix |
For a rotation (any orthogonal matrix) the columns are orthonormal, so , i.e. . An orthogonal matrix has : for a pure rotation, if it includes a reflection.
Show derivation
is the column with 1 in place and 0 elsewhere. So , which is the -th column of . Hence column is written in old components.
Entry of is row of (that is, ) times column of , i.e. . A rotation keeps lengths and right angles, so the are orthonormal: (Kronecker delta). So and .
Then (databook maths p17), so .
- Method: build where it is obvious, then .
- Build column by column: column = where goes = in old components.
- Vectors: . Matrices: . Not a rotation ⇒ .
Eigenvectors and eigenvalues
A non-zero vector that obeys
If represents a transformation, an eigenvector is a direction left unaltered by , and its eigenvalue is the scale factor applied to its magnitude.
Notes:
- The eigenvector must be non-zero, but the eigenvalue can be zero.
- If is an eigenvector of , so is for any non-zero scalar . Only the direction of an eigenvector matters, not its magnitude (Any non-zero multiple of an eigenvector is an eigenvector).
- It is customary, but not obligatory, to normalise eigenvectors to unit vectors, often written .
So one can always normalise: .
Show derivation
Matrix multiplication is linear, so . Since and , is non-zero, so it satisfies Eigenvector and eigenvalue with the same . Taking gives the unit eigenvector .
from the 2D example. The dashed circle of possible maps to the orange ellipse. Turn until lines up with it: this happens only at () and (), exactly the axes that made diagonal.
Explanation How does this connect to the ‘good choice of axes’?
In the 2D example maps and . The axes were the eigenvector directions, and the diagonal entries of are the eigenvalues. That is why those axes simplified the matrix.
The shear example works the same way: every vector along is unchanged, so it is an eigenvector with .
Explanation Why must x be non-zero, while λ = 0 is fine?
holds for every , so allowing would make every number an “eigenvalue”. That is why the zero vector is excluded.
just means a non-zero direction is squashed to nothing. For example, projection onto the -axis, , sends . Such a matrix has .
- with : a direction unchanged by , scaled by .
- is allowed; is not.
- Only the direction matters ( works too); normalise to if convenient.
- Eigenvector directions are the “good axes”: in them the matrix is diagonal, with the eigenvalues on the diagonal.