Answer:Usually you should just use these two rules:
T(x)+T(y) = T(x+y)
cT(x) = T(cx)
Where T is your transformation (in this case, the scaling matrix), x and y are two abstract column vectors, and c is a constant.
If these two rules work, then you have a linear transformation :)
Explanation: