Three points are collinear if they all lie on the same straight line. If three points lie on the same line, then the slope between any two pairs of points must be equal.
Given:
Point A = (-1, 3)
Point B = (2, x)
Point C = (5, -1)
The slope formula between two points (x1,y1) and (x2,y2) is:
Slope =x2−x1y2−y1
Slope of AC =xC−xAyC−yA
=5−(−1)−1−3
=6−4
=−32
Slope of AB =xB−xAyB−yA
=2−(−1)x−3
=3x−3
For the points to be collinear, Slope of AB = Slope of AC:
3x−3=−32
x−3=−2
x=1
Therefore, the value of x=1.