Real World Maths Busters

The Maths Behind Everyday Life

The story, the formula and a worked example — see exactly where this maths shows up in the world around you.

Back to all stories
Technology 3 min read

Your Phone Knows Exactly Where You Tap

A touchscreen maps your finger to an (x, y) coordinate grid.

Under the glass, a grid of sensors detects where you touch. Your finger’s position is reported as an (x, y) coordinate — pure maths driving every swipe and pinch.

The Coordinate System

A phone with a 1080 × 2400 pixel screen maps touches to coordinates from (0, 0) at the top-left to (1079, 2399) at the bottom-right. A pinch-to-zoom tracks two points and computes the distance between them.

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

Distance between two touch points

Two fingers at (200, 400) and (600, 800)

  1. 1

    Differences

    Δx=400,  Δy=400\Delta x = 400, \; \Delta y = 400
  2. 2

    Distance

    4002+4002=320,000≈566 pixels\sqrt{400^2 + 400^2} = \sqrt{320{,}000} \approx 566 \text{ pixels}
Answer

About 566 pixels apart

The takeaway

Every touch is a coordinate pair. Pinch, swipe, and drag are all geometry in disguise.

Back to all stories