Potential energy v/s displacement curve for one dimensional field is shown. Force at A and B is respectively.