Determine whether or not the following is a linear transformations.
$L: P_2 \rightarrow P_3, L(p(x)) = 5p(1)+x^2p'(x)$
My main question for this problem is whether the process I used is correct, because I have seen different ways of solving similar questions like this. I used a different process to arrive to the solution.
$\text{If L is a linear transformation mapping a vector space V into a vector space W,} \\ p(x)= a_0+a_1x , \\ q(x) = b_0+b_1x \\ \mathbf{(I)}\qquad L(p(x)+q(x)) = L(p(x))+L(q(x)) \\ = L(a_0+a_1x+b_0+b_1x) \\ 5(a_0+a_1+b_0+b_1) +x^2(a_1+b_1)=5(a_0+a_1+b_0+b_1)+x^2(a_1+b_1) \color{lime}{LHS} \checkmark\\L(p(x)+q(x)) \\ = L(a_0+a_1x)+L(b_0+b_1x) \\ 5(a_0+a_1)+x^2(0+a_1)+5(b_0+b_1)+x^2(0+b_1)\\5(a_0+a_1)+x^2a_1+5(b_0+b_1)+x^2b_1\\=5(a_0+a_1+b_0+b_1)+x^2(a_1+b_1) \color{blue}{RHS}\checkmark \\ \mathbf{(II)} \qquad L(\alpha(p(x)) =\alpha L(p(x)) \\ L(\alpha(a_0+a_1x))\\L(\alpha a_0 +a_1x\alpha) \\ 5(\alpha a_0 +a_1 \alpha)+x^2 a_1 \alpha \color{lime}{LHS} \checkmark \\\alpha L (a_0 +a_1x) = \alpha(5(a_0+a_1)+x^2a_1) \\ 5(a_0\alpha+a_1 \alpha)+x^2 a_1 \alpha \color{red}{RHS} \checkmark \\ \text{Yes Linear Transformation}$
Yes, it is correct (assuming that $P_2$ is the space of all polynomials whose degree is less than $2$), but you don't have to write each polynomial as $a+bx$. For instance, in order to prove that $L\bigl(p(x)+q(x)\bigr)=L\bigl(p(x)\bigr)+L\bigl(q(x)\bigr)$, all you need to do is\begin{align}L\bigl(p(x)+q(x)\bigr)&=5\bigl(p(1)+q(1)\bigr)+x^2(p(x)+q(x)\bigr)'\\&=5p(1)+5q(1)+x^2\bigl(p'(x)+q'(x)\bigr)\\&=5p(1)+x^2p'(x)+5q(1)+x^2q'(x)\\&=5p(1)+x^2p'(x)+5q(1)+x^2q'(x)\\&=L\bigl(p(x)\bigr)+L\bigl(q(x)\bigr).\end{align}