Quiz 2
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:
  1. Locate points in the rectangular (Cartesian) coordinate system
  2. Compute the distance between any two points using the distance formula
  3. Apply the section formula to find a point dividing a line segment in a given ratio
  4. Calculate the area of a triangle given three vertices
  5. Determine whether three points are collinear

📋 Prerequisites

  • Sets and Set Operations — number systems, R2\mathbb{R}^2 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:
QuadrantX-signY-signExample
I++(3,2)(3, 2)
II+(4,1)(-4, 1)
III(2,5)(-2, -5)
IV+(3,1)(3, -1)
The point where both axes meet is the origin O=(0,0)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)(x, y) always lists the horizontal (x) coordinate first, then the vertical (y) coordinate. (3,5)(3, 5) means "3 units right, 5 units up."

1.1.2 Worked Examples

Example 1.1: Plot the points A=(2,3)A = (2, 3), B=(1,4)B = (-1, 4), C=(3,2)C = (-3, -2), D=(4,1)D = (4, -1) and state which quadrant each lies in. Solution: A(2,3)A(2,3): 2 right, 3 up → Quadrant I B(1,4)B(-1,4): 1 left, 4 up → Quadrant II C(3,2)C(-3,-2): 3 left, 2 down → Quadrant III D(4,1)D(4,-1): 4 right, 1 down → Quadrant IV
I: A, II: B, III: C, IV: D\boxed{\text{I: }A,\ \text{II: }B,\ \text{III: }C,\ \text{IV: }D}

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\sqrt{3^2 + 4^2} = \sqrt{25} = 5 blocks. The distance formula is just the Pythagorean theorem applied to the coordinate grid.

1.2.2 Formula

The distance dd between two points P1=(x1,y1)P_1 = (x_1, y_1) and P2=(x2,y2)P_2 = (x_2, y_2) is:
d=(x2x1)2+(y2y1)2d = \sqrt{(x_2 - x_1)^2 + (y_2 - y_1)^2}
Recipe:
  1. Subtract the x-coordinates: Δx=x2x1\Delta x = x_2 - x_1
  2. Subtract the y-coordinates: Δy=y2y1\Delta y = y_2 - y_1
  3. Square both differences
  4. Add the squares
  5. Take the square root

1.2.3 Worked Examples

Example 2.1 (Easy): Find the distance between (1,2)(1, 2) and (4,6)(4, 6). Step 1: Δx=41=3\Delta x = 4 - 1 = 3, Δy=62=4\Delta y = 6 - 2 = 4 Step 2: d=32+42=9+16=25=5d = \sqrt{3^2 + 4^2} = \sqrt{9 + 16} = \sqrt{25} = 5
d=5\boxed{d = 5}
Example 2.2 (Medium): Find the distance between (3,5)(-3, 5) and (2,7)(2, -7). Step 1: Δx=2(3)=5\Delta x = 2 - (-3) = 5, Δy=75=12\Delta y = -7 - 5 = -12 Step 2: d=52+(12)2=25+144=169=13d = \sqrt{5^2 + (-12)^2} = \sqrt{25 + 144} = \sqrt{169} = 13
d=13\boxed{d = 13}
Example 2.3 (Exam-style): Show that the triangle with vertices A(1,1)A(1, 1), B(4,5)B(4, 5), C(7,1)C(7, 1) is isosceles. Step 1: AB=(41)2+(51)2=32+42=5AB = \sqrt{(4-1)^2 + (5-1)^2} = \sqrt{3^2 + 4^2} = 5 Step 2: BC=(74)2+(15)2=32+(4)2=5BC = \sqrt{(7-4)^2 + (1-5)^2} = \sqrt{3^2 + (-4)^2} = 5 Step 3: AC=(71)2+(11)2=62+02=6AC = \sqrt{(7-1)^2 + (1-1)^2} = \sqrt{6^2 + 0^2} = 6 Two sides (ABAB and BCBC) are equal → isosceles triangle.
AB=BC=5, so isosceles\boxed{AB = BC = 5,\ \text{so isosceles}}

1.3 Section Formula

1.3.1 Intuition: Splitting a Segment

If you have a rope from point AA to point BB and you want to cut it at a point PP that divides it in the ratio m:nm:n (say 2:3), where is PP? The section formula gives the coordinates of PP using a weighted average of AA and BB.

1.3.2 Formula

If PP divides the line segment ABAB (from A(x1,y1)A(x_1, y_1) to B(x2,y2)B(x_2, y_2)) in the ratio m:nm:n (i.e., AP:PB=m:nAP:PB = m:n), then:
P=(mx2+nx1m+n, my2+ny1m+n)P = \left(\frac{m x_2 + n x_1}{m + n},\ \frac{m y_2 + n y_1}{m + n}\right)
💡 Memory aid: The coordinates of PP are the weighted average of AA and BB with weights nn and mm respectively — the weight for BB is mm (the ratio of APAP) and the weight for AA is nn (the ratio of PBPB). Special case — midpoint: When m=n=1m = n = 1, PP is the midpoint:
P=(x1+x22, y1+y22)P = \left(\frac{x_1 + x_2}{2},\ \frac{y_1 + y_2}{2}\right)

1.3.3 Worked Examples

Example 3.1 (Easy): Find the midpoint of (2,3)(2, 3) and (6,9)(6, 9). Step 1: x=2+62=4x = \frac{2 + 6}{2} = 4, y=3+92=6y = \frac{3 + 9}{2} = 6
(4,6)\boxed{(4, 6)}
Example 3.2 (Medium): Find the point PP that divides the segment from A(1,2)A(1, 2) to B(7,8)B(7, 8) in the ratio 2:12:1. Step 1: m=2m = 2, n=1n = 1 (ratio AP:PB=2:1AP:PB = 2:1) Step 2: x=2(7)+1(1)2+1=14+13=5x = \frac{2(7) + 1(1)}{2 + 1} = \frac{14 + 1}{3} = 5 Step 3: y=2(8)+1(2)2+1=16+23=6y = \frac{2(8) + 1(2)}{2 + 1} = \frac{16 + 2}{3} = 6
P=(5,6)\boxed{P = (5, 6)}
Check: AP=(51)2+(62)2=16+16=32=42AP = \sqrt{(5-1)^2 + (6-2)^2} = \sqrt{16 + 16} = \sqrt{32} = 4\sqrt{2} PB=(75)2+(86)2=4+4=8=22PB = \sqrt{(7-5)^2 + (8-6)^2} = \sqrt{4 + 4} = \sqrt{8} = 2\sqrt{2} AP:PB=42:22=2:1AP:PB = 4\sqrt{2} : 2\sqrt{2} = 2:1Example 3.3 (Hard — external division): Find the point QQ that divides ABAB externally in the ratio 3:13:1 where A(2,3)A(2, 3) and B(4,5)B(4, 5). For external division, the formula becomes x=mx2nx1mnx = \frac{m x_2 - n x_1}{m - n}: Step 1: x=3(4)1(2)31=1222=5x = \frac{3(4) - 1(2)}{3 - 1} = \frac{12 - 2}{2} = 5 Step 2: y=3(5)1(3)31=1532=6y = \frac{3(5) - 1(3)}{3 - 1} = \frac{15 - 3}{2} = 6
Q=(5,6)\boxed{Q = (5, 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)A(x_1, y_1), B(x2,y2)B(x_2, y_2), C(x3,y3)C(x_3, y_3):
Area=12x1(y2y3)+x2(y3y1)+x3(y1y2)\text{Area} = \frac{1}{2} \left| x_1(y_2 - y_3) + x_2(y_3 - y_1) + x_3(y_1 - y_2) \right|
Shoelace method:
Area=12(x1y2+x2y3+x3y1)(y1x2+y2x3+y3x1)\text{Area} = \frac{1}{2} \left| (x_1 y_2 + x_2 y_3 + x_3 y_1) - (y_1 x_2 + y_2 x_3 + y_3 x_1) \right|

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 00:
x1(y2y3)+x2(y3y1)+x3(y1y2)=0x_1(y_2 - y_3) + x_2(y_3 - y_1) + x_3(y_1 - y_2) = 0

1.4.4 Worked Examples

Example 4.1 (Easy): Find the area of triangle with vertices (0,0)(0,0), (4,0)(4,0), (0,3)(0,3). Step 1: x1=0,y1=0x_1=0,y_1=0, x2=4,y2=0x_2=4,y_2=0, x3=0,y3=3x_3=0,y_3=3 Step 2: Area=120(03)+4(30)+0(00)=120+12+0=6\text{Area} = \frac{1}{2}|0(0-3) + 4(3-0) + 0(0-0)| = \frac{1}{2}|0 + 12 + 0| = 6
6 square units\boxed{6 \text{ square units}}
(Check: base=4, height=3, area = 12×4×3=6\frac{1}{2} \times 4 \times 3 = 6 ✓) Example 4.2 (Medium): Find the area of triangle with vertices A(1,2)A(1,2), B(5,3)B(5,3), C(3,6)C(3,6). Step 1 — Using the formula: Area=121(36)+5(62)+3(23)\text{Area} = \frac{1}{2}|1(3-6) + 5(6-2) + 3(2-3)| =121(3)+5(4)+3(1)= \frac{1}{2}|1(-3) + 5(4) + 3(-1)| =123+203=1214=7= \frac{1}{2}|-3 + 20 - 3| = \frac{1}{2}|14| = 7
7 square units\boxed{7 \text{ square units}}
Step 2 — Using shoelace: x1y2+x2y3+x3y1=1(3)+5(6)+3(2)=3+30+6=39x_1y_2 + x_2y_3 + x_3y_1 = 1(3) + 5(6) + 3(2) = 3 + 30 + 6 = 39 y1x2+y2x3+y3x1=2(5)+3(3)+6(1)=10+9+6=25y_1x_2 + y_2x_3 + y_3x_1 = 2(5) + 3(3) + 6(1) = 10 + 9 + 6 = 25 Area=123925=1214=7\text{Area} = \frac{1}{2}|39 - 25| = \frac{1}{2}|14| = 7Example 4.3 (Exam-style): Check whether points (1,2)(1,2), (3,5)(3,5), (5,8)(5,8) are collinear. Step 1: Compute area: 121(58)+3(82)+5(25)\frac{1}{2}|1(5-8) + 3(8-2) + 5(2-5)| =121(3)+3(6)+5(3)= \frac{1}{2}|1(-3) + 3(6) + 5(-3)| =123+1815=120=0= \frac{1}{2}|-3 + 18 - 15| = \frac{1}{2}|0| = 0
Collinear — area is 0\boxed{\text{Collinear — area is 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

ConceptFormulaWhen to Use
Distanced=(x2x1)2+(y2y1)2d = \sqrt{(x_2-x_1)^2 + (y_2-y_1)^2}Between any two points
Midpoint(x1+x22, y1+y22)\left(\frac{x_1+x_2}{2},\ \frac{y_1+y_2}{2}\right)Center of a segment
Section (internal)(mx2+nx1m+n, my2+ny1m+n)\left(\frac{m x_2 + n x_1}{m+n},\ \frac{m y_2 + n y_1}{m+n}\right)Point dividing segment in ratio m:nm:n
Triangle area$\frac{1}{2}\x_1(y_2-y_3) + x_2(y_3-y_1) + x_3(y_1-y_2)\
Collinearityx1(y2y3)+x2(y3y1)+x3(y1y2)=0x_1(y_2-y_3) + x_2(y_3-y_1) + x_3(y_1-y_2) = 0Checking 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 12[x1(y2y3)+]\frac{1}{2}[x_1(y_2-y_3) + \ldots] can be negative depending on vertex order (clockwise vs. counterclockwise). Area must be positive. Correct: Always take the absolute value: Area=12\text{Area} = \frac{1}{2}|\ldots|.

Pitfall 2: Reversing the Section Formula Ratio

Mistake: Using mm and nn in wrong order. Correct: If AP:PB=m:nAP:PB = m:n, then x=mx2+nx1m+nx = \frac{m x_2 + n x_1}{m+n}. The coordinate of BB (the far endpoint from AA) gets the mm weight. Memory aid: The point you're going towards (BB) gets the first ratio part (mm).

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=(x2x1)2+(y2y1)2d = (x_2-x_1)^2 + (y_2-y_1)^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)(-2, 3) and (4,5)(4, -5).
Strategy Hint: Apply the distance formula directly.
Step 1: Δx=4(2)=6\Delta x = 4 - (-2) = 6, Δy=53=8\Delta y = -5 - 3 = -8 Step 2: d=62+(8)2=36+64=100=10d = \sqrt{6^2 + (-8)^2} = \sqrt{36 + 64} = \sqrt{100} = 10
10\boxed{10} Q2: Find the midpoint of (3,2)(3, -2) and (5,8)(-5, 8).
Strategy Hint: Average the x-coordinates and y-coordinates.
Step 1: x=3+(5)2=22=1x = \frac{3 + (-5)}{2} = \frac{-2}{2} = -1 Step 2: y=2+82=62=3y = \frac{-2 + 8}{2} = \frac{6}{2} = 3
(1,3)\boxed{(-1, 3)} Q3: In what ratio does the point P(3,5)P(3, 5) divide the segment joining A(1,3)A(1, 3) and B(5,7)B(5, 7)?
Strategy Hint: Use the section formula and solve for m:nm:n.
Step 1: x=m(5)+n(1)m+n=3    5m+n=3m+3n    2m=2n    m=nx = \frac{m(5) + n(1)}{m+n} = 3 \implies 5m + n = 3m + 3n \implies 2m = 2n \implies m = n
So the ratio is 1:11:1 — P is the midpoint. Verify: 1+52=3\frac{1+5}{2}=3, 3+72=5\frac{3+7}{2}=5
1:1\boxed{1:1} Q4: Find the area of triangle with vertices (2,3)(2,3), (5,7)(5,7), (8,3)(8,3).
Strategy Hint: Use the formula with absolute value.
Step 1: Area=122(73)+5(33)+8(37)\text{Area} = \frac{1}{2}|2(7-3) + 5(3-3) + 8(3-7)| =122(4)+5(0)+8(4)= \frac{1}{2}|2(4) + 5(0) + 8(-4)| =128+032=1224=12= \frac{1}{2}|8 + 0 - 32| = \frac{1}{2}|-24| = 12
12 square units\boxed{12 \text{ square units}} Q5: Are the points (0,0)(0,0), (2,4)(2,4), (4,8)(4,8) collinear?
Strategy Hint: Compute the area — it should be 0 if collinear.
Step 1: Area=120(48)+2(80)+4(04)\text{Area} = \frac{1}{2}|0(4-8) + 2(8-0) + 4(0-4)| =120(4)+16+4(4)=120+1616=0= \frac{1}{2}|0 \cdot (-4) + 16 + 4(-4)| = \frac{1}{2}|0 + 16 - 16| = 0
Yes, collinear\boxed{\text{Yes, collinear}} Q6: Find the point on the y-axis that is equidistant from (2,3)(2,3) and (4,7)(4,7).
Strategy Hint: On the y-axis, x=0x = 0. So the point is (0,y)(0, y). Use distance formula.
Step 1: Distance from (0,y)(0,y) to (2,3)(2,3) = distance to (4,7)(4,7) (02)2+(y3)2=(04)2+(y7)2\sqrt{(0-2)^2 + (y-3)^2} = \sqrt{(0-4)^2 + (y-7)^2}
Step 2: Square both sides: 4+(y3)2=16+(y7)24 + (y-3)^2 = 16 + (y-7)^2 4+y26y+9=16+y214y+494 + y^2 - 6y + 9 = 16 + y^2 - 14y + 49 136y=6514y13 - 6y = 65 - 14y 8y=528y = 52 y=6.5y = 6.5
(0,6.5)\boxed{(0, 6.5)} Q7: Find the area of quadrilateral with vertices (0,0)(0,0), (4,0)(4,0), (6,3)(6,3), (2,3)(2,3).
Strategy Hint: Divide into two triangles or use polygon area formula.
Step 1: Split into ABC\triangle ABC and ACD\triangle ACD (with A(0,0)A(0,0), B(4,0)B(4,0), C(6,3)C(6,3), D(2,3)D(2,3)). Step 2: Area ABC=120(03)+4(30)+6(00)=1212=6\triangle ABC = \frac{1}{2}|0(0-3) + 4(3-0) + 6(0-0)| = \frac{1}{2}|12| = 6 Step 3: Area ACD=120(33)+6(30)+2(03)=12186=6\triangle ACD = \frac{1}{2}|0(3-3) + 6(3-0) + 2(0-3)| = \frac{1}{2}|18 - 6| = 6 Step 4: Total = 6+6=126 + 6 = 12
12 square units\boxed{12 \text{ square units}} Q8: For what value of kk are (2,3)(2,3), (5,k)(5,k), (8,9)(8,9) collinear?
Strategy Hint: Set the area formula equal to 0 and solve for kk.
Step 1: 122(k9)+5(93)+8(3k)=0\frac{1}{2}|2(k-9) + 5(9-3) + 8(3-k)| = 0 2k18+30+248k=0|2k - 18 + 30 + 24 - 8k| = 0 6k+36=0|-6k + 36| = 0 6k+36=0    k=6-6k + 36 = 0 \implies k = 6
k=6\boxed{k = 6} Q9: Find the centroid of the triangle with vertices (2,4)(2,4), (6,8)(6,8), (10,3)(10,3).
Strategy Hint: Centroid = average of coordinates: (x1+x2+x33,y1+y2+y33)\left(\frac{x_1+x_2+x_3}{3}, \frac{y_1+y_2+y_3}{3}\right).
Step 1: x=2+6+103=183=6x = \frac{2+6+10}{3} = \frac{18}{3} = 6 Step 2: y=4+8+33=153=5y = \frac{4+8+3}{3} = \frac{15}{3} = 5
(6,5)\boxed{(6,5)} Q10: Determine if points (1,1)(1,1), (2,4)(2,4), (3,9)(3,9) are collinear.
Strategy Hint: Compute area — a non-zero area means they form a triangle.
Step 1: Area=121(49)+2(91)+3(14)\text{Area} = \frac{1}{2}|1(4-9) + 2(9-1) + 3(1-4)| =125+169=122=1= \frac{1}{2}|-5 + 16 - 9| = \frac{1}{2}|2| = 1
Area = 1 (not 0), so they are NOT collinear (they lie on a parabola y=x2y = x^2).
Not collinear\boxed{\text{Not collinear}} Q11: The vertices of a triangle are (3,4)(3,4), (7,2)(7,2), (5,6)(5,6). Find its area. What type of triangle is it?
Strategy Hint: Compute area, then side lengths to classify.
Step 1: Area=123(26)+7(64)+5(42)\text{Area} = \frac{1}{2}|3(2-6) + 7(6-4) + 5(4-2)| =123(4)+7(2)+5(2)=1212+14+10=1212=6= \frac{1}{2}|3(-4) + 7(2) + 5(2)| = \frac{1}{2}|-12 + 14 + 10| = \frac{1}{2}|12| = 6
Step 2: Side lengths: AB=(73)2+(24)2=16+4=20AB = \sqrt{(7-3)^2 + (2-4)^2} = \sqrt{16+4} = \sqrt{20} BC=(57)2+(62)2=4+16=20BC = \sqrt{(5-7)^2 + (6-2)^2} = \sqrt{4+16} = \sqrt{20} AC=(53)2+(64)2=4+4=8AC = \sqrt{(5-3)^2 + (6-4)^2} = \sqrt{4+4} = \sqrt{8}
AB=BCAB = BC → isosceles triangle.
Area=6, isosceles\boxed{\text{Area} = 6,\ \text{isosceles}} Q12: A point PP divides the segment joining A(2,3)A(2,3) and B(6,7)B(6,7) in the ratio 3:23:2 externally. Find PP.
Strategy Hint: External division: x=mx2nx1mnx = \frac{m x_2 - n x_1}{m - n}.
Step 1: m=3m = 3, n=2n = 2, A(2,3)A(2,3), B(6,7)B(6,7) Step 2: x=3(6)2(2)32=1841=14x = \frac{3(6) - 2(2)}{3 - 2} = \frac{18 - 4}{1} = 14 Step 3: y=3(7)2(3)32=2161=15y = \frac{3(7) - 2(3)}{3 - 2} = \frac{21 - 6}{1} = 15
P=(14,15)\boxed{P = (14, 15)}

🔗 Cross-References

Document outline

Keep your place and jump directly to a heading.

Table of Contents
System Normal // Awaiting Context

Intelligence Hub

Navigate the knowledge graph to generate context. The Hub adapts dynamically to surface backlinks, related notes, and metadata insights.