The value of x, for which the points (x,-1), (2,1) and (4,5) lie on a line is
The condition for the three points to lie on a straight line is that the area of the triangle formed by these three points is zero.
Area of a triangle = 0
12[x1(y2−y3)+x2(y3−y1)+x3(y1−y2)] = 0
⇒ x(1 - 5) + 2(5 + 1) + 4 (-1-1) = 0
⇒x - 5x + 10 + 2 - 4 - 4 = 0
⇒ -4x + 12 - 8 = 0
⇒-4x+4=0
⇒x=1