Loading

Chapter 9

Straight Lines

How steep is a road, where do two paths cross, and how far is a well from a straight canal? This chapter describes every straight line by an equation: its slope from an angle or from two points, the tests for parallel and perpendicular lines, the angle between two lines, the forms of a line's equation, and the distance of a point from a line.

  • The recall of coordinate geometry: the distance, section and mid-point formulas, and the area of a triangle from its vertices
  • The inclination and the slope of a line, from an angle or from two points, in the acute and the obtuse cases
  • Parallel lines (equal slopes) and perpendicular lines (slopes that multiply to −1)
  • The acute angle between two lines, and collinear points
  • Horizontal and vertical lines, and the point-slope and two-point forms
  • The slope-intercept and intercept forms, and the general equation Ax + By + C = 0
  • The distance of a point from a line, proved with the area of a triangle, and the distance between parallel lines
  • Concurrent lines, the foot of a perpendicular and the image of a point in a line
  • Story problems with linear rules: fares, temperatures, a burning candle and a ray of light
Class 11, MathematicsOpen the original PDF

StartBefore you start: twelve ideas you already know

This chapter studies the straight line with algebra: every line gets an equation, and questions about lines become sums. Most of the tools are already yours, from Class 9, Class 10 and Chapter 3 of this book. Each one is refreshed below with a small example. Read them once now; each comes back many times.

1. Coordinates and quadrants (Class 9, Chapter 1, and Class 10, Chapter 7)

A point of the plane is written (x, y). The first number x, the abscissa, is the distance from the y-axis, measured along the x-axis (positive to the right). The second number y, the ordinate, is the distance from the x-axis, measured along the y-axis (positive upwards). Example: (6, −4) is 6 to the right and 4 down, in the fourth quadrant.

2. The distance formula (Class 10, Chapter 7)

The distance between P(x₁, y₁) and Q(x₂, y₂) is PQ = √[(x₂ − x₁)² + (y₂ − y₁)²]. It is Pythagoras' theorem for the right triangle whose legs are the differences of the coordinates. Example: from (0, 0) to (3, 4) the distance is √(9 + 16) = 5.

3. The section formula and the mid-point (Class 10, Chapter 7)

The point dividing the segment from (x₁, y₁) to (x₂, y₂) internally in the ratio m : n is ((mx₂ + nx₁)/(m + n), (my₂ + ny₁)/(m + n)). With m = n it is the mid-point ((x₁ + x₂)/2, (y₁ + y₂)/2). Example: the mid-point of (2, 4) and (6, 8) is (4, 6).

4. A line as the graph of a linear equation (Class 10, Chapter 3)

The graph of a linear equation in two variables, such as y = 2x + 3, is a straight line: every solution (x, y) is a point of it. Example: x = 0 gives y = 3 and x = 2 gives y = 7, so (0, 3) and (2, 7) are on the line. In y = mx + c, the number c is where the line meets the y-axis.

5. Supplementary angles

Two angles that add up to 180° are supplementary. Where two lines cross they make four angles; any two neighbours are supplementary, and opposite ones are equal. Example: if one angle is 65°, its neighbour is 180° − 65° = 115°.

6. The tangent of an angle (Class 10, Chapter 8, and Chapter 3)

In a right triangle, tan θ = opposite side/adjacent side. Some values to know: tan 0° = 0, tan 30° = 1/√3, tan 45° = 1, tan 60° = √3, and tan 90° is not defined (the adjacent side would be 0). Example: a ramp rising 1 m for every 1 m forward makes 45°, as tan 45° = 1.

7. Tangents of obtuse angles (Chapter 3)

For angles above 90°: tan(180° − θ) = −tan θ and tan(90° + α) = −cot α = −1/tan α. So the tangent of an obtuse angle is negative. Example: tan 135° = −tan 45° = −1.

8. The tangent of a difference (Chapter 3)

Chapter 3 proved tan(x − y) = (tan x − tan y)/(1 + tan x tan y). Example: if tan x = 2 and tan y = 1, then tan(x − y) = (2 − 1)/(1 + 2) = 1/3. This formula will give the angle between two lines.

9. Solving two linear equations (Class 10, Chapter 3)

Two linear equations in x and y are solved by substitution or elimination. Example: x + y = 5 and x − y = 1; adding gives 2x = 6, so x = 3, and then y = 2. The solution (3, 2) is the point where the two lines meet.

10. Absolute value (Chapter 2)

The absolute value |x| is the size of x without its sign: |−7| = 7 and |7| = 7. It appears whenever a length is computed from a formula that might come out negative. Example: the distance between 3 and 10 on a number line is |3 − 10| = 7.

11. Perpendicular from a point

The shortest path from a point to a line is the perpendicular to the line. Example: from a point 4 m away from a straight wall, the shortest walk to the wall is the 4 m straight across, at right angles; any slanting path is longer, as it is the hypotenuse of a right triangle.

12. Collinear points (Class 10, Chapter 7)

Points are collinear when they lie on one straight line. Example: (1, 2), (2, 4) and (3, 6) are collinear, because each step from one to the next is 1 across and 2 up.

Words you will meet

WordMeaning
Inclinationthe angle a line makes with the positive x-axis, measured anticlockwise, from 0° to 180°
Slope (gradient)m = tan θ, the tangent of the inclination; also rise ÷ run
Interceptwhere a line cuts an axis: the x-intercept on the x-axis, the y-intercept on the y-axis
Point-slope, two-point, slope-intercept and intercept formsfour ways to write the equation of a line from what is known about it
General equation of a lineAx + By + C = 0, with A and B not both zero
Perpendicular distancethe length of the perpendicular from a point to a line
Concurrent linesthree or more lines through one point

By the end of this chapter you will be able to

  • find the slope of a line from its inclination or from two of its points, in both the acute and the obtuse cases;
  • tell from their slopes whether two lines are parallel or perpendicular, and find the angle between two lines;
  • write the equation of a line in the point-slope, two-point, slope-intercept and intercept forms, and in the general form Ax + By + C = 0;
  • find the distance of a point from a line and the distance between two parallel lines;
  • use these tools for collinear points, concurrent lines, the foot of a perpendicular, the image of a point in a line, and story problems with linear rules.

9.1Straight lines: introduction

A thought to begin with

The chapter opens with a line by the mathematics educator Hans Freudenthal: "Geometry, as a logical system, is a means and even the most powerful means to make children feel the strength of the human spirit that is of their own spirit."

René Descartes (1596 to 1650), the French philosopher and mathematician whose book La Géométrie of 1637 first studied geometry with algebra (the book's portrait).

Geometry with algebra

You know two-dimensional coordinate geometry from earlier classes. It joins algebra and geometry. The first systematic study of geometry by algebra was made by the French philosopher and mathematician René Descartes, in his book La Géométrie, published in 1637. That book brought in the idea of the equation of a curve, and the methods of algebra, into geometry. The result is called analytical geometry: geometry studied through the equations its points satisfy.

In earlier classes you studied the axes, the coordinate plane, plotting points, the distance between two points and the section formula. These are the basics. The book recalls them first, with an example each. Fig 9.1 shows the points (6, −4) and (3, 0).

Book Figure 9.1: The points (6, −4) and (3, 0) in the XY-plane (the book labels this figure only with its number).

The point (6, −4) is 6 units from the y-axis, measured along the positive x-axis, and 4 units from the x-axis, measured along the negative y-axis. The point (3, 0) is 3 units from the y-axis along the positive x-axis, and at zero distance from the x-axis: it is on the x-axis.

The four formulas to recall

I. Distance. The distance between P(x₁, y₁) and Q(x₂, y₂) is

The distance formula

Read it as "P Q equals the square root of x two minus x one, squared, plus y two minus y one, squared". Example: from (6, −4) to (3, 0) it is √[(3 − 6)² + (0 + 4)²] = √(9 + 16) = 5 units.

II. Section formula. The point dividing the segment joining (x₁, y₁) and (x₂, y₂) internally in the ratio m : n is ((mx₂ + nx₁)/(m + n), (my₂ + ny₁)/(m + n)). Example: for A(1, −3) and B(−3, 9) in the ratio 1 : 3, x = (1 × (−3) + 3 × 1)/(1 + 3) = 0 and y = (1 × 9 + 3 × (−3))/(1 + 3) = 0. The point is the origin.

III. Mid-point. With m = n, the mid-point of the segment is ((x₁ + x₂)/2, (y₁ + y₂)/2).

IV. Area of a triangle. The book recalls this formula from the older Class 10 syllabus; our Class 10 pages do not teach it, so here it is in full, with the reason.

The area of a triangle from its vertices

Read it as "half the size of x one times y two minus y three, plus x two times y three minus y one, plus x three times y one minus y two". The vertices are (x₁, y₁), (x₂, y₂) and (x₃, y₃).

The absolute value is there because the bracket comes out negative when the vertices are taken in the clockwise order; an area is never negative.

Why it is true. Take a triangle ABC lying above the x-axis, with A on the left, C on the right, and B above the line AC. Drop perpendiculars from A, B and C to the x-axis. The triangle is then the two trapezia under AB and under BC, minus the trapezium under AC. A trapezium with parallel sides y₁ and y₂ and width x₂ − x₁ has area (1/2)(y₁ + y₂)(x₂ − x₁). Adding the first two and taking away the third, then multiplying out and cancelling, leaves exactly (1/2)[x₁(y₂ − y₃) + x₂(y₃ − y₁) + x₃(y₁ − y₂)]. Other positions of the triangle give the same expression, perhaps with a minus sign, which the absolute value removes.

Worked example 1

Find the area of the triangle with vertices (4, 4), (3, −2) and (−3, 16). (The book's example.)

What we know: x₁ = 4, y₁ = 4; x₂ = 3, y₂ = −2; x₃ = −3, y₃ = 16.

What we need: The area.

The plan: Put the coordinates into the formula, working out each bracket first.

  1. x₁(y₂ − y₃) = 4(−2 − 16) = 4 × (−18) = −72.
  2. x₂(y₃ − y₁) = 3(16 − 4) = 3 × 12 = 36.
  3. x₃(y₁ − y₂) = (−3)(4 + 2) = −18.
  4. Sum: −72 + 36 − 18 = −54.
  5. Area = (1/2) × |−54| = 27.

27 square units.

Check: The bracket came out negative because these vertices go round clockwise; taking them in the other order gives +54, and the same area 27.

Worked example 2

Find the area of the triangle with vertices (0, 0), (4, 0) and (0, 3), and check it with the ordinary formula.

What we know: A right triangle with legs along the axes.

What we need: The area by the vertex formula, and by (1/2) × base × height.

The plan: Use both methods and compare.

  1. Formula: (1/2)|0(0 − 3) + 4(3 − 0) + 0(0 − 0)| = (1/2)|12| = 6.
  2. Base 4, height 3: (1/2) × 4 × 3 = 6.

6 square units, by both methods.

Check: The formula agrees with the familiar one wherever both can be used.

Remark (from the book)

If the area of triangle ABC is zero, then the three points A, B and C lie on a line: they are collinear. Example: for (1, 2), (3, 6) and (5, 10), the bracket is 1(6 − 10) + 3(10 − 2) + 5(2 − 6) = −4 + 24 − 20 = 0.

Worked example 3

Story: three mobile towers stand at the points (2, 3), (4, 7) and (6, 11) on a map of a village in Rajasthan, with units of 1 km. Are they in a straight line?

What we know: Three points are collinear exactly when the triangle they make has zero area.

What we need: Whether the area is 0.

The plan: Work out the bracket of the area formula.

  1. 2(7 − 11) + 4(11 − 3) + 6(3 − 7) = −8 + 32 − 24 = 0.
  2. So the area is 0.

Yes: the three towers are in a straight line.

Check: Each step from one tower to the next is 2 km across and 4 km up, the same step both times, which also shows they are in line.

In this chapter we continue coordinate geometry with the simplest figure of all, the straight line. Simple as it is, the line is a vital idea of geometry and appears in daily life in many useful ways. The main aim is to describe a line by an equation, and for that the most essential idea is its slope.

When you are stuck: a question with points and coordinates

Draw a quick sketch: plot the points roughly; most mistakes in sign show up at once.

Write each formula with letters first, then put the numbers in brackets: 4(−2 − 16), not 4 −2 − 16.

Check a length or area with a second method when the figure has a right angle or sits on an axis.

Your turn

Find the distance between (−2, 5) and (4, −3), and the point dividing the join of (1, 2) and (7, 8) in the ratio 2 : 1.Tap to reveal
  1. Distance = √[(4 + 2)² + (−3 − 5)²] = √(36 + 64) = √100 = 10.
  2. Point = ((2 × 7 + 1 × 1)/3, (2 × 8 + 1 × 2)/3) = (15/3, 18/3) = (5, 6).

10 units; (5, 6).

Check: (5, 6) is two thirds of the way from (1, 2) to (7, 8): 1 + (2/3) × 6 = 5 and 2 + (2/3) × 6 = 6.

Find the area of the triangle with vertices (−1, 1), (2, 3) and (5, 1).Tap to reveal
  1. Bracket: (−1)(3 − 1) + 2(1 − 1) + 5(1 − 3) = −2 + 0 − 10 = −12.
  2. Area = (1/2) × 12 = 6.

6 square units.

Check: The base from (−1, 1) to (5, 1) is 6 long and the top vertex is 2 above it: (1/2) × 6 × 2 = 6.

In one line

Distance, section point, mid-point and area all come from the coordinates; an area of zero means the points are collinear.

9.2The slope of a line

Why we need it

Many lines can pass through the same point: some rise gently, some steeply, some fall, one is flat and one stands upright. To describe a line by algebra we need a number that says how steep it is and which way it leans. That number is the slope.

The inclination of a line

A line in the coordinate plane makes two angles with the x-axis, and they are supplementary. We pick one of them: the angle θ that the line makes with the positive direction of the x-axis, measured anticlockwise. It is called the inclination of the line. Its value lies between 0° and 180°.

Book Figure 9.2: A line l making the inclination θ with the positive direction of the x-axis, measured anticlockwise (the book labels this figure only with its number).

Lines parallel to the x-axis, or lying on it, have the inclination 0°. A vertical line, parallel to the y-axis or lying on it, has the inclination 90°.

The exact statement

Slope (Definition 1 of the book)

If θ is the inclination of a line l, then tan θ is called the slope or gradient of the line l. The slope is written m. So m = tan θ, for θ ≠ 90°.

The slope of a line with inclination 90° is not defined, since tan 90° is not defined. So the x-axis has slope tan 0° = 0, and the y-axis has no slope.

Slope from the inclination

Read it as "m equals tan theta, theta not ninety degrees".

m positivem negativem = 0m not defined
The four kinds of slope: rising lines have a positive slope, falling lines a negative slope, horizontal lines slope 0, and vertical lines have no slope.

Rising lines have inclinations between 0° and 90°, where the tangent is positive: a positive slope. Falling lines have inclinations between 90° and 180°, where the tangent is negative (idea 7 of Before you start): a negative slope.

9.2.1 The slope from two points

A line is completely fixed by any two of its points. So it should be possible to find the slope from the coordinates of two points. Here is the idea first, with numbers: from P(1, 1) to Q(5, 4) the line goes 4 across (the run) and 3 up (the rise). The steepness is rise ÷ run = 3/4.

xyP(1, 1)Q(5, 4)run = 4rise = 3
The slope of the line through P(1, 1) and Q(5, 4) is rise ÷ run = 3 ÷ 4 = 3/4.

Now the general case, as the book does it. Let P(x₁, y₁) and Q(x₂, y₂) be two points of a non-vertical line l with inclination θ. Then x₁ ≠ x₂, or else the line would be perpendicular to the x-axis and its slope not defined. Draw QR perpendicular to the x-axis and PM perpendicular to RQ. The inclination may be acute or obtuse, so we take the two cases.

Book Figure 9.3 (i): The slope of a line through P(x₁, y₁) and Q(x₂, y₂) when the inclination θ is acute: QR is drawn perpendicular to the x-axis and PM perpendicular to RQ (the book labels this figure only with its number).

Case 1: θ is acute. In Fig 9.3 (i), the angle MPQ equals θ, because PM is parallel to the x-axis (corresponding angles). In the right triangle MPQ, tan θ = MQ/MP = (y₂ − y₁)/(x₂ − x₁). So m = (y₂ − y₁)/(x₂ − x₁).

Book Figure 9.3 (ii): The same construction when the inclination θ is obtuse (the book labels this figure only with its number).

Case 2: θ is obtuse. In Fig 9.3 (ii), the angle MPQ is 180° − θ, so θ = 180° − ∠MPQ. Then m = tan θ = tan(180° − ∠MPQ) = −tan ∠MPQ = −MQ/MP. Here MQ = y₂ − y₁ and MP = x₁ − x₂, so m = −(y₂ − y₁)/(x₁ − x₂) = (y₂ − y₁)/(x₂ − x₁).

So in both cases the slope of the line through (x₁, y₁) and (x₂, y₂) is the same expression:

Slope from two points

Read it as "m equals y two minus y one, over x two minus x one": the change in y divided by the change in x.

It does not matter which point is called the first: (y₁ − y₂)/(x₁ − x₂) is the same number, as top and bottom both change sign.

Examples of every kind

Worked example 4

Direct: find the slope of the line through (1, 2) and (4, 8), and of the line through (−2, 3) and (4, −6).

What we know: m = (y₂ − y₁)/(x₂ − x₁).

What we need: The two slopes.

The plan: Subtract in the same order on top and bottom.

  1. (8 − 2)/(4 − 1) = 6/3 = 2.
  2. (−6 − 3)/(4 − (−2)) = −9/6 = −3/2.

2 and −3/2: the first line rises, the second falls.

Check: Swap the order of the points in the first: (2 − 8)/(1 − 4) = −6/−3 = 2, the same.

Worked example 5

Story: a ghat road in the Western Ghats climbs 30 m for every 600 m measured horizontally. What is its slope, and what angle does it make with the horizontal?

What we know: Slope = rise ÷ run = tan θ.

What we need: The slope and the angle.

The plan: Divide, then find the angle whose tangent is the slope.

  1. Slope = 30/600 = 1/20 = 0.05.
  2. tan θ = 0.05 gives θ ≈ 2.9°.

Slope 1/20, an angle of about 2.9°.

Check: Road signs often give slopes as "1 in 20": 1 m up for every 20 m along. A gentle slope has a small angle, as here.

Worked example 6

Picture: in the rise-and-run figure above, use the two marked points to find the slope, and then the inclination.

What we know: P(1, 1) and Q(5, 4).

What we need: m and θ.

The plan: m = (4 − 1)/(5 − 1); then θ is the angle with tan θ = m.

  1. m = 3/4 = 0.75.
  2. tan θ = 0.75 gives θ ≈ 36.9°.

m = 3/4, θ ≈ 36.9°.

Check: The slope is positive and less than 1, so the inclination is between 0° and 45°, as the picture shows.

Worked example 7

Reverse: the line through (2, k) and (5, 9) has slope 2. Find k.

What we know: (9 − k)/(5 − 2) = 2.

What we need: k.

The plan: Multiply out and solve.

  1. (9 − k)/3 = 2, so 9 − k = 6.
  2. k = 3.

k = 3.

Check: (9 − 3)/(5 − 2) = 6/3 = 2.

Worked example 8

Exam: show that the points (−1, −2), (1, 2) and (3, 6) are collinear.

What we know: Three points are on one line when the slope from the first to the second equals the slope from the second to the third (they share the middle point).

What we need: Both slopes.

The plan: Compute and compare.

  1. Slope from (−1, −2) to (1, 2): 4/2 = 2.
  2. Slope from (1, 2) to (3, 6): 4/2 = 2.
  3. Equal slopes through a common point mean the same line.

The points are collinear.

Check: By the area formula of 9.1: (−1)(2 − 6) + 1(6 + 2) + 3(−2 − 2) = 4 + 8 − 12 = 0.

Worked example 9

Find the inclination of a line with slope −1, and the slope of a line with inclination 150°.

What we know: m = tan θ, with θ between 0° and 180°.

What we need: θ for m = −1; m for θ = 150°.

The plan: Use tan(180° − θ) = −tan θ.

  1. tan θ = −1: θ is obtuse, and tan(180° − 45°) = −1, so θ = 135°.
  2. tan 150° = tan(180° − 30°) = −tan 30° = −1/√3.

θ = 135°; m = −1/√3.

Check: Both lines fall to the right, so both have negative slopes and obtuse inclinations.

Common mistake: mixing the order

(y₂ − y₁)/(x₁ − x₂) mixes the orders and gives the wrong sign: for (1, 2) and (4, 8) it gives 6/(−3) = −2. Subtract in the same order on top and bottom.

Common mistake: "the slope of a vertical line is infinite"

The slope of a vertical line is not defined: the run x₂ − x₁ is 0, and division by 0 has no meaning. Calling it "infinite" suggests a number that does not exist.

When you are stuck: a slope question

Sketch the two points: rising left to right means a positive slope, falling means negative.

Check for a vertical line first: equal x-coordinates mean no slope at all.

From an angle, measure it from the positive x-axis, anticlockwise; for obtuse angles use tan(180° − θ) = −tan θ.

Your turn

Find the slope of the line through (3, 5) and (−1, −3), and of the line through (−3, 2) and (4, 2).Tap to reveal
  1. (−3 − 5)/(−1 − 3) = −8/−4 = 2.
  2. (2 − 2)/(4 + 3) = 0/7 = 0.

2 and 0; the second line is horizontal.

Check: Equal y-coordinates always give slope 0: no rise at all.

A line makes an angle of 45° with the positive x-axis. Find its slope, and the slope of the line through the origin and (4, −4).Tap to reveal
  1. tan 45° = 1.
  2. (−4 − 0)/(4 − 0) = −1.

1 and −1.

Check: The second line has inclination 135°, the mirror image of 45° in the y-axis.

In one line

The slope is m = tan θ = (y₂ − y₁)/(x₂ − x₁): rise over run; zero for a horizontal line, not defined for a vertical one.

9.2.2Parallel and perpendicular lines

Why we need it

On a town plan some roads run side by side and some cross at right angles. With slopes, we can tell which is which by arithmetic alone, without drawing anything. Suppose the non-vertical lines l₁ and l₂ have slopes m₁ and m₂ and inclinations α and β.

Parallel lines

Book Figure 9.4: Two parallel lines l₁ and l₂, with inclinations α and β (the book labels this figure only with its number).

If l₁ is parallel to l₂, as in Fig 9.4, their inclinations are equal (corresponding angles with the x-axis): α = β. So tan α = tan β, that is, m₁ = m₂: the slopes are equal.

Conversely, suppose m₁ = m₂, so tan α = tan β. Between 0° and 180° (leaving out 90°), two different angles never have the same tangent, by the way tan changes in that range. So α = β, and the lines are parallel.

Parallel lines

Two non-vertical lines l₁ and l₂ are parallel if and only if their slopes are equal: m₁ = m₂.

Perpendicular lines

Book Figure 9.5: Two perpendicular lines l₁ and l₂, with inclinations α and β = α + 90° (the book labels this figure only with its number).

If l₁ and l₂ are perpendicular, as in Fig 9.5, then β = α + 90°. (The lines and the x-axis make a triangle, and its outside angle β equals the sum of the two inside angles opposite it, α and 90°.) So tan β = tan(α + 90°) = −cot α = −1/tan α, by idea 7 of Before you start. That is, m₂ = −1/m₁, or m₁m₂ = −1.

Conversely, if m₁m₂ = −1, then tan α tan β = −1, so tan α = −cot β = tan(β + 90°) or tan(β − 90°). So α and β differ by 90°, and the lines are perpendicular.

Perpendicular lines

Read it as "m one times m two equals minus one": two non-vertical lines are perpendicular if and only if their slopes are negative reciprocals of each other.

A horizontal line (slope 0) and a vertical line (no slope) are also perpendicular, but the test cannot be used for them, as one slope does not exist.

Example 1 (from the book)

Find the slope of the lines: (a) through (3, −2) and (−1, 4); (b) through (3, −2) and (7, −2); (c) through (3, −2) and (3, 4); (d) making the inclination 60° with the positive direction of the x-axis.

What we know: m = (y₂ − y₁)/(x₂ − x₁), or m = tan θ.

What we need: Four slopes.

The plan: Use two points for (a) to (c) and the inclination for (d).

  1. (a) m = (4 − (−2))/(−1 − 3) = 6/(−4) = −3/2.
  2. (b) m = (−2 − (−2))/(7 − 3) = 0/4 = 0.
  3. (c) m = (4 − (−2))/(3 − 3) = 6/0, which is not defined.
  4. (d) m = tan 60° = √3.

(a) −3/2; (b) 0; (c) not defined; (d) √3.

Check: (b) has equal y-coordinates, so the line is horizontal; (c) has equal x-coordinates, so the line is vertical. Both match their slopes.

Examples of every kind

Worked example 10

Direct: show that the line through (1, 2) and (3, 6) is parallel to the line through (0, 1) and (2, 5), and find the slope of a line perpendicular to both.

What we know: Equal slopes mean parallel lines; perpendicular slopes multiply to −1.

What we need: The two slopes, and the perpendicular slope.

The plan: Compute both slopes; then take the negative reciprocal.

  1. First line: (6 − 2)/(3 − 1) = 2.
  2. Second line: (5 − 1)/(2 − 0) = 2.
  3. Equal slopes, so the lines are parallel.
  4. Perpendicular slope: −1/2.

Parallel (both slopes 2); a perpendicular line has slope −1/2.

Check: 2 × (−1/2) = −1. (The two lines are not the same line: (0, 1) is not on the first, which passes through (0, 0).)

Worked example 11

Story: on a map of a new township near Pune, a canal runs along a line of slope 3/4. A footpath is to cross the canal at right angles. What slope must the footpath have?

What we know: Perpendicular slopes multiply to −1.

What we need: The footpath's slope.

The plan: Take the negative reciprocal of 3/4.

  1. m = −1/(3/4) = −4/3.

−4/3.

Check: (3/4) × (−4/3) = −1. The canal rises to the right, so the footpath must fall to the right.

Worked example 12

Picture: does the triangle with corners (0, 0), (4, 2) and (3, 4) have a right angle at (4, 2)?

What we know: Slopes of the two sides that meet at (4, 2).

What we need: Whether they multiply to −1.

The plan: Slope from (4, 2) to (0, 0), and from (4, 2) to (3, 4).

  1. (0 − 2)/(0 − 4) = 1/2.
  2. (4 − 2)/(3 − 4) = −2.
  3. (1/2) × (−2) = −1.

Yes: the angle at (4, 2) is a right angle.

Check: By distances: the sides from (4, 2) are √20 and √5, and the third side is √25; 20 + 5 = 25, as Pythagoras' theorem needs.

Worked example 13

Reverse: find k so that the line through (1, 1) and (3, k) is perpendicular to a line of slope 2.

What we know: The required slope is −1/2.

What we need: k.

The plan: Set (k − 1)/(3 − 1) = −1/2.

  1. (k − 1)/2 = −1/2, so k − 1 = −1.
  2. k = 0.

k = 0.

Check: The line through (1, 1) and (3, 0) has slope −1/2, and 2 × (−1/2) = −1.

Worked example 14

Exam: show that A(0, 0), B(4, 2), C(3, 4) and D(−1, 2) are the vertices of a rectangle.

What we know: A rectangle is a parallelogram with a right angle.

What we need: Opposite sides parallel, and one right angle.

The plan: Compare the slopes of opposite sides, then test one corner.

  1. AB: 2/4 = 1/2; DC: (4 − 2)/(3 + 1) = 1/2. So AB ∥ DC.
  2. BC: (4 − 2)/(3 − 4) = −2; AD: (2 − 0)/(−1 − 0) = −2. So BC ∥ AD.
  3. AB and BC: (1/2) × (−2) = −1, a right angle at B.

ABCD is a rectangle.

Check: Every corner is then a right angle, since the sides at each corner have slopes 1/2 and −2.

Common mistake: only changing the sign

The line perpendicular to a line of slope 2 does not have slope −2 (that is its mirror image in the y-axis) or 1/2 (that is its reflection in the line y = x). It has slope −1/2: turn the slope upside down and change its sign.

When you are stuck: parallel or perpendicular

Find every slope first, writing "not defined" for vertical lines.

Equal slopes: parallel (or the same line, if they share a point). Product −1: perpendicular.

A vertical and a horizontal line are perpendicular, though the product test cannot be used.

Your turn

Are the lines through (2, 3), (4, 7) and through (0, 0), (2, −1) perpendicular?Tap to reveal
  1. Slopes: 4/2 = 2 and −1/2.
  2. 2 × (−1/2) = −1.

Yes.

Check: One rises steeply, the other falls gently: perpendicular lines always lean opposite ways.

In one line

Parallel lines have equal slopes; perpendicular lines have slopes that multiply to −1.

9.2.3The angle between two lines

Why we need it

Two lines in a plane either meet or are parallel. When they meet, at what angle? Two straight roads meeting at a sharp angle make a dangerous junction; meeting at 90° makes a safe one. The slopes tell us the angle.

Seeing the angle

Let L₁ and L₂ be non-vertical lines with slopes m₁ and m₂ and inclinations α₁ and α₂, so m₁ = tan α₁ and m₂ = tan α₂. Where two lines cross they make two pairs of vertically opposite angles, and any two neighbouring angles add up to 180°. Let θ and φ be two neighbouring angles between L₁ and L₂.

Book Figure 9.6: Two lines L₁ and L₂ with inclinations α₁ and α₂, and the adjacent angles θ and φ between them (the book labels this figure only with its number).

Then θ = α₂ − α₁: the angle between the lines is the difference of their inclinations. By the formula for the tangent of a difference (idea 8):

And φ = 180° − θ, so tan φ = tan(180° − θ) = −tan θ = −(m₂ − m₁)/(1 + m₁m₂).

The two cases

Case I. If (m₂ − m₁)/(1 + m₁m₂) is positive, then tan θ is positive and tan φ is negative: θ is acute and φ is obtuse.

Case II. If (m₂ − m₁)/(1 + m₁m₂) is negative, then tan θ is negative and tan φ is positive: θ is obtuse and φ is acute.

Either way, the acute angle has as its tangent the size of this number. So:

The acute angle between two lines

Read it as "tan theta equals the size of m two minus m one, over one plus m one m two".

The obtuse angle is φ = 180° − θ. If 1 + m₁m₂ = 0 the lines are perpendicular (9.2.2) and the angle is 90°; if m₁ = m₂ they are parallel and the angle is 0.

The book's examples

Example 2 (from the book)

If the angle between two lines is π/4 and the slope of one of them is 1/2, find the slope of the other line.

What we know: tan θ = |(m₂ − m₁)/(1 + m₁m₂)| with m₁ = 1/2, m₂ = m and θ = π/4, so tan θ = 1.

What we need: m.

The plan: Remove the absolute value: the inside is 1 or −1. Solve both.

  1. (m − 1/2)/(1 + m/2) = 1 gives m − 1/2 = 1 + m/2, so m/2 = 3/2 and m = 3.
  2. (m − 1/2)/(1 + m/2) = −1 gives m − 1/2 = −1 − m/2, so 3m/2 = −1/2 and m = −1/3.

The slope of the other line is 3 or −1/3.

Check: Fig 9.7 shows why there are two answers: one line on each side of the given line makes the angle π/4 with it. Check: (3 − 1/2)/(1 + 3/2) = 1 and (−1/3 − 1/2)/(1 − 1/6) = −1.

Book Figure 9.7: Example 2: the reason for its two answers, slopes 3 and −1/3, each making the angle π/4 with the line of slope 1/2 (the book labels this figure only with its number).

Example 3 (from the book)

The line through the points (−2, 6) and (4, 8) is perpendicular to the line through the points (8, 12) and (x, 24). Find the value of x.

What we know: Perpendicular slopes multiply to −1.

What we need: x.

The plan: Write both slopes, then set their product to −1.

  1. m₁ = (8 − 6)/(4 − (−2)) = 2/6 = 1/3.
  2. m₂ = (24 − 12)/(x − 8) = 12/(x − 8).
  3. (1/3) × 12/(x − 8) = −1, so 4/(x − 8) = −1, x − 8 = −4 and x = 4.

x = 4.

Check: With x = 4 the second line goes through (8, 12) and (4, 24): slope 12/(−4) = −3, and (1/3) × (−3) = −1.

More examples, of every kind

Worked example 15

Direct: find the acute angle between lines with slopes 1 and 3.

What we know: tan θ = |(m₂ − m₁)/(1 + m₁m₂)|.

What we need: θ.

The plan: Substitute and find the angle.

  1. tan θ = |(3 − 1)/(1 + 3)| = 2/4 = 1/2.
  2. θ ≈ 26.6°.

θ ≈ 26.6°, and the obtuse angle is about 153.4°.

Check: The inclinations are 45° and about 71.6°; their difference is about 26.6°.

Worked example 16

Story: two straight railway lines leave a junction in Itarsi. On the planner's map one has slope 1 and the other slope 2. At what acute angle do they part?

What we know: m₁ = 1, m₂ = 2.

What we need: The acute angle.

The plan: Use the formula.

  1. tan θ = |(2 − 1)/(1 + 2)| = 1/3.
  2. θ ≈ 18.4°.

About 18.4°.

Check: A small angle, as expected for two lines that both rise steeply to the right.

Worked example 17

Picture: the triangle with A(0, 0), B(4, 0) and C(1, 3). Find the angle at A.

What we know: AB lies along the x-axis (slope 0); AC has slope 3/1 = 3.

What we need: The angle between AB and AC.

The plan: Use the formula with m₁ = 0 and m₂ = 3.

  1. tan A = |(3 − 0)/(1 + 0)| = 3.
  2. A ≈ 71.6°.

About 71.6°.

Check: With one side on the x-axis, the angle is just the inclination of the other side: tan A = 3, the slope of AC.

Worked example 18

Reverse: find the slopes of the lines that make an angle of 45° with a line of slope 2.

What we know: |(m − 2)/(1 + 2m)| = 1.

What we need: m.

The plan: Set the inside equal to 1 and to −1.

  1. (m − 2)/(1 + 2m) = 1: m − 2 = 1 + 2m, so m = −3.
  2. (m − 2)/(1 + 2m) = −1: m − 2 = −1 − 2m, so 3m = 1 and m = 1/3.

m = −3 or m = 1/3.

Check: (−3) × (1/3) = −1: the two answers are perpendicular to each other, as two lines at 45° on either side of a line must be.

Worked example 19

Exam: find the acute angle between the lines y = 2x + 1 and y = −3x + 4.

What we know: Slopes 2 and −3, read from y = mx + c.

What we need: θ.

The plan: Use the formula.

  1. tan θ = |(−3 − 2)/(1 + 2 × (−3))| = |−5/−5| = 1.
  2. θ = 45°.

45°.

Check: The obtuse angle between them is 135°, and 45° + 135° = 180°.

Common mistake: forgetting the absolute value

Without the absolute value, the formula can give a negative number. For slopes 1/2 and 1/3 it gives (1/3 − 1/2)/(1 + 1/6) = −1/7. A negative tangent belongs to the obtuse angle, about 171.9°. The acute angle has tan θ = 1/7, about 8.1°.

When you are stuck: an angle between lines

Read both slopes first: rewrite each equation as y = mx + c.

Check the special cases: equal slopes (angle 0) and 1 + m₁m₂ = 0 (angle 90°) need no formula.

A vertical line? Its angle with another line is 90° minus that line's acute angle with the x-axis.

Looking for a slope? Drop the absolute value as "= +t or = −t" and expect two answers.

Your turn

Find the acute angle between the lines with slopes 1/2 and 1/3.Tap to reveal
  1. tan θ = |(1/3 − 1/2)/(1 + 1/6)| = |(−1/6)/(7/6)| = 1/7.
  2. θ ≈ 8.1°.

About 8.1°.

Check: Both lines rise gently, so they are nearly parallel: a small angle is right.

In one line

The acute angle between lines with slopes m₁ and m₂ has tan θ = |(m₂ − m₁)/(1 + m₁m₂)|; 1 + m₁m₂ = 0 means 90°.

Ex 9.1Exercise 9.1, solved in full

Every answer below agrees with the book's answer key. Questions 1 to 4 use the recall of section 9.1: distance, the mid-point and the area of a triangle. Questions 5 to 11 use slopes, from section 9.2. Draw a rough sketch before each one: it shows which way a line leans and whether an answer is sensible.

1. Draw a quadrilateral in the Cartesian plane, whose vertices are (−4, 5), (0, 7), (5, −5) and (−4, −2). Also, find its area.Tap to reveal
xyA(−4, 5)B(0, 7)C(5, −5)D(−4, −2)
The quadrilateral ABCD of Question 1, cut by the diagonal AC into triangles ABC and ACD.

What we know: The area of a triangle with corners (x₁, y₁), (x₂, y₂), (x₃, y₃) is ½|x₁(y₂ − y₃) + x₂(y₃ − y₁) + x₃(y₁ − y₂)|, from the recall in section 9.1. A diagonal cuts a quadrilateral into two triangles.

What we need: The drawing, and the area of the quadrilateral.

The plan: Name the corners A(−4, 5), B(0, 7), C(5, −5) and D(−4, −2). Plot them, join them in order, cut along the diagonal AC, and add the areas of triangles ABC and ACD.

  1. Plot the four points and join A to B, B to C, C to D and D to A, as in the drawing. A and D share x = −4, so the side AD is vertical.
  2. Triangle ABC: ½|−4(7 − (−5)) + 0(−5 − 5) + 5(5 − 7)| = ½|−48 + 0 − 10| = ½ × 58 = 29.
  3. Triangle ACD: ½|−4(−5 − (−2)) + 5(−2 − 5) + (−4)(5 − (−5))| = ½|12 − 35 − 40| = ½ × 63 = 63/2.
  4. Area of ABCD = 29 + 63/2 = 58/2 + 63/2 = 121/2.

121/2 square units, that is, 60.5 square units.

Check: Cut along the other diagonal, BD, instead. Triangle ABD: ½|−4(7 + 2) + 0 + (−4)(5 − 7)| = ½|−36 + 8| = 14. Triangle BCD: ½|0 + 5(−2 − 7) + (−4)(7 + 5)| = ½|−45 − 48| = 93/2. And 14 + 93/2 = 121/2 again.

A path that fails: the triangle formula takes exactly three corners. Using three of the four corners gives the area of a triangle, not of the quadrilateral; the figure must first be cut into two triangles.

2. The base of an equilateral triangle with side 2a lies along the y-axis such that the mid-point of the base is at the origin. Find vertices of the triangle.Tap to reveal

What we know: The base has length 2a, lies on the y-axis and has its mid-point at O(0, 0). In an equilateral triangle the third corner lies on the perpendicular bisector of the base.

What we need: The three corners.

The plan: Find the ends of the base first; then find the third corner on the perpendicular bisector, at distance 2a from each end.

  1. Half the base is a, so the base runs from (0, a) to (0, −a): a above O and a below it, on the y-axis.
  2. The perpendicular bisector of the base is the line through O at right angles to the y-axis: the x-axis. So the third corner is (h, 0) for some number h.
  3. Its distance from (0, a) must be the side 2a: h² + a² = 4a², so h² = 3a².
  4. So h = √3a or h = −√3a.

(0, a), (0, −a) and (√3a, 0), or (0, a), (0, −a) and (−√3a, 0).

Check: The height of an equilateral triangle with side 2a is √((2a)² − a²) = √3a, and that is the distance of the third corner from O. The distance from (√3a, 0) to (0, −a) is √(3a² + a²) = 2a, as it must be.

Both answers are right: the triangle can point to the right of the y-axis or to the left. Giving only one of them misses half the answer.

3. Find the distance between P(x₁, y₁) and Q(x₂, y₂) when: (i) PQ is parallel to the y-axis, (ii) PQ is parallel to the x-axis.Tap to reveal

What we know: PQ = √[(x₂ − x₁)² + (y₂ − y₁)²]. A segment parallel to the y-axis has both ends at the same x; one parallel to the x-axis has both ends at the same y.

What we need: PQ in each case.

The plan: Put x₂ = x₁ in (i) and y₂ = y₁ in (ii), then simplify the square root.

  1. (i) x₂ = x₁, so PQ = √[0 + (y₂ − y₁)²] = |y₂ − y₁|.
  2. (ii) y₂ = y₁, so PQ = √[(x₂ − x₁)² + 0] = |x₂ − x₁|.
  3. The square root of a square is the absolute value: √((−5)²) = √25 = 5, not −5.

(i) |y₂ − y₁|; (ii) |x₂ − x₁|.

Check: Take P(3, 1) and Q(3, 6), on the vertical line x = 3. The formula gives |6 − 1| = 5, and counting squares on squared paper also gives 5.

A path that fails: writing √((y₂ − y₁)²) = y₂ − y₁ gives a negative distance whenever Q is below P. A distance is never negative.

4. Find a point on the x-axis, which is equidistant from the points (7, 6) and (3, 4).Tap to reveal

What we know: A point on the x-axis has the form (x, 0). Equidistant means at equal distances.

What we need: The value of x.

The plan: Write both squared distances (squaring removes the roots), set them equal and solve.

  1. Squared distance to (7, 6): (x − 7)² + 6² = x² − 14x + 49 + 36 = x² − 14x + 85.
  2. Squared distance to (3, 4): (x − 3)² + 4² = x² − 6x + 9 + 16 = x² − 6x + 25.
  3. Set them equal: x² − 14x + 85 = x² − 6x + 25. The x² cancels, leaving 85 − 25 = 14x − 6x, that is, 60 = 8x.
  4. x = 60/8 = 15/2.

(15/2, 0).

Check: From (7.5, 0) the squared distance to (7, 6) is 0.25 + 36 = 36.25, and to (3, 4) it is 20.25 + 16 = 36.25. They are equal.

Another way: The point lies on the perpendicular bisector of the segment joining (7, 6) and (3, 4). That segment has mid-point (5, 5) and slope 2/4 = 1/2, so the bisector has slope −2. The slope from (x, 0) to (5, 5) is 5/(5 − x) = −2, so 5 = −10 + 2x and x = 15/2.

5. Find the slope of a line, which passes through the origin, and the mid-point of the line segment joining the points P(0, −4) and B(8, 0).Tap to reveal

What we know: The mid-point of (x₁, y₁) and (x₂, y₂) is ((x₁ + x₂)/2, (y₁ + y₂)/2); the slope through two points is (y₂ − y₁)/(x₂ − x₁).

What we need: The slope of the line through O and the mid-point.

The plan: Find the mid-point first, then the slope from (0, 0) to it.

  1. Mid-point of PB: ((0 + 8)/2, (−4 + 0)/2) = (4, −2).
  2. Slope from O(0, 0) to (4, −2): (−2 − 0)/(4 − 0) = −2/4 = −1/2.

−1/2.

Check: The mid-point (4, −2) lies to the right of O and below the x-axis, so the line from O falls to the right: a negative slope fits. It drops 2 for every 4 across, which is 1/2.

A path that fails: finding the slope of PB itself, (0 + 4)/(8 − 0) = 1/2. That is a different line; the question asks for the line through the origin and the mid-point.

6. Without using the Pythagoras theorem, show that the points (4, 4), (3, 5) and (−1, −1) are the vertices of a right angled triangle.Tap to reveal

What we know: Two lines are perpendicular when their slopes multiply to −1 (section 9.2.2).

What we need: A pair of sides at right angles.

The plan: Name A(4, 4), B(3, 5) and C(−1, −1). Find the slopes of all three sides and look for a product of −1.

  1. Slope of AB = (5 − 4)/(3 − 4) = 1/(−1) = −1.
  2. Slope of AC = (−1 − 4)/(−1 − 4) = (−5)/(−5) = 1.
  3. Slope of BC = (−1 − 5)/(−1 − 3) = (−6)/(−4) = 3/2.
  4. Slope of AB × slope of AC = (−1) × 1 = −1, so AB is perpendicular to AC.
  5. The three slopes are different, so the points are not on one line: they do make a triangle.

The angle at A(4, 4) is a right angle, so the triangle is right angled.

Check: Pythagoras' theorem, used only as a check afterwards: AB² = 1 + 1 = 2, AC² = 25 + 25 = 50, BC² = 16 + 36 = 52, and 2 + 50 = 52.

7. Find the slope of the line, which makes an angle of 30° with the positive direction of y-axis measured anticlockwise.Tap to reveal

What we know: The slope is tan of the inclination, and the inclination is measured from the positive x-axis, anticlockwise.

What we need: The inclination, then the slope.

The plan: Turn the angle from the y-axis into an angle from the x-axis.

  1. The positive y-axis is 90° anticlockwise from the positive x-axis.
  2. Turning a further 30° anticlockwise gives the line's direction: 90° + 30° = 120°. So the inclination is 120°.
  3. Slope = tan 120° = tan(180° − 60°) = −tan 60° = −√3.

−√3.

Check: A line at 120° leans back to the left as it rises, so it falls to the right, and its slope must be negative. Also tan(90° + 30°) = −cot 30° = −√3, by idea 7 of Before you start.

A path that fails: tan 30° = 1/√3. That treats the 30° as if it were measured from the x-axis.

8. Without using distance formula, show that points (−2, −1), (4, 0), (3, 3) and (−3, 2) are the vertices of a parallelogram.Tap to reveal

What we know: A quadrilateral whose opposite sides are parallel is a parallelogram; parallel lines have equal slopes.

What we need: Both pairs of opposite sides parallel.

The plan: Name A(−2, −1), B(4, 0), C(3, 3) and D(−3, 2), in order. Compare the slopes of AB and DC, and of BC and AD.

  1. Slope of AB = (0 − (−1))/(4 − (−2)) = 1/6.
  2. Slope of DC = (3 − 2)/(3 − (−3)) = 1/6. So AB is parallel to DC.
  3. Slope of BC = (3 − 0)/(3 − 4) = 3/(−1) = −3.
  4. Slope of AD = (2 − (−1))/(−3 − (−2)) = 3/(−1) = −3. So BC is parallel to AD.
  5. AB and BC have different slopes, so A, B and C are not on one line.

Both pairs of opposite sides are parallel, so ABCD is a parallelogram.

Check: The diagonals of a parallelogram bisect each other. Mid-point of AC: ((−2 + 3)/2, (−1 + 3)/2) = (1/2, 1). Mid-point of BD: ((4 − 3)/2, (0 + 2)/2) = (1/2, 1). The same point.

9. Find the angle between the x-axis and the line joining the points (3, −1) and (4, −2).Tap to reveal

What we know: The slope is tan of the inclination, the angle from the positive x-axis.

What we need: The angle.

The plan: Find the slope, then the angle between 0° and 180° whose tangent it is.

  1. Slope = (−2 − (−1))/(4 − 3) = −1/1 = −1.
  2. So tan θ = −1, with θ between 0° and 180°.
  3. tan 45° = 1, and tan(180° − 45°) = −tan 45° = −1. So θ = 135°.

135°.

Check: The line falls to the right: from (3, −1) to (4, −2) it goes 1 right and 1 down. So its inclination is obtuse, and 135° fits. The acute angle it makes with the x-axis is 180° − 135° = 45°.

An answer of 45° names the other angle at the crossing, the acute one. The key expects the inclination, 135°.

10. The slope of a line is double of the slope of another line. If tangent of the angle between them is 1/3, find the slopes of the lines.Tap to reveal

What we know: tan θ = |(m₂ − m₁)/(1 + m₁m₂)|. Let the slopes be m and 2m.

What we need: m, and with it 2m.

The plan: Put the slopes into the formula, remove the absolute value as two cases, and solve each quadratic.

  1. tan θ = |(2m − m)/(1 + m × 2m)| = |m/(1 + 2m²)| = 1/3.
  2. 1 + 2m² is always positive, so this says 3|m| = 1 + 2m².
  3. Case m positive: 3m = 1 + 2m², so 2m² − 3m + 1 = 0, that is, (2m − 1)(m − 1) = 0. So m = 1/2 or m = 1.
  4. Case m negative: −3m = 1 + 2m², so 2m² + 3m + 1 = 0, that is, (2m + 1)(m + 1) = 0. So m = −1/2 or m = −1.
  5. Each m gives the pair of slopes m and 2m.

1 and 2, or 1/2 and 1, or −1 and −2, or −1/2 and −1.

Check: For 1 and 2: |(2 − 1)/(1 + 2)| = 1/3. For 1/2 and 1: |(1 − 1/2)/(1 + 1/2)| = (1/2)/(3/2) = 1/3. The negative pairs give the same, since changing both signs leaves m/(1 + 2m²) the same size.

A path that fails: dropping the absolute value and solving only m/(1 + 2m²) = 1/3 finds the two positive pairs and misses the two negative ones.

11. A line passes through (x₁, y₁) and (h, k). If slope of the line is m, show that k − y₁ = m(h − x₁).Tap to reveal

What we know: The slope through two points is (y₂ − y₁)/(x₂ − x₁).

What we need: The relation k − y₁ = m(h − x₁).

The plan: Write the slope from the two given points, set it equal to m, and multiply out.

  1. The slope through (x₁, y₁) and (h, k) is (k − y₁)/(h − x₁). This needs h ≠ x₁, which holds because the line has a slope m, so it is not vertical.
  2. So (k − y₁)/(h − x₁) = m.
  3. Multiply both sides by (h − x₁): k − y₁ = m(h − x₁).

k − y₁ = m(h − x₁), as required.

Check: Try the line through (1, 2) with slope 3. The point (4, 11) is on it, since (11 − 2)/(4 − 1) = 3. Then k − y₁ = 9 and m(h − x₁) = 3 × 3 = 9.

This is the point-slope form of section 9.3 in disguise: every point (h, k) of the line satisfies it. Section 9.3 builds the equation of a line from exactly this idea.

When you are stuck: Exercise 9.1

Draw first: a rough sketch shows which side is vertical, which way a line leans, and whether an answer is sensible.

Distances: square both distances to remove the roots; the x² terms usually cancel.

Shapes: parallel sides have equal slopes; sides at right angles have slopes that multiply to −1.

Angles: the inclination is measured from the positive x-axis, anticlockwise, and lies between 0° and 180°.

In one line

Exercise 9.1 needs four tools only: distance, mid-point, the area of a triangle, and slope.

9.3Various forms of the equation of a line

Why we need it

A line in a plane holds infinitely many points. Here is the question of this section: how can we tell, quickly and for certain, whether a given point lies on a given line? Looking at a drawing is not enough. A point may sit a hair's breadth off the line, and no drawing can show that.

The answer is a condition: a test that the coordinates of a point pass when the point is on the line, and fail when it is not. Suppose P(x, y) is any point of the plane and L is the given line. We want a statement about x and y that is true when P is on L, and false otherwise. That statement is an equation in the variables x and y.

An example first

Idea 4 of Before you start had the line y = 2x + 3. Test the point (1, 5): 2 × 1 + 3 = 5, so the equation holds and the point is on the line. Test (1, 4): 2 × 1 + 3 = 5, not 4, so the equation fails and the point is off the line, 1 unit below it. The equation did the looking for us.

Equation of a line

An equation in x and y is the equation of a line L when the coordinates of every point of L satisfy it, and the coordinates of no other point do.

Each part of this section builds the equation from a different starting fact: a horizontal or vertical position, one point and the slope, or two points.

9.3.1 Horizontal and vertical lines

Start with the easiest lines. Suppose a horizontal line L is at a distance a from the x-axis. Every point of L is at the same height. So the ordinate (y-coordinate) of every point of L is a, if L is above the x-axis, or −a, if it is below.

Book Figure 9.8: (a) Horizontal lines at a distance a from the x-axis, y = a or y = −a; (b) vertical lines at a distance b from the y-axis, x = b or x = −b (the book labels this figure only with its number).

Therefore the equation of L is y = a or y = −a, as in Fig 9.8 (a). The sign depends on whether the line is above or below the x-axis. (The book writes "above or below the y-axis" at this point; for a horizontal line it can only mean the x-axis.)

In the same way, a vertical line at a distance b from the y-axis has the same abscissa (x-coordinate) at every point. Its equation is x = b or x = −b, as in Fig 9.8 (b), with the sign set by whether it is to the right or to the left of the y-axis.

Lines parallel to the axes

Read them as "y equals a" and "x equals b". A horizontal line fixes y and lets x be anything; a vertical line fixes x and lets y be anything.

The x-axis itself is y = 0, and the y-axis itself is x = 0.

Example 4 (from the book)

Find the equations of the lines parallel to axes and passing through (−2, 3).

What we know: A line parallel to the x-axis has the form y = a; a line parallel to the y-axis has the form x = b.

What we need: The two equations.

The plan: Read off the fixed coordinate from the given point, as in Fig 9.9.

  1. The line parallel to the x-axis through (−2, 3): every point on it has y-coordinate 3, so its equation is y = 3.
  2. The line parallel to the y-axis through (−2, 3): every point on it has x-coordinate −2, so its equation is x = −2.

y = 3 and x = −2.

Check: (−2, 3) satisfies both: its y is 3 and its x is −2. The two lines meet at this point at a right angle.

Book Figure 9.9: Example 4: the lines through (−2, 3) parallel to the axes, y = 3 and x = −2 (the book labels this figure only with its number).

Common mistake: swapping x and y

The line parallel to the x-axis has the equation y = something, not x = something. A line along the x direction keeps its height fixed, and height is y. Picture the floor of a room: it runs sideways, and its height never changes.

Worked example 20

Story: a school ground in Nagpur is marked with a coordinate grid in metres, with the origin at one corner. The straight finishing line of a race is drawn parallel to the y-axis and passes through the point (40, 15). Write its equation.

What we know: A line parallel to the y-axis has the form x = b.

What we need: b.

The plan: Read the x-coordinate of the given point.

  1. Every point of the finishing line has the same x-coordinate as (40, 15).
  2. So b = 40.

x = 40.

Check: The points (40, 0) and (40, 25) are also on the finishing line, and both have x = 40. The 15 does not appear in the answer: it only told us one point of the line.

9.3.2 The point-slope form

Now a line that leans. Suppose P₀(x₀, y₀) is a fixed point on a non-vertical line L whose slope is m. (Read P₀ as "P nought".) Let P(x, y) be any other point on L, as in Fig 9.10.

Book Figure 9.10: A line L through the fixed point P₀(x₀, y₀) with slope m, and an arbitrary point P(x, y) on it (the book labels this figure only with its number).

By the definition of slope, the slope of L can be worked out from the two points P₀ and P:

Why is (1) the equation of L? Every point (x, y) on L satisfies it, because the slope from P₀ to any point of L is m. P₀ itself satisfies it too, since 0 = m × 0. And no other point satisfies it: a point off L, joined to P₀, gives a line of a different slope.

Point-slope form

Read it as "y minus y nought equals m times x minus x nought". The point (x, y) lies on the line with slope m through the fixed point (x₀, y₀) if and only if its coordinates satisfy this equation.

Use it when you know one point of the line and its slope.

Example 5 (from the book)

Find the equation of the line through (−2, 3) with slope −4.

What we know: m = −4 and the point (x₀, y₀) = (−2, 3).

What we need: The equation of the line.

The plan: Put the point and the slope into the point-slope form (1), then tidy up.

  1. y − 3 = −4(x − (−2)) = −4(x + 2).
  2. y − 3 = −4x − 8.
  3. Bring every term to one side: 4x + y + 5 = 0.

4x + y + 5 = 0.

Check: (−2, 3): 4 × (−2) + 3 + 5 = 0. Writing the answer as y = −4x − 5 shows the slope −4 again.

The book's solution says "by slope-intercept form formula (1)". Formula (1) is the point-slope form; the slope-intercept form comes in section 9.3.4.

Examples of every kind

Worked example 21

Direct: find the equation of the line through (2, 5) with slope 3.

What we know: (x₀, y₀) = (2, 5) and m = 3.

What we need: The equation.

The plan: Use the point-slope form.

  1. y − 5 = 3(x − 2).
  2. y − 5 = 3x − 6.
  3. 3x − y − 1 = 0.

3x − y − 1 = 0.

Check: (2, 5): 6 − 5 − 1 = 0. Another point: x = 0 gives y = −1, and the slope from (0, −1) to (2, 5) is 6/2 = 3.

Worked example 22

Story: a cab in Bengaluru charges a fixed amount plus Rs 25 for every kilometre. A ride of 6 km cost Rs 180. Write the fare F (in rupees) for a ride of d km, and find the fixed amount.

What we know: The fare grows by Rs 25 per km, so on a graph of F against d the slope is 25. One point is (6, 180).

What we need: The rule for F, and its value at d = 0.

The plan: Use the point-slope form with d in place of x and F in place of y.

  1. F − 180 = 25(d − 6).
  2. F = 25d − 150 + 180 = 25d + 30.
  3. At d = 0 the fare is Rs 30: that is the fixed amount.

F = 25d + 30; the fixed amount is Rs 30.

Check: A 10 km ride: 25 × 10 + 30 = Rs 280. From 6 km to 10 km the fare rises by Rs 100 for 4 km, which is Rs 25 per km.

Worked example 23

Picture: the line in the run-and-rise drawing of section 9.2.1 passes through P(1, 1) with slope 3/4. Write its equation.

What we know: (x₀, y₀) = (1, 1) and m = 3/4.

What we need: The equation.

The plan: Use the point-slope form, then clear the fraction.

  1. y − 1 = (3/4)(x − 1).
  2. Multiply by 4: 4y − 4 = 3x − 3.
  3. 3x − 4y + 1 = 0.

3x − 4y + 1 = 0.

Check: Q(5, 4) from the same drawing: 15 − 16 + 1 = 0. Both marked points pass the test.

Worked example 24

Reverse: the equation y + 1 = 5(x − 2) is in point-slope form. Name a point of the line and its slope.

What we know: y − y₀ = m(x − x₀).

What we need: (x₀, y₀) and m.

The plan: Match the given equation with the form, sign by sign.

  1. y + 1 = y − (−1), so y₀ = −1.
  2. x − 2 matches x − x₀, so x₀ = 2.
  3. The number in front of the bracket is m = 5.

The point (2, −1) and the slope 5.

Check: Put x = 2 and y = −1: the left side is 0 and the right side is 5 × 0 = 0.

A path that fails: reading the point as (2, 1) from "+ 1". The form has a minus sign before y₀, so + 1 means y₀ = −1.

Worked example 25

Exam: find the equation of the line through (2, −3) with inclination 135°.

What we know: m = tan 135° = −1, by idea 7 of Before you start.

What we need: The equation.

The plan: Find the slope from the inclination, then use the point-slope form.

  1. m = tan 135° = −tan 45° = −1.
  2. y + 3 = −1(x − 2).
  3. y + 3 = −x + 2, so x + y + 1 = 0.

x + y + 1 = 0.

Check: (2, −3): 2 − 3 + 1 = 0. The line also passes through (0, −1): from there to (2, −3) it falls 2 for 2 across, slope −1.

9.3.3 The two-point form

Often we know two points of a line and nothing else. Let the line L pass through P₁(x₁, y₁) and P₂(x₂, y₂), and let P(x, y) be a general point on L, as in Fig 9.11.

Book Figure 9.11: A line L through P₁(x₁, y₁) and P₂(x₂, y₂), with a general point P(x, y) on it (the book labels this figure only with its number).

The three points P₁, P₂ and P are collinear. So the slope of P₁P equals the slope of P₁P₂ (idea 12 of Before you start):

Look at (2) closely: it is the point-slope form, with the point P₁ and the slope (y₂ − y₁)/(x₂ − x₁) worked out from the two points. Nothing new needs remembering.

Two-point form

Read it as "y minus y one equals the slope through the two points, times x minus x one".

Use it when you know two points of the line. If x₁ = x₂ the line is vertical, and its equation is x = x₁.

Example 6 (from the book)

Write the equation of the line through the points (1, −1) and (3, 5).

What we know: x₁ = 1, y₁ = −1, x₂ = 3 and y₂ = 5.

What we need: The equation.

The plan: Use the two-point form (2).

  1. The slope: (5 − (−1))/(3 − 1) = 6/2 = 3.
  2. y − (−1) = 3(x − 1), that is, y + 1 = 3x − 3.
  3. Bring every term to one side: −3x + y + 4 = 0.

−3x + y + 4 = 0.

Check: (1, −1): −3 − 1 + 4 = 0. (3, 5): −9 + 5 + 4 = 0. Both given points pass.

Another way: Start from the other point, (3, 5): y − 5 = 3(x − 3) gives y = 3x − 4, the same line.

Examples of every kind

Worked example 26

Direct: find the equation of the line through (2, 3) and (6, 11).

What we know: Two points of the line.

What we need: The equation.

The plan: Slope first, then the point-slope form with the first point.

  1. Slope = (11 − 3)/(6 − 2) = 8/4 = 2.
  2. y − 3 = 2(x − 2) = 2x − 4.
  3. 2x − y − 1 = 0.

2x − y − 1 = 0.

Check: (6, 11): 12 − 11 − 1 = 0.

Worked example 27

Story: a candle burns down at a steady rate. One hour after it was lit it is 20 cm tall; four hours after, it is 14 cm tall. Find its height h (in cm) after t hours, its height when lit, and when it burns out.

What we know: Steady burning means the points (t, h) lie on a line. Two points: (1, 20) and (4, 14).

What we need: The rule for h; h at t = 0; t when h = 0.

The plan: Two-point form, then put t = 0 and h = 0.

  1. Slope = (14 − 20)/(4 − 1) = −6/3 = −2 cm per hour.
  2. h − 20 = −2(t − 1), so h = −2t + 22.
  3. When lit, t = 0: h = 22 cm.
  4. Burnt out, h = 0: 2t = 22, so t = 11 hours.

h = 22 − 2t; it was 22 cm tall when lit and burns out after 11 hours.

Check: At t = 4: 22 − 8 = 14 cm, as given. The negative slope means the height goes down, as a burning candle's does.

Worked example 28

Picture: in the drawing for Question 1 of Exercise 9.1, find the equation of the side AB, where A is (−4, 5) and B is (0, 7).

What we know: Two points of the side's line.

What we need: Its equation.

The plan: Two-point form.

  1. Slope = (7 − 5)/(0 − (−4)) = 2/4 = 1/2.
  2. y − 5 = (1/2)(x + 4).
  3. Multiply by 2: 2y − 10 = x + 4, so x − 2y + 14 = 0.

x − 2y + 14 = 0.

Check: B(0, 7): 0 − 14 + 14 = 0. In the drawing AB rises gently to the right, matching the slope 1/2.

Worked example 29

Reverse: the line through (1, 1) and (3, 5) also passes through (k, 13). Find k.

What we know: The line's slope is (5 − 1)/(3 − 1) = 2.

What we need: k.

The plan: Write the equation of the line, then put y = 13.

  1. y − 1 = 2(x − 1).
  2. At (k, 13): 13 − 1 = 2(k − 1), so 12 = 2(k − 1).
  3. k − 1 = 6, so k = 7.

k = 7.

Check: The slope from (3, 5) to (7, 13) is 8/4 = 2, the same as the line's slope.

Worked example 30

Exam: find the equation of the line through (−1, 2) and (−1, 6).

What we know: Both points have x = −1.

What we need: The equation.

The plan: Try the two-point form, and watch what happens.

  1. The slope would be (6 − 2)/(−1 − (−1)) = 4/0, which is not defined.
  2. So the two-point form cannot be used: the line is vertical.
  3. Every point on it has x = −1.

x = −1.

Check: Both (−1, 2) and (−1, 6) satisfy x = −1.

A path that fails: pushing on with the formula divides by zero. When the two x-coordinates are equal, stop and write x = x₁.

Common mistake: mixing the order of the points

The slope is (y₂ − y₁)/(x₂ − x₁): the same point comes first on the top and on the bottom. Writing (y₂ − y₁)/(x₁ − x₂) flips the sign of the slope, and the line comes out tilted the wrong way.

When you are stuck: the equation of a line

List what you know: one point and a slope (point-slope form), or two points (two-point form).

Slope missing? Get it from an inclination (m = tan θ), from two points, or from a parallel or perpendicular line.

Test your answer: every given point must satisfy the final equation; one wrong sign shows at once.

Your turn

Find the equation of the line through (−3, 4) with slope 1/3, and check it with a second point.Tap to reveal

What we know: (x₀, y₀) = (−3, 4) and m = 1/3.

The plan: Point-slope form, then clear the fraction.

  1. y − 4 = (1/3)(x + 3).
  2. 3y − 12 = x + 3, so x − 3y + 15 = 0.
  3. A second point: x = 0 gives 3y = 15, so (0, 5).

x − 3y + 15 = 0.

Check: The slope from (−3, 4) to (0, 5) is 1/3, as required.

In one line

One point and the slope: y − y₀ = m(x − x₀). Two points: find the slope first, then do the same. Lines parallel to the axes: y = a or x = b.

9.3.4Slope-intercept and intercept forms; the general equation

Why we need it

Sometimes a line is known by its slope and the place where it cuts one of the axes. Sometimes it is known by where it cuts both axes. These facts are so common that each gets a form of its own. They are not new mathematics: each comes straight out of the point-slope or the two-point form.

9.3.4 The slope-intercept form

Intercepts

The y-intercept of a line is the y-coordinate of the point where it cuts the y-axis. The x-intercept is the x-coordinate of the point where it cuts the x-axis. Example: the line through (0, 3) and (6, 0) has y-intercept 3 and x-intercept 6.

Case I. Suppose a line L with slope m cuts the y-axis at a distance c from the origin, as in Fig 9.12. The distance c is called the y-intercept of L. The point where L meets the y-axis is then (0, c), since every point of the y-axis has x = 0.

Book Figure 9.12: A line with slope m cutting the y-axis at a distance c from the origin: the y-intercept c (the book labels this figure only with its number).

So L has slope m and passes through the fixed point (0, c). By the point-slope form, its equation is y − c = m(x − 0), that is, y = mx + c. The point (x, y) lies on the line with slope m and y-intercept c if and only if

The value of c is positive or negative according as the intercept is on the positive or the negative side of the y-axis. Example: y = 2x − 4 cuts the y-axis at (0, −4), below the origin.

Case II. Suppose L has slope m and x-intercept d. Then L meets the x-axis at (d, 0). The book leaves this case for students to derive; here is the derivation. By the point-slope form with the point (d, 0): y − 0 = m(x − d), that is,

Slope-intercept form

Read the first as "y equals m x plus c": m is the slope and c is the y-intercept. Read the second as "y equals m times x minus d": d is the x-intercept.

Use them when you know the slope and an intercept. In y = mx + c the slope is the number in front of x, once y stands alone.

Example 7 (from the book)

Write the equation of the lines for which tan θ = 1/2, where θ is the inclination of the line and (i) y-intercept is −3/2, (ii) x-intercept is 4.

What we know: m = tan θ = 1/2. In (i) c = −3/2; in (ii) d = 4.

What we need: The two equations.

The plan: Use form (3) for (i) and form (4) for (ii), then clear the fractions.

  1. (i) y = (1/2)x − 3/2. Multiply by 2: 2y = x − 3, that is, 2y − x + 3 = 0.
  2. (ii) y = (1/2)(x − 4). Multiply by 2: 2y = x − 4, that is, 2y − x + 4 = 0.

(i) 2y − x + 3 = 0; (ii) 2y − x + 4 = 0.

Check: (i) x = 0 gives 2y = −3, y = −3/2, the given y-intercept. (ii) y = 0 gives x = 4, the given x-intercept. The two lines are parallel: both have slope 1/2.

Examples of every kind

Worked example 31

Direct: write the equation of the line with slope −3 and y-intercept 5.

What we know: m = −3 and c = 5.

What we need: The equation.

The plan: Use y = mx + c.

  1. y = −3x + 5.
  2. In general form: 3x + y − 5 = 0.

y = −3x + 5, or 3x + y − 5 = 0.

Check: x = 0 gives y = 5, the y-intercept. Each step of 1 to the right lowers y by 3, the slope −3.

Worked example 32

Story: a new domestic LPG cylinder holds 14.2 kg of gas. A family in Indore uses about 0.5 kg a day. Write the gas G (in kg) left after t days, and find how long the cylinder lasts.

What we know: At t = 0, G = 14.2: the intercept on the G-axis. G falls by 0.5 each day: the slope is −0.5.

What we need: The rule for G, and t when G = 0.

The plan: Use the slope-intercept form, then put G = 0.

  1. G = −0.5t + 14.2.
  2. G = 0 when 0.5t = 14.2, so t = 14.2 ÷ 0.5 = 28.4.

G = 14.2 − 0.5t; the cylinder lasts about 28 days.

Check: After 10 days: 14.2 − 5 = 9.2 kg left, a little under two-thirds of the gas. A line with a negative slope goes down, as the gas does.

Worked example 33

Picture: a straight line on a graph cuts the y-axis 2 units above the origin and rises 6 units for every 3 units to the right. Write its equation.

What we know: The y-intercept c = 2; the slope m = rise ÷ run = 6 ÷ 3 = 2.

What we need: The equation.

The plan: Use y = mx + c.

  1. m = 6/3 = 2 and c = 2.
  2. y = 2x + 2, or 2x − y + 2 = 0.

y = 2x + 2.

Check: Start at (0, 2), go 3 right and 6 up: (3, 8). And 2 × 3 + 2 = 8.

Worked example 34

Reverse: find the slope and the y-intercept of the line 2x + 5y = 20.

What we know: In y = mx + c, the slope and the y-intercept can be read off once y stands alone.

What we need: m and c.

The plan: Solve the equation for y.

  1. 5y = −2x + 20.
  2. y = −(2/5)x + 4.

Slope −2/5; y-intercept 4.

Check: x = 0 in 2x + 5y = 20 gives 5y = 20, y = 4. And x = 10 gives y = 0: from (0, 4) to (10, 0) the slope is −4/10 = −2/5.

A path that fails: reading the slope as 2, the number in front of x in 2x + 5y = 20. The slope is the number in front of x only after y stands alone.

Worked example 35

Exam: find the equation of the line with slope 2 that cuts the x-axis at 3. What is its y-intercept?

What we know: m = 2 and d = 3.

What we need: The equation, and c.

The plan: Use y = m(x − d), then put x = 0.

  1. y = 2(x − 3) = 2x − 6.
  2. In general form: 2x − y − 6 = 0.
  3. x = 0 gives y = −6.

2x − y − 6 = 0; y-intercept −6.

Check: (3, 0): 6 − 0 − 6 = 0. From (3, 0) to (0, −6) the slope is (−6)/(−3) = 2.

In one line

y = mx + c: m is the slope and c the y-intercept; y = m(x − d): d is the x-intercept.

9.3.5 The intercept form

Suppose a line L makes x-intercept a and y-intercept b on the axes, with a and b both non-zero. Then L meets the x-axis at (a, 0) and the y-axis at (0, b), as in Fig 9.13.

Book Figure 9.13: A line making the intercepts a and b on the x- and y-axes (the book labels this figure only with its number).

Two points of L are known, so the two-point form gives its equation:

Bring the x term across: bx + ay = ab. Divide every term by ab (allowed, as neither a nor b is zero): x/a + y/b = 1.

Intercept form

Read it as "x over a plus y over b equals one": a is the x-intercept and b is the y-intercept.

Use it when you know where the line cuts both axes. It cannot describe a line through the origin, or a line parallel to an axis, since one intercept is then 0 or does not exist.

Example 8 (from the book)

Find the equation of the line, which makes intercepts −3 and 2 on the x- and y-axes respectively.

What we know: a = −3 and b = 2.

What we need: The equation.

The plan: Use the intercept form (5), then clear the fractions.

  1. x/(−3) + y/2 = 1.
  2. Multiply every term by 6: −2x + 3y = 6.
  3. Bring every term to one side and change all the signs: 2x − 3y + 6 = 0.

2x − 3y + 6 = 0.

Check: (−3, 0): −6 − 0 + 6 = 0. (0, 2): 0 − 6 + 6 = 0. The line passes through both intercept points.

Examples of every kind

Worked example 36

Direct: write the equation of the line with x-intercept 10 and y-intercept 4.

What we know: a = 10 and b = 4.

What we need: The equation.

The plan: Intercept form, then multiply by 20, the smallest number that both 10 and 4 divide.

  1. x/10 + y/4 = 1.
  2. Multiply by 20: 2x + 5y = 20.

2x + 5y = 20.

Check: (10, 0): 20 + 0 = 20. (0, 4): 0 + 20 = 20. This is the line of the reverse example on the slope-intercept form, met again from its intercepts.

Worked example 37

Story: Meera has Rs 600 to spend on pens at Rs 20 each and notebooks at Rs 30 each, and spends all of it. If she buys x pens and y notebooks, write her rule in intercept form and say what the intercepts mean.

What we know: Spending: 20x + 30y = 600.

What we need: The intercept form, and the meaning of a and b.

The plan: Divide every term by 600.

  1. 20x/600 + 30y/600 = 1.
  2. x/30 + y/20 = 1.

x/30 + y/20 = 1: with no notebooks she can buy 30 pens; with no pens, 20 notebooks.

Check: A mixed purchase: 15 pens and 10 notebooks cost 300 + 300 = Rs 600, and 15/30 + 10/20 = 1/2 + 1/2 = 1.

Worked example 38

Picture: the line x/10 + y/4 = 1 cuts off a triangle from the corner of the axes. Find its area.

What we know: The triangle has corners (0, 0), (10, 0) and (0, 4): a right angle at the origin.

What we need: The area.

The plan: Half the base times the height.

  1. Base along the x-axis: 10. Height along the y-axis: 4.
  2. Area = ½ × 10 × 4 = 20.

20 square units.

Check: The triangle formula of section 9.1 with (0, 0), (10, 0), (0, 4): ½|0 + 10 × 4 + 0| = 20.

Worked example 39

Reverse: write the line 2x − 3y + 6 = 0 in intercept form and read its intercepts.

What we know: The intercept form has 1 on the right side.

What we need: a and b.

The plan: Move the number to the right, then divide by it.

  1. 2x − 3y = −6.
  2. Divide by −6: 2x/(−6) + (−3y)/(−6) = 1, that is, x/(−3) + y/2 = 1.

x/(−3) + y/2 = 1: the x-intercept is −3 and the y-intercept is 2.

Check: This is the line of Example 8 (from the book), read backwards. Put y = 0: 2x = −6, x = −3.

Worked example 40

Exam: find the equation of the line through (4, −1) that makes equal intercepts on the axes.

What we know: Equal intercepts: a = b.

What we need: The equation.

The plan: Write x/a + y/a = 1, then put in the point.

  1. x/a + y/a = 1 means x + y = a.
  2. The point (4, −1) is on it: 4 + (−1) = a, so a = 3.
  3. The line is x + y = 3.

x + y = 3.

Check: Its intercepts: (3, 0) and (0, 3). Equal, and (4, −1) gives 4 − 1 = 3.

A loose end: the line x + 4y = 0, through the origin and (4, −1), has both intercepts 0, which are also equal. The intercept form cannot show it, as it would divide by 0. Some exam papers accept it as a second answer, so mention it.

Common mistake: a right side that is not 1

2x + 5y = 20 is not x/2 + y/5 = 1. To read the intercepts, the right side must be 1: divide every term by 20 first, giving x/10 + y/4 = 1. The intercepts are 10 and 4, not 2 and 5.

The general equation of a line

Every form so far can be rearranged so that all its terms sit on one side with 0 on the other. For example, y = mx + c becomes mx − y + c = 0, and x = b becomes x − b = 0. Each time the result looks like Ax + By + C = 0.

General equation of a line

Any equation of the form Ax + By + C = 0, where A and B are not both zero, is called the general linear equation, or the general equation of a line. Example: 4x + y + 5 = 0 has A = 4, B = 1 and C = 5.

You may wonder whether every such equation really is a line. It is, and here is why. If B is not zero, divide by B: y = −(A/B)x − C/B. That is the slope-intercept form, with slope −A/B and y-intercept −C/B. If B is zero, then A is not zero, and the equation says x = −C/A: a vertical line.

Reading the general equation Ax + By + C = 0

Read the first as "the slope is minus A over B". The first two need B ≠ 0, and the third needs A ≠ 0.

You do not have to learn these by heart: solving for y, or putting x = 0 and then y = 0, gives them every time.

Worked example 41

Direct: read the slope, the y-intercept and the x-intercept of 4x + y + 5 = 0, the answer to Example 5 (from the book).

What we know: A = 4, B = 1, C = 5.

What we need: m and the two intercepts.

The plan: Use the three readings.

  1. m = −4/1 = −4.
  2. y-intercept = −5/1 = −5.
  3. x-intercept = −5/4.

Slope −4; y-intercept −5; x-intercept −5/4.

Check: The slope −4 is the slope Example 5 started from. And y = −4x − 5 at x = 0 gives −5.

What you knowThe form to useThe equation
The line is horizontal or verticalParallel to an axisy = a or x = b
One point and the slopePoint-slopey − y₀ = m(x − x₀)
Two pointsTwo-pointy − y₁ = [(y₂ − y₁)/(x₂ − x₁)](x − x₁)
The slope and the y-interceptSlope-intercepty = mx + c
The slope and the x-interceptSlope-intercept (Case II)y = m(x − d)
Both intercepts, neither zeroInterceptx/a + y/b = 1
Any line at allGeneralAx + By + C = 0

A memory aid

Each form is named after what you need to know: point and slope, point-slope; two points, two-point; slope and intercept, slope-intercept; both intercepts, intercept form.

When you are stuck: choosing a form

Write down what the question gives: points, a slope, an angle, intercepts. Then pick the row of the table that matches.

Given an equation? Solve it for y to read the slope and the y-intercept; put x = 0 and y = 0 to find where it cuts the axes.

Finish in general form with whole numbers, and test a known point in it.

Your turn

Find the slope, the y-intercept and the x-intercept of 5x − 2y − 10 = 0.Tap to reveal

What we know: A = 5, B = −2, C = −10.

The plan: Solve for y, then put y = 0.

  1. 2y = 5x − 10, so y = (5/2)x − 5.
  2. The slope is 5/2 and the y-intercept is −5.
  3. y = 0 gives 5x = 10, so x = 2.

Slope 5/2; y-intercept −5; x-intercept 2.

Check: (2, 0) and (0, −5) both satisfy the equation, and the slope between them is 5/2.

In one line

Every line has an equation Ax + By + C = 0; solve for y to read its slope and y-intercept, and use x/a + y/b = 1 when both intercepts are known.

Ex 9.2Exercise 9.2, solved in full

Every answer below agrees with the book's answer key. Questions 1 to 8 ask for the equation of a line from given conditions: pick the form that matches what is given (the table in section 9.3.4 lists them), and finish in general form. Questions 9 to 19 mix the forms with earlier ideas.

1. Write the equations for the x- and y-axes.Tap to reveal

What we know: The x-axis is a horizontal line, the y-axis a vertical one, and both pass through the origin.

What we need: Their equations.

The plan: Find the coordinate that stays the same at every point of each axis.

  1. Every point of the x-axis has y-coordinate 0: (1, 0), (−5, 0), (2.5, 0) and so on.
  2. So the x-axis is the line y = 0.
  3. Every point of the y-axis has x-coordinate 0: (0, 1), (0, −3) and so on.
  4. So the y-axis is the line x = 0.

The x-axis: y = 0. The y-axis: x = 0.

Check: The origin (0, 0) satisfies both equations, as it lies on both axes. A point such as (3, 0) satisfies y = 0 but not x = 0: it is on the x-axis only.

A path that fails: writing x = 0 for the x-axis because of the matching letter. The x-axis is where y is zero.

2. Find the equation of the line passing through the point (−4, 3) with slope 1/2.Tap to reveal

What we know: One point (−4, 3) and the slope 1/2.

What we need: The equation.

The plan: Point-slope form, then clear the fraction.

  1. y − 3 = (1/2)(x − (−4)) = (1/2)(x + 4).
  2. Multiply by 2: 2y − 6 = x + 4.
  3. Bring every term to one side: x − 2y + 10 = 0.

x − 2y + 10 = 0.

Check: (−4, 3): −4 − 6 + 10 = 0. A second point: x = 0 gives y = 5, and the slope from (−4, 3) to (0, 5) is 2/4 = 1/2.

3. Find the equation of the line passing through (0, 0) with slope m.Tap to reveal

What we know: The point is the origin and the slope is m (a letter standing for any fixed number).

What we need: The equation.

The plan: Point-slope form with x₀ = 0 and y₀ = 0.

  1. y − 0 = m(x − 0).
  2. So y = mx.

y = mx.

Check: (0, 0): 0 = m × 0. Every line through the origin, except the y-axis, has an equation of this kind: y = 2x, y = −x, y = x/3. It is the slope-intercept form with c = 0, since such a line cuts the y-axis at the origin.

The y-axis also passes through the origin, but it has no slope, so it is not of this form: its equation is x = 0.

4. Find the equation of the line passing through (2, 2√3) and inclined with the x-axis at an angle of 75°.Tap to reveal

What we know: The slope is tan 75°. Chapter 3 proved tan(x + y) = (tan x + tan y)/(1 − tan x tan y), and 75° = 45° + 30°.

What we need: The slope, then the equation.

The plan: Find tan 75° from tan 45° = 1 and tan 30° = 1/√3; then use the point-slope form and clear the fraction.

  1. tan 75° = (1 + 1/√3)/(1 − 1/√3). Multiply top and bottom by √3: (√3 + 1)/(√3 − 1).
  2. Point-slope form: y − 2√3 = [(√3 + 1)/(√3 − 1)](x − 2).
  3. Multiply by (√3 − 1): (√3 − 1)y − 2√3(√3 − 1) = (√3 + 1)x − 2(√3 + 1).
  4. 2√3(√3 − 1) = 6 − 2√3, so (√3 + 1)x − (√3 − 1)y = 2√3 + 2 − 6 + 2√3 = 4√3 − 4.

(√3 + 1)x − (√3 − 1)y = 4(√3 − 1).

Check: (2, 2√3): the left side is 2√3 + 2 − (6 − 2√3) = 4√3 − 4, the right side. The slope (√3 + 1)/(√3 − 1) is about 2.732/0.732 ≈ 3.73, and tan 75° ≈ 3.73 on a calculator.

Another way: (√3 + 1)/(√3 − 1) = (√3 + 1)²/2 = (4 + 2√3)/2 = 2 + √3. So the line is y − 2√3 = (2 + √3)(x − 2), the same line in a shorter form.

5. Find the equation of the line intersecting the x-axis at a distance of 3 units to the left of origin with slope −2.Tap to reveal

What we know: 3 units to the left of the origin on the x-axis is the point (−3, 0). The slope is −2.

What we need: The equation.

The plan: Point-slope form with (−3, 0), which is the same as y = m(x − d) with d = −3.

  1. y − 0 = −2(x − (−3)) = −2(x + 3).
  2. y = −2x − 6.
  3. 2x + y + 6 = 0.

2x + y + 6 = 0.

Check: (−3, 0): −6 + 0 + 6 = 0. The y-intercept is −6: from (−3, 0) to (0, −6) the line falls 6 for 3 across, slope −2.

A path that fails: taking the point as (3, 0). "To the left of the origin" means a negative x-coordinate.

6. Find the equation of the line intersecting the y-axis at a distance of 2 units above the origin and making an angle of 30° with positive direction of the x-axis.Tap to reveal

What we know: 2 units above the origin on the y-axis: the y-intercept c = 2. The inclination is 30°, so m = tan 30° = 1/√3.

What we need: The equation.

The plan: Slope-intercept form, then clear the fraction.

  1. y = (1/√3)x + 2.
  2. Multiply by √3: √3y = x + 2√3.
  3. x − √3y + 2√3 = 0.

x − √3y + 2√3 = 0.

Check: (0, 2): 0 − 2√3 + 2√3 = 0. The slope read back: solving for y gives y = x/√3 + 2, slope 1/√3 = tan 30°.

7. Find the equation of the line passing through the points (−1, 1) and (2, −4).Tap to reveal

What we know: Two points of the line.

What we need: The equation.

The plan: Two-point form: the slope first.

  1. Slope = (−4 − 1)/(2 − (−1)) = −5/3.
  2. y − 1 = (−5/3)(x + 1).
  3. Multiply by 3: 3y − 3 = −5x − 5.
  4. 5x + 3y + 2 = 0.

5x + 3y + 2 = 0.

Check: (−1, 1): −5 + 3 + 2 = 0. (2, −4): 10 − 12 + 2 = 0. Both given points pass.

8. The vertices of △PQR are P(2, 1), Q(−2, 3) and R(4, 5). Find equation of the median through the vertex R.Tap to reveal

What we know: A median joins a vertex to the mid-point of the opposite side. The side opposite R is PQ.

What we need: The line through R and the mid-point of PQ.

The plan: Mid-point of PQ, then the two-point form.

  1. Mid-point of PQ: ((2 + (−2))/2, (1 + 3)/2) = (0, 2).
  2. Slope from (0, 2) to R(4, 5): (5 − 2)/(4 − 0) = 3/4.
  3. y − 2 = (3/4)(x − 0), so 4y − 8 = 3x.
  4. 3x − 4y + 8 = 0.

3x − 4y + 8 = 0.

Check: R(4, 5): 12 − 20 + 8 = 0. (0, 2): 0 − 8 + 8 = 0. The median passes through both.

A path that fails: joining R to P or to Q. That gives a side of the triangle, not a median.

9. Find the equation of the line passing through (−3, 5) and perpendicular to the line through the points (2, 5) and (−3, 6).Tap to reveal

What we know: Perpendicular slopes multiply to −1.

What we need: The equation.

The plan: Slope of the given line, then the negative reciprocal, then the point-slope form.

  1. Slope through (2, 5) and (−3, 6): (6 − 5)/(−3 − 2) = 1/(−5) = −1/5.
  2. The perpendicular slope: −1/(−1/5) = 5.
  3. y − 5 = 5(x + 3) = 5x + 15.
  4. 5x − y + 20 = 0.

5x − y + 20 = 0.

Check: (−3, 5): −15 − 5 + 20 = 0. Slopes: 5 × (−1/5) = −1, so the lines are perpendicular.

10. A line perpendicular to the line segment joining the points (1, 0) and (2, 3) divides it in the ratio 1 : n. Find the equation of the line.Tap to reveal

What we know: The section formula (idea 3 of Before you start) and the perpendicular slope rule.

What we need: The equation, in terms of n.

The plan: Find the point of division, then the perpendicular slope, then the point-slope form.

  1. The point dividing (1, 0) to (2, 3) in the ratio 1 : n: ((1 × 2 + n × 1)/(1 + n), (1 × 3 + n × 0)/(1 + n)) = ((n + 2)/(n + 1), 3/(n + 1)).
  2. Slope of the segment: (3 − 0)/(2 − 1) = 3. So the required line has slope −1/3.
  3. y − 3/(n + 1) = (−1/3)[x − (n + 2)/(n + 1)].
  4. Multiply by 3(n + 1): 3(n + 1)y − 9 = −(n + 1)x + (n + 2).
  5. (n + 1)x + 3(n + 1)y = n + 2 + 9 = n + 11.

(1 + n)x + 3(1 + n)y = n + 11.

Check: Try n = 1: the line is 2x + 6y = 12 and the point of division is the mid-point (3/2, 3/2). And 2 × 3/2 + 6 × 3/2 = 3 + 9 = 12.

A path that fails: using the ratio n : 1 instead of 1 : n swaps the weights, and the line meets the segment at the wrong point.

11. Find the equation of a line that cuts off equal intercepts on the coordinate axes and passes through the point (2, 3).Tap to reveal

What we know: Equal intercepts: a = b. The intercept form is x/a + y/b = 1.

What we need: The equation.

The plan: Put b = a into the intercept form, then use the point to find a.

  1. x/a + y/a = 1. Multiply by a: x + y = a.
  2. (2, 3) is on the line, so 2 + 3 = a, that is, a = 5.
  3. The line is x + y = 5.

x + y = 5.

Check: It cuts the axes at (5, 0) and (0, 5): equal intercepts. And (2, 3) gives 2 + 3 = 5.

A loose end: the line 3x − 2y = 0 also passes through (2, 3), and both its intercepts are 0. The intercept form cannot describe it, and the key leaves it out; some exam papers accept it as a second answer.

12. Find equation of the line passing through the point (2, 2) and cutting off intercepts on the axes whose sum is 9.Tap to reveal

What we know: The intercept form x/a + y/b = 1, with a + b = 9, so b = 9 − a.

What we need: a and b, then the equation.

The plan: Put (2, 2) into the intercept form with b = 9 − a, and solve the quadratic.

  1. 2/a + 2/(9 − a) = 1.
  2. Multiply by a(9 − a): 2(9 − a) + 2a = a(9 − a), that is, 18 = 9a − a².
  3. a² − 9a + 18 = 0, so (a − 3)(a − 6) = 0: a = 3 or a = 6.
  4. a = 3, b = 6: x/3 + y/6 = 1, that is, 2x + y − 6 = 0.
  5. a = 6, b = 3: x/6 + y/3 = 1, that is, x + 2y − 6 = 0.

x + 2y − 6 = 0 or 2x + y − 6 = 0.

Check: (2, 2) is on both: 2 + 4 − 6 = 0 and 4 + 2 − 6 = 0. The intercepts are 3 and 6 each time, and 3 + 6 = 9.

A path that fails: stopping at one root of the quadratic. Both roots give a line through (2, 2), so there are two answers.

13. Find equation of the line through the point (0, 2) making an angle 2π/3 with the positive x-axis. Also, find the equation of line parallel to it and crossing the y-axis at a distance of 2 units below the origin.Tap to reveal

What we know: 2π/3 radians is 120°, so m = tan 120° = −√3. The point (0, 2) is on the y-axis, so the y-intercept is 2. A parallel line has the same slope.

What we need: Both equations.

The plan: Slope-intercept form for each line.

  1. m = tan 120° = −tan 60° = −√3.
  2. First line: y = −√3x + 2, that is, √3x + y − 2 = 0.
  3. The parallel line has slope −√3 and crosses the y-axis 2 units below the origin: c = −2.
  4. Second line: y = −√3x − 2, that is, √3x + y + 2 = 0.

√3x + y − 2 = 0 and √3x + y + 2 = 0.

Check: Both have slope −√3, so they are parallel. (0, 2) satisfies the first: 0 + 2 − 2 = 0. (0, −2) satisfies the second.

A path that fails: using tan(2π/3) = √3. The angle 120° is obtuse, so its tangent is negative.

14. The perpendicular from the origin to a line meets it at the point (−2, 9), find the equation of the line.Tap to reveal

What we know: The line through O(0, 0) and M(−2, 9) is perpendicular to the required line, and M is on the required line.

What we need: The equation.

The plan: Slope of OM, then the negative reciprocal, then the point-slope form through M.

  1. Slope of OM = (9 − 0)/(−2 − 0) = −9/2.
  2. The required line is perpendicular to OM, so its slope is 2/9.
  3. y − 9 = (2/9)(x + 2).
  4. Multiply by 9: 9y − 81 = 2x + 4, so 2x − 9y + 85 = 0.

2x − 9y + 85 = 0.

Check: (−2, 9): −4 − 81 + 85 = 0. (−9/2) × (2/9) = −1. The distance of the line from the origin is OM = √(4 + 81) = √85, which section 9.4 will let us check another way.

A path that fails: using the slope of OM, −9/2, for the line itself. OM is the perpendicular; the line turns through a right angle from it.

15. The length L (in centimetre) of a copper rod is a linear function of its Celsius temperature C. In an experiment, if L = 124.942 when C = 20 and L = 125.134 when C = 110, express L in terms of C.Tap to reveal

What we know: A linear function: the points (C, L) lie on a line. Two points: (20, 124.942) and (110, 125.134).

What we need: L in terms of C.

The plan: Two-point form with C in place of x and L in place of y.

  1. Slope = (125.134 − 124.942)/(110 − 20) = 0.192/90.
  2. L − 124.942 = (0.192/90)(C − 20).
  3. L = (0.192/90)(C − 20) + 124.942.

L = (0.192/90)(C − 20) + 124.942.

Check: C = 110 gives (0.192/90) × 90 + 124.942 = 0.192 + 124.942 = 125.134, as given. The slope 0.192/90 is about 0.00213 cm per degree: the rod grows about 0.2 cm for a rise of 100°, a small change, as metals expand only a little.

16. The owner of a milk store finds that he can sell 980 litres of milk each week at Rs 14/litre and 1220 litres of milk each week at Rs 16/litre. Assuming a linear relationship between selling price and demand, how many litres could he sell weekly at Rs 17/litre?Tap to reveal

What we know: A linear relationship: the points (price, litres) lie on a line. Two points: (14, 980) and (16, 1220).

What we need: The litres sold at Rs 17.

The plan: Two-point form with the price p in place of x and the litres q in place of y; then put p = 17.

  1. Slope = (1220 − 980)/(16 − 14) = 240/2 = 120 litres per rupee.
  2. q − 980 = 120(p − 14), so q = 120p − 700.
  3. At p = 17: q = 120 × 17 − 700 = 2040 − 700 = 1340.

1340 litres.

Check: Each extra rupee adds 120 litres: Rs 16 to Rs 17 adds 120 to 1220, giving 1340.

You may wonder why a higher price sells more milk. In real shops demand usually falls as the price rises. The book's numbers are made up to practise the two-point form, and the sum is about the line, not about shopping.

17. P(a, b) is the mid-point of a line segment between axes. Show that equation of the line is x/a + y/b = 2.Tap to reveal

What we know: The segment runs from a point A on the x-axis to a point B on the y-axis, and P(a, b) is its mid-point.

What we need: The equation of the line AB.

The plan: Find A and B from the mid-point, then use the intercept form.

  1. Let A = (p, 0) and B = (0, q). Their mid-point is (p/2, q/2).
  2. This is P(a, b), so p/2 = a and q/2 = b: p = 2a and q = 2b.
  3. The line has intercepts 2a and 2b: x/(2a) + y/(2b) = 1.
  4. Multiply by 2: x/a + y/b = 2.

x/a + y/b = 2, as required.

Check: P(a, b) itself is on the line: a/a + b/b = 1 + 1 = 2. A number example: P(1, 2) is the mid-point of (2, 0) and (0, 4), and the line through those two points is x/1 + y/2 = 2.

18. Point R(h, k) divides a line segment between the axes in the ratio 1 : 2. Find equation of the line.Tap to reveal

What we know: The segment runs from A(a, 0) on the x-axis to B(0, b) on the y-axis, and AR : RB = 1 : 2. The section formula gives R.

What we need: a and b in terms of h and k, then the equation.

The plan: Section formula, then the intercept form.

  1. R = ((1 × 0 + 2 × a)/3, (1 × b + 2 × 0)/3) = (2a/3, b/3).
  2. So h = 2a/3 and k = b/3: a = 3h/2 and b = 3k.
  3. Intercept form: x/(3h/2) + y/(3k) = 1, that is, 2x/(3h) + y/(3k) = 1.
  4. Multiply by 3hk: 2kx + hy = 3hk.

2kx + hy = 3kh.

Check: R(h, k): 2kh + hk = 3hk. A(3h/2, 0): 2k × 3h/2 = 3hk. B(0, 3k): h × 3k = 3hk. All three points pass.

A loose end: the question does not say which end comes first. Taking the y-axis end first (BR : RA = 1 : 2) gives the line kx + 2hy = 3hk instead. The key's answer measures from the x-axis end.

19. By using the concept of equation of a line, prove that the three points (3, 0), (−2, −2) and (8, 2) are collinear.Tap to reveal

What we know: Points are collinear when one line passes through all of them.

What we need: One equation satisfied by all three points.

The plan: Find the line through two of the points, then test the third.

  1. Slope through (3, 0) and (8, 2): (2 − 0)/(8 − 3) = 2/5.
  2. y − 0 = (2/5)(x − 3), so 5y = 2x − 6, that is, 2x − 5y − 6 = 0.
  3. Test (−2, −2): 2 × (−2) − 5 × (−2) − 6 = −4 + 10 − 6 = 0.
  4. The third point satisfies the equation, so it is on the same line.

All three points lie on 2x − 5y − 6 = 0, so they are collinear.

Check: By slopes: from (3, 0) to (−2, −2) the slope is (−2)/(−5) = 2/5, the same as from (3, 0) to (8, 2).

When you are stuck: Exercise 9.2

Turn words into facts: "to the left of the origin" is a negative x; "below the origin" is a negative y; "equal intercepts" is a = b.

Find the slope early: from an angle (m = tan θ), from two points, or from a perpendicular (−1/m).

Two unknown intercepts? Write x/a + y/b = 1 and use each given fact as one equation.

Check with a point: every point the question names must satisfy your final equation.

In one line

Read every condition as a point, a slope or an intercept, choose the matching form, and test the answer with a given point.

9.4Distance of a point from a line

Why we need it

A village is to be joined to a straight canal by the shortest possible pipe. How long must the pipe be? The shortest path from a point to a line is the perpendicular (idea 11 of Before you start). So the question becomes: how long is that perpendicular? This section finds it from the equation of the line, without drawing anything.

Distance of a point from a line

The distance of a point from a line is the length of the perpendicular drawn from the point to the line. Example: the point (5, 3) is at distance 3 from the x-axis, since the perpendicular from it meets the x-axis at (5, 0).

xyP(4, 4)Md = 16/53x + 4y = 12
The distance of P(4, 4) from the line 3x + 4y = 12 is the length of the perpendicular PM: 16/5 = 3.2 units.

Setting up the proof

Let L: Ax + By + C = 0 be a line, and let d be its distance from the point P(x₁, y₁). Draw the perpendicular PM from P to L, as in Fig 9.14. Suppose L meets the x-axis at Q and the y-axis at R. (This needs A, B and C all non-zero; the other cases come after the proof.)

Book Figure 9.14: The perpendicular PM from P(x₁, y₁) to the line L, which meets the x- and y-axes at Q and R (the book labels this figure only with its number).

First, find Q and R. Every point of the x-axis has y = 0; putting y = 0 into Ax + By + C = 0 gives Ax + C = 0, so x = −C/A. In the same way, x = 0 gives y = −C/B. So Q is (−C/A, 0) and R is (0, −C/B).

The idea: one area, two ways

Look at the triangle PQR. Take QR as its base. Then its height is PM, the perpendicular from P to the line QR. So

Now work out the area and QR from the coordinates, and put them into (1).

Step 1: the area from the coordinates

The triangle formula of section 9.1, with P(x₁, y₁), Q(−C/A, 0) and R(0, −C/B), gives

Take out the common factor C/(AB) from the three terms: (C/(AB)) × Ax₁ = Cx₁/B, (C/(AB)) × By₁ = Cy₁/A, and (C/(AB)) × C = C²/(AB). So

Step 2: the length QR

By the distance formula, QR² = (0 + C/A)² + (−C/B − 0)² = C²/A² + C²/B². Over the common bottom A²B², this is C²(B² + A²)/(A²B²). Take the square root:

Step 3: put them together

Put both into (1). The factor |C/(AB)| is on the top and on the bottom, so it cancels:

Distance of a point from a line

Read it as "d equals the size of A x one plus B y one plus C, over the square root of A squared plus B squared".

In words: put the point into the left side of the line's equation, take the size of the result, and divide by the square root of (the x number squared + the y number squared). The line must first be written with 0 on one side.

You may wonder about the lines the proof left out: lines through the origin and lines parallel to an axis. The formula holds for them too. Example: the vertical line x − 3 = 0 (A = 1, B = 0, C = −3) and the point (7, 2): d = |7 − 3|/√1 = 4, which is the gap from x = 3 to x = 7 that a ruler would show.

Example 9 (from the book)

Find the distance of the point (3, −5) from the line 3x − 4y − 26 = 0.

What we know: A = 3, B = −4 and C = −26, from the general equation Ax + By + C = 0. The point is (x₁, y₁) = (3, −5).

What we need: d.

The plan: Put the values into the distance formula.

  1. The top: |3 × 3 + (−4)(−5) − 26| = |9 + 20 − 26| = 3.
  2. The bottom: √(3² + (−4)²) = √(9 + 16) = √25 = 5.
  3. d = 3/5.

3/5 of a unit.

Check: The top is small, 3, so the point is close to the line: a point on the line would make the top 0. Moving the point to (3, −4.25) would put it on the line, since 9 + 17 − 26 = 0.

Examples of every kind

Worked example 42

Direct: find the distance of the point (1, 2) from the line 3x + 4y − 1 = 0.

What we know: A = 3, B = 4, C = −1; (x₁, y₁) = (1, 2).

What we need: d.

The plan: Use the formula.

  1. The top: |3 + 8 − 1| = 10.
  2. The bottom: √(9 + 16) = 5.
  3. d = 10/5 = 2.

2 units.

Check: The foot of the perpendicular from (1, 2) is (−1/5, 2/5). It is on the line, as 3 × (−1/5) + 4 × (2/5) − 1 = 0, and its distance from (1, 2) is √((6/5)² + (8/5)²) = √(100/25) = 2.

Worked example 43

Story: on a map of the countryside near Anand, Gujarat, drawn in kilometres, a straight highway runs along 5x + 12y = 32 and a farmhouse stands at (7, 3). How long is the shortest path from the farmhouse to the highway?

What we know: The highway in general form: 5x + 12y − 32 = 0, so A = 5, B = 12, C = −32.

What we need: The perpendicular distance.

The plan: Use the formula.

  1. The top: |5 × 7 + 12 × 3 − 32| = |35 + 36 − 32| = 39.
  2. The bottom: √(25 + 144) = √169 = 13.
  3. d = 39/13 = 3.

3 km.

Check: 5, 12 and 13 form a right-triangle set, as 25 + 144 = 169, so the bottom is the whole number 13. The top, 39, is 3 × 13, which makes the answer a whole number.

A path that fails: putting C = 32 instead of −32. The line must be written as 5x + 12y − 32 = 0 before reading C; the wrong sign gives |35 + 36 + 32|/13 = 103/13, which is not the distance.

Worked example 44

Picture: in the drawing at the start of this section, find the distance of P(4, 4) from the line 3x + 4y = 12, and compare it with the dashed segment PM.

What we know: A = 3, B = 4, C = −12. The drawing shows the foot M at about (2.08, 1.44).

What we need: d.

The plan: Use the formula, then measure PM from the coordinates of M.

  1. The top: |12 + 16 − 12| = 16.
  2. The bottom: 5.
  3. d = 16/5 = 3.2.
  4. From the coordinates: PM = √((4 − 2.08)² + (4 − 1.44)²) = √(3.6864 + 6.5536) = √10.24 = 3.2.

16/5 = 3.2 units, the length of the dashed segment PM.

Check: M lies on the line: 3 × 2.08 + 4 × 1.44 = 6.24 + 5.76 = 12.

Worked example 45

Reverse: find k so that the point (2, k) is at distance 3 from the line 3x − 4y + 5 = 0.

What we know: d = |6 − 4k + 5|/5 = |11 − 4k|/5.

What we need: k.

The plan: Set d = 3 and remove the absolute value as two cases.

  1. |11 − 4k| = 15.
  2. 11 − 4k = 15 gives 4k = −4, so k = −1.
  3. 11 − 4k = −15 gives 4k = 26, so k = 13/2.

k = −1 or k = 13/2.

Check: k = −1: |6 + 4 + 5|/5 = 3. k = 13/2: |6 − 26 + 5|/5 = 15/5 = 3. One point is on each side of the line, at the same distance.

Worked example 46

Exam: find the distance of the origin from the line through (3, 0) and (0, 4).

What we know: The intercepts are 3 and 4, so the line is x/3 + y/4 = 1.

What we need: The distance from (0, 0).

The plan: General form, then the formula.

  1. Multiply by 12: 4x + 3y = 12, that is, 4x + 3y − 12 = 0.
  2. d = |0 + 0 − 12|/√(16 + 9) = 12/5.

12/5 = 2.4 units.

Check: The axes and the line make a right triangle with legs 3 and 4 and hypotenuse 5. Its area is 6, and also ½ × 5 × d, so d = 12/5.

Common mistakes with the distance formula

Reading C before the equation has 0 on one side. Forgetting the absolute value, which can give a negative distance. Dividing by A² + B² instead of its square root.

9.4.1 Distance between two parallel lines

Two parallel lines stay the same distance apart everywhere, like the rails of a railway track. That distance is the length of any perpendicular from one line to the other.

Parallel lines have equal slopes, so two parallel lines can be written as y = mx + c₁ (1) and y = mx + c₂ (2). Line (1) meets the x-axis at A(−c₁/m, 0), as in Fig 9.15 (this needs m ≠ 0).

Book Figure 9.15: Two parallel lines y = mx + c₁ and y = mx + c₂; the first meets the x-axis at the point A (the book labels this figure only with its number).

The distance between the lines is the length of the perpendicular from A to line (2). Write (2) as mx − y + c₂ = 0 and use the point formula:

If m = 0 the lines are y = c₁ and y = c₂, and the formula gives |c₁ − c₂|, the gap between their heights, as it should.

If the lines are given in general form, Ax + By + C₁ = 0 and Ax + By + C₂ = 0, the formula becomes d = |C₁ − C₂|/√(A² + B²). The book leaves this for students to derive; here is the derivation. Suppose B ≠ 0. The point (0, −C₁/B) is on the first line. Its distance from the second line is |A × 0 + B(−C₁/B) + C₂|/√(A² + B²) = |C₂ − C₁|/√(A² + B²). (If B = 0, use the point (−C₁/A, 0) instead.)

Distance between parallel lines

Read the second as "d equals the size of C one minus C two, over the square root of A squared plus B squared".

Both lines must have the same A and B (or the same m) before you subtract the constants.

Example 10 (from the book)

Find the distance between the parallel lines 3x − 4y + 7 = 0 and 3x − 4y + 5 = 0.

What we know: A = 3, B = −4, C₁ = 7 and C₂ = 5. The A and B are the same in both lines.

What we need: d.

The plan: Use the general-form formula.

  1. The top: |7 − 5| = 2.
  2. The bottom: √(9 + 16) = 5.
  3. d = 2/5.

2/5 of a unit.

Check: Take the point (−1, 1) on the first line (−3 − 4 + 7 = 0). Its distance from the second line is |−3 − 4 + 5|/5 = 2/5.

Examples of every kind

Worked example 47

Direct: find the distance between 3x + 4y − 7 = 0 and 3x + 4y + 8 = 0.

What we know: A = 3, B = 4, C₁ = −7, C₂ = 8.

What we need: d.

The plan: Use the formula.

  1. |−7 − 8| = 15.
  2. √(9 + 16) = 5.
  3. d = 15/5 = 3.

3 units.

Check: The constants have opposite signs, so the lines lie on opposite sides of the origin: their distances from (0, 0) are 7/5 and 8/5, and 7/5 + 8/5 = 3.

Worked example 48

Story: on a town map drawn in kilometres, two straight parallel roads run along y = 2x + 3 and y = 2x − 2. How far apart are they?

What we know: m = 2, c₁ = 3, c₂ = −2.

What we need: d.

The plan: Use the slope form of the formula.

  1. |3 − (−2)| = 5.
  2. √(1 + 4) = √5.
  3. d = 5/√5 = √5 ≈ 2.24.

√5 km, about 2.24 km.

Check: The vertical gap between the roads is 5 km (from c₁ = 3 to c₂ = −2), but the roads are slanted, so the perpendicular gap is shorter: 2.24 is less than 5, as it must be.

Worked example 49

Picture: a square is drawn with two of its sides on the lines 3x + 4y = 0 and 3x + 4y = 20. Find the side and the area of the square.

What we know: The two sides are parallel, and the distance between them is the side of the square.

What we need: The side and the area.

The plan: Write both lines in general form, then use the formula.

  1. The lines: 3x + 4y + 0 = 0 and 3x + 4y − 20 = 0.
  2. d = |0 − (−20)|/5 = 20/5 = 4.
  3. Area = 4 × 4 = 16.

Side 4 units; area 16 square units.

Check: The first line passes through the origin. The second is at distance 20/5 = 4 from the origin, by the point formula, which agrees.

Worked example 50

Reverse: find the lines parallel to 3x − 4y + 7 = 0 at a distance of 2 from it.

What we know: A parallel line is 3x − 4y + C = 0, with the same A and B.

What we need: C.

The plan: Set |7 − C|/5 = 2 and solve both cases.

  1. |7 − C| = 10.
  2. 7 − C = 10 gives C = −3.
  3. 7 − C = −10 gives C = 17.

3x − 4y − 3 = 0 and 3x − 4y + 17 = 0.

Check: |7 − (−3)|/5 = 2 and |7 − 17|/5 = 2. There is one line on each side of the given line, as with the rails on either side of a centre line.

Worked example 51

Exam: find the distance between the lines 6x + 8y − 5 = 0 and 3x + 4y + 5 = 0.

What we know: The lines are parallel (the first is twice 3x + 4y, plus a constant), but their A and B differ.

What we need: d.

The plan: Make the A and B equal first: divide the first equation by 2.

  1. 3x + 4y − 5/2 = 0 and 3x + 4y + 5 = 0.
  2. d = |−5/2 − 5|/5 = (15/2)/5 = 3/2.

3/2 units.

Check: Multiply the second equation by 2 instead: 6x + 8y + 10 = 0. Then d = |−5 − 10|/√(36 + 64) = 15/10 = 3/2, the same.

A path that fails: subtracting the constants at once, |−5 − 5|/√(36 + 64) = 1. The formula needs the same A and B in both lines, and here they differ.

When you are stuck: a distance

From a point: write the line as Ax + By + C = 0, put the point in, take the size, divide by √(A² + B²).

Between parallel lines: first make the x and y numbers the same in both equations, then subtract the constants.

Looking for an unknown? An absolute value equal to a number gives two cases, and usually two answers.

Check: a point on the line must give distance 0.

Your turn

Find the distance of the point (−2, 3) from the line 5x − 12y + 7 = 0.Tap to reveal

What we know: A = 5, B = −12, C = 7.

The plan: Use the formula.

  1. The top: |−10 − 36 + 7| = |−39| = 39.
  2. The bottom: √(25 + 144) = 13.
  3. d = 39/13 = 3.

3 units.

Check: Without the absolute value the top would be −39, and a distance cannot be negative.

Find the distance between the parallel lines 4x − 3y + 1 = 0 and 8x − 6y − 3 = 0.Tap to reveal

What we know: Halve the second equation to make the x and y numbers match: 4x − 3y − 3/2 = 0.

The plan: Then use the formula.

  1. |1 − (−3/2)| = 5/2.
  2. √(16 + 9) = 5.
  3. d = (5/2)/5 = 1/2.

1/2 unit.

Check: Double the first equation instead: 8x − 6y + 2 = 0. Then |2 − (−3)|/√(64 + 36) = 5/10 = 1/2.

In one line

Distance from a point: |Ax₁ + By₁ + C|/√(A² + B²). Between parallel lines with the same A and B: |C₁ − C₂|/√(A² + B²).

Ex 9.3Exercise 9.3, solved in full

Every answer below agrees with the book's answer key. Questions 1 and 2 change the form of an equation; Questions 3 to 5 use the distance formulas of section 9.4; Questions 6 to 17 mix slopes, forms and distances.

1. Reduce the following equations into slope-intercept form and find their slopes and the y-intercepts. (i) x + 7y = 0, (ii) 6x + 3y − 5 = 0, (iii) y = 0.Tap to reveal

What we know: The slope-intercept form is y = mx + c, with slope m and y-intercept c.

What we need: Each equation as y = mx + c, with its m and c.

The plan: Solve each equation for y; read off the number in front of x and the number on its own.

  1. (i) 7y = −x, so y = (−1/7)x + 0. Slope −1/7, y-intercept 0.
  2. (ii) 3y = −6x + 5, so y = −2x + 5/3. Slope −2, y-intercept 5/3.
  3. (iii) y = 0 is y = 0 × x + 0. Slope 0, y-intercept 0.

(i) y = (−1/7)x + 0: m = −1/7, c = 0; (ii) y = −2x + 5/3: m = −2, c = 5/3; (iii) y = 0x + 0: m = 0, c = 0.

Check: (i) passes through the origin, as c = 0 says: x + 7 × 0 = 0 at x = 0. (ii) x = 0 gives 3y = 5, so y = 5/3. (iii) is the x-axis itself: flat, so slope 0, and it meets the y-axis at the origin.

A path that fails in (ii): reading the slope as 6, from 6x. The slope is the number in front of x only once y stands alone.

2. Reduce the following equations into intercept form and find their intercepts on the axes. (i) 3x + 2y − 12 = 0, (ii) 4x − 3y = 6, (iii) 3y + 2 = 0.Tap to reveal

What we know: The intercept form is x/a + y/b = 1, with x-intercept a and y-intercept b. The right side must be 1.

What we need: Each equation in intercept form, with its intercepts.

The plan: Move the constant to the right side, divide every term by it, and write each term as x over a number and y over a number.

  1. (i) 3x + 2y = 12. Divide by 12: x/4 + y/6 = 1. Intercepts 4 and 6.
  2. (ii) Divide 4x − 3y = 6 by 6: (2/3)x − (1/2)y = 1, that is, x/(3/2) + y/(−2) = 1. Intercepts 3/2 and −2.
  3. (iii) 3y = −2, so y = −2/3. This is a horizontal line: it meets the y-axis at (0, −2/3) and never meets the x-axis.

(i) x/4 + y/6 = 1: intercepts 4 and 6; (ii) x/(3/2) + y/(−2) = 1: intercepts 3/2 and −2; (iii) y = −2/3: y-intercept −2/3, no intercept on the x-axis.

Check: (i) (4, 0): 12 + 0 − 12 = 0. (ii) (3/2, 0): 6 − 0 = 6, and (0, −2): 0 + 6 = 6. (iii) cannot be put in intercept form, since it has no x-intercept: the form x/a + y/b = 1 needs both.

A path that fails in (ii): writing x/4 + y/(−3) = 6. The right side must be 1, and the numbers under x and y come from dividing, not from the coefficients.

3. Find the distance of the point (−1, 1) from the line 12(x + 6) = 5(y − 2).Tap to reveal

What we know: The distance formula d = |Ax₁ + By₁ + C|/√(A² + B²) needs the line in the form Ax + By + C = 0.

What we need: d.

The plan: Expand the brackets, bring every term to one side, then use the formula.

  1. 12x + 72 = 5y − 10.
  2. 12x − 5y + 82 = 0, so A = 12, B = −5, C = 82.
  3. The top: |12 × (−1) − 5 × 1 + 82| = |−12 − 5 + 82| = 65.
  4. The bottom: √(144 + 25) = √169 = 13.
  5. d = 65/13 = 5.

5 units.

Check: The numbers 5, 12, 13 make the bottom the whole number 13, and the top 65 is 5 × 13. A point on the line, such as (0, 82/5), gives top 0, as it must.

A path that fails: using 12 and 5 as A and B straight from 12(x + 6) = 5(y − 2) without moving the 5y across. Then B would have the wrong sign, and C would be missing.

4. Find the points on the x-axis, whose distances from the line x/3 + y/4 = 1 are 4 units.Tap to reveal

What we know: A point on the x-axis is (a, 0). The line in general form: multiply by 12 to get 4x + 3y − 12 = 0.

What we need: a.

The plan: Write the distance of (a, 0) from the line, set it equal to 4, and solve both cases of the absolute value.

  1. d = |4a + 0 − 12|/√(16 + 9) = |4a − 12|/5.
  2. |4a − 12|/5 = 4, so |4a − 12| = 20.
  3. 4a − 12 = 20 gives a = 8.
  4. 4a − 12 = −20 gives a = −2.

(−2, 0) and (8, 0).

Check: (8, 0): |32 − 12|/5 = 4. (−2, 0): |−8 − 12|/5 = 4. The line cuts the x-axis at (3, 0), and the two points sit on either side of it, at 5 units along the axis each way.

A path that fails: keeping only 4a − 12 = 20. The absolute value hides a second case, and with it the second point.

5. Find the distance between parallel lines (i) 15x + 8y − 34 = 0 and 15x + 8y + 31 = 0, (ii) l(x + y) + p = 0 and l(x + y) − r = 0.Tap to reveal

What we know: d = |C₁ − C₂|/√(A² + B²), with the same A and B in both lines.

What we need: d in each case.

The plan: Check that A and B match, then subtract the constants.

  1. (i) A = 15, B = 8, C₁ = −34, C₂ = 31. d = |−34 − 31|/√(225 + 64) = 65/√289 = 65/17.
  2. (ii) Expand: lx + ly + p = 0 and lx + ly − r = 0. So A = B = l, C₁ = p and C₂ = −r.
  3. d = |p − (−r)|/√(l² + l²) = |p + r|/(√2 |l|).

(i) 65/17 units; (ii) |p + r|/(√2|l|) units.

Check: (i) 17² = 289, so the bottom is exactly 17. (ii) The key writes (1/√2)(p + r)/l, the same thing when l, p and r are positive. With l = 1, p = 2, r = 3: the lines x + y + 2 = 0 and x + y − 3 = 0 are 5/√2 apart.

6. Find equation of the line parallel to the line 3x − 4y + 2 = 0 and passing through the point (−2, 3).Tap to reveal

What we know: A line parallel to 3x − 4y + 2 = 0 has the same A and B: 3x − 4y + C = 0 for some C.

What we need: C.

The plan: Put the point into 3x − 4y + C = 0.

  1. 3 × (−2) − 4 × 3 + C = 0.
  2. −6 − 12 + C = 0, so C = 18.
  3. The line is 3x − 4y + 18 = 0.

3x − 4y + 18 = 0.

Check: Both lines have slope 3/4 (solve each for y), so they are parallel. And (−2, 3) gives −6 − 12 + 18 = 0.

Another way: Point-slope form with the slope 3/4: y − 3 = (3/4)(x + 2), so 4y − 12 = 3x + 6, which is the same line.

7. Find equation of the line perpendicular to the line x − 7y + 5 = 0 and having x intercept 3.Tap to reveal

What we know: The given line has slope −A/B = 1/7. A perpendicular line has slope −7. The x-intercept 3 means the point (3, 0).

What we need: The equation.

The plan: Use y = m(x − d) with m = −7 and d = 3.

  1. y = −7(x − 3) = −7x + 21.
  2. So y + 7x = 21, that is, 7x + y − 21 = 0.

y + 7x = 21.

Check: (3, 0): 0 + 21 = 21. Slopes: (1/7) × (−7) = −1, so the lines are perpendicular.

A path that fails: taking the slope of x − 7y + 5 = 0 as 1 or as −7. Solve for y: 7y = x + 5, so y = x/7 + 5/7, and the slope is 1/7.

8. Find angles between the lines √3x + y = 1 and x + √3y = 1.Tap to reveal

What we know: tan θ = |(m₂ − m₁)/(1 + m₁m₂)| gives the acute angle; the other angle is 180° minus it.

What we need: Both angles between the lines.

The plan: Read both slopes, then use the formula.

  1. √3x + y = 1 gives y = −√3x + 1, so m₁ = −√3.
  2. x + √3y = 1 gives y = −x/√3 + 1/√3, so m₂ = −1/√3.
  3. The top: m₂ − m₁ = −1/√3 + √3 = (−1 + 3)/√3 = 2/√3.
  4. The bottom: 1 + (−√3)(−1/√3) = 1 + 1 = 2.
  5. tan θ = |(2/√3)/2| = 1/√3, so θ = 30°. The other angle is 180° − 30° = 150°.

30° and 150°.

Check: The inclinations: slope −√3 means 120° and slope −1/√3 means 150°. Their difference is 30°, as found.

9. The line through the points (h, 3) and (4, 1) intersects the line 7x − 9y − 19 = 0 at right angle. Find the value of h.Tap to reveal

What we know: Perpendicular slopes multiply to −1. The given line has slope 7/9.

What we need: h.

The plan: Write the slope through the two points in terms of h, set the product of slopes to −1, and solve.

  1. Slope through (h, 3) and (4, 1): (1 − 3)/(4 − h) = −2/(4 − h).
  2. [−2/(4 − h)] × (7/9) = −1, so 14 = 9(4 − h).
  3. 14 = 36 − 9h, so 9h = 22.

h = 22/9.

Check: 4 − 22/9 = 14/9, so the slope is −2/(14/9) = −9/7, and (−9/7) × (7/9) = −1.

A path that fails: setting the two slopes equal. Equal slopes mean parallel lines; "at right angle" needs the product −1.

10. Prove that the line through the point (x₁, y₁) and parallel to the line Ax + By + C = 0 is A(x − x₁) + B(y − y₁) = 0.Tap to reveal

What we know: Parallel lines have equal slopes. The line Ax + By + C = 0 has slope −A/B when B ≠ 0, and is vertical when B = 0.

What we need: The equation of the parallel line through (x₁, y₁).

The plan: Take the two cases B ≠ 0 and B = 0 separately; in the first, use the point-slope form.

  1. Case B ≠ 0: the required line has slope −A/B and passes through (x₁, y₁).
  2. Point-slope form: y − y₁ = (−A/B)(x − x₁).
  3. Multiply by B: B(y − y₁) = −A(x − x₁), so A(x − x₁) + B(y − y₁) = 0.
  4. Case B = 0 (then A ≠ 0): the given line is vertical, so the parallel line through (x₁, y₁) is x = x₁, that is, A(x − x₁) = 0. This is the same equation with B = 0.

A(x − x₁) + B(y − y₁) = 0, as required.

Check: The new equation has the same A and B as the given line, so it is parallel to it (or the same line). Putting x = x₁ and y = y₁ makes both brackets 0, so the point is on it. Example: the line through (−2, 3) parallel to 3x − 4y + 2 = 0 is 3(x + 2) − 4(y − 3) = 0, which is 3x − 4y + 18 = 0, the answer to Question 6.

11. Two lines passing through the point (2, 3) intersect each other at an angle of 60°. If slope of one line is 2, find equation of the other line.Tap to reveal

What we know: tan 60° = √3 = |(m − 2)/(1 + 2m)|, where m is the slope of the other line.

What we need: m, then the equation through (2, 3).

The plan: Remove the absolute value as two cases, solve each for m, then use the point-slope form and clear the fraction.

  1. Case 1: (m − 2)/(1 + 2m) = √3. Then m − 2 = √3 + 2√3m, so m(1 − 2√3) = 2 + √3, and m = (2 + √3)/(1 − 2√3).
  2. Its line: (1 − 2√3)(y − 3) = (2 + √3)(x − 2). Gathering terms: (2 + √3)x − (1 − 2√3)y = 2(2 + √3) − 3(1 − 2√3) = 1 + 8√3.
  3. Case 2: (m − 2)/(1 + 2m) = −√3. Then m − 2 = −√3 − 2√3m, so m(1 + 2√3) = 2 − √3, and m = (2 − √3)/(1 + 2√3).
  4. Its line: (1 + 2√3)(y − 3) = (2 − √3)(x − 2). Gathering terms: (2 − √3)x − (1 + 2√3)y = 2(2 − √3) − 3(1 + 2√3) = 1 − 8√3. Multiply by −1.

(√3 + 2)x + (2√3 − 1)y = 8√3 + 1, or (√3 − 2)x + (1 + 2√3)y = −1 + 8√3.

Check: (2, 3) in the first: 2(√3 + 2) + 3(2√3 − 1) = 2√3 + 4 + 6√3 − 3 = 8√3 + 1. In the second: 2(√3 − 2) + 3(1 + 2√3) = 8√3 − 1. By angles: slope 2 means about 63.4°, and the two answers have inclinations of about 123.4° and 3.4°, each 60° away.

A path that fails: keeping only the + √3 case. Two lines through (2, 3) make 60° with the given line, one on each side, so there are two answers.

12. Find the equation of the right bisector of the line segment joining the points (3, 4) and (−1, 2).Tap to reveal

What we know: The right bisector of a segment (also called its perpendicular bisector) is the line through its mid-point at right angles to it.

What we need: Its equation.

The plan: Mid-point, then the slope of the segment, then the perpendicular slope, then the point-slope form.

  1. Mid-point: ((3 + (−1))/2, (4 + 2)/2) = (1, 3).
  2. Slope of the segment: (2 − 4)/(−1 − 3) = (−2)/(−4) = 1/2.
  3. Perpendicular slope: −2.
  4. y − 3 = −2(x − 1), so y − 3 = −2x + 2, that is, 2x + y = 5.

2x + y = 5.

Check: Every point of the right bisector is equally far from the two ends. Take (0, 5) on it: its distance from (3, 4) is √(9 + 1) = √10, and from (−1, 2) it is √(1 + 9) = √10. Equal.

13. Find the coordinates of the foot of perpendicular from the point (−1, 3) to the line 3x − 4y − 16 = 0.Tap to reveal

What we know: The foot of the perpendicular from a point to a line is the point where the perpendicular from the point meets the line. It lies on the line and on the perpendicular.

What we need: The foot (x, y).

The plan: Find the perpendicular through (−1, 3), then solve it together with the given line.

  1. The given line has slope 3/4, so the perpendicular has slope −4/3.
  2. Through (−1, 3): y − 3 = (−4/3)(x + 1), so 3y − 9 = −4x − 4, that is, 4x + 3y = 5.
  3. Solve 4x + 3y = 5 and 3x − 4y = 16 together. Multiply the first by 4 and the second by 3: 16x + 12y = 20 and 9x − 12y = 48.
  4. Add: 25x = 68, so x = 68/25.
  5. Then 4y = 3x − 16 = 204/25 − 400/25 = −196/25, so y = −49/25.

(68/25, −49/25).

Check: It is on the given line: 3 × 68/25 − 4 × (−49/25) = 204/25 + 196/25 = 400/25 = 16. Its distance from (−1, 3) should be the distance of the point from the line, |−3 − 12 − 16|/5 = 31/5; and √((93/25)² + (124/25)²) = 155/25 = 31/5.

14. The perpendicular from the origin to the line y = mx + c meets it at the point (−1, 2). Find the values of m and c.Tap to reveal

What we know: The segment from O(0, 0) to (−1, 2) is perpendicular to the line, and (−1, 2) is on the line.

What we need: m and c.

The plan: Slope of the perpendicular, then m from the product rule, then c from the point.

  1. Slope from O to (−1, 2): 2/(−1) = −2.
  2. The line is perpendicular to it, so m × (−2) = −1, giving m = 1/2.
  3. (−1, 2) is on y = x/2 + c: 2 = −1/2 + c, so c = 5/2.

m = 1/2 and c = 5/2.

Check: The line y = x/2 + 5/2 passes through (−1, 2): −1/2 + 5/2 = 2. Its distance from the origin is |5/2|/√(1 + 1/4) = (5/2)/(√5/2) = √5, the same as the length √(1 + 4) = √5 of the perpendicular.

15. If p and q are the lengths of perpendiculars from the origin to the lines x cos θ − y sin θ = k cos 2θ and x sec θ + y cosec θ = k, respectively, prove that p² + 4q² = k².Tap to reveal

What we know: The distance of the origin from Ax + By + C = 0 is |C|/√(A² + B²). Also cos²θ + sin²θ = 1 and sin 2θ = 2 sin θ cos θ (Chapter 3). The second line needs sin θ ≠ 0 and cos θ ≠ 0.

What we need: p and q, then p² + 4q².

The plan: Write each line as Ax + By + C = 0, find each distance, then add.

  1. First line: x cos θ − y sin θ − k cos 2θ = 0. p = |k cos 2θ|/√(cos²θ + sin²θ) = |k cos 2θ|.
  2. Second line: multiply x sec θ + y cosec θ = k by sin θ cos θ. It becomes x sin θ + y cos θ − k sin θ cos θ = 0, the same line.
  3. q = |k sin θ cos θ|/√(sin²θ + cos²θ) = |k sin θ cos θ|. So 2q = |k × 2 sin θ cos θ| = |k sin 2θ|.
  4. p² + 4q² = k² cos² 2θ + k² sin² 2θ = k²(cos² 2θ + sin² 2θ) = k².

p² + 4q² = k², as required.

Check: Try θ = 30° and k = 2. p = |2 cos 60°| = 1. The second line is x sin 30° + y cos 30° = 2 sin 30° cos 30°, so q = 2 × (1/2) × (√3/2) = √3/2. Then p² + 4q² = 1 + 3 = 4 = k².

Another way: Use the second line as given: q = |k|/√(sec²θ + cosec²θ). Since sec²θ + cosec²θ = 1/cos²θ + 1/sin²θ = 1/(sin²θ cos²θ), the root is 1/|sin θ cos θ|, and again q = |k sin θ cos θ|.

16. In the triangle ABC with vertices A(2, 3), B(4, −1) and C(1, 2), find the equation and length of altitude from the vertex A.Tap to reveal

What we know: The altitude from A is the perpendicular from A to the opposite side BC. Its length is the distance of A from the line BC.

What we need: The equation of the altitude, and its length.

The plan: Slope of BC, the perpendicular slope, the line through A; then the line BC and the distance of A from it.

  1. Slope of BC: (2 − (−1))/(1 − 4) = 3/(−3) = −1.
  2. The altitude has slope 1 and passes through A(2, 3): y − 3 = x − 2, that is, y − x = 1.
  3. Line BC: through B(4, −1) with slope −1: y + 1 = −(x − 4), that is, x + y − 3 = 0.
  4. Length: |2 + 3 − 3|/√(1 + 1) = 2/√2 = √2.

The altitude is y − x = 1, and its length is √2 units.

Check: The altitude meets BC where y = x + 1 and x + y = 3: x = 1, y = 2. That is C itself, so the angle at C is a right angle. The length AC = √(1 + 1) = √2 agrees.

17. If p is the length of perpendicular from the origin to the line whose intercepts on the axes are a and b, then show that 1/p² = 1/a² + 1/b².Tap to reveal

What we know: The line is x/a + y/b = 1. The distance of the origin from Ax + By + C = 0 is |C|/√(A² + B²).

What we need: p, then 1/p².

The plan: Write the line in general form, find p, square it and turn it upside down.

  1. Multiply x/a + y/b = 1 by ab: bx + ay − ab = 0.
  2. p = |−ab|/√(b² + a²).
  3. p² = a²b²/(a² + b²).
  4. 1/p² = (a² + b²)/(a²b²) = a²/(a²b²) + b²/(a²b²) = 1/b² + 1/a².

1/p² = 1/a² + 1/b², as required.

Check: Take a = 3 and b = 4: the line 4x + 3y = 12 is 12/5 from the origin, by the exam example of section 9.4. And 1/(12/5)² = 25/144, while 1/9 + 1/16 = 16/144 + 9/144 = 25/144.

When you are stuck: Exercise 9.3

Change of form: solve for y to read the slope and y-intercept; divide by the constant to read the intercepts.

Distances: first write the line with 0 on one side; for parallel lines, match the x and y numbers first.

Feet and bisectors: build the perpendicular through the point, then solve two equations together.

Proofs with letters: test the result with numbers, such as θ = 30° or a = 3 and b = 4.

In one line

Exercise 9.3 is the chapter in one place: forms, slopes, distances and perpendiculars, each checked with a point or a number.

MiscMiscellaneous examples

These six examples from the book join the ideas of the chapter. They cover where lines meet, a distance measured along a given direction, and mirror images. They also cover an area cut off by lines, a segment cut in half by a point, and the path of a moving point. Each one is solved in full, with the reason for every step.

Three lines through one point

Concurrent lines

Three or more lines are concurrent when they all pass through one common point. Example: the lines x = 0, y = 0 and y = 2x all pass through the origin.

To test three lines, find the point where two of them meet, and check whether it lies on the third. Finding that point means solving two linear equations. Elimination (idea 9 of Before you start) always works. The book uses a shortcut for it, the cross-multiplication method, which earlier pages of this site have not taught. Here it is, with its reason.

The cross-multiplication method

Take the two equations a₁x + b₁y + c₁ = 0 and a₂x + b₂y + c₂ = 0, with a₁b₂ − a₂b₁ ≠ 0. Then

Why it is true: multiply the first equation by b₂ and the second by b₁, and subtract. The y terms cancel, leaving (a₁b₂ − a₂b₁)x + (c₁b₂ − c₂b₁) = 0. So x = (b₁c₂ − b₂c₁)/(a₁b₂ − a₂b₁), the first and last parts of the line above. Removing x in the same way gives y. The method is elimination done once, with letters, so that it works for every pair of equations.

See it on idea 9's pair, x + y − 5 = 0 and x − y − 1 = 0: b₁c₂ − b₂c₁ = 1 × (−1) − (−1)(−5) = −6; c₁a₂ − c₂a₁ = (−5)(1) − (−1)(1) = −4; a₁b₂ − a₂b₁ = −1 − 1 = −2. So x = −6/(−2) = 3 and y = −4/(−2) = 2, as found before by adding.

Example 11 (from the book)

If the lines 2x + y − 3 = 0, 5x + ky − 3 = 0 and 3x − y − 2 = 0 are concurrent, find the value of k.

What we know: Concurrent lines pass through one common point, so the point where any two of them meet lies on the third. Call the lines (1), (2) and (3) in the order given.

What we need: k.

The plan: Solve (1) and (3), which contain no k, by cross-multiplication; then put the point into (2).

  1. For (1) and (3): a₁ = 2, b₁ = 1, c₁ = −3 and a₂ = 3, b₂ = −1, c₂ = −2.
  2. b₁c₂ − b₂c₁ = −2 − 3 = −5; c₁a₂ − c₂a₁ = −9 + 4 = −5; a₁b₂ − a₂b₁ = −2 − 3 = −5.
  3. So x = −5/(−5) = 1 and y = −5/(−5) = 1: the point (1, 1).
  4. (1, 1) must satisfy (2): 5 × 1 + k × 1 − 3 = 0, so k = −2.

k = −2.

Check: With k = −2, line (2) is 5x − 2y − 3 = 0, and (1, 1) gives 5 − 2 − 3 = 0. All three lines pass through (1, 1).

Another way: Add (1) and (3): the y terms cancel, giving 5x − 5 = 0, so x = 1 and then y = 1. Elimination reaches the same point.

Worked example 52

Exam: are the lines x + y = 4, 2x − y = 2 and 3x + 2y = 10 concurrent?

What we know: Concurrent means one common point.

What we need: Yes or no, with the point if yes.

The plan: Solve the first two, then test the third.

  1. Add x + y = 4 and 2x − y = 2: 3x = 6, so x = 2, and then y = 2.
  2. Test (2, 2) in the third: 3 × 2 + 2 × 2 = 10. It fits.

Yes: all three pass through (2, 2).

Check: Had the third line been 3x + 2y = 9, the test would give 10 ≠ 9, and the three lines would make a small triangle instead of meeting at one point.

A distance measured along a given direction

Example 12 (from the book)

Find the distance of the line 4x − y = 0 from the point P(4, 1) measured along the line making an angle of 135° with the positive x-axis.

What we know: "Measured along a line" means: travel from P along a line of inclination 135° until you hit 4x − y = 0, and measure that path.

What we need: The length of that path.

The plan: Write the line through P with inclination 135°, find where it meets 4x − y = 0, then use the distance formula for two points.

  1. The slope of the second line: tan 135° = −1.
  2. Through P(4, 1): y − 1 = −1(x − 4), that is, x + y − 5 = 0.
  3. Solve with 4x − y = 0: adding gives 5x − 5 = 0, so x = 1 and y = 4. The lines meet at Q(1, 4), as in Fig 9.16.
  4. PQ = √((1 − 4)² + (4 − 1)²) = √(9 + 9) = √18 = 3√2.

3√2 units.

Check: The perpendicular distance of P from 4x − y = 0 is |16 − 1|/√17 ≈ 3.64, and 3√2 ≈ 4.24 is longer, as any slanting path must be.

A path that fails: answering with the perpendicular distance 15/√17. The question fixes the direction of travel, so the perpendicular is not the path asked for.

Book Figure 9.16: Example 12: the line through P(4, 1) making 135° with the x-axis meets the line 4x − y = 0 at (1, 4) (the book labels this figure only with its number).

The image of a point in a line

Image of a point in a line

If a line acts as a plane mirror, the image of a point P in it is the point Q such that the line is the perpendicular bisector of PQ. Example: the image of (3, 2) in the x-axis is (3, −2).

Two facts find the image, and both come from the word "perpendicular bisector": PQ is perpendicular to the mirror line, and the mid-point of PQ lies on the mirror line. Each fact gives one equation for the two unknown coordinates of Q.

xyP(4, 1)Q(1, 4)My = x
The image of P(4, 1) in the line y = x is Q(1, 4): the line is the perpendicular bisector of PQ, and M(2.5, 2.5) is the mid-point.

Worked example 53

Picture: in the drawing above, check that Q(1, 4) is the image of P(4, 1) in the line y = x.

What we know: The mirror line y = x has slope 1.

What we need: Both facts: PQ perpendicular to y = x, and the mid-point of PQ on y = x.

The plan: Test each fact.

  1. Slope of PQ: (4 − 1)/(1 − 4) = −1, and 1 × (−1) = −1. So PQ is perpendicular to the mirror.
  2. Mid-point M: ((4 + 1)/2, (1 + 4)/2) = (2.5, 2.5), and 2.5 = 2.5, so M is on y = x.

Both facts hold, so Q(1, 4) is the image of P(4, 1).

Check: A pattern to remember: the mirror y = x swaps the two coordinates, so (a, b) goes to (b, a).

Example 13 (from the book)

Assuming that straight lines work as the plane mirror for a point, find the image of the point (1, 2) in the line x − 3y + 4 = 0.

What we know: Let Q(h, k) be the image of P(1, 2). The line x − 3y + 4 = 0, with slope 1/3, is the perpendicular bisector of PQ (Fig 9.17).

What we need: h and k.

The plan: One equation from "perpendicular", one from "bisector"; then solve them together.

  1. Perpendicular: the slope of PQ is −1 divided by the slope of the line, −1/(1/3) = −3. So (k − 2)/(h − 1) = −3, that is, 3h + k = 5.
  2. Bisector: the mid-point ((h + 1)/2, (k + 2)/2) lies on the line: (h + 1)/2 − 3(k + 2)/2 + 4 = 0. Multiply by 2: h + 1 − 3k − 6 + 8 = 0, that is, h − 3k = −3.
  3. From 3h + k = 5, k = 5 − 3h. Then h − 15 + 9h = −3, so 10h = 12 and h = 6/5.
  4. k = 5 − 18/5 = 7/5.

The image is (6/5, 7/5).

Check: Mid-point of PQ: (11/10, 17/10), and 11/10 − 51/10 + 40/10 = 0, so it is on the mirror. Slope of PQ: (7/5 − 2)/(6/5 − 1) = (−3/5)/(1/5) = −3, perpendicular to 1/3.

Book Figure 9.17: Example 13: the line x − 3y + 4 = 0 as the perpendicular bisector of PQ, where Q(h, k) is the image of P(1, 2) (the book labels this figure only with its number).

The area of a triangle formed by three lines

Example 14 (from the book)

Show that the area of the triangle formed by the lines y = m₁x + c₁, y = m₂x + c₂ and x = 0 is (c₁ − c₂)²/(2|m₁ − m₂|).

What we know: Call the lines (1), (2) and (3). A line y = mx + c meets x = 0 (the y-axis) at (0, c). So two vertices are P(0, c₁) and Q(0, c₂) (Fig 9.18). The lines (1) and (2) are not parallel, so m₁ ≠ m₂.

What we need: The third vertex R, then the area.

The plan: Solve (1) and (2) for R; then use the triangle formula of section 9.1.

  1. Let R be (u, v). At R, m₁u + c₁ = m₂u + c₂, so (m₁ − m₂)u = c₂ − c₁ and u = (c₂ − c₁)/(m₁ − m₂).
  2. Then v = m₁(c₂ − c₁)/(m₁ − m₂) + c₁ = (m₁c₂ − m₂c₁)/(m₁ − m₂), after putting c₁ over the same bottom.
  3. Area = ½|0 × (c₂ − v) + 0 × (v − c₁) + u(c₁ − c₂)|. The first two terms are 0, as P and Q have x = 0.
  4. So area = ½ |(c₂ − c₁)/(m₁ − m₂)| × |c₁ − c₂| = (c₁ − c₂)²/(2|m₁ − m₂|).

Area = (c₁ − c₂)²/(2|m₁ − m₂|), as required.

Check: Numbers: y = x + 1, y = 2x − 1 and x = 0 give P(0, 1), Q(0, −1) and R(2, 3). The area is ½ × base PQ (2) × height (2, R's distance from the y-axis) = 2. The formula: (1 + 1)²/(2 × |1 − 2|) = 4/2 = 2.

Another way: Take PQ, on the y-axis, as the base: its length is |c₁ − c₂|. The height is R's distance from the y-axis, |u| = |c₂ − c₁|/|m₁ − m₂|. Half the base times the height gives the same area at once.

Book Figure 9.18: Example 14: the triangle formed by y = m₁x + c₁, y = m₂x + c₂ and x = 0, with vertices P(0, c₁) and Q(0, c₂) (the book labels this figure only with its number).

A segment bisected at a point

Example 15 (from the book)

A line is such that its segment between the lines 5x − y + 4 = 0 and 3x + 4y − 4 = 0 is bisected at the point (1, 5). Obtain its equation.

What we know: Call the given lines (1) and (2). Let the required line meet (1) at (α₁, β₁) and (2) at (α₂, β₂), as in Fig 9.19 (read α as "alpha" and β as "beta"). The mid-point of these two points is (1, 5).

What we need: One more point of the required line, then its equation.

The plan: Write each unknown point's β in terms of its α; use the mid-point to get two equations in α₁ and α₂; solve; then use the two-point form.

  1. On (1): 5α₁ − β₁ + 4 = 0, so β₁ = 5α₁ + 4. On (2): 3α₂ + 4β₂ − 4 = 0, so β₂ = (4 − 3α₂)/4.
  2. Mid-point (1, 5): (α₁ + α₂)/2 = 1, so α₁ + α₂ = 2; and (β₁ + β₂)/2 = 5, so 5α₁ + 4 + (4 − 3α₂)/4 = 10.
  3. Multiply the second by 4: 20α₁ + 16 + 4 − 3α₂ = 40, that is, 20α₁ − 3α₂ = 20.
  4. Put α₂ = 2 − α₁: 20α₁ − 6 + 3α₁ = 20, so 23α₁ = 26, α₁ = 26/23 and α₂ = 20/23.
  5. β₁ = 5 × 26/23 + 4 = 130/23 + 92/23 = 222/23.
  6. Slope from (1, 5) to (26/23, 222/23): (222/23 − 115/23)/(26/23 − 23/23) = (107/23)/(3/23) = 107/3.
  7. y − 5 = (107/3)(x − 1), so 3y − 15 = 107x − 107, that is, 107x − 3y − 92 = 0.

107x − 3y − 92 = 0.

Check: The other end: β₂ = (4 − 60/23)/4 = 8/23, and (222/23 + 8/23)/2 = 5, as needed. It is on the answer line too: 107 × 20/23 − 3 × 8/23 = 2116/23 = 92.

Book Figure 9.19: Example 15: the required line meets the two given lines at (α₁, β₁) and (α₂, β₂), and (1, 5) is the mid-point (the book labels this figure only with its number).

The path of a moving point

Example 16 (from the book)

Show that the path of a moving point such that its distances from two lines 3x − 2y = 5 and 3x + 2y = 5 are equal is a straight line.

What we know: Let (h, k) be any point of the path. Its distances from the two lines are |3h − 2k − 5|/√13 and |3h + 2k − 5|/√13.

What we need: The equation that (h, k) satisfies.

The plan: Set the distances equal; an equation |u| = |v| means u = v or u = −v.

  1. The bottoms are both √(9 + 4) = √13, so |3h − 2k − 5| = |3h + 2k − 5|.
  2. Case u = v: 3h − 2k − 5 = 3h + 2k − 5 gives 4k = 0, so k = 0.
  3. Case u = −v: 3h − 2k − 5 = −3h − 2k + 5 gives 6h = 10, so h = 5/3.
  4. So the point lies on y = 0 or on x = 5/3. Both are straight lines.

The path is made of straight lines: y = 0 or x = 5/3.

Check: The given lines meet at (5/3, 0), and both answer lines pass through it: they are the two lines that bisect the angles between the given lines. A test point: (7, 0) is at |21 − 5|/√13 = 16/√13 from each line.

The book says the path "is a straight line". Its own working gives two lines, y = 0 and x = 5/3, and a point on either one is equally far from the given lines. So the full path is this pair of straight lines.

When you are stuck: a miscellaneous problem

Name the unknowns: call an unknown point (h, k) or (α, β), and turn each fact in the question into one equation.

Meeting point: solve two equations together, by elimination or by cross-multiplication.

Mirror image: two facts, perpendicular and bisector, give two equations.

Equal distances: |u| = |v| splits into u = v or u = −v; expect two answers.

Your turn

Find the path of a point that is always equally far from the x-axis and the y-axis.Tap to reveal

What we know: The distance of (h, k) from the x-axis is |k|, and from the y-axis it is |h|.

The plan: Set |k| = |h| and split into two cases.

  1. k = h or k = −h.
  2. So the point lies on y = x or on y = −x.

The pair of lines y = x and y = −x.

Check: (3, 3) and (3, −3) are each 3 from both axes. The two lines bisect the right angles between the axes, as in Example 16 (from the book).

In one line

Turn every condition into an equation: a common point for concurrent lines, perpendicular and bisector for an image, a mid-point for a bisected segment, |u| = |v| for equal distances.

Misc ExMiscellaneous Exercise on Chapter 9, solved in full

Every answer below agrees with the book's answer key, and each proof is also checked with numbers. These questions use every part of the chapter, so each solution names the idea it uses.

1. Find the values of k for which the line (k − 3)x − (4 − k²)y + k² − 7k + 6 = 0 is (a) parallel to the x-axis, (b) parallel to the y-axis, (c) passing through the origin.Tap to reveal

What we know: In Ax + By + C = 0: the line is parallel to the x-axis when A = 0 (and B ≠ 0), parallel to the y-axis when B = 0 (and A ≠ 0), and through the origin when C = 0. Here A = k − 3, B = −(4 − k²), C = k² − 7k + 6.

What we need: k in each case.

The plan: Set the right coefficient to 0 and solve; check that the other coefficient is then not 0.

  1. (a) A = 0: k − 3 = 0, so k = 3. Then B = −(4 − 9) = 5, not 0. The line is 5y − 6 = 0, that is, y = 6/5.
  2. (b) B = 0: 4 − k² = 0, so k = 2 or k = −2. Then A = −1 or −5, not 0.
  3. (c) C = 0: k² − 7k + 6 = 0, that is, (k − 1)(k − 6) = 0, so k = 1 or k = 6.

(a) k = 3; (b) k = ±2; (c) k = 6 or k = 1.

Check: (b) With k = 2 the line is −x − 4 = 0, that is, x = −4: vertical. (c) With k = 1 the line is −2x − 3y = 0, and (0, 0) satisfies it.

2. Find the equations of the lines, which cut-off intercepts on the axes whose sum and product are 1 and −6, respectively.Tap to reveal

What we know: Intercepts a and b with a + b = 1 and ab = −6. Two numbers with a known sum and product are the roots of t² − (sum)t + (product) = 0.

What we need: a and b, then the lines.

The plan: Solve t² − t − 6 = 0, then use the intercept form for each order of the roots.

  1. t² − t − 6 = 0 gives (t − 3)(t + 2) = 0, so t = 3 or t = −2.
  2. a = 3, b = −2: x/3 + y/(−2) = 1. Multiply by 6: 2x − 3y = 6.
  3. a = −2, b = 3: x/(−2) + y/3 = 1. Multiply by 6: −3x + 2y = 6.

2x − 3y = 6 and −3x + 2y = 6.

Check: First line: (3, 0) and (0, −2) satisfy it, and 3 + (−2) = 1, 3 × (−2) = −6. Second line: (−2, 0) and (0, 3).

A path that fails: taking only a = 3 and b = −2. Swapping the two intercepts gives a different line with the same sum and product.

3. What are the points on the y-axis whose distance from the line x/3 + y/4 = 1 is 4 units?Tap to reveal

What we know: A point on the y-axis is (0, b). The line in general form: 4x + 3y − 12 = 0.

What we need: b.

The plan: Distance formula, set equal to 4, two cases.

  1. d = |0 + 3b − 12|/5 = |3b − 12|/5.
  2. |3b − 12| = 20.
  3. 3b − 12 = 20 gives b = 32/3; 3b − 12 = −20 gives b = −8/3.

(0, 32/3) and (0, −8/3).

Check: (0, 32/3): |32 − 12|/5 = 4. (0, −8/3): |−8 − 12|/5 = 4. The line cuts the y-axis at (0, 4), and the two points sit 20/3 above and below it.

This is Question 4 of Exercise 9.3 turned on its side: there the points were on the x-axis.

4. Find perpendicular distance from the origin to the line joining the points (cos θ, sin θ) and (cos φ, sin φ).Tap to reveal

What we know: Chapter 3 gives cos(A − B) = cos A cos B + sin A sin B, sin(A − B) = sin A cos B − cos A sin B, 1 − cos 2x = 2 sin²x and sin 2x = 2 sin x cos x. Read φ as "phi".

What we need: The distance of (0, 0) from the line.

The plan: Write the line through the two points as Ax + By + C = 0, then use d = |C|/√(A² + B²), and simplify with the identities.

  1. Two-point form, cleared of fractions: (y − sin θ)(cos φ − cos θ) = (sin φ − sin θ)(x − cos θ).
  2. Gather terms: (sin φ − sin θ)x + (cos θ − cos φ)y + C = 0, where C = sin θ cos φ − cos θ sin φ = sin(θ − φ).
  3. A² + B² = (sin φ − sin θ)² + (cos θ − cos φ)² = 2 − 2(cos θ cos φ + sin θ sin φ) = 2 − 2 cos(θ − φ) = 4 sin²((θ − φ)/2).
  4. d = |sin(θ − φ)|/(2|sin((θ − φ)/2)|) = |2 sin((θ − φ)/2) cos((θ − φ)/2)|/(2|sin((θ − φ)/2)|) = |cos((θ − φ)/2)|.

|cos((φ − θ)/2)|.

Check: Both points are on the circle of radius 1 around the origin, since cos² + sin² = 1. The perpendicular from the centre to a chord cuts the angle at the centre in half, so the distance is 1 × cos(half of φ − θ). With θ = 0° and φ = 60° the chord joins (1, 0) and (1/2, √3/2), and the distance is cos 30° = √3/2.

5. Find the equation of the line parallel to y-axis and drawn through the point of intersection of the lines x − 7y + 5 = 0 and 3x + y = 0.Tap to reveal

What we know: A line parallel to the y-axis has the equation x = (a number): the x-coordinate of any point on it.

What we need: The x-coordinate of the meeting point.

The plan: Solve the two equations together.

  1. From 3x + y = 0: y = −3x.
  2. Put it in x − 7y + 5 = 0: x + 21x + 5 = 0, so 22x = −5 and x = −5/22.
  3. (Then y = 15/22, though only x is needed.)

x = −5/22.

Check: (−5/22, 15/22) is on both lines: −5/22 − 105/22 + 110/22 = 0 and −15/22 + 15/22 = 0.

6. Find the equation of a line drawn perpendicular to the line x/4 + y/6 = 1 through the point, where it meets the y-axis.Tap to reveal

What we know: The line x/4 + y/6 = 1 meets the y-axis at (0, 6), its y-intercept. In general form it is 3x + 2y = 12, slope −3/2.

What we need: The perpendicular line through (0, 6).

The plan: Perpendicular slope, then the slope-intercept form.

  1. The perpendicular slope: 2/3.
  2. Through (0, 6): y = (2/3)x + 6.
  3. Multiply by 3: 3y = 2x + 18, that is, 2x − 3y + 18 = 0.

2x − 3y + 18 = 0.

Check: (0, 6): 0 − 18 + 18 = 0. And (−3/2) × (2/3) = −1, so the lines are perpendicular.

7. Find the area of the triangle formed by the lines y − x = 0, x + y = 0 and x − k = 0.Tap to reveal

What we know: The three lines are y = x, y = −x and x = k.

What we need: The vertices, then the area.

The plan: Find where each pair meets, then use half the base times the height.

  1. y = x and y = −x meet at (0, 0).
  2. y = x and x = k meet at (k, k); y = −x and x = k meet at (k, −k).
  3. The side from (k, k) to (k, −k) lies on x = k and has length 2|k|. The height from (0, 0) to the line x = k is |k|.
  4. Area = ½ × 2|k| × |k| = k².

k² square units.

Check: The triangle formula: ½|0 + k(−k − 0) + k(0 − k)| = ½|−2k²| = k². With k = 3 the corners are (0, 0), (3, 3), (3, −3), and the area is 9.

8. Find the value of p so that the three lines 3x + y − 2 = 0, px + 2y − 3 = 0 and 2x − y − 3 = 0 may intersect at one point.Tap to reveal

What we know: Three lines meeting at one point are concurrent: the meeting point of two of them lies on the third.

What we need: p.

The plan: Solve the two lines without p, then put the point into the line with p.

  1. Add 3x + y = 2 and 2x − y = 3: 5x = 5, so x = 1, and y = 2 − 3 = −1.
  2. (1, −1) must satisfy px + 2y − 3 = 0: p − 2 − 3 = 0, so p = 5.

p = 5.

Check: 5 × 1 + 2 × (−1) − 3 = 0, and (1, −1) is on the other two lines as well: 3 − 1 − 2 = 0 and 2 + 1 − 3 = 0.

9. If three lines whose equations are y = m₁x + c₁, y = m₂x + c₂ and y = m₃x + c₃ are concurrent, then show that m₁(c₂ − c₃) + m₂(c₃ − c₁) + m₃(c₁ − c₂) = 0.Tap to reveal

What we know: Concurrent: one point (x₀, y₀) lies on all three lines.

What we need: The given sum, shown to be 0.

The plan: Write each c in terms of x₀ and y₀, then work out the sum.

  1. From the three lines: c₁ = y₀ − m₁x₀, c₂ = y₀ − m₂x₀ and c₃ = y₀ − m₃x₀.
  2. So c₂ − c₃ = (m₃ − m₂)x₀, c₃ − c₁ = (m₁ − m₃)x₀ and c₁ − c₂ = (m₂ − m₁)x₀: the y₀ cancels each time.
  3. The sum is x₀[m₁(m₃ − m₂) + m₂(m₁ − m₃) + m₃(m₂ − m₁)].
  4. Inside the bracket: m₁m₃ − m₁m₂ + m₁m₂ − m₂m₃ + m₂m₃ − m₁m₃ = 0, as every product appears once with + and once with −.

m₁(c₂ − c₃) + m₂(c₃ − c₁) + m₃(c₁ − c₂) = 0, as required.

Check: Numbers: y = x, y = 2x − 1 and y = 3x − 2 all pass through (1, 1). Then 1 × (−1 + 2) + 2 × (−2 − 0) + 3 × (0 + 1) = 1 − 4 + 3 = 0.

Another way: The book's way: the first two lines meet where x = (c₂ − c₁)/(m₁ − m₂) and y = (m₁c₂ − m₂c₁)/(m₁ − m₂). Put this point into the third line, multiply by (m₁ − m₂), and gather the terms; the same sum appears, equal to 0.

10. Find the equation of the lines through the point (3, 2) which make an angle of 45° with the line x − 2y = 3.Tap to reveal

What we know: The given line has slope 1/2. tan 45° = 1 = |(m − 1/2)/(1 + m/2)|.

What we need: The slopes, then the lines.

The plan: Solve the two cases, as in Example 2 (from the book), then use the point-slope form.

  1. (m − 1/2)/(1 + m/2) = 1 gives m = 3; = −1 gives m = −1/3, exactly as in Example 2.
  2. m = 3: y − 2 = 3(x − 3), that is, 3x − y = 7.
  3. m = −1/3: y − 2 = (−1/3)(x − 3), so 3y − 6 = −x + 3, that is, x + 3y = 9.

3x − y = 7 and x + 3y = 9.

Check: (3, 2) is on both: 9 − 2 = 7 and 3 + 6 = 9. The two answers are perpendicular to each other, 3 × (−1/3) = −1, as two lines at 45° on either side of a line must be.

11. Find the equation of the line passing through the point of intersection of the lines 4x + 7y − 3 = 0 and 2x − 3y + 1 = 0 that has equal intercepts on the axes.Tap to reveal

What we know: Equal intercepts: x + y = a (from x/a + y/a = 1).

What we need: The meeting point, then a.

The plan: Solve the two lines, then put the point into x + y = a.

  1. Double the second: 4x − 6y + 2 = 0. Subtract it from the first: 13y − 5 = 0, so y = 5/13.
  2. Then 2x = 3y − 1 = 15/13 − 13/13 = 2/13, so x = 1/13.
  3. a = 1/13 + 5/13 = 6/13, so the line is x + y = 6/13.

13x + 13y = 6.

Check: Its intercepts are 6/13 and 6/13: equal. (1/13, 5/13) is on both given lines: 4/13 + 35/13 = 3 and 2/13 − 15/13 = −1.

A loose end, as in Question 11 of Exercise 9.2: the line y = 5x, through the origin and the meeting point, has both intercepts 0. The key leaves it out.

12. Show that the equation of the line passing through the origin and making an angle θ with the line y = mx + c is y/x = (m ± tan θ)/(1 ∓ m tan θ).Tap to reveal

What we know: A line through the origin is y = m′x for some slope m′ (read "m dash"), so y/x = m′. The angle formula: tan θ = |(m′ − m)/(1 + mm′)|. The signs ± and ∓ go together: top sign with top sign.

What we need: m′ in terms of m and θ.

The plan: Remove the absolute value as two cases and solve each for m′.

  1. Case (m′ − m)/(1 + mm′) = tan θ: m′ − m = tan θ + mm′ tan θ, so m′(1 − m tan θ) = m + tan θ, and m′ = (m + tan θ)/(1 − m tan θ).
  2. Case (m′ − m)/(1 + mm′) = −tan θ: m′ − m = −tan θ − mm′ tan θ, so m′(1 + m tan θ) = m − tan θ, and m′ = (m − tan θ)/(1 + m tan θ).
  3. Both cases together: y/x = m′ = (m ± tan θ)/(1 ∓ m tan θ).

y/x = (m ± tan θ)/(1 ∓ m tan θ), as required.

Check: With m = 0 (a horizontal line) the answer is y/x = ±tan θ: the two lines through the origin at angle θ above and below the horizontal, as expected. The constant c does not appear, because only the slope of y = mx + c affects angles.

13. In what ratio, the line joining (−1, 1) and (5, 7) is divided by the line x + y = 4?Tap to reveal

What we know: The section formula: the point dividing (x₁, y₁) to (x₂, y₂) in the ratio k : 1 is ((kx₂ + x₁)/(k + 1), (ky₂ + y₁)/(k + 1)).

What we need: k.

The plan: Write the dividing point in terms of k, put it into x + y = 4, and solve.

  1. The point: ((5k − 1)/(k + 1), (7k + 1)/(k + 1)).
  2. On x + y = 4: (5k − 1 + 7k + 1)/(k + 1) = 4, so 12k = 4k + 4.
  3. 8k = 4, so k = 1/2. The ratio k : 1 is 1/2 : 1, that is, 1 : 2.

1 : 2.

Check: With k = 1/2 the point is ((5/2 − 1)/(3/2), (7/2 + 1)/(3/2)) = (1, 3), and 1 + 3 = 4. Its distances: from (−1, 1) it is √8 = 2√2; from (5, 7) it is √32 = 4√2. And 2√2 : 4√2 = 1 : 2.

Another way: Put each end into x + y − 4: (−1, 1) gives −4 and (5, 7) gives 8. The opposite signs show the ends are on opposite sides of the line, and the ratio is 4 : 8 = 1 : 2.

14. Find the distance of the line 4x + 7y + 5 = 0 from the point (1, 2) along the line 2x − y = 0.Tap to reveal

What we know: The point (1, 2) lies on 2x − y = 0, since 2 − 2 = 0. So we travel from (1, 2) along this line until it meets 4x + 7y + 5 = 0.

What we need: The length of that path.

The plan: Find where the two lines meet, then the distance between two points.

  1. From 2x − y = 0: y = 2x.
  2. Put it into 4x + 7y + 5 = 0: 4x + 14x + 5 = 0, so x = −5/18 and y = −5/9.
  3. Distance from (1, 2) to (−5/18, −5/9): the differences are 1 + 5/18 = 23/18 and 2 + 5/9 = 23/9 = 2 × 23/18.
  4. So the distance is (23/18)√(1 + 4) = 23√5/18.

23√5/18 units.

Check: (−5/18, −5/9) is on both lines: 4 × (−5/18) + 7 × (−5/9) + 5 = −10/9 − 35/9 + 45/9 = 0, and 2 × (−5/18) − (−5/9) = 0.

A path that fails: the perpendicular distance |4 + 14 + 5|/√65. The question fixes the direction of travel, as in Example 12 (from the book).

15. Find the direction in which a straight line must be drawn through the point (−1, 2) so that its point of intersection with the line x + y = 4 may be at a distance of 3 units from this point.Tap to reveal

What we know: The meeting point (x, y) lies on x + y = 4, and it is 3 units from (−1, 2).

What we need: The meeting point, and so the direction of the line.

The plan: Put y = 4 − x into the distance condition, solve, then look at the line through (−1, 2) and each answer.

  1. Distance 3: (x + 1)² + (y − 2)² = 9. With y = 4 − x, y − 2 = 2 − x.
  2. (x + 1)² + (2 − x)² = 9: x² + 2x + 1 + 4 − 4x + x² = 9, so 2x² − 2x − 4 = 0, that is, x² − x − 2 = 0.
  3. (x − 2)(x + 1) = 0, so x = 2 (then y = 2) or x = −1 (then y = 5).
  4. The line through (−1, 2) and (2, 2) is horizontal; the line through (−1, 2) and (−1, 5) is vertical.

The line must be parallel to the x-axis or parallel to the y-axis.

Check: (2, 2): 2 + 2 = 4, and it is 3 units to the right of (−1, 2). (−1, 5): −1 + 5 = 4, and it is 3 units above. Both fit.

Another way: Move 3 units from (−1, 2) in a direction at angle θ to the x-axis: the horizontal part is 3 cos θ and the vertical part 3 sin θ, so the point is (−1 + 3 cos θ, 2 + 3 sin θ). On x + y = 4 this gives cos θ + sin θ = 1, whose solutions between 0° and 180° are θ = 0° and θ = 90°.

16. The hypotenuse of a right angled triangle has its ends at the points (1, 3) and (−4, 1). Find an equation of the legs (perpendicular sides) of the triangle which are parallel to the axes.Tap to reveal

What we know: The legs are parallel to the axes, so one leg is horizontal (y = a number) and the other vertical (x = a number). Each leg passes through one end of the hypotenuse.

What we need: The equations of the legs.

The plan: The right-angle corner is where a vertical line through one end meets a horizontal line through the other. There are two ways to choose.

  1. Vertical through (1, 3) and horizontal through (−4, 1): x = 1 and y = 1, meeting at (1, 1).
  2. Horizontal through (1, 3) and vertical through (−4, 1): y = 3 and x = −4, meeting at (−4, 3).
  3. Either way, a vertical leg and a horizontal leg meet at a right angle, as needed.

x = 1 and y = 1, or x = −4 and y = 3.

Check: With the corner (1, 1): the legs go from (1, 1) up to (1, 3) and across to (−4, 1), with lengths 2 and 5. Then 2² + 5² = 29, and the hypotenuse squared is (1 + 4)² + (3 − 1)² = 25 + 4 = 29, as Pythagoras' theorem needs.

17. Find the image of the point (3, 8) with respect to the line x + 3y = 7 assuming the line to be a plane mirror.Tap to reveal

What we know: Let Q(h, k) be the image of P(3, 8). The mirror line has slope −1/3, and it is the perpendicular bisector of PQ.

What we need: h and k.

The plan: As in Example 13 (from the book): one equation from "perpendicular", one from "bisector".

  1. Perpendicular: the slope of PQ is 3, since (−1/3) × 3 = −1. So (k − 8)/(h − 3) = 3, that is, 3h − k = 1.
  2. Bisector: the mid-point ((h + 3)/2, (k + 8)/2) is on x + 3y = 7: (h + 3)/2 + 3(k + 8)/2 = 7, so h + 3 + 3k + 24 = 14, that is, h + 3k = −13.
  3. From the first, k = 3h − 1. Then h + 9h − 3 = −13, so 10h = −10 and h = −1.
  4. k = −3 − 1 = −4.

(−1, −4).

Check: Mid-point of (3, 8) and (−1, −4): (1, 2), and 1 + 6 = 7, so it is on the mirror. Slope of PQ: (−4 − 8)/(−1 − 3) = 3.

18. If the lines y = 3x + 1 and 2y = x + 3 are equally inclined to the line y = mx + 4, find the value of m.Tap to reveal

What we know: The slopes are 3 and 1/2. Equally inclined means the line y = mx + 4 makes angles of equal size with the two lines: |(m − 3)/(1 + 3m)| = |(m − 1/2)/(1 + m/2)|.

What we need: m.

The plan: Write the right side as (2m − 1)/(2 + m), then take the two cases of equal sizes.

  1. Case (m − 3)/(1 + 3m) = (2m − 1)/(2 + m): (m − 3)(m + 2) = (2m − 1)(3m + 1), that is, m² − m − 6 = 6m² − m − 1. So 5m² = −5: no real m.
  2. Case (m − 3)/(1 + 3m) = −(2m − 1)/(2 + m): m² − m − 6 = −6m² + m + 1, so 7m² − 2m − 7 = 0.
  3. m = [2 ± √(4 + 196)]/14 = (2 ± 10√2)/14 = (1 ± 5√2)/7.

m = (1 ± 5√2)/7.

Check: The two given lines meet at 45°, since |(1/2 − 3)/(1 + 3/2)| = 1. A line equally inclined to both bisects an angle between them. With m = (1 + 5√2)/7 ≈ 1.153, the angle with each line is 22.5°, as tan 22.5° = √2 − 1 ≈ 0.414. With m = (1 − 5√2)/7, it is 67.5°, half of the other angle, 135°.

19. If sum of the perpendicular distances of a variable point P(x, y) from the lines x + y − 5 = 0 and 3x − 2y + 7 = 0 is always 10, show that P must move on a line.Tap to reveal

What we know: The distances are |x + y − 5|/√2 and |3x − 2y + 7|/√13.

What we need: An equation in x and y of the first degree, which is a line.

The plan: Write the condition; on one side of each line the signs inside the absolute values stay fixed, so the absolute values can be removed.

  1. |x + y − 5|/√2 + |3x − 2y + 7|/√13 = 10.
  2. Where both expressions are positive: (x + y − 5)/√2 + (3x − 2y + 7)/√13 = 10.
  3. Multiply by √26 = √2 × √13: √13(x + y − 5) + √2(3x − 2y + 7) = 10√26.
  4. (√13 + 3√2)x + (√13 − 2√2)y + 7√2 − 5√13 − 10√26 = 0: an equation of the form Ax + By + C = 0.

P lies on the line (√13 + 3√2)x + (√13 − 2√2)y + 7√2 − 5√13 − 10√26 = 0, so it moves on a line.

Check: A and B are not both zero (√13 + 3√2 is positive), so the equation is a genuine line. Every point of it in the region where both expressions are positive has distances adding up to 10.

If P crosses one of the two given lines, one sign flips and the equation changes to that of another line. So in each region between the given lines, P moves along part of a straight line.

20. Find equation of the line which is equidistant from parallel lines 9x + 6y − 7 = 0 and 3x + 2y + 6 = 0.Tap to reveal

What we know: The required line is parallel to both and halfway between them. To compare the lines, their x and y numbers must match.

What we need: The equation.

The plan: Multiply the second line by 3, then take the constant halfway between the two constants.

  1. 3 × (3x + 2y + 6) = 9x + 6y + 18. So the lines are 9x + 6y − 7 = 0 and 9x + 6y + 18 = 0.
  2. The line halfway between is 9x + 6y + C = 0, with C equally far from −7 and 18: C = (−7 + 18)/2 = 11/2.
  3. 9x + 6y + 11/2 = 0. Multiply by 2: 18x + 12y + 11 = 0.

18x + 12y + 11 = 0.

Check: Its distances from the two lines: |−7 − 11/2|/√117 and |18 − 11/2|/√117, and both tops are 25/2. Equal.

A path that fails: averaging −7 and 6 straight from the given equations. Their x and y numbers differ (9, 6 and 3, 2), so the constants cannot be compared until the equations are matched.

21. A ray of light passing through the point (1, 2) reflects on the x-axis at point A and the reflected ray passes through the point (5, 3). Find the coordinates of A.Tap to reveal

What we know: A mirror makes the angle of incidence equal to the angle of reflection. Then the reflected ray, run backwards, passes through the image of (1, 2) in the mirror: (1, −2).

What we need: A = (a, 0).

The plan: Find the line through (1, −2) and (5, 3); A is where it meets the x-axis.

  1. Slope through (1, −2) and (5, 3): (3 + 2)/(5 − 1) = 5/4.
  2. y + 2 = (5/4)(x − 1).
  3. On the x-axis y = 0: 2 = (5/4)(x − 1), so x − 1 = 8/5 and x = 13/5.

A = (13/5, 0).

Check: Equal angles: the incoming ray from (1, 2) to A falls with slope −2/(8/5) = −5/4, and the outgoing ray from A to (5, 3) rises with slope 3/(12/5) = 5/4. Equal steepness, opposite directions: the angles with the mirror are equal.

Another way: Use the equal angles directly: 3/(5 − a) = 2/(a − 1), so 3a − 3 = 10 − 2a, 5a = 13 and a = 13/5.

22. Prove that the product of the lengths of the perpendiculars drawn from the points (√(a² − b²), 0) and (−√(a² − b²), 0) to the line (x/a) cos θ + (y/b) sin θ = 1 is b².Tap to reveal

What we know: Write c = √(a² − b²) (this needs a² > b²). The line is (cos θ/a)x + (sin θ/b)y − 1 = 0. Also sin²θ + cos²θ = 1.

What we need: The product of the two distances.

The plan: Write both distances, multiply, and simplify the top and the bottom.

  1. d₁ = |c cos θ/a − 1|/√(cos²θ/a² + sin²θ/b²). In the same way d₂ = |−c cos θ/a − 1| over the same root, which is |c cos θ/a + 1| over the same root.
  2. d₁d₂ = |c² cos²θ/a² − 1|/(cos²θ/a² + sin²θ/b²), since (u − 1)(u + 1) = u² − 1.
  3. The top: c² cos²θ/a² − 1 = (a² − b²)cos²θ/a² − 1 = cos²θ − b² cos²θ/a² − 1 = −[sin²θ + b² cos²θ/a²].
  4. Take b² out: sin²θ + b² cos²θ/a² = b²(sin²θ/b² + cos²θ/a²), which is b² times the bottom.
  5. So d₁d₂ = b².

d₁d₂ = b², as required.

Check: Numbers: a = 5, b = 3, θ = 0°. Then c = 4, the line is x/5 = 1, that is, x = 5, and the points (4, 0) and (−4, 0) are at distances 1 and 9 from it. 1 × 9 = 9 = b².

23. A person standing at the junction (crossing) of two straight paths represented by the equations 2x − 3y + 4 = 0 and 3x + 4y − 5 = 0 wants to reach the path whose equation is 6x − 7y + 8 = 0 in the least time. Find equation of the path that he should follow.Tap to reveal

What we know: The shortest way from a point to a line is the perpendicular (idea 11 of Before you start). At a steady speed, the shortest way takes the least time.

What we need: The junction, then the perpendicular from it to 6x − 7y + 8 = 0.

The plan: Solve the two path equations, then write the line through the junction with the perpendicular slope.

  1. Junction: 2x − 3y = −4 and 3x + 4y = 5. Multiply by 4 and by 3: 8x − 12y = −16 and 9x + 12y = 15. Add: 17x = −1, so x = −1/17.
  2. Then 3y = 2x + 4 = −2/17 + 68/17 = 66/17, so y = 22/17. The junction is (−1/17, 22/17).
  3. The path 6x − 7y + 8 = 0 has slope 6/7, so the perpendicular has slope −7/6.
  4. y − 22/17 = (−7/6)(x + 1/17). Multiply by 102: 102y − 132 = −119x − 7, so 119x + 102y = 125.

119x + 102y = 125.

Check: The junction is on it: 119 × (−1/17) + 102 × 22/17 = −7 + 132 = 125. Its slope is −119/102 = −7/6, and (6/7) × (−7/6) = −1.

When you are stuck: the Miscellaneous Exercise

Find the idea first: a meeting point, a distance, an angle, an image or a ratio. Each has its own tool in this chapter.

Unknown points: call them (h, k) or (a, 0), and turn each condition into one equation.

Absolute values: split into two cases and keep every answer that works.

Proofs with letters: check the result with small numbers before trusting it.

In one line

Every question here is a few chapter tools in a row: name the unknowns, turn each condition into an equation, and check the answer in the question.

PracticeMixed practice

These problems mix the ideas of the whole chapter. Three of them have no answer of the kind first expected, and one shows a path that fails; that is part of the practice. Try each one before you open it.

A. Find the slope of the line through (2, 5) and (2, −3).Tap to reveal

What we know: Slope = (y₂ − y₁)/(x₂ − x₁).

The plan: Substitute, and look at the bottom first.

  1. The bottom is 2 − 2 = 0.
  2. Division by 0 has no meaning, so the slope is not defined.
  3. Both points have x = 2: the line is vertical, x = 2.

The slope is not defined (a dead end): the line is the vertical line x = 2.

Check: Every vertical line behaves so: its inclination is 90°, and tan 90° is not defined.

B. Story: one winter day in Shimla the temperature falls steadily from 18°C at 2 pm to 6°C at 8 pm. Treating the fall as a straight line, find the temperature at 5 pm and the time it reaches 0°C.Tap to reveal

What we know: Two points (time t in hours on the 24-hour clock, temperature T): (14, 18) and (20, 6).

The plan: Slope, then the point-slope form.

  1. Slope = (6 − 18)/(20 − 14) = −12/6 = −2°C per hour.
  2. T − 18 = −2(t − 14).
  3. At 5 pm, t = 17: T = 18 − 6 = 12°C.
  4. T = 0 when 2(t − 14) = 18, so t = 23, that is, 11 pm.

12°C at 5 pm; 0°C at 11 pm.

Check: From 2 pm to 11 pm is 9 hours, and 9 × 2 = 18 degrees, the whole fall from 18°C to 0°C. A loose end: real night temperatures level off, so a straight line is a model for a few hours only.

C. Are the lines 2x + 3y = 6 and 4x + 6y = 12 parallel?Tap to reveal

What we know: Parallel lines have equal slopes and no common point.

The plan: Compare the slopes, then test a point.

  1. Both slopes are −2/3.
  2. The second equation is twice the first, so every point of one line satisfies the other. For example, (3, 0) is on both.

They are not two parallel lines: they are the same line (a dead end).

Check: Two equations name one line when one is a non-zero multiple of the other, as here.

D. A student finds the angle between y = 2x and y = −x/2 with tan θ = |(m₂ − m₁)/(1 + m₁m₂)| and gets stuck. Why, and what is the angle?Tap to reveal

What we know: m₁ = 2 and m₂ = −1/2.

The plan: Work out the bottom of the formula.

  1. 1 + m₁m₂ = 1 + 2 × (−1/2) = 0, so the formula divides by zero.
  2. But m₁m₂ = −1 is the test for perpendicular lines.

The lines are perpendicular: the angle is 90° (a path that fails: the formula cannot be used when 1 + m₁m₂ = 0).

Check: tan 90° is not defined, which is exactly what the zero bottom is saying.

E. Find the distance between the lines y = 3x + 2 and y = 3x − 8.Tap to reveal

What we know: Parallel lines y = mx + c₁ and y = mx + c₂ are |c₁ − c₂|/√(1 + m²) apart.

The plan: Substitute.

  1. |2 − (−8)| = 10.
  2. √(1 + 9) = √10.
  3. d = 10/√10 = √10.

√10 units, about 3.16.

Check: The vertical gap is 10, but the lines are steep, so the perpendicular gap is much smaller.

F. Find the equation of the line through (1, 2) perpendicular to the line joining (3, 0) and (0, 3).Tap to reveal

What we know: Perpendicular slopes multiply to −1.

The plan: Slope of the join, then the perpendicular slope, then the point-slope form.

  1. Slope of the join: (3 − 0)/(0 − 3) = −1.
  2. Perpendicular slope: 1.
  3. y − 2 = x − 1, that is, x − y + 1 = 0.

x − y + 1 = 0.

Check: (1, 2): 1 − 2 + 1 = 0, and 1 × (−1) = −1.

G. Find the point of the line y = x nearest to (5, 1), and the least distance.Tap to reveal

What we know: The nearest point is the foot of the perpendicular.

The plan: The perpendicular through (5, 1), then where it meets y = x.

  1. The perpendicular to y = x has slope −1: y − 1 = −(x − 5), that is, x + y = 6.
  2. With y = x: 2x = 6, so the foot is (3, 3).
  3. Least distance: √((5 − 3)² + (1 − 3)²) = √8 = 2√2.

(3, 3), at a distance of 2√2.

Check: The formula: |5 − 1|/√2 = 4/√2 = 2√2, the same.

H. Show that the lines x + 2y = 4, 2x − y = 3 and x − 3y = −1 are concurrent.Tap to reveal

What we know: Concurrent means one common point.

The plan: Solve the first two, then test the third.

  1. From 2x − y = 3: y = 2x − 3.
  2. Then x + 4x − 6 = 4, so x = 2 and y = 1.
  3. Third line: 2 − 3 = −1. It fits.

All three pass through (2, 1), so they are concurrent.

Check: (2, 1) in each: 2 + 2 = 4; 4 − 1 = 3; 2 − 3 = −1.

I. The triangle ABC has A(0, 0), B(6, 0) and C(2, 4). Find its area from the length of BC and the distance of A from the line BC.Tap to reveal

What we know: Area = ½ × base × height, with base BC and height the distance of A from BC.

The plan: The line BC, its length, and the distance of A from it.

  1. Slope of BC: 4/(2 − 6) = −1, so BC is y = −(x − 6), that is, x + y − 6 = 0.
  2. BC = √(16 + 16) = 4√2.
  3. Distance of A: |0 + 0 − 6|/√2 = 3√2.
  4. Area = ½ × 4√2 × 3√2 = 12.

12 square units.

Check: With base AB = 6 on the x-axis and height 4 (C's y-coordinate): ½ × 6 × 4 = 12.

J. Find the x-intercept of the line y = 5.Tap to reveal

What we know: The x-intercept is where a line meets the x-axis, where y = 0.

The plan: Put y = 0.

  1. The equation says y = 5 at every point.
  2. So y = 0 never happens: the line never meets the x-axis.

There is no x-intercept (a dead end): y = 5 is parallel to the x-axis.

Check: This is why a horizontal line cannot be written in intercept form, as in Question 2 (iii) of Exercise 9.3.

When you are stuck: a mixed problem

Draw a rough sketch: it shows at once a vertical line, a horizontal line or a right angle.

Name the tool: slope, form, angle, distance, meeting point or image.

Watch for zero bottoms: they signal a vertical line (slope) or a right angle (angle formula), not a mistake.

Check with a point of the question in your final answer.

In one line

Most line problems need only slope, a form of the equation, and the distance formula; zero bottoms and absolute values are where the surprises hide.

RecapSummary

The book's summary, point by point:

  • The slope m of a non-vertical line through (x₁, y₁) and (x₂, y₂) is m = (y₂ − y₁)/(x₂ − x₁) = (y₁ − y₂)/(x₁ − x₂), with x₁ ≠ x₂.
  • If a line makes an angle α with the positive direction of the x-axis, its slope is m = tan α, with α ≠ 90°.
  • The slope of a horizontal line is zero, and the slope of a vertical line is not defined.
  • An acute angle θ between lines L₁ and L₂ with slopes m₁ and m₂ is given by tan θ = |(m₂ − m₁)/(1 + m₁m₂)|, with 1 + m₁m₂ ≠ 0.
  • Two lines are parallel if and only if their slopes are equal.
  • Two lines are perpendicular if and only if the product of their slopes is −1.
  • Three points A, B and C are collinear if and only if the slope of AB equals the slope of BC.
  • The horizontal line at distance a from the x-axis is y = a or y = −a; the vertical line at distance b from the y-axis is x = b or x = −b.
  • The point (x, y) lies on the line with slope m through the fixed point (x₀, y₀) if and only if y − y₀ = m(x − x₀).
  • The line through (x₁, y₁) and (x₂, y₂) is y − y₁ = [(y₂ − y₁)/(x₂ − x₁)](x − x₁).
  • The point (x, y) lies on the line with slope m and y-intercept c if and only if y = mx + c; with slope m and x-intercept d, the line is y = m(x − d).
  • The line making intercepts a and b on the x- and y-axes is x/a + y/b = 1.
  • Any equation Ax + By + C = 0, with A and B not both zero, is the general equation of a line.
  • The perpendicular distance of the line Ax + By + C = 0 from the point (x₁, y₁) is d = |Ax₁ + By₁ + C|/√(A² + B²).
  • The distance between the parallel lines Ax + By + C₁ = 0 and Ax + By + C₂ = 0 is d = |C₁ − C₂|/√(A² + B²).

The whole chapter on one page

IdeaFormula or ruleExample
Slope from two points(1, 1), (5, 4): m = 3/4
Slope from the inclinationθ = 135°: m = −1
Parallel / perpendicularm₁ = m₂ / m₁m₂ = −1slopes 3/4 and −4/3 are perpendicular
Acute angle between linesslopes 1 and 3: tan θ = 1/2
Point-slope form(2, 5), m = 3: 3x − y − 1 = 0
Two-point form(1, −1), (3, 5): −3x + y + 4 = 0
Slope-intercept formy = mx + c, or y = m(x − d)m = −3, c = 5: y = −3x + 5
Intercept forma = −3, b = 2: 2x − 3y + 6 = 0
General equationAx + By + C = 0; m = −A/B4x + y + 5 = 0: m = −4
Distance from a point(3, −5) from 3x − 4y − 26 = 0: 3/5
Distance between parallel lines3x − 4y + 7 = 0 and 3x − 4y + 5 = 0: 2/5

How to choose the method

  1. A slope is asked? Use two points or the inclination; a vertical line has none.
  2. Parallel or perpendicular? Compare the slopes: equal, or a product of −1.
  3. An equation is asked? Match what you know to a form: point and slope, two points, slope and intercept, or both intercepts.
  4. An equation is given? Solve for y to read the slope; put x = 0 and y = 0 to read the intercepts.
  5. A distance? From a point, |Ax₁ + By₁ + C|/√(A² + B²); between parallel lines, match A and B, then |C₁ − C₂|/√(A² + B²).
  6. A meeting point, an image or a foot? Turn each condition into an equation and solve them together.

The whole chapter in one line

A line is fixed by its slope and one point; every form of its equation says this in a different way, and the distance formula measures how far a point is from it.

WordsWords to know

WordMeaning
Analytical geometrygeometry studied through equations, joining algebra and geometry
Inclinationthe angle a line makes with the positive x-axis, measured anticlockwise, from 0° up to (but not including) 180°
Slope (gradient)m = tan θ for a line of inclination θ; also rise ÷ run between two of its points
Parallel lineslines that never meet; non-vertical ones have equal slopes
Perpendicular lineslines at right angles; non-vertical ones have slopes multiplying to −1
Angle between two linesthe acute angle θ with tan θ = |(m₂ − m₁)/(1 + m₁m₂)|, or the obtuse angle 180° − θ
Collinear pointspoints that lie on one straight line
Equation of a linean equation satisfied by every point of the line and by no other point
Point-slope formy − y₀ = m(x − x₀), from one point and the slope
Two-point formy − y₁ = [(y₂ − y₁)/(x₂ − x₁)](x − x₁), from two points
Slope-intercept formy = mx + c, from the slope and the y-intercept
Intercept formx/a + y/b = 1, from the two intercepts
x-intercept, y-interceptwhere a line cuts the x-axis and the y-axis
General equation of a lineAx + By + C = 0, with A and B not both zero
Perpendicular distancethe length of the perpendicular from a point to a line: the shortest distance
Foot of the perpendicularthe point where the perpendicular from a point meets the line
Image of a pointthe mirror point Q of P in a line, which is the perpendicular bisector of PQ
Concurrent linesthree or more lines through one common point
Right bisectorthe perpendicular bisector of a segment: through its mid-point, at right angles to it
Median, altitudea median joins a vertex to the mid-point of the opposite side; an altitude is the perpendicular from a vertex to the opposite side

CheckQuick self-check

Fifteen short questions on the whole chapter. Try each before you open it.

1. Find the slope of the line through (1, 2) and (3, 8).Tap to reveal
  1. (8 − 2)/(3 − 1) = 6/2.

3.

2. What is the slope of a line with inclination 45°?Tap to reveal
  1. tan 45° = 1.

1.

3. What is the inclination of a line with slope −1?Tap to reveal
  1. tan 135° = −1, and 135° is between 0° and 180°.

135°.

4. What is the slope of a vertical line?Tap to reveal
  1. Its run is 0, and tan 90° is not defined.

Not defined.

5. Lines with slopes 2/3 and −3/2: parallel, perpendicular or neither?Tap to reveal
  1. (2/3) × (−3/2) = −1.

Perpendicular.

6. Write the line through the origin with slope 4.Tap to reveal
  1. y − 0 = 4(x − 0).

y = 4x.

7. What is the y-intercept of y = 3x − 7?Tap to reveal
  1. In y = mx + c, c is the y-intercept.

−7.

8. What are the intercepts of x/5 + y/(−2) = 1?Tap to reveal
  1. Read a and b from x/a + y/b = 1.

5 on the x-axis and −2 on the y-axis.

9. What is the slope of 2x + 3y + 4 = 0?Tap to reveal
  1. 3y = −2x − 4, so y = (−2/3)x − 4/3.

−2/3.

10. Write the line through (2, −1) parallel to the x-axis.Tap to reveal
  1. Every point of it has y = −1.

y = −1.

11. How far is the origin from 3x + 4y = 10?Tap to reveal
  1. |0 + 0 − 10|/√(9 + 16) = 10/5.

2 units.

12. How far apart are 3x + 4y = 0 and 3x + 4y = 15?Tap to reveal
  1. |0 − (−15)|/5 = 15/5.

3 units.

13. What is the angle between lines with slopes 1 and −1?Tap to reveal
  1. 1 × (−1) = −1, so the lines are perpendicular.

90°.

14. What is the image of (2, 5) in the x-axis?Tap to reveal
  1. The x-axis is the perpendicular bisector of the segment from (2, 5) to (2, −5).

(2, −5).

15. Are (0, 0), (1, 2) and (2, 4) collinear?Tap to reveal
  1. Slope from (0, 0) to (1, 2) is 2; from (1, 2) to (2, 4) it is also 2.

Yes: all three lie on y = 2x.

PDF