What is the slope of a line segment with endpoints at (-1, 1) and (1, 5)?

The slope of a line segment with endpoints (x1, y1) and (x2, y2) can be found using the formula:

slope = (y2 - y1) / (x2 - x1)

In this case, (x1, y1) = (-1, 1) and (x2, y2) = (1, 5). Substituting these values into the formula:

slope = (5 - 1) / (1 - (-1))
= 4 / 2
= 2

So, the slope of the line segment is 2.