Junior Cycle Mathematics17.5 The equation of a line

All books

17.5 The equation of a line — Learn

Prerequisites: the slope of a line from Section 17.3, solving a linear equation from Section 12.1, and substituting into an expression from Section 10.2.

Objectives: write the equation of a line as y=mx+cy=mx+c; find the equation from a slope and a point; find the equation from two points; use the form y−y1=m(x−x1)y-y_1=m(x-x_1); find where two lines meet.

By the end of this section, you can write the equation of a straight line and use it.

The form y = mx + c

Every straight line that is not vertical can be written as

y=mx+cy = mx + c

The yy-intercept is the output when x=0x=0, because the yy-axis is the line x=0x=0.

Example 1. A line has slope 2 and passes through (0,3)(0,3). Write its equation.

The point (0,3)(0,3) is on the yy-axis, so the intercept is 3. Put m=2m=2 and c=3c=3.

y=2x+3y = 2x + 3

Finding c from any point

When the point is not on the yy-axis, you find cc by substituting the point into y=mx+cy=mx+c.

c=y−mxc = y - mx

Example 2. A line has slope 3 and passes through (1,5)(1,5). Write its equation.

Put the slope and the point into c=y−mxc=y-mx.

c=5−3×1=2c = 5 - 3 \times 1 = 2

So the equation is y=3x+2y=3x+2. Check it with the point: 3×1+2=53 \times 1 + 2 = 5.

Example 3. A line has slope −2-2 and passes through (2,1)(2,1). Write its equation.

Substitute the slope and the point.

c=1−(−2)×2=1+4=5c = 1 - (-2) \times 2 = 1 + 4 = 5

The equation is y=−2x+5y=-2x+5. Subtracting a negative slope adds.

The form y - y₁ = m(x - x₁)

The point-slope form uses one point (x1,y1)(x_1,y_1) and the slope mm directly.

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

Example 4. A line passes through (2,3)(2,3) with slope 4. Write its equation in point-slope form, and then in the form y=mx+cy=mx+c.

The point is (2,3)(2,3) and the slope is 4.

y−3=4(x−2)y - 3 = 4(x - 2)

Expand the bracket and simplify.

y−3=4x−8y - 3 = 4x - 8 y=4x−5y = 4x - 5

Both forms describe the same line. The intercept is −5-5.

From two points

When you are given two points, first find the slope, then find the intercept.

Example 5. A line passes through (1,2)(1,2) and (3,8)(3,8). Find its equation.

Find the slope first.

m=8−23−1=62=3m = \frac{8-2}{3-1} = \frac{6}{2} = 3

Use the point (1,2)(1,2) to find the intercept.

c=2−3×1=−1c = 2 - 3 \times 1 = -1

The equation is y=3x−1y=3x-1. Check with the other point: 3×3−1=83 \times 3 - 1 = 8.

Where two lines meet

Two straight lines meet at one point, unless they are parallel. At that point the two equations give the same yy. Set them equal and solve.

Example 6. Find where y=2x+1y=2x+1 meets y=x+4y=x+4.

At the crossing point the two yy-values are equal.

2x+1=x+42x + 1 = x + 4

Subtract xx from both sides.

x+1=4x + 1 = 4 x=3x = 3

Substitute back to find yy.

y=2×3+1=7y = 2 \times 3 + 1 = 7

The lines meet at (3,7)(3,7). Check with the other line: 3+4=73+4=7.

Horizontal and vertical lines

Watch out

The yy-coordinate of a point is not the intercept.

Progress check

Return to the chapter problem. The main path passes through the gate G(1,2)G(1,2) with slope 34\tfrac{3}{4}.

  1. Find the yy-intercept of the main path.
  2. Write the equation of the main path in the form y=mx+cy=mx+c.
  3. Check that the kiosk K(9,8)K(9,8) lies on your line.

In Section 17.6 you will write the same line in general form.

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.