Home / Notes / Class 12 / Mathematics / Analytic geometry

Analytic geometry: Class 12 Mathematics

Written by Hassan Raza (Mathematics)

Distance, midpoint and section formulas, slope of a line, forms of the equation of a straight line, angle between lines, parallel and perpendicular lines, distance from a point to a line, and the area of a triangle.

Key points

Analytic (coordinate) geometry studies geometric figures using coordinates and equations. A point in the plane is written (x, y), where x is the distance along the x-axis and y along the y-axis from the origin.

Distance formula: the distance between P(x₁, y₁) and Q(x₂, y₂) is d = √[(x₂ − x₁)² + (y₂ − y₁)²]. It follows from the theorem of Pythagoras. The distance is never negative.

Midpoint formula: the midpoint of PQ is ((x₁ + x₂)/2, (y₁ + y₂)/2). Section formula: the point R dividing PQ internally in the ratio m : n is ((m x₂ + n x₁)/(m + n), (m y₂ + n y₁)/(m + n)).

Slope (gradient) of a line through (x₁, y₁) and (x₂, y₂) is m = (y₂ − y₁)/(x₂ − x₁), if x₂ ≠ x₁. Also m = tan θ, where θ is the angle the line makes with the positive x-axis. A horizontal line has slope 0. A vertical line has no slope (undefined).

Conditions for two lines with slopes m₁ and m₂:

  • Parallel lines: m₁ = m₂.
  • Perpendicular lines: m₁ m₂ = −1.
  • Three points are collinear if the slopes of two pairs of them are equal.

Forms of the equation of a straight line:

  • Slope-intercept form: y = mx + c, where c is the y-intercept.
  • Point-slope form: y − y₁ = m(x − x₁).
  • Two-point form: (y − y₁)/(y₂ − y₁) = (x − x₁)/(x₂ − x₁).
  • Intercept form: x/a + y/b = 1, where a and b are the x-intercept and y-intercept.
  • General form: ax + by + c = 0, with slope −a/b if b ≠ 0.
  • Horizontal line: y = k. Vertical line: x = h.

To draw a line, find two points. The simplest are the intercepts: put y = 0 to find the x-intercept, and x = 0 to find the y-intercept. To find where two lines meet, solve their equations together as simultaneous equations.

Angle between two lines: if θ is the angle between lines of slopes m₁ and m₂, then tan θ = |(m₂ − m₁)/(1 + m₁ m₂)|. If 1 + m₁ m₂ = 0 the lines are perpendicular and θ = 90°.

Distance from a point P(x₁, y₁) to the line ax + by + c = 0 is d = |a x₁ + b y₁ + c|/√(a² + b²). The distance between two parallel lines ax + by + c₁ = 0 and ax + by + c₂ = 0 is |c₁ − c₂|/√(a² + b²).

Area of a triangle with vertices (x₁, y₁), (x₂, y₂), (x₃, y₃) is ½ |x₁(y₂ − y₃) + x₂(y₃ − y₁) + x₃(y₁ − y₂)|. If this is zero the three points lie on one line.

Concurrent lines: three lines are concurrent if they pass through one point. Find the meeting point of two lines and check whether it satisfies the third. A family of lines through the meeting point of L₁ = 0 and L₂ = 0 can be written L₁ + k L₂ = 0.

Equations of the medians, altitudes and perpendicular bisectors of a triangle are found from these tools. The perpendicular bisector of PQ passes through the midpoint of PQ and has slope −1/m, where m is the slope of PQ. An altitude from a vertex has slope −1/m, where m is the slope of the opposite side.

Study tip: Draw a quick sketch of every problem and plot the points, because many errors show up at once. Learn the slope conditions and the point-to-line formula exactly. Always check a found equation by putting a given point into it. Show each substitution step in numerical questions.

Definitions and flashcards

Say the meaning first, then open the card to check.

Coordinates

An ordered pair (x, y) fixing the position of a point in the plane.

Slope

The ratio of the change in y to the change in x along a line, m = tan θ.

Intercept

The distance from the origin to where a line meets an axis.

Collinear points

Points that lie on one straight line.

Concurrent lines

Lines that all pass through one point.

Midpoint

The point that divides a line segment into two equal parts.

Perpendicular bisector

The line at right angles to a segment through its midpoint.

Inclination

The angle a line makes with the positive x-axis.

Formula sheet

NameFormulaWhat it means
Distanced = √[(x₂ − x₁)² + (y₂ − y₁)²]Between two points.
Midpoint((x₁ + x₂)/2, (y₁ + y₂)/2)Centre of a segment.
Slopem = (y₂ − y₁)/(x₂ − x₁)x₂ ≠ x₁.
Point-slope formy − y₁ = m(x − x₁)A line with slope m through (x₁, y₁).
Angle between linestan θ = |(m₂ − m₁)/(1 + m₁ m₂)|θ is the acute angle.
Distance to a lined = |a x₁ + b y₁ + c|/√(a² + b²)From (x₁, y₁) to ax + by + c = 0.
Area of triangle½ |x₁(y₂ − y₃) + x₂(y₃ − y₁) + x₃(y₁ − y₂)|Square units.

Short questions with model answers

These are the kind of questions asked for 2, 3 and 5 marks. Try each one before opening the answer.

State the conditions for two lines to be parallel and perpendicular. (2 marks)

Lines with slopes m₁ and m₂ are parallel when m₁ = m₂. They are perpendicular when m₁ m₂ = −1.

Find the midpoint of the segment joining (2, −4) and (8, 6). (2 marks)

Midpoint = ((2 + 8)/2, (−4 + 6)/2) = (5, 1).

Find the slope and the y-intercept of the line 3x − 2y + 8 = 0. (3 marks)

Rewrite as 2y = 3x + 8, so y = (3/2)x + 4. The slope is 3/2 and the y-intercept is 4.

Show that the points A(1, 2), B(3, 6) and C(5, 10) are collinear. (3 marks)

Slope of AB = (6 − 2)/(3 − 1) = 2. Slope of BC = (10 − 6)/(5 − 3) = 2. The slopes are equal and B is common, so A, B and C lie on one straight line.

Describe how to find the equation of the perpendicular bisector of the segment joining two points. (5 marks)

First find the midpoint of the segment using the midpoint formula. Then find the slope m of the segment. The perpendicular bisector has slope −1/m because it is perpendicular to the segment. Use the point-slope form y − y₁ = (−1/m)(x − x₁) with the midpoint as (x₁, y₁). Simplify to the form ax + by + c = 0. If the segment is horizontal, the bisector is a vertical line through the midpoint.

Numericals with worked steps

Find the distance between A(1, 2) and B(4, 6).
  1. x₂ − x₁ = 4 − 1 = 3 and y₂ − y₁ = 6 − 2 = 4.
  2. d = √(3² + 4²) = √(9 + 16) = √25.
  3. d = 5.

Answer: 5 units

Find the equation of the line through (2, 3) and (5, 9).
  1. Slope m = (9 − 3)/(5 − 2) = 6/3 = 2.
  2. Point-slope form with (2, 3): y − 3 = 2(x − 2).
  3. y − 3 = 2x − 4, so y = 2x − 1.
  4. Check with (5, 9): 2(5) − 1 = 9, correct.

Answer: 2x − y − 1 = 0 (or y = 2x − 1)

Find the distance of the point (3, 4) from the line 3x + 4y − 5 = 0.
  1. Here a = 3, b = 4, c = −5, x₁ = 3, y₁ = 4.
  2. Numerator: |3(3) + 4(4) − 5| = |9 + 16 − 5| = 20.
  3. Denominator: √(9 + 16) = 5.
  4. d = 20/5 = 4.

Answer: 4 units

Find the acute angle between the lines y = x + 1 and y = 3x − 2.
  1. The slopes are m₁ = 1 and m₂ = 3.
  2. tan θ = |(3 − 1)/(1 + 1 × 3)| = 2/4 = 1/2.
  3. θ = tan⁻¹(0.5) ≈ 26.57°.

Answer: θ ≈ 26.6°

Find the area of the triangle with vertices (1, 1), (5, 1) and (3, 6).
  1. Use ½ |x₁(y₂ − y₃) + x₂(y₃ − y₁) + x₃(y₁ − y₂)|.
  2. = ½ |1(1 − 6) + 5(6 − 1) + 3(1 − 1)|.
  3. = ½ |−5 + 25 + 0| = ½ × 20 = 10.
  4. Check: base from (1, 1) to (5, 1) is 4 and the height is 6 − 1 = 5, so area = ½ × 4 × 5 = 10.

Answer: 10 square units

Common mistakes

  • Writing the slope as (x₂ − x₁)/(y₂ − y₁), upside down, or taking the differences in different orders for top and bottom.
  • Using m₁ = m₂ for perpendicular lines, or forgetting the negative sign in m₁ m₂ = −1.
  • Forgetting the modulus signs in the distance-to-a-line and angle formulas, which gives a negative distance.
  • Not writing the line in the form ax + by + c = 0 before using the point-to-line distance formula.
  • Reading the slope of ax + by + c = 0 as a/b instead of −a/b.

Practise this chapter

Practice questions and timed test Printable worksheet

Previous: Integration Next: Conic sections