🌌 Calculus Kingdom · Calculus

Integrals

Reverse differentiation to find antiderivatives, use definite integrals to measure accumulated area, and pin down the one antiderivative through a given point.

In short

  • An antiderivative reverses differentiation, and + C is needed because constants vanish when differentiated.
  • Reverse power rule: raise the exponent by one and divide by the new exponent; the one exception, 1/x, integrates to ln(x).
  • A definite integral is F(top) - F(bottom), a number, and for a positive function it is the area under the curve.
  • Integrating a rate of change gives the total change over the interval.
  • One known value picks one antiderivative out of the family: integrate first, substitute second, and keep the constant in the answer.

Undoing a derivative

An antiderivative of f is a function whose derivative is f. Since the derivative of x3 is 3x2, an antiderivative of 3x2 is x3.

There is a subtlety. The derivative of x3 + 7 is also 3x2, and so is the derivative of x3 - 100. Constants vanish when differentiated, so any constant can be added back. That is why an indefinite integral is written with + C:

integral of 3x2 dx = x3 + C

Geometrically, all these antiderivatives are the same curve slid up and down. They have identical slopes everywhere, which is exactly what "same derivative" means.

Because the derivative rules run backwards, every antiderivative can be checked by differentiating it. That check costs seconds and catches almost every error, so it is worth doing every time.

The one antiderivative that fits. Those slid copies are a whole family of curves, one for every value of C, and a single known value of the function chooses between them. If f'(x) = 6x and f(1) = 10, then f(x) = 3x2 + C for some C, and the given point turns that into one equation:

3(1)2 + C = 10, so C = 7, and f(x) = 3x2 + 7

Two habits make this reliable. Integrate first, substitute second: the given value is the height of the finished function at one x, not the constant itself. The two agree only when the point sits at x = 0, which is exactly why f(0) = 4 feels so much easier than f(1) = 4 β€” and why it hides the difference. And the constant is part of the answer here. Only one function has this derivative and passes through this point, so writing the antiderivative without its constant names a different function.

Two integrations need two conditions. When the second derivative is given, integrate twice and settle each constant the moment it appears:

f''(x) = 6x, with f'(0) = 4 and f(0) = 1 f'(x) = 3x2 + C1, and f'(0) = 4 makes C1 = 4, so f'(x) = 3x2 + 4 f(x) = x3 + 4x + C2, and f(0) = 1 makes C2 = 1, so f(x) = x3 + 4x + 1

The condition on f' has to be spent at the halfway stage; carrying both to the end leaves the first one with nothing to attach itself to. Motion has the same shape: a constant acceleration integrates to a velocity whose constant is the starting velocity, and again to a position whose constant is the starting position.

The reverse power rule

Differentiating multiplies by the exponent and lowers it. Integrating does the opposite: raise the exponent by one, then divide by the new exponent.

integral of xn dx = xn+1/(n + 1) + C

integral of x4 dx = x5/5 + C integral of 6x2 dx = 6 x x3/3 = 2x3 + C integral of 5 dx = 5x + C (since 5 = 5x0)

Sums are handled term by term, and constant multipliers stay put β€” just as with derivatives.

Dividing by the new exponent is the step that gets skipped. Differentiate x5 without it and you get 5x4, not x4: the extra factor of 5 is exactly what the division removes.

The rule has one exception. For n = -1 the new exponent would be 0 and the division would be by zero. That gap is filled by the logarithm:

integral of 1/x dx = ln(x) + C (for x > 0)

Other useful ones, all verifiable by differentiating:

integral of eax dx = eax/a + C integral of cos(ax) dx = sin(ax)/a + C integral of sin(ax) dx = -cos(ax)/a + C

Definite integrals and area

A definite integral has limits and produces a number, not a function. The Fundamental Theorem of Calculus says: find any antiderivative F, then

integral from a to b of f(x) dx = F(b) - F(a)

The + C cancels in the subtraction, which is why it never appears in a definite integral.

integral from 1 to 3 of 2x dx F(x) = x2 F(3) - F(1) = 9 - 1 = 8

Keep the order: top minus bottom. Reversing it flips the sign.

When f is positive on the interval, that number is the area between the curve and the x-axis. The check above is worth doing geometrically: the region under y = 2x from 1 to 3 is a trapezoid with parallel sides 2 and 6 and width 2, so its area is ((2 + 6)/2) x 2 = 8. The two methods agree, as they must.

Where the curve dips below the axis the integral counts that part as negative, so "the value of the integral" and "the total area" can differ.

The area under a curve, and between a curve and a line

The area under a straight line can be checked with a trapezoid. A curve has no such shortcut, and that is exactly where integration earns its keep.

For a function that stays above the x-axis on the interval, the area of the region between the curve and the axis is the definite integral:

area from a to b = F(b) - F(a)

Nothing new is happening β€” it is the same Fundamental Theorem β€” but two habits pay off. First, check the sign of f on the interval before calling the answer an area: where a curve dips below the axis the integral subtracts, and the two ideas part company. Second, the lower limit is not optional. When the region starts at x = 0 the term F(0) is usually 0 and can be skipped without noticing; when it starts at x = 2 it cannot.

Roots only need rewriting first, and a perfect square at the right-hand end keeps the answer exact:

integral from 0 to 9 of sqrt(x) dx = (2/3)x3/2 evaluated from 0 to 9

Since sqrt(9) = 3, the power 93/2 is 33 = 27, so the area is (2/3)(27) = 18.

For a region trapped between two graphs, integrate the gap:

area = integral from a to b of (top - bottom) dx

If a curve runs above a horizontal line y = k between the two x-values where they cross, then top minus bottom is f(x) - k, and that difference is zero at both ends β€” a free check that the crossings were found correctly.

y = -x2 + 4x and y = 3 cross at x = 1 and x = 3

top - bottom = -x2 + 4x - 3

area = integral from 1 to 3 of (-x2 + 4x - 3) dx = 4/3

A rectangle of base times greatest height would have given 2 x 1 = 2 here. It overshoots, because the region is curved, and only the integral measures a curved region.

Integrals as total change

The deepest way to read an integral is as an accumulation: integrating a rate gives the total change.

If v(t) is velocity in metres per second, then the integral of v from 0 to 5 is the distance travelled in those five seconds.

v(t) = 3t2 + 2 m/s s(t) = t3 + 2t distance from 0 to 5 = s(5) - s(0) = (125 + 10) - 0 = 135 m

For a constant rate you could just multiply rate by time. The integral is what handles a rate that keeps changing: it adds up rate x (tiny time) over the whole interval.

The pattern repeats across subjects. Integrate a flow rate to get a volume; integrate a rate of population growth to get the change in population; integrate acceleration to get the change in velocity. Differentiation breaks a total into its instantaneous rate; integration puts the rate back together into a total. They are the two directions of one idea.

Worked examples

Example 1

Find the antiderivative of f(x) = 8x3 - 6x + 5.

  1. Handle each term with the reverse power rule.
  2. 8x3: raise to x4 and divide by 4, giving 2x4.
  3. -6x: raise to x2 and divide by 2, giving -3x2. The constant 5 becomes 5x.
  4. Antiderivative: 2x4 - 3x2 + 5x + C. Check by differentiating: 8x3 - 6x + 5. Correct.

Example 2

Evaluate the integral of 3x2 from x = 1 to x = 2.

  1. An antiderivative is F(x) = x3.
  2. F(2) = 8 and F(1) = 1.
  3. The integral is F(2) - F(1), top limit minus bottom limit.
  4. 8 - 1 = 7.

Example 3

Find the exact area of the region between the curve y = 3x2 + 2 and the x-axis, from x = 1 to x = 3.

  1. Both coefficients are positive, so the curve stays above the axis across the whole interval and the integral really is the area.
  2. An antiderivative is F(x) = x3 + 2x.
  3. F(3) = 27 + 6 = 33, and F(1) = 1 + 2 = 3.
  4. Area = F(3) - F(1) = 33 - 3 = 30. Answering 33 is the classic slip when the region does not start at x = 0.

Example 4

A function has derivative f'(x) = 6x2 - 4 and satisfies f(2) = 9. Find f(x).

  1. Integrate first. Every function with this derivative has the form 2x3 - 4x + C.
  2. Now substitute the given point: 2(8) - 4(2) + C = 9, that is 8 + C = 9.
  3. So C = 1, and f(x) = 2x3 - 4x + 1. Answering 2x3 - 4x names a different function, and answering 2x3 - 4x + 9 uses the given height as though it were the constant.
  4. Check both conditions: differentiating gives 6x2 - 4, and f(2) = 16 - 8 + 1 = 9.

Practice problems, with solutions

Three problems of increasing difficulty, each with the full working. In the game these are generated fresh every time; these three are fixed so this page always shows the same ones.

Problem 1

Difficulty 1 of 5

Find the general antiderivative of f(x) = 4x. Give an expression in x and OMIT the "+ C".

Answer: 2x2

  1. Integral of 4x: raise the power to 2 and divide by 2, giving 2x2
  2. Antiderivative: 2x2 (+ C, omitted here)

Problem 2

Difficulty 3 of 5

Evaluate the definite integral of 4x2 + 1 from x = 1 to x = 3. Give an exact answer as a fraction in lowest terms (a whole number if it simplifies to one).

Answer: 36 2/3

  1. F(x) = (4/3)x3 + x
  2. F(3) = 39
  3. F(1) = 7/3
  4. Integral = F(3) - F(1) = 110/3

Problem 3

Difficulty 4 of 5

Find the area between the line y = 6x + 15 and the x-axis, from x = 0 to x = 7. Give an exact answer (a fraction in lowest terms if it is not a whole number).

Answer: 252

  1. F(x) = 3x2 + 15x
  2. Area = F(7) - F(0) = 252 - 0
  3. Area = 252
  4. Geometry agrees: the trapezoid has area ((15 + 57)/2) x 7 = 252.

Common mistakes

  • Raising the exponent but forgetting to divide by the new one.
  • Omitting + C from an indefinite integral (or including it in a definite one).
  • Subtracting the limits the wrong way round, which flips the sign.
  • Using the power rule on 1/x, where it would require dividing by zero.
  • Measuring the area under a curve as base times height, or as f(b) - f(a) β€” both skip the antiderivative, which is the only thing that can measure a curved region.
  • Treating a given value as the constant itself: f(a) = c only means C = c when a is 0, and substituting has to come after integrating.

What you should be able to do

  • Find the antiderivative of a power of x.
  • Evaluate a definite integral with the fundamental theorem of calculus.
  • Interpret a definite integral as an area or a total change.
  • Remember the constant of integration, and find the particular antiderivative through a given point.

Where this fits in the curriculum

Common Core

  • FUN-6.C

    AP Calculus AB, Unit 6 β€” Determine antiderivatives of functions and indefinite integrals, using knowledge of derivatives (with the constant of integration).

    The Common Core has no calculus standards; this is the AP Calculus AB learning objective.

  • FUN-6.B

    AP Calculus AB, Unit 6 β€” Evaluate definite integrals analytically using the Fundamental Theorem of Calculus.

    The Common Core has no calculus standards; this is the AP Calculus AB learning objective.

  • CHA-4.A

    AP Calculus AB, Unit 6 β€” Interpret the meaning of areas associated with the graph of a rate of change in context.

    The Common Core has no calculus standards; this is the AP Calculus AB learning objective.

Learn these first

This leads on to