{
  "id": "rolles-theorem",
  "title": "Rolle’s Theorem",
  "lang": "en",
  "source_lang": "en",
  "summary": "Rolle’s theorem states that a continuous real-valued function, differentiable inside an interval and equal at its endpoints, has a zero derivative somewhere inside.",
  "category": "mathematics",
  "subcategory": "analysis",
  "type": "concept",
  "aliases": [
    "Rolle’s lemma"
  ],
  "generated_at": "2026-11-04",
  "model": "pro/gpt-6.1-sol",
  "url": "https://aiwiki.page/en/rolles-theorem/",
  "translations": {
    "zh-Hans": {
      "url": "https://aiwiki.page/zh/rolles-theorem/",
      "json": "https://aiwiki.page/zh/rolles-theorem.json"
    }
  },
  "sections": [
    {
      "heading": "",
      "text": "Rolle’s theorem is a fundamental result in calculus stating that a real-valued function continuous on a closed interval, differentiable throughout its interior, and taking equal values at the two endpoints must have derivative zero at some interior point. Geometrically, a sufficiently smooth curve that returns to its starting height must have at least one horizontal tangent between its endpoints. The theorem underlies the mean value theorem and many results about the zeros, growth, and approximation of functions."
    },
    {
      "heading": "Statement",
      "text": "Let \\(a,b\\in\\mathbb{R}\\) with \\(a<b\\), and let \\(f:[a,b]\\to\\mathbb{R}\\) be a function. Suppose that:\n\n- \\(f\\) is continuous on the closed interval \\([a,b]\\);\n- \\(f\\) is differentiable on the open interval \\((a,b)\\);\n- \\(f(a)=f(b)\\).\n\nThen there exists at least one \\(c\\in(a,b)\\) such that\n\n\\[f'(c)=0.\\]\n\nHere \\(f'\\) denotes the derivative of \\(f\\). Differentiability at the endpoints is not required, nor is continuity of the derivative.\n\nThe conclusion is an existence statement: it does not specify the location of \\(c\\), guarantee that \\(c\\) is unique, or provide a procedure for computing it."
    },
    {
      "heading": "Geometric interpretation",
      "text": "On the graph of a function, the equality \\(f(a)=f(b)\\) means that the endpoints lie at the same height. Rolle’s theorem guarantees a horizontal tangent somewhere strictly between them.\n\nIf the function is constant, every interior point satisfies the conclusion. If it is not constant, it takes a value either above or below its common endpoint value. It must therefore attain a highest or lowest value at an interior point, where differentiability forces the tangent to be horizontal.\n\nThe point supplied by the theorem need not be the midpoint of the interval. A zero derivative also does not, by itself, imply a local maximum or minimum: a function can have a horizontal tangent without changing its direction of increase or decrease."
    },
    {
      "heading": "Proof",
      "text": "The standard proof combines the extreme value theorem with the fact that a differentiable function has derivative zero at an interior local extremum.\n\nBecause \\(f\\) is continuous on the closed bounded interval \\([a,b]\\), it attains both a maximum and a minimum there.\n\nIf \\(f\\) is constant, then \\(f'(x)=0\\) for every \\(x\\in(a,b)\\).\n\nOtherwise, some value of \\(f\\) differs from \\(f(a)=f(b)\\). If some value is greater than this common endpoint value, a global maximum must occur at an interior point. If some value is smaller, a global minimum must occur at an interior point. Thus there is an interior extremum \\(c\\).\n\nFor example, suppose \\(c\\) is a local maximum. For sufficiently small \\(h>0\\),\n\n\\[\\frac{f(c+h)-f(c)}{h}\\leq 0,\\]\n\nwhereas for sufficiently small \\(h<0\\),\n\n\\[\\frac{f(c+h)-f(c)}{h}\\geq 0.\\]\n\nSince the derivative exists at \\(c\\), these one-sided limits agree. Their common value must be both nonpositive and nonnegative, so\n\n\\[f'(c)=0.\\]\n\nThe argument for a local minimum is analogous."
    },
    {
      "heading": "Examples",
      "text": "A quadratic function\n\nFor the polynomial\n\n\\[f(x)=x^2-1,\\qquad -1\\leq x\\leq 1,\\]\n\nthe endpoint values are \\(f(-1)=f(1)=0\\). Since\n\n\\[f'(x)=2x,\\]\n\nthe unique point satisfying the conclusion is \\(c=0\\).\n\nA trigonometric function\n\nFor\n\n\\[f(x)=\\sin x,\\qquad 0\\leq x\\leq \\pi,\\]\n\nthe endpoint values are both zero. Its derivative is \\(\\cos x\\), which vanishes at \\(c=\\pi/2\\).\n\nOn a longer interval, there may be several such points. For example, on \\([0,2\\pi]\\), the same function has derivative zero at both \\(\\pi/2\\) and \\(3\\pi/2\\).\n\nA function not differentiable at the endpoints\n\nConsider\n\n\\[f(x)=\\sqrt{1-x^2},\\qquad -1\\leq x\\leq 1.\\]\n\nIt is continuous on the entire interval and differentiable in its interior, with\n\n\\[f'(x)=-\\frac{x}{\\sqrt{1-x^2}}.\\]\n\nAlthough it has no finite one-sided derivative at either endpoint, Rolle’s theorem applies and gives \\(c=0\\)."
    },
    {
      "heading": "Why the hypotheses matter",
      "text": "Each hypothesis is needed for the theorem as a general guarantee. A function failing a hypothesis may still have a point with derivative zero, but that conclusion is no longer assured.\n\nFailure of continuity at an endpoint\n\nDefine\n\n\\[f(x)= \\begin{cases} x,&0\\leq x<1,\\\\ 0,&x=1. \\end{cases}\\]\n\nThen \\(f(0)=f(1)=0\\), and \\(f\\) is differentiable throughout \\((0,1)\\). However, \\(f'(x)=1\\) everywhere in that interval. The failure is the discontinuity at \\(1\\).\n\nFailure of differentiability in the interior\n\nFor\n\n\\[f(x)=|x|,\\qquad -1\\leq x\\leq 1,\\]\n\nthe function is continuous and has equal endpoint values. Its derivative is \\(-1\\) for \\(x<0\\) and \\(1\\) for \\(x>0\\), but is undefined at \\(0\\). There is no point where the derivative is zero. The corner in the absolute value function prevents the theorem from applying.\n\nUnequal endpoint values\n\nThe function \\(f(x)=x\\) on \\([0,1]\\) is continuous and differentiable, but its derivative is always \\(1\\). Its endpoint values are unequal."
    },
    {
      "heading": "Relation to the mean value theorem",
      "text": "Rolle’s theorem is the equal-endpoint case of the mean value theorem. Conversely, the general mean value theorem follows from Rolle’s theorem by subtracting the line joining the endpoints.\n\nSuppose \\(f\\) is continuous on \\([a,b]\\) and differentiable on \\((a,b)\\). Define\n\n\\[g(x)=f(x)-f(a)-\\frac{f(b)-f(a)}{b-a}(x-a).\\]\n\nThen \\(g(a)=g(b)=0\\). Applying Rolle’s theorem gives an interior point \\(c\\) for which\n\n\\[0=g'(c) =f'(c)-\\frac{f(b)-f(a)}{b-a}.\\]\n\nTherefore,\n\n\\[f'(c)=\\frac{f(b)-f(a)}{b-a}.\\]\n\nGeometrically, the horizontal tangent guaranteed for \\(g\\) corresponds to a tangent to \\(f\\) parallel to its endpoint secant."
    },
    {
      "heading": "Applications",
      "text": "Zeros of functions and their derivatives\n\nIf a differentiable real-valued function has two distinct zeros, its derivative has a zero between them, provided the function is continuous on the interval joining those zeros.\n\nMore generally, if \\(f\\) has \\(n\\) distinct zeros\n\n\\[x_1<x_2<\\cdots<x_n,\\]\n\nRolle’s theorem applied on each interval \\([x_i,x_{i+1}]\\) gives at least \\(n-1\\) distinct zeros of \\(f'\\).\n\nRepeated application is useful for relating the number of zeros of a function to those of its higher derivatives. In particular, if \\(f\\) has \\(n+1\\) distinct zeros in an interval and is \\(n\\) times continuously differentiable there, then\n\n\\[f^{(n)}(c)=0\\]\n\nat some point between the smallest and largest zeros.\n\nFor a degree-\\(n\\) polynomial with \\(n\\) distinct real roots, its derivative has exactly one root between each consecutive pair. This follows from Rolle’s theorem together with the degree bound on the number of polynomial roots.\n\nUniqueness of solutions\n\nIf \\(f'(x)\\neq 0\\) everywhere on an interval, then \\(f\\) cannot take the same value at two distinct points. Otherwise, Rolle’s theorem would force its derivative to vanish between them.\n\nConsequently, \\(f\\) is an injective function on that interval, and an equation of the form \\(f(x)=k\\) has at most one solution there. This proves uniqueness, not existence.\n\nApproximation and error formulas\n\nRepeated applications of Rolle’s theorem are used in proofs of remainder formulas for Taylor expansions and polynomial interpolation. A typical argument constructs an auxiliary function with several prescribed zeros, then differentiates repeatedly until Rolle’s theorem forces a higher derivative to vanish. Rearranging that equality yields an error formula involving a derivative evaluated at an intermediate point."
    },
    {
      "heading": "Scope and limitations",
      "text": "The scalar, real-valued setting is essential to the stated conclusion. An analogous zero-derivative conclusion generally fails for vector-valued functions.\n\nFor example, consider a curve in Euclidean space:\n\n\\[\\mathbf{r}(t)=(\\cos t,\\sin t),\\qquad 0\\leq t\\leq 2\\pi.\\]\n\nIts endpoint values agree, but\n\n\\[\\mathbf{r}'(t)=(-\\sin t,\\cos t)\\]\n\nis never the zero vector.\n\nEach coordinate separately satisfies Rolle’s theorem, but the points where their derivatives vanish need not coincide. Interpreting the same curve as the complex-valued function \\(e^{it}\\) shows the corresponding failure for functions taking values in the complex numbers."
    },
    {
      "heading": "Historical background",
      "text": "The theorem is named after the French mathematician Michel Rolle, who established a polynomial version in 1691. Its modern formulation for continuous and differentiable real-valued functions belongs to the later development of mathematical analysis, which supplied precise definitions of limits, continuity, and differentiation."
    }
  ],
  "links": [
    "calculus",
    "mean-value-theorem",
    "mathematical-function",
    "continuous-function",
    "derivative",
    "graph-of-a-function",
    "mathematical-proof",
    "extreme-value-theorem",
    "polynomial",
    "absolute-value",
    "injective-function",
    "equation",
    "taylor-series",
    "interpolation",
    "euclidean-space",
    "complex-number",
    "mathematical-analysis"
  ],
  "sources": [],
  "license": "https://creativecommons.org/licenses/by/4.0/"
}