Plugin installed incorrectly. Rename plugin directory '_include' to 'include'.
Plugin installed incorrectly. Rename plugin directory '__include' to 'include'.
lecture_7
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| lecture_7 [2015/02/10 10:45] – created rupert | lecture_7 [2016/02/16 09:59] (current) – rupert | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | {{page> | + | === Examples === |
| - | {{page>lecture 7b}} | + | * $\begin{bmatrix}3\\2\\4\\0\\-1\end{bmatrix}$ is a $5\times 1$ matrix. A matrix like this with one column is called a **column vector**. |
| + | * $\begin{bmatrix}3& | ||
| + | |||
| + | Even though the row matrix and the column matrix above have the same entries, they have a different " | ||
| + | |||
| + | === Definition === | ||
| + | |||
| + | {{page>same size}} | ||
| + | |||
| + | === Definition === | ||
| + | |||
| + | {{page> | ||
| + | |||
| + | === Examples === | ||
| + | |||
| + | * $\begin{bmatrix}3\\2\\4\\0\\-1\end{bmatrix}\ne \begin{bmatrix}3& | ||
| + | ==== ==== | ||
| + | * $\begin{bmatrix}1\\2\end{bmatrix}\ne\begin{bmatrix}1 & | ||
| + | * $\begin{bmatrix}1& | ||
| + | * If $\begin{bmatrix}3x& | ||
| + | |||
| + | ===== Operations on matrices ===== | ||
| + | |||
| + | We want to define operations on matrices: some (useful) ways of taking two matrices and making a new matrix. | ||
| + | |||
| + | 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 $[\,]$ don't really matter here; they just keep the inside of a matrix in one place. So really: a $1\times 1$ matrix is just a number. This means that special cases of the operations we define will be operations on ordinary numbers. You should check that in the special case when all the matrices involved are $1\times 1$ matrices, the operations become the ordinary operations on numbers, so we are // | ||
| + | |||
| + | ==== Matrix addition and subtraction ==== | ||
| + | |||
| + | === Definition of matrix addition === | ||
| + | |||
| + | {{page> | ||
| + | |||
| + | === Example === | ||
| + | \[ \begin{bmatrix}1& | ||
| + | |||
| + | === Example === | ||
| + | \[ \begin{bmatrix}1& | ||
| + | |||
| + | === Remarks === | ||
| + | |||
| + | - For any matrices $A$ and $B$ with the same size: $A+B=B+A$. We say that matrix addition is // | ||
| + | - 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> | ||
| + | |||
| + | === Exercise === | ||
| + | |||
| + | Show that if $A$ is any $n\times m$ matrix, then | ||
| + | \[ 0_{n\times m}+A=A=A+0_{n\times m}.\] | ||
| + | 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. | ||
| + | |||
| + | |||
| + | === Definition of matrix subtraction === | ||
| + | |||
| + | {{page> | ||
| + | |||
| + | === 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 === | ||
| + | {{page> | ||
| + | |||
| + | === Examples === | ||
| + | |||
| + | * $\begin{bmatrix}1& | ||
| + | * $\begin{bmatrix}1& | ||
| + | * $\begin{bmatrix}2& | ||
| + | * Generalising the previous example: if $a=\begin{bmatrix}a_1& | ||
| + | |||
| + | ==== Matrix multiplication ==== | ||
| + | |||
| + | This generalises row-column multiplication. The idea is that you build a new matrix from all possible row-column products. The formal definition will appear later, but here's an example: | ||
| + | \[ \def\r{\begin{bmatrix}1& | ||
| + | \def\s{\begin{bmatrix}1\\3\\5\end{bmatrix}}\def\ss{\begin{bmatrix}2\\4\\6\end{bmatrix}} | ||
| + | = | ||
| + | \begin{bmatrix}{\r\s}& | ||
lecture_7.1423565122.txt.gz · Last modified: by rupert
