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:
x1βy2β+x2βy3β+x3βy1β=1(3)+5(6)+3(2)=3+30+6=39
y1βx2β+y2βx3β+y3βx1β=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)2βStep 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β=8βAB=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