The Math of the Krugman-Obstfeld Model of Monopolistic