Appendix A
Useful Facts from Algebra and Calculus
A.1 Norms & Inner Products
Norm Definition
Norm is a function ∥⋅∥:X→R+ with the following properties:
- ∥x∥=0⇔x=0,
- ∥αx∥=∣α∣∥x∥, where α∈R,
- ∥x+y∥≤∥x∥+∥y∥.
Inner Product Definition
The inner product is a function ⟨⋅,⋅⟩:X×X→R with the following properties:
- ⟨x,x⟩≥0,
- ⟨x,y⟩=⟨y,x⟩,
- ⟨αx,y⟩=α⟨x,y⟩,
- ⟨x+z,y⟩=⟨x,y⟩+⟨z,y⟩.
Chosen Properties of Norm and Inner Product
- ⟨x,x⟩=∥x∥2,
- ∣⟨x,y⟩∣≤∥x∥∥y∥ (for a vector in RD ⟨x,y⟩=∥x∥∥y∥cosθ),
- ∥x+y∥2=∥x∥2+2⟨x,y⟩+∥y∥2.
- ∥x−y∥2=∥x∥2−2⟨x,y⟩+∥y∥2.
A.2 Matrix Calculus
Linear Dependency
Let ϕm be a non-linear transformation, and x∈RM. A linear product of these two vectors is:
© The Author(s), under exclusive license to Springer Nature Switzerland AG 2022
J. M. Tomczak, Deep Generative Modeling,
https://doi.org/10.1007/978-3-030-93158-2
A Useful Facts from Algebra and Calculus
ϕ(x)Tw=w0ϕ0(x)+w1ϕ1(x)+…+wM−1ϕM−1(x)
=m=0∑M−1wmϕm(x),
where w=(w0w1…wM−1)T, ϕ(x)=(ϕ0(x)ϕ1(x)…ϕM−1(x))T.
Orthogonal and Orthonormal Vectors
Vectors x and y are orthogonal vectors if ⟨x,y⟩=0. Additionally, if ∥x∥=∥y∥=1, these vectors are called orthonormal.
Chosen Properties of Matrix Calculus
- (AB)−1=B−1A−1
- (AB)T=BTAT
- Matrix A is positive definite ⇔ for all vectors such that x=0 the following inequality holds true xTAx>0
- ∇xxTx=2x
- ∇x∥W21(b−Ax)∥22=−2ATW(b−Ax), where W is a symmetric matrix
For given vectors x,y and a matrix A, which is symmetric and positive definite, one gets
∂y∂(x−y)TA(x−y)=−2A(x−y)
∂A∂(n1det(A))=A−1
Special Cases of Invertible Matrices
A−1=[acbd]−1=ad−bc1[d−c−ba]
A−1=adgbehcfk−1=detA1(ek−fh)(fg−dk)(dh−eg)(ch−bk)(ak−cg)(bg−ah)(bf−ce)(cd−af)(ae−bd)