Derivatives of matrix

1. matrix V scalar

A(x)x=[A(x)ijx]i,j

2. scalar V matrix

f(A)A=[f(x)Aij]i,j

3. vector V vector

g(V)V=g(V)iVji,j

4. Examples

4.1 Derivative of inverse matrix

A1A=IA1Ax=0A1xA+A1Ax=0A1x=A1AxA1

For x=Aij with A being nonsymmetric, we have

AAij=Iij

and

A1Aij=A1IijA1

and
2A1AijAkr=A1AkrAij=A1IkrA1Aij=A1AijIkrA1A1IkrA1IkrA1Aij=(A1IijA1)IkrA1A1Ikr(A1IijA1)Ikr=A1IijA1IkrA1+A1IkrA1IijA1

For x=Aij with A being symmetric, we have

AAij=Iij+IjiδjiIji=dIij

Then all can be replaced by Iij

4.2 Derivative of trace

If A is not symmetric:

tr(A)A=[tr(A)Aij]ij=[tr(AAij)]ij=tr[Iij]ij=In

If A is symmetric:
tr(A)A=[tr(A)Aij]ij=[tr(AAij)]ij=tr[Iij+Iji+δjiIji]ij=In

If S is not symmetric:

f=tr(S1B)fSij=tr(S1B)Sij=tr(S1BSij)=tr(S1IijS1B)=tr(IijS1BS1)=Θ=S1BS1tr(IijΘ)=Θjitr(S1B)S=(S1BS1)T

If S is symmetric:

f=tr(S1B)fSij=tr(S1B)Sij=tr(S1BSij)=tr(IijΘ)=[Θji+ΘijδijΘij]tr(S1B)S=[S1(B+BT)S1diag(S1BS1)]

4.3 Applications

tr(AB)A=BT

tr(ATB)A=B

tr(ATSA)A=[tr(ATSA)Aij]ij=[tr(IjiSA+ATSIij)]ij=SA+SATA=(S+ST)A

S is symmetric

tr((ATSA)1R)A=tr((ATSA)1R)Aijij=tr(ATSA)1RAijij=[tr((ATSA)1ATSAAij(ATSA)1R)]ij=[tr((ATSA)1(IjiSA+ATSIij)(ATSA)1R)]ij=[tr(IjiSA(ATSA)1R(ATSA)1)]ij+[tr((ATSA)1R(ATSA)1ATSIij)]ij=SA(ATSA)1R(ATSA)1SA(ATSA)1RT(ATSA)1=SA(ATSA)1(R+RT)(ATSA)1

tr((ATS2A)1(ATS1A))A=tr((AT1S2A1)1(ATS1A))AA1=A+tr((ATS2A)1(AT2S1A2))AA2=A=2S2A(ATS2A)1(ATS1A)(ATS2A)1+2S1A(ATS2A)1

4.4 Derivative of determinant

|R|Rij=Cij

which is its cofactor(from the cofactor expansion). Then
|R|R=C

which is the adjoint matrix. Then from the fact that
|R|I=RCT

we have
|R|R=|R|R1T

Furthermore

ln|R|R=1|R||R|R=R1T

5. Reference

reference of book “Introduction to Statistical Pattern Recognition, second edition.”

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值