Added derivative calculation to Solve