Orienting Yourself - The Use of Coordinates

How do you describe exactly where something is, using nothing but numbers? A city block, a seat in a cinema hall, a pixel on a screen, a pin in a map — every one of these is located by counting distance in two directions from a fixed starting point. This chapter builds the tool that makes that possible: the Cartesian coordinate system, a pair of perpendicular number lines that turns every point in a flat plane into an ordered pair of numbers, (x,y)(x, y). This idea is far older and more global than the name Descartes suggests. The cities of the Sindhu-Sarasvati Civilisation were laid out on a precise North-South, East-West grid thousands of years ago — a coordinate system in stone and street. Baudhāyana used perpendicular lines for the geometric constructions that gave us the Baudhāyana-Pythagoras Theorem, the exact tool this chapter leans on. Āryabhaṭa mapped the sky using coordinate distances from the ecliptic. Brahmagupta's formal treatment of zero and negative numbers is precisely what makes the four-quadrant plane — with its "below zero" and "left of zero" regions — possible at all. The idea travelled through Arabic scholarship and reached Descartes and Fermat in seventeenth-century Europe, who showed that algebra and geometry are really the same subject seen two ways: every equation is a picture, and every picture is an equation. In this chapter you will meet the x-axis and y-axis, the origin, the four quadrants and their sign patterns, and the rule that turns any point into coordinates (x,y)(x, y). You will then prove — using a theorem you already know — that the straight-line distance between any two points (x1,y1)(x_1, y_1) and (x2,y2)(x_2, y_2) is (x2−x1)2+(y2−y1)2\sqrt{(x_2-x_1)^2 + (y_2-y_1)^2}, and you will discover the companion result for the midpoint of a segment. Along the way, a running example — Reiaan, new to his city and his school, guided by his sister Shalini's pin-and-thread map of their home — keeps the abstract grid tied to a real room with real doors and furniture.

Key takeaways
  • The Cartesian plane is formed by two perpendicular number lines, the horizontal x-axis and the vertical y-axis, meeting at the origin O=(0,0)O = (0, 0).
  • Every point in the plane is described by an ordered pair (x,y)(x, y): the x-coordinate (or abscissa) is the point's distance from the y-axis, and the y-coordinate (or ordinate) is its distance from the x-axis.
  • A point on the x-axis has the form (x,0)(x, 0); a point on the y-axis has the form (0,y)(0, y); order matters, so (x,y)≠(y,x)(x, y) \neq (y, x) unless x=yx = y.
  • The axes cut the plane into four quadrants, with sign patterns (+,+)(+,+), (−,+)(-,+), (−,−)(-,-), (+,−)(+,-) for Quadrants I, II, III and IV respectively.
  • The distance formula, proved using the Baudhāyana-Pythagoras Theorem, gives the distance between any two points: d=(x2−x1)2+(y2−y1)2d = \sqrt{(x_2-x_1)^2 + (y_2-y_1)^2}.
  • When two points share a y-coordinate, the distance between them is just ∣x2−x1∣|x_2 - x_1|; when they share an x-coordinate, it is ∣y2−y1∣|y_2 - y_1| — no square roots needed.
  • The midpoint formula gives the coordinates of the point exactly halfway between (x1,y1)(x_1, y_1) and (x2,y2)(x_2, y_2): M=(x1+x22, y1+y22)M = \left(\dfrac{x_1+x_2}{2},\ \dfrac{y_1+y_2}{2}\right).
  • Reflecting a figure in the y-axis or x-axis flips the sign of one coordinate of every point, and — since squaring removes signs — it never changes the lengths of segments joining those points.
  • The distance formula also lets you test whether three points are collinear (lie on one straight line) without drawing anything: check whether the sum of two of the three distances equals the third.
  • Key idea: every point in a plane is pinned down by an ordered pair of signed distances from two perpendicular axes, and the Baudhāyana-Pythagoras Theorem then converts any two such ordered pairs into the straight-line distance and the midpoint between them.
The core insight

An ordered pair (x,y)(x, y) of signed perpendicular distances from the x-axis and y-axis locates any point in the plane uniquely, and applying the Baudhāyana-Pythagoras Theorem to the horizontal and vertical gaps between two such points gives both the distance formula and the midpoint formula.

What this chapter covers

The chapter opens with the deep history of grid-based thinking — from the street-grids of the Sindhu-Sarasvati cities to Baudhāyana, Āryabhaṭa, Brahmagupta, Al-Bīrūnī and finally Descartes — before settling into the formal machinery you will actually use. The guided map below follows that build-up. The first block sets up language and structure: the x-axis, y-axis and origin, how to read and write coordinates (x,y)(x, y), and the special forms (x,0)(x, 0) and (0,y)(0, y) for points on an axis. The second covers the four quadrants and their sign pattern, and stresses that order inside the bracket matters: (3,−5)(3, -5) and (−5,3)(-5, 3) are different points. The third and largest block develops the distance formula, built from the Baudhāyana-Pythagoras Theorem applied to the horizontal and vertical gap between two points — the chapter's central theorem, proved in full below. A companion result, the midpoint formula, follows the same style of reasoning and is essential for the harder exercises. The chapter closes by putting these tools to work: testing whether points are collinear, checking whether reflected figures keep their shape, and locating real objects — a study table, a bathroom door, a city's street grid, pixels on a screen — using nothing but coordinates and arithmetic.

The core ideas

The two axes and the origin

To locate a point on a line, one number is enough — this is the one-dimensional number line you already know from working with integers, rational numbers and decimals. To locate a point in a flat plane, two perpendicular number lines are needed. The horizontal line is called the x-axis and the vertical line is called the y-axis. They cross at a single point called the origin, labelled OO, whose coordinates are always (0,0)(0, 0). Distances are marked off in equal units on both axes, exactly as on an ordinary number line. On the x-axis, distances to the right of OO are positive and distances to the left are negative. On the y-axis, distances above OO are positive and distances below are negative. This sign convention — impossible without Brahmagupta's formal treatment of negative numbers — is what allows the plane to stretch in all four directions from a single fixed origin. A point that lies exactly on the x-axis has the form P=(x,0)P = (x, 0); if xx is positive it lies to the right of OO, and if xx is negative it lies to the left. A point that lies exactly on the y-axis has the form P=(0,y)P = (0, y); if yy is positive it lies above OO, and if yy is negative it lies below.

P=(x,0) lies on the x-axis,P=(0,y) lies on the y-axis.P = (x, 0) \ \text{lies on the x-axis}, \qquad P = (0, y) \ \text{lies on the y-axis}.

where: xx and yy are signed distances measured in the same fixed unit used on both axes; the zero in each pair marks that the point has not moved off that axis at all.

Reading the coordinates of any point

The Cartesian plane (also called the coordinate plane or the xy-plane) is the full flat surface on which the two axes sit. Any point PP in this plane, whether or not it touches an axis, is described by an ordered pair (x,y)(x, y): xx is the perpendicular distance of PP from the y-axis, measured along a line parallel to the x-axis, and yy is the perpendicular distance of PP from the x-axis, measured along a line parallel to the y-axis. The first number is called the x-coordinate or abscissa; the second is the y-coordinate or ordinate.

P(x,y):x=distance from the y-axis,y=distance from the x-axis.P(x, y): \quad x = \text{distance from the y-axis}, \qquad y = \text{distance from the x-axis}.

where: the order inside the bracket is fixed by convention — x always comes first — so writing (y,x)(y, x) instead of (x,y)(x, y) describes a genuinely different point unless x=yx = y. It is common, once the meaning is clear, to drop the equals sign and write P(x,y)P(x, y) instead of P=(x,y)P = (x, y); both mean exactly the same thing.

The four quadrants

The x-axis and y-axis together divide the Cartesian plane into four regions called quadrants, numbered I, II, III and IV in an anticlockwise order starting from the region where both coordinates are positive. Each quadrant has its own fixed sign pattern, which lets you name the quadrant of a point just by looking at the signs of its coordinates, with no need to plot anything.

Quadrant I: (+,+),II: (−,+),III: (−,−),IV: (+,−).\text{Quadrant I: } (+,+), \quad \text{II: } (-,+), \quad \text{III: } (-,-), \quad \text{IV: } (+,-).

where: the first sign in each pair is that of the x-coordinate and the second is that of the y-coordinate. For instance, the point S(3,−5)S(3, -5) has a positive x-coordinate and a negative y-coordinate, so it lies in Quadrant IV; the point Q(−5,3)Q(-5, 3) has a negative x-coordinate and a positive y-coordinate, so it lies in Quadrant II. Points lying exactly on an axis belong to neither quadrant.

Figure
The Cartesian plane with four labelled quadrants their sign patterns and two example points Q at minus five three and S at three minus five
The Cartesian plane and its four quadrants x-axis y-axis O (0, 0) Quadrant I ( + , + ) Quadrant II ( - , + ) Quadrant III ( - , - ) Quadrant IV ( + , - ) Q (-5, 3) S (3, -5) Each grid square is one unit; signs of x and y fix the quadrant without plotting

The distance between two points

Once every point is a pair of numbers, a natural question follows: how far apart are two points? If two points share the same y-coordinate, the segment joining them is horizontal, and the distance between them is simply the absolute difference of their x-coordinates. If they share the same x-coordinate, the segment is vertical, and the distance is the absolute difference of their y-coordinates.

∣x2−x1∣ (same y-coordinate),∣y2−y1∣ (same x-coordinate).|x_2 - x_1| \ \text{(same y-coordinate)}, \qquad |y_2 - y_1| \ \text{(same x-coordinate)}.

where: the absolute value bars matter because a "distance" is never negative, even though the raw subtraction x2−x1x_2 - x_1 can be. When the segment joining two points is not parallel to either axis, this shortcut no longer applies directly — and that is exactly the gap the first derivation below closes, using the Baudhāyana-Pythagoras Theorem to reach every pair of points in the plane, not just the axis-aligned ones.

Figure
A right triangle construction for the distance formula with legs equal to the horizontal and vertical gaps between two points and the hypotenuse equal to the distance between them
Distance formula from a right triangle A (x1, y1) D (x2, y2) F (x2, y1) x2 - x1 y2 - y1 distance AD AD squared equals (x2 - x1) squared plus (y2 - y1) squared, by the Baudhayana-Pythagoras Theorem
Derivation AThe distance formula between two points

The goal is to find a single algebraic rule that gives the straight-line distance between any two points A(x1,y1)A(x_1, y_1) and D(x2,y2)D(x_2, y_2) in the plane, whether or not the segment ADAD is parallel to either axis, using only the Baudhāyana-Pythagoras Theorem that you already know from Grade 8. The key trick is to build a right triangle whose hypotenuse is the segment ADAD itself, by drawing a third point that shares its x-coordinate with one point and its y-coordinate with the other.

Step 1. Introduce a helper point FF with coordinates (x2,y1)(x_2, y_1) — that is, FF sits directly below or above DD but shares its y-coordinate with AA. Since AA and FF share the y-coordinate y1y_1, the segment AFAF is horizontal; since DD and FF share the x-coordinate x2x_2, the segment FDFD is vertical. These two segments meet at FF at a right angle, so triangle AFDAFD is right-angled at FF.

Step 2. Measure the two legs. The horizontal leg AFAF is the distance moved along the x-axis direction, which is the absolute difference of the x-coordinates: AF=∣x2−x1∣AF = |x_2 - x_1|. The vertical leg FDFD is the distance moved along the y-axis direction, the absolute difference of the y-coordinates: FD=∣y2−y1∣FD = |y_2 - y_1|. Both of these are ordinary axis-aligned distances, exactly the shortcut already known from the previous section.

Step 3. Apply the Baudhāyana-Pythagoras Theorem to right triangle AFDAFD, right-angled at FF: the square of the hypotenuse equals the sum of the squares of the two legs. So AD2=AF2+FD2=(x2−x1)2+(y2−y1)2AD^2 = AF^2 + FD^2 = (x_2 - x_1)^2 + (y_2 - y_1)^2. Squaring the absolute values removes the need for the bars, since a square is never negative regardless of the sign of the quantity being squared.

Step 4. Take the square root of both sides to isolate the distance itself, remembering that a length must be the positive root:

AD=(x2−x1)2+(y2−y1)2.AD = \sqrt{(x_2 - x_1)^2 + (y_2 - y_1)^2}.

This is the distance formula. It works for every pair of points in the plane — including points with negative coordinates, since squaring a negative difference gives the same positive result as squaring its opposite. This is confirmed by the reflection check: reflecting triangle ADMADM in the y-axis flips every x-coordinate's sign, yet recomputing A′D′A'D', D′M′D'M' and M′A′M'A' with the formula reproduces exactly the same three lengths, 55, 29\sqrt{29} and 40\sqrt{40}, as the original triangle — reflection preserves distance.

Go deeper · Derivation B · 2 minThe midpoint formula for a line segment
Derivation BThe midpoint formula for a line segment

The goal is to find the coordinates of the point MM that sits exactly halfway between two given points S(x1,y1)S(x_1, y_1) and T(x2,y2)T(x_2, y_2), using only the idea of projecting points onto the axes — the same perpendicular-distance idea used to read coordinates in the first place, with no new machinery beyond it. The key observation is that projecting a segment onto an axis preserves the ratio in which a point divides it, so the midpoint of STST must project to the midpoint of the projections of SS and TT.

Step 1. Drop perpendiculars from SS, MM and TT onto the x-axis, landing at S1(x1,0)S_1(x_1, 0), M1(x,0)M_1(x, 0) and T1(x2,0)T_1(x_2, 0) respectively, where xx is the unknown x-coordinate of MM. Because SS, MM, TT are collinear with MM exactly midway between SS and TT, and the three perpendiculars are parallel to each other, the three foot-points S1S_1, M1M_1, T1T_1 are also collinear on the x-axis with M1M_1 exactly midway between S1S_1 and T1T_1 — parallel lines cut a transversal in the same ratio they cut any other transversal.

Step 2. Since M1M_1 is the midpoint of segment S1T1S_1T_1 on the x-axis, and distances on the x-axis are just x-coordinates, the x-coordinate of M1M_1 is the average of the x-coordinates of S1S_1 and T1T_1: x=x1+x22x = \dfrac{x_1 + x_2}{2}. This is exactly the x-coordinate of MM itself, since MM and M1M_1 share their x-coordinate by construction.

Step 3. Repeat the identical argument by dropping perpendiculars onto the y-axis instead. The foot-points there are midway in exactly the same way, giving the y-coordinate of MM as the average of the y-coordinates of SS and TT: y=y1+y22y = \dfrac{y_1 + y_2}{2}.

Step 4. Combine both coordinates into a single rule, the midpoint formula:

M=(x1+x22, y1+y22).M = \left(\frac{x_1 + x_2}{2},\ \frac{y_1 + y_2}{2}\right).

Check it against a simple case: if S(−3,0)S(-3, 0) and T(3,0)T(3, 0), the formula gives M=(−3+32,0+02)=(0,0)M = \left(\dfrac{-3+3}{2}, \dfrac{0+0}{2}\right) = (0, 0), the origin — exactly as expected for two points placed symmetrically about OO. The same averaging rule is what problems asking you to find an unknown endpoint, given the midpoint and one endpoint, are built on: it is one linear equation in each coordinate, easily reversed.

Worked examples

Board level - the three sides of a triangle by the distance formula

Find the lengths of the sides of triangle ADMADM, where A(3,4)A(3, 4), D(7,1)D(7, 1) and M(9,6)M(9, 6).

Step 1. Find ADAD. The horizontal gap is x2−x1=7−3=4x_2 - x_1 = 7 - 3 = 4 and the vertical gap is y2−y1=1−4=−3y_2 - y_1 = 1 - 4 = -3. By the distance formula, AD=42+(−3)2=16+9=25=5AD = \sqrt{4^2 + (-3)^2} = \sqrt{16 + 9} = \sqrt{25} = 5 units.

Step 2. Find DMDM. The horizontal gap from D(7,1)D(7,1) to M(9,6)M(9,6) is 9−7=29 - 7 = 2 and the vertical gap is 6−1=56 - 1 = 5. So DM=22+52=4+25=29DM = \sqrt{2^2 + 5^2} = \sqrt{4 + 25} = \sqrt{29} units.

Step 3. Find MAMA. The horizontal gap from M(9,6)M(9,6) to A(3,4)A(3,4) is 3−9=−63 - 9 = -6 and the vertical gap is 4−6=−24 - 6 = -2. So MA=(−6)2+(−2)2=36+4=40MA = \sqrt{(-6)^2 + (-2)^2} = \sqrt{36 + 4} = \sqrt{40} units, which simplifies to 2102\sqrt{10} units. Answer: AD=5AD = 5 units, DM=29DM = \sqrt{29} units and MA=210MA = 2\sqrt{10} units.

Board level - finding an unknown endpoint from the midpoint

M(−7,1)M(-7, 1) is the midpoint of segment ABAB, where A(3,−4)A(3, -4). Find the coordinates of B(x,y)B(x, y).

Step 1. Write the midpoint formula for the x-coordinates: the x-coordinate of MM is the average of the x-coordinates of AA and BB, so −7=3+x2-7 = \dfrac{3 + x}{2}.

Step 2. Solve for xx: multiply both sides by 22 to get −14=3+x-14 = 3 + x, so x=−14−3=−17x = -14 - 3 = -17.

Step 3. Repeat for the y-coordinates: 1=−4+y21 = \dfrac{-4 + y}{2}, so 2=−4+y2 = -4 + y, giving y=2+4=6y = 2 + 4 = 6. Answer: B=(−17,6)B = (-17, 6). A quick check confirms it: averaging 33 and −17-17 gives −7-7, and averaging −4-4 and 66 gives 11 — matching MM exactly.

Higher-order thinking (HOTS / olympiad-style) - testing three points for collinearity without plotting

Without drawing a graph, determine whether the points M(−3,−4)M(-3, -4), A(0,0)A(0, 0) and G(6,8)G(6, 8) lie on the same straight line.

Step 1. Compute all three pairwise distances using the distance formula. For MAMA: horizontal gap 0−(−3)=30 - (-3) = 3, vertical gap 0−(−4)=40 - (-4) = 4, so MA=32+42=9+16=25=5MA = \sqrt{3^2 + 4^2} = \sqrt{9+16} = \sqrt{25} = 5.

Step 2. For AGAG: horizontal gap 6−0=66 - 0 = 6, vertical gap 8−0=88 - 0 = 8, so AG=62+82=36+64=100=10AG = \sqrt{6^2 + 8^2} = \sqrt{36+64} = \sqrt{100} = 10. For MGMG: horizontal gap 6−(−3)=96 - (-3) = 9, vertical gap 8−(−4)=128 - (-4) = 12, so MG=92+122=81+144=225=15MG = \sqrt{9^2 + 12^2} = \sqrt{81+144} = \sqrt{225} = 15.

Step 3. Compare the sums. Three points are collinear, with the middle one lying between the other two, exactly when the two shorter distances add up to the longest one — this is the condition for three points to fail the strict triangle inequality and instead lie flat. Here MA+AG=5+10=15MA + AG = 5 + 10 = 15, which equals MGMG exactly. Answer: yes, MM, AA and GG are collinear, with AA lying between MM and GG, since MA+AG=MG=15MA + AG = MG = 15. Timing note: about ninety seconds once the distance formula is automatic. The whole method is three applications of the same formula followed by one addition check — no graph paper needed. The trap to avoid is comparing the wrong pair of sums: always add the two shorter distances and compare the total to the longest one, since collinearity fails if you instead check, say, MA+MGMA + MG against AGAG.

Common traps

Confusing which coordinate measures distance from which axis is the single most frequent slip: the x-coordinate is the distance from the y-axis, not from the x-axis, and the y-coordinate is the distance from the x-axis, not from the y-axis — the coordinate is named after the axis it runs along, but it measures distance from the other axis. Writing (y,x)(y, x) when (x,y)(x, y) was meant looks harmless but describes a different point whenever x≠yx \neq y; order inside the bracket is not optional, and swapping it silently reflects the point across the line y=xy = x. Losing track of signs when a point has negative coordinates is common in Quadrants II, III and IV: it helps to state the quadrant from the signs before plotting, as a check, rather than trusting a rushed sketch. In the distance formula, students sometimes forget to square the differences before adding, and instead add the raw differences first — but (x2−x1)2+(y2−y1)2\sqrt{(x_2-x_1)^2 + (y_2-y_1)^2} is never the same as (x2−x1+y2−y1)2\sqrt{(x_2-x_1+y_2-y_1)^2}; each gap must be squared on its own before the two squares are added. In the midpoint formula, a common error is subtracting instead of averaging, or dividing only one of the two sums by 22; both coordinates need their own average, computed separately. Forgetting that a point exactly on an axis has one coordinate equal to zero — not "small" or "close to zero," but exactly zero — causes mistakes when reading points like (x,0)(x, 0) or (0,y)(0, y) off a figure.

You should be able to…

  • name the x-axis, y-axis, origin and Cartesian plane, and explain how they are built from two perpendicular number lines
  • write the coordinates (x,y)(x, y) of any plotted point, and plot a point given its coordinates, including points with negative coordinates
  • state the special forms (x,0)(x, 0) and (0,y)(0, y) for points lying exactly on the x-axis and y-axis
  • name the quadrant of a point immediately from the signs of its x-coordinate and y-coordinate, without plotting
  • explain, in one sentence each, why the x-coordinate is measured from the y-axis and the y-coordinate is measured from the x-axis
  • derive the distance formula from the Baudhāyana-Pythagoras Theorem, starting from a helper point that completes a right triangle
  • apply the distance formula to find the length of any segment given the coordinates of its endpoints, including segments with negative coordinates
  • derive and apply the midpoint formula, and use it in reverse to find an unknown endpoint given the midpoint and the other endpoint
  • use the distance formula to test whether three given points are collinear, by comparing the sum of two distances with the third
  • explain why reflecting a figure in an axis preserves all distances between its points, using the squaring step in the distance formula

Ask the tutor: Try plotting your own triangle with three points of your choice and ask the tutor to check your distance-formula and midpoint-formula calculations step by step.

Why is it called the Cartesian plane if Indian mathematicians did so much of the groundwork?

The name honours René Descartes, who in 1637 formally showed that any point in a plane can be pinned down by exactly two numbers measured from two perpendicular lines, and that geometric shapes could then be described by algebraic equations. But the ingredients he combined had much older roots: the Sindhu-Sarasvati cities used precise North-South and East-West grids thousands of years earlier, Baudhāyana used perpendicular construction lines to develop what we now call the Baudhāyana-Pythagoras Theorem, Āryabhaṭa used coordinate distances to map the sky, and Brahmagupta's work on zero and negative numbers is exactly what makes the "below zero" and "left of zero" parts of the plane possible. Descartes's contribution was tying these threads into one clean algebraic system — the name reflects who formalised it in Europe, not who first had the idea of a grid.

What is the difference between abscissa and x-coordinate, or ordinate and y-coordinate?

There is no difference in meaning — they are simply two names for the same thing. The abscissa is the older, more formal term for the x-coordinate, and the ordinate is the older term for the y-coordinate. Both pairs of words describe exactly the same two numbers in the ordered pair (x,y)(x, y): the first number, the abscissa or x-coordinate, is the point's distance from the y-axis, and the second number, the ordinate or y-coordinate, is its distance from the x-axis. You will see "abscissa" and "ordinate" used in some textbooks and exam papers, so it is worth knowing both names even though "x-coordinate" and "y-coordinate" are more common in everyday use.

Why does the distance formula involve squares and a square root - where does it actually come from?

It comes directly from the Baudhāyana-Pythagoras Theorem, the same result you used in Grade 8 for right triangles with sides parallel to the axes. To find the distance between two points AA and DD that are not aligned with either axis, you build a right-angled triangle by adding a third point FF that shares an x-coordinate with one point and a y-coordinate with the other. The two legs of this triangle are then simple axis-aligned distances — ∣x2−x1∣|x_2-x_1| and ∣y2−y1∣|y_2-y_1| — and the hypotenuse is exactly the segment ADAD you want. The Baudhāyana-Pythagoras Theorem says the square of the hypotenuse equals the sum of the squares of the legs, and taking a square root at the end undoes the squaring to hand back an actual length.

How do I quickly figure out which quadrant a point is in without drawing it?

Look only at the signs of the two coordinates, in order. If both are positive, the point is in Quadrant I. If the x-coordinate is negative and the y-coordinate is positive, it is Quadrant II. If both are negative, it is Quadrant III. If the x-coordinate is positive and the y-coordinate is negative, it is Quadrant IV. A useful way to remember the order is that the quadrants are numbered anticlockwise starting from the top-right, so as you move round from Quadrant I to II to III to IV, exactly one sign flips at a time, starting with the x-coordinate and then the y-coordinate. If either coordinate is exactly zero, the point sits on an axis and belongs to no quadrant at all.

Where this leads