The general form of a line equation is given as . Given two points
and
, we can compute coefficients
,
, and
as follows. First, compute the slope as rise over run
. Second, plug this value
and one of the points into the point-slope form, given by
, and gather all terms on the lefthand side: