Matrix mal Matrix
Eine Firma braucht für ihre Produkte Zwischenprodukte , und für die Zwischenprodukte Rohstoffe . Wie viel Rohstoff steckt am Ende in einem fertigen Produkt? Man müsste für jedes Produkt „Matrix mal Vektor“ rechnen – oder man rechnet alle auf einmal : Matrix mal Matrix . Das Prinzip kennst du schon von Matrix mal Vektor : Zeile mal Spalte . Neu ist nur, dass rechts mehrere Spalten stehen – also macht man es für jede Spalte einmal. Bedingung: Spalten der linken Matrix = Zeilen der rechten Matrix: (m times mathbf{n}) cdot( mathbf{n} times p) = (m times p) Die inneren Zahlen müssen gleich sein, die äußeren geben das Format des Ergebnisses. Rechnung: Der Eintrag in Zeile i , Spalte j des Ergebnisses ist „Zeile i von A mal Spalte j von B “: c {ij} = a {i1}b {1j} + a {i2}b {2j} + dots + a {in}b {nj} Achtung: - Im Allgemeinen gilt A cdot B neq B cdot A – nicht vertauschen! - A cdot B kann gehen, während B cdot A gar nicht definiert ist. Berechne A cdot B und B cdot A für A = begin{pmatrix} 1 & 2 3 & 4 end{pmatrix} und B = begin{pmatrix} 0 & 1 1 & 0 end{pmatrix} . - Zeile 1 · Spalte 1: 1 cdot 0 + 2 cdot 1 = 2 , Zeile 1 · Spalte 2: 1 cdot 1 + 2 cdot 0 = 1 - Zeile 2 · Spalte 1: 3 cdot 0 + 4 cdot 1 = 4 , Zeile 2 · Spalte 2: 3 cdot 1 + 4 cdot 0 = 3 A cdot B = begin{pmatrix} 2 & 1 4 & 3 end{pmatrix}, qquad B cdot A = begin{pmatrix} 0 cdot 1 + 1 cdot 3 & 0 cdot 2 + 1 cdot 4 1 cdot 1 + 0 cdot 3 & 1 cdot 2 + 0 cdot 4 end{pmatrix} = begin{pmatrix} 3 & 4 1 & 2 end{pmatrix} A cdot B tauscht die
Worum geht's?
Formel mit Erklärung
Beispiele
- Zeile 1 · Spalte 1: 1 · 0 + 2 · 1 = 2
- Zeile 1 · Spalte 2: 1 · 1 + 2 · 0 = 1
- Zeile 2 · Spalte 1: 3 · 0 + 4 · 1 = 4
- Zeile 2 · Spalte 2: 3 · 1 + 4 · 0 = 3
Zusammenfassung
Jetzt üben
Kostenlose Aufgaben mit Lösungsweg zu diesem Begriff:
