{
  "id": "number-line",
  "title": "Number Line",
  "lang": "en",
  "source_lang": "en",
  "summary": "A number line represents real numbers as points on an oriented straight line, making order, distance, and arithmetic visible geometrically.",
  "category": "mathematics",
  "subcategory": "geometry",
  "type": "concept",
  "aliases": [
    "Real number line",
    "Real line"
  ],
  "generated_at": "2026-11-04",
  "model": "pro/gpt-6.1-sol",
  "url": "https://aiwiki.page/en/number-line/",
  "translations": {
    "zh-Hans": {
      "url": "https://aiwiki.page/zh/number-line/",
      "json": "https://aiwiki.page/zh/number-line.json"
    }
  },
  "sections": [
    {
      "heading": "",
      "text": "A number line is a straight line on which every real number is represented by a unique point, and every point represents a unique real number. An origin represents zero, a chosen direction indicates increasing values, and a fixed unit length determines the scale. The number line connects numbers with geometry, providing a model for numerical order, distance, and arithmetic. In elementary mathematics it is usually drawn horizontally, with values increasing to the right, although its orientation is a convention rather than an essential property."
    },
    {
      "heading": "Construction and conventions",
      "text": "Three choices establish a number line:\n\n- Origin: a point designated \\(0\\).\n- Positive direction: one of the two directions along the line.\n- Unit length: the distance from \\(0\\) to the point designated \\(1\\).\n\nOnce these choices are fixed, a real number \\(x\\) corresponds to the point at distance \\(|x|\\) units from the origin, in the positive direction if \\(x>0\\) and the negative direction if \\(x<0\\).\n\nA typical diagram labels equally spaced integers:\n\n←────┬────┬────┬────┬────┬────┬────→\n    −3   −2   −1    0    1    2    3\n\nThe arrows indicate that the line continues indefinitely in both directions. Tick marks help show the scale; they do not imply that only the marked points belong to the line. Numbers between the ticks are represented as well.\n\nThe line need not be horizontal. A vertical number line commonly has increasing values upward. Changing the orientation, unit, or location of the origin changes the coordinate assignment, not the underlying geometric line."
    },
    {
      "heading": "Which numbers appear on the line?",
      "text": "Different number systems occupy different subsets of the number line.\n\n- Natural numbers appear at equally spaced positions on the nonnegative side, with the inclusion of zero depending on convention.\n- Integers extend this pattern in both directions.\n- Rational numbers occupy positions expressible as \\(p/q\\), where \\(p\\) and \\(q\\) are integers and \\(q\\ne0\\).\n- Irrational numbers, such as \\(\\sqrt{2}\\), occupy the remaining positions.\n\nA fraction can be located by subdividing a unit interval into equal parts. For example, \\(3/4\\) lies three of four equal subdivisions to the right of zero. The point \\(\\sqrt{2}\\), by contrast, can be constructed geometrically as the length of the diagonal of a unit square and then transferred to the line.\n\nThe rational numbers form a dense set: between any two distinct real numbers there is a rational number. Irrational numbers are also dense. Density does not mean that the rationals alone fill the line. The point corresponding to \\(\\sqrt{2}\\), for instance, has no rational coordinate.\n\nIn the standard mathematical model, the complete line is identified with \\(\\mathbb{R}\\), the set of all real numbers. It contains no points corresponding to nonreal complex numbers; representing all complex numbers requires a plane rather than a single real coordinate axis."
    },
    {
      "heading": "Order, distance, and magnitude",
      "text": "Numerical order\n\nWith values increasing to the right,\n\n\\[a<b\\]\n\nmeans that the point \\(a\\) lies to the left of the point \\(b\\).\n\nThis interpretation is especially useful for negative numbers. For example, \\(-5<-2\\), because \\(-5\\) is farther to the left. A number’s position in the ordering is distinct from its distance from zero: \\(-5\\) is smaller than \\(-2\\), but has greater magnitude.\n\nAbsolute value and distance\n\nThe absolute value \\(|x|\\) is the distance from \\(x\\) to the origin. The distance between two points \\(a\\) and \\(b\\) is\n\n\\[d(a,b)=|b-a|.\\]\n\nThus, the distance from \\(-3\\) to \\(2\\) is\n\n\\[|2-(-3)|=5.\\]\n\nDistance is nonnegative and does not depend on the direction in which it is measured. By contrast, the signed displacement from \\(a\\) to \\(b\\) is \\(b-a\\).\n\nThis distance makes the real line a metric space and agrees with ordinary one-dimensional Euclidean distance."
    },
    {
      "heading": "Arithmetic as geometric operations",
      "text": "The number line gives geometric interpretations of basic arithmetic.\n\nAddition and subtraction\n\nAdding \\(b\\) to \\(a\\) means starting at \\(a\\) and moving by the signed displacement \\(b\\). A positive \\(b\\) moves right; a negative \\(b\\) moves left. For example,\n\n\\[-2+5=3.\\]\n\nSubtraction reverses the corresponding movement:\n\n\\[a-b=a+(-b).\\]\n\nFor instance, \\(2-(-3)=5\\): subtracting a displacement of three units to the left is equivalent to moving three units to the right.\n\nMultiplication and division\n\nMultiplication by a positive number \\(c\\) scales distances from the origin by the factor \\(c\\). Multiplication by a negative number also reflects points across the origin. Consequently:\n\n- \\(x\\mapsto 2x\\) doubles distances from zero;\n- \\(x\\mapsto \\tfrac12x\\) halves those distances;\n- \\(x\\mapsto -x\\) reflects the line across zero.\n\nMultiplication by zero sends every point to the origin.\n\nDivision by a nonzero number reverses multiplication by that number. Thus, division by \\(2\\) halves signed coordinates. There is no inverse scaling operation for multiplication by zero, which is consistent with division by zero being undefined in ordinary real arithmetic.\n\nMore generally, a transformation\n\n\\[x\\mapsto ax+b\\]\n\nis an affine map. When \\(a\\ne0\\), it combines scaling, possible reflection, and translation."
    },
    {
      "heading": "Intervals and inequalities",
      "text": "Number lines provide a direct way to display sets defined by inequalities. For \\(a<b\\), common interval notations are:\n\nNotation | Condition | Endpoints\n\\((a,b)\\) | \\(a<x<b\\) | Both excluded\n\\([a,b]\\) | \\(a\\le x\\le b\\) | Both included\n\\([a,b)\\) | \\(a\\le x<b\\) | Only \\(a\\) included\n\\((a,b]\\) | \\(a<x\\le b\\) | Only \\(b\\) included\n\nDiagrams commonly use an open circle for an excluded endpoint and a filled circle for an included endpoint.\n\nUnbounded intervals include\n\n\\[(a,\\infty)=\\{x\\in\\mathbb{R}:x>a\\}\\]\n\nand\n\n\\[(-\\infty,b]=\\{x\\in\\mathbb{R}:x\\le b\\}.\\]\n\nThe symbols \\(\\infty\\) and \\(-\\infty\\) are not real numbers or ordinary endpoints on the number line. Parentheses are therefore used beside them.\n\nAn absolute-value inequality describes distance. For \\(r>0\\),\n\n\\[|x-a|<r \\quad\\Longleftrightarrow\\quad a-r<x<a+r.\\]\n\nIts solution is the open interval centered at \\(a\\) with radius \\(r\\)."
    },
    {
      "heading": "The real line in analysis and topology",
      "text": "The number line becomes a foundational object in mathematical analysis. Its essential structural feature is the completeness of the real numbers: every nonempty set of real numbers that is bounded above has a least upper bound.\n\nCompleteness distinguishes the real line from the rational numbers. Rational approximations to \\(\\sqrt{2}\\) can approach a position that has no rational coordinate, whereas that position exists in \\(\\mathbb{R}\\). Equivalently, with the usual distance, every Cauchy sequence of real numbers converges to a real number.\n\nThe usual topology of the real line is generated by open intervals: a set is open precisely when each of its points lies in an open interval contained in the set. This structure supports the definitions of limits and continuous functions.\n\nThe real line is a connected space: it cannot be separated into two disjoint, nonempty open subsets. More specifically, its connected subsets are exactly the intervals, including single points and unbounded intervals."
    },
    {
      "heading": "Applications and limitations",
      "text": "Number lines are widely used to teach signed numbers, fractions, magnitude, and inequalities. They also serve as coordinate models for quantities such as time, position along a straight path, and temperature relative to a chosen scale.\n\nIn a Cartesian coordinate system, each coordinate axis is a number line. Two perpendicular axes locate points in a plane; three locate points in three-dimensional space. A function graph pairs positions on an input axis with positions on an output axis.\n\nA drawn number line is necessarily incomplete as a picture: it displays only a finite region, finitely many labels, and limited visual precision. Its mathematical meaning nevertheless includes all real coordinates and indefinite extension.\n\nEqual numerical differences must correspond to equal geometric distances on an ordinary number line. A logarithmic axis uses a different rule: equal distances represent equal ratios rather than equal differences. Such an axis is useful for displaying quantities across many orders of magnitude, but it is not a uniformly scaled number line for the original values."
    }
  ],
  "links": [
    "real-number",
    "geometry",
    "integer",
    "natural-number",
    "rational-number",
    "irrational-number",
    "fraction",
    "dense-set",
    "complex-number",
    "absolute-value",
    "metric-space",
    "euclidean-distance",
    "arithmetic",
    "affine-map",
    "mathematical-analysis",
    "cauchy-sequence",
    "topology",
    "limit",
    "continuous-function",
    "connected-space",
    "cartesian-coordinate-system",
    "graph-of-a-function"
  ],
  "sources": [],
  "license": "https://creativecommons.org/licenses/by/4.0/"
}