For A, B such that AB is square, prove trAB = trBA.
来源:互联网 发布:点点虫 知乎 编辑:程序博客网 时间:2024/06/06 14:13
参考资料:https://math.vanderbilt.edu/sapirmv/msapir/prtrace.html
Here is the theorem about traces.
Theorem. The following properties of traces hold:
- tr(A+B)=tr(A)+tr(B)
- tr(kA)=k tr(A)
- tr(AT)=tr(A)
- tr(AB)=tr(BA)
Proof. Properties 1,2 and 3 immediately follow from the definition of the trace. Let us prove the fourth property:
The trace of AB is the sum of diagonal entries of this matrix. By the definition of the product of two matrices, these entries are:
A(1,1)B(1,1)+A(1,2)B(2,1)+...+A(1,n)B(n,1), A(2,1)B(1,2)+A(2,2)B(2,2)+...+A(2,n)B(n,2), .......................................... A(m,1)B(1,m)+A(m,2)B(2,m)+...+A(m,n)B(n,m)
Then the trace of AB is the sum of all these n2 products. We can compute the sum of these products in a different way: first compute the sum of the products in each column and then take the sum of these sums:
A(1,1)B(1,1)+A(2,1)B(1,2)+...+A(m,1)B(1,m)+ A(1,2)B(2,1)+A(2,2)B(2,2)+...+A(m,2)B(2,m)+ ........................................... A(1,n)B(n,1)+A(2,n)B(n,2)+...+A(m,n)B(n,m)
But this is exactly the trace of BA (the sum in the first row is the first diagonal entry of BA, the sum in the second row is the second diagonal entry, etc.):
A(1,1)B(1,1)+A(2,1)B(1,2)+...+A(m,1)B(1,m), A(1,2)B(2,1)+A(2,2)B(2,2)+...+A(m,2)B(2,m), ........................................... A(1,n)B(n,1)+A(2,n)B(n,2)+...+A(m,n)B(n,m)
So indeed tr(AB)=tr(BA).
- For A, B such that AB is square, prove trAB = trBA.
- 23 Pictures That Prove Society Is Doomed
- ind the integer A such that pow(A,N) is as close as possible to B
- [Google]find a,b,c such that a+b+c<=d
- A ab=new B();
- be [prove] a great boon to [for]
- 8.3 Prove that STINGY SAT is NP-complete.
- static { A = "ab";B = "cd"; }
- p(a|b)=p(ab)/p(b)为什么?
- CareerCup Given an array A[], find (i, j) such that A[i] < A[j] and (j - i) is maximum.
- 中序式转后序式?(a+b)*(c+d)=>ab+cd+*
- Problem B: AB*C+A=y的方程
- 《牛客网leetcode20题》Given a string s, partition s such that every substring of the partition is a palind
- ab翻转int a, b; a = int.Parse(txtbfirst.Text); b = int.Parse(txtbsecond.Text); a = a + b; b = a - b; a
- Cannot create children for a parent that is in a different thread
- QObject: Cannot create children for a parent that is in a different thread
- qt#5 QObject: Cannot create children for a parent that is in a different thread.
- Qt里出现 Cannot create children for a parent that is in a different thread
- Zookeeper笔记
- caffe中loss函数代码分析--caffe学习(16)
- Java 多线程常见面试问题
- Linux从控制台一次读取一个字符,无需等待回车键
- dockerfile介绍
- For A, B such that AB is square, prove trAB = trBA.
- redis的基本信息
- 好的文章记录
- 一个进程在内存中的布局
- Trafodion Bulk Load 对比 Native HBase Bulk Load
- Myeclipse如何使用自带git工具向远程仓库提交代码
- solidworks 添加 matlab插件 simmechanics 导出xml文件
- 设计模式:模板方法模式-template method
- 比较详细的了解javascript hashtable 的例子 由浅入深的详解 ,希望对各位有所帮助