Mathe-Lexikon
Matrix mal Vektor
Du willst backen: 3 Rührkuchen und 2 Bleche Muffins. Im Rezeptbuch steht, wie viel Mehl, Eier und Zucker jede Sorte braucht. Wie viel brauchst du insgesamt? Genau diese Rechnung – „Menge pro Stück mal Anzahl, dann zusammenzählen“ – ist Matrix mal Vektor . { "title": "Zutaten pro Stück", "headers": ["", "Rührkuchen", "Muffins (Blech)"], "rows": "Mehl (g)", "500", "300"], ["Eier", "4", "2"], ["Zucker (g)", "200", "150" } Die Tabelle ist die Matrix, die Anzahlen begin{pmatrix} 3 2 end{pmatrix} sind der Vektor. Für das Mehl rechnest du ganz natürlich 500 cdot 3 + 300 cdot 2 = 2100 – das ist Zeile mal Spalte . Du brauchst 2100 g Mehl, 16 Eier und 900 g Zucker. Bedingung: Die Matrix muss so viele Spalten haben, wie der Vektor Zeilen hat: (m times mathbf{n}) cdot( mathbf{n} times 1) = (m times 1) Rechnung – Zeile mal Spalte, „erst mal, dann plus“: begin{pmatrix} a {11} & a {12} & a {13} a {21} & a {22} & a {23} end{pmatrix} cdot begin{pmatrix} v 1 v 2 v 3 end{pmatrix} = begin{pmatrix} a {11}v 1 + a {12}v 2 + a {13}v 3 a {21}v 1 + a {22}v 2 + a {23}v 3 end{pmatrix} - Das Ergebnis ist wieder ein Spaltenvektor . - Er hat so viele Einträge, wie die Matrix Zeilen hat. Berechne begin{pmatrix} 2 & 1 3 & 4 end{pmatrix} cdot begin{pmatrix} 1 2 end{pmatrix} . Format: (2 times 2) cdot(2 times 1) → Ergebnis 2 times 1 ✓ - Zeile 1: 2 cdot 1 + 1 cdot 2 = 4 - Zeile 2: 3 cdot 1 + 4 cdot 2 = 11 begin{pmatrix} 2 & 1 3 & 4 end{pmatrix} cdot begin{pmatrix} 1 2 end{pmatrix} = begin{pmatrix} 4 11 end{pmat
Worum geht's?
| Rührkuchen | Muffins (Blech) | |
|---|---|---|
| Mehl (g) | 500 | 300 |
| Eier | 4 | 2 |
| Zucker (g) | 200 | 150 |
- Zeile 1 · Spalte 1: 500 · 3 + 300 · 2 = 2100
- Zeile 2 · Spalte 1: 4 · 3 + 2 · 2 = 16
- Zeile 3 · Spalte 1: 200 · 3 + 150 · 2 = 900
