To write the equation of a line in slope-intercept form (\(y = mx + b\)), we first need to determine the slope (\(m\)) and the y-intercept (\(b\)).
-
Find the slope \(m\): The slope formula is: \[ m = \frac{y_2 - y_1}{x_2 - x_1} \] Using the points \((0, 2)\) and \((1, -1)\):
- \(y_1 = 2\), \(y_2 = -1\)
- \(x_1 = 0\), \(x_2 = 1\)
Substitute these values: \[ m = \frac{-1 - 2}{1 - 0} = \frac{-3}{1} = -3 \]
-
Find the y-intercept \(b\): The y-intercept \(b\) is the value of \(y\) when \(x = 0\). From the point \((0, 2)\), we can see: \[ b = 2 \]
-
Write the equation: Now, substitute the slope \(m\) and the y-intercept \(b\) into the slope-intercept form: \[ y = -3x + 2 \]
Thus, the equation of the line in slope-intercept form is: \[ \boxed{y = -3x + 2} \]