Lesson 23 of 40 · Mathematics

Coordinates, lines and distances

Build a line through a given point, find the shortest distance to it and use coordinate differences to measure lengths and areas.

About 20 minutes

In this lesson

  • Build equations for parallel and perpendicular lines.
  • Find a point's shortest distance to a line.
  • Measure a polygon using coordinates.

The idea

Read a displacement from two points

Imagine walking from a point on squared paper to a second point. The change in the first coordinate tells you how far to go horizontally, with a negative change meaning left. The second change tells you how far to go vertically. These two signed distances specify a displacement. Subtract the starting coordinate from the finishing coordinate in both directions. Reversing just one subtraction describes a journey to a different point.

A direct journey between the endpoints runs along the hypotenuse of a right triangle whose legs are the horizontal and vertical changes. Squaring removes their signs, so its length is (Δx)2+(Δy)2\sqrt{(\Delta x)^2+(\Delta y)^2}. Going back gives exactly the same length. Adding the absolute changes instead measures the route along two grid lines. This distinction matters whenever the sides of a polygon run diagonally across the grid.

Specify a direction and an anchor

A line (retta) with a finite slope (coefficiente angolare) rises by a fixed amount for each unit step to the right. Divide the vertical change by the horizontal one. A negative result describes a descent as you move right. If the horizontal change is zero, every point on the line shares its first coordinate. Give this vertical line an equation of the form x=hx=h. A horizontal line instead has zero vertical change and has equation y=ky=k.

An anchor point supplies the information that the slope alone leaves open. Through (a,b)(a,b) with slope mm, write y−b=m(x−a)y-b=m(x-a). At the anchor both changes vanish. At any other point their ratio gives exactly the requested slope. This makes the equation easy to check even when the intercept is an awkward fraction. To find the intercept later, substitute zero for the first coordinate or expand the brackets.

Parallel lines have the same direction. To make a perpendicular line, picture turning a direction arrow through a quarter-turn. An arrow that runs three units right and two up becomes an arrow running two left and three up. Its slope changes from two thirds to negative three halves. For nonzero finite slopes the product of perpendicular slopes is negative one. A vertical line pairs with a horizontal line, so neither infinity nor division by zero needs to appear in the calculation.

Measure a perpendicular gap

The distance from a point to a line means the shortest distance to any point on that line. Drop a perpendicular from the point. Any other path to the line is the hypotenuse of a right triangle with this perpendicular as a leg. Measuring a horizontal or vertical gap from the point generally gives a larger value.

Write the line as Ax+By+C=0Ax+By+C=0. Its normal direction, at right angles to it, is (A,B)(A,B). A move of one unit along that direction changes the expression on the left by A2+B2\sqrt{A^2+B^2}. This explains the denominator in the distance formula d=∣Ax0+By0+C∣/A2+B2d=|Ax_0+By_0+C|/\sqrt{A^2+B^2}. The numerator tells you how far the test point misses the equation. The absolute value makes distance positive on either side. Multiplying the whole line equation by two doubles both numerator and denominator, leaving the distance unchanged.

Pick a convenient base for area

Look first for vertices sharing a coordinate. Their joining segment can serve as a horizontal or vertical base. The perpendicular height then comes from the remaining vertex's change in the other coordinate. It measures distance to the entire base line and still works when the perpendicular foot lies beyond the base segment. For a slanted base you may combine its length with the point-to-line distance. Alternatively enclose the triangle in a grid-aligned rectangle and subtract the outside right triangles. For a larger polygon draw a diagonal lying inside it, find the areas of the two pieces and add them. This keeps every height attached to the base it actually measures.

Worked examples

Example 1: Turning a direction

Find the line through (4, 1) perpendicular to the line joining (0, 1) and (6, 5).

  1. The reference slope is (5 − 1)/(6 − 0) = 2/3.

  2. A perpendicular has slope −3/2. Anchor that slope at (4, 1).

Answer

Its equation is y−1=−32(x−4)y-1=-\tfrac32(x-4), or y=7−32xy=7-\tfrac32x.

Example 2: A diagonal base

A triangle has vertices (0,0),(4,3),(0,5)(0,0),(4,3),(0,5). Use the sloping first side as base to find its area.

  1. The base lies on 3x−4y=03x-4y=0 and has length 42+32=5\sqrt{4^2+3^2}=5.

  2. The distance of (0,5)(0,5) to the base line is ∣−20∣/5=4|-20|/5=4.

  3. Multiply the base by the perpendicular height and halve.

Answer

The area is 10 square units. Choosing the vertical side of length 5 gives horizontal height 4 as a second check.

Common traps

  • Turning the slope the wrong way

    Changing only the sign gives a reflection of a direction across the horizontal axis. For a quarter-turn also take the reciprocal.

  • Reading a coordinate as a length

    If a horizontal base starts away from the vertical axis, its length is the absolute difference of its endpoint coordinates.

Check yourself

Answer each question before you open its answer.

Question 1: Parallel through a point

Analytic geometry and functions

Which line through (2,−1)(2,-1) is parallel to 3x−y=83x-y=8?

  1. A.y=3x−7y=3x-7
  2. B.y=3x−1y=3x-1
  3. C.y=−3x+5y=-3x+5
  4. D.y=−x/3−1/3y=-x/3-1/3
  5. E.y=3x+7y=3x+7
Show the answer

Answer: A. y=3x−7y=3x-7

Working

The original slope is 3. Through the point, y+1=3(x−2)y+1=3(x-2) gives y=3x−7y=3x-7.

Why the other options are wrong

  • B. This takes the point's second coordinate as the intercept.
  • C. This passes through the point but changes the sign of the slope.
  • D. This takes the perpendicular direction.
  • E. This changes the sign of the required intercept.

What carries over

Check both the slope and the anchor.

Question 2: A point above a line

Analytic geometry and functions

What is the distance from (1,4)(1,4) to 3x+4y−4=03x+4y-4=0?

  1. A.15
  2. B.3
  3. C.5
  4. D.3.75
  5. E.0.6
Show the answer

Answer: B. 3

Working

The numerator is ∣3+16−4∣=15|3+16-4|=15. The denominator is 9+16=5\sqrt{9+16}=5, so the distance is 3.

Why the other options are wrong

  • A. This evaluates the line expression without normalising it.
  • C. This is the length of the normal vector alone.
  • D. This measures the vertical gap at x = 1.
  • E. This divides the expression by the square of the normal length.

What carries over

Normalise the line expression when measuring perpendicular distance.

Question 3: Distance across the grid

Analytic geometry and functions

A straight path joins (−2, 3) to (3, −9). How long is it?

  1. A.17
  2. B.7
  3. C.169
  4. D.13
  5. E.12
Show the answer

Answer: D. 13

Working

The horizontal change is 5 and the vertical change is −12. Their squares sum to 169, whose positive square root is 13.

Why the other options are wrong

  • A. This follows two grid-aligned legs.
  • B. This subtracts their lengths.
  • C. This gives the squared distance.
  • E. This keeps only the vertical displacement.

What carries over

Use both coordinate changes as the legs of a right triangle.

Key points

  • Keep changes in both coordinates in the same direction.

  • A quarter-turn turns a nonzero finite slope into its negative reciprocal.

  • Pair each base with its own perpendicular height.

All questions here are original and written for UniExamer; none comes from the test maker.

Written by the UniExamer team with AI assistance. Every worked example and check question was re-solved by an independent checker before publication. No subject expert has reviewed this lesson yet. If you find a mistake, write to support@uniexamer.com.

Bu konuyu çalış

Bu beceride çözümlü açıklamalarla yeni sorular. Çalışma için Single Exam Pass veya Plus gerekir.