So, suppose I had the position vector $\begin{bmatrix}x\\y\end{bmatrix}$ and I wanted to translate it so that it's tale is at $\begin{bmatrix}a\\b\end{bmatrix}$. I know I want my translation matrix yo yield $\begin{bmatrix}a+x\\b+y\end{bmatrix}$. However, I'm having trouble coming up with a $2x2$ matrix for this. I can come up with the folloiwng $3x3$ matrix: $T=\begin{bmatrix}1 & 0 & a\\0 & 1 & b \\ 0 & 0 & 0\end{bmatrix}$
Then, multiplying the point $\begin{bmatrix}x\\y\\1\end{bmatrix}$ by $T$ yields $\begin{bmatrix}a+x\\b+y\\0\end{bmatrix}$. However, the best $2d$ matrix I could come up with is $\begin{bmatrix}1 & \frac{a}{y} \\ \frac{b}{x} & 1 \end{bmatrix}$. Of course, this doesn't work if my position vector is on the $x$ or $y$ axis. I feel like this should be an easy problem to solve, but I seem to hit a road block. Any suggestions?