## Section 5.3 Fundamental theorem of calculus

*Note: 1.5 lectures*

In this chapter we discuss and prove the *fundamental theorem of calculus*. The entirety of integral calculus is built upon this theorem, ergo the name. The theorem relates the seemingly unrelated concepts of integral and derivative. It tells us how to compute the antiderivative of a function using the integral and vice versa.

### Subsection 5.3.1 First form of the theorem

#### Theorem 5.3.1.

Let \(F \colon [a,b] \to \R\) be a continuous function, differentiable on \((a,b)\text{.}\) Let \(f \in \sR[a,b]\) be such that \(f(x) = F'(x)\) for \(x \in (a,b)\text{.}\) Then

It is not hard to generalize the theorem to allow a finite number of points in \([a,b]\) where \(F\) is not differentiable, as long as it is continuous. This generalization is left as an exercise.

#### Proof.

Let \(P = \{ x_0, x_1, \ldots, x_n \}\) be a partition of \([a,b]\text{.}\) For each interval \([x_{i-1},x_i]\text{,}\) use the mean value theorem to find a \(c_i \in (x_{i-1},x_i)\) such that

See Figure 5.5, and notice that the area of all three shaded rectangles is \(F(x_{i+1})-F(x_{i-2})\text{.}\) The idea is that by taking smaller and smaller subintervals we prove that this area is the integral of \(f\text{.}\)

Using the notation from the definition of the integral, we have \(m_i \leq f(c_i) \leq M_i\text{,}\) and so

We sum over \(i = 1,2, \ldots, n\) to get

In the middle sum, all the terms except the first and last cancel and we end up with \(F(x_n)-F(x_0) = F(b)-F(a)\text{.}\) The sums on the left and on the right are the lower and the upper sum respectively. So

We take the supremum of \(L(P,f)\) over all partitions \(P\) and the left inequality yields

Similarly, taking the infimum of \(U(P,f)\) over all partitions \(P\) yields

As \(f\) is Riemann integrable, we have

The inequalities must be equalities and we are done.

The theorem is used to compute integrals. Suppose we know that the function \(f(x)\) is a derivative of some other function \(F(x)\text{,}\) then we can find an explicit expression for \(\int_a^b f\text{.}\)

#### Example 5.3.2.

To compute

we notice \(x^2\) is the derivative of \(\frac{x^3}{3}\text{.}\) The fundamental theorem says

### Subsection 5.3.2 Second form of the theorem

The second form of the fundamental theorem gives us a way to solve the differential equation \(F'(x) = f(x)\text{,}\) where \(f\) is a known function and we are trying to find an \(F\) that satisfies the equation.

#### Theorem 5.3.3.

Let \(f \colon [a,b] \to \R\) be a Riemann integrable function. Define

First, \(F\) is continuous on \([a,b]\text{.}\) Second, if \(f\) is continuous at \(c \in [a,b]\text{,}\) then \(F\) is differentiable at \(c\) and \(F'(c) = f(c)\text{.}\)

#### Proof.

As \(f\) is bounded, there is an \(M > 0\) such that \(\abs{f(x)} \leq M\) for all \(x \in [a,b]\text{.}\) Suppose \(x,y \in [a,b]\) with \(x > y\text{.}\) Then

By symmetry, the same also holds if \(x < y\text{.}\) So \(F\) is Lipschitz continuous and hence continuous.

Now suppose \(f\) is continuous at \(c\text{.}\) Let \(\epsilon > 0\) be given. Let \(\delta > 0\) be such that for \(x \in [a,b]\text{,}\) \(\abs{x-c} < \delta\) implies \(\abs{f(x)-f(c)} < \epsilon\text{.}\) In particular, for such \(x\text{,}\) we have

Thus if \(x > c\text{,}\) then

When \(c > x\text{,}\) then the inequalities are reversed. Therefore, assuming \(c \not= x\text{,}\) we get

As

we have

The result follows. It is left to the reader to see why is it OK that we just have a non-strict inequality.

Of course, if \(f\) is continuous on \([a,b]\text{,}\) then it is automatically Riemann integrable, \(F\) is differentiable on all of \([a,b]\) and \(F'(x) = f(x)\) for all \(x \in [a,b]\text{.}\)

#### Remark 5.3.4.

The second form of the fundamental theorem of calculus still holds if we let \(d \in [a,b]\) and define

That is, we can use any point of \([a,b]\) as our base point. The proof is left as an exercise.

Let us look at what a simple discontinuity can do. Take \(f(x) := -1\) if \(x < 0\text{,}\) and \(f(x) := 1\) if \(x \geq 0\text{.}\) Let \(F(x) := \int_0^x f\text{.}\) It is not difficult to see that \(F(x) = \abs{x}\text{.}\) Notice that \(f\) is discontinuous at \(0\) and \(F\) is not differentiable at \(0\text{.}\) However, the converse in the theorem does not hold. Let \(g(x) := 0\) if \(x \not= 0\text{,}\) and \(g(0) := 1\text{.}\) Letting \(G(x) := \int_0^x g\text{,}\) we find that \(G(x) = 0\) for all \(x\text{.}\) So \(g\) is discontinuous at \(0\text{,}\) but \(G'(0)\) exists and is equal to 0.

A common misunderstanding of the integral for calculus students is to think of integrals whose solution cannot be given in closed-form as somehow deficient. This is not the case. Most integrals we write down are not computable in closed-form. Even some integrals that we consider in closed-form are not really such. We define the natural logarithm as the antiderivative of \(\nicefrac{1}{x}\) such that \(\ln 1 = 0\text{:}\)

How does a computer find the value of \(\ln x\text{?}\) One way to do it is to numerically approximate this integral. Morally, we did not really “simplify” \(\int_1^x \frac{1}{s}\,ds\) by writing down \(\ln x\text{.}\) We simply gave the integral a name. If we require numerical answers, it is possible we end up doing the calculation by approximating an integral anyway. In the next section, we even define the exponential using the logarithm, which we define in terms of the integral.

Another common function defined by an integral that cannot be evaluated symbolically in terms of elementary functions is the \(\operatorname{erf}\) function, defined as

This function comes up often in applied mathematics. It is simply the antiderivative of \(\left(\nicefrac{2}{\sqrt{\pi}}\right) e^{-x^2}\) that is zero at zero. The second form of the fundamental theorem tells us that we can write the function as an integral. If we wish to compute any particular value, we numerically approximate the integral.

### Subsection 5.3.3 Change of variables

A theorem often used in calculus to solve integrals is the change of variables theorem, you may have called it *\(u\)-substitution*. Let us prove it now. Recall a function is continuously differentiable if it is differentiable and the derivative is continuous.

#### Theorem 5.3.5. Change of variables.

Let \(g \colon [a,b] \to \R\) be a continuously differentiable function, let \(f \colon [c,d] \to \R\) be continuous, and suppose \(g\bigl([a,b]\bigr) \subset [c,d]\text{.}\) Then

#### Proof.

As \(g\text{,}\) \(g'\text{,}\) and \(f\) are continuous, \(f\bigl(g(x)\bigr)\,g'(x)\) is a continuous function of \([a,b]\text{,}\) therefore it is Riemann integrable. Similarly, \(f\) is integrable on every subinterval of \([c,d]\text{.}\)

Define \(F \colon [c,d] \to \R\) by

By the second form of the fundamental theorem of calculus (see Remark 5.3.4 and Exercise 5.3.4), \(F\) is a differentiable function and \(F'(y) = f(y)\text{.}\) Apply the chain rule,

Note that \(F\bigl(g(a)\bigr) = 0\) and use the first form of the fundamental theorem to obtain

The change of variables theorem is often used to solve integrals by changing them to integrals that we know or that we can solve using the fundamental theorem of calculus.

#### Example 5.3.6.

The derivative of \(\sin(x)\) is \(\cos(x)\text{.}\) Using \(g(x):=x^2\text{,}\) we solve

However, beware that we must satisfy the hypotheses of the theorem. The following example demonstrates why we should not just move symbols around mindlessly. We must be careful that those symbols really make sense.

#### Example 5.3.7.

Consider

It may be tempting to take \(g(x) := \ln \abs{x}\text{.}\) Compute \(g'(x) = \nicefrac{1}{x}\) and try to write

This “solution” is incorrect, and it does not say that we can solve the given integral. First problem is that \(\frac{\ln \abs{x}}{x}\) is not continuous on \([-1,1]\text{.}\) It is not defined at 0, and cannot be made continuous by defining a value at 0. Second, \(\frac{\ln \abs{x}}{x}\) is not even Riemann integrable on \([-1,1]\) (it is unbounded). The integral we wrote down simply does not make sense. Finally, \(g\) is not continuous on \([-1,1]\text{,}\) let alone continuously differentiable.

### Subsection 5.3.4 Exercises

#### Exercise 5.3.1.

Compute \(\displaystyle \frac{d}{dx} \biggl( \int_{-x}^x e^{s^2}\,ds \biggr)\text{.}\)

#### Exercise 5.3.2.

Compute \(\displaystyle \frac{d}{dx} \biggl( \int_{0}^{x^2} \sin(s^2)\,ds \biggr)\text{.}\)

#### Exercise 5.3.3.

Suppose \(F \colon [a,b] \to \R\) is continuous and differentiable on \([a,b] \setminus S\text{,}\) where \(S\) is a finite set. Suppose there exists an \(f \in \sR[a,b]\) such that \(f(x) = F'(x)\) for \(x \in [a,b] \setminus S\text{.}\) Show that \(\int_a^b f = F(b)-F(a)\text{.}\)

#### Exercise 5.3.4.

Let \(f \colon [a,b] \to \R\) be a continuous function. Let \(c \in [a,b]\) be arbitrary. Define

Prove that \(F\) is differentiable and that \(F'(x) = f(x)\) for all \(x \in [a,b]\text{.}\)

#### Exercise 5.3.5.

Prove *integration by parts*. That is, suppose \(F\) and \(G\) are continuously differentiable functions on \([a,b]\text{.}\) Then prove

#### Exercise 5.3.6.

Suppose \(F\) and \(G\) are continuously^{ 1 } differentiable functions defined on \([a,b]\) such that \(F'(x) = G'(x)\) for all \(x \in [a,b]\text{.}\) Using the fundamental theorem of calculus, show that \(F\) and \(G\) differ by a constant. That is, show that there exists a \(C \in \R\) such that \(F(x)-G(x) = C\text{.}\)

The next exercise shows how we can use the integral to “smooth out” a non-differentiable function.

#### Exercise 5.3.7.

Let \(f \colon [a,b] \to \R\) be a continuous function. Let \(\epsilon > 0\) be a constant. For \(x \in [a+\epsilon,b-\epsilon]\text{,}\) define

Show that \(g\) is differentiable and find the derivative.

Let \(f\) be differentiable and fix \(x \in (a,b)\) (let \(\epsilon\) be small enough). What happens to \(g'(x)\) as \(\epsilon\) gets smaller?

Find \(g\) for \(f(x) := \abs{x}\text{,}\) \(\epsilon = 1\) (you can assume \([a,b]\) is large enough).

#### Exercise 5.3.8.

Suppose \(f \colon [a,b] \to \R\) is continuous and \(\int_a^x f = \int_x^b f\) for all \(x \in [a,b]\text{.}\) Show that \(f(x) = 0\) for all \(x \in [a,b]\text{.}\)

#### Exercise 5.3.9.

Suppose \(f \colon [a,b] \to \R\) is continuous and \(\int_a^x f = 0\) for all rational \(x\) in \([a,b]\text{.}\) Show that \(f(x) = 0\) for all \(x \in [a,b]\text{.}\)

#### Exercise 5.3.10.

A function \(f\) is an *odd function* if \(f(x) = -f(-x)\text{,}\) and \(f\) is an *even function* if \(f(x) = f(-x)\text{.}\) Let \(a >
0\text{.}\) Assume \(f\) is continuous. Prove:

If \(f\) is odd, then \(\int_{-a}^a f = 0\text{.}\)

If \(f\) is even, then \(\int_{-a}^a f = 2 \int_0^a f\text{.}\)

#### Exercise 5.3.11.

Show that \(f(x) := \sin(\nicefrac{1}{x})\) is integrable on every interval (you can define \(f(0)\) to be anything).

Compute \(\int_{-1}^1 \sin(\nicefrac{1}{x})\,dx\) (mind the discontinuity).

#### Exercise 5.3.12.

*(uses Section 3.6)*

Suppose \(f \colon [a,b] \to \R\) is increasing, by Proposition 5.2.11, \(f\) is Riemann integrable. Suppose \(f\) has a discontinuity at \(c \in (a,b)\text{,}\) show that \(F(x) := \int_a^x f\) is not differentiable at \(c\text{.}\)

In Exercise 3.6.11, you constructed an increasing function \(f \colon [0,1] \to \R\) that is discontinuous at every \(x \in [0,1] \cap \Q\text{.}\) Use this \(f\) to construct a function \(F(x)\) that is continuous on \([0,1]\text{,}\) but not differentiable at every \(x \in [0,1] \cap \Q\text{.}\)