矩阵结合律的 paradox, 何解?
楼主 · 1 楼
今天被一个同学问到实数系矩阵乘法结合律的证明,结果同学和我为了这事起了争执,
他认为证明矩阵乘法满足结合律时不必用到“矩阵系数落在实数里面,而实数乘法
具有结合律”,这项事实 (我认为会用到),和我起了争执。 所以我举了一个乘法
没有结合律的乘法来反驳他的论点。 但是他还是不相信,一直坚持他的看法,即
将 A(BC) = (AB)C 成立看成对定义域所有 x ,满足 A[B(Cx)] = A[B(Cx)],所以
成立。 (不过这本书的矩阵乘法定义比较怪,大家看一下我打的 Appendix 就可以知道。)
原题是一道习题:
Theroem. Let A = [a_ij] , B = [b_ij] , and C = [c_ij] be matrices
>>>>>>>>>>>>>>>>>>>>>>>r x s>>>>>>>>>>>>s x t>>>>>>>>>>>>>>>>t x v
over |R. Then A(BC) = (AB)C.
Exercise. Prove this theorem by direct use of Def. (Def 见 Appendix)
我认为这个定理成立的一个关键是 A, B, C 是三个 over |R 的矩阵,
而实数体 |R 的乘法“具有结合性”。
所以一般而言,此定理不成立。 反例如下: 在实数上的乘法,若定义成:
a x b := a + 2b。 则乘法结合律不成立,因为 1 x (2 x 3) ≠ (1 x 2) x 3.
如果实数加法同一般的实数加法,实数乘法定义为无结合律的乘法,则
则 [1 0] ([1 0][3 0]) = [1 0] [7 3] = [31 15]
>>>[0 -1]>>[0 2][0 1]>>>>[0 -1]>[8 4]>>>[29 13]
>>>([1 0][1 0]) [3 0] = [3 5][3 0] = [14 10]
>>>>[0 -1][0 2]>>[0 1]>>>[1 3][0 1]>>>[10 6]
所以矩阵乘法结合律在“实数乘法无结合律时”不一定成立。
Appendix:
Def. If Α = {u_1, u_2, ... , u_r} is a set of vectors in |R^n and
Β = {v_1, v_2, ... , v_s} is a set of vectors in span(A), a
matrix of transition (or transition matrix) from Α to Β is a matrix
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>r
A = [a_ij] such that v_j = ∑ a_ij u_i for j = 1, 2, ... , s.
>>>>>>>>>>>>>>>r x s>>>>>>>>>>>>>>>>>i=1
Def. Let A = [a_ij] and B = [b_ij] be matrices over |R, and let
>>>>>>>>>>>>>>>>>>>r x s>>>>>>>>>>>>>>>s x t
W be a subspace of |R^n of dimension r. Then A is the matrix of
transition from a basis Α = {u_1, u_2, ... , u_r} to a set
Β = {v_1, v_2, ... , v_s} in W, and B is a matrix of transition from
Β to a set Γ = {w_1, w_2, ... , W_t} in W. The product AB is defined
to be the matrix of transition from Α to Γ.
他认为证明矩阵乘法满足结合律时不必用到“矩阵系数落在实数里面,而实数乘法
具有结合律”,这项事实 (我认为会用到),和我起了争执。 所以我举了一个乘法
没有结合律的乘法来反驳他的论点。 但是他还是不相信,一直坚持他的看法,即
将 A(BC) = (AB)C 成立看成对定义域所有 x ,满足 A[B(Cx)] = A[B(Cx)],所以
成立。 (不过这本书的矩阵乘法定义比较怪,大家看一下我打的 Appendix 就可以知道。)
原题是一道习题:
Theroem. Let A = [a_ij] , B = [b_ij] , and C = [c_ij] be matrices
>>>>>>>>>>>>>>>>>>>>>>>r x s>>>>>>>>>>>>s x t>>>>>>>>>>>>>>>>t x v
over |R. Then A(BC) = (AB)C.
Exercise. Prove this theorem by direct use of Def. (Def 见 Appendix)
我认为这个定理成立的一个关键是 A, B, C 是三个 over |R 的矩阵,
而实数体 |R 的乘法“具有结合性”。
所以一般而言,此定理不成立。 反例如下: 在实数上的乘法,若定义成:
a x b := a + 2b。 则乘法结合律不成立,因为 1 x (2 x 3) ≠ (1 x 2) x 3.
如果实数加法同一般的实数加法,实数乘法定义为无结合律的乘法,则
则 [1 0] ([1 0][3 0]) = [1 0] [7 3] = [31 15]
>>>[0 -1]>>[0 2][0 1]>>>>[0 -1]>[8 4]>>>[29 13]
>>>([1 0][1 0]) [3 0] = [3 5][3 0] = [14 10]
>>>>[0 -1][0 2]>>[0 1]>>>[1 3][0 1]>>>[10 6]
所以矩阵乘法结合律在“实数乘法无结合律时”不一定成立。
Appendix:
Def. If Α = {u_1, u_2, ... , u_r} is a set of vectors in |R^n and
Β = {v_1, v_2, ... , v_s} is a set of vectors in span(A), a
matrix of transition (or transition matrix) from Α to Β is a matrix
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>r
A = [a_ij] such that v_j = ∑ a_ij u_i for j = 1, 2, ... , s.
>>>>>>>>>>>>>>>r x s>>>>>>>>>>>>>>>>>i=1
Def. Let A = [a_ij] and B = [b_ij] be matrices over |R, and let
>>>>>>>>>>>>>>>>>>>r x s>>>>>>>>>>>>>>>s x t
W be a subspace of |R^n of dimension r. Then A is the matrix of
transition from a basis Α = {u_1, u_2, ... , u_r} to a set
Β = {v_1, v_2, ... , v_s} in W, and B is a matrix of transition from
Β to a set Γ = {w_1, w_2, ... , W_t} in W. The product AB is defined
to be the matrix of transition from Α to Γ.
2 楼
矩阵的定义明确指出矩阵的元素是在确定的域(或环)上的,回忆一下运算的实质,就不难理解矩阵的运算性质与确定的域(或环)的运算性质是有关系的.
497811 维的矩阵的结合律不就是域上的结合律吗, 当然要依赖域或环上的结合律了。
497811 维的矩阵的结合律不就是域上的结合律吗, 当然要依赖域或环上的结合律了。