Find the conditions that the straight lines y=m1 x+c1, y=m2 x+c2 and y=m3 x+c3 may meet in a point.
The three lines are
y=m1 x+c1 ...(1)
y=m2 x+c2 ...(2)
y=m3 x+c3 ...(3)
Collinear or they meet at a point only when they have common point of intersection
Solving (1) and (2) for x and y
m1x+c1=m2x+c2
x(m1−m2)=c2−c1
x=c2−c1m1−m2
⇒ y=m1x+c1
=(c2−c1m1−m2)+c1
=m1c2−m1c1+m1c1−m2c1
Putting x and y in (3)
m1c2−m1c1=m3(c2−c1)m1−m2+c3
m21c2−m1m2c2−m1m2c1+m22c1
=m3c2−m3c1+m1c3−m2c3
⇒ m1(c2−c3)+m2(c3−c1)+m3(c1−c2)=0