The endpoints of a diameter of a circle in the xy-plane are (−3,1) and (5,7). Which of the following is an equation of the circle?
(x+1)2+(y+4)2=25
(x−1)2+(y−4)2=25
(x+1)2+(y+4)2=50
(x−1)2+(y−4)2=50