Added a method for computing the linearized solution.