Find all the possible $a\in\mathbb{R}$ such that there exists a linear transformation $T: \mathbb{R}^3 \rightarrow \mathbb{R}^3$ that satisfies that $T(1,−1,1)=(2,a,−1)$, $T(1,−1,2)=(a^2,−1,1)$ and $T(1,−1,−2)=(5,−1,−7)$.
This is the first time that I've come across a problem like this one, could someone explain how to do it?
I was trying to find patterns between the given integers to find a rule that $T$ is defined by, but I didn't have any luck. The only other thing I can think of is maybe to set up a matrix? Not sure how it would look though.
By linearity of $T$:
$$T(0,0,1) = T(1,-1,2)-T(1,-1,1)=(a^2-2, -a-1, 2)$$
Now we can use this, along with $T(1,-1,-2)$, to see for which $a$ these values will be consistent.