Strand 2 — Geometry & Trigonometry

Co-ordinate Geometry of the Line

1st Year · 2nd Year · 3rd Year (Junior Cert)

  • By the end of this lesson students will be able to calculate the distance between two points on the Cartesian plane.
  • By the end of this lesson students will be able to find the midpoint of a line segment.
  • By the end of this lesson students will be able to determine the slope (gradient) of a line given two points or its equation.
  • By the end of this lesson students will be able to find the equation of a line using various methods (e.g., point-slope form, two points).
  • By the end of this lesson students will be able to identify and apply the conditions for parallel and perpendicular lines.

Key concepts

Cartesian Plane

The Cartesian plane is a two-dimensional plane defined by two perpendicular axes, the x-axis (horizontal) and the y-axis (vertical), which intersect at the origin (0,0). Points on this plane are represented by ordered pairs (x, y), where x is the x-coordinate and y is the y-coordinate.

Distance Formula

The distance between two points (x₁, y₁) and (x₂, y₂) on the Cartesian plane can be found using a formula derived from Pythagoras' theorem. It calculates the length of the line segment connecting the two points.

d = √((x₂ - x₁)² + (y₂ - y₁)²)
Midpoint Formula

The midpoint of a line segment is the point that lies exactly halfway between its two endpoints. It is found by averaging the x-coordinates and averaging the y-coordinates of the two points.

M = ((x₁ + x₂)/2, (y₁ + y₂)/2)
Slope (Gradient)

The slope, often denoted by 'm', is a measure of the steepness of a line. It describes how much the y-coordinate changes for a given change in the x-coordinate. It is also referred to as 'rise over run'.

m = (y₂ - y₁)/(x₂ - x₁)
Equation of a Line (General Form)

The general form of the equation of a straight line is ax + by + c = 0, where a, b, and c are constants, and a and b are not both zero. This form is often required for final answers in exams.

ax + by + c = 0
Equation of a Line (Slope-Intercept Form)

The slope-intercept form of the equation of a straight line is y = mx + c, where 'm' is the slope of the line and 'c' is the y-intercept (the point where the line crosses the y-axis). This form is useful for quickly identifying the slope and y-intercept.

y = mx + c
Equation of a Line (Point-Slope Form)

The point-slope form is used to find the equation of a line when you know its slope 'm' and at least one point (x₁, y₁) that lies on the line.

y - y₁ = m(x - x₁)
Parallel Lines

Two distinct lines are parallel if and only if they have the exact same slope. Parallel lines never intersect.

m₁ = m₂
Perpendicular Lines

Two lines are perpendicular if and only if the product of their slopes is -1. This means one slope is the negative reciprocal of the other. This condition applies unless one line is horizontal (slope 0) and the other is vertical (undefined slope).

m₁ * m₂ = -1

Key facts to remember

  • 1The distance between two points (x₁, y₁) and (x₂, y₂) is d = √((x₂ - x₁)² + (y₂ - y₁)²).
  • 2The midpoint of the line segment joining (x₁, y₁) and (x₂, y₂) is M = ((x₁ + x₂)/2, (y₁ + y₂)/2).
  • 3The slope of a line passing through (x₁, y₁) and (x₂, y₂) is m = (y₂ - y₁)/(x₂ - x₁).
  • 4The equation of a line can be written in general form ax + by + c = 0 or slope-intercept form y = mx + c.
  • 5The point-slope form y - y₁ = m(x - x₁) is used to find the equation of a line given a point (x₁, y₁) and its slope m.
  • 6Parallel lines have the same slope (m₁ = m₂).
  • 7Perpendicular lines have slopes whose product is -1 (m₁ * m₂ = -1), unless one is horizontal (m=0) and the other is vertical (undefined slope).
  • 8A horizontal line has a slope of 0 and an equation of the form y = k. A vertical line has an undefined slope and an equation of the form x = k.

Worked examples

Example 1

Find the distance between the points A(2, -3) and B(-4, 5). Also, find the midpoint of the line segment AB.

ILabel the points: Let (x₁, y₁) = (2, -3) and (x₂, y₂) = (-4, 5).
IICalculate the distance using the distance formula: d = √((x₂ - x₁)² + (y₂ - y₁)²)
IIId = √((-4 - 2)² + (5 - (-3))²)
IVd = √((-6)² + (5 + 3)²)
Vd = √((36) + (8)²)
VId = √(36 + 64)
VIId = √(100)
VIIId = 10 units
9Calculate the midpoint using the midpoint formula: M = ((x₁ + x₂)/2, (y₁ + y₂)/2)
10M = ((2 + (-4))/2, (-3 + 5)/2)
11M = ((-2)/2, (2)/2)
12M = (-1, 1)

Answer

The distance between A and B is 10 units. The midpoint of AB is (-1, 1).

Remember to be careful with negative signs, especially when subtracting a negative number.

Example 2

Find the slope of the line passing through the points P(1, 7) and Q(4, 1). Then, find the equation of this line in the form ax + by + c = 0.

ILabel the points: Let (x₁, y₁) = (1, 7) and (x₂, y₂) = (4, 1).
IICalculate the slope using the slope formula: m = (y₂ - y₁)/(x₂ - x₁)
IIIm = (1 - 7)/(4 - 1)
IVm = (-6)/(3)
Vm = -2
VIUse the point-slope form of the equation of a line: y - y₁ = m(x - x₁)
VIIUsing point P(1, 7) and slope m = -2:
VIIIy - 7 = -2(x - 1)
9y - 7 = -2x + 2
10Rearrange into the general form ax + by + c = 0:
112x + y - 7 - 2 = 0
122x + y - 9 = 0

Answer

The slope of the line is -2. The equation of the line is 2x + y - 9 = 0.

You could also use point Q(4, 1) to find the equation; the final result will be the same.

Example 3

A line L passes through the point (3, -2) and is parallel to the line 2x + 3y - 6 = 0. Find the equation of line L. Then, find the equation of a line M that passes through (3, -2) and is perpendicular to the line 2x + 3y - 6 = 0.

IFirst, find the slope of the given line 2x + 3y - 6 = 0.
IIRearrange to y = mx + c form: 3y = -2x + 6
IIIy = (-2/3)x + 2
IVThe slope of the given line is m = -2/3.
VFor Line L (Parallel):
VISince line L is parallel to the given line, its slope (m_L) is the same: m_L = -2/3.
VIIUse the point-slope form y - y₁ = m(x - x₁) with point (3, -2) and m_L = -2/3:
VIIIy - (-2) = (-2/3)(x - 3)
9y + 2 = (-2/3)(x - 3)
10Multiply by 3 to clear the fraction: 3(y + 2) = -2(x - 3)
113y + 6 = -2x + 6
12Rearrange to ax + by + c = 0: 2x + 3y + 6 - 6 = 0
13Equation of Line L: 2x + 3y = 0
14For Line M (Perpendicular):
15The slope of the given line is m = -2/3.
16The slope of a perpendicular line (m_M) is the negative reciprocal: m_M = -1 / (-2/3) = 3/2.
17Use the point-slope form y - y₁ = m(x - x₁) with point (3, -2) and m_M = 3/2:
18y - (-2) = (3/2)(x - 3)
19y + 2 = (3/2)(x - 3)
20Multiply by 2 to clear the fraction: 2(y + 2) = 3(x - 3)
212y + 4 = 3x - 9
22Rearrange to ax + by + c = 0 (keeping 'a' positive): 0 = 3x - 2y - 9 - 4
23Equation of Line M: 3x - 2y - 13 = 0

Answer

The equation of line L (parallel) is 2x + 3y = 0. The equation of line M (perpendicular) is 3x - 2y - 13 = 0.

Always convert the given line's equation to y = mx + c form to easily find its slope.

Common mistakes

  • **Sign Errors**: Incorrectly handling negative numbers when substituting into formulas, especially in the distance and slope formulas.
  • **Incorrect Formula Substitution**: Mixing up x and y coordinates or using the wrong formula for distance, midpoint, or slope.
  • **Algebraic Errors**: Mistakes when rearranging equations, particularly when converting to the ax + by + c = 0 form or clearing fractions.
  • **Confusing Parallel and Perpendicular Conditions**: Forgetting to use the negative reciprocal for perpendicular slopes, or incorrectly applying the parallel condition.
  • **Not Simplifying Answers**: Leaving square roots unsimplified or not presenting the final equation of a line in the requested form (e.g., ax + by + c = 0).

Exam tips

  • **Label Your Points**: Always label your coordinates as (x₁, y₁) and (x₂, y₂) at the start of a problem to avoid substitution errors.
  • **Write Down the Formula**: Before substituting values, write down the relevant formula. This helps you remember it and can earn partial credit even if you make a calculation error.
  • **Check Your Work**: After calculating, do a quick visual check. Does the slope make sense (positive/negative)? Does the midpoint appear to be in the middle of the segment?
  • **Be Careful with Negatives**: Use brackets when substituting negative numbers into formulas to prevent common sign errors, e.g., (5 - (-3)) should be written as (5 - (-3)) or (5+3).
  • **Practise Rearranging Equations**: Be proficient in converting between the y = mx + c form and the ax + by + c = 0 form, as questions often require the answer in a specific format.

Ready to practise?

Try a problem on this topic

Snap a photo or type a question — get step-by-step working instantly.