girgit.org

Straight Lines

Writing a line as an equation: point-slope form

The big ideaThe equation of a line is a test that every point on the line passes and every other point fails; a horizontal line is \( y = a \), a vertical line is \( x = b \), and a line through \( (x_0, y_0) \) with slope \( m \) is \( y - y_0 = m(x - x_0) \).

In simple words

A line has more dots on it than you could ever count. Instead of listing them, we write one rule that the dots on the line obey and dots off the line break. Give the rule a dot's two numbers: if the rule comes out true, the dot is on the line. If it comes out false, it is not.

What "the equation of a line" means

Every line contains infinitely many points. How can we tell whether a given point \( P(x, y) \) is one of them? We want a condition on \( x \) and \( y \) that is true when P is on the line and false otherwise. That condition is an equation in \( x \) and \( y \), and it is called the equation of the line. Which equation we get depends on what we know about the line: a point and a slope, two points, or where it cuts the axes. This page and the next two cover each case.

Horizontal and vertical lines

Picture a horizontal line 3 units above the x-axis. Every point on it, however far left or right, has height 3. So the line is \( y = 3 \). A horizontal line 3 units below the x-axis is \( y = -3 \). In general:

  • A horizontal line at distance \( a \) from the x-axis is \( y = a \) (if it is above the x-axis) or \( y = -a \) (if it is below).
  • A vertical line at distance \( b \) from the y-axis is \( x = b \) (if it is to the right of the y-axis) or \( x = -b \) (if it is to the left).
  • The x-axis itself is \( y = 0 \), and the y-axis is \( x = 0 \).

Worked example 1

Find the lines through \( (4, -1) \) that are parallel to the axes.

  1. The line parallel to the x-axis is horizontal, so every point has the same height as \( (4, -1) \): \( y = -1 \).
  2. The line parallel to the y-axis is vertical, so every point has the same \( x \): \( x = 4 \).

Picture them as a plus sign whose centre is at \( (4, -1) \).

Notice that \( x \) does not appear in \( y = -1 \). That is not a mistake: it means \( x \) can be anything at all.

Point-slope form

Suppose a line is not vertical, has slope \( m \), and passes through a fixed point \( P_0(x_0, y_0) \). Let \( P(x, y) \) be any other point on it. The slope from \( P_0 \) to \( P \) must be the slope of the line:

\[ \frac{y - y_0}{x - x_0} = m \quad \text{so} \quad y - y_0 = m(x - x_0) \]

The point \( P_0 \) itself fits too (both sides become 0). Every point on the line satisfies this equation, and no point off the line does, because a point off the line would give a different slope from \( P_0 \). So this is the equation of the line, and it is called the point-slope form:

Point-slope form

  • \( y - y_0 = m(x - x_0) \): the line through \( (x_0, y_0) \) with slope \( m \).

Try it: build a line from a point and a slope, then put a test point through the equation.

Worked example 2

Find the line through \( (2, 5) \) with slope 3.

  1. \( y - 5 = 3(x - 2) \), so \( y - 5 = 3x - 6 \).
  2. Tidy up: \( y = 3x - 1 \), or \( 3x - y - 1 = 0 \).
  3. Check with the given point: \( 3(2) - 5 - 1 = 0 \). It works.

Worked example 3

Find the line through \( (-1, 4) \) with slope \( -\frac{1}{2} \).

  1. \( y - 4 = -\frac{1}{2}(x - (-1)) = -\frac{1}{2}(x + 1) \).
  2. Multiply by 2: \( 2y - 8 = -x - 1 \), so \( x + 2y - 7 = 0 \).

Watch the sign: \( x - x_0 \) with \( x_0 = -1 \) becomes \( x + 1 \).

Worked example 4: from an angle

Find the line through \( (3, -2) \) with inclination \( 45^\circ \).

  1. \( m = \tan 45^\circ = 1 \).
  2. \( y + 2 = 1(x - 3) \), so \( x - y - 5 = 0 \).

Worked example 5: is the point on the line?

Does \( (5, 14) \) lie on \( y = 3x - 1 \)? Does \( (4, 10) \)?

  1. \( 3(5) - 1 = 14 \). True, so \( (5, 14) \) is on the line.
  2. \( 3(4) - 1 = 11 \ne 10 \). False, so \( (4, 10) \) is not; it lies just below the line.

Try it. (a) Write the equations of the lines through \( (-3, 7) \) parallel to the x-axis and to the y-axis. (b) Find the line through \( (1, -2) \) with slope \( -4 \). (c) Find the line through \( (0, 3) \) with inclination \( 135^\circ \).

Answer
(a) \( y = 7 \) and \( x = -3 \). (b) \( y + 2 = -4(x - 1) \), so \( 4x + y - 2 = 0 \). (c) \( m = \tan 135^\circ = -1 \): \( y - 3 = -(x - 0) \), so \( x + y - 3 = 0 \).

Words to know

Equation of a line
A condition on \( x \) and \( y \) that is true exactly for the points on the line.
Horizontal line
\( y = a \) or \( y = -a \): every point has the same height.
Vertical line
\( x = b \) or \( x = -b \): every point has the same across position.
Point-slope form
\( y - y_0 = m(x - x_0) \), using one point and the slope.

What is the equation of the vertical line through \( (-2, 6) \)?

  1. \( y = 6 \)
  2. \( x = -2 \)
  3. \( y = -3x \)

Which line passes through \( (2, -1) \) with slope 4?

  1. \( y - 1 = 4(x + 2) \)
  2. \( y + 1 = 4(x - 2) \)
  3. \( x - 2 = 4(y + 1) \)

Does the point \( (3, 2) \) lie on \( 2x - 3y = 0 \)?

  1. Yes
  2. No
  3. You cannot tell without a graph