Coordinate Geometry

Distance between two points, internal division, polar coordinates and the direction between two points (atan2).

Formula
Distance Between Two Points
The distance between two points comes from the Pythagorean theorem.
d = √((x₂ − x₁)² + (y₂ − y₁)²)
Section Formula and Midpoint
The point dividing the segment between two points in the ratio m : n.
P = ((n x₁ + m x₂) ÷ (m + n), (n y₁ + m y₂) ÷ (m + n))
Polar and Cartesian Coordinates
Converts a point given by distance r and angle θ into x and y.
x = r cos θ  y = r sin θ
Direction Between Two Points (atan2)
The angle from one point to another, in the range −180° to 180°.
θ = atan2(y₂ − y₁, x₂ − x₁)

Math Formula Quiz All formulas

Sources

Checked: 2026-11-29