Vector Algebra
Force, velocity, and displacement all carry a direction, so mechanics needs an arithmetic that respects it; adding magnitudes alone gives the wrong answer the moment two arrows point different ways. We set up vectors and their components in a chosen basis, then build the two products that carry most of the physics — the dot product, which extracts the part of one vector along another and yields work and power, and the cross product, which measures oriented area and yields torque and angular momentum.
╌╌╌╌
Vectors and coordinate systems
A vector specifies magnitude and direction independently of coordinates. In a Cartesian basis,
Components are signed scalar projections. They depend on the basis, whereas the vector and its magnitude do not. In a plane, a vector of magnitude at angle from the positive axis has and .
Bases and rotated coordinates.
A vector is independent of the basis used to describe it. In a Cartesian basis, its components are the coefficients of the basis vectors. Replacing those basis vectors changes the component column while leaving the geometric vector unchanged. This is a passive coordinate rotation. Rotating the physical vector in a fixed basis is an active transformation; the two operations use inverse matrices.
An active counterclockwise rotation by an angle is
Components in axes rotated counterclockwise by the same angle use the inverse matrix. In an orthonormal rotation, the inverse is the transpose. This follows because the new basis remains perpendicular and of unit length. Applying the forward matrix to the new component column does not recover the old components; it applies a second active rotation.
Transform a component column into the rotated basis, then apply the inverse transformation. The original components must return within rounding error. Failure indicates a reversed rotation sense, inconsistent angle units, or incorrect matrix ordering. This check is required when a vector is resolved in an oblique or moving coordinate system.
Vector operations and geometry
Vector addition is componentwise:
The head-to-tail construction gives the same componentwise sum. Subtraction is addition of the opposite vector, . The order of subtraction matters; addition is commutative but subtraction is not.
The component test for a closed path is more stringent than a visual impression that arrows appear to return to their starting point. Add every horizontal component and every vertical component independently. Both sums must vanish. In a displacement loop, force polygon, or equilibrium construction, each arrow begins at the preceding arrowhead. The final endpoint coincides with the initial tail only when both component sums are zero.
The signs of the two planar components locate the resultant's quadrant. The inverse tangent of a ratio gives only a reference angle between zero and ninety degrees. It cannot distinguish a northeast vector from a southwest vector, since both can have the same component ratio. Holding the component magnitudes fixed while changing their signs gives the four possible directions.
The component method also applies along a specified physical direction rather than along Cartesian axes. A projection takes a unit direction as part of the problem data. The scalar projection gives the signed amount along that direction; the remainder is perpendicular by construction. This decomposition gives force components on an incline and velocity components along a trajectory.
Projection gives the geometric meaning of the dot product. Fix the magnitudes of two vectors and rotate one through the included angle. The product changes only through the projected component, hence through cosine. Aligned force and displacement produce positive work, perpendicular directions produce zero work, and opposed directions produce negative work.
The cross product retains the nonparallel contribution of two vectors. The dot product depends on the parallel projection; the cross-product magnitude depends on the perpendicular component. A positive area magnitude does not determine direction, so torque and angular momentum require a right-handed orientation convention for the ordered pair. Keeping the base and perpendicular height fixed while shearing the parallelogram leaves its area unchanged: changes in the drawn side length and included angle compensate so that the oriented area remains the same.
Torque applies this orientation rule to a force at a particular position. The relevant geometry is the perpendicular distance from the pivot to the force line of action. A force applied far from a pivot has zero torque when its line of action passes through the pivot, while a smaller force along a perpendicular line can produce a turning effect.
Scalar multiplication, directed segments, and affine points.
Multiplication by a scalar changes a vector's magnitude and may reverse its direction. For a real scalar ,
Positive retains the direction of ; negative reverses it; and gives the zero vector. The zero vector has no direction, so an angle assigned to it has no physical meaning. This distinction matters when a force, velocity, or displacement is multiplied by a signed coordinate difference. A coefficient may carry units. If has units of metres and has units of , then has units of speed. Addition requires matching dimensions, whereas scalar multiplication changes dimensions according to the scalar.
Position vectors require a declared origin. A displacement does not. For points and with position vectors and ,
Changing the origin adds the same constant vector to both positions and leaves unchanged. This difference is the vector needed in a velocity calculation, a line-of-sight calculation, or the lever arm in a torque calculation. It is incorrect to treat a location such as as though it were itself the displacement from to ; the origin enters the former but not the latter.
Points along the straight segment from to have the affine form
The coefficients add to one. That condition preserves the location when the origin is shifted. A combination such as has units of length but does not represent an origin-independent point, because its coefficients sum to three. Affine combinations occur in centre-of-mass calculations, finite-element interpolation, and numerical placement of particles along a line segment.
For example, let and . The displacement is
At , the point is . Substitution at and must return the two endpoints. The components of the displacement also provide a sign check: the point moves toward decreasing , increasing , and increasing as increases.
A chain of displacements adds associatively:
The intermediate point cancels when the two component differences are expanded. The cancellation follows directly from component algebra. A path may have many segments while the net displacement depends only on the endpoints. Total distance is the sum of individual path-segment magnitudes and requires the full path when its direction changes.
Dot product and projection.
The dot product is
It is a scalar. The projection of on a unit direction is , and the projected vector is . The perpendicular remainder is .
The dot product gives work, , and power, . A perpendicular force has zero dot product with the displacement and does no instantaneous work.
Cross product.
The cross product is a vector perpendicular to both inputs. Its magnitude is
The magnitude equals the area of the parallelogram spanned by the vectors. Its direction is fixed by the right-hand rule, and reversing order reverses direction:
Torque and angular momentum use cross products: and . The perpendicular lever arm rather than the full radius determines torque magnitude.
Product calculations, determinants, and invariant checks.
The component form of the dot product is a sum of matched components:
It is commutative, so . The result has the product of the input dimensions. A force dotted with a displacement has units of joules; a position dotted with a velocity has units of . Units therefore distinguish a dot product from a magnitude or an angle even when a numerical answer happens to have a familiar value.
The cross product is evaluated from the determinant pattern
Expanding by the first row gives
Every term contains one component from each input vector. Swapping the two rows changes the sign of every component, which yields . The order is part of the physical definition. Reversing changes the direction of the torque and cannot be repaired by changing only a sign in a later scalar equation.
Take and . Direct substitution gives
Three checks follow from the same pair. First, and ; the cross product must be perpendicular to both inputs. Second,
Here the left side is , while . Third, the sign of the first nonzero cross-product component can be checked by a right-handed sketch of the two input directions. The algebraic, metric, and geometric checks catch different error classes; agreement among all three is stronger than a repeated determinant expansion.
The scalar triple product combines a dot product and a cross product:
Its magnitude is the volume of the parallelepiped based on the three vectors. Its sign records orientation. A positive result means that the ordered basis has the same handedness as the declared Cartesian basis; a negative result has the opposite handedness. A zero result indicates linear dependence or coplanarity. This test appears when checking whether three direction vectors define a volume, when computing a normal from two surface directions, and when deciding whether a coordinate transformation reverses orientation.
For with the preceding and ,
The nonzero value confirms that the three vectors span three dimensions. Cyclic reordering leaves this scalar unchanged:
Interchanging any two vectors reverses the sign. These operations are safe only when the parentheses and factor order are retained. In particular, is a vector, whereas is a scalar.
The vector triple product has a separate identity:
The right side lies in the plane spanned by and . A direct expansion in Cartesian components confirms the identity and shows why the result cannot generally point along . This matters in magnetic-force, centripetal-acceleration, and rigid-body calculations, where an unparenthesized sequence of crosses is ambiguous.
Bases and coordinate transformations
A counterclockwise rotation of axes by uses
The component values change, while magnitude and dot products remain invariant. Axes aligned with a surface, string, or path simplify force components without altering the underlying vector.
Orthogonal and nonorthogonal bases.
Cartesian unit vectors satisfy
In a Cartesian orthonormal basis, components equal scalar projections. For an orthonormal basis ,
In a nonorthogonal basis, a dot product with one basis vector contains contributions from the others. The Gram matrix records those mutual angles. If , then its squared magnitude is
The expression reduces to only for an orthonormal basis. Mechanics usually uses Cartesian or local radial-tangential bases because their geometry keeps force and motion equations transparent.
Linear independence, skew bases, and conditioning.
A set of vectors forms a basis for a space only when every vector in that space has one and only one component expansion in the set. In two dimensions, two basis vectors must be nonparallel. In three dimensions, the third vector must lie outside the plane of the first two. With basis vectors as columns of a matrix , an ordinary component calculation has the form
The component column exists uniquely when is invertible. For a square matrix, this requires a nonzero determinant. In a planar basis whose unit vectors have included angle , the determinant magnitude is . As the two axes approach parallel, the determinant approaches zero. Small measurement changes in then produce large changes in its reported components, even though the physical vector is well defined.
In an orthonormal basis, dotting with each unit basis vector produces the components immediately. In a skew basis, dot products produce a coupled system. Let and define . Then
The matrix is the Gram matrix. Its off-diagonal entries record the lack of perpendicularity. Solving this system gives components without treating the dot products as though they were independent projections.
For example, take , , and . The Gram matrix and dot-product column are
Solving gives and . Direct substitution gives
Rounding accounts for the small displayed difference. The calculation also gives a independent check for any component solver: reconstruct the physical vector from the reported coefficients and compare it with the original vector in fixed Cartesian coordinates.
Near-parallel bases require special care in measurement and simulation. A narrow camera baseline, two nearly aligned strain gauges, or two nearly collinear force directions can all generate a poorly conditioned component estimate. State the included angle or the condition number of the basis matrix, retain measurement covariances when they are known, and avoid reporting many digits in the unstable components. Replacing a poorly conditioned basis with an orthonormal one can make the calculation stable without changing the vector being described.
Scalar triple product and volume.
The scalar triple product is
Its magnitude is the volume of the parallelepiped spanned by three vectors. A zero value means the vectors are coplanar. Cyclic permutations preserve the value,
whereas interchange of two vectors reverses its sign. The result gives an orientation test in three-dimensional geometry and appears in torque and volume calculations.
Deriving a planar coordinate transformation.
Let a primed axis be rotated counterclockwise by from the unprimed axis. Its unit vector is
The primed component of a fixed vector is the projection
The perpendicular primed unit vector gives
The transformation matrix has determinant one and preserves the dot product. It therefore preserves lengths and angles. The inverse is its transpose, equivalent to replacing with . These properties distinguish a rotation from a general coordinate scaling or shear.
Polar-coordinate derivatives.
The polar basis changes direction as the angle changes. Its derivatives are
For , differentiation gives
Uniform circular motion has , leaving the inward term . The result follows from changing basis direction, not from a change in the speed coefficient.
Vector functions and mechanics
A vector-valued function carries a component at each time:
In a fixed Cartesian basis, differentiation and integration act component by component. The derivative is
The derivative carries the units of divided by time. Position gives velocity and acceleration . A velocity can change while its magnitude stays constant because a vector records direction as well as size. Uniform circular motion is the standard example: the speed is constant, but the velocity derivative points inward.
Scalar-vector products require the product rule. If a time-dependent scalar multiplies a time-dependent vector , then
The first term changes the magnitude supplied by ; the second changes the vector itself. Dropping either term gives incorrect acceleration for polar coordinates, rotating machine parts, and any force written as a time-varying scalar times a changing direction.
The dot product gives a compact test for changes in magnitude. Differentiate :
Only the component of parallel to changes the magnitude. A perpendicular derivative turns the vector without stretching it. For a unit vector , this relation becomes
The derivative of a unit direction is therefore perpendicular to that direction. The identity supplies the radial and tangential basis derivatives used in circular motion. It also provides a numerical check: a computed derivative of a unit orientation should have a negligible component along the orientation itself.
Relative vectors must keep their point order visible. The position of particle relative to particle is
Differentiation gives
The order reverses the sign. A closing-speed calculation requires the component of along the line joining the particles, whereas the full relative velocity determines the changing line-of-sight direction. Treating a scalar speed difference as a relative velocity is valid only when both velocities lie on the same line with an explicitly declared sign convention.
Measured motion is sampled rather than differentiated analytically. A forward difference,
gives an average velocity over an interval. A central difference,
is usually a better estimate at an interior timestamp when the samples are evenly spaced and the trajectory is smooth. Position noise is amplified by division by a small time interval. Increasing the camera frame rate reduces discretization error but may magnify the effect of pixel-level position noise unless the position record is smoothed or fit by a physically justified trajectory.
Consider a cart whose measured positions at equal time intervals are , , and . The central displacement across the first and third samples is . Dividing by the elapsed two-interval time gives the velocity estimate at the middle sample. Reporting only the magnitude discards the direction needed to compare the result with a force or track orientation. Retain the component estimate and its position-scale and timestamp uncertainties until the physical model specifies the quantity to be inferred.
Vector identities in mechanics.
The distributive and scalar-multiplication rules follow from component algebra:
The first relation resolves the work of a net force into individual-force works. The second resolves torque from a force sum. Neither operation is associative: is a vector in the plane of and , not generally the same as . Parentheses are part of the mathematical statement.
The vector triple-product identity is
It converts a nested cross product into vectors in the original plane. The formula simplifies magnetic-force and rigid-body expressions, but its order must be retained exactly.
| Operation | Output | Geometric content | Mechanics use |
|---|---|---|---|
| vector | diagonal of a component sum | net force, displacement | |
| scalar | parallel projection | work, power | |
| vector | oriented area normal | torque, angular momentum | |
| scalar | oriented volume | coplanarity test |
Constraint-based decomposition.
An axis choice follows the physical constraint rather than a drawing convention. An incline-constrained block uses axes parallel and normal to the surface to separate zero normal acceleration from possible tangential acceleration. A pendulum uses radial and tangential axes to separate string tension from the force that changes speed. A projectile uses horizontal and vertical axes, which make the acceleration components independent in the constant-gravity approximation.
The same vector can be decomposed in different bases, but a calculation must keep one basis through each component equation. Combining a horizontal component from one line with a radial component from another has no defined vector meaning. A negative component is a result about direction, not a failure of the chosen axes.
Verification and computational practice
Component equations inherit the units of the original vector. A force component has units of newtons; a displacement component has units of metres. Trigonometric functions are dimensionless, so resolving a vector cannot change its units. The reconstruction check
is available only for orthogonal Cartesian components. In a rotated orthonormal basis it remains valid with primed components; in a skew basis the Gram matrix is required. Geometrically, a computed component must not exceed the vector magnitude in an orthonormal projection. A larger value indicates an incorrect angle or a non-unit direction vector.
Vector algebra keeps three geometric operations distinct. Addition combines directed changes, projection selects an aligned component, and the cross product measures oriented nonparallel content. Mechanics equations retain those distinctions; substituting a magnitude relation for a vector relation removes direction information needed for the physical conclusion.
Checks.
Vector equations require matching physical dimensions. Forces add to forces; displacement cannot be added to force. A component result should reproduce the original magnitude through Pythagoras. A zero dot product tests perpendicularity; a zero cross product tests parallel or antiparallel vectors. These checks locate sign, angle, and coordinate errors before numerical results are interpreted.
Computational practice.
Numerical vector work should retain components until the final reporting step. Roundoff in intermediate magnitudes and angles can destroy cancellations between large nearly opposite components. A computational implementation benefits from separate vector, scalar-product, and cross-product operations rather than a generic array calculation with implicit meaning. Unit tests should include perpendicular vectors, parallel vectors, and a known right-handed Cartesian basis. Those cases check sign convention, orientation, and the order sensitivity of cross products.
Uncertainty and conditioning
Vector subtraction can amplify measurement uncertainty when nearly equal vectors are subtracted. If two measured forces have large common horizontal components, the small net horizontal component is obtained from a difference of large quantities. Its relative uncertainty can be much larger than the relative uncertainty of either individual force. Reporting the component measurements and their directions is then more informative than reporting only a rounded resultant magnitude.
The same issue appears in angle calculations near an axis. The relation
is preferable to a bare inverse tangent because it retains the signs of both components and identifies the correct quadrant. When and are both small, direction is poorly determined even if the formula returns a number; the vector magnitude must be compared with measurement resolution.
Magnitude and angle uncertainty.
Component uncertainties propagate into a magnitude through the local derivatives. For uncorrelated Cartesian components,
The coefficients are direction cosines. A component that contributes little to the vector magnitude contributes little to its first-order magnitude uncertainty. This does not imply that the same component is unimportant for direction. Angular uncertainty becomes large when the vector magnitude is small because a fixed component error can then rotate the direction substantially.
In a plane, a small component change gives
Independent errors give the variance
The angle is measured in radians in this propagation formula. Convert to degrees only after computing the uncertainty. A calculator can return a stable numerical angle near the origin even when the physical direction is unresolved; the uncertainty expression exposes that limitation.
For example, suppose a force measurement gives and , with independent component errors. The magnitude is . The propagated standard uncertainty is
The direction is . The angle standard uncertainty is , or . Reporting at preserves both the scale and the orientation uncertainty. Reporting a magnitude alone would conceal the directional resolution needed for a free-body or trajectory calculation.
Independent-error formulas are insufficient when the same instrument or calibration affects multiple components. Let the component covariance matrix be
The variance of any scalar quantity is, to first order,
Positive covariance can reduce the uncertainty of a difference and increase the uncertainty of a sum; negative covariance has the opposite effect. A common zero offset in two position readings is a simple example. It largely cancels from a displacement, so treating the two readings as independent overstates the displacement uncertainty.
Coordinate reconstruction from measured directions.
Many instruments measure projections rather than Cartesian components. A strain gauge reports extension along its own axis. A photodetector measures a line-of-sight projection. A force transducer mounted on a sloping bracket measures the force along one mechanical direction. If unit measurement directions are and the recorded scalar projections are , the ideal relation is
Two nonparallel directions determine a planar vector in the absence of noise. Parallel directions cannot separate the two Cartesian components. With more measurements than unknown components, solve a weighted least-squares system and inspect residuals. Large residuals indicate a changing vector, a direction calibration error, sensor nonlinearity, or an uncertainty model that is too small.
The geometry of the measurement directions controls the reconstruction quality. Two directions separated by nearly ninety degrees give a well-conditioned planar estimate. Two directions separated by a few degrees produce nearly the same projection and leave the perpendicular component weakly constrained. The same conditioning issue appears in a graphical construction: the intersection of two nearly parallel component lines moves a long distance when either line is shifted slightly.
Coordinate transformations must carry the uncertainty information. If a rotation matrix changes components according to , then
The vector magnitude and the physical uncertainty ellipse remain unchanged, but the reported component standard deviations and covariance generally change. A rotated coordinate system can make components easier to interpret while concealing a correlation if only the diagonal entries are copied into a report.
Before combining vector data, record the origin, axis directions, handedness, angle units, time basis, sensor orientation, and whether coordinates describe the object, the observer, or a moving platform. These are model inputs. A sign convention written only on a diagram is easily lost when values are transferred to a table, spreadsheet, or program. The final reconstruction should include a forward check: substitute the reported vector into every original projection equation and compare the predicted readings with the measured values and their stated uncertainty.
The reconstruction record has three distinct objects: observations, a coordinate map, and a residual test. Keeping them in separate columns prevents a transformed component from being mistaken for a direct sensor reading.
| Record | Mathematical form | Independent check |
|---|---|---|
| Projection reading | compare predicted and measured | |
| Component transformation | apply the inverse map | |
| Covariance transformation | preserve the physical uncertainty ellipse |
Auditing a vector reconstruction.
A reproducible vector calculation separates geometric data from arithmetic. Record the coordinate frame before entering components: origin, positive axes, handedness, and the units assigned to every coordinate. Give a direction as either a unit vector or a pair of angles with their reference axes and rotation senses. A statement such as “the force is at ” is incomplete until the reference direction and the positive rotational sense are stated. The same number can describe different vectors when measured from the positive axis, from a slope, or clockwise from north.
Keep a measurement vector and a model vector distinct. A camera may report pixel coordinates that must first be mapped through a scale, lens correction, and image rotation. A load cell may report a local bracket component that must be rotated into laboratory axes. A simulation may store body-fixed components while its equations require inertial components. Combining these numbers before their frames are converted gives an array of plausible values with no defined vector operation.
Matrix order deserves explicit checking. With column vectors, an active rotation applied after is written . The rightmost operation acts first. Planar rotations about the same origin commute, but rotations about different three-dimensional axes generally do not. A program that changes from a sensor frame to a platform frame and then to a laboratory frame must retain that ordered chain in both code and documentation. Reversing the order can preserve vector magnitudes while sending components into the wrong physical direction.
Retain the ordered frame chain with the quantity being transformed. The same numerical matrix can represent an active turn or a passive basis conversion, so the check must name which coordinates are fixed.
| Step | Column-vector operation | Check |
|---|---|---|
| Sensor to platform | sensor axes and handedness | |
| Platform to laboratory | documented matrix order | |
| Reverse conversion | recover stored sensor components |
Normalize direction vectors only when their length is resolved. For a measured vector , form only after checking that exceeds the measurement resolution. Normalizing a noise-dominated vector creates an arbitrary direction with unit magnitude. This failure is common when a small difference between two large positions is used to define a line of motion. Report the displacement uncertainty and the threshold used to accept a direction estimate.
Several checks apply to a completed transformation:
- Units: Rotation matrices and unit-vector components are dimensionless. A translation has the units of position. A matrix product that adds quantities with unlike dimensions is invalid before any numerical evaluation.
- Norm: An orthogonal rotation preserves . A change in norm after a purported rotation indicates scaling, roundoff accumulation, or a nonorthogonal matrix.
- Orientation: The determinant of a proper rotation is . A determinant of describes a reflection combined with a rotation and reverses handedness.
- Inverse: Applying the inverse frame transformation must recover the original component column within the error expected from numerical precision and measured calibration constants.
- Physical projection: Each transformed vector should reproduce an independent observation, such as a force component along a rail, a sensor line of sight, or a displacement between two surveyed marks.
The checks are complementary. A reflected vector can preserve a norm and pass an inverse check if the same mistaken reflection is used twice; its handedness or an external projection then exposes the error. A component table should therefore contain the vector name, frame label, units, component values, uncertainty or precision, and the transformation that produced the row. That record prevents a later calculation from treating a body-fixed torque, an inertial velocity, and a geographic position as if they shared one Cartesian basis.
Vector equations also benefit from limiting cases. Set a rotation angle to zero and recover the identity matrix. Set two vectors parallel and require their cross product to vanish. Set them perpendicular and require their dot product to vanish. Set one component to zero and verify that an angle routine returns the correct axis and quadrant. These tests should use signed component values. Magnitudes discard quadrant information and can conceal sign errors.
Keep the unrounded component record until the final result is reported. Rounding an angle before reconstructing components can shift a small perpendicular component by more than its stated uncertainty. In a closed displacement polygon, sum the stored components before rounding individual arrows. In a force balance, compare the component residual with the uncertainty of every applied force. A residual reported as exactly zero after premature rounding conveys less information than a small, quantified residual tied to the measurement resolution and the declared coordinate frame.
State whether reported component uncertainty is a standard deviation, a confidence interval, or an instrument tolerance. Those labels determine how residual tests and subsequent uncertainty propagation should be interpreted.
Reference frames and final audit
Coordinates and vector components are frame-dependent descriptions. A rotation of axes changes component values through an orthogonal transformation but leaves the geometrical vector unchanged. A change between inertial frames in mechanics also changes the measured velocity vector by the frame velocity. Position displacement and force use the same vector algebra, but their physical transformation laws and dimensions remain distinct. This distinction prevents an algebraically correct component operation from being applied to incompatible physical quantities.
Final audit of a vector calculation.
Record the basis, write each vector in components, perform the required vector operation, and reconstruct magnitude and direction only at the end. The result should satisfy geometric limits: a parallel cross product vanishes, a perpendicular dot product vanishes, and a zero resultant closes the head-to-tail polygon. Dimensional checks, component signs, and limiting geometries provide independent tests of the same calculation.
Inverse rotation is a coordinate check as well as a geometric operation. After a component column is expressed in rotated axes, transforming it back with the inverse matrix must recover the original column within rounding tolerance. For an orthonormal rotation, transpose and inverse are the same matrix, but their roles remain distinct: the transpose converts components in the reverse direction, while applying the forward rotation again represents another active turn of the vector.
Numerical orthogonality should be tested rather than assumed from printed entries. Compute the dot product of the rotated basis vectors and compare each basis-vector norm with one. Small deviations arise from rounded sines and cosines, finite precision, or accumulated matrix products. A large deviation signals an incorrect matrix order, a degree-radian mismatch, or a transformation that includes scaling or shear. Reorthogonalization may be necessary after many sequential rotations in a simulation, especially when basis vectors are propagated from measured data.
An active rotation moves the geometric vector while the coordinate axes remain fixed. A passive rotation leaves the geometric vector fixed and rotates the axes used to label its components. The two descriptions use inverse component matrices. Applying an active rotation matrix to a column already expressed in rotated coordinates turns the vector a second time. State which object and axes are fixed, and state whether component columns are being converted between bases or used for a physical rotation. Record the reference direction and rotation sense beside the matrix. A sign convention buried only in a sketch is easily lost when component columns move into code or a data table.
╌╌ END ╌╌