Matrix multiplication vs dot product

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
4 replies · 21K views
jabers
Messages
15
Reaction score
0
What is the difference between matrix multiplication and the dot product of two matrices? Is there a difference?

If,

[tex]A =<br /> \begin{pmatrix}<br /> a & b \\<br /> c & d<br /> \end{pmatrix}[/tex]

and

[tex]B =<br /> \begin{pmatrix}<br /> e & f \\<br /> g & h<br /> \end{pmatrix}[/tex]

then does
[tex] {\mathbf{A} \cdot \mathbf{B}} =<br /> \begin{pmatrix}<br /> ae & bf \\<br /> cg & dh<br /> \end{pmatrix}[/tex]

and

[tex]AB = <br /> \begin{pmatrix}<br /> ae + bg & af + bh \\<br /> ce + dg & cf + dh<br /> \end{pmatrix}[/tex]

? Is this correct? Any help would be appreciated.
 
Physics news on Phys.org
Don't confuse dot product of matrix with vectors. The second product is correct.
 
so,

[tex]{\mathbf{A} \cdot \mathbf{B}} = AB = <br /> \begin{pmatrix}<br /> ae + bg & af + bh \\<br /> ce + dg & cf + dh<br /> \end{pmatrix}[/tex]

With matrices the dot product means that you need to multiply the matrices? Correct?
 
Usually the "dot product" of two matrices is not defined. I think a "dot product" should output a real (or complex) number. So one definition of A[itex]\bullet[/itex]B is ae + bf + cg + df. This is thinking of A, B as elements of R^4. If we want our dot product to be a bi-linear map into R this is how we need to define it (up to multiplication by a constant).
 
You should view AB as a collection of dot products ie.
ab11 (top left of AB) can be described as the dot product of

\begin{pmatrix}
a & b
\end{pmatrix}dot\begin{pmatrix}
e \\
g
\end{pmatrix}

and so on for the rest of the positions.