Show that PQ=sum_(i=1)^n p_i q_i^T

bergvolk0k

bergvolk0k

Answered question

2022-10-12

For matrices P R m × n and Q R n × d , let p i be the i t h column of P, and q i T the i t h line of Q. We want to show that
P Q = i = 1 n p i q i T
I saw a proof using the fact that k p k q k T = k i j p i k q k j M i j with M i j a matrix full of zeros everywhere except ( M i j ) i j = 1
Is there a proof that does not use triple sums ?

Answer & Explanation

n8ar1val

n8ar1val

Beginner2022-10-13Added 12 answers

Let ε k denote the canonical vector basis for R n , then the indexed vectors can be written in terms of the underlying matrices as
p k = P ε k q k T = e k T Q
Therefore the sum in question can be expanded as
k = 1 n p k q k T = k = 1 n P ε k ε k T Q = P ( k = 1 n ε k ε k T ) Q = P I n Q = P Q
Danika Mckay

Danika Mckay

Beginner2022-10-14Added 5 answers

Check that the i,j entry of the left-hand side is the i,j entry of the right-hand side.
If you think about how the matrix multiplication PQ works, you will note that the i,j entry of PQ is k = 1 n p i k q k j
For the right-hand side k = 1 n p k q k , note that p i k q k j is the i,j entry of p k q k

Do you have a similar question?

Recalculate according to your conditions!

Ask your question.
Get an expert answer.

Let our experts help you. Answer in as fast as 15 minutes.

Didn't find what you were looking for?