Leaving Certificate Mathematics13.2 The equation of a line

All books

13.2 The equation of a line — Learn

Prerequisites: finding the slope of a line through two points; rearranging an equation.

Objectives: write a line as y=mx+cy = mx + c; find the equation of a line from two points, or from one point and the slope; convert the equation to the form ax+by+c=0ax + by + c = 0.

A line is fixed by two pieces of information. Usually the easiest pair is a point on the line and the slope. Once you have both, the equation follows.

The slope-intercept form

The simplest way to write a line is

y=mx+cy = mx + c

Here mm is the slope and cc is the yy-intercept, the value of yy where the line crosses the yy-axis. Every non-vertical line has one equation of this form.

Example 1. Write down the slope and the yy-intercept of y=2x−5y = 2x - 5.

The slope is m=2m = 2 and the yy-intercept is c=−5c = -5. The line crosses the yy-axis at (0,−5)(0, -5).

Finding the equation from a point and a slope

If you know the slope mm and one point (x1,y1)(x_1, y_1), use the point-slope form:

y−y1=m(x−x1)y - y_1 = m(x - x_1)

Then rearrange into the form you want.

Example 2. Find the line with slope 33 through (1,2)(1, 2).

y−2=3(x−1)⇒y−2=3x−3⇒y=3x−1y - 2 = 3(x - 1) \quad\Rightarrow\quad y - 2 = 3x - 3 \quad\Rightarrow\quad y = 3x - 1

Check it: when x=1x = 1, y=3×1−1=2y = 3 \times 1 - 1 = 2, which is the point you were given.

Finding the equation from two points

With two points, do this in two steps:

  1. find the slope mm from the two points;
  2. substitute mm and either point into the point-slope form.

Example 3. Find the line through (2,1)(2, 1) and (6,9)(6, 9).

m=9−16−2=84=2m = \frac{9 - 1}{6 - 2} = \frac{8}{4} = 2

Using (2,1)(2, 1): y−1=2(x−2)y - 1 = 2(x - 2), so y=2x−3y = 2x - 3.

Example 4. Write the main road through A(−1,1)A(-1, 1) and B(7,7)B(7, 7) in the form ax+by+c=0ax + by + c = 0.

From Section 13.1 the slope is 34\frac{3}{4}. Using AA:

y−1=34(x+1)⇒y=34x+74y - 1 = \frac{3}{4}(x + 1) \quad\Rightarrow\quad y = \frac{3}{4}x + \frac{7}{4}

Multiply every term by 44 to clear the fractions:

4y=3x+7⇒3x−4y+7=04y = 3x + 7 \quad\Rightarrow\quad 3x - 4y + 7 = 0

The form ax+by+c=0ax + by + c = 0 has no fractions and no yy on its own. It is the same line, written differently.

The xx-intercept

To find where a line crosses the xx-axis, put y=0y = 0 and solve for xx.

Example 5. Find where 3x+4y=123x + 4y = 12 crosses the xx-axis.

With y=0y = 0, 3x=123x = 12, so x=4x = 4. The line crosses at (4,0)(4, 0).

Progress check

Back to the chapter problem. The main road runs from A(−1,1)A(-1, 1) to B(7,7)B(7, 7).

  1. Write the equation of the main road as y=mx+cy = mx + c.
  2. Rewrite it in the form ax+by+c=0ax + by + c = 0.
  3. Show that both junctions satisfy your equation.

Keep the equation. You will use its slope in Section 13.3.

You should now be able to

Settings

Colour scheme

Light or dark pages. Your colour and layout stay the same.

Colour

The paper, ink and lettering. Your layout stays the same.

Quiet colours
Bold colours
Layout

How pages are arranged. Your colours stay the same.

Reading offline

Keep this book on this device and read it offline.