Plugin installed incorrectly. Rename plugin directory '_include' to 'include'.
Plugin installed incorrectly. Rename plugin directory '__include' to 'include'.
lecture_9_slides
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| lecture_9_slides [2016/02/22 17:52] – rupert | lecture_9_slides [2017/02/21 10:03] (current) – rupert | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ~~REVEAL~~ | ~~REVEAL~~ | ||
| + | ==== Recap: matrix multiplication and the identity matrix ==== | ||
| + | |||
| + | * $AB$ defined if $A:n\times m$ and $B:m\times k$ | ||
| + | * then $AB$ is $n\times k$ ... | ||
| + | * with $(i,j)$ entry is $\text{row}_i(A).\text{col}_j(B)$ | ||
| + | * Sometimes $AB=BA$ (need $A,B$ to both be $n\times n$) | ||
| + | * say $A$ and $B$ commute | ||
| + | * But often $AB\ne BA$ (even if $A,B$ both $n\times n$) | ||
| + | * $n\times n$ identity matrix $I_n$: $1$s on diagonal, zeros elsewhere | ||
| + | * $I_n$ commutes with every $n\times n$ matrix, in a nice way... | ||
| + | |||
| ==== ==== | ==== ==== | ||
| - Last time: proved that $I_nA=A$ for any $n\times m$ matrix A. | - Last time: proved that $I_nA=A$ for any $n\times m$ matrix A. | ||
| Line 68: | Line 79: | ||
| ==== $A(B+C)=AB+AC$ continued ==== | ==== $A(B+C)=AB+AC$ continued ==== | ||
| - | * In tutorial 4: $a\cdot (b+c)=a\cdot b+a\cdot c$ (row-col product) | + | * In tutorial 4: $a\cdot (b+c)=a\cdot b+a\cdot c$ (row-col product) |
| - | * So the $(i,j)$ entry of $A(B+C)$ is\begin{align*}\def\xx{\!\!\!\!}\def\xxx{\xx\xx\xx\xx}\xxx\xxx\def\row{\text{row}}\def\col{\text{col}}\text{row}_i(A)\cdot \col_j(B+C) & | + | * (for $a$: $1\times m$ and $b,c$: $m\times 1$) |
| - | * the $(i,j)$ entry of $AB$ is $\text{row}_i(A)\cdot \col_j(B)$; and | + | * Write $\def\row{\text{row}}\def\col{\text{col}}a_i=\row_i(A)$, |
| - | * the $(i,j)$ entry of $AC$ is $\row_i(A)\cdot\col_j(C)$; | + | * $(i,j)$ entry of $A(B+C)$ is:\begin{align*}\def\xx{\!\!\!\!}\def\xxx{\xx\xx\xx\xx}\xxx\xxx \row_i(A)\cdot \col_j(B+C) & |
| - | * so the $(i, | + | * $(i,j)$ entry of $AB$ is $a_i\cdot b_j$; and |
| - | * Same entries; so $A(B+C)=AB+AC$. | + | * $(i,j)$ entry of $AC$ is $a_i\cdot c_j$; |
| + | * so $(i,j)$ entry of $AB+AC$ is also $a_i\cdot b_j+a_i\cdot c_j$ | ||
| + | * Same sizes and same entries, so $A(B+C)=AB+AC$. | ||
| ==== Proof that $(B+C)A=BA+CA$ ==== | ==== Proof that $(B+C)A=BA+CA$ ==== | ||
| * This is very similar, and is left as an exercise.■ | * This is very 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_slides.1456163568.txt.gz · Last modified: by rupert
