To write the equation of the line in the form \( y = mx + b \), we need to determine the slope \( m \) and the y-intercept \( b \).
Step 1: Find the slope \( m \)
The formula to calculate the slope \( m \) between two points \((x_1, y_1)\) and \((x_2, y_2)\) is:
\[ m = \frac{y_2 - y_1}{x_2 - x_1} \]
Using the points \((-3, -1)\) and \((2, 4)\):
- \((x_1, y_1) = (-3, -1)\)
- \((x_2, y_2) = (2, 4)\)
Substituting these values into the slope formula:
\[ m = \frac{4 - (-1)}{2 - (-3)} = \frac{4 + 1}{2 + 3} = \frac{5}{5} = 1 \]
Step 2: Find the y-intercept \( b \)
We can use one of the points and the slope to find the y-intercept. Let's use the point \((2, 4)\) and the slope \( m = 1 \):
The equation of a line can also be written in point-slope form:
\[ y - y_1 = m(x - x_1) \]
Substituting \( m = 1 \), \( x_1 = 2 \), and \( y_1 = 4\):
\[ y - 4 = 1(x - 2) \]
Simplifying this equation:
\[ y - 4 = x - 2 \] \[ y = x + 2 \]
So, the y-intercept \( b = 2 \).
Final Equation:
Putting it all together, the equation of the line is:
\[ y = 1x + 2 \]
or simply:
\[ y = x + 2 \]