Content
Intercepts and equations of lines
Intercepts
All lines, except those parallel to the \(x\)-axis or the \(y\)-axis, meet both coordinate axes. Suppose that a line \(l\) passes through \((a,0)\) and \((0,b)\). Then \(a\) is the \(x\)-intercept and \(b\) is the \(y\)-intercept of \(l\). The intercepts \(a\) and \(b\) can be positive, negative or zero. All lines through the origin have \(a=0\) and \(b=0\).
Equations of lines
One of the axioms of Euclidean geometry is that two points determine a line. In other words, there is a unique line through any two fixed points. This idea translates to coordinate geometry and, as we shall see, all points on the line through two points satisfy an equation of the form \(ax+by+c=0\), with \(a\) and \(b\) not both 0. Conversely, any `linear equation' \(ax+by+c=0\) is the equation of a (straight) line. This is called the general form of the equation of a line.
Point–gradient form
Consider the line \(l\) which passes through the point \((x_1,y_1)\) and has gradient \(m\).
Let \(P(x,y)\) be any point on \(l\), except for \((x_1,y_1)\). Then
\[ m = \dfrac{y-y_1}{x-x_1}, \] and so \[ y-y_1 = m(x-x_1). \]This equation is called the point–gradient form of the equation of the line \(l\).
Suppose that \((x_1,y_1)=(0,c)\). Then the equation is \(y-c=mx\) or, equivalently, \(y=mx+c\). This is often called the gradient–intercept form of the equation of the line.
Line through two points
To find the equation of the line through two given points \((x_1,y_1)\) and \((x_2,y_2)\), first find the gradient
\[ m=\dfrac{y_2-y_1}{x_2-x_1} \] and then use the point–gradient form \(y-y_1 = m(x-x_1)\).A special case is the line through \((a,0)\) and \((0,b)\), where \(a,b \ne 0\).
In this case, the gradient is
\[ m = \dfrac{b-0}{0-a} = -\dfrac{b}{a}. \]Thus the equation of the line is
\begin{align*} y-0 &= -\dfrac{b}{a}(x-a)\\ ay+bx &= ab \end{align*} or, equivalently, \[ \dfrac{x}{a} + \dfrac{y}{b} = 1, \] which is easy to remember. This is called the intercept form of the equation of a line.Summary
There are four different forms of the equation of a straight line which we have considered.
General form | \(ax+by+c = 0\) |
Point–gradient form | \(y-y_1 = m(x-x_1)\) |
Gradient–intercept form | \(y = mx+c\) |
Intercept form | \(\dfrac{x}{a}+\dfrac{y}{b} = 1\) |
Example
- Find the equation of the line through \((3,4)\) with gradient 5.
- Find the equation of the line through \((3,4)\) and \((-2,-3)\).
- Find the equation of the line with \(x\)-intercept 3 and \(y\)-intercept \(-5\).
Solution
- The equation is \(y-4=5(x-3)\) or, alternatively, \(y=5x-11\).
- The gradient is
\[ m = \dfrac{4-(-3)}{3-(-2)} = \dfrac{7}{5}. \] - So the equation of the line is
\[ y-4 = \dfrac{7}{5}(x-3) \]
or, alternatively, \(7x-5y-1 = 0\). - The equation is
\[ \dfrac{x}{3}-\dfrac{y}{5} = 1 \]
or, alternatively, \(5x -3y -15 = 0\).
Vertical and horizontal lines
The equation of the vertical line through \((3,4)\) is \(x=3\). The equation of the horizontal line through \((3,4)\) is \(y=4\).
Next page - Content - Parallel, intersecting and perpendicular lines