Learn

Techniques of Integration

Contents

Differentiation follows rules that always work. Integration has no single procedure, so it is learned as a set of techniques, and the skill is reading the shape of the integrand and recognizing which technique it calls for.

What is integration?

Integrating asks the reverse of differentiating: which function has this derivative? That function is the antiderivative, and every answer can be checked by differentiating it. See The antiderivative.

Differentiating took one off the power, so going back puts one on. Full lesson: The Antiderivative

To integrate a power of x, add one to the power and divide by the new power: integrates to x⁴/4. The rule fails only for 1/x, where the new power would be 0. The natural logarithm fills that gap. See Integrating powers.

The rule fails only at n = −1, where dividing by n+1 would divide by zero. Full lesson: Integrating Powers

Now you

Integrate 40x^4

Integrate 20x^4

Why is there always a + C?

Differentiating removes any constant term. , x² + 7 and x² − 100 all differentiate to 2x, so integrating 2x gives the whole family x² + C, one curve for each value of C.

f'(x) = 2x integrates to x² + C — a whole family of curves, one per C. Full lesson: Finding the Constant of Integration

One extra fact pins down C. If the curve passes through (1, 4), substitute the point in: 4 = 1² + C, so C = 3 and the function is x² + 3. In a differential equation that fact is the initial condition. See Finding the constant of integration.

Substitute the point in: 4 = 1² + C, so C = 3. Full lesson: Finding the Constant of Integration

What does the integral sign actually say?

The sign is a letter S stretched tall, and S stands for sum. ∫ f(x) dx means "add up slivers of height f(x) and width dx". The function f(x) is the integrand, and the numbers at the top and bottom of the sign are the limits of integration. See Reading the integral sign.

One sliver is f(x) dx: height f(x), times a width dx too small to see. Full lesson: Reading the Integral Sign

dx has a meaning of its own. dy/dx began as a rise over a run, and the pieces can be separated: if y = x², then dy = 2x dx. Substitution depends on this. See Differentials.

Treat the pieces separately: if y = x², the tiny rise dy is 2x times dx. Full lesson: Differentials

Why does an integral measure area?

A definite integral is the limit of a sum of rectangles. Slice the region under the curve into strips of width Δx, treat each strip as a rectangle of height f(x), and add the areas f(x) Δx. Make the strips thinner and the total approaches the exact area. See The definite integral.

Slice the region into rectangles and add them. The total is close, but visibly coarse. Full lesson: The Definite Integral

Each height can be read at the left edge, the right edge or the middle of its strip. On a rising curve the left sum underestimates and the right sum overestimates. In sigma notation the sum is Σ f(xᵢ) Δx from i = 1 to n; let n run to infinity and Σ becomes and Δx becomes dx. See Left, right and midpoint Riemann sums and The Riemann sum in sigma notation.

On a rising curve every left rectangle falls short, so the left sum underestimates. Full lesson: Left, Right and Midpoint Riemann Sums

The fundamental theorem of calculus finds the area without strips. Let A(x) be the area under the curve up to x. Increase x a little and the area grows by a thin strip of height f(x), so A differentiates to f. To find the area from a to b, take any antiderivative F and work out F(b) − F(a). See The fundamental theorem of calculus.

That growth is a thin strip of height f(x), so the area function differentiates to f. Full lesson: The Fundamental Theorem of Calculus

Area below the axis counts as negative. The arch of sin x from 0 to π has integral 2, from π to the integral is −2, and over the whole cycle it is 0. For the total area, split at the crossings and add the sizes: 2 + 2 = 4. See Area below the axis.

Integrate over the whole cycle and the two halves cancel to 0 — the integral is a signed count. Full lesson: Area Below the Axis

Swapping the limits changes the sign, a constant factor comes outside, and a to b plus b to c joins into a to c. See Properties of the definite integral.

Now you

∫ 2x dx from 0 to 4

∫ 2x dx from 0 to 5

How do you integrate a function inside another function?

Substitution is the chain rule read backwards. Differentiating a composite function leaves the derivative of the inside multiplying the result. When that factor is present in an integral, name the inside u. See Integration by substitution.

  1. Choose u, usually the expression inside the bracket or under the root.
  2. Find du/dx, and write dx in terms of du.
  3. Replace every x. If one is left over, u was the wrong choice.
  4. Integrate in u, then write the x expression back. For a definite integral, convert the limits instead.

∫ 2x(x² + 1)⁵ dx: 2x is the derivative of x² + 1, so let u = x² + 1 and du = 2x dx. The integral becomes ∫ u⁵ du = u⁶/6 + C = (x² + 1)⁶/6 + C.

Replace 2x dx with du, integrate the power, then write x² + 1 back in place of u. Full lesson: Integration by Substitution

When the inside is linear, ax + b, its derivative is the constant a and there is a shortcut: integrate as if the inside were plain x, then divide by a. ∫ cos 3x dx = (1/3) sin 3x + C. A curved inside has a derivative that changes with x, so the shortcut does not apply. See Integrating f(ax + b).

The rule: integrate as if the inside were plain x, then divide by its coefficient a. Full lesson: Integrating f(ax + b)

Now you

∫ e^(5x) dx

∫ cos 2x dx

How do you integrate a product?

Integration by parts is the product rule read backwards: ∫ u dv = uv − ∫ v du. It trades one integral for another, so choose u as the factor that simplifies when differentiated. A polynomial differentiates down to a constant, so against or sin x the polynomial is u. See Integration by parts.

Integrate the product rule and rearrange: your integral swaps for a different one. Full lesson: Integration by Parts
It only helps if the new integral is easier, so choose u as the part that simplifies. Full lesson: Integration by Parts

∫ x eˣ dx: let u = x and dv = eˣ dx, so du = dx and v = eˣ. Then ∫ x eˣ dx = x eˣ − ∫ eˣ dx = x eˣ − eˣ + C. If the new integral is harder than the old one, swap the choice of u.

∫ ln x dx is done by parts with u = ln x and dv = 1 dx. ∫ eˣ sin x dx returns to itself after two rounds; treat the original integral as an unknown and solve for it.

Now you

For ∫ x eˣ dx, the best choice of u is

Integration by parts gives ∫u dv =

How do you integrate trigonometric functions?

Sine differentiates to cosine, so cosine integrates to sine. Cosine differentiates to −sine, so sine integrates to −cosine. See Integrating trigonometric functions.

Walk the ring backwards to integrate, and that is where the minus sign comes from. Full lesson: Integrating Trigonometric Functions

sin²x is not the derivative of any standard function, so rewrite it with the double angle formula: sin²x = (1 − cos 2x)/2, and ∫ sin²x dx = x/2 − (sin 2x)/4 + C. cos²x = (1 + cos 2x)/2 integrates the same way. The identities are in radians and trigonometric identities; see Integrating sin² and cos².

The double angle formula rearranges: sin²x = (1 − cos 2x) / 2 — the square is gone. Full lesson: Integrating sin² and cos²

sec²x integrates to tan x, and sec x tan x integrates to sec x. tan x is sin x over cos x, and the numerator is minus the derivative of the denominator, so ∫ tan x dx = −ln|cos x| + C = ln|sec x| + C. See Integrating sec²x, sec x tan x and tan x.

tan x itself is sin over cos — an f' over f logarithm that carries one minus sign. Full lesson: Integrating sec²x, sec x tan x and tan x

How do you integrate exponentials, logarithms and fractions?

is its own derivative, so it is its own integral. ln x differentiates to 1/x, so ∫ 1/x dx = ln|x| + C. The modulus keeps the result defined for negative x. See Integrating exponentials and logarithms.

But ln x differentiates to 1 over x, so it fills exactly that gap. Full lesson: Integrating Exponentials and Logarithms

Differentiating ln f(x) by the chain rule gives f'(x)/f(x). Read backwards: when the numerator is the derivative of the denominator, the integral is ln of the denominator. ∫ 2x/(x² + 1) dx = ln(x² + 1) + C, because 2x is the derivative of x² + 1. Differentiate the denominator first and check whether the numerator matches. See Integrals of f' over f.

Read backwards: when the numerator is the derivative of the denominator, the integral is ln of the denominator. Full lesson: Integrals of f′ over f

When the denominator factors instead, split into partial fractions. Write 1/((x − 1)(x + 1)) as A/(x − 1) + B/(x + 1), clear the denominators, then substitute x = 1 to find A and x = −1 to find B. Each piece is a constant over a linear bracket, so each integrates to a logarithm. A repeated factor needs one fraction for each power; a quadratic that will not factor keeps a numerator Ax + B. See Integration by partial fractions.

Each piece is a constant over a linear bracket, so each integrates to a logarithm. Full lesson: Integration by Partial Fractions

Now you

∫ 3x² / (x³ + 5) dx

The pattern needs the numerator to be

Which integrals give inverse functions?

tan⁻¹x differentiates to 1/(1 + x²), so 1/(1 + x²) integrates to tan⁻¹x, and 1/√(1 − x²) integrates to sin⁻¹x. With in place of the 1, the answers are (1/a) tan⁻¹(x/a) and sin⁻¹(x/a). These are derivatives from the rules of differentiation read in reverse; see Integrals that give tan⁻¹ and sin⁻¹.

The shaded area from 0 to 1 is π/4 — the angle whose tangent is 1. Full lesson: Integrals That Give tan⁻¹ and sin⁻¹

When √(a² − x²) appears with no factor of x beside it, substitute x = a sin θ. Then a² − x² = a² cos²θ, the root becomes a cos θ, and dx = a cos θ dθ. A minus inside takes sine; a plus takes tangent. See Choosing a trigonometric substitution.

The sign inside decides the substitution: a minus takes sine, a plus takes tangent. Full lesson: Choosing a Trigonometric Substitution

A plus under the root gives a hyperbolic answer: 1/√(x² + 1) integrates to arsinh x, and 1/√(x² − 1) to arcosh x. Both are logarithms, so either form is correct. See Integrals that give arsinh and arcosh.

The sign inside the root decides the family: a minus is circular, a plus is hyperbolic. Full lesson: Integrals That Give arsinh and arcosh

How do you choose?

Read the shape of the integrand before starting.

What you seeWhat to try
Inner function with its derivative presentSubstitution
Bracket or root with a linear insideLinear substitution
Product of two unrelated functionsBy parts
Numerator is the derivative of the denominatorLogarithm directly
Rational function, denominator factorsPartial fractions
sin² or cos²Double angle identity
1 + x² or 1 − x² in the denominator or under a rootInverse trigonometric
Root of a squared difference or sumTrigonometric or hyperbolic substitution

The mistakes worth naming

Learn this properly in the app

Every lesson linked above is in Math Challenge, with a diagram and practice questions. The rules being reversed are in the rules of differentiation, their uses in applications of integration and polar curves, and the limits behind the definition in limits and continuity.

Your turn

Three to try — tap what you get.

∫ 2x dx

∫ cos x dx

∫ from 0 to 1 of 3x² dx

Math ChallengePractice that adapts to you, the whole lesson ladder, and your progress saved.
Start with Math Challenge

Mr. Chalk Practice this lesson in the app