A state space approach to canonical factorization with applications (Birkhäuser, 2010)