Find the equation of the line joining (1,2) and (3,6) using determinants.
Find the equation of the line joining (3,1) and (9,3) using determinants
Let P(x,y) be any point on the line joining A(1,2) and B(3,6). If the points A, B and P are collinear, then the area of triangle ABP will be zero.
∴ 12∣∣
∣∣111361xy1∣∣
∣∣=0⇒12[1(6−y)−2(3−x)+1(3y−6x)]=0
⇒6−y−6+2x+3y−6x=0⇒2y−4x=0⇒y=2x
Hence, the equation of the line joining the given points is y=2x.
Let P(x,y) be any point on the line joining A(3,1) and B(9,3). Then, the points A, B and P are collinear, Therefore, then the area of triangle ABP will be zero.
∴ 12∣∣
∣∣311911xy1∣∣
∣∣=0
⇒12|3(3−y)−1(9−x)+1(9y−3x)|=0
⇒9−3y−9+x+9y−3x=0⇒6y−2x=0⇒x−3y=0
Hence, the equation of the line joining the given points is x-3y=0.