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:48] – [Row-column multiplication] 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& | + | |
| - | === Remarks === | + | Because it's not true in general that $AB=BA$, we say that **matrix multiplication is not commutative**. |
| - | - For any matrices $A$ and $B$ with the same size: $A+B=B+A$. We say that matrix | + | === Definition of the $n\times n$ identity |
| - | - For any matrices $A$, $B$ and $C$ with the same size: $(A+B)+C=A+(B+C)$. We say that matrix addition is // | + | |
| - | === Definition of the zero matrix | + | {{page> |
| - | {{page> | + | === Examples === |
| - | === Exercise === | + | - $I_1=[1]$ |
| + | - $I_2=\mat{1& | ||
| + | - $I_3=\mat{1& | ||
| + | - $I_4=\mat{1& | ||
| - | Show that if $A$ is any $n\times m$ matrix, then | + | === Proposition: |
| - | \[ 0_{n\times m}+A=A=A+0_{n\times | + | - $I_nA=A$ for any $n\times m$ matrix |
| - | Remember that when checking that matrices are equal, you have to check that they have the same size, and that all the entries are the same. | + | - $AI_m=A$ for any $n\times m$ matrix $A$; and |
| + | - $I_nB=B=BI_n$ for any $n\times | ||
| + | === Proof of the proposition === | ||
| - | === Definition | + | 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 |
| - | {{page>matrix | + | 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$. | ||
| - | === Example === | ||
| - | \[ \begin{bmatrix}1& | ||
| - | |||
| - | === Example === | ||
| - | \[ \begin{bmatrix}1& | ||
| - | |||
| - | |||
| - | |||
| - | ==== Scalar multiplication ==== | ||
| - | |||
| - | === Definition of a scalar === | ||
| - | |||
| - | {{page> | ||
| - | |||
| - | === Definition of scalar multiplication of matrices === | ||
| - | |||
| - | {{page> | ||
| - | |||
| - | === Example === | ||
| - | If $A=\begin{bmatrix}1& | ||
| - | \[ 3\begin{bmatrix}1& | ||
| - | |||
| - | === The negative of a matrix === | ||
| - | {{page> | ||
| - | |||
| - | === Exercise === | ||
| - | Prove that $A-B=A+(-B)$ for any matrices $A$ and $B$ of the same size. | ||
| - | |||
| - | ==== Row-column multiplication ==== | ||
| - | |||
| - | === Definition of row-column multiplication === | ||
| - | If $a=\begin{bmatrix}a_1& | ||
| - | \[ ab=\begin{bmatrix}a_1& | ||
| - | |||
| - | === Example === | ||
| - | |||
| - | \[ \begin{bmatrix}1& | ||
lecture_8.1423738131.txt.gz · Last modified: by rupert
