My textbook defines a linear transformation as a linear map from a space into itself $t:V \rightarrow V$, so basically where the domain equals the codomain. It then goes on to say that the derivative map d/dx: $P_n \rightarrow P_n$ is a linear transformation:
$a_0 + a_1x + ... + a_nx^n \xrightarrow{d/dx} a_1 + 2a_2x + 3a_3x^2 + ... + na_nx^{n-1}$.
But how can this be? By losing the $a_0$, you've lost 1 component, so your dimension gets reduced by 1. How can this still be a linear transformation or am I missing something here?