Math Applets

Intermediate Value Theorem

Intermediate Value Theorem:

Let f:[a,b]Rf : [a,b] \to \mathbb{R} be continuous, and suppose that either f(a)<c<f(b)f(a) < c < f(b) or f(a)>c>f(b)f(a) > c > f(b). Then there exists an x(a,b)x \in (a,b) such that f(x)=cf(x) = c.


How to use the applet

  • Drag the point aa and bb along the xx-axis to change the interval [a,b][a,b].
  • Drag the point/slider cc (the horizontal level) to choose the target value.
  • The graph of ff on the chosen interval [a,b][a,b].
  • A horizontal line y=cy=c.
  • Intersection points between the graph and the line y=cy=c (up to a fixed maximum number), together with their projections onto the xx-axis.
  • If ff is continuous on [a,b][a,b] and
min{f(a),f(b)}<c<max{f(a),f(b)}, \min\{f(a),f(b)\} < c < \max\{f(a),f(b)\},

then at least one intersection point appears with x(a,b)x\in(a,b), meaning there exists ξ(a,b)\xi\in(a,b) such that f(ξ)=cf(\xi)=c.

  • By moving cc, you can see that there may be more than one solution ξ\xi.
  • The applet also highlights the image f([a,b])f([a,b]):
    • green segment when the function is continuous on the chosen interval (no “gaps” in the values),
    • orange warning segment when the function is not continuous on the chosen interval (gaps can occur, and IVT can fail).

Loading graph…
  • Hold Shift + scroll to zoom
  • Hold Shift + drag to move
  • Points shaped like <> act as sliders

Description

Link to code.

Reference: Lecture Notes Calculus 1 ( May22,2022 ) Theorem4.7 page 62

This example illustrates how the Intermediate Value Theorem (IVT) holds for continuous functions on a closed interval [a,b][a,b].

By moving points aa and bb, one can adjust the domain.

If the functions is continuous and min(f(a),f(b))<c<max(f(a),f(b))\min(f(a), f(b))< c < \max(f(a), f(b)), then there exists at least one x(a,b)x \in (a,b) such that f(x)=cf(x) = c. By moving the point cc in between the f(a)f(a) and f(b)f(b) one can observe that there may be more than one such xx.

To show these points i have created 3 (maximum roots of the function) intersection points with the lineC (parallel ot the x-axis) and graph.

board.create('intersection', [graph, lineC, 1]...

I then make the intersections and their projections to the x-axis visible, only when cc is in between f(a)f(a) and f(b)f(b) (isPointCinBetweenFaFb()) and the projections lie on the interval [a,b][a,b] (isPointXCoordInIntervalAB())

A nice thing to notice is that, given continuity, the image of the function, over [a,b][a,b], is again a closed interval (with no gaps).

The applets highligths the image of the function, with a green segment when the function is continuous on the given domain and with a “warning” orange segment when the function is not continuous at the given domain and its image contains gaps.