Lemonmath
Tiếng Việt

Definite integrals

Lesson 4.2 · 22 min read · Updated

A motorbike accelerates for 33 seconds. Its velocity after tt seconds is v(t)=t2+2v(t)=t^2+2 (m/s): 22 m/s at the start, 33 m/s after 11 second, 66 m/s after 22 seconds and 1111 m/s after 33 seconds. How many metres does it travel in those 33 seconds?

A quick guess is to average the first and last velocities: 2+112⋅3=19.5\dfrac{2+11}{2}\cdot3=19.5 m. That only works when the velocity rises steadily, but here it rises faster and faster. Let us find the right answer.

The area under a graph

Explore: cutting time into small pieces

If the velocity is constant, the distance is velocity times time, which is the area of a rectangle. When the velocity changes, we cut [0,3][0, 3] into small pieces and treat the velocity as almost constant on each one.

With pieces 11 second long, taking the velocity at the start of each piece gives an underestimate, and taking it at the end gives an overestimate:

1⋅(2+3+6)=11,1⋅(3+6+11)=20.1\cdot(2+3+6)=11,\qquad 1\cdot(3+6+11)=20.

Length of each piece 11 0.50.5 0.10.1
Underestimate 1111 12.87512.875 14.55514.555
Overestimate 2020 17.37517.375 15.45515.455

The two estimates close in on one number, 1515. This number is the area of the region under the graph of v(t)v(t) from t=0t=0 to t=3t=3.

-0.50.51.01.52.02.53.03.54.024681012xyO(3, 11)
Distance as the area under v(t)=t2+2v(t)=t^2+2

Here is the surprise: if S(t)=t33+2tS(t)=\dfrac{t^3}{3}+2t is an antiderivative of v(t)v(t), then S(3)−S(0)=9+6−0=15S(3)-S(0)=9+6-0=15, exactly the same number. This is no coincidence.

The definition of the integral

The result does not depend on which antiderivative we choose: replacing FF by F+CF+C gives (F(b)+C)−(F(a)+C)=F(b)−F(a)(F(b)+C)-(F(a)+C)=F(b)-F(a). Nor does it depend on the name of the variable: ∫abf(x) dx=∫abf(t) dt\displaystyle\int_a^b f(x)\,dx=\int_a^b f(t)\,dt.

Why is it true? Let S(x)S(x) be the area under the graph from aa to xx. When xx grows by a small amount hh, the area grows by a thin strip that is almost a rectangle, so S(x+h)−S(x)≈f(x)⋅hS(x+h)-S(x)\approx f(x)\cdot h. Dividing by hh and letting h→0h\to0 gives S′(x)=f(x)S'(x)=f(x), so SS is an antiderivative of ff with S(a)=0S(a)=0. The area we want is therefore S(b)=S(b)−S(a)=F(b)−F(a)S(b)=S(b)-S(a)=F(b)-F(a).

The value at the lower limit is not always 00, especially for trigonometric functions.

Properties of the integral

The first two come from the rules for antiderivatives. The third holds because (F(c)−F(a))+(F(b)−F(c))=F(b)−F(a)\big(F(c)-F(a)\big)+\big(F(b)-F(c)\big)=F(b)-F(a); geometrically, we cut a region into two pieces.

With an absolute value, we find where the expression changes sign and split the interval using the third property.

-0.50.51.52.02.5-0.50.51.01.52.02.53.03.5xyO1
The graph of y=∣x2−1∣y=\lvert x^2-1\rvert on [0,2][0, 2]

Functions of the form f(ax+b)f(ax+b)

If FF is an antiderivative of ff, the chain rule (grade 11) gives (F(ax+b))′=a f(ax+b)\big(F(ax+b)\big)'=a\,f(ax+b). Dividing by aa gives the rule:

∫f(ax+b) dx=1aF(ax+b)+C(a≠0).\int f(ax+b)\,dx=\frac1a F(ax+b)+C\qquad(a\neq0).

For example, ∫cos⁡2x dx=12sin⁡2x+C\displaystyle\int\cos 2x\,dx=\frac12\sin2x+C and ∫e3xdx=13e3x+C\displaystyle\int e^{3x}dx=\frac13e^{3x}+C. This is the simplest case of integration by substitution, with u=ax+bu=ax+b.

Back to the motorbike

Key terms

Summary

  • ∫abf(x) dx=[F(x)]ab=F(b)−F(a)\displaystyle\int_a^b f(x)\,dx=\Big[F(x)\Big]_a^b=F(b)-F(a), where FF is any antiderivative of ff.
  • If f≥0f\ge0, the integral is the area under the graph; if the velocity is positive, the integral is the distance travelled.
  • ∫aa=0\displaystyle\int_a^a=0, ∫ba=−∫ab\displaystyle\int_b^a=-\int_a^b, ∫ab=∫ac+∫cb\displaystyle\int_a^b=\int_a^c+\int_c^b; constant factors and sums split apart.
  • With an absolute value: find where the sign changes, split the interval, remove the bars on each piece.
  • ∫f(ax+b) dx=1aF(ax+b)+C\displaystyle\int f(ax+b)\,dx=\frac1aF(ax+b)+C.

Practice

Each exercise comes with what you need and some steps to start. Try it yourself first, then open the solution.

Exercise 1

Evaluate ∫02(x3−2x+3) dx\displaystyle\int_0^2(x^3-2x+3)\,dx.

What you need and how to start

What you need: ∫abf(x) dx=F(b)−F(a)\displaystyle\int_a^b f(x)\,dx=F(b)-F(a).

Steps:

  1. Find an antiderivative F(x)=x44−x2+3xF(x)=\dfrac{x^4}{4}-x^2+3x.
  2. Compute F(2)−F(0)F(2)-F(0).
Show solution

[x44−x2+3x]02=(4−4+6)−0=6\Big[\dfrac{x^4}{4}-x^2+3x\Big]_0^2=(4-4+6)-0=6.

Answer. 66.

Exercise 2

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

What you need and how to start

What you need: x=x12\sqrt x=x^{\frac12} has antiderivative 23xx\dfrac23x\sqrt x; x−2x^{-2} has antiderivative −1x-\dfrac1x.

Steps:

  1. Write an antiderivative F(x)=23xx+1xF(x)=\dfrac23x\sqrt x+\dfrac1x.
  2. Compute F(4)−F(1)F(4)-F(1), taking care with the fractions.
Show solution

F(4)=163+14F(4)=\dfrac{16}{3}+\dfrac14 and F(1)=23+1F(1)=\dfrac23+1. The difference is 143−34=56−912=4712\dfrac{14}{3}-\dfrac34=\dfrac{56-9}{12}=\dfrac{47}{12}.

Answer. 4712\dfrac{47}{12}.

Exercise 3

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

What you need and how to start

What you need: the antiderivative of sin⁡x\sin x is −cos⁡x-\cos x; cos⁡π=−1\cos\pi=-1 and cos⁡0=1\cos0=1.

Steps:

  1. Write F(x)=−cos⁡x+2xF(x)=-\cos x+2x.
  2. Compute F(π)−F(0)F(\pi)-F(0).
Show solution

F(π)=1+2πF(\pi)=1+2\pi and F(0)=−1F(0)=-1. So the integral equals 1+2π−(−1)=2+2π1+2\pi-(-1)=2+2\pi.

Answer. 2+2π2+2\pi.

Exercise 4

Given ∫13f(x) dx=5\displaystyle\int_1^3 f(x)\,dx=5 and ∫13g(x) dx=−2\displaystyle\int_1^3 g(x)\,dx=-2, find ∫13(3f(x)−2g(x)+x) dx\displaystyle\int_1^3\big(3f(x)-2g(x)+x\big)\,dx.

What you need and how to start

What you need: split the sum and take constants outside the integral.

Steps:

  1. Write it as 3⋅5−2⋅(−2)+∫13x dx3\cdot5-2\cdot(-2)+\displaystyle\int_1^3x\,dx.
  2. Evaluate ∫13x dx\displaystyle\int_1^3x\,dx.
Show solution

∫13x dx=[x22]13=92−12=4\displaystyle\int_1^3x\,dx=\Big[\frac{x^2}{2}\Big]_1^3=\frac92-\frac12=4. The total is 15+4+4=2315+4+4=23.

Answer. 2323.

Exercise 5

Consider the integral I=∫03∣x−2∣ dxI=\displaystyle\int_0^3\lvert x-2\rvert\,dx. Is each claim true or false?

a) On [0,2][0, 2], ∣x−2∣=2−x\lvert x-2\rvert=2-x.

b) I=∣∫03(x−2) dx∣=32I=\left\lvert\displaystyle\int_0^3(x-2)\,dx\right\rvert=\dfrac32.

c) I=52I=\dfrac52.

d) ∫30∣x−2∣ dx=52\displaystyle\int_3^0\lvert x-2\rvert\,dx=\dfrac52.

What you need and how to start

What you need: split the interval where x−2x-2 changes sign; swapping the limits changes the sign.

Steps:

  1. Find the sign of x−2x-2 on [0,2][0, 2] and on [2,3][2, 3].
  2. Evaluate the two smaller integrals and add.
Show solution

a) True: for x≤2x\le2, x−2≤0x-2\le0.

b) False: the absolute value cannot be moved outside; II is not 32\dfrac32 (see c).

c) True: ∫02(2−x) dx=2\displaystyle\int_0^2(2-x)\,dx=2 and ∫23(x−2) dx=12\displaystyle\int_2^3(x-2)\,dx=\frac12, so I=52I=\dfrac52.

d) False: swapping the limits changes the sign, so that integral equals −52-\dfrac52.

Answer. a) True; b) False; c) True; d) False.

Exercise 6

Evaluate ∫01(3x+1)2 dx\displaystyle\int_0^1(3x+1)^2\,dx.

What you need and how to start

What you need: ∫f(ax+b) dx=1aF(ax+b)+C\displaystyle\int f(ax+b)\,dx=\frac1aF(ax+b)+C, here with a=3a=3.

Steps:

  1. An antiderivative is (3x+1)39\dfrac{(3x+1)^3}{9}.
  2. Substitute the limits 11 and 00.
Show solution

[(3x+1)39]01=649−19=7\Big[\dfrac{(3x+1)^3}{9}\Big]_0^1=\dfrac{64}{9}-\dfrac19=7.

Answer. 77.

Exercise 7

Water flows into a tank at the rate r(t)=40−2tr(t)=40-2t (litres per minute), 0≤t≤100\le t\le10. How much water flows into the tank in the first 1010 minutes?

What you need and how to start

What you need: the amount that flows in from t=at=a to t=bt=b is ∫abr(t) dt\displaystyle\int_a^b r(t)\,dt (the rate is non-negative).

Steps:

  1. Write ∫010(40−2t) dt\displaystyle\int_0^{10}(40-2t)\,dt.
  2. Evaluate it with the antiderivative 40t−t240t-t^2.
Show solution

[40t−t2]010=400−100=300\Big[40t-t^2\Big]_0^{10}=400-100=300.

Answer. 300300 litres.

Exercise 8 Review

F(x)F(x) is an antiderivative of f(x)f(x) on R\mathbb{R} with F(1)=2F(1)=2 and F(4)=7F(4)=7. Find ∫14f(x) dx\displaystyle\int_1^4 f(x)\,dx and ∫14(2f(x)+1) dx\displaystyle\int_1^4\big(2f(x)+1\big)\,dx.

What you need and how to start

What you need: the definition of the integral through an antiderivative (see antiderivatives).

Steps:

  1. ∫14f(x) dx=F(4)−F(1)\displaystyle\int_1^4f(x)\,dx=F(4)-F(1).
  2. Split the sum; ∫141 dx=3\displaystyle\int_1^41\,dx=3.
Show solution

∫14f(x) dx=7−2=5\displaystyle\int_1^4f(x)\,dx=7-2=5. Then ∫14(2f(x)+1) dx=2⋅5+3=13\displaystyle\int_1^4\big(2f(x)+1\big)\,dx=2\cdot5+3=13.

Answer. 55 and 1313.

Exercise 9 Review

Evaluate ∫0ln⁡3ex dx\displaystyle\int_0^{\ln3}e^x\,dx and ∫122x dx\displaystyle\int_1^2 2^x\,dx (give the second one to 2 decimal places).

What you need and how to start

What you need: eln⁡a=ae^{\ln a}=a (logarithms, grade 11); the antiderivative of 2x2^x is 2xln⁡2\dfrac{2^x}{\ln2}.

Steps:

  1. [ex]0ln⁡3=eln⁡3−e0\Big[e^x\Big]_0^{\ln3}=e^{\ln3}-e^0.
  2. [2xln⁡2]12=4−2ln⁡2\Big[\dfrac{2^x}{\ln2}\Big]_1^2=\dfrac{4-2}{\ln2}.
Show solution

∫0ln⁡3ex dx=3−1=2\displaystyle\int_0^{\ln3}e^x\,dx=3-1=2. ∫122x dx=2ln⁡2≈2.885\displaystyle\int_1^22^x\,dx=\frac{2}{\ln2}\approx2.885.

Answer. 22 and 2ln⁡2≈2.89\dfrac{2}{\ln2}\approx2.89.

Exercise 10 Challenge

Evaluate ∫−12∣x2−x∣ dx\displaystyle\int_{-1}^2\lvert x^2-x\rvert\,dx.

What you need and how to start

What you need: x2−x=x(x−1)x^2-x=x(x-1) changes sign at 00 and 11; it is positive outside the roots and negative between them.

Steps:

  1. Split into the three intervals [−1,0][-1, 0], [0,1][0, 1], [1,2][1, 2].
  2. Use the antiderivative G(x)=x33−x22G(x)=\dfrac{x^3}{3}-\dfrac{x^2}{2} on each piece, changing the sign on the middle one.
Show solution

G(−1)=−56G(-1)=-\dfrac56, G(0)=0G(0)=0, G(1)=−16G(1)=-\dfrac16, G(2)=23G(2)=\dfrac23. The three parts: G(0)−G(−1)=56G(0)-G(-1)=\dfrac56; −(G(1)−G(0))=16-(G(1)-G(0))=\dfrac16; G(2)−G(1)=56G(2)-G(1)=\dfrac56. The total is 56+16+56=116\dfrac56+\dfrac16+\dfrac56=\dfrac{11}{6}.

Answer. 116\dfrac{11}{6}.

Mini test

Mini test

Marked like the Vietnamese graduation exam: Part I 0.25 points per question; Part II up to 1 point per question (1, 2, 3, 4 correct statements give 0.1, 0.25, 0.5, 1 point); Part III 0.5 points per question.

Part I. Multiple choice

Question 1. The integral ∫12(2x+1) dx\displaystyle\int_1^2(2x+1)\,dx equals
Question 2. Given ∫05f(x) dx=7\displaystyle\int_0^5 f(x)\,dx=7 and ∫02f(x) dx=3\displaystyle\int_0^2 f(x)\,dx=3, the value of ∫25f(x) dx\displaystyle\int_2^5 f(x)\,dx is
Question 3. The integral ∫0πsin⁡x dx\displaystyle\int_0^{\pi}\sin x\,dx equals
Question 4. The integral ∫01e2x dx\displaystyle\int_0^1 e^{2x}\,dx equals

Part II. True or false

Question 1. Consider f(x)=x2−4x+3f(x)=x^2-4x+3.
a) ∫03f(x) dx=0\displaystyle\int_0^3 f(x)\,dx=0.
b) f(x)≤0f(x)\le0 for every x∈[1,3]x\in[1, 3].
c) ∫03∣f(x)∣ dx=0\displaystyle\int_0^3\lvert f(x)\rvert\,dx=0.
d) ∫03∣f(x)∣ dx=83\displaystyle\int_0^3\lvert f(x)\rvert\,dx=\dfrac83.

Part III. Short answer

Question 1. Evaluate ∫02(x3+3x2) dx\displaystyle\int_0^2(x^3+3x^2)\,dx.

Question 2. Evaluate ∫1e(2x+1x)dx\displaystyle\int_1^e\left(2x+\frac1x\right)dx. Give your answer to 1 decimal place.

Show answers and explanations
  1. Part I, question 1: C. [x2+x]12=6−2=4\Big[x^2+x\Big]_1^2=6-2=4. A forgets to subtract the value at the lower limit, B subtracts the wrong way round, and D computes f(2)−f(1)f(2)-f(1) instead of using an antiderivative.
  2. Part I, question 2: B. ∫05=∫02+∫25\displaystyle\int_0^5=\int_0^2+\int_2^5, so ∫25f(x) dx=7−3=4\displaystyle\int_2^5 f(x)\,dx=7-3=4. A adds instead of subtracting; C and D have the wrong sign.
  3. Part I, question 3: C. [−cos⁡x]0π=−(−1)−(−1)=2\Big[-\cos x\Big]_0^{\pi}=-(-1)-(-1)=2. A uses the wrong antiderivative cos⁡x\cos x, B takes the value at the lower limit as 00, and D is the result for cos⁡x\cos x on [0,π][0, \pi].
  4. Part I, question 4: B. The antiderivative is e2x2\dfrac{e^{2x}}{2}, so the integral is e2−e02=e2−12\dfrac{e^2-e^0}{2}=\dfrac{e^2-1}{2}. A forgets the factor 12\dfrac12, C multiplies instead of dividing, and D takes e0=0e^0=0.
  5. Part II, question 1: a) True; b) True; c) False; d) True. a) True: [x33−2x2+3x]03=9−18+9=0\Big[\dfrac{x^3}{3}-2x^2+3x\Big]_0^3=9-18+9=0. b) True: ff has roots 11 and 33 and leading coefficient a>0a>0. c) False: the integral of a non-negative function that is not identically 00 is positive. d) True: ∫01f=43\displaystyle\int_0^1 f=\frac43 and ∫13(−f)=43\displaystyle\int_1^3(-f)=\frac43, a total of 83\dfrac83.
  6. Part III, question 1: 12. [x44+x3]02=4+8=12\Big[\dfrac{x^4}{4}+x^3\Big]_0^2=4+8=12.
  7. Part III, question 2: 7.4. [x2+ln⁡x]1e=(e2+1)−(1+0)=e2≈7.389\Big[x^2+\ln x\Big]_1^e=(e^2+1)-(1+0)=e^2\approx7.389, which rounds to 7.47.4.