Let v1=[2−1] and v2=[1−1] and let A=[32−21] be a matrix for T:R2→R2 relative to the basis B={v1,v2}.
From this I found that: T(v1)=[4−1] and T(v2)=[5−3]
How would I find a formula for T([x1x2]). The answer in my book is [−x1−6x22x1+5x2]
Answer
Given vectors v1,v2,Tv1,Tv2:
{ v1, v2} = {{2, -1}, {1, -1}};
{Tv1, Tv2} = {{4, -1}, {5, -3}};
This is a direct way of solving underlying linear system:
With[{ m = Array[a, Dimensions[{v1, Tv1}]]},
m.Subscript @@@ {{x, 1}, {x, 2}} /.
Solve[ m.#1 == #2 & @@@ {{v1, Tv1}, {v2, Tv2}}, Join @@ m] //
Transpose // TraditionalForm]
Since it might seem to be an overkill, let's provide another simpler way, obvious for those about to pass a linear algebra exam:
Transpose[{Tv1, Tv2}].Inverse @ Transpose @ {v1, v2}.{x, y} // MatrixForm
which can be written in the front-end this way:
where we put {x, y}
instead of Subscript @@@ {{x, 1}, {x, 2}}
.
These both ways are easily applicable to higher dimensional problems involving appropriate numbers of vectors, such that v1,…,vn and Tv1,…,Tvn satisfy:Det @ { v1, ..., vn} != 0
and Det @ { Tv1, ..., Tvn} != 0
Comments
Post a Comment