Types: N/A
Examples: N/A
Constructions: N/A
Generalizations: N/A

Properties: N/A
Sufficiencies: N/A
Questions: N/A

Modify Rows of a Matrix

Let AR4×3. Use 11.3 Matrix-Matrix Multiplication via Linear Combination of Rows to multiply row i by 23i.

\begin{proof}[Solution.]
Let's begin by finding our algebraic worker D to multiply each row i by 23i. To modify each row, we use a 8.5 Diagonal Matrix. We can get the diagonal matrix we need by multiplying our constraint with each row of the 8.6 Identity Matrix.

[D]4×4=23iI(i,:)=[231000023200002330000234]4×4=[4000020000100000.5]4×4

We use a 4×4 matrix because we want to modify 4 rows of A while still maintaining same output dimensions as the input. Recall that the inner dimensions must agree.

B=[4000020000100000.5]4×4[a11a12a13a21a22a23a31a32a33a41a42a43]4×3

Now, we can compute the rows of B.

B(1,:)=D(1,:)A=[4000]1×4[a11a12a13a21a22a23a31a32a33a41a42a43]4×3=4[a11a12a13]+0[a21a22a23]+0[a31a32a33]+0[a41a42a43]=4[a11a12a13]

We see that the first row of the product is 4 times the first row of matrix A. Let's continue on to row 2 of B.

B(2,:)=D(2,:)A=[0200]1×4[a11a12a13a21a22a23a31a32a33a41a42a43]4×3=0[a11a12a13]+2[a21a22a23]+0[a31a32a33]+0[a41a42a43]=2[a21a22a23]

Again, we see that the second row of B is two times the second row of A. Let's continue to row 3.

B(3,:)=D(3,:)A=[0010]1×4[a11a12a13a21a22a23a31a32a33a41a42a43]4×3=0[a11a12a13]+0[a21a22a23]+1[a31a32a33]+0[a41a42a43]=[a31a32a33]

Let's finish with row 4.

B(4,:)=D(4,:)A=[0000.5]1×4[a11a12a13a21a22a23a31a32a33a41a42a43]4×3=0[a11a12a13]+0[a21a22a23]+0[a31a32a33]+0.5[a41a42a43]=0.5[a41a42a43]

There seems to be a pattern. For every row of B, we see that it is just multiplied by the corresponding row of D. Let's make a conjecture about this pattern.

Conjecture

Let diagonal matrix DRn×n and ARn×m. When multiplying matrix A on the left by D, we see

B(i,:)=D(i,:)A=D1(c1)D2(c2)Di(ci)

\end{proof}