Step 1 :Given the endpoints of a line segment are (3,1) and (5,3).
Step 2 :The formula to find the midpoint of a line segment with endpoints (x_1, y_1) and (x_2, y_2) is \(\left(\frac{x_1+x_2}{2}, \frac{y_1+y_2}{2}\right)\).
Step 3 :Substitute the given points into the formula: midpoint = \(\left(\frac{3+5}{2}, \frac{1+3}{2}\right)\) = (4.0, 2.0).
Step 4 :Final Answer: The midpoint of the line segment with endpoints (3,1) and (5,3) is \(\boxed{(4,2)}\).