\documentstyle[12pt]{article}
%\pagestyle{empty}

\newcount\probno
\probno=0
\def\prob{\advance\probno by 1 \bigskip\par\noindent\the\probno . }
\def\by{\times}
\def\entry{{\rm entry}}


\begin{document}

\centerline{A. Miller \hfill M340 \hfill Exam 1 \hfill Feb 97}


\prob Let
$A=
\left[
\begin{array}{ccc}
                1 &  -1 &  0
\end{array}
\right]
\mbox{ and }
B =
\left[
\begin{array}{ccc}
                0 &   1 &  -2
\end{array}
\right]
$.
Compute
$AB^T$, $A^TB$, and $(AB)^T$, or say that they have incompatible
dimensions.


\prob Let
$$A=
\left[
\begin{array}{rrrrr}
                1 &  1 &  1 & 1 & 1 \\
                0 &  1 &  1 & 1 & 1 \\
                0 &  0 &  1 & 1 & 1 \\
                0 &  0 &  0 & 1 & 1 \\
                0 &  0 &  0 & 0 & 1 \\
\end{array}
\right]
$$
Calculate $A^{-1}$ if it exists,
otherwise show that $A$ is noninvertible.

\prob Let
$$A=
\left[
\begin{array}{rrrr}
                1 &   0  &   0  &  1   \\
                0 &   x  &   1  &  0   \\
                0 &  2x  &   x  &  0   \\
               -1 &   0  &   0  &  1   \\
\end{array}
\right]
$$
For what values of $x$, if any, is $A$ noninvertible?

\prob
\par (a) State the definition:  $A$ is an invertible matrix iff ???.
\bigskip\par (b) Let $A$, $B$, and $C$ be $n\by n$ and let $I$ be the
$n\by n$ identity matrix. Suppose $AB=I$ and $CA=I$.
Prove that $B=C$ and therefore $A$ is invertible.

\prob An $n\by n$ matrix $B$ is called a diagonal matrix iff all
entries off the diagonal are zero, i.e., $\entry_{i,j}(B)=0$ for
any $i\not=j$.  Let $D$ be the $n\by n$ diagonal matrix with
$\entry_{i,i}(D)=i$ for $i=1,2,\ldots, n$.  So $D$ looks like this:
$$D=
\left[
\begin{array}{ccccc}
                1     &  0     & 0 & \ldots & 0       \\
                0     &  2     & 0 & \ldots & 0       \\
                0     &  0     & 3 &        & 0       \\
               \vdots & \vdots &   & \ddots & \vdots  \\
                0     &  0     & 0 & \ldots & n       \\
\end{array}
\right] $$
Prove that if an $n\by n$ matrix $A$ commutes with $D$, then
$A$ must be a diagonal matrix.

\newpage
\begin{center}
  Answers
\end{center}

1. $(AB)^T$ undefined.

2.
$$A^{-1}=
\left[
\begin{array}{rrrrr}
                1 & -1 &  0 & 0 & 0 \\
                0 &  1 & -1 & 0 & 0 \\
                0 &  0 &  1 &-1 & 0 \\
                0 &  0 &  0 & 1 &-1 \\
                0 &  0 &  0 & 0 & 1 \\
\end{array}
\right]
$$

3. The determinant of $A$ is $2x^2-4x$ and this is zero iff
$x=0$ or $x=2$.

4. (a) $A$ is invertible iff there exists
a matrix $B$ such that $AB=I$ and $BA=I$.
\par Remarks: It is not part of the definition that $B$ be unique.
This is the point of proving part (b).
You can make the definition more precise by including that
$B$ is $n\by n$
and $I$ is the $n\by n$ identity matrix,  if  $A$ is an
$n\by n$ matrix.  This emphasises the fact that nonsquare matrices
are not invertible.
It cannot be the definition of invertible that the determinate
is nonzero, since we have been proving theorems about invertible
matrices for three weeks before the word determinant came up.
You have confused the definition with a theorem about determinates.

\bigskip
4. (b)
\par proof:
By the associative law of multiplication of matrices
  $$(CA)B=C(AB)$$
Since $CA=I$ we have
  $$(CA)B=IB$$
Since $I$ is the identity matrix we have
  $$IB=B$$
Similarly, we have $C(AB)=CI=C$ and so putting these together
$$B=IB=(CA)B=C(AB)=CI=C$$
and thus $B=C$ as was to be proved.  Hence $BA=AB=I$ and
therefore $A$ is invertible.
QED

\par Remark: You cannot assume that $A$ is invertible, particularly
since that is part of what you are asked to prove.

\newpage
5.
Proof:
By the definition of matrix multiplication:
$$\entry_{i,j}(AD)=\sum_{k=1}^n\entry_{i,k}(A)\entry_{k,j}(D)$$
But by definition of $D$, $\entry_{k,j}(D)=0$ if $k\not= j$, so
$$\sum_{k=1}^n\entry_{i,k}(A)\entry_{k,j}(D)=
\entry_{i,j}(A)\entry_{j,j}(D)$$
Also, $\entry_{j,j}(D)=j$ and so $\entry_{i,j}(AD)=j\;\entry_{i,j}(A)$.
Similarly,
$$\entry_{i,j}(DA)=\sum_{k=1}^n\entry_{i,k}(D)\entry_{k,j}(A)=
i\;\entry_{i,j}(A)$$
Since $AD=DA$ we have that $\entry_{i,j}(AD)= \entry_{i,j}(DA)$ so
$$j\;\entry_{i,j}(A)=i\;\entry_{i,j}(A)$$
and if $i\not=j$, then this implies $\entry_{i,j}(A)=0$ and so
$A$ is diagonal. QED

\bigskip
If you don't understand this proof try
$$A=
\left[
\begin{array}{ccccc}
                a     &  b     & c      \\
                d     &  e     & f      \\
                g     &  h     & j      \\
\end{array}
\right]
\mbox{ and }
D=
\left[
\begin{array}{ccccc}
                1     &  0     & 0      \\
                0     &  2     & 0      \\
                0     &  0     & 3      \\
\end{array}
\right]
$$
Multiply out $AD$ and $DA$.  What must be true if $AD=DA$?
\begin{quote}
``If you can't solve the problem find a simplier version of the
problem, then a solve it.''
\end{quote}


\end{document}
