Using the point-slope form (y - y₁) = m (x - x₁)
m= gradient = Δy/Δx
= \(\frac{5 - (-1)}{(-1) - 3}\)
= -\(\frac{3}{2}\)
midpoint of the line = \(( \frac{x_{1} + x_{2} }{2} , \frac{y_{1} + y_{2} }{2})\)
= \((\frac{3 + (-1)} {2} , \frac{-1 + 5 }{2})\)
= (1 , 2)
Using the formula, plug in the values for m = 3/2, y₁= 2 , x₁= 1
(y - 2) = 3/2 (x - 1)
y - 2 = \(\frac{3}{2}x - \frac{3}{2}\)
⇒ \(y - \frac{3}{2} x = \frac{4}{2} - \frac{3}{2}\)
⇒ \(y - \frac{3}{2} x = \frac{1}{2}\)
by multiplying through by 2,
⇒ 2y - 3x = 1