Worked examples · Sheet 2
Row-by-column products
Theory used: Row-by-column productThe column-by-column product and linear systemsProperties of the row-by-column productCommuting matricesSpecial products of matrices
Go to: Exercise 1Exercise 2Exercise 3
Exercise 1
Given the matrices
compute, if defined, the products and .
The product is defined because the number of columns of , that is , equals the number of rows of , and the result has as many rows as and as many columns as . The product is defined for the same reason, since has columns and has rows, and the result is . Each entry is obtained by multiplying a row of the first factor by a column of the second: for example the entry in position of is the product of the first row of by the second column of , that is, . The two matrices and have different dimensions, therefore they are different.
Exercise 2
Given the matrices
determine whether and commute and compare with .
The products and are both but have different entries, for example and , therefore and do not commute. By the distributive property , and this expression coincides with if and only if . Since the two matrices do not commute, the formula for the square of a binomial valid for numbers gives a result different from , as the computations confirm. The value of is checked with the correct formula: the sum has first entry and, proceeding in the same way, gives back the matrix .
Exercise 3
Given the symmetric matrix and the vector
compute as a linear combination of the columns of and the number .
The product of , which is , by the column vector , which is , is a column vector. By the reading of the column-by-column product, is the linear combination of the columns of with coefficients the components , , of ; adding the three columns multiplied in this way gives . By the associative property , so it suffices to multiply the row vector , which is , by the column vector just found. The result is a matrix, that is, the number . Expressions of this type are quadratic forms, which appear in the study of conics and quadrics.