To determine the equation of the line, given that you know two points of the line, the first step is to calculate the slope of the line.
Use the formula of the slope:
Where
(x₁,y₁) are the coordinates of one point of the line
(x₂,y₂) are the coordinates of a second point of the line
Use (-2,-8) as (x₁,y₁) and (3,2) as (x₂,y₂)
The slope of the line is m=2
Next, using the point-slope form, you can determine the equation of the line:
Replace (-2,-8) as (x₁,y₁) and m=2
Next, write the equation in slope-intercept form:
Distribute the multiplication in the parentheses term
Subtract 8 from both sides of the equal sign
So, the equation of the line is y=2x-4