Express the matrix of $f$ with respect to the basis $\{1,x+1,x^{2}+x\}$. Let $\textbf{P}_{2}(\textbf{R})$ be the real vector space of polynomials of degree less than or equal to $2$.
Let $f:\textbf{P}_{2}(\textbf{R})\rightarrow \textbf{P}_{2}(\textbf{R})$ be the linear map given by differentiation, i.e., $f(p(x)) = p'(x)$.
Compute the matrix of $f$ with respect to the basis $\{1, x + 1, x^2 + x\}$.
MY ATTEMPT
So far I've done   $f(1) = 0$, $f(x+1) = 1$ and $f(x^2 + x) = 2x + 1$.

Since we are dealing with a linear operator, we can assume the same basis for the domain and the counterdomain.
Given the basis $\mathcal{B} = \{1,x+1,x^{2}+x\}$, we have the following system of equations to solve
\begin{align*}
\begin{cases}
a_{11} + a_{12}(x+1) + a_{13}(x^{2}+x) = f(1) = 0\\\\
a_{21} + a_{22}(x+1) + a_{23}(x^{2} + x) = f(x+1) = 1\\\\
a_{31} + a_{32}(x+1) + a_{33}(x^{2} + x) = f(x^{2}+x) = 2x + 1
\end{cases}
\end{align*}
whence we conclude $f(1) = (0,0,0)_{\mathcal{B}}$, $f(x+1) = (1,0,0)_{\mathcal{B}}$ and $f(x^{2}+x) = (-1,2,0)_{\mathcal{B}}$.
Finally, one has that
\begin{align*}
[f]_{\mathcal{B}} = 
\begin{bmatrix}
0 & 1 & -1\\
0 & 0 & 2\\
0 & 0 & 0
\end{bmatrix}
\end{align*}
and we are done.
Hopefully this helps.
