Example 1: Find the slope of a line which passes through the points (-7, 2) and (-3, 4).

Solution:

Given,

$x_{1}$ = -7 , $y_{1}$ = 2

$x_{2}$ = -3 , $y_{2}$ = 4

The slope of the line is:

$m = $$\frac{(y_{2} - y_{1})}{(x_{2} - x_{1})}$

$m = $$\frac{(4 - 2)}{(-3 + 7)}$

$m = $$\frac{2}{4}$

$m = $$\frac{1}{2}$

Example 2: Find the slope of a line which passes through the points (2, 4) and (6, -2).

Solution:

Given,

$x_{1}$ = 2 , $y_{1}$ = 4

$x_{2}$ = 6 , $y_{2}$ = -2

The slope of the line is:

$m = $$\frac{(y_{2} - y_{1})}{(x_{2} - x_{1})}$

$m = $$\frac{(-2 - 4)}{(6 - 2)}$

$m = $$\frac{-6}{4}$

$m = $$\frac{-3}{2}$