The basis vectors of the S-system are given in terms of the E-system, so, to get the transformation matrix, we simply put them as columns of the matrix:
Let's check this, just to be sure. The arbitrary vector can be expressed as
soSince
the transformation matrix Q from S to E isSo
So a'=-5a+3b and b'=2a-b.