Plugin installed incorrectly. Rename plugin directory '_include' to 'include'.
Plugin installed incorrectly. Rename plugin directory '__include' to 'include'.
lecture_9
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| lecture_9 [2016/02/22 17:27] – rupert | lecture_9 [2017/02/21 10:02] (current) – rupert | ||
|---|---|---|---|
| Line 26: | Line 26: | ||
| ====The distributive laws==== | ====The distributive laws==== | ||
| - | === Proposition: | + | === Lemma: the distributive laws for row-column multiplication === |
| + | |||
| + | - If $a$ is a $1\times m$ row vector and $b$ and $c$ are $m\times 1$ column vectors, then $a\cdot (b+c)=a\cdot b+a\cdot c$. | ||
| + | - If $b$ and $c$ are $1\times m$ row vectors and $a$ is an $m\times 1$ column vector, then $(b+c)\cdot a=b\cdot a+c\cdot a$. | ||
| + | |||
| + | The proof is an exercise (see tutorial worksheet 5). | ||
| + | |||
| + | |||
| + | === Proposition: | ||
| If $A$ is an $n\times m$ matrix and $k\in\mathbb{N}$, | If $A$ is an $n\times m$ matrix and $k\in\mathbb{N}$, | ||
| - $A(B+C)=AB+AC$ for any $m\times k$ matrices $B$ and $C$; and | - $A(B+C)=AB+AC$ for any $m\times k$ matrices $B$ and $C$; and | ||
| - | - $(B+C)A=BA=CA$ for any $k\times n$ matrices $B$ and $C$. | + | - $(B+C)A=BA+CA$ for any $k\times n$ matrices $B$ and $C$. |
| In other words, $A(B+C)=AB+AC$ whenever the matrix products make sense, and similarly $(B+C)A=BA+CA$ whenever this makes sense. | In other words, $A(B+C)=AB+AC$ whenever the matrix products make sense, and similarly $(B+C)A=BA+CA$ whenever this makes sense. | ||
| Line 40: | Line 48: | ||
| So we have (rather long-windedly) checked that $A(B+C)$ and $AB+AC$ have the [[same size]]. | So we have (rather long-windedly) checked that $A(B+C)$ and $AB+AC$ have the [[same size]]. | ||
| - | Recall that in tutorial 4 we saw that if $a$ is a $1\times m$ row vector and $b$ and $c$ are $m\times 1$ column vectors, then the [[row-column product]] has the property that \[a\cdot (b+c)=a\cdot b+a\cdot c.\] | + | By the Lemma above, the [[row-column product]] has the property that \[a\cdot (b+c)=a\cdot b+a\cdot c.\] |
| So the $(i,j)$ entry of $A(B+C)$ is | So the $(i,j)$ entry of $A(B+C)$ is | ||
| \begin{align*}\def\row{\text{row}}\def\col{\text{col}} | \begin{align*}\def\row{\text{row}}\def\col{\text{col}} | ||
| Line 55: | Line 63: | ||
| 2. The proof is similar, and is left as an exercise.■ | 2. The proof is similar, and is left as an exercise.■ | ||
| - | ===== Matrix equations ===== | ||
| - | |||
| - | We've seen that a single linear equation can be written using [[row-column multiplication]]. For example, | ||
| - | \[ 2x-3y+z=8\] | ||
| - | can be written as | ||
| - | \[ \def\m# | ||
| - | or | ||
| - | \[ a\vec x=8\] | ||
| - | where $a=\m{2& | ||
| - | |||
| - | We can write a whole [[system of linear equations]] in a similar way, as a matrix equation using [[matrix multiplication]]. For example we can rewrite the linear system | ||
| - | \begin{align*} 2x-3y+z& | ||
| - | as | ||
| - | \[ \m{2& | ||
| - | or | ||
| - | \[ A\vec x=\vec b\] | ||
| - | where $A=\m{2& | ||
| - | |||
| - | More generally, any linear system | ||
| - | \begin{align*} a_{11}x_1+a_{12}x_2+\dots+a_{1m}x_m& | ||
| - | can be written in the form | ||
| - | \[ A\vec x=\vec b\] | ||
| - | where $A$ is the $n\times m $ matrix, called the **coefficient matrix** of the linear system, whose $(i,j)$ entry is $a_{ij}$ (the number in front of $x_j$ in the $i$th equation of the system) and $\vec x=\m{x_1\\x_2\\\vdots\\x_m}$, | ||
| - | |||
| - | More generally still, we might want to solve a matrix equation like \[AX=B\] where $A$, $X$ and $B$ are matrices of any size, with $A$ and $B$ fixed matrices and $X$ a matrix of unknown variables. Because of the definition of [[matrix multiplication]], | ||
| - | |||
| - | === Example === | ||
| - | |||
| - | If $A=\m{1& | ||
| - | |||
| - | One solution is $X=0_{2\times 3}$, since in this case we have $AX=A0_{2\times 3}=0_{2\times 3}$. | ||
| - | However, this is not the only solution. For example, $X=\m{0& | ||
| - | So from this example, we see that a matrix equation can have many solutions. | ||
lecture_9.1456162054.txt.gz · Last modified: by rupert
