Taxicab geometry or Manhattan geometry is geometry where the familiar Euclidean distance is ignored, and the distance between two points is instead defined to be the sum of the absolute differences of their respective Cartesian coordinates, a distance function (or metric) called the taxicab distance, Manhattan distance, or city block distance. The name refers to the island of Manhattan, or generically any planned city with a rectangular grid of streets, in which a taxicab can only travel along grid directions. In taxicab geometry, the distance between any two points equals the length of their shortest grid path. This different definition of distance also leads to a different definition of the length of a curve, for which a line segment between any two points has the same length as a grid path between those points rather than its Euclidean length. The taxicab distance is also sometimes known as rectilinear distance or L1 distance (see Lp space). This geometry has been used in regression analysis since the 18th century, and is often referred to as LASSO. Its geometric interpretation dates to non-Euclidean geometry of the 19th century and is due to Hermann Minkowski. In the two-dimensional real coordinate space ℝ2, the taxicab distance between two points (x1,y1) and (x2,y2) is |x1−x2|+|y1−y2|. That is, it is the sum of the absolute values of the differences in both coordinates.
Formal definition The taxicab distance, dT, between two points 𝐩=(p1,p2,…,pn) and 𝐪=(q1,q2,…,qn) in an n-dimensional real coordinate space with fixed Cartesian coordinate system, is the sum of the lengths of the projections of the line segment between the points onto the coordinate axes. More formally,dT(𝐩,𝐪)=‖𝐩−𝐪‖T=∑i=1n|pi−qi|For example, in ℝ2, the taxicab distance between 𝐩=(p1,p2) and 𝐪=(q1,q2) is |p1−q1|+|p2−q2|.
History The L1 metric was used in regression analysis, as a measure of goodness of fit, in 1757 by Roger Joseph Boscovich. The interpretation of it as a distance between points in a geometric space dates to the late 19th century and the development of non-Euclidean geometries. Notably it appeared in 1910 in the works of both Frigyes Riesz and Hermann Minkowski. The formalization of Lp spaces, which include taxicab geometry as a special case, is credited to Riesz. In developing the geometry of numbers, Hermann Minkowski established his Minkowski inequality, stating that these spaces define normed vector spaces. The name taxicab geometry was introduced by Karl Menger in a 1952 booklet You Will Like Geometry, accompanying a geometry exhibit intended for the general public at the Museum of Science and Industry in Chicago.
Properties Thought of as an additional structure layered on Euclidean space, taxicab distance depends on the orientation of the coordinate system and is changed by Euclidean rotation of the space, but is unaffected by translation or axis-aligned reflections. Taxicab geometry satisfies all of Hilbert's axioms (a formalization of Euclidean geometry) except that the congruence of angles cannot be defined to precisely match the Euclidean concept, and under plausible definitions of congruent taxicab angles, the side-angle-side axiom is not satisfied as in general triangles with two taxicab-congruent sides and a taxicab-congruent angle between them are not congruent triangles.
Spheres
In any metric space, a sphere is a set of points at a fixed distance, the radius, from a specific center point. Whereas a Euclidean sphere is round and rotationally symmetric, under the taxicab distance, the shape of a sphere is a cross-polytope, the n-dimensional generalization of a regular octahedron, whose points 𝐩 satisfy the equation: dT(𝐩,𝐜)=∑i=1n|pi−ci|=r, where 𝐜 is the center and r is the radius. Points 𝐩 on the unit sphere, a sphere of radius 1 centered at the origin, satisfy the equation dT(𝐩,𝟎)=∑i=1n|pi|=1. In two dimensional taxicab geometry, the sphere (called a circle) is a square oriented diagonally to the coordinate axes. The image to the right shows in red the set of all points on a square grid with a fixed distance from the blue center. As the grid is made finer, the red points become more numerous, and in the limit tend to a continuous tilted square. Each side has taxicab length 2r, so the circumference is 8r. Thus, in taxicab geometry, the value of the analog of the circle constant π, the ratio of circumference to diameter, is equal to 4. A closed ball (or closed disk in the 2-dimensional case) is a filled-in sphere, the set of points at distance less than or equal to the radius from a specific center. For cellular automata on a square grid, a taxicab disk is the von Neumann neighborhood of range r of its center. A circle of radius r for the Chebyshev distance (L∞ metric) on a plane is also a square with side length 2r parallel to the coordinate axes, so planar Chebyshev distance can be viewed as equivalent by rotation and scaling to planar taxicab distance. However, this equivalence between L1 and L∞ metrics does not generalize to higher dimensions. Whenever each pair in a collection of these circles has a nonempty intersection, there exists an intersection point for the whole collection; therefore, the Manhattan distance forms an injective metric space.
Arc length Let y=f(x) be a continuously differentiable function. Let s be the taxicab arc length of the graph of f on some interval [a,b]. Take a partition of the interval into equal infinitesimal subintervals, and let Δsi be the taxicab length of the i-th subarc. Then Δsi=Δxi+Δyi=Δxi+|f(xi)−f(xi−1)|. By the mean value theorem, there exists some point xi∗ between xi and xi−1 such that f(xi)−f(xi−1)=f′(xi∗)Δxi. Then the previous equation can be written Δsi=Δxi+|f′(xi∗)|Δxi=Δxi(1+|f′(xi∗)|).
… excerpt ends here. Continue reading the full article.





