Positive Definite Extensions, Canonical Equations and Inverse Problems