Let us consider the matrices as A , B , C which are the 1×3,3×3,3×1 so that the matrix ABC will be 1×1 Evidently they are comfortable for multiplication
ABC = A(BC) OR (AB ) C
(BC) = ⎡⎢⎣ax+hy+gzhx+by+fzgx+fy+cz⎤⎥⎦3×1
ABC' = A (BC) n= [x,y,z]1×3,]⎡⎢⎣ax+hy+gzhx+by+fzgx+fy+cz⎤⎥⎦3×1
=[x(ax+hy+gz)+y(hx+byfz)+z(gx+fy+cz)]1×1,
[ax2+by2cz2+2fyz+2gzx+2hxy]1×1
similarly we can find ABC as (AB)C are AB will be 1×3, and C being 3×1(AB) C will br 1×1 matrix which will be same as above.