ok take a inverse square force like A/r^2 always pointing towards origin. where 'A' is some constant and 'r' is distance from origin of force. then potential energy function for this is U= A/r + c . where c is arbitrary constant. then potential in this case increases in direction of force.