MAT1051 · Week 11 · Areas as Limits of Sums, the Definite Integral, Antiderivatives

Area as a limit of sums, the definite integral and the antiderivative

Sigma notation, left/right/midpoint Riemann sums, the definition of area as a limit, properties of the definite integral and the antiderivative (indefinite integral) table. The foundation of the integral weeks.

sigma notationRiemann sumleft endpointright endpointmidpoint rulepartitiondefinite integralintegrandsigned areaantiderivativeindefinite integralinitial value problem

Until now you have worked with derivatives: you asked how fast a function changes. This week you ask the reverse question: if the rate of change is known, how much is the total change? The geometric counterpart is the area under a curve. You approximate the area with rectangles (a Riemann sum), send the number of rectangles to infinity (a limit), and get the definite integral. The second half of the week is the antiderivative: finding the function whose derivative is given. Next week the Fundamental Theorem of Calculus will connect the two. For this week:

  1. Memorize the sigma formulas. ∑i\sum i, ∑i2\sum i^2, ∑i3\sum i^3.
  2. Riemann sum: Δx=b−an\Delta x=\tfrac{b-a}{n}, choose the endpoints correctly, add up the f(xi)Δxf(x_i)\Delta x.
  3. The definite integral is signed area. Below the axis counts as negative.
  4. The antiderivative table is the derivative table read backwards.
  5. In an indefinite integral, +C+C is required.

Sigma notation

∑i=1nai=a1+a2+⋯+an\sum_{i=1}^{n}a_i=a_1+a_2+\cdots+a_n

Rules: ∑(ai±bi)=∑ai±∑bi\sum(a_i\pm b_i)=\sum a_i\pm\sum b_i, ∑cai=c∑ai\sum ca_i=c\sum a_i, ∑i=1nc=nc\sum_{i=1}^nc=nc. The sum of a product does not split: ∑aibi≠(∑ai)(∑bi)\sum a_ib_i\ne\left(\sum a_i\right)\left(\sum b_i\right).

∑i=1ni=n(n+1)2,∑i=1ni2=n(n+1)(2n+1)6,∑i=1ni3=[n(n+1)2]2\sum_{i=1}^ni=\frac{n(n+1)}{2},\qquad \sum_{i=1}^ni^2=\frac{n(n+1)(2n+1)}{6},\qquad \sum_{i=1}^ni^3=\left[\frac{n(n+1)}{2}\right]^2

Example 1. ∑i=110(2i2−i)=2⋅10⋅11⋅216−10⋅112=2⋅385−55=715\displaystyle\sum_{i=1}^{10}(2i^2-i)=2\cdot\frac{10\cdot11\cdot21}{6}-\frac{10\cdot11}{2}=2\cdot385-55=715.

Riemann sums

Divide the interval [a,b][a,b] into nn equal pieces: the width of each piece is Δx=b−an\Delta x=\dfrac{b-a}{n}. Put a rectangle on each piece; its height is the value of ff at a point chosen inside the piece. The sum of the rectangle areas:

∑i=1nf(xi∗) Δx\sum_{i=1}^nf(x_i^*)\,\Delta x

Depending on where you choose the point, there are three types:

TypePointFormula
Left endpoint (LnL_n)xi−1=a+(i−1)Δxx_{i-1}=a+(i-1)\Delta xΔx∑f(a+(i−1)Δx)\Delta x\sum f(a+(i-1)\Delta x)
Right endpoint (RnR_n)xi=a+iΔxx_i=a+i\Delta xΔx∑f(a+iΔx)\Delta x\sum f(a+i\Delta x)
Midpoint (MnM_n)a+(i−12)Δxa+(i-\tfrac12)\Delta xΔx∑f(a+(i−12)Δx)\Delta x\sum f(a+(i-\tfrac12)\Delta x)

Example 2. f(x)=4−x2f(x)=4-x^2, [0,2][0,2], n=4n=4. Δx=0.5\Delta x=0.5.

x:      0      0.5     1      1.5     2
f(x):   4      3.75    3      1.75    0
L_4 = 0.5 (4 + 3.75 + 3 + 1.75) = 0.5 · 12.5 = 6.25
R_4 = 0.5 (3.75 + 3 + 1.75 + 0) = 0.5 · 8.5  = 4.25
true area = 16/3 ≈ 5.333

ff is decreasing on this interval: the left endpoint takes the highest value in each rectangle, so L4L_4 overestimates. The right endpoint underestimates. The true value is between the two.

Area = limit of sums

As n→∞n\to\infty the rectangles get thinner and the sum approaches the true area. To compute it, write xix_i in terms of ii, apply the sigma formulas, and take the limit.

Example 3. The area under y=x2y=x^2 on the interval [0,1][0,1].

Δx=1n\Delta x=\dfrac1n, xi=inx_i=\dfrac in.

Rn=∑i=1n(in)21n=1n3∑i=1ni2=1n3⋅n(n+1)(2n+1)6=(n+1)(2n+1)6n2R_n=\sum_{i=1}^n\left(\frac in\right)^2\frac1n=\frac{1}{n^3}\sum_{i=1}^ni^2=\frac{1}{n^3}\cdot\frac{n(n+1)(2n+1)}{6}=\frac{(n+1)(2n+1)}{6n^2}

lim⁡n→∞2n2+3n+16n2=26=13\lim_{n\to\infty}\frac{2n^2+3n+1}{6n^2}=\frac26=\frac13

This method is long, but it is mandatory in a question that says “use the definition / limit of Riemann sums”. With next week’s theorem the same result comes out in one line.

The definite integral

∫abf(x) dx=lim⁡n→∞∑i=1nf(xi∗) Δx\int_a^bf(x)\,dx=\lim_{n\to\infty}\sum_{i=1}^nf(x_i^*)\,\Delta x

ff is the integrand, aa and bb are the limits. For continuous functions this limit always exists and does not depend on the choice of points.

Meaning: signed area. If f≥0f\ge0, it is the area under the curve. If ff goes below the axis, that part counts as negative.

∫abf(x) dx=(area above the axis)−(area below the axis)\int_a^bf(x)\,dx=(\text{area above the axis})-(\text{area below the axis})

Example 4. ∫−13(2x−2) dx\displaystyle\int_{-1}^{3}(2x-2)\,dx. The line is zero at x=1x=1. On [−1,1][-1,1], below the axis, there is a triangle with base 22 and depth 44: −4-4. On [1,3][1,3], above, a triangle of the same size: +4+4. The integral is 00. But the shaded total area is 88.

PITFALL · thinking integral = area. In a “find the area” question, if the function goes below the axis, take the absolute value of that part: ∫∣f∣\int|f|. If it says “evaluate the integral”, give the signed value.

Properties

∫aaf dx=0,∫baf dx=−∫abf dx,∫abf dx+∫bcf dx=∫acf dx\int_a^af\,dx=0,\qquad \int_b^af\,dx=-\int_a^bf\,dx,\qquad \int_a^bf\,dx+\int_b^cf\,dx=\int_a^cf\,dx

∫ab(cf+g) dx=c∫abf dx+∫abg dx,∫abc dx=c(b−a)\int_a^b\big(cf+g\big)\,dx=c\int_a^bf\,dx+\int_a^bg\,dx,\qquad \int_a^bc\,dx=c(b-a)

Comparison: if f≤gf\le g on [a,b][a,b], then ∫abf≤∫abg\int_a^bf\le\int_a^bg. If m≤f≤Mm\le f\le M, then m(b−a)≤∫abf≤M(b−a)m(b-a)\le\int_a^bf\le M(b-a).

Integrals that can be computed geometrically: lines (triangles, trapezoids), r2−x2\sqrt{r^2-x^2} (a semicircle), ∣x−c∣|x-c| (triangles).

The antiderivative

If F′(x)=f(x)F'(x)=f(x), then FF is an antiderivative of ff. By the consequence of the MVT (week 9), all antiderivatives of ff have the form F(x)+CF(x)+C. We write this with the indefinite integral:

∫f(x) dx=F(x)+C\int f(x)\,dx=F(x)+C

f(x)f(x)∫f(x) dx\int f(x)\,dx
xnx^n (n≠−1n\ne-1)xn+1n+1+C\dfrac{x^{n+1}}{n+1}+C
1x\dfrac1xln⁡∣x∣+C\ln\lvert x\rvert+C
exe^xex+Ce^x+C
axa^xaxln⁡a+C\dfrac{a^x}{\ln a}+C
cos⁡x\cos xsin⁡x+C\sin x+C
sin⁡x\sin x−cos⁡x+C-\cos x+C
sec⁡2x\sec^2xtan⁡x+C\tan x+C
sec⁡xtan⁡x\sec x\tan xsec⁡x+C\sec x+C
11+x2\dfrac{1}{1+x^2}arctan⁡x+C\arctan x+C
11−x2\dfrac{1}{\sqrt{1-x^2}}arcsin⁡x+C\arcsin x+C

Example 5. ∫(3x2−4x+5) dx=x3−2x2+5x+C\displaystyle\int(3x^2-4x+5)\,dx=x^3-2x^2+5x+C.

Example 6 (expand first). ∫(x2+1)2x2 dx=∫x4+2x2+1x2 dx=∫(x2+2+x−2)dx=x33+2x−1x+C\displaystyle\int\frac{(x^2+1)^2}{x^2}\,dx=\int\frac{x^4+2x^2+1}{x^2}\,dx=\int\left(x^2+2+x^{-2}\right)dx=\frac{x^3}{3}+2x-\frac1x+C.

There is no rule for the integral of a product or a quotient. First expand or divide, then integrate term by term.

TIP · check your answer by differentiating. After finding an antiderivative, take its derivative; you should get the integrand back. This 20-second check catches most sign errors on an exam.

Initial value problems

If the derivative and a point are given, CC is determined.

Example 7. An object has acceleration a(t)=6ta(t)=6t, v(0)=−3v(0)=-3, s(0)=2s(0)=2.

v(t) = ∫ 6t dt = 3t^2 + C1,      v(0) = C1 = -3     ->  v = 3t^2 - 3
s(t) = ∫ (3t^2 - 3) dt = t^3 - 3t + C2,   s(0) = C2 = 2
s(t) = t^3 - 3t + 2

Common mistakes

Wrong thinkingCorrect
1n\dfrac1n instead of Δx=b−an\Delta x=\dfrac{b-a}{n}If the interval is not [0,1][0,1], use b−an\dfrac{b-a}{n}
xi=inx_i=\dfrac in in the right sumGeneral: xi=a+iΔxx_i=a+i\Delta x; if a≠0a\ne0, add aa
The integral is always areaSigned area; below the axis is negative
∫baf=∫abf\int_b^af=\int_a^bfThe sign flips
∫x−1dx=x00\int x^{-1}dx=\dfrac{x^0}{0}ln⁡∣x∣+C\ln\lvert x\rvert+C
∫sin⁡x dx=cos⁡x\int\sin x\,dx=\cos x−cos⁡x+C-\cos x+C
∫fg dx=∫f∫g\int fg\,dx=\int f\int gNo such rule; expand, or use integration by parts in week 13
Not writing +C+CAlways +C+C in an indefinite integral
∫1x2dx=ln⁡x2\int\dfrac{1}{x^2}dx=\ln x^2∫x−2dx=−x−1+C\int x^{-2}dx=-x^{-1}+C

Test yourself

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

Question 1easy

Evaluate ∑i=120(3i−2)\displaystyle\sum_{i=1}^{20}(3i-2).

Show answer
590

Split the sum: 3∑i−∑2=3⋅20⋅212−2⋅20=3⋅210−40=5903\sum i-\sum 2=3\cdot\dfrac{20\cdot21}{2}-2\cdot20=3\cdot210-40=590. The sum of a constant is the constant times the number of terms.

Question 2easy

Compute the right Riemann sum R4R_4 for f(x)=x2f(x)=x^2 on [0,2][0,2].

Show answer
3.75

Δx=2−04=0.5\Delta x=\dfrac{2-0}{4}=0.5. Right endpoints: 0.5,1,1.5,20.5,1,1.5,2. R4=0.5 (0.25+1+2.25+4)=0.5⋅7.5=3.75R_4=0.5\,(0.25+1+2.25+4)=0.5\cdot7.5=3.75. The true area is 83≈2.667\tfrac83\approx2.667; since ff is increasing, the right sum overestimates.

Question 3medium

Use the Midpoint Rule with n=4n=4 to approximate ∫131x dx\displaystyle\int_1^3\frac1x\,dx.

Show answer
≈ 1.0898

Δx=0.5\Delta x=0.5. Midpoints: 1.25,1.75,2.25,2.751.25,1.75,2.25,2.75. M4=0.5(11.25+11.75+12.25+12.75)=0.5(0.8+0.5714+0.4444+0.3636)≈0.5⋅2.1795=1.0898M_4=0.5\left(\tfrac{1}{1.25}+\tfrac{1}{1.75}+\tfrac{1}{2.25}+\tfrac{1}{2.75}\right)=0.5(0.8+0.5714+0.4444+0.3636)\approx0.5\cdot2.1795=1.0898. The true value is ln⁡3≈1.0986\ln3\approx1.0986.

Question 4medium

Use the limit of right Riemann sums to evaluate ∫03(x2+1) dx\displaystyle\int_0^3(x^2+1)\,dx.

Show answer
12

Δx=3n\Delta x=\tfrac3n, xi=3inx_i=\tfrac{3i}{n}. Rn=∑i=1n(9i2n2+1)3n=27n3∑i2+3n⋅n=27n3⋅n(n+1)(2n+1)6+3R_n=\sum_{i=1}^n\left(\tfrac{9i^2}{n^2}+1\right)\tfrac3n=\tfrac{27}{n^3}\sum i^2+\tfrac3n\cdot n=\tfrac{27}{n^3}\cdot\tfrac{n(n+1)(2n+1)}{6}+3. As n→∞n\to\infty: 27⋅26+3=9+3=12\tfrac{27\cdot2}{6}+3=9+3=12.

Question 5easy

Evaluate ∫−224−x2 dx\displaystyle\int_{-2}^{2}\sqrt{4-x^2}\,dx by interpreting it as an area.

Show answer
2π

y=4−x2y=\sqrt{4-x^2} is the upper half of the circle of radius 22. [−2,2][-2,2] covers the whole semicircle. The area is 12πr2=12π⋅4=2π\tfrac12\pi r^2=\tfrac12\pi\cdot4=2\pi.

Question 6medium

Evaluate ∫04∣x−1∣ dx\displaystyle\int_0^4|x-1|\,dx using geometry.

Show answer
5

The graph is a V that touches zero at x=1x=1. [0,1][0,1]: base 11, height 11, triangle area 12\tfrac12. [1,4][1,4]: base 33, height 33, area 92\tfrac92. Total 12+92=5\tfrac12+\tfrac92=5. The absolute value is never negative, so both pieces are positive.

Question 7easy

Given ∫15f(x) dx=7\displaystyle\int_1^5f(x)\,dx=7 and ∫13f(x) dx=3\displaystyle\int_1^3f(x)\,dx=3, find ∫35(2f(x)+1) dx\displaystyle\int_3^5\big(2f(x)+1\big)\,dx.

Show answer
10

Adding intervals: ∫35f=∫15f−∫13f=7−3=4\int_3^5f=\int_1^5f-\int_1^3f=7-3=4. Linearity: ∫35(2f+1)=2⋅4+∫351 dx=8+(5−3)=10\int_3^5(2f+1)=2\cdot4+\int_3^51\,dx=8+(5-3)=10.

Question 8easy

Find ∫(6x2−4x3+3x)dx\displaystyle\int\left(6x^2-\frac{4}{x^3}+3\sqrt{x}\right)dx.

Show answer
2x3+2x2+2x3/2+C2x^3+\dfrac{2}{x^2}+2x^{3/2}+C

Write as powers: 6x2−4x−3+3x1/26x^2-4x^{-3}+3x^{1/2}. Power rule ∫xn=xn+1n+1\int x^n=\dfrac{x^{n+1}}{n+1}: 6⋅x33−4⋅x−2−2+3⋅x3/23/2=2x3+2x−2+2x3/2+C6\cdot\dfrac{x^3}{3}-4\cdot\dfrac{x^{-2}}{-2}+3\cdot\dfrac{x^{3/2}}{3/2}=2x^3+2x^{-2}+2x^{3/2}+C. To check, differentiate.

Question 9easy

Find ∫(sec⁡2x−2sin⁡x+ex)dx\displaystyle\int\left(\sec^2x-2\sin x+e^x\right)dx.

Show answer
tan x + 2cos x + eˣ + C

Read the derivative table backwards: (tan⁡x)′=sec⁡2x(\tan x)'=\sec^2x, (cos⁡x)′=−sin⁡x(\cos x)'=-\sin x so ∫−2sin⁡x=2cos⁡x\int-2\sin x=2\cos x, (ex)′=ex(e^x)'=e^x. Total tan⁡x+2cos⁡x+ex+C\tan x+2\cos x+e^x+C.

Question 10medium

Find f(x)f(x) if f′′(x)=6x−4f''(x)=6x-4, f′(0)=1f'(0)=1 and f(0)=2f(0)=2.

Show answer
f(x) = x³ - 2x² + x + 2

Integrate once: f′(x)=3x2−4x+C1f'(x)=3x^2-4x+C_1, f′(0)=C1=1f'(0)=C_1=1. Once more: f(x)=x3−2x2+x+C2f(x)=x^3-2x^2+x+C_2, f(0)=C2=2f(0)=C_2=2. Two integrations, two constants, two conditions.

Question 11hard

Express lim⁡n→∞∑i=1n2n(1+2in)2\displaystyle\lim_{n\to\infty}\sum_{i=1}^{n}\frac{2}{n}\left(1+\frac{2i}{n}\right)^2 as a definite integral and evaluate it using summation formulas.

Show answer
∫13x2 dx=263\displaystyle\int_1^3x^2\,dx=\frac{26}{3}

Δx=2n\Delta x=\tfrac2n and xi=1+2inx_i=1+\tfrac{2i}{n}: the interval starts at a=1a=1 with length 22, that is [1,3][1,3]; the function is x2x^2. Computation: 2n∑(1+4in+4i2n2)=2+8n2⋅n(n+1)2+8n3⋅n(n+1)(2n+1)6→2+4+83=263\tfrac2n\sum\left(1+\tfrac{4i}{n}+\tfrac{4i^2}{n^2}\right)=2+\tfrac{8}{n^2}\cdot\tfrac{n(n+1)}{2}+\tfrac{8}{n^3}\cdot\tfrac{n(n+1)(2n+1)}{6}\to2+4+\tfrac83=\tfrac{26}{3}.

Question 12hard

Find f(x)f(x) for x>0x>0 if f′(x)=1x+21+x2f'(x)=\dfrac1x+\dfrac{2}{1+x^2} and f(1)=πf(1)=\pi.

Show answer
f(x) = ln x + 2 arctan x + π/2

Antiderivative: f(x)=ln⁡x+2arctan⁡x+Cf(x)=\ln x+2\arctan x+C. At x=1x=1: 0+2⋅π4+C=π⇒C=π−π2=π20+2\cdot\tfrac\pi4+C=\pi \Rightarrow C=\pi-\tfrac\pi2=\tfrac\pi2.

Verification: All answers were checked with node (verify/MAT1051/11.mjs): summation formulas by direct summation for several n, Riemann sums by explicit computation and seeing them approach the limit for n = 1e6, definite integrals with Simpson's rule, antiderivatives by comparing F' = f.

Review card

Σ i = n(n+1)/2 Σ i^2 = n(n+1)(2n+1)/6 Σ i^3 = [n(n+1)/2]^2 Σ c = nc Δx = (b - a)/n right end: x_i = a + iΔx left end: a + (i-1)Δx mid: a + (i - 1/2)Δx R_n = Σ f(x_i) Δx; ∫_a^b f dx = lim (n->inf) R_n f increasing: left underestimates, right overestimates; decreasing: the reverse ∫ = SIGNED area: below the axis is negative. For total (geometric) area use |f| ∫_a^a = 0 ∫_b^a = -∫_a^b ∫_a^b + ∫_b^c = ∫_a^c ∫(cf + g) = c∫f + ∫g ∫ x^n dx = x^(n+1)/(n+1) + C (n ≠ -1) ∫ dx/x = ln|x| + C ∫ e^x = e^x ∫ cos = sin ∫ sin = -cos ∫ sec^2 = tan ∫ sec tan = sec ∫ dx/(1+x^2) = arctan x ∫ dx/√(1-x^2) = arcsin x In an indefinite integral DON'T FORGET +C; find C with the initial condition