Is matrixs multiplication random ?

  • Context: Undergrad 
  • Thread starter Thread starter ManishR
  • Start date Start date
  • Tags Tags
    Multiplication Random
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
4 replies · 2K views
ManishR
Messages
88
Reaction score
0
lets assume matrix A = [a]mxn and B = nxp

[tex](AB)_{ij}=\sum_{r=1}^{n}A_{ir}B_{rj}[/tex]

why is that ?

i guessed it would be

[tex](AB)_{ij}=\sum_{r=1}^{n}A_{ir}B_{jr}[/tex] where m=p.

so is there any logic behind that or its just random ?
 
Physics news on Phys.org
No, it isn't random. Look at a simple 2 x 2 example:

y1 = a11x1 + a12x2
y2 = a21x1 + a22x2

Now let
z1 = b11y1 + b12y2
z2 = b21y1 + b22xy2

You can write these both in matrix form y = Ax and z = By

Now solve for the z values in terms of the x values to write z = Cx.

You will see that C = BA given by the usual matrix multiplication. That is why matrices are multiplied the way they are.

[Edit] Fixed typo.
 
Last edited:
You mean C=BA, not AB.
 
LCKurtz said:
No, it isn't random. Look at a simple 2 x 2 example:

y1 = a11x1 + a12x2
y2 = a21x1 + a22x2

Now let
z1 = b11y1 + b12y2
z2 = b21y1 + b22xy2

You can write these both in matrix form y = Ax and z = By

Now solve for the z values in terms of the x values to write z = Cx.

You will see that C = AB given by the usual matrix multiplication. That is why matrices are multiplied the way they are.

You mean C=BA, not AB.