Math Applets

Fundamental Theorem Of Calculus

TFundamental theorem of calculus:

Let IRI \subseteq \mathbb{R} be an interval, f:IRf : I \to \mathbb{R} be continuous and aIa \in I. Then the following statements are satisfied:

i) The function F:IR,xF(x)=axf(t)dtF : I \to \mathbb{R}, \quad x \mapsto F(x) = \int_a^x f(t) \, dt is an antiderivative of ff.


How to use

  • Visaulization of the first part of the proof
  • Drag the green point xx on the xx-axis.
  • Drag the purple point x+hx+h on the xx-axis (this changes both the size and the sign of hh).
  • The blue curve is f(t)f(t).
  • The red curve is F(x)=0xf(t)dtF(x)=\int_0^x f(t)\,dt.
  • The blue shaded area represents F(x)=0xf(t)dtF(x)=\int_0^x f(t)\,dt.
  • The orange shaded area represents xLxRf(t)dt=F(xR)F(xL),\int_{x_L}^{x_R} f(t)\,dt = F(x_R)-F(x_L), i.e. the area “slice” between xx and x+hx+h.
  • The red points F(x)F(x) and F(x+h)F(x+h) lie on the graph of FF, and the line through them is the secant line. Its slope is the difference quotient F(x+h)F(x)h\dfrac{F(x+h)-F(x)}{h}.
  • The green rectangle has base width h=xRxL|h|=x_R-x_L and height F(xR)F(xL)xRxL,\frac{F(x_R)-F(x_L)}{x_R-x_L}, so its area matches the orange slice.
  • The green point ξh\xi_h (with the point f(ξh)f(\xi_h) on the graph) is chosen so that f(ξh)=F(x+h)F(x)h.f(\xi_h)=\frac{F(x+h)-F(x)}{h}.
  • First choose xx, then move x+hx+h so that hh is not too small: compare the secant slope on FF with the height f(ξh)f(\xi_h). They represent the same number.
  • Now drag x+hx+h closer to xx (so h0|h|\to 0):
    • the orange slice becomes thinner,
    • ξh\xi_h moves toward xx,
    • the secant line becomes closer to the tangent line at xx, tuiirning into a tangent line (colored in purple)
    • the slope F(x+h)F(x)h\dfrac{F(x+h)-F(x)}{h} approaches f(x)f(x).
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 ) Theorem7.10 page 133

The applet visualizes the Fundamental Theorem of Calculus (I) following the proof.

Given a continuous function ff, we define

F(x):=0xf(t)dt,F(x) := \int_0^x f(t)\,dt,

(blue area). The graph of FF is shown together with the graph of ff.

To study the differentiability of FF, two points xx and x+hx+h are selected on the xx-axis. The difference quotient

F(x+h)F(x)h\frac{F(x+h)-F(x)}{h}

is visualized as the slope of the secant line of FF between these two points.

I am reusing part of the Mean value theorem for integrals, wich is used in the proof as well as visualizing the derivative F(x)=f(x)F'(x) = f(x), as in the example Secant and Tangent.

In this applet, we choose a strictly increasing and invertible function.

// f(t) = 0.1 t^3 + 1
const f = (t: number) => 0.1 * t ** 3 + 1;

// Antiderivative F(x) = 0.025 x^4 + x
const F = (x: number) => 0.025 * x ** 4 + x;

// inverse of f
const fInverse = (y: number) => Math.cbrt(10 * (y - 1));

This additional structure allows the point ξh\xi_h to be computed explicitly as

ξh=f1 ⁣(F(x+h)F(x)h),\xi_h = f^{-1}\!\left(\frac{F(x+h)-F(x)}{h}\right),

without relying on numerical methods. The point ξh\xi_h and the corresponding height f(ξh)f(\xi_h) are displayed in the applet.

As hh becomes smaller, the interval [x,x+h][x,x+h] shrinks and the point ξh\xi_h moves closer to xx. Consequently, the slope of the secant line converges to f(x)f(x). This visually illustrates the conclusion of the theorem:

F(x)=f(x).F'(x) = f(x).