So far we have three different forms of an equation for a straight line. Β
We have:
$y=mx+b$y=mx+bΒ Β (gradient-intercept form)
$ax+by+c=0$ax+by+c=0Β Β (general form)
$y-y_1=m\left(x-x_1\right)$yβy1β=m(xβx1β)Β Β (point-gradient formula)
Β
What if the informationΒ given is two points on the line? Β Β
We have a couple of options.
Find the equation of the line that passes through the points A$\left(-3,6\right)$(β3,6) and B$\left(5,-10\right)$(5,β10).
As we have been developing good mathematical practice, the first thing to do here is to quickly sketch the two points on a plane so we can visually see the line we are finding the equation for. Β This helps to check if our line will have positive or negative gradient and to refer back to when we have our final equation.Β
We need to find the gradient of the line, so I will use the gradient formula:
Β
$m$m | $=$= | $\frac{y_2-y_1}{x_2-x_1}$y2ββy1βx2ββx1ββ |
$m$m | $=$= | $\frac{-10-6}{5-\left(-3\right)}$β10β65β(β3)β |
$m$m | $=$= | $\frac{-16}{8}$β168β |
$m$m | $=$= | $-2$β2 |
$m=-2$m=β2Β (negative as we suspected from our sketch!)
Now we can use the point gradient formula. Since both given points lie on the line, we can choose to use whichever point we like.
Let's use $\left(-3,6\right)$(β3,6) and the gradient we found, $m=-2$m=β2.
$y-y_1$yβy1β | $=$= | $m\left(x-x_1\right)$m(xβx1β) |
$y-6$yβ6 | $=$= | $-2\left(x-\left(-3\right)\right)$β2(xβ(β3)) |
$y-6$yβ6Β | $=$= | $-2\left(x+3\right)$β2(x+3) |
$y-6$yβ6 | $=$= | $-2x-6$β2xβ6 |
$y$y | $=$= | $-2x$β2x |
Β
Think of the basic idea behind a straight line: pick any two points on the line and the gradient between them will always be the same.
So say we want to find the equation of a line that passes throughΒ
A$\left(-3,6\right)$(β3,6), (which will be ourΒ $\left(x_1,y_1\right)$(x1β,y1β) ), and Β Β Β Β
B$\left(5,-10\right)$(5,β10), (which will be ourΒ $\left(x_2,y_2\right)$(x2β,y2β) ).
Let C$\left(x,y\right)$(x,y)Β represent any point on the line.
Then the gradient between point A and B will be equal to the gradient between point AΒ and C.Β Let's express this mathematically:
$\text{Gradient of interval AB }$Gradient of interval AB | $=$= | $\frac{y_2-y_1}{x_2-x_1}$y2ββy1βx2ββx1ββ |
Β | $=$= | $\frac{-10-6}{5-\left(-3\right)}$β10β65β(β3)β |
AND | Β | Β |
$\text{Gradient of interval AC }$Gradient of interval AC | $=$= | $\frac{y-y_1}{x-x_1}$yβy1βxβx1ββ |
Β | $=$= | $\frac{y-6}{x-\left(-3\right)}$yβ6xβ(β3)β |
Equating the gradients, we get:
$\frac{y-y_1}{x-x_1}$yβy1βxβx1ββ | $=$= | $\frac{y_2-y_1}{x_2-x_1}$y2ββy1βx2ββx1ββΒ | (THE TWO POINT FORMULA) |
$\frac{y-6}{x-\left(-3\right)}$yβ6xβ(β3)β | $=$= | $\frac{-10-6}{5-\left(-3\right)}$β10β65β(β3)β | Β |
$\frac{y-6}{x-\left(-3\right)}$yβ6xβ(β3)β | $=$= | $\frac{-16}{8}$β168β | Β |
$\frac{y-6}{x-\left(-3\right)}$yβ6xβ(β3)β | $=$= | $-2$β2 | Β |
$y-6$yβ6 | $=$= | $-2\left(x+3\right)$β2(x+3) | Β |
$y-6$yβ6 | $=$= | $-2x-6$β2xβ6 | Β |
$y$y | $=$= | $-2x$β2x | Β |
Β
We call this the two point formula, but it is really just the process of finding the gradient first and then using the point gradient formula. Β
$\frac{y-y_1}{x-x_1}=\frac{y_2-y_1}{x_2-x_1}$yβy1βxβx1ββ=y2ββy1βx2ββx1ββ
Find the equation of a line that passes through the points P$\left(x_1,y_1\right)$(x1β,y1β) and Q$\left(x_2,y_2\right)$(x2β,y2β).
Let's work through the same stepsΒ as we did in example 1, first by finding the gradient and then using the point gradient formula.
Gradient of the line:
$m=\frac{y_2-y_1}{x_2-x_1}$m=y2ββy1βx2ββx1ββ
Substituting into the point-gradient formula:
$y-y_1=m\left(x-x_1\right)$yβy1β=m(xβx1β)
$y-y_1=\frac{y_2-y_1}{x_2-x_1}\left(x-x_1\right)$yβy1β=y2ββy1βx2ββx1ββ(xβx1β)
This is the process you would use to find the gradient for any straightΒ line if you are just given two points.Β
Find gradient first, then use point gradient formula.
With one more manipulation (divide both sides byΒ $x-x_1$xβx1β) we can changeΒ
$y-y_1=\frac{y_2-y_1}{x_2-x_1}\left(x-x_1\right)$yβy1β=y2ββy1βx2ββx1ββ(xβx1β)
into
$\frac{y-y_1}{x-x_1}=\frac{y_2-y_1}{x_2-x_1}$yβy1βxβx1ββ=y2ββy1βx2ββx1ββΒ and we call this the two point formula.
Β
Find the equation of the line that goes through $\left(-5,2\right)$(β5,2) and $\left(-4,-3\right)$(β4,β3).
Think: We can use the two point formula:Β $\frac{y-y_1}{x-x_1}=\frac{y_2-y_1}{x_2-x_1}$yβy1βxβx1ββ=y2ββy1βx2ββx1ββ. Let $\left(x_1,y_1\right)$(x1β,y1β) beΒ $\left(-5,2\right)$(β5,2), and letΒ $\left(x_2,y_2\right)$(x2β,y2β) beΒ $\left(-4,-3\right)$(β4,β3).
Do: Substitute the values into the formula:
$\frac{y-y_1}{x-x_1}$yβy1βxβx1ββ | $=$= | $\frac{y_2-y_1}{x_2-x_1}$y2ββy1βx2ββx1ββ |
$\frac{y-2}{x-\left(-5\right)}$yβ2xβ(β5)β | $=$= | $\frac{-3-2}{-4-\left(-5\right)}$β3β2β4β(β5)β |
$\frac{y-2}{x+5}$yβ2x+5β | $=$= | $\frac{-5}{1}$β51β |
$\frac{y-2}{x+5}$yβ2x+5β | $=$= | $-5$β5 |
MakeΒ $y$yΒ the subject: | Β | Β |
$y-2$yβ2 | $=$= | $-5\left(x+5\right)$β5(x+5) |
$y-2$yβ2 | $=$= | $-5x-25$β5xβ25 |
$y$y | $=$= | $-5x-23$β5xβ23 |
Exercise: Switch the points you call $\left(x_1,y_1\right)$(x1β,y1β) and $\left(x_2,y_2\right)$(x2β,y2β) in any of the above examples. You should get exactly the same equation.
Β
A line $L$L passes through $A$A$\left(-7,-1\right)$(β7,β1) and $B$B$\left(-9,-4\right)$(β9,β4). Find the equation of line $L$L in general form. Sketch the line on the number plane below. Solve for the $x$x-intercept of the line. Solve for the $y$y-intercept of the line.
Β
Β
Β
Β
Β