How do you calculate the slope of (0,0) and (2,6)?

1 Answer
Aug 21, 2015

m = 3m=3

Explanation:

For two points written in the general form

color(blue)((x_1"," y_1))" "(x1,y1) and " "color(blue)((x_2"," y_2)) (x2,y2)

the slope of the line that passes through both of these points is defined as

color(blue)("slope" = m = ((y_2 - y_1))/((x_2 - x_1)))slope=m=(y2y1)(x2x1)

In your case, you have

{(x_1 = 0), (y_1 = 0) :}" " and " "{(x_2 = 2), (y_2 = 6) :}.

This means that the slope will be equal to

m = (6 - 0)/(2 - 0) = 6/2 = color(green)(3)

To plot the line, use the formula

color(blue)(y - y_i = m * (x- x_i))

Plug in the coordinates of one of the two points to get

y - y_1 = m * (x-x_1)

y - 0 = 3 * (x - 0)

y = 3x

graph{3x [-10, 10, -5, 5]}