Continuity and the intermediate value theorem
The question
Shape your own path, then ask the page to test it.
- 1 SeeTry to avoid a target height.
- 2 TryTest how much endpoints tell you.
- 3 ProveTrap a point in nested intervals.
- 4 ApplyUse the theorem and test its limits.
Before you start · 3 quick checks on limits, intervals, and sequences
Two ideas before you start
2 ideasContinuity is a local condition
A short window on a parabola. Choose a window width below.
Continuity compares nearby outputs with the value at the point. It does not require a straight graph or a derivative.
Exact definition
A real-valued function \(f\) on a domain \(D\) is continuous at \(c\in D\) if, for every \(\varepsilon\gt0\), there is \(\delta\gt0\) such that \(|f(x)-f(c)|\lt\varepsilon\) whenever \(x\in D\) and \(|x-c|\lt\delta\). Unlike a punctured limit, this definition includes the value at the point.
Continuous on an interval means continuous at every point of that interval. At an included endpoint, only inputs in the interval are tested. Review the quantifiers in the ε–δ lesson. A corner can be continuous; the derivative lesson explains why continuity and differentiability differ.
An interval leaves no missing inputs
A number-line segment with open or closed endpoints.
The interval specifies the allowed inputs. Parentheses exclude endpoints; brackets include them.
Exact definition
A subset of the real line is an interval when it contains every real number between any two of its members. For \(a\lt b\), the closed interval \([a,b]\) contains both endpoints and everything between them. The open interval \((a,b)\) contains only the points strictly between them. Both are intervals; removing an interior point leaves a gap in the domain.
Fine print: what the drawing represents
The activity uses graphs of single-valued real functions. Each horizontal input has exactly one height. You edit heights at fixed inputs, and straight segments fill in the rest. Corners are allowed. The target is an output height, not a slope or an input. The visible family is deliberately small enough that the page can check every segment rather than sample a few pixels.
Can your path avoid the target?
- Move the interior heights with the sliders. The two endpoints stay fixed.
- Try to keep the entire path off the dashed target line, then press Test my path.
- After testing a continuous path, try the jump mode and compare the results.
How the page tests a path
For a continuous path, each straight segment takes all weighted averages of its endpoint heights. The page solves the linear equation for the target on each segment. An endpoint on the target counts, and a segment lying along the target counts too. The reported input is an exact fraction from your slider settings, followed by a rounded decimal for reading the graph.
This calculation checks this family of paths exactly. It is not a proof about every continuous function. The proof in the next stages will need a property of real numbers, not a picture with sufficiently many sample points. In jump mode, the page treats the two branches as separate pieces; it never draws a vertical segment between them.
What else can endpoints tell you?
You have tested whether a height is attained. Now consider how much information that gives about the inputs that attain it. Commit to an answer before opening the next graph.
A root bracket here is a closed interval whose endpoint values have strictly opposite signs. For this continuous polynomial, that certifies a zero strictly inside. Find separate brackets to distinguish different roots. A bracket with equal signs fails this test; that alone does not prove that it contains no root.
Choose a bracket to evaluate its endpoints.
When the target is outside the endpoint range
The theorem supplies a sufficient condition for attaining a target. It is not a complete description of the function's range. Interior peaks or valleys can reach heights that neither endpoint suggests. To prove uniqueness, add another argument, such as strict increase: two different inputs then cannot have the same output.
A crossing from nested intervals
Let \(a\lt b\), and let \(f:[a,b]\to\mathbb R\) be continuous. If \(y\) lies between \(f(a)\) and \(f(b)\), including equality, then some \(c\in[a,b]\) satisfies \(f(c)=y\). If the target is strictly between the endpoint values, such a \(c\) lies in \((a,b)\).
Equality with an endpoint is immediate: use that endpoint. For the proof below assume \(f(a)\lt y\lt f(b)\), and put \(g(x)=f(x)-y\). Then \(g\) is continuous. If the endpoint order is reversed, apply the same proof to \(-f\) and target \(-y\).
Refresher: completeness and nested intervals
Completeness of the real numbers: every nonempty set of real numbers bounded above has a least upper bound, called its supremum. This is a property of the real line; it is not part of the definition of continuity.
Suppose nonempty closed intervals \([l_n,r_n]\) are nested: each lies inside the previous one. Their lengths tend to zero. The left endpoints have a supremum \(c\). Every \(r_n\) bounds all left endpoints above, so \(l_n\le c\le r_n\) for every \(n\). Thus both endpoint sequences converge to \(c\), and no other point can lie in every interval.
The squeeze argument uses distances bounded by the shrinking length. Review limits of sequences in the ε–N lesson. Continuity then sends any sequence of allowed inputs converging to \(c\) to outputs converging to \(f(c)\); this follows directly by using the continuity window in the sequence definition.
Start with \(l_0=a\) and \(r_0=b\). For whole numbers \(n\ge0\), maintain \(g(l_n)\le0\le g(r_n)\). At the midpoint \(m\), keep the left half if \(g(m)\ge0\), and the right half otherwise. An exact zero at a midpoint is allowed; continuing with the left half preserves the nonstrict inequalities. Beyond ordinary arithmetic and order, the property of the real numbers that this proof needs is completeness, used through the nested-interval fact in the refresher above; continuity alone does not supply the point \(c\). Choose the next justified statement at each line.
The completed argument
Check the assumptions before using the theorem
Each problem has hints and a worked solution. Enter decimal answers. Where a tolerance is shown, it grades an approximation. The questions separate a guaranteed crossing from its location, and the location from uniqueness.
Related: Limits and ε–δ, Convergent sequences, and What a derivative measures.
Further reading
- Stephen Abbott, Understanding Analysis, chapter 4, Functional Limits and Continuity.