(d) Assume that $A$ is a $2 \times 2$ real matrix which has eigenvectors $\vec{u} = \begin{pmatrix} 1 \\ 1 \end{pmatrix}$ and $\vec{v} = \begin{pmatrix} 1 \\ -1 \end{pmatrix}$ corresponding to eigenvalues $-1$ and $2$, respectively. If $\vec{w} = \begin{pmatrix} 3 \\ 1 \end{pmatrix}$, find $A^2 \vec{w}$.