Linear AlgebraMatrix Algebra4 of 9
Matrix Algebra · 4

The Transpose and Symmetry

A matrix connects a set of inputs to a set of outputs, and flipping its rows into columns lets us trace those exact same connections in the opposite direction.

1

Turning Rows into Columns and Inputs into Outputs

To find the transpose of a matrix AA, we turn each row of AA into a column of ATA^T, which swaps the roles of the inputs and outputs in the network.

Turning Rows into Columns and Inputs into Outputs
A=A =
1\htmlClass{lc-green}{1}
2\htmlClass{lc-green}{2}
3\htmlClass{lc-green}{3}
4\htmlClass{lc-pink}{4}
5\htmlClass{lc-pink}{5}
6\htmlClass{lc-pink}{6}
2×3\htmlClass{lc-mute}{2 \times 3}
AT=?A^T = \mathord{?}
A=A =
1\htmlClass{lc-green}{1}
2\htmlClass{lc-green}{2}
3\htmlClass{lc-green}{3}
4\htmlClass{lc-pink}{4}
5\htmlClass{lc-pink}{5}
6\htmlClass{lc-pink}{6}
inputs\htmlClass{lc-mute}{\text{inputs}}
outputs\htmlClass{lc-mute}{\text{outputs}}
11
22
33
1\htmlClass{lc-green}{1}
2\htmlClass{lc-pink}{2}
1\htmlClass{lc-green}{1}
2\htmlClass{lc-green}{2}
3\htmlClass{lc-green}{3}
4\htmlClass{lc-pink}{4}
5\htmlClass{lc-pink}{5}
6\htmlClass{lc-pink}{6}
AT=A^T =
1\htmlClass{lc-green}{1}
4\htmlClass{lc-pink}{4}
2\htmlClass{lc-green}{2}
5\htmlClass{lc-pink}{5}
3\htmlClass{lc-green}{3}
6\htmlClass{lc-pink}{6}
inputs\htmlClass{lc-mute}{\text{inputs}}
outputs\htmlClass{lc-mute}{\text{outputs}}
11
22
33
1\htmlClass{lc-green}{1}
2\htmlClass{lc-pink}{2}
1\htmlClass{lc-green}{1}
2\htmlClass{lc-green}{2}
3\htmlClass{lc-green}{3}
4\htmlClass{lc-pink}{4}
5\htmlClass{lc-pink}{5}
6\htmlClass{lc-pink}{6}
Text solution
Turn each row of AA into a column of ATA^TThe first row [1,2,3]\first{[1, 2, 3]} and second row [4,5,6]\second{[4, 5, 6]} become the first and second columns of the transposed matrix.
A=[123456]⟶AT⏟transpose=[142536]\displaystyle A = \begin{bmatrix} \first{1} & \first{2} & \first{3} \\ \second{4} & \second{5} & \second{6} \end{bmatrix} \quad \longrightarrow \quad \underbrace{A^T}_{\text{transpose}} = \begin{bmatrix} \first{1} & \second{4} \\ \first{2} & \second{5} \\ \first{3} & \second{6} \end{bmatrix}
Read the columns of ATA^T from outputs back to inputsBecause Row ii of AA showed how Output ii gathered from all 33 inputs, Column ii of ATA^T now shows how Output ii sends back to those same 33 inputs.
Row i of A (into Output i)⟶Column i of AT (out of Output i)\displaystyle \begin{gathered} \text{Row } i \text{ of } A \text{ (into Output } i\text{)} \quad \longrightarrow \\ \text{Column } i \text{ of } A^T \text{ (out of Output } i\text{)} \end{gathered}
2

Moving a Matrix Across a Dot Product

Tracing connections backward does not undo the matrix, which is the job of the inverse A−1A^{-1}. Instead, the transpose tells us how to move a matrix from one vector to the other inside a dot product.

To take the dot product of two column vectors x\first{x} and y\second{y} using matrix multiplication, we transpose the first vector into a row so it can dot with the column on the right:

x⋅y\displaystyle \first{x} \cdot \second{y} =xTy\displaystyle = \first{x}^T \second{y}

Now suppose a matrix A\acting{A} multiplies y\second{y} inside that dot product, x⋅(Ay)\first{x} \cdot (\acting{A}\second{y}), and we want to move A\acting{A} onto x\first{x} instead.

Moving a Matrix Across a Dot Product
x⋅(A y)\displaystyle \first{x} \cdot (\acting{A}\,\second{y}) =(  ?  )⋅y\displaystyle = (\;\mathord{?}\;) \cdot \second{y}
Text solution
Group A\acting{A} with y\second{y} on the rightMultiply y\second{y} by A\acting{A} first, then take the dot product of x\first{x} with the resulting vector Ay\acting{A}\second{y}.
x⋅(Ay)=[12]⋅([1301][21])=[12]⋅[51]=7\displaystyle \begin{aligned} \first{x} \cdot (\acting{A}\second{y}) &= \first{\begin{bmatrix} 1 \\ 2 \end{bmatrix}} \cdot \left(\begin{bmatrix} 1 & 3 \\ 0 & 1 \end{bmatrix}\second{\begin{bmatrix} 2 \\ 1 \end{bmatrix}}\right) \\ &= \first{\begin{bmatrix} 1 \\ 2 \end{bmatrix}} \cdot \built{\begin{bmatrix} 5 \\ 1 \end{bmatrix}} = 7 \end{aligned}
Move A\acting{A} across the dot onto x\first{x} as AT\acting{A}^TMoving the matrix to the left side swaps which vector is on the row side and which is on the column side, so every entry of A\acting{A} flips across the diagonal into AT\acting{A}^T to keep pairing the same entries of x\first{x} and y\second{y}.
(ATx)⋅y=([1031][12])⋅[21]=[15]⋅[21]=7\displaystyle \begin{aligned} (\acting{A}^T \first{x}) \cdot \second{y} &= \left(\begin{bmatrix} 1 & 0 \\ 3 & 1 \end{bmatrix}\first{\begin{bmatrix} 1 \\ 2 \end{bmatrix}}\right) \cdot \second{\begin{bmatrix} 2 \\ 1 \end{bmatrix}} \\ &= \built{\begin{bmatrix} 1 \\ 5 \end{bmatrix}} \cdot \second{\begin{bmatrix} 2 \\ 1 \end{bmatrix}} = 7 \end{aligned}

When A\acting{A} moves across the dot from x⋅(Ay)\first{x} \cdot (\acting{A}\second{y}) to (ATx)⋅y(\acting{A}^T \first{x}) \cdot \second{y}, it flips across its main diagonal into AT\acting{A}^T. That keeps every entry (i,j)(\first{i}, \second{j}) paired with the exact same xi\first{x_i} and yj\second{y_j}, so the dot product stays the same.

Moving a matrix to the other side of a dot product flips it across its diagonal so every number stays wired to the same parts of both vectors.

For any matrix A\acting{A} and vectors x\first{x} and y\second{y} of matching sizes, moving the matrix across the dot puts a transpose on it:

x⋅(Ay)\displaystyle \first{x} \cdot (\acting{A}\second{y}) =(ATx)⋅y\displaystyle = (\acting{A}^T \first{x}) \cdot \second{y}
3

Transposing Sums and Products

Next, we want to transpose expressions where matrices are scaled, added, or multiplied together. Scaling or adding matrices happens entry by entry, while multiplying AB\first{A}\second{B} chains two input-output steps one after the other.

Transposing Sums and Products
(AB)T\displaystyle (\first{A}\second{B})^T =?\displaystyle = \mathord{?}
B\htmlClass{lc-pink}{B}
2×32 \times 3
A\htmlClass{lc-green}{A}
4×24 \times 2
inputs\htmlClass{lc-mute}{\text{inputs}}
middle\htmlClass{lc-mute}{\text{middle}}
outputs\htmlClass{lc-mute}{\text{outputs}}
11
22
33
11
22
11
22
33
44
AB\htmlClass{lc-green}{A}\htmlClass{lc-pink}{B}
BT\htmlClass{lc-pink}{B}^T
3×23 \times 2
AT\htmlClass{lc-green}{A}^T
2×42 \times 4
inputs\htmlClass{lc-mute}{\text{inputs}}
middle\htmlClass{lc-mute}{\text{middle}}
outputs\htmlClass{lc-mute}{\text{outputs}}
11
22
33
11
22
11
22
33
44
(AB)T=BTAT(\htmlClass{lc-green}{A}\htmlClass{lc-pink}{B})^T = \htmlClass{lc-pink}{B}^T \htmlClass{lc-green}{A}^T

Flipping a matrix twice returns the original matrix, and we can transpose a sum or scalar multiple term by term, but transposing a product reverses the order of multiplication:

(AT)T=A(cA)T=cAT(A+B)T=AT+BT\displaystyle \begin{aligned} (\first{A}^T)^T &= \first{A} \\ (c\first{A})^T &= c\first{A}^T \\ (\first{A} + \second{B})^T &= \first{A}^T + \second{B}^T \end{aligned}
(AB)T=BTAT(ABC)T=CTBTAT\displaystyle \begin{aligned} (\first{A}\second{B})^T &= \second{B}^T \first{A}^T \\ (\first{A}\second{B}\third{C})^T &= \third{C}^T \second{B}^T \first{A}^T \end{aligned}

Even when A\first{A} and B\second{B} are square, entry (i,j)(\first{i}, \second{j}) of AB\first{A}\second{B} comes from dotting Row i\first{i} of A\first{A} on the left with Column j\second{j} of B\second{B} on the right. In (AB)T(\first{A}\second{B})^T, that number moves to position (j,i)(\second{j}, \first{i}). To get that same dot product in position (j,i)(\second{j}, \first{i}), Column j\second{j} of B\second{B} has to become Row j\second{j} of BT\second{B}^T on the left, and Row i\first{i} of A\first{A} has to become Column i\first{i} of AT\first{A}^T on the right.

When you transpose a matrix product, moving an entry across the diagonal turns the second matrix's column into the row on the left and the first matrix's row into the column on the right, which only happens when you reverse the order of the matrices.
4

Symmetric Matrices

A square matrix is symmetric when it equals its own transpose, meaning every entry across the main diagonal matches its mirror image and every connection between ii and jj is equal in both directions.

Symmetric Matrices
A=A =
22
55
−1-1
55
33
44
−1-1
44
66
AT=?A^T = \mathord{?}
Text solution
Apply the reverse-order rule to (AB)T(\first{A}\second{B})^TEven when AT=A\first{A}^T = \first{A} and BT=B\second{B}^T = \second{B}, transposing their product reverses the multiplication order to BA\second{B}\first{A}.
(AB)T\displaystyle (\first{A}\second{B})^T =BTAT\displaystyle = \second{B}^T \first{A}^T =BA\displaystyle = \second{B}\first{A}
Multiply A\first{A} and B\second{B} to see why AB\first{A}\second{B} is not symmetricBecause B\second{B} triples the second column of A\first{A} without tripling the second row, the off-diagonal entries 6\mismatch{6} and 2\mismatch{2} no longer match.
AB=[1221][1003]=[1623]≠(AB)T\displaystyle \first{A}\second{B} = \begin{bmatrix} 1 & 2 \\ 2 & 1 \end{bmatrix}\begin{bmatrix} 1 & 0 \\ 0 & 3 \end{bmatrix} = \begin{bmatrix} 1 & \mismatch{6} \\ \mismatch{2} & 3 \end{bmatrix} \neq (\first{A}\second{B})^T

To guarantee a symmetric product even when AB≠BA\first{A}\second{B} \neq \second{B}\first{A}, put one matrix on both sides of the other so the order reads the same backward and forward:

(ABA)T\displaystyle (\first{A}\second{B}\first{A})^T =ATBTAT\displaystyle = \first{A}^T \second{B}^T \first{A}^T =ABA\displaystyle = \first{A}\second{B}\first{A}
5

Building Symmetry with ATAA^T A and AATA A^T

Most data tables aren't symmetric or even square. To build a square, symmetric comparison table from any rectangular matrix AA, we multiply AA by its own transpose in either order.

Building Symmetry with AᵀA and AAᵀ
A=A =
movies\htmlClass{lc-mute}{\text{movies}}
c1\htmlClass{lc-green}{c_1}
c2\htmlClass{lc-pink}{c_2}
people\htmlClass{lc-mute}{\text{people}}
r1r_1
r2r_2
r3r_3
1\htmlClass{lc-green}{1}
2\htmlClass{lc-pink}{2}
3\htmlClass{lc-green}{3}
0\htmlClass{lc-pink}{0}
4\htmlClass{lc-green}{4}
1\htmlClass{lc-pink}{1}
3×2\htmlClass{lc-mute}{3 \times 2}
ATA=?A^TA = \mathord{?}
AAT=?AA^T = \mathord{?}
Text solution
Put ATA^T on the left to compare the 22 columns (movies)The rows of ATA^T are the columns of AA, so ATAA^T A dots every column of AA with every column of AA to build a 2×22 \times 2 symmetric table.
ATA⏟2×2 columncomparison=[134201][123041]=[c1⋅c1c1⋅c2c2⋅c1c2⋅c2]=[26665]\displaystyle \begin{aligned} \underbrace{A^T A}_{\substack{2 \times 2 \text{ column} \\ \text{comparison}}} &= \begin{bmatrix} \first{1} & \first{3} & \first{4} \\ \second{2} & \second{0} & \second{1} \end{bmatrix}\begin{bmatrix} \first{1} & \second{2} \\ \first{3} & \second{0} \\ \first{4} & \second{1} \end{bmatrix} \\ &= \begin{bmatrix} \first{c_1} \cdot \first{c_1} & \first{c_1} \cdot \second{c_2} \\ \second{c_2} \cdot \first{c_1} & \second{c_2} \cdot \second{c_2} \end{bmatrix} \\ &= \built{\begin{bmatrix} 26 & 6 \\ 6 & 5 \end{bmatrix}} \end{aligned}
Put AA on the left to compare the 33 rows (people)Now AA puts its 33 rows on the left and ATA^T puts those same rows as columns on the right, dotting every row with every row to build a 3×33 \times 3 symmetric table.
AAT⏟3×3 rowcomparison=[123041][134201]=[536391261217]\displaystyle \begin{aligned} \underbrace{A A^T}_{\substack{3 \times 3 \text{ row} \\ \text{comparison}}} &= \begin{bmatrix} \first{1} & \second{2} \\ \first{3} & \second{0} \\ \first{4} & \second{1} \end{bmatrix}\begin{bmatrix} \first{1} & \first{3} & \first{4} \\ \second{2} & \second{0} & \second{1} \end{bmatrix} \\ &= \built{\begin{bmatrix} 5 & 3 & 6 \\ 3 & 9 & 12 \\ 6 & 12 & 17 \end{bmatrix}} \end{aligned}
6

Symmetric and Skew-Symmetric Parts

Instead of multiplying a square matrix AA by ATA^T, we can average AA and ATA^T to get its two-way symmetric part, and take half their difference to get its one-way skew-symmetric part.

Symmetric and Skew-Symmetric Parts
A=A =
22
6\htmlClass{lc-orange}{6}
0\htmlClass{lc-orange}{0}
44
S=?\htmlClass{lc-blue}{S} = \mathord{?}
K=?K = \mathord{?}
Text solution
Average AA and ATA^T to get the symmetric part S\built{S}Adding AA and ATA^T and dividing by 22 keeps the diagonal entries 22 and 44 and replaces the off-diagonal pair 6\mismatch{6} and 0\mismatch{0} with their average, 3\built{3}.
S=12(A+AT)=12([2604]+[2064])=[2334]\displaystyle \begin{aligned} \built{S} &= \built{\frac{1}{2}(A + A^T)} \\ &= \frac{1}{2}\left(\begin{bmatrix} 2 & \mismatch{6} \\ \mismatch{0} & 4 \end{bmatrix} + \begin{bmatrix} 2 & \mismatch{0} \\ \mismatch{6} & 4 \end{bmatrix}\right) \\ &= \built{\begin{bmatrix} 2 & 3 \\ 3 & 4 \end{bmatrix}} \end{aligned}
Take half the difference to get the skew-symmetric part KKSubtracting ATA^T from AA and dividing by 22 puts zeros on the main diagonal and opposite entries +3+3 and −3-3 across it, so KT=−KK^T = -K.
K=12(A−AT)=12([2604]−[2064])=[03−30]\displaystyle \begin{aligned} K &= \frac{1}{2}(A - A^T) \\ &= \frac{1}{2}\left(\begin{bmatrix} 2 & \mismatch{6} \\ \mismatch{0} & 4 \end{bmatrix} - \begin{bmatrix} 2 & \mismatch{0} \\ \mismatch{6} & 4 \end{bmatrix}\right) \\ &= \begin{bmatrix} 0 & 3 \\ -3 & 0 \end{bmatrix} \end{aligned}
Add S\built{S} and KK to get AA backThe +AT+A^T and −AT-A^T terms cancel out, splitting AA into its two-way average and its one-way difference.
A=12(A+AT)⏟symmetric S+12(A−AT)⏟skew-symmetric K=[2334]+[03−30]=[2604]\displaystyle \begin{aligned} A &= \underbrace{\built{\frac{1}{2}(A + A^T)}}_{\text{symmetric } \built{S}} + \underbrace{\frac{1}{2}(A - A^T)}_{\text{skew-symmetric } K} \\ &= \built{\begin{bmatrix} 2 & 3 \\ 3 & 4 \end{bmatrix}} + \begin{bmatrix} 0 & 3 \\ -3 & 0 \end{bmatrix} = \begin{bmatrix} 2 & \mismatch{6} \\ \mismatch{0} & 4 \end{bmatrix} \end{aligned}

In a 2×22 \times 2 matrix AA, the symmetric part S=12(A+AT)\built{S} = \built{\frac{1}{2}(A + A^T)} averages the two off-diagonal entries and stretches or flips space along perpendicular axes. The skew-symmetric part K=12(A−AT)K = \frac{1}{2}(A - A^T) takes half their difference, which turns space a quarter turn and scales it, and disappears whenever the two off-diagonal entries match.

Any square matrix splits into a symmetric part using the average of its cross-connections, and a skew-symmetric part using half their difference.

Key concepts

Flipping rows into columns swaps inputs and outputs

Entry (i,j)(i, j) of AA moves to (j,i)(j, i) of ATA^T, so Row ii of AA (how Output ii gathers from the inputs) becomes Column ii of ATA^T (how Output ii sends back to the inputs). On a square matrix, the main diagonal stays in place while off-diagonal entries flip across it.

Moving a matrix across a dot product transposes it

Because x⋅y=xTy\first{x} \cdot \second{y} = \first{x}^T \second{y}, you can move A\acting{A} from one vector to the other by transposing it:

x⋅(Ay)\displaystyle \first{x} \cdot (\acting{A}\second{y}) =(ATx)⋅y\displaystyle = (\acting{A}^T \first{x}) \cdot \second{y}
Use this whenever you already know ATx\acting{A}^T \first{x} (for example, if ATx=[25]\acting{A}^T \first{x} = \built{\begin{bmatrix} 2 \\ 5 \end{bmatrix}} and y=[13]\second{y} = \second{\begin{bmatrix} 1 \\ 3 \end{bmatrix}}, then x⋅(Ay)=[25]⋅[13]=17\first{x} \cdot (\acting{A}\second{y}) = \built{\begin{bmatrix} 2 \\ 5 \end{bmatrix}} \cdot \second{\begin{bmatrix} 1 \\ 3 \end{bmatrix}} = 17 with no need to find A\acting{A}).

Reverse the order when transposing a product

Sums transpose term by term, (A+B)T=AT+BT(\first{A} + \second{B})^T = \first{A}^T + \second{B}^T, but products reverse order:

(AB)T=BTAT(ABC)T=CTBTAT\displaystyle \begin{aligned} (\first{A}\second{B})^T &= \second{B}^T \first{A}^T \\ (\first{A}\second{B}\third{C})^T &= \third{C}^T \second{B}^T \first{A}^T \end{aligned}
Don't write (AB)T(\first{A}\second{B})^T as ATBT\first{A}^T \second{B}^T. Even if A\first{A} and B\second{B} are square, ATBT\first{A}^T \second{B}^T dots the wrong rows and columns together.

Symmetry (AT=AA^T = A) vs. skew-symmetry (KT=−KK^T = -K)

A symmetric matrix has matching entries across the diagonal (aij=aji\built{a_{ij}} = \built{a_{ji}}); a skew-symmetric matrix has opposite entries across the diagonal (kij=−kjik_{ij} = -k_{ji}) and must have 00s all along the main diagonal. Don't assume the product AB\first{A}\second{B} of two symmetric matrices is symmetric: (AB)T=BA(\first{A}\second{B})^T = \second{B}\first{A}, which only equals AB\first{A}\second{B} when AB=BA\first{A}\second{B} = \second{B}\first{A}.

Building and splitting symmetry

For any rectangular m×nm \times n matrix AA, put the items you want to compare into the rows of the left matrix: ATAA^T A (n×nn \times n) dots columns with columns, while AATA A^T (m×mm \times m) dots rows with rows. For any square matrix AA, split it into its symmetric average and skew-symmetric difference:

A\displaystyle A =12(A+AT)+12(A−AT)\displaystyle = \built{\frac{1}{2}(A + A^T)} + \frac{1}{2}(A - A^T)

7

Practice

1

Let A=[20−1354]A = \begin{bmatrix} 2 & 0 & -1 \\ 3 & 5 & 4 \end{bmatrix} represent a network where 33 inputs feed 22 outputs. Write ATA^T, and state which column of ATA^T tells how Output 22 sends back to the 33 inputs.

Which row of AA gathers the connections into Output 22, and where does that row go when you transpose AA?

Turn the 22 rows of AA into the 22 columns of ATA^T:
AT=[2305−14]\displaystyle A^T = \begin{bmatrix} \first{2} & \second{3} \\ \first{0} & \second{5} \\ \first{-1} & \second{4} \end{bmatrix}
Be careful not to pick the second column of AA, [05]\begin{bmatrix} 0 \\ 5 \end{bmatrix}, which belongs to Input 22 rather than Output 2\second{2}. Output 2\second{2} is Row 2\second{2} of AA, so in ATA^T it becomes Column 2\second{2} of ATA^T, [354]\second{\begin{bmatrix} 3 \\ 5 \\ 4 \end{bmatrix}}.
2

Suppose A\acting{A} is a 3×33 \times 3 matrix and you only know that ATx=[2−14]\acting{A}^T \first{x} = \built{\begin{bmatrix} 2 \\ -1 \\ 4 \end{bmatrix}} for a vector x\first{x}. If y=[352]\second{y} = \second{\begin{bmatrix} 3 \\ 5 \\ 2 \end{bmatrix}}, find x⋅(Ay)\first{x} \cdot (\acting{A}\second{y}).

Move A\acting{A} across the dot product so it multiplies x\first{x} instead of y\second{y}.

Move A\acting{A} across the dot onto x\first{x} as AT\acting{A}^T, then dot ATx\acting{A}^T \first{x} with y\second{y} (watch the negative sign on −1⋅5=−5-1 \cdot 5 = -5; adding +5+5 instead gives the wrong answer 1919):
x⋅(Ay)=(ATx)⋅y=[2−14]⋅[352]=2(3)+(−1)(5)+4(2)=9\displaystyle \begin{aligned} \first{x} \cdot (\acting{A}\second{y}) &= (\acting{A}^T \first{x}) \cdot \second{y} = \built{\begin{bmatrix} 2 \\ -1 \\ 4 \end{bmatrix}} \cdot \second{\begin{bmatrix} 3 \\ 5 \\ 2 \end{bmatrix}} \\ &= 2(3) + (-1)(5) + 4(2) = 9 \end{aligned}
3

Given AT=[13−12]\first{A}^T = \begin{bmatrix} 1 & 3 \\ -1 & 2 \end{bmatrix} and BT=[2014−21]\second{B}^T = \begin{bmatrix} 2 & 0 \\ 1 & 4 \\ -2 & 1 \end{bmatrix}, find (AB)T(\first{A}\second{B})^T and explain why ATBT\first{A}^T \second{B}^T cannot be multiplied.

Write the sizes of AT\first{A}^T and BT\second{B}^T first. Which multiplication order makes their inner dimensions match?

You don't need to transpose AT\first{A}^T and BT\second{B}^T back into A\first{A} and B\second{B}; use them directly in the reverse-order rule (AB)T=BTAT(\first{A}\second{B})^T = \second{B}^T \first{A}^T:
(AB)T=BTAT=[2014−21][13−12]=[26−311−3−4]\displaystyle \begin{aligned} (\first{A}\second{B})^T = \second{B}^T \first{A}^T &= \begin{bmatrix} 2 & 0 \\ 1 & 4 \\ -2 & 1 \end{bmatrix}\begin{bmatrix} 1 & 3 \\ -1 & 2 \end{bmatrix} \\ &= \begin{bmatrix} 2 & 6 \\ -3 & 11 \\ -3 & -4 \end{bmatrix} \end{aligned}
The product ATBT\first{A}^T \second{B}^T has sizes (2×2)(3×2)(2 \times \mismatch{2})(\mismatch{3} \times 2), so its inner dimensions 2\mismatch{2} and 3\mismatch{3} do not match.
4

Find a,b,ca, b, c so that A=[4a−271bc50]A = \begin{bmatrix} 4 & a & -2 \\ 7 & 1 & b \\ c & 5 & 0 \end{bmatrix} is symmetric, and find x,y,zx, y, z so that K=[x−34y0−1z10]K = \begin{bmatrix} x & -3 & 4 \\ y & 0 & -1 \\ z & 1 & 0 \end{bmatrix} is skew-symmetric.

Compare each unknown to its mirror entry across the main diagonal: when do mirror entries match, and when are they opposites?

For A=ATA = A^T, mirror entries across the diagonal must be equal, giving a=7a = 7, b=5b = 5, and c=−2c = -2. For KT=−KK^T = -K, don't copy the same signs across the diagonal (which would give y=−3,z=4y = -3, z = 4) or leave xx as any number: every diagonal entry of a skew-symmetric matrix must be zero and mirror entries must have opposite signs, giving x=0x = 0, y=3y = 3, and z=−4z = -4.
5

The 4×24 \times 2 matrix A=[12012−111]A = \begin{bmatrix} 1 & 2 \\ 0 & 1 \\ 2 & -1 \\ 1 & 1 \end{bmatrix} records how 44 people (rows) rated 22 movies (columns). State whether ATAA^T A or AATA A^T gives the 2×22 \times 2 movie comparison table, and compute it.

Are the 22 movies the rows or the columns of AA, and which product puts them into the rows of the left matrix?

The 22 movies are the columns of AA, so ATAA^T A puts those 22 columns into the rows on the left to build the 2×22 \times 2 movie comparison table (computing AATA A^T instead would give the 4×44 \times 4 person comparison table). Watch (−1)2=+1(-1)^2 = +1 in the bottom-right entry (subtracting 11 gives 55 instead of 77):
ATA=[102121−11][12012−111]=[6117]\displaystyle A^T A = \begin{bmatrix} \first{1} & \first{0} & \first{2} & \first{1} \\ \second{2} & \second{1} & \second{-1} & \second{1} \end{bmatrix}\begin{bmatrix} \first{1} & \second{2} \\ \first{0} & \second{1} \\ \first{2} & \second{-1} \\ \first{1} & \second{1} \end{bmatrix} = \built{\begin{bmatrix} 6 & 1 \\ 1 & 7 \end{bmatrix}}
6

Split A=[38−22−16405]A = \begin{bmatrix} 3 & 8 & -2 \\ 2 & -1 & 6 \\ 4 & 0 & 5 \end{bmatrix} into the sum of a symmetric matrix SS and a skew-symmetric matrix KK.

For each off-diagonal pair, what is their average, and what is half their difference?

Don't forget to divide both A+ATA + A^T and A−ATA - A^T by 22 (leaving out the 12\frac{1}{2} makes the two matrices add up to 2A2A instead of AA):
S=12(A+AT)=12([38−22−16405]+[3248−10−265])=[3515−13135]\displaystyle \begin{aligned} & \built{S} = \built{\frac{1}{2}(A + A^T)} \\ &\quad = \frac{1}{2}\Bigg(\begin{bmatrix} 3 & 8 & -2 \\ 2 & -1 & 6 \\ 4 & 0 & 5 \end{bmatrix} \\ &\qquad\quad + \begin{bmatrix} 3 & 2 & 4 \\ 8 & -1 & 0 \\ -2 & 6 & 5 \end{bmatrix}\Bigg) \\ &\quad = \built{\begin{bmatrix} 3 & 5 & 1 \\ 5 & -1 & 3 \\ 1 & 3 & 5 \end{bmatrix}} \end{aligned}
K=12(A−AT)=12([38−22−16405]−[3248−10−265])=[03−3−3033−30]\displaystyle \begin{aligned} & K = \frac{1}{2}(A - A^T) \\ &\quad = \frac{1}{2}\Bigg(\begin{bmatrix} 3 & 8 & -2 \\ 2 & -1 & 6 \\ 4 & 0 & 5 \end{bmatrix} \\ &\qquad\quad - \begin{bmatrix} 3 & 2 & 4 \\ 8 & -1 & 0 \\ -2 & 6 & 5 \end{bmatrix}\Bigg) \\ &\quad = \begin{bmatrix} 0 & 3 & -3 \\ -3 & 0 & 3 \\ 3 & -3 & 0 \end{bmatrix} \end{aligned}
7

Let A=[1225]\first{A} = \begin{bmatrix} 1 & 2 \\ 2 & 5 \end{bmatrix} and B=[111k]\second{B} = \begin{bmatrix} 1 & 1 \\ 1 & k \end{bmatrix}. (a) Find the value of kk for which the product AB\first{A}\second{B} is symmetric. (b) For any two symmetric matrices A\first{A} and B\second{B} of the same size, use the transpose rules to show that AB+BA\first{A}\second{B} + \second{B}\first{A} is always symmetric and AB−BA\first{A}\second{B} - \second{B}\first{A} is always skew-symmetric.

(a) Multiply AB\first{A}\second{B} and compare the two off-diagonal entries. (b) What does (AB)T(\first{A}\second{B})^T simplify to when AT=A\first{A}^T = \first{A} and BT=B\second{B}^T = \second{B}?

(a) Multiply A\first{A} and B\second{B}:
AB=[1225][111k]=[31+2k72+5k]\displaystyle \first{A}\second{B} = \begin{bmatrix} 1 & 2 \\ 2 & 5 \end{bmatrix}\begin{bmatrix} 1 & 1 \\ 1 & k \end{bmatrix} = \begin{bmatrix} 3 & \built{1 + 2k} \\ \built{7} & 2 + 5k \end{bmatrix}
Match the two off-diagonal entries (not the diagonal entries 33 and 2+5k2 + 5k, which would give k=15k = \tfrac{1}{5}): 1+2k=7\built{1 + 2k} = \built{7}, so k=3k = 3.
(b) Because AT=A\first{A}^T = \first{A} and BT=B\second{B}^T = \second{B}, reversing the order gives (AB)T=BTAT=BA(\first{A}\second{B})^T = \second{B}^T \first{A}^T = \second{B}\first{A} and (BA)T=ATBT=AB(\second{B}\first{A})^T = \first{A}^T \second{B}^T = \first{A}\second{B}. Therefore:
(AB+BA)T=(AB)T+(BA)T=BA+AB=AB+BA(symmetric)\displaystyle \begin{aligned} & (\first{A}\second{B} + \second{B}\first{A})^T = (\first{A}\second{B})^T \\ &\quad + (\second{B}\first{A})^T = \second{B}\first{A} + \first{A}\second{B} \\ &\quad = \first{A}\second{B} + \second{B}\first{A} \quad \text{(symmetric)} \end{aligned}
(AB−BA)T=(AB)T−(BA)T=BA−AB=−(AB−BA)(skew-symmetric)\displaystyle \begin{aligned} & (\first{A}\second{B} - \second{B}\first{A})^T = (\first{A}\second{B})^T \\ &\quad - (\second{B}\first{A})^T = \second{B}\first{A} - \first{A}\second{B} \\ &\quad = -(\first{A}\second{B} - \second{B}\first{A}) \quad \\ &\quad \text{(skew-symmetric)} \end{aligned}
8

Suppose KK is an n×nn \times n skew-symmetric matrix (KT=−KK^T = -K). Show that for any n×mn \times m matrix BB, the product BTKBB^T K B is also skew-symmetric, and use this to find xTKxx^T K x for any column vector xx.

Apply the reverse-order transpose rule to (BTKB)T(B^T K B)^T, then ask what a 1×11 \times 1 skew-symmetric matrix must equal.

Reverse the order of the three-matrix product and substitute KT=−KK^T = -K (keep the minus sign from −K-K; dropping it makes BTKBB^T K B look symmetric):
(BTKB)T=BTKT(BT)T=BT(−K)B=−(BTKB)\displaystyle \begin{aligned} (B^T K B)^T &= B^T K^T (B^T)^T \\ &= B^T (-K) B = -(B^T K B) \end{aligned}
So BTKBB^T K B is skew-symmetric. When BB is a single column vector xx, xTKxx^T K x is a 1×11 \times 1 skew-symmetric matrix, which is a single number on the main diagonal equal to its own negative, so xTKx=0x^T K x = 0.