Matrizen: Unterschied zwischen den Versionen
Aus Matura Wiki
Carina (Diskussion | Beiträge) |
Carina (Diskussion | Beiträge) |
||
| Zeile 9: | Zeile 9: | ||
== Einführung == | == Einführung == | ||
| − | + | ||
| + | Will man ein lineares Gleichungssystem lösen, kann das mit den bereits bekannten Verfahren wie Additions-, Gleichsetzungs- oder dem Substitutionsverfahren geschehen, doch wird das bei einem großen Gleichungssystem schnell unübersichtlich und mühsam. Daher wird eine neue Schreibweise eingeführt. | ||
| + | |||
| + | Das Gleichungssytem | ||
| + | \begin{align} | ||
| + | a_{11} x_1 + a_{12} x_2 + a_{13} x_3 &= y_1 \\ | ||
| + | a_{21} x_1 + a_{22} x_2 + a_{23} x_3 &= y_2 \\ | ||
| + | \end{align} | ||
| + | bei dem $x_1 , x_2, x_3$ gesucht sind, kann auch in Matrixschreibweise geschrieben werden: | ||
| + | $$\begin{pmatrix} | ||
| + | a_{11} & a_{12} & a_{13} \\ | ||
| + | a_{21}&a_{22}&a_{23}\\ | ||
| + | \end{pmatrix} \cdot | ||
| + | \begin{pmatrix} | ||
| + | x_1 \\ x_2 \\ x_3 | ||
| + | \end{pmatrix} = \begin{pmatrix} | ||
| + | y_1 \\ y_2 | ||
| + | \end{pmatrix},$$ | ||
| + | |||
| + | wobei die Matrizenmultiplikation weiter unten erklärt wird. | ||
| + | Man nennt | ||
$$ \begin{pmatrix} | $$ \begin{pmatrix} | ||
| Zeile 15: | Zeile 35: | ||
a_{21} & a_{22} & a_{23}\\ | a_{21} & a_{22} & a_{23}\\ | ||
\end{pmatrix} | \end{pmatrix} | ||
| − | $$ | + | $$ eine $2\times3$ Matrix, sie besteht aus 2 [[Zeilen|Zeilen]] und 3 [[Spalten|Spalten]], |
| + | $\begin{pmatrix} | ||
| + | x_1 \\ x_2 \\ x_3 | ||
| + | \end{pmatrix}$ nennt man eine $3 \times 1$ Matrix und $\begin{pmatrix} | ||
| + | y_1 \\ y_2 | ||
| + | \end{pmatrix}$ eine $2 \times 1$ Matrix. | ||
| + | Der erste Index gibt dabei an in der welcher Zeile und der zweite Index in welcher Spalte sich die Zahl befindet. Hier bilden zum Beispiel $a_{11}$, $ a_{12}$ und $ a_{13}$ die erste Zeile, $a_{21}$, $ a_{22}$ und $ a_{23} $ die zweite Zeile. $a_{11}$ und $ a_{21}$ bilden die erste Spalte, $a_{12}$ und $a_{22}$ die zweite Spalte und $ a_{13}$ und $ a_{23}$ und die dritte Spalte | ||
| + | |||
| + | |||
| + | Mit $A:=\begin{pmatrix} | ||
| + | a_{11} & a_{12} & a_{13}\\ | ||
| + | a_{21} & a_{22} & a_{23}\\ | ||
| + | \end{pmatrix}$ , $\vec{x} =\begin{pmatrix} | ||
| + | x_1 \\ x_2 \\ x_3 | ||
| + | \end{pmatrix}$ und $\vec{y}=\begin{pmatrix} | ||
| + | y_1 \\ y_2 | ||
| + | \end{pmatrix}$ kann man das Gleichungssystem sehr kompakt als | ||
| + | $A \cdot \vec{x}= \vec{y}$ schreiben. Das Lösen des Gleichungssystems erfolgt dann über Umformungen von $(A,\vec{y})$. | ||
| + | |||
| + | |||
| + | |||
| + | |||
| − | |||
Beispiel: $a_{11}=3 \qquad a_{12}=6 \qquad a_{13}=2 \qquad a_{21}=7 \qquad a_{22}=8 \qquad a_{23}=1$ | Beispiel: $a_{11}=3 \qquad a_{12}=6 \qquad a_{13}=2 \qquad a_{21}=7 \qquad a_{22}=8 \qquad a_{23}=1$ | ||
| Zeile 61: | Zeile 101: | ||
Die $m\times n$ Matrix hat $m$ Zeilen und $n$ Spalten.}} | Die $m\times n$ Matrix hat $m$ Zeilen und $n$ Spalten.}} | ||
| − | {{Vorlage:Merke|1=Eine [[quadratische Matrix|quadratische Matrix]] hat die gleiche Anzahl an Zeilen und Spalten.}} | + | {{Vorlage:Merke|1=Eine [[quadratische Matrix|quadratische Matrix]] hat die gleiche Anzahl an Zeilen und Spalten, also $m=n$. Damit ein Gleichungssystem eine eindeutige Lösung hat, muss die Matrix $A$ quadratisch sein, das heißt gleich viele Gleichungen wie Unbekannte haben.}} |
| Zeile 75: | Zeile 115: | ||
0 & \dots & 0 \\ | 0 & \dots & 0 \\ | ||
\end{pmatrix} | \end{pmatrix} | ||
| − | $ }} | + | $ |
| + | |||
| + | Es gilt $A + 0 =0+A =A$ und $ A \codt 0 = 0 \cdot A=0$.}} | ||
{{Vorlage:Definition|1=Einheitsmatrix | {{Vorlage:Definition|1=Einheitsmatrix | ||
| Zeile 87: | Zeile 129: | ||
0 &0 & \dots & 1 \\ | 0 &0 & \dots & 1 \\ | ||
\end{pmatrix} | \end{pmatrix} | ||
| − | $ | + | $ |
| + | Die Einheitsmatrix wird benötigt, um ein lineares Gleichungssystem in Matrixform zu lösen und um die Inverse einer Matrix zu definieren, also $ A\cdot B = I =B \cdot A$. | ||
}} | }} | ||
| Zeile 193: | Zeile 236: | ||
| + | |||
| + | |||
| + | {{Vorlage:Beispiel|1= In der Firma $A$ wird 8 mal das Produkt 1 hergestellt, 5 mal Produkt 2, 12 mal Produkt 3 und 7 mal Produkt 4, in der Firma Firma $B$ wird 2 mal das Produkt 1 hergestellt, 1 mal Produkt 2, 3 mal Produkt 3 und 9 mal Produkt 4, | ||
| + | Firma $C$ wird 0 mal das Produkt 1 hergestellt, 17 mal Produkt 2, 3 mal Produkt 3 und 9 mal Produkt 4, | ||
| + | Firma $D$ wird 3 mal das Produkt 1 hergestellt, 4 mal Produkt 2, 2 mal Produkt 3 und 5 mal Produkt 4. | ||
| + | Wie viel wird insgesamt von den jeweiligen Produkten hergestellt? | ||
| + | |||
| + | |||
| + | |2= $A + B +C +D = \begin{pmatrix} | ||
| + | 8 & 5 \\ | ||
| + | 12 & 7 \\ | ||
| + | \end{pmatrix} + \begin{pmatrix} | ||
| + | 2 & 1 \\ | ||
| + | 3 & 9 \\ | ||
| + | \end{pmatrix} + | ||
| + | \begin{pmatrix} | ||
| + | 0 & 17 \\ | ||
| + | 3 & 9 \\ | ||
| + | \end{pmatrix}+ | ||
| + | \begin{pmatrix} | ||
| + | 3 & 4 \\ | ||
| + | 2 & 5 \\ | ||
| + | \end{pmatrix}= | ||
| + | \begin{pmatrix} | ||
| + | 13 & 27 \\ | ||
| + | 20 & 30 \\ | ||
| + | \end{pmatrix}$, es wird also insgesamt 13 mal das Produkt hergestellt, 27 mal Produkt 2, 20 mal Produkt 3 und 30 mal Produkt 4. }} | ||
| Zeile 605: | Zeile 675: | ||
==Saklierungsmatrix== | ==Saklierungsmatrix== | ||
| − | Um einen Vektor zu stauchen oder zu strecken kann er mit der Skalierungsmatrix multipliziert werden. | + | Um einen Vektor zu stauchen oder zu strecken, wird er mit einem Faktor multipliziert. |
| + | |||
| + | \begin{align*} | ||
| + | x'&=x \cdot s_x\\ | ||
| + | y'&=y\cdot s_y \\ | ||
| + | z' &= z \cdot s_z | ||
| + | \end{align*} | ||
| + | In Matrixform kann er mit der Skalierungsmatrix multipliziert werden. | ||
$$U= | $$U= | ||
\begin{pmatrix} | \begin{pmatrix} | ||
| − | + | s_x & 0 & 0\\ | |
| − | 0 & | + | 0 & s_y & 0 \\ |
| − | 0& 0 & | + | 0& 0 &s_z \\ |
\end{pmatrix} | \end{pmatrix} | ||
$$ | $$ | ||
| − | Dabei gibt $ | + | Dabei gibt $s_x$ die Skalierung in x-Richtung, $s_y$ die Skalierung in y-Richtung und $s_z$ die Skalierung in z-Richtung an. |
=Drehung= | =Drehung= | ||
| Zeile 717: | Zeile 794: | ||
| + | =homogene Koordinaten= | ||
| + | ==homogene Koordinaten== | ||
| + | Homogene Koordinaten werden zum Beispiel verwendet wenn eine Verschiebung eines Vektors durchgeführt werden soll, also wenn eine nicht lineare Transformation stattfindet. | ||
| + | |||
| + | |||
| + | Euklidische Koordinaten werden wie folgt in homogenen Koordinaten umgeschrieben | ||
| + | $$\begin{pmatrix} | ||
| + | x\\ y\\ z | ||
| + | \end{pmatrix} \mapsto | ||
| + | \begin{bmatrix} | ||
| + | x \\ y\\ z\\1 | ||
| + | \end{bmatrix} .$$ | ||
| + | |||
=Schiebung= | =Schiebung= | ||
| Zeile 726: | Zeile 816: | ||
\end{pmatrix}$ um den Vektor $\begin{pmatrix} | \end{pmatrix}$ um den Vektor $\begin{pmatrix} | ||
t_x \\ t_y \\ | t_x \\ t_y \\ | ||
| − | \end{pmatrix}$ | + | \end{pmatrix}$ ist nicht linear und deshalb müssen die Koordinaten in homogenen Koordinaten geschrieben werden, damit man die Schiebung in Matrixform schreiben kann. |
| − | $$\begin{pmatrix} | + | |
| + | |||
| + | So erhält man für die Translation: | ||
| + | |||
| + | \begin{align*} | ||
| + | x'&=x + t_z \\ | ||
| + | y'&= y +t_y \\ | ||
| + | \end{align*} $\Rightarrow$ | ||
| + | |||
| + | \begin{equation*} | ||
| + | \begin{pmatrix} | ||
x'\\ y' \\ 1\\ | x'\\ y' \\ 1\\ | ||
\end{pmatrix} =\begin{pmatrix} | \end{pmatrix} =\begin{pmatrix} | ||
| Zeile 735: | Zeile 835: | ||
\end{pmatrix} \cdot\begin{pmatrix} | \end{pmatrix} \cdot\begin{pmatrix} | ||
x\\ y\\1\\ | x\\ y\\1\\ | ||
| − | \end{pmatrix}.$$ | + | \end{pmatrix}. |
| + | \end{equation*} | ||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | Im $\mathbb{R}^3$ ergibt sich für die Schiebung | ||
| + | |||
| + | \begin{equation*} | ||
| + | T_3=\begin{pmatrix} | ||
| + | 1&0 &0&t_x \\ | ||
| + | 0& 1 &0&t_y \\ | ||
| + | 0&0&1& t_z \\ | ||
| + | 0&0&0&1 | ||
| + | \end{pmatrix} | ||
| + | \end{equation*} | ||
| + | |||
| + | |||
=Spiegelung= | =Spiegelung= | ||
| Zeile 741: | Zeile 860: | ||
| − | |||
| − | $$ | + | |
| + | Die Spiegelung ist ein Sonderfall der Skalierung mit entweder $s_x=-1$, $s_y=-1$ oder $s_z=-1$, je nachdem um welche Achse gespiegelt werden soll, die anderen Skalierungsfaktoren sollen dabei den Wert $1$ annehmen. | ||
| + | |||
| + | |||
| + | Es ergeben sich also die verschiedenen Spiegelungsmatrizen, je nach Spiegelungsachse: | ||
| + | im $\mathbb{R}^2$: | ||
| + | |||
| + | *um die x-Achse: | ||
| + | |||
| + | $S_x=\begin{pmatrix} | ||
| + | 1&0 \\ | ||
| + | 0& -1 \\ | ||
| + | \end{pmatrix}$ | ||
| + | |||
| + | |||
| + | |||
| + | *um die y-Achse: | ||
| + | $S_y=\begin{pmatrix} | ||
| + | -1&0 \\ | ||
| + | 0& 1 \\ | ||
| + | \end{pmatrix}$ | ||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | -im $\mathbb{R}^3$ | ||
| + | |||
| + | *um die yz-Ebene: | ||
| + | |||
| + | \begin{equation*} | ||
| + | S_{yz}= | ||
\begin{pmatrix} | \begin{pmatrix} | ||
| − | 1 | + | -1&0 &0\\ |
| − | 0 & 1 | + | 0& 1 &0\\ |
| − | + | 0&0&1 | |
| − | 0 | + | |
| − | + | ||
\end{pmatrix} | \end{pmatrix} | ||
| − | + | \end{equation*} | |
| + | |||
| + | |||
| + | |||
| + | *um die xz-Ebene: | ||
| + | |||
| + | \begin{equation*} | ||
| + | S_{xz}= | ||
| + | \begin{pmatrix} | ||
| + | 1&0 &0\\ | ||
| + | 0& -1 &0\\ | ||
| + | 0&0&1 | ||
| + | \end{pmatrix} | ||
| + | \end{equation*} | ||
| + | |||
| + | |||
| + | |||
| + | |||
| + | *um die xy-Ebene: | ||
| + | |||
| + | \begin{equation*} | ||
| + | S_{xy}= | ||
| + | \begin{pmatrix} | ||
| + | 1&0 &0\\ | ||
| + | 0& 1 &0\\ | ||
| + | 0&0&-1 | ||
| + | \end{pmatrix} | ||
| + | \end{equation*} | ||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
=== Spiegelung an einer Geraden === | === Spiegelung an einer Geraden === | ||
| + | |||
| + | |||
Die Spiegelung eines Punktes im $\mathbb{R}^2$ an einer Gerade $g: y=ax+b$ erfolgt in homogenen Koordinaten in den folgenden fünf Schritten: | Die Spiegelung eines Punktes im $\mathbb{R}^2$ an einer Gerade $g: y=ax+b$ erfolgt in homogenen Koordinaten in den folgenden fünf Schritten: | ||
Version vom 2. März 2017, 16:03 Uhr
Matrizen sind eine nützliche Darstellung, um ein Gleichungssystem mit vielen linearen Gleichungen zu lösen oder auch um Tabellen übersichtlich darzustellen, also um lineare Zusammenhänge zwischen mehreren Größen herzustellen.


