B.4 Coordinate transformation derivation