Plugin installed incorrectly. Rename plugin directory '_include' to 'include'.
Plugin installed incorrectly. Rename plugin directory '__include' to 'include'.
lecture_8
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| lecture_8 [2015/02/12 10:28] – rupert | lecture_8 [2016/02/18 10:20] (current) – rupert | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ===== Operations on matrices ===== | + | === Definition of matrix multiplication |
| - | We want to define operations on matrices: some (useful) ways of taking two matrices and making a new matrix. | + | {{page>matrix |
| + | === Examples === | ||
| - | Before we begin, a remark about $1\times 1$ matrices. These are of the form $[a_{11}]$ where $a_{11}$ is just a number. The square brackets | + | - If $\newcommand{\mat}[1]{\begin{bmatrix}# |
| + | - If $A=\mat{1&2\\3& | ||
| + | * $AB$, $CA$ and $BC$ don't exist (i.e., they are undefined); | ||
| + | * $AC$ exists and is $3\times 4$; | ||
| + | * $BA$ exists and is $4\times 2$; and | ||
| + | * $CB$ exists and is $2\times 2$. | ||
| + | * In particular, $AB\ne BA$ and $AC\ne CA$ and $BC\ne CB$, since in each case one of the matrices | ||
| + | - If $A=\mat{0& | ||
| + | - If $A=\mat{1& | ||
| + | - If $A=0_{n\times n}$ is the $n\times n$ zero matrix and $B$ is any $n\times n$ matrix, then $AB=0_{n\times n}$ and $BA=0_{n\times n}$. So in this case, we do have $AB=BA$. | ||
| + | - If $A=\mat{1& | ||
| + | - If $A=\mat{1& | ||
| - | ==== Matrix addition and subtraction ==== | + | === Commuting matrices |
| - | === Definition of matrix addition === | + | {{page> |
| - | {{page>matrix | + | Which matrices commute? Suppose $A$ is an $n\times m$ matrix |
| - | === Example === | + | * $AB$ must be defined, so $m=\ell$ |
| - | \[ \begin{bmatrix}1& | + | * $BA$ must be defined, so $k=n$ |
| + | * $AB$ is an $n\times k$ matrix and $BA$ is an $\ell\times n$ matrix. Since $AB$ has the same size as $BA$, we must have $n=\ell$ and $k=m$. | ||
| + | Putting this together: we see that if $A$ and $B$ commute, then $A$ and $B$ must both be $n\times n$ matrices for some number $n$. In other words, they must be //square matrices of the same size//. | ||
| - | === Example === | + | Examples 4 and 5 above show that for some square matrices $A$ and $B$ of the same size, it is true that $A$ and $B$ commute. On the other hand, examples 3 and 6 show that it's not true that square matrices of the same size must always commute. |
| - | \[ \begin{bmatrix}1& | + | |
| - | === Definition of matrix | + | Because it's not true in general that $AB=BA$, we say that **matrix |
| - | {{page>matrix | + | === Definition of the $n\times n$ identity |
| - | === Example === | + | {{page> |
| - | \[ \begin{bmatrix}1& | + | |
| - | === Example | + | === Examples |
| - | \[ \begin{bmatrix}1&2&-2\\3&0&5\end{bmatrix}-\begin{bmatrix}-2&2\\1&1\end{bmatrix}\text{ is undefined.}\] | + | |
| + | - $I_1=[1]$ | ||
| + | - $I_2=\mat{1&0\\0&1}$ | ||
| + | | ||
| + | - $I_4=\mat{1& | ||
| + | |||
| + | === Proposition: | ||
| + | | ||
| + | - $AI_m=A$ for any $n\times m$ matrix $A$; and | ||
| + | - $I_nB=B=BI_n$ for any $n\times n$ matrix $B$. In particular, $I_n$ commutes with every other square $n\times n$ matrix $B$. | ||
| + | |||
| + | === Proof of the proposition === | ||
| + | |||
| + | 1. We want to show that $I_nA=A$ for any $n\times m$ matrix $A$. These matrices the [[same size]], since $I_n$ has size $n\times n$ and $A$ has size $n\times m$, so $I_n A$ has size $n\times m$ by the definition of [[matrix multiplication]], | ||
| + | |||
| + | Note that $\text{row}_i(I_n)=[0~0~\dots~0~1~0~\dots~0]$, | ||
| + | $\text{row}_i(I_n)\cdot \text{col}_j(A)$, | ||
| + | \begin{align*} [0~0~\dots~0~1~0~\dots~0]\begin{bmatrix}a_{1j}\\a_{2j}\\\vdots\\a_{nj}\end{bmatrix} &= 0a_{1j}+0a_{2j}+\dots+0a_{i-1, | ||
| + | So the matrices $I_nA$ and $A$ have the same size, and the same $(i,j)$ entries, for any $(i,j)$. So $I_nA=A$. | ||
lecture_8.1423736901.txt.gz · Last modified: by rupert
