Implemented the solution and the derivative of the solution at x.