To find the equation of the line in slope-intercept form (y = mx + b), we first need to determine the slope (m) using the two points given: (0, 2) and (1, -1).
-
Calculate the slope (m): \[ m = \frac{y_2 - y_1}{x_2 - x_1} = \frac{-1 - 2}{1 - 0} = \frac{-3}{1} = -3 \]
-
Use one of the points to find the y-intercept (b):
We'll use the point (0, 2). Since this point is on the y-axis, the y-intercept is 2. \[ b = 2 \] -
Write the equation in slope-intercept form: Now that we know the slope is -3 and the y-intercept is 2, we can write the equation: \[ y = -3x + 2 \]
So, the equation of the line in slope-intercept form is: \[ y = -3x + 2 \]