The following was taken from Stephen Friedberg's Linear Algebra, 2nd Edition.
Let $A$ be a $m \times n$ matrix, $B$ and $C$ be $n \times p$ matrices.
Show that $A(B+C) = AB + BC$ and, for any $k \in F$, $k(AB) = (kA)B = A(kB)$.
Proof: $[ A(B+C) ]_{ij} = \sum_{i=1}^n A_{ik}(B+C)_{kj}$
$= \sum_{i=1}^n A_{ik}B_{kj} + \sum_{i=1}^n A_{ik}C_{kj} = (AB)_{ij} + (BC)_{ij} = [AB + BC]_{ij}$
I did the second part myself: We have $[k(AB)]_{ij} = k \sum_{i=1}^n A_{ik}B_{kj}$
$ = \sum_{i=1}^n kA_{ik}B_{kj} = \sum_{i=1}^n (kA)_{ik}B_{kj}$
$ = \sum_{i=1}^n A_{ik}kB_{kj} = \sum_{i=1}^n A_{ik}(kB)_{kj}$
As a result, $k(AB) = (kA)B = A(kB)$.
I noticed that the proof used the definition of matrix addition and scalar multiplication. $(B+C)_{ij} = B_{ij} + C_{ij}$ and $(kA)_{ij} = k(A)_{ij}$. Now is it possible to prove without the definitions?
I became curious because Mr. Friedberg introduced the matrix as a representation of a linear transformation over an ordered basis. So, I tried proving via the linear transformation over an ordered basis and could not do it. For example:
Let $\alpha = \{x_1, x_2 ... x_n\}$ be an ordered basis of $V, \gamma = \{z_1, z_2 ... z_m\}$ be an ordered basis of $W$,
and $T: V \rightarrow W$ be a linear transformation. Elsewhere, Mr. Friedberg already defined that $(kT)(x_j) = kT(x_j)$. Suppose that $A$ is the matrix representation of $T$.
$k(A) = k *[ \space T(x_1) \space T(x_2) \space ... \space T(x_n) \space ] = [\space kT(x_1) \space kT(x_2) \space ... \space kT(x_n) \space ] = [ \space (kT)(x_1) \space (kT)(x_2) \space ... \space (kT)(x_n) \space]$
But this is possible only because of the definition of scalar multiplication.