This does make sense:
2( -1, 2)T · ( 4, 1 )T = ( -2, 4)T · ( 4, 1 )T = -2*4 + 4*1 = -8 + 4 = -4
(Notice that there is no "dot" between the 2 and the vector following it, so this means "scaling," not dot product.)
The dot product is defined for 3D column matrices. The idea is the same: multiply corresponding elements of both column matrices, then add up all the products.
Then the dot product is:
Both column matrices must have the same number of elements.
Nothing wrong with having variables as elements of the vectors: