Final answer:
To write the equation of a line in slope-intercept form given two points, find the slope and y-intercept. Using the given points (1, 5) and (-1, 1), the slope is 2. Substituting the slope and one of the points into the equation, the equation of the line is y = 2x + 3.
Step-by-step explanation:
To write the equation of a line in slope-intercept form given two points, we need to find the slope and the y-intercept.
The slope of a line can be calculated using the formula: slope = (change in y)/(change in x)
Using the given points (1, 5) and (-1, 1), we can calculate the slope as follows: slope = (5 - 1)/(1 - (-1)) = 4/2 = 2
Next, we can use the slope-intercept form of a line: y = mx + b
Substituting the slope and one of the given points (1, 5) into the equation, we can solve for the y-intercept: 5 = 2(1) + b => 5 = 2 + b => b = 3
Therefore, the equation of the line in slope-intercept form is: y = 2x + 3