与えられた行列AとBに対して、行列の積ABとBAを計算し、AB = BAが成り立つかどうかを調べます。代数学行列行列の積線形代数2025/5/291. 問題の内容与えられた行列AとBに対して、行列の積ABとBAを計算し、AB = BAが成り立つかどうかを調べます。2. 解き方の手順(1) A=(2003),B=(1221)A = \begin{pmatrix} 2 & 0 \\ 0 & 3 \end{pmatrix}, B = \begin{pmatrix} 1 & 2 \\ 2 & 1 \end{pmatrix}A=(2003),B=(1221) の場合まず、ABを計算します。AB=(2003)(1221)=(2⋅1+0⋅22⋅2+0⋅10⋅1+3⋅20⋅2+3⋅1)=(2463)AB = \begin{pmatrix} 2 & 0 \\ 0 & 3 \end{pmatrix} \begin{pmatrix} 1 & 2 \\ 2 & 1 \end{pmatrix} = \begin{pmatrix} 2\cdot1 + 0\cdot2 & 2\cdot2 + 0\cdot1 \\ 0\cdot1 + 3\cdot2 & 0\cdot2 + 3\cdot1 \end{pmatrix} = \begin{pmatrix} 2 & 4 \\ 6 & 3 \end{pmatrix}AB=(2003)(1221)=(2⋅1+0⋅20⋅1+3⋅22⋅2+0⋅10⋅2+3⋅1)=(2643)次に、BAを計算します。BA=(1221)(2003)=(1⋅2+2⋅01⋅0+2⋅32⋅2+1⋅02⋅0+1⋅3)=(2643)BA = \begin{pmatrix} 1 & 2 \\ 2 & 1 \end{pmatrix} \begin{pmatrix} 2 & 0 \\ 0 & 3 \end{pmatrix} = \begin{pmatrix} 1\cdot2 + 2\cdot0 & 1\cdot0 + 2\cdot3 \\ 2\cdot2 + 1\cdot0 & 2\cdot0 + 1\cdot3 \end{pmatrix} = \begin{pmatrix} 2 & 6 \\ 4 & 3 \end{pmatrix}BA=(1221)(2003)=(1⋅2+2⋅02⋅2+1⋅01⋅0+2⋅32⋅0+1⋅3)=(2463)ABとBAを比較すると、AB≠BAAB \ne BAAB=BAです。(2) A=(22−12),B=(3003)A = \begin{pmatrix} 2 & 2 \\ -1 & 2 \end{pmatrix}, B = \begin{pmatrix} 3 & 0 \\ 0 & 3 \end{pmatrix}A=(2−122),B=(3003) の場合まず、ABを計算します。AB=(22−12)(3003)=(2⋅3+2⋅02⋅0+2⋅3−1⋅3+2⋅0−1⋅0+2⋅3)=(66−36)AB = \begin{pmatrix} 2 & 2 \\ -1 & 2 \end{pmatrix} \begin{pmatrix} 3 & 0 \\ 0 & 3 \end{pmatrix} = \begin{pmatrix} 2\cdot3 + 2\cdot0 & 2\cdot0 + 2\cdot3 \\ -1\cdot3 + 2\cdot0 & -1\cdot0 + 2\cdot3 \end{pmatrix} = \begin{pmatrix} 6 & 6 \\ -3 & 6 \end{pmatrix}AB=(2−122)(3003)=(2⋅3+2⋅0−1⋅3+2⋅02⋅0+2⋅3−1⋅0+2⋅3)=(6−366)次に、BAを計算します。BA=(3003)(22−12)=(3⋅2+0⋅(−1)3⋅2+0⋅20⋅2+3⋅(−1)0⋅2+3⋅2)=(66−36)BA = \begin{pmatrix} 3 & 0 \\ 0 & 3 \end{pmatrix} \begin{pmatrix} 2 & 2 \\ -1 & 2 \end{pmatrix} = \begin{pmatrix} 3\cdot2 + 0\cdot(-1) & 3\cdot2 + 0\cdot2 \\ 0\cdot2 + 3\cdot(-1) & 0\cdot2 + 3\cdot2 \end{pmatrix} = \begin{pmatrix} 6 & 6 \\ -3 & 6 \end{pmatrix}BA=(3003)(2−122)=(3⋅2+0⋅(−1)0⋅2+3⋅(−1)3⋅2+0⋅20⋅2+3⋅2)=(6−366)ABとBAを比較すると、AB=BAAB = BAAB=BAです。3. 最終的な答え(1) AB≠BAAB \ne BAAB=BA(2) AB=BAAB = BAAB=BA