Educerie

Educerie · IB Diploma · Mathematics: analysis and approaches

IB Mathematics AA 5.5 · SL and HL

Anti-differentiation and area

If you know how fast something is changing, how do you get back to the thing itself, and why does that same process give the area under a curve?

What you will learn

  • Understand integration as the reverse of differentiation, with a constant of integration
  • Know how a boundary condition fixes the constant of integration
  • Understand that the area under a positive curve is a definite integral and equals F(b) minus F(a)
  • Know how to evaluate definite integrals with the GDC, including distance from a velocity graph

You must be able to

  1. Integrate a sum of integer powers, rewriting brackets and fractions first
  2. Find f(x) from f'(x) and a given point
  3. Write an integral for the area enclosed by a curve and the x-axis, then evaluate it on the GDC
  4. Find the limits of an area from the curve's x-intercepts
  5. Calculate the distance travelled from a positive velocity function
  6. Use rules of definite integrals to combine given integral values

In the exam. Paper 1, as a 3 to 6 mark question: integrate a polynomial or a sum of powers, then use a given point to find the constant. Paper 2, as the area of a region or the distance travelled from a velocity, where you must write the correct definite integral and then evaluate it on the GDC. The guide expects that expression to be written before the value is calculated.

1Reversing the power rule

To differentiate xnx^{n} you multiply by nn and reduce the power by one. To undo that, do the opposite steps in the opposite order: increase the power by one, then divide by the new power.

∫xn dx=xn+1n+1+C,n≠−1\int x^{n}\,dx = \dfrac{x^{n+1}}{n+1} + C, \quad n \ne -1. (Formula booklet.)

  • The symbol ∫… dx\int \dots\,dx means "the anti-derivative of … with respect to xx". The result is called an indefinite integral.
    • The expression being integrated is the integrand. The dxdx names the variable of integration, as in dydx\dfrac{dy}{dx}.

You can also find the rule by working backwards from derivatives you already know:

differentiategivesso an anti-derivative ofis
x2x^{2}2x2x2x2xx2x^{2}
x5x^{5}5x45x^{4}x4x^{4}15x5\tfrac{1}{5}x^{5}
x−2x^{-2}−2x−3-2x^{-3}x−3x^{-3}−12x−2-\tfrac{1}{2}x^{-2}
  • The last column shows the rule. Any two anti-derivatives of the same function differ only by a constant. That is where +C+ C comes from (section 3).
  • Check any integral by differentiating it. ddx(x44)=4x34=x3\dfrac{d}{dx}\left(\dfrac{x^{4}}{4}\right) = \dfrac{4x^{3}}{4} = x^{3}, so ∫x3 dx=x44+C\int x^{3}\,dx = \dfrac{x^{4}}{4} + C is right. This catches nearly every slip.
  • Multiples and sums work as for differentiation. A number in front stays in front, and a sum is done term by term.
∫(9x2+10x−7) dx=9×x33+10×x22−7x+Craise each power by 1, divide by the new power=3x3+5x2−7x+Ccheck: ddx gives 9x2+10x−7\begin{aligned} &\int (9x^{2} + 10x - 7)\,dx \\[6pt] &= 9 \times \frac{x^{3}}{3} + 10 \times \frac{x^{2}}{2} - 7x + C && \textcolor{#838c91}{\text{raise each power by }1\text{, divide by the new power}} \\[6pt] &= 3x^{3} + 5x^{2} - 7x + C && \textcolor{#838c91}{\text{check: }\tfrac{d}{dx}\text{ gives }9x^{2} + 10x - 7}\end{aligned}

Two entries catch people:

  • A constant. ∫7 dx=7x+C\int 7\,dx = 7x + C, because 7=7x07 = 7x^{0}, and raising the power gives 7x11\dfrac{7x^{1}}{1}. The derivative of 7x7x is 77.
  • Negative powers. ∫6x3 dx=∫6x−3 dx=6×x−2−2+C=−3x−2+C=−3x2+C\int \dfrac{6}{x^{3}}\,dx = \int 6x^{-3}\,dx = 6 \times \dfrac{x^{-2}}{-2} + C = -3x^{-2} + C = -\dfrac{3}{x^{2}} + C. Raising −3-3 by one gives −2-2, not −4-4.

Why n≠−1n \ne -1

  • For n=−1n = -1 the rule would divide by n+1=0n + 1 = 0.
  • So ∫1x dx\int \tfrac{1}{x}\,dx needs a different answer, a logarithm (5.10). On this page every power is an integer other than −1-1.

2Rewrite first, as you would to differentiate

The rule works only on sums of terms axnax^{n}. There is no product rule or quotient rule for integration at this level. So rewrite a bracket or a fraction before you start.

Expand brackets.

∫(2x−1)(x+4) dx=∫(2x2+7x−4) dxexpand first=2x33+7x22−4x+C\begin{aligned} &\int (2x-1)(x+4)\,dx \\[6pt] &= \int (2x^{2} + 7x - 4)\,dx && \textcolor{#838c91}{\text{expand first}} \\[6pt] &= \frac{2x^{3}}{3} + \frac{7x^{2}}{2} - 4x + C\end{aligned}

Integrating each bracket and multiplying the results is wrong, and scores nothing.

Split a fraction over a single term.

∫3x4+2x3 dx=∫(3x+2x−3)dx3x4x3=3x, 2x3=2x−3=3x22+2×x−2−2+C=3x22−x−2+C=3x22−1x2+C\begin{aligned} &\int \frac{3x^{4} + 2}{x^{3}}\,dx \\[6pt] &= \int \left(3x + 2x^{-3}\right)dx && \textcolor{#838c91}{\tfrac{3x^{4}}{x^{3}} = 3x\text{, }\tfrac{2}{x^{3}} = 2x^{-3}} \\[6pt] &= \frac{3x^{2}}{2} + 2 \times \frac{x^{-2}}{-2} + C \\[6pt] &= \frac{3x^{2}}{2} - x^{-2} + C && \textcolor{#838c91}{= \tfrac{3x^{2}}{2} - \tfrac{1}{x^{2}} + C}\end{aligned}

Check: ddx(32x2−x−2)=3x+2x−3\dfrac{d}{dx}\left(\tfrac{3}{2}x^{2} - x^{-2}\right) = 3x + 2x^{-3}. ✓

3The constant of integration, and boundary conditions

  • Figure 1 shows why the +C+ C is needed. The curves y=x2+Cy = x^{2} + C, for any CC, all have derivative 2x2x. They are the same shape shifted up or down, with the same gradient at every xx.
  • Knowing dydx=2x\dfrac{dy}{dx} = 2x gives the shape but not the height.
Figure 1 · Every curve here has derivative 2x x y −2 −1 1 2 8 C = −2 C = 0 C = 2 C = 4 y = x² + C for C = −2, 0, 2, 4. At x = 1 every one has gradient 2 (amber tangents), so knowing dy/dx = 2x fixes the shape but not the height. That is the + C.
Figure 1 · Every curve here has derivative 2x

So ∫2x dx=x2+C\int 2x\,dx = x^{2} + C describes the whole family. To pick one member you need one more fact, usually a point the curve passes through. That fact is a boundary condition (an initial condition when the variable is time).

Find yy given dydx=6x2−2x\dfrac{dy}{dx} = 6x^{2} - 2x and y=5y = 5 when x=1x = 1.

y=∫(6x2−2x) dx=2x3−x2+Cy = \int (6x^{2} - 2x)\,dx = 2x^{3} - x^{2} + C5=2(1)3−(1)2+Csubstitute the boundary condition5 = 2(1)^{3} - (1)^{2} + C \qquad \textcolor{#838c91}{\text{substitute the boundary condition}}5=1+C, so C=45 = 1 + C\text{, so } C = 4y=2x3−x2+4y = 2x^{3} - x^{2} + 4

Figure 2 shows the family and the one curve through (1,5)(1, 5).

Figure 2 · A boundary condition picks out one curve x y (1, 5) −2 2 4 6 8 10 −1 1 2 y = 2x³ − x² + 4 grey: other values of C dy/dx = 6x² − 2x gives y = 2x³ − x² + C. Only C = 4 passes through (1, 5).
Figure 2 · A boundary condition picks out one curve

With a negative power: given f′(x)=2x+9x2f'(x) = 2x + \dfrac{9}{x^{2}} and f(3)=10f(3) = 10, find f(x)f(x).

f′(x)=2x+9x−2f'(x) = 2x + 9x^{-2}f(x)=x2+9×x−1−1+C=x2−9x−1+Cf(x) = x^{2} + 9 \times \frac{x^{-1}}{-1} + C = x^{2} - 9x^{-1} + Cf(3)=9−3+C=6+C=10, so C=4f(3) = 9 - 3 + C = 6 + C = 10\text{, so } C = 4f(x)=x2−9x+4f(x) = x^{2} - \frac{9}{x} + 4

Often there is a second step. A curve has dydx=3x2−12\dfrac{dy}{dx} = 3x^{2} - 12 and passes through (2,−5)(2, -5). Find where it crosses the yy-axis.

y=x3−12x+Cy = x^{3} - 12x + C−5=8−24+C, so C=11-5 = 8 - 24 + C\text{, so } C = 11y=x3−12x+11x=0 gives y=11y = x^{3} - 12x + 11 \qquad \textcolor{#838c91}{x = 0\text{ gives }y = 11}

The curve crosses the yy-axis at (0,11)(0, 11).

Two rules:

  • Write the +C+ C before you substitute, or there is nothing to find.
  • Substitute into the integrated function ff, not the derivative you were given.

In context the constant has a meaning. If v=dsdtv = \dfrac{ds}{dt} is a velocity, then s=∫v dt+Cs = \int v\,dt + C is a displacement. CC is fixed by where the object starts. Section 6 does one.

4Area under a curve, and the definite integral

Now: what is the area between the curve y=6x−x2y = 6x - x^{2} and the xx-axis, from x=0x = 0 to x=6x = 6?

A curved shape has no area formula, so approximate with rectangles.

  • Split the interval into strips.
  • Draw a rectangle on each, with height equal to the curve's height at the middle of the strip.
  • Add up the areas.

Figure 3 does it with 6 strips and then 24.

Figure 3 · Area under a curve, approximated by rectangles (a) 6 rectangles: total 36.5 x y 1 2 3 4 5 6 3 6 9 (b) 24 rectangles: total 36.03 x y 1 2 3 4 5 6 3 6 9 Midpoint rectangles under y = 6x − x² from x = 0 to x = 6. More, thinner rectangles get closer; the limit, the exact area, is the definite integral: 36.
Figure 3 · Area under a curve, approximated by rectangles
number of rectangles624
total area of rectangles36.536.03

Two other choices trap the area from both sides.

  • A lower sum takes each rectangle's height as the lowest value of the curve on its strip. Every rectangle sits inside the region, so the total is too small.
  • An upper sum takes the highest value. Every rectangle pokes out, so the total is too big.
  • Example: y=6x−x2y = 6x - x^{2} with 6 strips of width 11. The lower sum is 0+5+8+8+5+0=260 + 5 + 8 + 8 + 5 + 0 = 26 and the upper sum is 5+8+9+9+8+5=445 + 8 + 9 + 9 + 8 + 5 = 44, so 26<A<4426 < A < 44. With 12 strips of width 0.50.5 the bounds close in to 31.25<A<40.2531.25 < A < 40.25.
  • Which rectangle is which depends on whether the curve is rising or falling. On a rising stretch the lowest value is at the left edge of the strip and the highest at the right. On a falling stretch it is the other way round.
    • Example: y=x2+1y = x^{2} + 1 from x=0x = 0 to x=3x = 3, which only rises. Three strips of width 11 give lower sum 1+2+5=81 + 2 + 5 = 8 and upper sum 2+5+10=172 + 5 + 10 = 17, so 8<A<178 < A < 17.

Thinner rectangles fit better. The lower and upper sums squeeze together, and the totals settle on a limit, as chord gradients did in 5.1. That limit is the exact area, written

A=∫aby dxA = \int_{a}^{b} y\,dx, the definite integral of yy from x=ax = a to x=bx = b. For f(x)>0f(x) > 0 on a≤x≤ba \le x \le b, it is the area between the curve and the xx-axis. (Formula booklet.)

The numbers aa and bb are the limits of integration: aa is the lower, bb the upper. The ∫\int sign is a stretched S, for "sum". y dxy\,dx is the area of one thin strip, a height times a tiny width.

The link with anti-derivatives. The guide asks you to be aware of this central fact of calculus. If FF is any anti-derivative of ff, then

∫abf(x) dx=F(b)−F(a). \int_{a}^{b} f(x)\,dx = F(b) - F(a).

Why it works

  • Let A(x)A(x) be the area under y=f(x)y = f(x) from aa up to xx. Moving the right-hand edge out by a small width hh adds a thin strip of area about f(x)×hf(x) \times h. So A(x+h)−A(x)h≈f(x)\dfrac{A(x+h) - A(x)}{h} \approx f(x), and as h→0h \to 0 this gives A′(x)=f(x)A'(x) = f(x).
  • The area function is therefore an anti-derivative of ff. It is 00 when x=ax = a, which fixes its constant. That is why the area is F(b)−F(a)F(b) - F(a) for any anti-derivative FF.
  • For y=6x−x2y = 6x - x^{2}: an anti-derivative is F(x)=3x2−x33F(x) = 3x^{2} - \dfrac{x^{3}}{3}, and F(6)−F(0)=(108−72)−0=F(6) - F(0) = (108 - 72) - 0 = 3636. This is exactly where the rectangles were heading. So one symbol, ∫\int, serves both ideas.
  • The +C+ C does not matter here: it appears in F(b)F(b) and F(a)F(a) and cancels.
  • The same anti-derivative settles the earlier example: F(x)=x33+xF(x) = \dfrac{x^{3}}{3} + x for y=x2+1y = x^{2} + 1 gives F(3)−F(0)=12F(3) - F(0) = 12, inside the bounds 8<A<178 < A < 17.

A Show that question wants every step visible: show that the area under y=3x2+2y = 3x^{2} + 2 from x=1x = 1 to x=2x = 2 is 99.

F(x)=x3+2xan anti-derivative; no +C needed hereF(x) = x^{3} + 2x \qquad \textcolor{#838c91}{\text{an anti-derivative; no }+ C\text{ needed here}}A=F(2)−F(1)=(8+4)−(1+2)substitute upper limit, then lower limit=12−3=9\begin{aligned}A &= F(2) - F(1) = (8 + 4) - (1 + 2) && \textcolor{#838c91}{\text{substitute upper limit, then lower limit}} \\[6pt] &= 12 - 3 = 9\end{aligned}

Rules for definite integrals. Because the value is F(b)−F(a)F(b) - F(a), a few facts follow. They answer questions that give integral values, not a function:

ruleexample, given ∫03f(x) dx=8\int_{0}^{3} f(x)\,dx = 8 and ∫07f(x) dx=13\int_{0}^{7} f(x)\,dx = 13
∫abkf(x) dx=k∫abf(x) dx\int_{a}^{b} k f(x)\,dx = k\int_{a}^{b} f(x)\,dx∫033f(x) dx=24\int_{0}^{3} 3f(x)\,dx = 24
∫ab(f(x)±g(x))dx=∫abf(x) dx±∫abg(x) dx\int_{a}^{b} \big(f(x) \pm g(x)\big)dx = \int_{a}^{b} f(x)\,dx \pm \int_{a}^{b} g(x)\,dx∫03(3f(x)−2)dx=24−6=18\int_{0}^{3} \big(3f(x) - 2\big)dx = 24 - 6 = 18
∫ab+∫bc=∫ac\int_{a}^{b} + \int_{b}^{c} = \int_{a}^{c}∫37f(x) dx=13−8=5\int_{3}^{7} f(x)\,dx = 13 - 8 = 5
∫baf(x) dx=−∫abf(x) dx\int_{b}^{a} f(x)\,dx = -\int_{a}^{b} f(x)\,dx∫30f(x) dx=−8\int_{3}^{0} f(x)\,dx = -8

(A constant integrates to a rectangle: ∫032 dx=6\int_{0}^{3} 2\,dx = 6.)

5Definite integrals and areas with technology

The GDC evaluates a definite integral numerically from the function and the two limits. The examiner needs to see the integral you entered.

Write the integral down first, with its limits and dxdx, then give the value. A value with no integral shown can lose the method marks.

The area under y=8x2+1y = \dfrac{8}{x^{2}} + 1 from x=1x = 1 to x=4x = 4, shaded in Figure 4.

A=∫14(8x2+1)dxwrite this line: it is a mark=9GDC\begin{aligned}A &= \int_{1}^{4} \left(\frac{8}{x^{2}} + 1\right)dx && \textcolor{#838c91}{\text{write this line: it is a mark}} \\[6pt] &= 9 && \textcolor{#838c91}{\text{GDC}}\end{aligned}
Figure 4 · The area under a curve between two x-values x y 1 2 3 4 2 4 6 8 area = 9 y = 8/x² + 1 Shaded: ∫ from 1 to 4 of (8/x² + 1) dx = 9. Write the integral down before you calculate it.
Figure 4 · The area under a curve between two x-values

(Link check: F(x)=−8x+xF(x) = -\dfrac{8}{x} + x, and F(4)−F(1)=(−2+4)−(−8+1)=2+7=9F(4) - F(1) = (-2 + 4) - (-8 + 1) = 2 + 7 = 9.)

A region enclosed by a curve and the x-axis

  • A question may say "the region enclosed by the curve and the x-axis" and give no limits. Then the limits are where the curve meets the x-axis. Find them first.
  • Example: y=8−2x2y = 8 - 2x^{2}, shaded as region R in Figure 5.
8−2x2=0,x2=4,x=−2 or x=2limits: the x-intercepts8 - 2x^{2} = 0, \quad x^{2} = 4, \quad x = -2 \ \text{or}\ x = 2 \qquad \textcolor{#838c91}{\text{limits: the }x\text{-intercepts}}area of R=∫−22(8−2x2) dx=21.3 (3 s.f.)GDC; exactly 643\begin{aligned}\text{area of R} &= \int_{-2}^{2} (8 - 2x^{2})\,dx \\[6pt] &= 21.3\ \text{(3 s.f.)} && \textcolor{#838c91}{\text{GDC; exactly }\tfrac{64}{3}}\end{aligned}
Figure 5 · A region enclosed by a curve and the x-axis x y −1 1 (−2, 0) (2, 0) (0, 8) 2 4 6 R y = 8 − 2x² When no limits are given, they are where the curve meets the x-axis: here x = −2 and x = 2.
Figure 5 · A region enclosed by a curve and the x-axis

The guide limits this subtopic to f(x)>0f(x) > 0, so the definite integral is the area directly. Regions below the axis and areas between two curves are 5.11. Check a sketch to confirm the curve is above the axis between your limits.

The function need not be a polynomial

  • The GDC integrates exponentials, logarithms and trigonometric functions as readily as powers.
  • Some definite integrals can only be found this way. e−x2e^{-x^{2}} has no anti-derivative in this course's functions, yet the GDC gives ∫02e−x2 dx=0.882\int_{0}^{2} e^{-x^{2}}\,dx = 0.882.
  • Example: the area under y=5+2cos⁡xy = 5 + 2\cos x from x=0x = 0 to x=π2x = \dfrac{\pi}{2}, where the curve stays above the axis.
A=∫0π/2(5+2cos⁡x) dx=9.85GDC in radian modeA = \int_{0}^{\pi/2} (5 + 2\cos x)\,dx = 9.85 \qquad \textcolor{#838c91}{\text{GDC in radian mode}}

Check with geometry when the graph is straight lines

  • ∫15(x+1) dx\int_{1}^{5} (x+1)\,dx is the area of a trapezium with parallel sides 22 and 66 and width 44.
  • That is 2+62×4=16\dfrac{2+6}{2} \times 4 = 16, and the GDC agrees. This catches a mistyped function or limit.

GDC habits:

  • Use radians for trigonometry.
  • Use stored values for limits found in an earlier part (the graph and solve tools find xx-intercepts).
  • Give 3 significant figures unless told otherwise.

6Velocity-time graphs

  • The guide names velocity-time graphs as the other context. Velocity is the rate of change of displacement, v=dsdtv = \dfrac{ds}{dt}, so displacement is an anti-derivative of velocity.
  • The area under a vv-tt graph is (velocity) ×\times (time) summed over thin strips. So it measures how far the object has gone.

When v(t)>0v(t) > 0 throughout, distance travelled from t=at = a to t=bt = b is ∫abv(t) dt\int_{a}^{b} v(t)\,dt, the area under the velocity-time graph.

If vv is negative for part of the interval, the integral is the displacement (the net change in position). The distance then needs the journey split where v=0v = 0; that belongs to 5.9 and 5.11. Here v>0v > 0 keeps the two the same.

Example: a cyclist's velocity is v(t)=2+1.5t−0.25t2 m s−1v(t) = 2 + 1.5t - 0.25t^{2}\ \mathrm{m\,s^{-1}} for 0≤t≤60 \le t \le 6. Figure 6 shows the graph, which stays above the axis.

distance=∫06(2+1.5t−0.25t2)dt=21 mGDC\begin{aligned}\text{distance} &= \int_{0}^{6} \left(2 + 1.5t - 0.25t^{2}\right)dt \\[6pt] &= 21\ \mathrm{m} && \textcolor{#838c91}{\text{GDC}}\end{aligned}
Figure 6 · The area under a velocity-time graph is the distance t v time t (s) velocity v (m s⁻¹) 1 2 3 4 5 6 1 2 3 4 distance = 21 m v(t) = 2 + 1.5t − 0.25t² m s⁻¹. The shaded area, ∫ from 0 to 6 of v(t) dt, is 21 m travelled in 6 s.
Figure 6 · The area under a velocity-time graph is the distance

The same question could ask for the displacement function. If the cyclist starts at s=0s = 0:

s(t)=∫(2+1.5t−0.25t2)dt=2t+0.75t2−t312+Cs(t) = \int \left(2 + 1.5t - 0.25t^{2}\right)dt = 2t + 0.75t^{2} - \frac{t^{3}}{12} + Cs(0)=0, so C=0s(0) = 0\text{, so } C = 0s(6)=12+27−18=21 magrees with the areas(6) = 12 + 27 - 18 = 21\ \mathrm{m} \qquad \textcolor{#838c91}{\text{agrees with the area}}
  • Both routes give 21 m21\ \mathrm{m}: the area is the change in the anti-derivative.
  • The same reading works one step down. Acceleration is the rate of change of velocity, so the area under an acceleration-time graph is the change in velocity.

Practice questions

36 questions on this note, from easy to hard. Each one you get right lights a star of this topic's constellation.