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