Gradient of a Straight Line

Gradient of a Straight Line

If the points A( x 1 , y 1 )  and B( x 2 , y 2 )   lie on the straight line y=mx+c   , then gradient of ,the straight line
m= y 2 y 1 x 2 x 1 or y 1 y 2 x 1 x 2