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?

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.

Formel mit Erklärung

Bedingung: Spalten der linken Matrix = Zeilen der rechten Matrix: ( m × n ) ⋅ ( n × p ) = ( m × p ) (m\times \mathbf{n})\cdot(\mathbf{n}\times p) = (m\times p) ( m × n ) ⋅ ( n × p ) = ( m × p ) Die inneren Zahlen müssen gleich sein, die äußeren geben das Format des Ergebnisses. Rechnung: Der Eintrag in Zeile i i i , Spalte j j j des Ergebnisses ist „Zeile i i i von A A A mal Spalte j j j von B B B “: c i j = a i 1 b 1 j + a i 2 b 2 j + ⋯ + a i n b n j c_{ij} = a_{i1}b_{1j} + a_{i2}b_{2j} + \dots + a_{in}b_{nj} c ij ​ = a i 1 ​ b 1 j ​ + a i 2 ​ b 2 j ​ + ⋯ + a in ​ b nj ​ Achtung: - Im Allgemeinen gilt A ⋅ B ≠ B ⋅ A A\cdot B \neq B\cdot A A ⋅ B  = B ⋅ A – nicht vertauschen! - A ⋅ B A\cdot B A ⋅ B kann gehen, während B ⋅ A B\cdot A B ⋅ A gar nicht definiert ist.

Beispiele

Leicht#1
Berechne A ⋅ B A\cdot B A ⋅ B und B ⋅ A B\cdot A B ⋅ A für A = ( 1 2 3 4 ) A = \begin{pmatrix} 1 & 2 \\ 3 & 4 \end{pmatrix} A = ( 1 3 ​ 2 4 ​ ) und B = ( 0 1 1 0 ) B = \begin{pmatrix} 0 & 1 \\ 1 & 0 \end{pmatrix} B = ( 0 1 ​ 1 0 ​ ) .
A =1234·B =0110=2143
  • 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
Schritt 4 von 4
Zeile 2 mal Spalte 2
Zeile 1 · Spalte 1: 1 ⋅ 0 + 2 ⋅ 1 = 2 1\cdot 0 + 2\cdot 1 = 2 1 ⋅ 0 + 2 ⋅ 1 = 2 , Zeile 1 · Spalte 2: 1 ⋅ 1 + 2 ⋅ 0 = 1 1\cdot 1 + 2\cdot 0 = 1 1 ⋅ 1 + 2 ⋅ 0 = 1 Zeile 2 · Spalte 1: 3 ⋅ 0 + 4 ⋅ 1 = 4 3\cdot 0 + 4\cdot 1 = 4 3 ⋅ 0 + 4 ⋅ 1 = 4 , Zeile 2 · Spalte 2: 3 ⋅ 1 + 4 ⋅ 0 = 3 3\cdot 1 + 4\cdot 0 = 3 3 ⋅ 1 + 4 ⋅ 0 = 3 A ⋅ B = ( 2 1 4 3 ) , B ⋅ A = ( 0 ⋅ 1 + 1 ⋅ 3 0 ⋅ 2 + 1 ⋅ 4 1 ⋅ 1 + 0 ⋅ 3 1 ⋅ 2 + 0 ⋅ 4 ) = ( 3 4 1 2 ) 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 ⋅ B = ( 2 4 ​ 1 3 ​ ) , B ⋅ A = ( 0 ⋅ 1 + 1 ⋅ 3 1 ⋅ 1 + 0 ⋅ 3 ​ 0 ⋅ 2 + 1 ⋅ 4 1 ⋅ 2 + 0 ⋅ 4 ​ ) = ( 3 1 ​ 4 2 ​ ) A ⋅ B A\cdot B A ⋅ B tauscht die Spalten von A A A , B ⋅ A B\cdot A B ⋅ A tauscht die Zeilen – verschiedene Ergebnisse!

Zusammenfassung

Bedingung: Spalten links = Zeilen rechts; Ergebnis hat Zeilen von links, Spalten von rechts. Jeder Eintrag: Zeile i i i links mal Spalte j j j rechts. A ⋅ B ≠ B ⋅ A A\cdot B \neq B\cdot A A ⋅ B  = B ⋅ A – nie vertauschen! Anwendung: mehrstufige Prozesse ( R → Z → E R \to Z \to E R → Z → E ), Übergänge über mehrere Schritte ( A 2 A^2 A 2 ), Verkettete Abbildung en.

Jetzt üben

Kostenlose Aufgaben mit Lösungsweg zu diesem Begriff: