# Mathematics for Applied Sciences (Osnabrück 2023-2024)/Part I/Lecture 22/refcontrol
## Example Create referencenumber

A healthy breakfast starts with a fruit salad. The following table shows how much vitamin C, calcium and magnesium various fruits have (in milligram with respect to 100 gram of the fruit).
My fruit salad today consists of the mentioned fruits with portions ${\begin{pmatrix}3\\2\\7\\6\end{pmatrix}}$ (meaning $300$ gram apple and so on). From that, one can calculate the total vitamin-C-amount, the calcium-amount and the magnesium-amount of the fruit salad, by simply multiplying for each fruit its portion with its specific amount, and summing up everything. The vitamin-C-amount of the complete fruit salad is thus
    $12\cdot 3+53\cdot 2+4\cdot 7+9\cdot 6=224\,.$
This operation is an example for how a matrix operates. The table yields immediately a $3\times 4$-matrix, namely ${\begin{pmatrix}12&53&4&9\\7&40&12&5\\6&10&8&27\end{pmatrix}}$, and the above calculation is realized by the matrix multiplication
    ${\begin{pmatrix}12&53&4&9\\7&40&12&5\\6&10&8&27\end{pmatrix}}{\begin{pmatrix}3\\2\\7\\6\end{pmatrix}}={\begin{pmatrix}224\\215\\256\end{pmatrix}}\,.$
One can also ask for a fruit salad which has certain amounts of vitamin C, calcium and magnesium, say ${\begin{pmatrix}180\\110\\140\end{pmatrix}}$. This leads to the linear system of linear equations in matrix form,
    ${\begin{pmatrix}12&53&4&9\\7&40&12&5\\6&10&8&27\end{pmatrix}}{\begin{pmatrix}x_{1}\\x_{2}\\x_{3}\\x_{4}\end{pmatrix}}={\begin{pmatrix}180\\110\\140\end{pmatrix}}\,.$
    Matrices
A system of linear equationsMDLD/system of linear equations can easily be written with a matrix. This allows us to make the manipulations which lead to the solution of such a system, without writing down the variables. Matrices are quite simple objects; however, they can represent quite different mathematical objects (e.g., a family of column vectors, a family of row vectors, a linear mapping, a table of physical interactions, a relation, a linear vector field, etc.), which one has to keep in mind in order to prevent wrong conclusions.

## Definition

Let $K$ denote a field,MDLD/field and let $I$ and $J$ denote index sets. An $I\times J$-matrix is a mappingMDLD/mapping
    $I\times J\longrightarrow K,(i,j)\longmapsto a_{ij}.$
If $I=\{1,\ldots ,m\}$ and $J=\{1,\ldots ,n\}$, then we talk about an $m\times n$-matrix. In this case, the matrix is usually written as
    ${\begin{pmatrix}a_{11}&a_{12}&\ldots &a_{1n}\\a_{21}&a_{22}&\ldots &a_{2n}\\\vdots &\vdots &\ddots &\vdots \\a_{m1}&a_{m2}&\ldots &a_{mn}\end{pmatrix}}.$
We will usually restrict to this last situation.
For every $i\in I$, the family $a_{ij}$ , $j\in J$, is called the $i$-th row of the matrix, which is usually written as a row tuple
(or row vector)
    $(a_{i1},a_{i2},\ldots ,a_{in}).$
For every $j\in J$, the family $a_{ij}$ , $i\in I$, is called the $j$-th column of the matrix, usually written as a column tuple (or column vector)
    ${\begin{pmatrix}a_{1j}\\a_{2j}\\\vdots \\a_{mj}\end{pmatrix}}.$
The elements $a_{ij}$ are called the entries of the matrix. For $a_{ij}$, the number $i$ is called the row index, and $j$ is called the column index of the entry. The position of the entry $a_{ij}$ is where the $i$-th row meets the $j$-th column. A matrix with $m=n$ is called a square matrix. An $m\times 1$-matrix is simply a column tuple (or column vector) of length $m$, and an $1\times n$-matrix is simply a row tuple (or row vector) of length $n$. The set of all matrices with $m$ rows and $n$ columns (and with entries in $K$) is denoted by $\operatorname {Mat} _{m\times n}(K)$, in case $m=n$ we also write $\operatorname {Mat} _{n}(K)$.
Two matrices $A,B\in \operatorname {Mat} _{m\times n}(K)$ are added by adding entries with corresponding entries. The multiplication of a matrix $A$ with an element $r\in K$ (a scalar) is also defined entrywise, so
    ${\begin{pmatrix}a_{11}&a_{12}&\ldots &a_{1n}\\a_{21}&a_{22}&\ldots &a_{2n}\\\vdots &\vdots &\ddots &\vdots \\a_{m1}&a_{m2}&\ldots &a_{mn}\end{pmatrix}}+{\begin{pmatrix}b_{11}&b_{12}&\ldots &b_{1n}\\b_{21}&b_{22}&\ldots &b_{2n}\\\vdots &\vdots &\ddots &\vdots \\b_{m1}&b_{m2}&\ldots &b_{mn}\end{pmatrix}}={\begin{pmatrix}a_{11}+b_{11}&a_{12}+b_{12}&\ldots &a_{1n}+b_{1n}\\a_{21}+b_{21}&a_{22}+b_{22}&\ldots &a_{2n}+b_{2n}\\\vdots &\vdots &\ddots &\vdots \\a_{m1}+b_{m1}&a_{m2}+b_{m2}&\ldots &a_{mn}+b_{mn}\end{pmatrix}}\,$
and
    $r{\begin{pmatrix}a_{11}&a_{12}&\ldots &a_{1n}\\a_{21}&a_{22}&\ldots &a_{2n}\\\vdots &\vdots &\ddots &\vdots \\a_{m1}&a_{m2}&\ldots &a_{mn}\end{pmatrix}}={\begin{pmatrix}ra_{11}&ra_{12}&\ldots &ra_{1n}\\ra_{21}&ra_{22}&\ldots &ra_{2n}\\\vdots &\vdots &\ddots &\vdots \\ra_{m1}&ra_{m2}&\ldots &ra_{mn}\end{pmatrix}}\,.$
The multiplication of matrices is defined in the following way.

## Definition

Let $K$ denote a field, and let $A$ denote an $m\times n$-matrixMDLD/matrix and $B$ an $n\times p$-matrix over $K$. Then the matrix product
    $AB$
is the $m\times p$-matrix, whose entries are given by
    $c_{ik}=\sum _{j=1}^{n}a_{ij}b_{jk}\,.$
A matrix multiplication is only possible when the number of columns of the left-hand matrix equals the number of rows of the right-hand matrix. Just think of the scheme
    $(ROWROW){\begin{pmatrix}C\\O\\L\\U\\M\\N\end{pmatrix}}=(RC+O^{2}+WL+RU+OM+WN)\,,$
the result is an $1\times 1$-Matrix. In particular, one can multiply an $m\times n$-matrix $A$ with a column vector of length $n$ (the vector on the right), and the result is a column vector of length $m$. The two matrices can also be multiplied with roles interchanged,
    ${\begin{pmatrix}C\\O\\L\\U\\M\\N\end{pmatrix}}(ROWROW)={\begin{pmatrix}CR&CO&CW&CR&CO&CW\\OR&O^{2}&OW&OR&O^{2}&OW\\LR&LO&LW&LR&LO&LW\\UR&UO&UW&UR&UO&UW\\MR&MO&MW&MR&MO&MW\\NR&NO&NW&NR&NO&NW\end{pmatrix}}\,.$

## Definition

An $n\times n$-matrixMDLD/matrix of the form
    ${\begin{pmatrix}d_{11}&0&\cdots &\cdots &0\\0&d_{22}&0&\cdots &0\\\vdots &\ddots &\ddots &\ddots &\vdots \\0&\cdots &0&d_{n-1\,n-1}&0\\0&\cdots &\cdots &0&d_{nn}\end{pmatrix}}$

## Definition

The $n\times n$-matrixMDLD/matrix
    $E_{n}:={\begin{pmatrix}1&0&\cdots &\cdots &0\\0&1&0&\cdots &0\\\vdots &\ddots &\ddots &\ddots &\vdots \\0&\cdots &0&1&0\\0&\cdots &\cdots &0&1\end{pmatrix}}\,$
The identity matrix $E_{n}$ has the property $E_{n}M=M=ME_{n}$, for an arbitrary $n\times n$-matrix $M$.

## Remark

If we multiply an $m\times n$-matrixMDLD/matrix $A=(a_{ij})_{ij}$ with an column vector $x={\begin{pmatrix}x_{1}\\x_{2}\\\vdots \\x_{n}\end{pmatrix}}$, then we get
    $Ax={\begin{pmatrix}a_{11}&a_{12}&\ldots &a_{1n}\\a_{21}&a_{22}&\ldots &a_{2n}\\\vdots &\vdots &\ddots &\vdots \\a_{m1}&a_{m2}&\ldots &a_{mn}\end{pmatrix}}{\begin{pmatrix}x_{1}\\x_{2}\\\vdots \\x_{n}\end{pmatrix}}={\begin{pmatrix}a_{11}x_{1}+a_{12}x_{2}+\cdots +a_{1n}x_{n}\\a_{21}x_{1}+a_{22}x_{2}+\cdots +a_{2n}x_{n}\\\vdots \\a_{m1}x_{1}+a_{m2}x_{2}+\cdots +a_{mn}x_{n}\end{pmatrix}}\,.$
Hence, an inhomogeneous system of linear equationsMDLD/inhomogeneous system of linear equations with disturbance vector ${\begin{pmatrix}c_{1}\\c_{2}\\\vdots \\c_{m}\end{pmatrix}}$, can be written briefly as
    $Ax=c\,.$
Then, the manipulations on the equations, which do not change the solution set, can be replaced by corresponding manipulations on the rows of the matrix. It is not necessary to write down the variables.
    Vector spaces
The central concept of linear algebra is a vector space.

## Definition

Let $K$ denote a field,MDLD/field and $V$ a set with a distinguished element $0\in V$, and with two mappings
    $+\colon V\times V\longrightarrow V,(u,v)\longmapsto u+v,$
and
    $\cdot \colon K\times V\longrightarrow V,(s,v)\longmapsto sv=s\cdot v.$
Then $V$ is called a $K$-vector space (or a vector space over $K$), if the following axioms hold (where $r,s\in K$ and $u,v,w\in V$ are arbitrary).
* $u+v=v+u$,
* $(u+v)+w=u+(v+w)$,
* $v+0=v$,
* For every $v$, there exists a $z$ such that $v+z=0$,
* $1\cdot u=u$,
* $r(su)=(rs)u$,
* $r(u+v)=ru+rv$,
* $(r+s)u=ru+su$.
The binary operation in $V$ is called (vector-)addition, and the operation $K\times V\rightarrow V$ is called scalar multiplication. The elements in a vector space are called vectors, and the elements $r\in K$ are called scalars. The null element $0\in V$ is called null vector, and for $v\in V$, the inverse element is called the negative of $v$, denoted by $-v$. The field which occurs in the definition of a vector space is called the base field. All the concepts of linear algebra refer to such a base field. In case $K=\mathbb {R}$, we talk about a real vector space, and in case $K=\mathbb {C}$, we talk about a complex vector space. For real and complex vector spaces there exist further structures like length, angle, inner product. But first we develop the algebraic theory of vector spaces over an arbitrary field.

## Example Create referencenumber

Let $K$ denote a field,MDLD/field and let $n\in \mathbb {N} _{+}$. Then the product setMDLD/product set (m)
    $K^{n}=\underbrace {K\times \cdots \times K} _{n{\text{-times}}}={\left\{(x_{1},\ldots ,x_{n})\mid x_{i}\in K\right\}}\,,$
with componentwise addition and with scalar multiplication given by
    $s(x_{1},\ldots ,x_{n})=(sx_{1},\ldots ,sx_{n})\,,$
is a vector space.MDLD/vector space This space is called the $n$-dimensional standard space. In particular, $K^{1}=K$ is a vector space.
The null space $0$, consisting of just one element $0$, is a vector space. It might be considered as $K^{0}=0$.
The vectors in the standard space $K^{n}$ can be written as row vectors
    $\left(a_{1},\,a_{2},\,\ldots ,\,a_{n}\right)$
or as column vectors
    ${\begin{pmatrix}a_{1}\\a_{2}\\\vdots \\a_{n}\end{pmatrix}}.$
The vector
    $e_{i}:={\begin{pmatrix}0\\\vdots \\0\\1\\0\\\vdots \\0\end{pmatrix}}\,,$
where the $1$ is at the $i$-th position, is called $i$-th standard vector.

## Example Create referencenumber

The complex numbersMDLD/complex numbers $\mathbb {C}$ form a field,MDLD/field and therefore they form also a vector spaceMDLD/vector space over the field itself. However, the set of complex numbers equals $\mathbb {R} ^{2}$ as an additive group. The multiplication of a complex number $a+b{\mathrm {i} }$ with a real number $s=(s,0)$ is componentwise, so this multiplication coincides with the scalar multiplication on $\mathbb {R} ^{2}$. Hence, the complex numbers are also a real vector space.

## Example Create referencenumber

For a fieldMDLD/field $K$, and given natural numbers $m,n$, the set
    $\operatorname {Mat} _{m\times n}(K)$
of all $m\times n$-matrices with componentwise addition and componentwise scalar multiplication, is a $K$-vector space.MDLD/vector space The null element in this vector space is the null matrix
    $0={\begin{pmatrix}0&\ldots &0\\\vdots &\ddots &\vdots \\0&\ldots &0\end{pmatrix}}\,.$

## Example Create referencenumber

Let $R=K[X]$ be the polynomial ringMDLD/polynomial ring (1K) in one variable over the fieldMDLD/field $K$, consisting of all polynomials, that is expressions of the form
    $a_{n}X^{n}+a_{n-1}X^{n-1}+\cdots +a_{2}X^{2}+a_{1}X+a_{0},$
with $a_{i}\in K$. Using componentwise addition and componentwise multiplication with a scalar $s\in K$ (this is also multiplication with the constant polynomial $s$), the polynomial ring is a $K$-vector space.MDLD/vector space

## LemmaCreate referencenumber

Let $K$ be a field,MDLD/field and let $V$ be a $K$-vector space.MDLD/vector space Then the following properties hold (for
$v\in V$
$s\in K$
* We have $0v=0$.
* We have $s0=0$.
* We have $(-1)v=-v$.
* If $s\neq 0$ and $v\neq 0$, then $sv\neq 0$.

### Proof

$\Box$
    Linear subspaces

## Definition

Let $K$ be a field,MDLD/field and $V$ be a $K$-vector space.MDLD/vector space A subset $U\subseteq V$ is called a linear subspace, if the following properties hold.
* $0\in U$.
* If $u,v\in U$, then also $u+v\in U$.
* If $u\in U$ and $s\in K$, then also $su\in U$ holds.
Addition and scalar multiplication can be restricted to such a linear subspace. Hence, the linear subspace is itself a vector space, see Exercise 22.20 . The simplest linear subspaces in a vector space $V$ are the null space $0$ and the whole vector space $V$.

## LemmaLemma 22.14 change

Let $K$ be a field,MDLD/field and let
    ${\begin{matrix}a_{11}x_{1}+a_{12}x_{2}+\cdots +a_{1n}x_{n}&=&0\\a_{21}x_{1}+a_{22}x_{2}+\cdots +a_{2n}x_{n}&=&0\\\vdots &\vdots &\vdots \\a_{m1}x_{1}+a_{m2}x_{2}+\cdots +a_{mn}x_{n}&=&0\end{matrix}}$
be a homogeneous system of linear equationsMDLD/homogeneous system of linear equations over $K$. Then the set of all solutions to the system is a linear subspaceMDLD/linear subspace
$K^{n}$

### Proof

$\Box$
Therefore, we talk about the solution space of the linear system. In particular, the sum of two solutions of a system of linear equations is again a solution. The solution set of an inhomogeneous linear system is not a vector space. However, one can add, to a solution of an inhomogeneous system, a solution of the corresponding homogeneous system, and get a solution to the inhomogeneous system again.

## Example Create referencenumber

We have a look at the homogeneous version of Example 21.11 , so we consider the homogeneous linear system
    ${\begin{matrix}2x&+5y&+2z&&-v&=&0\\\,3x&-4y&&+u&+2v&=&0\\\,4x&&-2z&+2u&&=&0\,.\end{matrix}}$
over $\mathbb {R}$. Due to Lemma 22.14 , the solution set $L$ is a linear subspace of $\mathbb {R} ^{5}$. We have described it explicitly in Example 21.11
as
    ${\left\{u{\left(-{\frac {1}{3}},0,{\frac {1}{3}},1,0\right)}+v{\left(-{\frac {2}{13}},{\frac {5}{13}},-{\frac {4}{13}},0,1\right)}\mid u,v\in \mathbb {R} \right\}},$
which also shows that the solution set is a vector space. With this description, it is clear that $L$ is in bijection with $\mathbb {R} ^{2}$, and this bijection respects the addition and also the scalar multiplication (the solution set $L'$ of the inhomogeneous system is also in bijection with $\mathbb {R} ^{2}$, but there is no reasonable addition nor scalar multiplication on $L'$). However, this bijection depends heavily on the chosen "basic solutions“ ${\left(-{\frac {1}{3}},0,{\frac {1}{3}},1,0\right)}$ and ${\left(-{\frac {2}{13}},{\frac {5}{13}},-{\frac {4}{13}},0,1\right)}$, which depends on the order of elimination. There are several equally good basic solutions for $L$.
This example shows also the following: the solution space of a linear system over $K$ is "in natural way“, that means independent on any choice, a linear subspace of $K^{n}$ (where $n$ is the number of variables). For this solution space, there always exists a "linear bijection“ (an "isomorphism“) to some $K^{d}$ ($d\leq n$), but for is no natural choice for such a bijection. This is one of the main reasons to work with abstract vector spaces, instead of just $K^{n}$.
    Footnotes
* ↑ The first four axioms, which are independent of $K$, mean that $(V,0,+)$ is a commutative groupMDLD/commutative group.
* ↑ Also for vector spaces, there is the convention that multiplication binds stronger than addition.