Neural Sync Active
Coordinate Geometry
Registry Synced
Coordinate Geometry
2705 words
14 min read
Reading compass
Now · 🎯 Learning Objectives
Coordinate Geometry
🎯 Learning Objectives
By the end of this topic, you will be able to:
- Locate points in the rectangular (Cartesian) coordinate system
- Compute the distance between any two points using the distance formula
- Apply the section formula to find a point dividing a line segment in a given ratio
- Calculate the area of a triangle given three vertices
- Determine whether three points are collinear
📋 Prerequisites
- Sets and Set Operations — number systems, R2 as a set of ordered pairs
- Basic arithmetic — squares, square roots, absolute value
- Algebra — solving linear equations
📖 Core Content
1.1 The Cartesian Coordinate System
1.1.1 Intuition: The Grid of Mathematics
Imagine a city laid out on a perfect grid. Every location can be described by two numbers: how far east (x-coordinate) and how far north (y-coordinate) it is from a central reference point (the origin). This is the Cartesian coordinate system, named after René Descartes who famously developed the idea while watching a fly crawl on his ceiling!
The plane is divided into 4 quadrants:
| Quadrant | X-sign | Y-sign | Example |
|---|---|---|---|
| I | + | + | (3,2) |
| II | − | + | (−4,1) |
| III | − | − | (−2,−5) |
| IV | + | − | (3,−1) |
The point where both axes meet is the origin O=(0,0).
💡 Why this matters: Every visualization in data science (scatter plots, line charts, histograms) uses the Cartesian coordinate system. Understanding coordinates is the first step to understanding any graph. (Diagram) Key convention: The ordered pair (x,y) always lists the horizontal (x) coordinate first, then the vertical (y) coordinate. (3,5) means "3 units right, 5 units up."
1.1.2 Worked Examples
Example 1.1: Plot the points A=(2,3), B=(−1,4), C=(−3,−2), D=(4,−1) and state which quadrant each lies in.
Solution:
A(2,3): 2 right, 3 up → Quadrant I
B(−1,4): 1 left, 4 up → Quadrant II
C(−3,−2): 3 left, 2 down → Quadrant III
D(4,−1): 4 right, 1 down → Quadrant IV
1.2 The Distance Formula
1.2.1 Intuition: Measuring Between Points
If you walk 3 blocks east and then 4 blocks north, how far are you from your starting point (as the crow flies)? The answer uses the Pythagorean theorem: 32+42=25=5 blocks. The distance formula is just the Pythagorean theorem applied to the coordinate grid.
1.2.2 Formula
The distance d between two points P1=(x1,y1) and P2=(x2,y2) is:
Recipe:
- Subtract the x-coordinates: Δx=x2−x1
- Subtract the y-coordinates: Δy=y2−y1
- Square both differences
- Add the squares
- Take the square root
1.2.3 Worked Examples
Example 2.1 (Easy): Find the distance between (1,2) and (4,6).
Step 1: Δx=4−1=3, Δy=6−2=4
Step 2: d=32+42=9+16=25=5
Example 2.2 (Medium): Find the distance between (−3,5) and (2,−7).
Step 1: Δx=2−(−3)=5, Δy=−7−5=−12
Step 2: d=52+(−12)2=25+144=169=13
Example 2.3 (Exam-style): Show that the triangle with vertices A(1,1), B(4,5), C(7,1) is isosceles.
Step 1: AB=(4−1)2+(5−1)2=32+42=5
Step 2: BC=(7−4)2+(1−5)2=32+(−4)2=5
Step 3: AC=(7−1)2+(1−1)2=62+02=6
Two sides (AB and BC) are equal → isosceles triangle.
1.3 Section Formula
1.3.1 Intuition: Splitting a Segment
If you have a rope from point A to point B and you want to cut it at a point P that divides it in the ratio m:n (say 2:3), where is P? The section formula gives the coordinates of P using a weighted average of A and B.
1.3.2 Formula
If P divides the line segment AB (from A(x1,y1) to B(x2,y2)) in the ratio m:n (i.e., AP:PB=m:n), then:
P=(2x1+x2, 2y1+y2)💡 Memory aid: The coordinates of P are the weighted average of A and B with weights n and m respectively — the weight for B is m (the ratio of AP) and the weight for A is n (the ratio of PB). Special case — midpoint: When m=n=1, P is the midpoint:
1.3.3 Worked Examples
Example 3.1 (Easy): Find the midpoint of (2,3) and (6,9).
Step 1: x=22+6=4, y=23+9=6
Example 3.2 (Medium): Find the point P that divides the segment from A(1,2) to B(7,8) in the ratio 2:1.
Step 1: m=2, n=1 (ratio AP:PB=2:1)
Step 2: x=2+12(7)+1(1)=314+1=5
Step 3: y=2+12(8)+1(2)=316+2=6
Check: AP=(5−1)2+(6−2)2=16+16=32=42
PB=(7−5)2+(8−6)2=4+4=8=22
AP:PB=42:22=2:1 ✓
Example 3.3 (Hard — external division): Find the point Q that divides AB externally in the ratio 3:1 where A(2,3) and B(4,5).
For external division, the formula becomes x=m−nmx2−nx1:
Step 1: x=3−13(4)−1(2)=212−2=5
Step 2: y=3−13(5)−1(3)=215−3=6
1.4 Area of a Triangle
1.4.1 Intuition
Given three points on the coordinate plane, how do you find the area of the triangle they form without measuring side lengths? The formula uses the shoelace pattern — multiply and subtract coordinates in a cycle.
1.4.2 Formula
Area of triangle with vertices A(x1,y1), B(x2,y2), C(x3,y3):
Shoelace method:
1.4.3 Collinearity Check
Three points are collinear (lie on the same straight line) if and only if the area of the triangle they form is 0:
1.4.4 Worked Examples
Example 4.1 (Easy): Find the area of triangle with vertices (0,0), (4,0), (0,3).
Step 1: x1=0,y1=0, x2=4,y2=0, x3=0,y3=3
Step 2: Area=21∣0(0−3)+4(3−0)+0(0−0)∣=21∣0+12+0∣=6
(Check: base=4, height=3, area = 21×4×3=6 ✓)
Example 4.2 (Medium): Find the area of triangle with vertices A(1,2), B(5,3), C(3,6).
Step 1 — Using the formula:
Area=21∣1(3−6)+5(6−2)+3(2−3)∣
=21∣1(−3)+5(4)+3(−1)∣
=21∣−3+20−3∣=21∣14∣=7
Step 2 — Using shoelace:
x1y2+x2y3+x3y1=1(3)+5(6)+3(2)=3+30+6=39
y1x2+y2x3+y3x1=2(5)+3(3)+6(1)=10+9+6=25
Area=21∣39−25∣=21∣14∣=7 ✓
Example 4.3 (Exam-style): Check whether points (1,2), (3,5), (5,8) are collinear.
Step 1: Compute area: 21∣1(5−8)+3(8−2)+5(2−5)∣
=21∣1(−3)+3(6)+5(−3)∣
=21∣−3+18−15∣=21∣0∣=0
1.5 Why This Matters
Coordinate geometry is the bridge between algebra and geometry. It allows us to:
- Solve geometric problems using algebraic methods
- Model real-world data as points on a plane
- Fit lines and curves to data (regression analysis in statistics)
- Visualize functions and their properties In data science, everything starts with coordinate geometry: scatter plots, the data space where each point is an observation with features as coordinates.
📐 Key Formulas — Summary Table
| Concept | Formula | When to Use |
|---|---|---|
| Distance | d=(x2−x1)2+(y2−y1)2 | Between any two points |
| Midpoint | (2x1+x2, 2y1+y2) | Center of a segment |
| Section (internal) | (m+nmx2+nx1, m+nmy2+ny1) | Point dividing segment in ratio m:n |
| Triangle area | $\frac{1}{2}\ | x_1(y_2-y_3) + x_2(y_3-y_1) + x_3(y_1-y_2)\ |
| Collinearity | x1(y2−y3)+x2(y3−y1)+x3(y1−y2)=0 | Checking if 3 points are collinear |
| Shoelace | $\frac{1}{2}\ | (x_1y_2 + x_2y_3 + x_3y_1) - (y_1x_2 + y_2x_3 + y_3x_1)\ |
⚠️ Common Pitfalls
Pitfall 1: Forgetting to Take the Absolute Value in Area
Mistake: Reporting a negative area.
Why: The formula 21[x1(y2−y3)+…] can be negative depending on vertex order (clockwise vs. counterclockwise). Area must be positive.
Correct: Always take the absolute value: Area=21∣…∣.
Pitfall 2: Reversing the Section Formula Ratio
Mistake: Using m and n in wrong order.
Correct: If AP:PB=m:n, then x=m+nmx2+nx1. The coordinate of B (the far endpoint from A) gets the m weight.
Memory aid: The point you're going towards (B) gets the first ratio part (m).
Pitfall 3: Confusing Collinearity with Parallelism
Mistake: Thinking collinear means parallel lines.
Correct: Collinear means points lie on the same line. Three parallel lines have points on different lines that are parallel — these are NOT collinear.
Pitfall 4: Forgetting the Square Root in Distance
Mistake: Computing d=(x2−x1)2+(y2−y1)2 without the square root.
Correct: Distance is the square root of the sum of squared differences.
📝 Practice Questions
Q1: Find the distance between (−2,3) and (4,−5).Strategy Hint: Apply the distance formula directly.Step 1: Δx=4−(−2)=6, Δy=−5−3=−8 Step 2: d=62+(−8)2=36+64=100=1010 Q2: Find the midpoint of (3,−2) and (−5,8).Strategy Hint: Average the x-coordinates and y-coordinates.Step 1: x=23+(−5)=2−2=−1 Step 2: y=2−2+8=26=3(−1,3) Q3: In what ratio does the point P(3,5) divide the segment joining A(1,3) and B(5,7)?Strategy Hint: Use the section formula and solve for m:n.Step 1: x=m+nm(5)+n(1)=3⟹5m+n=3m+3n⟹2m=2n⟹m=nSo the ratio is 1:1 — P is the midpoint. Verify: 21+5=3, 23+7=5 ✓1:1 Q4: Find the area of triangle with vertices (2,3), (5,7), (8,3).Strategy Hint: Use the formula with absolute value.Step 1: Area=21∣2(7−3)+5(3−3)+8(3−7)∣ =21∣2(4)+5(0)+8(−4)∣ =21∣8+0−32∣=21∣−24∣=1212 square units Q5: Are the points (0,0), (2,4), (4,8) collinear?Strategy Hint: Compute the area — it should be 0 if collinear.Step 1: Area=21∣0(4−8)+2(8−0)+4(0−4)∣ =21∣0⋅(−4)+16+4(−4)∣=21∣0+16−16∣=0Yes, collinear Q6: Find the point on the y-axis that is equidistant from (2,3) and (4,7).Strategy Hint: On the y-axis, x=0. So the point is (0,y). Use distance formula.Step 1: Distance from (0,y) to (2,3) = distance to (4,7) (0−2)2+(y−3)2=(0−4)2+(y−7)2Step 2: Square both sides: 4+(y−3)2=16+(y−7)2 4+y2−6y+9=16+y2−14y+49 13−6y=65−14y 8y=52 y=6.5(0,6.5) Q7: Find the area of quadrilateral with vertices (0,0), (4,0), (6,3), (2,3).Strategy Hint: Divide into two triangles or use polygon area formula.Step 1: Split into △ABC and △ACD (with A(0,0), B(4,0), C(6,3), D(2,3)). Step 2: Area △ABC=21∣0(0−3)+4(3−0)+6(0−0)∣=21∣12∣=6 Step 3: Area △ACD=21∣0(3−3)+6(3−0)+2(0−3)∣=21∣18−6∣=6 Step 4: Total = 6+6=1212 square units Q8: For what value of k are (2,3), (5,k), (8,9) collinear?Strategy Hint: Set the area formula equal to 0 and solve for k.Step 1: 21∣2(k−9)+5(9−3)+8(3−k)∣=0 ∣2k−18+30+24−8k∣=0 ∣−6k+36∣=0 −6k+36=0⟹k=6k=6 Q9: Find the centroid of the triangle with vertices (2,4), (6,8), (10,3).Strategy Hint: Centroid = average of coordinates: (3x1+x2+x3,3y1+y2+y3).Step 1: x=32+6+10=318=6 Step 2: y=34+8+3=315=5(6,5) Q10: Determine if points (1,1), (2,4), (3,9) are collinear.Strategy Hint: Compute area — a non-zero area means they form a triangle.Step 1: Area=21∣1(4−9)+2(9−1)+3(1−4)∣ =21∣−5+16−9∣=21∣2∣=1Area = 1 (not 0), so they are NOT collinear (they lie on a parabola y=x2).Not collinear Q11: The vertices of a triangle are (3,4), (7,2), (5,6). Find its area. What type of triangle is it?Strategy Hint: Compute area, then side lengths to classify.Step 1: Area=21∣3(2−6)+7(6−4)+5(4−2)∣ =21∣3(−4)+7(2)+5(2)∣=21∣−12+14+10∣=21∣12∣=6Step 2: Side lengths: AB=(7−3)2+(2−4)2=16+4=20 BC=(5−7)2+(6−2)2=4+16=20 AC=(5−3)2+(6−4)2=4+4=8AB=BC → isosceles triangle.Area=6, isosceles Q12: A point P divides the segment joining A(2,3) and B(6,7) in the ratio 3:2 externally. Find P.Strategy Hint: External division: x=m−nmx2−nx1.Step 1: m=3, n=2, A(2,3), B(6,7) Step 2: x=3−23(6)−2(2)=118−4=14 Step 3: y=3−23(7)−2(3)=121−6=15P=(14,15)
🔗 Cross-References
- Next topic: Straight Lines — slope, intercepts, equations of lines
- Related: Quadratic Functions — parabolas as curves
- Across courses: BSMA1002 Stats 1 (scatter plots, linear regression); BSMA1003 Maths 2 (vectors in coordinate plane) Join Discord Previous1.3 FunctionsNext2.2 Straight Lines