Matrix Dot Product: Solving Linear Algebra

Click For Summary

Discussion Overview

The discussion revolves around the matrix dot product and its relation to matrix multiplication, specifically addressing the computation of the product of a matrix with itself. Participants explore the definitions and implications of the terms used in linear algebra, particularly in the context of programming languages like Mathematica.

Discussion Character

  • Technical explanation
  • Debate/contested

Main Points Raised

  • One participant presents a problem involving the product of a matrix with itself and seeks clarification on the computation.
  • Another participant explains that the product M*M results in M^2, detailing how to compute the entries using dot products of rows and columns.
  • Some participants question whether M \cdot M is equivalent to M*M, noting that it depends on the definition of 'dot' in this context.
  • There is a discussion about the confusion arising from the use of the dot notation in programming languages like Mathematica, which may imply a dot product but actually refers to matrix multiplication.
  • One participant suggests that while traditional dot products apply to vectors, an inner product can be defined for matrices, which aligns with the standard dot product on vectors in R^mn.

Areas of Agreement / Disagreement

Participants express differing views on the terminology used for matrix multiplication versus dot products. While some agree on the definitions, others highlight the potential for confusion, indicating that the discussion remains unresolved regarding the terminology.

Contextual Notes

The discussion highlights the ambiguity in the use of the term 'dot product' when applied to matrices, as well as the reliance on specific definitions that may vary across contexts.

nigels
Messages
36
Reaction score
0
Hi, here's the problem:

for m = {{a, b}, {c, d}},

m \cdot m is suppose to = {{a^2 + b c, a b + b d}, {a c + c d, b c + d^2}}

It's been ages since I took linear algebra and now can't figure out how this works.

Thanks for your help!
 
Physics news on Phys.org
That is the product M*M=M^2. When you multiply two matrices, the product will have in its ith row and jth column the dot product of the ith row of the left matrix times the jth column of the right matrix. So to get the first entry (entry in the first row, first column), you perform the dot product of (a, b) -- the first row of the first matrix with (a,c)--the first column of the second matrix. That is a*a+b*c=a^2+bc.
 
Is M \cdot M the same thing as M*M?
 
nigels said:
Is M \cdot M the same thing as M*M?

It depends on how the 'dot' has been defined. In this case it is the product of M with itself so i suspect it just gave the formula for M^2. However, it is not a "dot product". Dot products -- more generally inner products -- give back a number.
 
Hmm. I thought so.. that dot product works by summing the product of individual elements of vectors, which is why it's confusing when Mathematica uses the notation "." in the context of matrix multiplication. So, if I understand correctly, one can't really take the dot product of matrices and what I see is only the result of notational configuration by the computing language.
 
nigels said:
Hmm. I thought so.. that dot product works by summing the product of individual elements of vectors, which is why it's confusing when Mathematica uses the notation "." in the context of matrix multiplication. So, if I understand correctly, one can't really take the dot product of matrices and what I see is only the result of notational configuration by the computing language.

I would have to agree with you. Though, you can define an inner product on m x n matrices by adding the products of the corresponding entries in the matrices. It ends up being the same as the standard dot product on vectors in R^mn.
 
Thanks for the help, Davey.
 

Similar threads

  • · Replies 12 ·
Replies
12
Views
4K
  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 14 ·
Replies
14
Views
5K
  • · Replies 18 ·
Replies
18
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 23 ·
Replies
23
Views
2K
Replies
10
Views
2K
  • · Replies 9 ·
Replies
9
Views
4K