{
  "id": "intermediate-value-theorem",
  "title": "Intermediate Value Theorem",
  "lang": "en",
  "source_lang": "en",
  "summary": "The intermediate value theorem states that a continuous real-valued function on an interval attains every value between any two of its values.",
  "category": "mathematics",
  "subcategory": "analysis",
  "type": "concept",
  "aliases": [
    "Intermediate-value theorem",
    "Bolzano’s intermediate value theorem"
  ],
  "generated_at": "2026-11-05",
  "model": "pro/gpt-6.1-sol",
  "url": "https://aiwiki.page/en/intermediate-value-theorem/",
  "translations": {
    "zh-Hans": {
      "url": "https://aiwiki.page/zh/intermediate-value-theorem/",
      "json": "https://aiwiki.page/zh/intermediate-value-theorem.json"
    }
  },
  "sections": [
    {
      "heading": "",
      "text": "The intermediate value theorem is a fundamental result in mathematical analysis stating that a continuous function with real values cannot pass from one value to another without taking every value between them. It provides a basic method for proving that equations have solutions, underlies numerical root-finding by interval subdivision, and expresses the connection between continuity and connectedness."
    },
    {
      "heading": "Statement",
      "text": "Let \\(a<b\\), and let \\(f:[a,b]\\to\\mathbb{R}\\) be continuous, where \\(\\mathbb{R}\\) denotes the real numbers. If \\(L\\) satisfies\n\n\\[\\min\\{f(a),f(b)\\}\\leq L\\leq\\max\\{f(a),f(b)\\},\\]\n\nthen there is at least one \\(c\\in[a,b]\\) such that\n\n\\[f(c)=L.\\]\n\nIf \\(L\\) lies strictly between \\(f(a)\\) and \\(f(b)\\), then such a point lies in \\((a,b)\\).\n\nAn equivalent formulation is that the image of an interval under a continuous real-valued function is itself an interval. Here an interval means a subset of the real line containing every real number between any two of its points. This formulation applies to open, closed, bounded, and unbounded intervals: the theorem can be applied to the closed segment joining any two points in the domain.\n\nThe theorem guarantees existence, not uniqueness. It does not require differentiability, monotonicity, or a formula for the function.\n\nThe sign-change formulation\n\nA particularly important special case states that if \\(f\\) is continuous on \\([a,b]\\) and\n\n\\[f(a)f(b)<0,\\]\n\nthen there is a \\(c\\in(a,b)\\) with \\(f(c)=0\\). This is often called Bolzano’s theorem or the Bolzano sign-change theorem.\n\nThe general intermediate value theorem follows from this special case by applying it to \\(g(x)=f(x)-L\\), with endpoint equality handled separately."
    },
    {
      "heading": "Geometric meaning",
      "text": "On the graph of a function, the theorem says that a continuous curve joining heights \\(f(a)\\) and \\(f(b)\\) must meet every horizontal line whose height lies between them.\n\nThe familiar description that the graph can be drawn “without lifting the pencil” is only an informal illustration of continuity. The precise theorem concerns function values, not the physical act of drawing a curve.\n\nThe interval condition matters. A function may be continuous on a disconnected domain and still omit values between two of its outputs. For example, the function\n\n\\[f(x)= \\begin{cases} -1,&x<0,\\\\ 1,&x>0 \\end{cases}\\]\n\nis continuous on \\(\\mathbb{R}\\setminus\\{0\\}\\), but never takes the value \\(0\\). The missing point separates its domain into two parts."
    },
    {
      "heading": "Proof from completeness",
      "text": "A standard proof uses the least upper bound property of the real numbers: every nonempty subset of \\(\\mathbb{R}\\) that is bounded above has a least upper bound.\n\nSuppose\n\n\\[f(a)<L<f(b).\\]\n\nDefine\n\n\\[S=\\{x\\in[a,b]:f(x)<L\\}.\\]\n\nThe set \\(S\\) contains \\(a\\), so it is nonempty, and it is bounded above by \\(b\\). Let\n\n\\[c=\\sup S.\\]\n\nContinuity at \\(a\\), together with \\(f(a)<L\\), ensures that \\(S\\) contains points greater than \\(a\\). Continuity at \\(b\\), together with \\(f(b)>L\\), ensures that an interval immediately to the left of \\(b\\) contains no points of \\(S\\). Hence \\(a<c<b\\).\n\nThere are three possibilities for \\(f(c)\\):\n\n- If \\(f(c)<L\\), continuity implies that \\(f(x)<L\\) for points \\(x\\) sufficiently close to \\(c\\), including some \\(x>c\\). Such a point belongs to \\(S\\), contradicting the fact that \\(c\\) is an upper bound.\n- If \\(f(c)>L\\), continuity gives a neighborhood of \\(c\\) in which \\(f(x)>L\\). But the definition of a supremum requires points of \\(S\\) arbitrarily close to \\(c\\) from below, again a contradiction.\n- Therefore \\(f(c)=L\\).\n\nThe case \\(f(a)>L>f(b)\\) follows by applying the same argument to \\(-f\\).\n\nWhy the real numbers matter\n\nCompleteness is essential. Over the rational numbers, the analogous statement fails.\n\nConsider\n\n\\[f(x)=x^2-2\\]\n\non \\([1,2]\\cap\\mathbb{Q}\\). This function is continuous in the topology inherited from the real line, and \\(f(1)=-1\\), while \\(f(2)=2\\). Nevertheless, no rational input satisfies \\(f(x)=0\\), because \\(\\sqrt{2}\\) is an irrational number.\n\nThus continuity alone, without the relevant completeness and interval structure, is insufficient."
    },
    {
      "heading": "Applications",
      "text": "Existence of roots\n\nFor the polynomial\n\n\\[p(x)=x^3-x-2,\\]\n\nthe values \\(p(1)=-2\\) and \\(p(2)=4\\) have opposite signs. Since polynomials are continuous, the theorem guarantees a root in \\((1,2)\\), without requiring its explicit calculation.\n\nMore generally, every real polynomial of odd degree has at least one real root. Its leading term forces opposite signs for sufficiently large positive and negative inputs.\n\nFor two continuous functions \\(f\\) and \\(g\\), applying the theorem to \\(f-g\\) proves that their graphs intersect whenever their relative order reverses between two endpoints.\n\nBisection and numerical root-finding\n\nThe bisection method turns the sign-change theorem into an algorithm. Starting with a continuous function whose values at \\(a\\) and \\(b\\) have opposite signs:\n\n- Evaluate the midpoint \\(m=(a+b)/2\\).\n- Stop if \\(f(m)=0\\).\n- Otherwise retain the half-interval whose endpoint values have opposite signs.\n- Repeat.\n\nEach retained interval contains a root. After \\(n\\) subdivisions, its length is\n\n\\[\\frac{b-a}{2^n}.\\]\n\nThe midpoint of that interval therefore approximates a root with error at most\n\n\\[\\frac{b-a}{2^{n+1}}.\\]\n\nIn numerical analysis, bisection is valued for its reliable bracketing guarantee. Unlike Newton’s method, it requires no derivative. Actual computer implementations must also account for floating-point arithmetic: an incorrectly determined sign can invalidate the bracket.\n\nFixed points on an interval\n\nThe theorem gives a simple fixed-point result. If \\(f:[a,b]\\to[a,b]\\) is continuous, then some \\(c\\in[a,b]\\) satisfies \\(f(c)=c\\).\n\nSet \\(g(x)=f(x)-x\\). Because \\(f(a)\\geq a\\) and \\(f(b)\\leq b\\),\n\n\\[g(a)\\geq0,\\qquad g(b)\\leq0.\\]\n\nEither an endpoint is already a zero, or the intermediate value theorem supplies an interior zero."
    },
    {
      "heading": "What the theorem does not imply",
      "text": "Uniqueness\n\nA continuous function can take the same intermediate value many times, or even infinitely many times. Uniqueness requires additional assumptions. For example, a strictly monotonic function takes each value at most once.\n\nA necessary sign change\n\nOpposite endpoint signs are sufficient for a root, but not necessary. The function \\(f(x)=x^2\\) has a root in \\([-1,1]\\), although both endpoint values are positive.\n\nAttainment of extreme values\n\nThe intermediate value theorem does not assert that a function attains a maximum or minimum. That is the role of the extreme value theorem for continuous real-valued functions on compact intervals.\n\nFor example, \\(f(x)=x\\) on \\((0,1)\\) has the intermediate value property but has neither a maximum nor a minimum.\n\nDifferentiability or continuity from the conclusion alone\n\nThe theorem assumes continuity, not differentiability. A function may have corners and still satisfy its hypotheses.\n\nConversely, having the intermediate value property does not imply continuity. For example,\n\n\\[h(x)= \\begin{cases} \\sin(1/x),&x\\ne0,\\\\ 0,&x=0 \\end{cases}\\]\n\nis discontinuous at \\(0\\), yet has the intermediate value property on every interval."
    },
    {
      "heading": "Topological interpretation and related results",
      "text": "In topology, the theorem is a special case of the statement that a continuous image of a connected space is connected. The connected subsets of the real line are precisely the intervals, including singletons and, by convention, the empty set.\n\nThis yields a broader statement: if \\(X\\) is connected and \\(f:X\\to\\mathbb{R}\\) is continuous, then \\(f(X)\\) is an interval. The domain need not itself be a subset of the real line.\n\nFor vector-valued functions, connectedness of the image still holds, but the image need not contain the straight line segment between two output points. A continuous path along a semicircle, for example, joins its endpoints without passing through their midpoint.\n\nThe Darboux theorem establishes a related but distinct result: every derivative has the intermediate value property, even when the derivative is discontinuous. Functions possessing this property are therefore also called Darboux functions.\n\nThe intermediate value theorem should also be distinguished from the mean value theorem. The former concerns attained function values under continuity; the latter concerns a derivative equaling an average rate of change under additional differentiability assumptions."
    },
    {
      "heading": "Historical development",
      "text": "Bernard Bolzano published an influential analytical proof of the sign-change result in 1817, seeking to establish it without relying on geometric intuition. Augustin-Louis Cauchy also treated intermediate-value results in his 1821 Cours d’analyse.\n\nModern proofs commonly use the least upper bound property or nested intervals. These formulations make explicit how the theorem depends on the completeness of the real numbers, connecting an elementary fact about continuous functions with the foundations of real analysis."
    }
  ],
  "links": [
    "mathematical-analysis",
    "continuous-function",
    "real-number",
    "image-of-a-function",
    "graph-of-a-function",
    "mathematical-proof",
    "rational-number",
    "irrational-number",
    "polynomial",
    "bisection-method",
    "numerical-analysis",
    "newtons-method",
    "floating-point-arithmetic",
    "fixed-point",
    "monotonic-function",
    "extreme-value-theorem",
    "topology",
    "connected-space",
    "derivative",
    "mean-value-theorem",
    "augustin-louis-cauchy"
  ],
  "sources": [],
  "license": "https://creativecommons.org/licenses/by/4.0/"
}