Every vector $\mathbf{v}$ can be expressed uniquely in the form $\mathbf{a} + \mathbf{b},$ where $\mathbf{a}$ is a scalar multiple of $\begin{pmatrix} 2 \\ -1 \end{pmatrix},$ and $\mathbf{b}$ is a scalar multiple of $\begin{pmatrix} 3 \\ 1 \end{pmatrix}.$ Find the matrix $\mathbf{P}$ such that $\mathbf{P} \mathbf{v} = \mathbf{a}$ for all vectors $\mathbf{v}.$
I'd like help deriving $\mathbf{P}$, but I don't know how to do it. Any help would be much appreciated!
You can take the scalars of a and b into the vector and add the two of them together to get vector v=$(\begin{bmatrix} 2a+3b \cr -a+b \end{bmatrix})$ . To get P from Pv=a refer to this: How to find matrix $A$ given $Ax=b$. Also $det(A)$ & $sum(A)$ are known.