Home / Notes / Class 12 / Mathematics / Analytic geometry
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.
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₂:
Forms of the equation of a straight line:
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.
Say the meaning first, then open the card to check.
An ordered pair (x, y) fixing the position of a point in the plane.
The ratio of the change in y to the change in x along a line, m = tan θ.
The distance from the origin to where a line meets an axis.
Points that lie on one straight line.
Lines that all pass through one point.
The point that divides a line segment into two equal parts.
The line at right angles to a segment through its midpoint.
The angle a line makes with the positive x-axis.
| Name | Formula | What it means |
|---|---|---|
| Distance | d = √[(x₂ − x₁)² + (y₂ − y₁)²] | Between two points. |
| Midpoint | ((x₁ + x₂)/2, (y₁ + y₂)/2) | Centre of a segment. |
| Slope | m = (y₂ − y₁)/(x₂ − x₁) | x₂ ≠ x₁. |
| Point-slope form | y − y₁ = m(x − x₁) | A line with slope m through (x₁, y₁). |
| Angle between lines | tan θ = |(m₂ − m₁)/(1 + m₁ m₂)| | θ is the acute angle. |
| Distance to a line | d = |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. |
These are the kind of questions asked for 2, 3 and 5 marks. Try each one before opening the answer.
Lines with slopes m₁ and m₂ are parallel when m₁ = m₂. They are perpendicular when m₁ m₂ = −1.
Midpoint = ((2 + 8)/2, (−4 + 6)/2) = (5, 1).
Rewrite as 2y = 3x + 8, so y = (3/2)x + 4. The slope is 3/2 and the y-intercept is 4.
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.
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.
Answer: 5 units
Answer: 2x − y − 1 = 0 (or y = 2x − 1)
Answer: 4 units
Answer: θ ≈ 26.6°
Answer: 10 square units