1.3.1 Equation of a Straight Line

In this topic we will learn how to:

  • find the equation of a straight line given sufficient information
  • interpret and use any of the forms y=mx+cy = mx + c, yy1=m(xx1)y - y_{1} = m(x - x_{1}), ax+by+c=0ax + by + c = 0 in solving problems
  • Calculate distances, gradients, midpoints, points of intersection and use the relationship between the gradients of parallel and perpendicular lines.

A straight line is one that can be written in the form,
y=mx+cy = mx + cTo be able to find the equation of a straight line, you need to find the gradient, mm, and the y-intercept, cc. To do that you either need two points that lie on the line or one point and the gradient. The formula for find the gradient is,
m=y1y2x1x2m = \frac{y_{1} - y_{2}}{x_{1} - x_{2}}The equation of a straight line can be written in many forms. The most common being,
y=mx+cy = mx + cOther common forms are,
ax+by+c=0ax + by + c = 0Where aa, bb and cc are constants.

And,
yy1=m(xx1)y - y_{1} = m(x - x_{1})Where mm is the gradient and x1x_{1} and y1y_{1} represent the a point on the line (x1,y1)(x_{1}, y_{1}).Length of a Line\textbf{\textcolor{gray}{Length of a Line}}To find the length of a line ABAB use the formula,
AB=(x1x2)2+(y1y2)2AB = \sqrt{(x_{1} - x_{2})^{2} + (y_{1} - y_{2})^{2}}Midpoint\textbf{\textcolor{gray}{Midpoint}}To find the midpoint of a line use the formula,
M=(x1+x22,y1+y22)M = \left(\frac{x_{1} + x_{2}}{2}, \frac{y_{1} + y_{2}}{2}\right)Parallel Lines\textbf{\textcolor{gray}{Parallel Lines}}Parallel lines are lines that never meet. They have the same gradient.Perpendicular Lines\textbf{\textcolor{gray}{Perpendicular Lines}}Perpendicular lines are lines that intersect each other at 9090^{\circ}. Their gradients are negative reciprocals of each other i.e the product of their gradients is equal to 1-1,
m1×m2=1m_{1} \times m_{2} = -1Let’s walk through some past paper questions to further understand.

1. The point MM is the mid-point of the line joining the points (3,7)(3, 7) and (1,1)(-1, 1). Find the equation of the line through MM which is parallel to the line x3+y2=1\frac{x}{3} + \frac{y}{2} = 1. (9709/12/O/N/19 number 2)

Let’s call the line whose equation we’re looking for, ll.

To find the equation of ll we can find one point and the gradient. We can get the gradient from the line parallel to ll. ll passes through the mid-point,
MM, we can use this as our point.

Let’s find the coordinates of the midpoint,

M=(x1+x22,y1+y22)M = \left(\frac{x_{1} + x_{2}}{2}, \frac{y_{1} + y_{2}}{2}\right)M=(3+(1)2,7+12)M = \left(\frac{3 + (-1)}{2}, \frac{7 + 1}{2}\right)M=(1,4)M = (1, 4)Therefore, ll passes through,
M(1,4)M(1, 4)To find the gradient of ll, let’s use the equation of the line parallel to ll,
x3+y2=1\frac{x}{3} + \frac{y}{2} = 113x+12y=1\frac{1}{3}x + \frac{1}{2}y = 1Let’s write it in the form y=mx+cy = mx + c by making yy the subject of the formula,
13x+12y=1\frac{1}{3}x + \frac{1}{2}y = 112y=13x+1\frac{1}{2}y = -\frac{1}{3}x + 1 y=23x+2y = -\frac{2}{3}x + 2 Therefore, the gradient of ll is,
m=23m = -\frac{2}{3}Now that we have a point and the gradient, let’s find the equation of ll,
m=23 and the line passes through M(1,4)m = -\frac{2}{3} \textmd{ and the line passes through } M(1, 4)yy1=m(xx1)y - y_{1} = m(x - x_{1})y4=23(x1)y - 4 = -\frac{2}{3}(x - 1)You can leave it here, but it’s advised you simplify it to the form ax+by+c=0ax + by + c = 0 unless told otherwise,
y4=23(x1)y - 4 = -\frac{2}{3}\left(x - 1\right)32(y4)=x1-\frac{3}{2}(y - 4) = x - 132y+6=x1-\frac{3}{2}y + 6 = x - 1x+32y61=0x + \frac{3}{2}y - 6 - 1 = 0x+32y7=0x + \frac{3}{2}y - 7 = 0Therefore, the final answer is,
x+32y7=0x + \frac{3}{2}y - 7 = 02. Two points AA and BB have coordinates (1,1)(-1, 1) and (3,4)(3, 4) respectively. The line BCBC is perpendicular to ABAB and intersects the xx-axis at CC. Find the equation of BCBC and the xx-coordinate of CC. (9709/13/O/N/18 number 4)

To understand the question, let’s sketch an oversimplified diagram of the problem,

Rendered by QuickLaTeX.com

To find the equation of BCBC we will use the, one point and gradient, route. ABAB is perpendicular to BCBC so we can use the gradient of ABAB to find the gradient of BCBC. Let’s find the gradient of ABAB,
Gradient of AB=413+1\textmd{Gradient of }AB = \frac{4 - 1}{3 + 1}Gradient of AB=34\textmd{Gradient of }AB = \frac{3}{4}For perpendicular lines,
m1×m2=1m_{1} \times m_{2} = -134×m2=1\frac{3}{4} \times m_{2} = -1m2=43m_{2} = -\frac{4}{3}Therefore, the gradient of line BCBC is,
43-\frac{4}{3}Note: Line BCBC passes through B(3,4)B(3, 4).

Now that we have both the point and the gradient, let’s find the equation of line BCBC,
m=43 and the line passes through B(3,4)m = -\frac{4}{3} \textmd{ and the line passes through } B(3, 4)y=mx+cy = mx + c4=43(3)+c4 = -\frac{4}{3}(3) + c4=4+c4 = -4 + cc=4+4c = 4 + 4c=8c = 8y=43x+8y = -\frac{4}{3}x + 8Now that we have the equation of line BCBC, let’s find the xx-coordinate of CC. CC is the xx-intercept, so y=0y = 0 at CC,
at y=0\textmd{at } y = 0y=43x+8y = -\frac{4}{3}x + 80=43x+80 = -\frac{4}{3}x + 843x=8\frac{4}{3}x = 8x=6x = 6Therefore, the final answer is,
The equation of line BC is y=43x+8\textmd{The equation of line }BC\textmd{ is } y = -\frac{4}{3}x + 8The x-coordinate of C is 6\textmd{The }x\textmd{-coordinate of }C\textmd{ is }63. The straight line with equation y=x+3y = x + 3 intersects the curve y=4x12y = 4x^{\frac{1}{2}} at points AA and BB. Find the length of ABAB. (9709/12/F/M/19 number 10)

To be able to find the length of ABAB, we have to find the coordinates of AA and BB. To do that we have to start by solving simultaneously, since the two graphs intersect,
y=4x12      y=x+3y = 4x^{\frac{1}{2}}\ \ \ \ \ \ y = x + 34x12=x+34x^{\frac{1}{2}} = x + 3x4x12+3=0x - 4x^{\frac{1}{2}} + 3 = 0Solve the hidden quadratic,
x4x12+3=0x - 4x^{\frac{1}{2}} + 3 = 0(x12)24x12+3=0(x^{\frac{1}{2}})^{2} - 4x^{\frac{1}{2}} + 3 = 0Let v=x12v = x^{\frac{1}{2}},
v24v+3=0v^{2} - 4v + 3 = 0(v1)(v3)=0(v - 1)(v - 3) = 0v=1      v=3v = 1\ \ \ \ \ \ v = 3v=x12v = x^{\frac{1}{2}}x12=1      x12=3x^{\frac{1}{2}} = 1\ \ \ \ \ \ x^{\frac{1}{2}} = 3(x12)2=12      (x12)2=32\left(x^{\frac{1}{2}}\right)^{2} = 1^{2}\ \ \ \ \ \ \left(x^{\frac{1}{2}}\right)^{2} = 3^{2}x=1      x=9x = 1\ \ \ \ \ \ x = 9Now let’s find the yy values. At x=1x = 1,
y=x+3y = x + 3y=1+3y = 1 + 3y=4y = 4At x=9x = 9,
y=x+3y = \textcolor{#2192ff}{x} + 3y=9+3y = \textcolor{#2192ff}{9} + 3y=12y = 12Therefore, the coordinates of AA and BB are,
A(1,4) and B(9,12)A(1, 4) \textmd{ and } B(9, 12)Now let’s find the length of ABAB,
AB=(x1x2)2+(y1y2)2AB = \sqrt{(x_{1} - x_{2})^{2} + (y_{1} - y_{2})^{2}}AB=(19)2+(412)2AB = \sqrt{(1 - 9)^{2} + (4 - 12)^{2}}AB=82AB = 8\sqrt{2}Therefore, the final answer is,
AB=82AB = 8\sqrt{2}4. The coordinates of two points AA and BB are (7,3)(-7, 3) and (5,11)(5, 11) respectively. Show that the equation of the perpendicular bisector of ABAB is 3x+2y=113x + 2y = 11. (9709/13/M/J/20 number 10)

A perpendicular bisector, is one that intersects a line at 9090^{\circ} and it splits the line into two equal parts. This means it passes through the midpoint of the line. To find the equation of the perpendicular bisector, we need to find a point it passes through (midpoint) and the gradient. Let’s start by finding the gradient of line ABAB,
Gradient of AB=1135+7\textmd{Gradient of } AB = \frac{11 - 3}{5 + 7}Gradient of AB=23\textmd{Gradient of } AB = \frac{2}{3}Let’s use m1×m2=1m_{1} \times m_{2} = -1, to find the gradient of the perpendicular bisector,
m1×m2=1m_{1} \times m_{2} = -123×m2=1\frac{2}{3} \times m_{2} = -1m2=32m_{2} = -\frac{3}{2}Let’s find the midpoint of line ABAB,
M=(x1+x22,y1+y22)M = \left(\frac{x_{1} + x_{2}}{2}, \frac{y_{1} + y_{2}}{2}\right)M=(7+52,3+112)M = \left(\frac{-7 + 5}{2}, \frac{3 + 11}{2}\right)M=(1,7)M = (-1, 7)Now that we have a point and the gradient, we can find the equation of the perpendicular bisector,
perpendicular bisector passes through M(1,7)gradient is 32\textmd{perpendicular bisector passes through } M(-1, 7)\\ \textmd{gradient is } -\frac{3}{2}yy1=m(xx1)y - y_{1} = m(x - x_{1})y7=32(x+1)y - 7 = -\frac{3}{2}(x + 1)2(y7)=3(x+1)-2(y - 7) = 3(x + 1)2y+14=3x+3-2y + 14 = 3x + 33x+2y+314=03x + 2y + 3 - 14 = 03x+2y11=03x + 2y - 11 = 03x+2y=113x + 2y = 11Therefore, the equation of the perpendicular bisector is,
3x+2y=113x + 2y = 11