MAT1051 · Week 12 · The Fundamental Theorem of Calculus, The Substitution Method

The Fundamental Theorem of Calculus and substitution

The theorem that links derivative and integral: the derivative of an integral function and evaluating a definite integral with an antiderivative. Then the chain rule for integrals: u-substitution.

Fundamental Theorem of Calculusaccumulation functionevaluation theoremnet changeaverage valueMean Value Theorem for integralssubstitution ruleu-substitutionchange of limitsodd and even integrands

The most important theorem of Calculus is this week’s. The areas you computed at length with Riemann sums come down to one line, because integration and differentiation are inverses of each other. The theorem has two parts, and on exams both appear as separate question types. The second half of the week is substitution: the integral counterpart of the chain rule for derivatives. In every integral question from now on, this will be the first method you try.

  1. ddx∫axf(t) dt=f(x)\dfrac{d}{dx}\displaystyle\int_a^xf(t)\,dt=f(x). If the upper limit is g(x)g(x), multiply by g′(x)g'(x).
  2. ∫abf dx=F(b)−F(a)\displaystyle\int_a^bf\,dx=F(b)-F(a). First the antiderivative, then upper minus lower.
  3. In substitution, choose uu as the inner expression whose derivative is also in the integral.
  4. In a definite integral, convert the limits to uu as well.

The Fundamental Theorem of Calculus, Part 1

Let ff be continuous on [a,b][a,b] and define

g(x)=∫axf(t) dtg(x)=\int_a^xf(t)\,dt

g(x)g(x) is the (signed) area accumulated from aa to xx; it is called the accumulation function. The theorem:

g′(x)=f(x)g'(x)=f(x)

Intuition: if you increase xx a little, by hh, a thin strip of width hh and height about f(x)f(x) is added to the area. The area increases by f(x)⋅hf(x)\cdot h, and the rate of increase is f(x)f(x).

The general form with the chain rule:

ddx∫ag(x)f(t) dt=f(g(x)) g′(x)\frac{d}{dx}\int_a^{g(x)}f(t)\,dt=f\big(g(x)\big)\,g'(x)

Example 1. ddx∫1xcos⁡(t2) dt=cos⁡(x2)\dfrac{d}{dx}\displaystyle\int_1^x\cos(t^2)\,dt=\cos(x^2). The antiderivative of cos⁡(t2)\cos(t^2) cannot be written with elementary functions, but it is not needed to answer a derivative question.

Example 2. ddx∫1x2ln⁡t dt=ln⁡(x2)⋅2x=4xln⁡x\dfrac{d}{dx}\displaystyle\int_1^{x^2}\ln t\,dt=\ln(x^2)\cdot2x=4x\ln x (x>0x>0).

If the lower limit is the variable, flip the sign: ∫h(x)af=−∫ah(x)f\displaystyle\int_{h(x)}^{a}f=-\int_a^{h(x)}f. If both limits are variable, put a fixed point in the middle and split in two.

PITFALL · forgetting the chain factor. Writing ddx∫0x3sin⁡t dt=sin⁡(x3)\dfrac{d}{dx}\int_0^{x^3}\sin t\,dt=\sin(x^3) is wrong. The correct answer is 3x2sin⁡(x3)3x^2\sin(x^3). If the upper limit is not xx, multiply by its derivative.

The Fundamental Theorem of Calculus, Part 2

If FF is any antiderivative of ff:

∫abf(x) dx=F(b)−F(a)=[F(x)]ab\int_a^bf(x)\,dx=F(b)-F(a)=\Big[F(x)\Big]_a^b

You don’t need to write +C+C: it cancels in the difference (F(b)+C)−(F(a)+C)(F(b)+C)-(F(a)+C).

Example 3. ∫12(x2−1x)dx=[x33−ln⁡x]12=(83−ln⁡2)−(13−0)=73−ln⁡2≈1.640\displaystyle\int_1^2\left(x^2-\frac1x\right)dx=\left[\frac{x^3}{3}-\ln x\right]_1^2=\left(\frac83-\ln2\right)-\left(\frac13-0\right)=\frac73-\ln2\approx1.640.

Example 4. ∫0πsin⁡x dx=[−cos⁡x]0π=−cos⁡π+cos⁡0=1+1=2\displaystyle\int_0^\pi\sin x\,dx=\big[-\cos x\big]_0^\pi=-\cos\pi+\cos0=1+1=2. The area under one arch of the sine is exactly 22.

Example 5 (absolute value). ∫−12∣x∣ dx=∫−10(−x) dx+∫02x dx=12+2=52\displaystyle\int_{-1}^2|x|\,dx=\int_{-1}^0(-x)\,dx+\int_0^2x\,dx=\frac12+2=\frac52. You cannot find an antiderivative of the absolute value without splitting it at the zero point.

Why are the two parts the same theorem?

Part 2 follows from Part 1. The derivative of the function g(x)=∫axf(t) dtg(x)=\int_a^xf(t)\,dt is ff, so gg is also an antiderivative of ff. Since every antiderivative differs by a constant (week 9, MVT consequence), F(x)=g(x)+CF(x)=g(x)+C. Now F(b)−F(a)=g(b)−g(a)=∫abf−0F(b)-F(a)=g(b)-g(a)=\int_a^bf-0. The area defined by the limit of Riemann sums can be computed with the inverse of the derivative. This is the sentence that turns Calculus into a tool.

In practice it means: in week 11, for ∫01x2 dx\int_0^1x^2\,dx you wrote half a page of summation formulas. Now it is [x33]01=13\left[\tfrac{x^3}{3}\right]_0^1=\tfrac13, one line.

Net change and average value

∫abF′(x) dx=F(b)−F(a)\displaystyle\int_a^bF'(x)\,dx=F(b)-F(a): the integral of a rate of change gives the total (net) change. The integral of velocity is displacement, and the integral of flow rate is total volume.

Average value:

favg=1b−a∫abf(x) dxf_{\text{avg}}=\frac{1}{b-a}\int_a^bf(x)\,dx

Mean Value Theorem for integrals: if ff is continuous, there is a c∈[a,b]c\in[a,b] with f(c)=favgf(c)=f_{\text{avg}}. For example the average of sin⁡x\sin x on [0,π][0,\pi] is 2π≈0.637\tfrac2\pi\approx0.637.

Substitution

The chain rule said ddxF(g(x))=F′(g(x))g′(x)\dfrac{d}{dx}F(g(x))=F'(g(x))g'(x). Read backwards:

∫f(g(x)) g′(x) dx=∫f(u) du,u=g(x), du=g′(x) dx\int f\big(g(x)\big)\,g'(x)\,dx=\int f(u)\,du,\qquad u=g(x),\ du=g'(x)\,dx

When it works: if the integrand contains an inner function and its derivative (a constant factor doesn’t matter) together.

Steps

1. Choose u: usually the inside of parentheses, inside a root, an exponent, a denominator
2. Compute du = u' dx, write dx or "the part with x" in terms of du
3. Write the integral entirely in terms of u (no x should remain)
4. Integrate with respect to u
5. Replace u with g(x) (for an indefinite integral)

Example 6. ∫2xcos⁡(x2) dx\displaystyle\int2x\cos(x^2)\,dx. u=x2u=x^2, du=2x dxdu=2x\,dx. ∫cos⁡u du=sin⁡u+C=sin⁡(x2)+C\int\cos u\,du=\sin u+C=\sin(x^2)+C.

Example 7 (linear inner function). ∫(3x+1)5 dx\displaystyle\int(3x+1)^5\,dx. u=3x+1u=3x+1, du=3 dxdu=3\,dx, dx=13dudx=\tfrac13du. 13⋅u66=(3x+1)618+C\tfrac13\cdot\tfrac{u^6}{6}=\dfrac{(3x+1)^6}{18}+C. Short rule: ∫f(ax+b) dx=1aF(ax+b)+C\int f(ax+b)\,dx=\tfrac1aF(ax+b)+C.

Example 8 (tan⁡x\tan x). ∫tan⁡x dx=∫sin⁡xcos⁡xdx\displaystyle\int\tan x\,dx=\int\frac{\sin x}{\cos x}dx. u=cos⁡xu=\cos x, du=−sin⁡x dxdu=-\sin x\,dx. −∫duu=−ln⁡∣u∣+C=−ln⁡∣cos⁡x∣+C=ln⁡∣sec⁡x∣+C-\int\dfrac{du}{u}=-\ln|u|+C=-\ln|\cos x|+C=\ln|\sec x|+C.

Example 9. ∫ex1+e2xdx\displaystyle\int\frac{e^x}{1+e^{2x}}dx. u=exu=e^x, du=exdxdu=e^xdx, e2x=u2e^{2x}=u^2. ∫du1+u2=arctan⁡u+C=arctan⁡(ex)+C\displaystyle\int\frac{du}{1+u^2}=\arctan u+C=\arctan(e^x)+C.

Which uu?

What you see in the integrandTry
(…)n(\ldots)^n with the derivative of the inside outsideu=u= the inside of the parentheses
…\sqrt{\ldots}u=u= the radicand
e(…)e^{(\ldots)}u=u= the exponent
…denominator\dfrac{\ldots}{\text{denominator}}, with the numerator like the derivative of the denominatoru=u= the denominator, the result is ln⁡∣u∣\ln\lvert u\rvert
ln⁡x\ln x and 1x\dfrac1xu=ln⁡xu=\ln x
sin⁡nxcos⁡x\sin^n x\cos xu=sin⁡xu=\sin x

Example 9b (back-substitution). ∫xx+1 dx\displaystyle\int x\sqrt{x+1}\,dx. The xx outside is not the derivative of x+1x+1. Still choose u=x+1u=x+1; du=dxdu=dx and x=u−1x=u-1:

∫(u−1)u du=∫(u3/2−u1/2)du=25u5/2−23u3/2+C=25(x+1)5/2−23(x+1)3/2+C\int(u-1)\sqrt u\,du=\int\left(u^{3/2}-u^{1/2}\right)du=\frac25u^{5/2}-\frac23u^{3/2}+C=\frac25(x+1)^{5/2}-\frac23(x+1)^{3/2}+C

If you can write the remaining xx in terms of uu, the method still works. Question 10 is also of this type.

PITFALL · leaving xx in the integral. For ∫x2cos⁡(x) dx\int x^2\cos(x)\,dx, if you choose u=x2u=x^2 then du=2x dxdu=2x\,dx, but cos⁡x\cos x and an extra xx remain in the integrand, and it cannot be written in terms of uu. Substitution does not solve every integral; this integral is solved with integration by parts in week 13.

Substitution in a definite integral

Convert the limits to uu as well. That way you don’t need to return to xx at the end.

Example 10. ∫01x1−x2 dx\displaystyle\int_0^1x\sqrt{1-x^2}\,dx.

u = 1 - x^2,   du = -2x dx   ->   x dx = -du/2
x = 0 -> u = 1,    x = 1 -> u = 0
∫_1^0 sqrt(u) (-du/2) = (1/2) ∫_0^1 u^(1/2) du = (1/2)(2/3) = 1/3

When the limits were swapped, the minus sign disappeared. This is the property ∫ba=−∫ab\int_b^a=-\int_a^b.

Symmetry

If ff is odd, ∫−aaf=0\displaystyle\int_{-a}^af=0; if it is even, ∫−aaf=2∫0af\displaystyle\int_{-a}^af=2\int_0^af. For example ∫−22x3cos⁡x dx=0\displaystyle\int_{-2}^2x^3\cos x\,dx=0, because x3x^3 is odd, cos⁡x\cos x is even, and their product is odd. The answer without any computation.

Common mistakes

Wrong thinkingCorrect
ddx∫0x2f(t)dt=f(x2)\dfrac{d}{dx}\int_0^{x^2}f(t)dt=f(x^2)f(x2)⋅2xf(x^2)\cdot2x
ddx∫abf(t)dt=f(b)−f(a)\dfrac{d}{dx}\int_a^bf(t)dt=f(b)-f(a)If the limits are constant, the integral is a number, and its derivative is 00
F(a)−F(b)F(a)-F(b)Upper minus lower: F(b)−F(a)F(b)-F(a)
Integrating ∣x∣\lvert x\rvert without splittingSplit at the zero point
Choosing uu without writing duduThe equivalent of dxdx in terms of dudu is required
Not converting the limits in a definite integralUse the uu limits or go back to xx at the end; not both
∫tan⁡x dx=sec⁡2x\int\tan x\,dx=\sec^2xThat is the derivative; the integral is −ln⁡∣cos⁡x∣+C-\ln\lvert\cos x\rvert+C
∫dx3x+1=ln⁡∣3x+1∣\int\dfrac{dx}{3x+1}=\ln\lvert3x+1\rvert13ln⁡∣3x+1∣+C\tfrac13\ln\lvert3x+1\rvert+C
The symmetric integral of an odd function means the area is zeroThe integral is 00, but the shaded area is not zero

Test yourself

Exam-style questions. Solve them on paper first, then reveal the answer.

Question 1easy

Evaluate ∫14(3x−2x2)dx\displaystyle\int_1^4\left(3\sqrt x-\frac{2}{x^2}\right)dx.

Show answer
12.5

Antiderivative: 3⋅23x3/2−2⋅x−1−1=2x3/2+2x3\cdot\tfrac23x^{3/2}-2\cdot\dfrac{x^{-1}}{-1}=2x^{3/2}+\dfrac2x. F(4)=2⋅8+12=16.5F(4)=2\cdot8+\tfrac12=16.5, F(1)=2+2=4F(1)=2+2=4. The result is 16.5−4=12.516.5-4=12.5.

Question 2easy

Evaluate ∫0π/2(cos⁡x+2sin⁡x) dx\displaystyle\int_0^{\pi/2}(\cos x+2\sin x)\,dx.

Show answer
3

F(x)=sin⁡x−2cos⁡xF(x)=\sin x-2\cos x. F(π2)=1−0=1F(\tfrac\pi2)=1-0=1, F(0)=0−2=−2F(0)=0-2=-2. The result is 1−(−2)=31-(-2)=3.

Question 3easy

Find ddx∫2x1+t3 dt\dfrac{d}{dx}\displaystyle\int_2^x\sqrt{1+t^3}\,dt.

Show answer
1+x3\sqrt{1+x^3}

Part 1 of the Fundamental Theorem: if the lower limit is constant and the upper limit is xx, the derivative is the value of the integrand at xx. You don't need to find the antiderivative of 1+t3\sqrt{1+t^3} (it isn't elementary anyway).

Question 4medium

Find ddx∫xx2e−t2 dt\dfrac{d}{dx}\displaystyle\int_x^{x^2}e^{-t^2}\,dt.

Show answer
2xe−x4−e−x22xe^{-x^4}-e^{-x^2}

Both limits are variable: ∫xx2=∫0x2−∫0x\int_x^{x^2}=\int_0^{x^2}-\int_0^x. For the upper limit, chain rule: e−(x2)2⋅2xe^{-(x^2)^2}\cdot2x. For the lower limit: −e−x2⋅1-e^{-x^2}\cdot1. Total 2xe−x4−e−x22xe^{-x^4}-e^{-x^2}.

Question 5easy

Find ∫x(x2+3)5 dx\displaystyle\int x(x^2+3)^5\,dx.

Show answer
(x2+3)612+C\dfrac{(x^2+3)^6}{12}+C

u=x2+3u=x^2+3, du=2x dxdu=2x\,dx, so x dx=12dux\,dx=\tfrac12du. ∫u5⋅12du=12⋅u66=(x2+3)612+C\int u^5\cdot\tfrac12du=\tfrac12\cdot\tfrac{u^6}{6}=\dfrac{(x^2+3)^6}{12}+C.

Question 6medium

Find ∫cos⁡x(1+sin⁡x)2 dx\displaystyle\int\frac{\cos x}{(1+\sin x)^2}\,dx.

Show answer
−11+sin⁡x+C-\dfrac{1}{1+\sin x}+C

u=1+sin⁡xu=1+\sin x, du=cos⁡x dxdu=\cos x\,dx. ∫u−2du=−u−1+C=−11+sin⁡x+C\int u^{-2}du=-u^{-1}+C=-\dfrac{1}{1+\sin x}+C.

Question 7medium

Find ∫exx dx\displaystyle\int\frac{e^{\sqrt x}}{\sqrt x}\,dx.

Show answer
2ex+C2e^{\sqrt x}+C

u=xu=\sqrt x, du=12xdxdu=\dfrac{1}{2\sqrt x}dx, so dxx=2 du\dfrac{dx}{\sqrt x}=2\,du. ∫eu⋅2 du=2eu+C=2ex+C\int e^u\cdot2\,du=2e^u+C=2e^{\sqrt x}+C.

Question 8medium

Evaluate ∫02xx2+1 dx\displaystyle\int_0^2\frac{x}{x^2+1}\,dx.

Show answer
12ln⁡5≈0.8047\tfrac12\ln5\approx0.8047

u=x2+1u=x^2+1, du=2x dxdu=2x\,dx. Limits: x=0→u=1x=0\to u=1, x=2→u=5x=2\to u=5. 12∫15duu=12[ln⁡u]15=12ln⁡5\tfrac12\int_1^5\dfrac{du}{u}=\tfrac12[\ln u]_1^5=\tfrac12\ln5.

Question 9medium

Evaluate ∫1e(ln⁡x)2x dx\displaystyle\int_1^e\frac{(\ln x)^2}{x}\,dx.

Show answer
1/3

u=ln⁡xu=\ln x, du=dxxdu=\dfrac{dx}{x}. Limits: x=1→u=0x=1\to u=0, x=e→u=1x=e\to u=1. ∫01u2 du=13\int_0^1u^2\,du=\tfrac13.

Question 10hard

Evaluate ∫01x31+x2 dx\displaystyle\int_0^1x^3\sqrt{1+x^2}\,dx.

Show answer
2(2+1)15≈0.3219\dfrac{2(\sqrt2+1)}{15}\approx0.3219

u=1+x2u=1+x^2, du=2x dxdu=2x\,dx, and x3dx=x2⋅x dx=(u−1)12dux^3dx=x^2\cdot x\,dx=(u-1)\tfrac12du. The limits go from 11 to 22. 12∫12(u3/2−u1/2)du=12[25u5/2−23u3/2]12\tfrac12\int_1^2(u^{3/2}-u^{1/2})du=\tfrac12\left[\tfrac25u^{5/2}-\tfrac23u^{3/2}\right]_1^2. At u=2u=2: 25⋅42−23⋅22=4215\tfrac25\cdot4\sqrt2-\tfrac23\cdot2\sqrt2=\tfrac{4\sqrt2}{15}. At u=1u=1: 25−23=−415\tfrac25-\tfrac23=-\tfrac4{15}. The difference is 42+415\tfrac{4\sqrt2+4}{15}, and half of it is 2(2+1)15\tfrac{2(\sqrt2+1)}{15}.

Question 11medium

Find the average value of f(x)=x2f(x)=x^2 on [0,3][0,3], and find cc in [0,3][0,3] where f(c)f(c) equals this average.

Show answer
average 3, c = √3

favg=13−0∫03x2 dx=13⋅9=3f_{\text{avg}}=\dfrac{1}{3-0}\int_0^3x^2\,dx=\dfrac13\cdot9=3. c2=3⇒c=3≈1.732c^2=3 \Rightarrow c=\sqrt3\approx1.732 (the root in the interval).

Question 12hard

Let F(x)=∫0xt2−41+t2 dtF(x)=\displaystyle\int_0^x\frac{t^2-4}{1+t^2}\,dt. Find the critical numbers of FF and classify them.

Show answer
x = -2 (local max), x = 2 (local min)

Fundamental Theorem: F′(x)=x2−41+x2F'(x)=\dfrac{x^2-4}{1+x^2}. The denominator is always positive, F′=0  ⟺  x=±2F'=0 \iff x=\pm2. Sign: F′>0F'>0 for ∣x∣>2|x|>2, F′<0F'<0 for ∣x∣<2|x|<2. At x=−2x=-2, +→−+\to-: local max. At x=2x=2, −→+-\to+: local min. There is no need to compute the integral.

Verification: All answers were checked with node (verify/MAT1051/12.mjs): definite integrals with Simpson's rule, antiderivatives by comparing F' = f, derivatives of integral functions by computing the integral numerically and differentiating with a central difference.

Review card

FTC 1: d/dx ∫_a^x f(t) dt = f(x) d/dx ∫_a^g(x) f(t) dt = f(g(x)) · g'(x) d/dx ∫_h(x)^g(x) f = f(g) g' - f(h) h' FTC 2: ∫_a^b f(x) dx = F(b) - F(a), F' = f (C is not needed, it cancels) Average value: f_avg = 1/(b-a) ∫_a^b f; there is a c with f(c) = f_avg u-SUBSTITUTION: u = inner function, du = u' dx; the integral must be entirely in terms of u In a definite integral: convert the limits to u as well (or go back to x at the end, don't mix the two) ∫ f(ax+b) dx = F(ax+b)/a + C ∫ u'/u = ln|u| ∫ tan x = -ln|cos x| = ln|sec x| Odd f: ∫_-a^a f = 0 Even f: ∫_-a^a f = 2∫_0^a f