数学のブログ

行列 行列の分割 小行列、積

線形代数演習〈理工系の数学入門コース/演習 新装版〉 (浅野 功義(著)、大関 清太(著)、岩波書店)の第2章(行列)、2-4(行列の分割)、問題1の解答を求めてみる。

行列Aを

A 11 = [ 1 - 1 0 2 ] A 12 = [ 0 0 0 0 ] A 21 = [ 0 0 0 0 ] A 22 = [ 1 - 1 0 2 ] A = [ A 11 A 12 A 21 A 22 ]

と分割。

行列Bを

B 11 = [ 0 0 0 0 ] B 12 = [ 2 3 0 1 ] B 21 = [ 2 3 0 1 ] B 22 = [ 0 0 0 0 ] B = [ B 11 B 12 B 21 B 22 ]

と分割。

1

A 2 = [ A 11 A 11 + A 12 A 21 A 11 A 12 + A 12 A 22 A 21 A 11 + A 22 A 21 A 21 A 12 + A 22 A 22 ]
= [ A 11 2 O O A 22 2 ]
A 11 2 = [ 1 - 1 0 2 ] [ 1 - 1 0 2 ] = [ 1 - 3 0 4 ]
A 22 2 = [ 1 - 3 0 4 ]
A 2 = [ 1 - 3 0 0 0 4 0 0 0 0 1 - 3 0 0 0 4 ]

2

B 2 = [ B 11 B 11 + B 12 B 21 B 11 B 12 + B 12 B 22 B 21 B 11 + B 22 B 21 B 21 B 12 + B 22 B 22 ]
= [ B 12 B 21 O O B 21 B 12 ]
[ 2 3 0 1 ] [ 2 3 0 1 ] = [ 4 9 0 1 ]
B 2 = [ 4 9 0 0 0 1 0 0 0 0 4 9 0 0 0 1 ]

3

A B = [ A 11 B 11 + A 12 B 21 A 11 B 12 + A 12 B 22 A 21 B 11 + A 22 B 21 A 21 B 12 + A 22 B 22 ]
= [ O A 11 B 12 A 22 B 21 O ]
A 11 B 12 = [ 1 - 1 0 2 ] [ 2 3 0 1 ] = [ 2 2 0 2 ]
A B = [ 0 0 2 2 0 0 0 2 2 2 0 0 0 2 0 0 ]

4

B A = [ B 11 A 11 + B 12 A 21 B 11 A 12 + B 12 A 22 B 21 A 11 + B 22 A 21 B 21 A 12 + B 22 A 22 ]
= [ O B 12 A 22 B 21 A 11 O ]
B 12 A 22 = B 21 A 11 = [ 2 3 0 1 ] [ 1 - 1 0 2 ] = [ 2 4 0 2 ]
B A = [ 0 0 2 4 0 0 0 2 2 4 0 0 0 2 0 0 ]

コード(Wolfram Language, Jupyter)

a = {{1, -1, 0, 0}, {0, 2, 0, 0}, {0, 0, 1, -1}, {0, 0, 0, 2}}
{{1, -1, 0, 0}, {0, 2, 0, 0}, {0, 0, 1, -1}, {0, 0, 0, 2}}
b = {{0, 0, 2, 3}, {0, 0, 0, 1}, {2, 3, 0, 0}, {0, 1, 0, 0}}
{{0, 0, 2, 3}, {0, 0, 0, 1}, {2, 3, 0, 0}, {0, 1, 0, 0}}
a . a
{{1, -3, 0, 0}, {0, 4, 0, 0}, {0, 0, 1, -3}, {0, 0, 0, 4}}
b . b
{{4, 9, 0, 0}, {0, 1, 0, 0}, {0, 0, 4, 9}, {0, 0, 0, 1}}
a . b
{{0, 0, 2, 2}, {0, 0, 0, 2}, {2, 2, 0, 0}, {0, 2, 0, 0}}
b . a
{{0, 0, 2, 4}, {0, 0, 0, 2}, {2, 4, 0, 0}, {0, 2, 0, 0}}