Equation of a Line
The equation of the line in slope-intercept form is:
y=mx+b
Where:
m = slope
b = y-intercept.
Suppose we know the line passes through points A(x1,y1) and B(x2,y2). The slope can be calculated with the equation:

We are given the points (-1,1) and (2,3). Calculating the slope:

Once we know the value of the slope, the equation of the line is:

The value of b can be determined by substituting (x,y) for one of the given points, for example (2,3):

Solving for b:

The equation of the line is, finally:

There are other forms to write the equation of a line, we used the slope-intercept form