Consider the matrix of the given transformation be T
Let be the transformation.
Assume be the function.
Hence
Then, the transformation be as follows.
Similarly further simplification is as follows
Therefore the matrix be B as follows
Hence the solution.