Odpowiedź:
A = ( - 2 , - 4 ) ; B = (2 , 6 )
xa = - 2 , xb = 2 , ya = - 4 , yb = 6
(xb - xa)(y - ya) = (yb - ya)(x - xa)
(2 + 2)(y + 4) = (6 + 4)(x + 2)
4(y + 4) = 10(x + 2)
4y + 16 = 10x + 20
4y = 10x + 20 - 16
4y = 10x + 4
y = (10/4)x + 4/4
y = (2 2/4)x + 1
y = (2 1/2)x + 1
y = 2,5x + 1