Example
Plot a line through two points, then derive its equation.
highlighted = computed this step
Step 1 — Plot the line
Plot the line through the two points.
Coordinate plot
Step 2 — Read two points
Read the two points on the line.
A=(1,3)B=(3,7)
Step 3 — Compute slope
Use rise over run to find the slope.
m=(7−3)/(3−1)=2
Step 4 — Find intercept
Substitute one point to find b.
b=3−2⋅1=1
Step 5 — Equation
Write the slope-intercept equation.
y=2x+1
Step 6 — Verify point
Check another point in the equation.
At x=2:5=2⋅2+1
slope-and-equation
m = (y2-y1)/(x2-x1), then y = mx + b