Homotopy method