a) \displaystyle \begin{pmatrix} 2x & 2y\\ (1+xy)e^{xy} & x^2e^{xy} \end{pmatrix}
b) \displaystyle \begin{pmatrix} 5 & 2 & 0\\ 0 & 1 & 4 \\ 1 & 2 & -1 \end{pmatrix}