Instant PDF download, name-and-email checkout. Complete bundle: every Economics, Statistics and Mathematics book
Mathematics guide, Unit 6, step 21 of 33Previous stepNext step

Step 21: The Fundamental Theorem of Calculus

SyllabusAP 6.4–6.8 · 9709 P1 1.8 · IB SL 5.3, 5.5, 5.10
In 30 seconds
  • An antiderivative of \( f \) is a function \( F \) with \( F’ = f \). They come in families: \( \int f(x)\,dx = F(x) + C \). One known point fixes \( C \).
  • FTC Part 2 turns a limit of sums into one subtraction: \( \int_a^b f(x)\,dx = F(b)-F(a) \). Rates integrate to total change, so marginal cost integrates to extra cost.
  • FTC Part 1 says the accumulation function \( g(x) = \int_a^x f(t)\,dt \) has derivative \( f(x) \). With an upper limit \( u(x) \), multiply by \( u'(x) \).
  • Exam point: on AP graph questions, \( g’ = f \). So \( g \) rises where \( f \) is above the axis, peaks where \( f \) crosses from positive to negative, and is concave up where \( f \) is increasing. Name the function in every sentence.
Video lesson coming soonA short animated lesson for this step will appear here.

Antiderivatives and the constant of integration

Step 20 found the exact area under \( y = 9-x^2 \) from 0 to 3 by adding infinitely many rectangles, with a page of algebra. This step shows that the same answer, 18, comes from two lines of working. The shortcut needs one new skill: given \( f \), find a function whose derivative is \( f \).

Key termAntiderivative: a function \( F \) with \( F'(x) = f(x) \) on an interval. The indefinite integral \( \int f(x)\,dx = F(x) + C \) is the whole family of antiderivatives, where \( C \) is the constant of integration.

Why the \( + C \)? If \( F’ = f \), then \( F + 5 \) and \( F-12 \) have the same derivative, because a constant differentiates to zero. On an interval these are the only possibilities: two functions with the same derivative differ by a constant, a consequence of the Mean Value Theorem from Step 17.

Every rule is a derivative read backwards.

\( f(x) \)\( \int f(x)\,dx \)Comes from
\( x^n \), \( n \neq -1 \)\( \dfrac{x^{n+1}}{n+1} + C \)raise the power by one, divide by the new power
\( \dfrac1x \)\( \ln|x| + C \)fills the gap at \( n = -1 \)
\( e^x \)\( e^x + C \)\( e^x \) is its own derivative
\( \cos x \)\( \sin x + C \)\( \frac{d}{dx}\sin x = \cos x \)
\( \sin x \)\( -\cos x + C \)\( \frac{d}{dx}\cos x = -\sin x \)
\( \sec^2 x \)\( \tan x + C \)\( \frac{d}{dx}\tan x = \sec^2 x \)

Constants and sums pass straight through: \( \int [k f(x) \pm g(x)]\,dx = k\int f(x)\,dx \pm \int g(x)\,dx \). Products and quotients do not, so rewrite them first.

Worked example

Find (a) \( \int \left(8x^3-\dfrac{3}{x^4} + 6\sqrt{x}\right)dx \), (b) \( \int (x + 3)(2x-1)\,dx \) and (c) \( \int (2\cos x + 5\sin x-e^x)\,dx \).

Step 1(a) Write every term as a power: \( 8x^3-3x^{-4} + 6x^{1/2} \).
Step 2Integrate term by term: \( 2x^4 + \dfrac{-3x^{-3}}{-3} + \dfrac{6x^{3/2}}{3/2} = 2x^4 + x^{-3} + 4x^{3/2} \), so the answer is \( 2x^4 + \dfrac{1}{x^3} + 4x^{3/2} + C \).
Step 3(b) Expand first: \( (x + 3)(2x-1) = 2x^2 + 5x-3 \), giving \( \tfrac23 x^3 + \tfrac52 x^2-3x + C \).
Step 4(c) \( 2\sin x-5\cos x-e^x + C \). Check the middle term: \( \frac{d}{dx}(-5\cos x) = 5\sin x \).

Differentiating your answer in your head is the quickest check there is, and it catches almost every sign slip.

Common mistakeIntegrating a product bracket by bracket. \( \int (x + 3)(2x-1)\,dx \) is not \( \left(\tfrac12x^2 + 3x\right)(x^2-x) \); differentiate that and you get a cubic. There is no product rule for integrals that works like this, so expand (or use the methods of Steps 22 and 23).

An indefinite integral is a family of curves, each a vertical shift of the others. A single known point picks out one member. If \( \dfrac{dy}{dx} = 6x^2-2x + 5 \) and the curve passes through \( (1, 4) \), then \( y = 2x^3-x^2 + 5x + c \), and \( 4 = 2-1 + 5 + c \) gives \( c = -2 \). The curve is \( y = 2x^3-x^2 + 5x-2 \).

FTC Part 2: evaluating definite integrals

Here is the theorem that joins the two halves of calculus.

Key termFundamental Theorem of Calculus, Part 2: if \( f \) is continuous on \( [a, b] \) and \( F \) is any antiderivative of \( f \), then \[ \int_a^b f(x)\,dx = \Big[F(x)\Big]_a^b = F(b)-F(a). \]

Any antiderivative will do, because the constant cancels: \( (F(b) + C)-(F(a) + C) = F(b)-F(a) \). So in definite integrals you can leave \( C \) out.

The theorem has a natural reading. If \( F’ = f \), then \( f \) is the rate of change of \( F \), and Step 20 showed that integrating a rate gives the total change. So \( \int_a^b F'(x)\,dx = F(b)-F(a) \): the accumulated change in \( F \) from \( a \) to \( b \). AP calls this the net change theorem, and it is how free-response questions want you to use a rate: “amount at the end = amount at the start + integral of the rate”.

Worked example

Evaluate (a) \( \int_1^2 (6x^2-4x + 1)\,dx \), (b) \( \int_0^{\pi/3} \sin x\,dx \), (c) \( \int_1^4 \dfrac{1}{\sqrt{x}}\,dx \) and (d) \( \int_0^3 (9-x^2)\,dx \).

Step 1(a) \( \Big[2x^3-2x^2 + x\Big]_1^2 = (16-8 + 2)-(2-2 + 1) = 10-1 = 9 \).
Step 2(b) \( \Big[-\cos x\Big]_0^{\pi/3} = -\tfrac12-(-1) = \tfrac12 \).
Step 3(c) \( \int_1^4 x^{-1/2}\,dx = \Big[2\sqrt{x}\Big]_1^4 = 4-2 = 2 \).
Step 4(d) \( \Big[9x-\tfrac13x^3\Big]_0^3 = (27-9)-0 = 18 \).

Part (d) is the area that took a limit of Riemann sums in Step 20. Now it takes one line.

Common mistakeLosing brackets in \( F(b)-F(a) \). You subtract the whole of \( F(a) \). In (a) above, \( (16-8 + 2)-(2-2 + 1) = 9 \), but writing \( 16-8 + 2-2-2 + 1 = 7 \) changes the signs of the last two terms and loses the marks. Work out \( F(b) \) and \( F(a) \) separately, then subtract.

An economics example: total cost from marginal cost. Marginal cost is the derivative of total cost, so total cost is an antiderivative of marginal cost, and the constant is the fixed cost (the cost of producing nothing). Suppose \( MC = 12 + 0.6Q \) dollars per unit and fixed cost is $300. Then \( TC = 300 + 12Q + 0.3Q^2 \), and 40 units cost \( 300 + 480 + 480 = \$1260 \). FTC Part 2 answers a sharper question directly: the extra cost of raising output from 20 to 40 units is

\[ \begin{aligned} \int_{20}^{40} (12 + 0.6Q)\,dQ &= \Big[12Q + 0.3Q^2\Big]_{20}^{40} \\ &= 960-360 = \$600. \end{aligned} \]

The fixed cost never appears, because it cancels in the subtraction, which is exactly right: it is paid whatever the output.

FTC Part 1: differentiating accumulation functions

Fix a starting point \( a \) and let the right-hand edge of the region move. The signed area from \( a \) up to \( x \) is a function of \( x \):

\[ g(x) = \int_a^x f(t)\,dt. \]

The letter \( t \) is only a placeholder inside the integral; \( x \) is the moving edge. This is an accumulation function. How fast does it grow? Push the edge from \( x \) to \( x + h \). The extra area is a thin strip of width \( h \) and height very nearly \( f(x) \) (Figure 1), so \( \dfrac{g(x+h)-g(x)}{h} \approx f(x) \), and the approximation becomes exact as \( h \to 0 \).

Why g′(x) = f(x): the area grows by a thin strip
y = f(t)
axx + h1230tyg(x)strip ≈ f(x) × h
Figure 1. g(x) is the gold area from a to x. Moving the edge to x + h adds a strip of width h and height almost f(x), so (g(x + h) − g(x))/h ≈ f(x), exactly in the limit.
Key termFundamental Theorem of Calculus, Part 1: if \( f \) is continuous on an interval containing \( a \), then \( g(x) = \int_a^x f(t)\,dt \) is differentiable and \( g'(x) = f(x) \). In words, the rate at which area builds up is the height of the curve at the moving edge.

When the upper limit is a function \( u(x) \), the chain rule adds a factor, and swapping the limits adds a minus sign:

\[ \frac{d}{dx}\int_a^{u(x)} f(t)\,dt = f\big(u(x)\big)\,u'(x) \]
\[ \frac{d}{dx}\int_x^b f(t)\,dt = -f(x) \]
Worked example

Find (a) \( \dfrac{d}{dx}\displaystyle\int_1^x \cos(t^3)\,dt \), (b) \( \dfrac{d}{dx}\displaystyle\int_0^{x^3} \sqrt{1 + t^2}\,dt \) and (c) \( \dfrac{d}{dx}\displaystyle\int_x^4 e^{t^2}\,dt \).

Step 1(a) Part 1 directly: \( \cos(x^3) \). You never need an antiderivative of \( \cos(t^3) \), which is lucky, because there is no simple one.
Step 2(b) Upper limit \( u = x^3 \), \( u’ = 3x^2 \): \( \sqrt{1 + (x^3)^2}\cdot 3x^2 = 3x^2\sqrt{1 + x^6} \).
Step 3(c) The variable is the lower limit, so reverse: \( \int_x^4 = -\int_4^x \), and the derivative is \( -e^{x^2} \).

The lower limit 1, 0 or 4 never matters to the derivative: changing it only adds a constant to \( g \).

Stocks and flows. Economics is full of accumulation functions. Net investment \( I(t) \) is the rate at which a firm’s capital stock grows. If capital starts at $200 million and investment runs at \( I(t) = 30\sqrt{t} \) million dollars per year, the capital stock after \( t \) years is \( K(t) = 200 + \int_0^t 30\sqrt{s}\,ds = 200 + 20t^{3/2} \). After 9 years, \( K(9) = 200 + 20 \times 27 = \$740 \) million. And Part 1 gives \( K'(t) = 30\sqrt{t} = I(t) \): a stock grows at exactly the rate of its flow.

Reading an accumulation function from a graph

AP free-response questions love this set-up: you are given the graph of \( f \) and asked about \( g(x) = \int_a^x f(t)\,dt \). Since \( g’ = f \) and \( g” = f’ \), everything about the shape of \( g \) can be read off the graph of \( f \), and the areas give its values.

You want, about \( g \)Look at, on the graph of \( f \)
values of \( g \)signed area from \( a \) to \( x \); \( g(a) = 0 \)
where \( g \) increaseswhere \( f > 0 \) (above the axis)
relative maximum of \( g \)where \( f \) changes from positive to negative
where \( g \) is concave upwhere \( f \) is increasing
inflection point of \( g \)where \( f \) has a turning point
Worked example

Let \( f(t) = t^2-6t + 8 \) and \( g(x) = \int_0^x f(t)\,dt \) for \( 0 \le x \le 6 \). (a) Where is \( g \) increasing? (b) Find and classify the relative extrema of \( g \). (c) Where is \( g \) concave up? (d) Find the absolute maximum and minimum values of \( g \).

Step 1(a) \( f(t) = (t-2)(t-4) \), which is positive for \( t < 2 \) and \( t > 4 \). So \( g’ = f > 0 \) and \( g \) is increasing on \( 0 < x < 2 \) and \( 4 < x < 6 \).
Step 2(b) At \( x = 2 \), \( g’ = f \) changes from positive to negative: relative maximum. At \( x = 4 \) it changes from negative to positive: relative minimum.
Step 3(c) \( g” = f'(x) = 2x-6 > 0 \) for \( x > 3 \). So \( g \) is concave up on \( 3 < x < 6 \), with an inflection point at \( x = 3 \), where \( f \) is lowest.
Step 4(d) By Part 2, \( g(x) = \tfrac13x^3-3x^2 + 8x \). Candidates: \( g(0) = 0 \), \( g(2) = \tfrac{20}{3} \), \( g(4) = \tfrac{16}{3} \), \( g(6) = 72-108 + 48 = 12 \).

The absolute maximum is 12, at \( x = 6 \), and the absolute minimum is 0, at \( x = 0 \). The relative minimum at \( x = 4 \) stays positive because the area lost on \( [2, 4] \), which is \( \tfrac43 \), is smaller than the \( \tfrac{20}{3} \) gained on \( [0, 2] \).

f(t) = t² − 6t + 8 and g(x) = ∫₀ˣ f(t) dt
y = f(x)y = g(x)
123456−2246810120xymax (2, 20/3)min (4, 16/3)(6, 12)
Figure 2. Green area adds to g and orange area subtracts. g peaks where f crosses the axis going down (x = 2), bottoms out where f crosses going up (x = 4), and has its inflection (hollow dot) at x = 3, where f is lowest.
Common mistakeReading the graph of \( f \) as if it were \( g \). “\( f \) is decreasing” does not mean \( g \) is decreasing; it means \( g \) is concave down. \( g \) decreases only where \( f \) is below the axis. In a justification, always say which function you mean: “\( g'(x) = f(x) < 0 \) on \( (2, 4) \), so \( g \) is decreasing there”.

Functions of ax + b, and simple improper integrals

What is \( \int (4x + 1)^5\,dx \)? Differentiating \( (4x + 1)^6 \) gives \( 6(4x + 1)^5 \times 4 = 24(4x + 1)^5 \), which is 24 times too big. So \( \int (4x + 1)^5\,dx = \tfrac{1}{24}(4x + 1)^6 + C \). The general rule: if \( \int f(x)\,dx = F(x) + C \), then

\[ \int f(ax + b)\,dx = \frac1a F(ax + b) + C \quad (a \neq 0). \]

So \( \int e^{ax+b}\,dx = \tfrac1a e^{ax+b} + C \), \( \int \dfrac{1}{ax + b}\,dx = \tfrac1a \ln|ax + b| + C \), and \( \int \cos(ax + b)\,dx = \tfrac1a\sin(ax + b) + C \). This works only because the inner derivative \( a \) is a constant. For \( (x^2 + 1)^3 \) the inner derivative is \( 2x \), and you need substitution (Step 22).

Worked example

Find (a) \( \int \dfrac{6}{3x-2}\,dx \) and (b) \( \int \sin(4-x)\,dx \), and evaluate (c) \( \int_0^{\pi/4} \cos 2x\,dx \).

Step 1(a) \( 6 \times \tfrac13\ln|3x-2| + C = 2\ln|3x-2| + C \).
Step 2(b) Here \( a = -1 \): \( \tfrac{1}{-1}\big(-\cos(4-x)\big) + C = \cos(4-x) + C \).
Step 3(c) \( \Big[\tfrac12\sin 2x\Big]_0^{\pi/4} = \tfrac12\sin\tfrac{\pi}{2}-0 = \tfrac12 \).

In (b) the two minus signs cancel. Checking by differentiation confirms it: \( \frac{d}{dx}\cos(4-x) = -\sin(4-x) \times (-1) = \sin(4-x) \).

Exam tipKnow your syllabus. Cambridge 9709 Paper 1 (topic 1.8) integrates \( (ax + b)^n \) only; \( e^{ax+b} \), \( \tfrac{1}{ax+b} \) and the trigonometric functions of \( ax + b \) arrive in Paper 2 topic 2.5 (and Paper 3). IB AA SL (5.10) includes all of them with a linear inside. AP expects them all, usually inside a bigger question.

Finally, can a region that runs off to infinity have a finite area? Sometimes. An improper integral has an infinite limit, or an integrand that blows up at an end of the interval, and it is defined as a limit of ordinary integrals. Improper integrals are AP BC only (topic 6.13); Cambridge Paper 1 includes simple cases like these. For example,

\[ \begin{aligned} \int_1^\infty \frac{3}{x^4}\,dx &= \lim_{b \to \infty}\Big[-x^{-3}\Big]_1^b \\ &= \lim_{b \to \infty}\left(1-\frac{1}{b^3}\right) = 1. \end{aligned} \]

The integrand \( x^{-1/3} \) is unbounded near 0, yet \( \int_0^8 x^{-1/3}\,dx = \lim_{t \to 0^+}\Big[\tfrac32x^{2/3}\Big]_t^8 = 6-0 = 6 \). Not every such integral converges: \( \int_1^b x^{-1/2}\,dx = 2\sqrt{b}-2 \) grows without limit, so \( \int_1^\infty x^{-1/2}\,dx \) diverges. Step 23 treats improper integrals in full.

Practise: 6 questions

Try each one on paper first, then check the worked answer.

EasyQ1. Find \( \int \left(10x^4-\dfrac{2}{x^3} + 1\right)dx \). Show worked answer
Rewrite: \( 10x^4-2x^{-3} + 1 \).
Integrate: \( \dfrac{10x^5}{5}-\dfrac{2x^{-2}}{-2} + x + C \).
\( = 2x^5 + \dfrac{1}{x^2} + x + C \).
EasyQ2. Evaluate \( \int_1^3 (x^2 + 2x)\,dx \). Show worked answer
\( \Big[\tfrac13x^3 + x^2\Big]_1^3 = (9 + 9)-\left(\tfrac13 + 1\right) \).
\( = 18-\tfrac43 = \tfrac{50}{3} \).
MediumQ3. A curve has \( \dfrac{dy}{dx} = 3\sqrt{x}-2 \) and passes through \( (4, 10) \). Find its equation. Show worked answer
\( y = \int (3x^{1/2}-2)\,dx = 2x^{3/2}-2x + c \).
At \( (4, 10) \): \( 10 = 2(8)-8 + c \), so \( c = 2 \).
The curve is \( y = 2x^{3/2}-2x + 2 \).
MediumQ4. Find \( \dfrac{d}{dx}\displaystyle\int_2^{x^2 + 1} \ln t\,dt \). Show worked answer
FTC Part 1 with the chain rule: upper limit \( u = x^2 + 1 \), \( u’ = 2x \).
Derivative \( = \ln(u)\cdot u’ = 2x\ln(x^2 + 1) \).
MediumQ5. Evaluate (a) \( \int_0^1 (2x + 1)^3\,dx \) and (b) \( \int_0^{\ln 2} e^{2x}\,dx \). Show worked answer
(a) \( \Big[\tfrac{1}{2 \times 4}(2x + 1)^4\Big]_0^1 = \tfrac18(81-1) = 10 \).
(b) \( \Big[\tfrac12e^{2x}\Big]_0^{\ln 2} = \tfrac12\left(e^{2\ln 2}-1\right) = \tfrac12(4-1) = \tfrac32 \).
ExamQ6. Let \( f(t) = t^2-6t + 5 \) and \( g(x) = \int_0^x f(t)\,dt \) for \( 0 \le x \le 6 \). (a) Find \( g'(3) \) and \( g”(3) \). [2] (b) Find the \( x \)-coordinates of the relative maximum and relative minimum of \( g \), justifying your answers. [2] (c) Find the absolute maximum value of \( g \) on \( [0, 6] \). Justify your answer. [3] (d) Let \( h(x) = \int_0^{2x} f(t)\,dt \). Find \( h'(1) \). [2] Show worked answer
(a) \( g'(3) = f(3) = 9-18 + 5 = -4 \). [B1]
\( g”(3) = f'(3) = 2(3)-6 = 0 \). [B1]
(b) \( f(t) = (t-1)(t-5) \). \( g’ = f \) changes from positive to negative at \( x = 1 \): relative maximum. [B1]
\( g’ = f \) changes from negative to positive at \( x = 5 \): relative minimum. [B1]
(c) \( g(x) = \tfrac13x^3-3x^2 + 5x \). Candidates: endpoints and the critical points. [M1]
\( g(0) = 0 \), \( g(1) = \tfrac13-3 + 5 = \tfrac73 \), \( g(5) = \tfrac{125}{3}-75 + 25 = -\tfrac{25}{3} \), \( g(6) = 72-108 + 30 = -6 \). [A1]
Absolute maximum value \( \tfrac73 \), at \( x = 1 \). [A1]
(d) \( h'(x) = f(2x)\cdot 2 \), so \( h'(1) = 2f(2) = 2(4-12 + 5) = -6 \). [M1 A1]
Total: 9 marks.

Check yourself

1. What is \( \dfrac{d}{dx}\displaystyle\int_3^x \sqrt{t^2 + 1}\,dt \)?

FTC Part 1: the derivative of an accumulation function is the integrand at the upper limit. The constant lower limit contributes nothing.

2. What is \( \int_0^2 (3x^2 + 1)\,dx \)?

\( \Big[x^3 + x\Big]_0^2 = 8 + 2 = 10 \). Forgetting that the 1 integrates to \( x \) gives 8 or 9.

3. Which is \( \int e^{5x}\,dx \)?

Differentiating \( e^{5x} \) multiplies by 5, so integrating divides by 5. Check: \( \frac{d}{dx}\tfrac15e^{5x} = e^{5x} \).

Your score: 0 out of 3

The short version

  • \( \int x^n\,dx = \tfrac{x^{n+1}}{n+1} + C \) (\( n \neq -1 \)), \( \int \tfrac1x\,dx = \ln|x| + C \); a known point fixes \( C \). Expand products first.
  • FTC Part 2: \( \int_a^b f(x)\,dx = F(b)-F(a) \) for any antiderivative \( F \). Integrating a rate gives the net change, so \( TC = FC + \int MC\,dQ \).
  • FTC Part 1: \( \frac{d}{dx}\int_a^{u(x)} f(t)\,dt = f(u(x))\,u'(x) \); with \( x \) as the lower limit, add a minus sign.
  • For \( g(x) = \int_a^x f(t)\,dt \): \( g \) rises where \( f > 0 \), and is concave up where \( f \) rises. Check endpoints for absolute extrema.
  • \( \int f(ax + b)\,dx = \tfrac1aF(ax + b) + C \). Improper integrals are limits of ordinary ones (AP BC; Cambridge P1 simple cases).
  • The full chapter in Mathematics Made Simple has many more worked examples and a full set of practice questions with a complete answer key.
Want more questions like these, with worked answers?
The practice book has hundreds more, graded from easy to exam level.
Next: step 22 of 33Integration by Substitution