midpoint of the points [tex](x_1,y_1)[/tex] and [tex](x_2,y_2)[/tex] is
[tex](\frac{x_1+x_2}{2},\frac{y_1+y_2}{2})[/tex]
in this case
we have (-1,3) and (7,-1)
the midpoint will be
[tex](\frac{-1+7}{2},\frac{3-1}{2})[/tex]
simplify
[tex](\frac{6}{2},\frac{2}{2})[/tex]
simplify
[tex](3,1)[/tex]
the midpoint is [tex](3,1)[/tex]