What is the equation of a line passing through points and ?
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
There are many ways to write this equation. Using the traditional slope-intercept equation, y = m x + y 0 , we have m = Δ x Δ y = c − a d − b ; y 0 = b − m a = c − a b ( c − a ) − ( d − b ) a = c − a b c − d a , y = c − a ( d − b ) x + b c − d a . Or, use the fact that any two points on the line should give the same slope value: x − a y − b = c − a d − b ; y = b + c − a ( x − a ) ( d − b ) , which is easily simplified to the same equation.
Or write ( x , y ) as an affine combination, ( x , y ) = λ ( a , b ) + μ ( c , d ) with λ + μ = 1 ; then ⎣ ⎡ a b 1 c d 1 x y 1 ⎦ ⎤ ⎝ ⎛ λ μ − 1 ⎠ ⎞ = ⎝ ⎛ 0 0 0 ⎠ ⎞ must have a non trivial solution, so that 0 = ∣ ∣ ∣ ∣ ∣ ∣ a b 1 c d 1 x y 1 ∣ ∣ ∣ ∣ ∣ ∣ = x ( b − d ) + y ( c − a ) + ( a d − b c ) , so that y = − c − a x ( b − d ) + ( a d − b c ) = c − a x ( d − b ) + ( b c − a d ) .