The potential energy of a system is represented in the first figure. the force acting on the system will be represented by
As slope of problem graph is positive and constant upto certain distance and then it becomes zero.
So from , up to distance a, F = constant (negative) and becomes zero suddenly.