y = x +
the equation of a line in slope-intercept form is
y = mx + c ( m is the slope and c the y-intercept )
to calculate m use the gradient formula
m = ( y₂ - y₁ ) / (x₂ - x₁ )
with (x₁, y₁ ) = (3, 4 ) and (x₂, y₂ ) = (9, 7 )
m = = =
y = x + c ← is the partial equation
to find c substitute either of the 2 points into the partial equation
using (3, 4 ) then
4 = + c ⇒ c =
y = x + ← equation in slope-intercept form