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?
Integration asks the reverse of differentiation: which function has this derivative? That function is an antiderivative, and every answer can be checked by differentiating it. For a power of x, add one to the power and divide by the new power, so integrates to , because 6 ÷ 3 = 2. The rule undoes the power rule exactly: differentiating brings down the 3, which cancels the division, and lowers the power back to 2. A constant factor stays outside, and a sum is integrated term by term, so 4x + 3 gives , where + C covers any constant that differentiated away. Only breaks the rule, since the new power would be 0; integrates to ln|x| + C instead. Differentiating gives back , since 3 × 2 = 6 and the C disappears. See The antiderivative.
the tangent at x = 1 has gradient 2x = 2 for every C: shifting F up or down changes F, never F′, so ∫ 2x dx is the whole family x² + C
Slide the curve up and down and watch the tangent's gradient
integrates to by the same rule. See Integrating powers.
Now you
Integrate
Integrate
Why is there always a + C?
Differentiating removes any constant term, so integration cannot tell which constant was there, and + C stands for all of them. The functions , and all differentiate to 2x, so the integral of 2x is the family , one parallel curve per value of C. Shifting a curve up or down never tilts it, so every member has the same gradient at the same x. One extra fact picks out a single curve: through (2, 9), 9 = 4 + C, so C = 5 and the function is . In a differential equation that fact is the initial condition. A definite integral needs no C, because it cancels in F(b) − F(a). Substituting x = 2 into gives 4 + 5 = 9, the required height, and the gradient there is 2 × 2 = 4.
y(1) = 1 + C = −1, not 3: this member of the family misses the point, so the initial condition rules it out
Drag C until the curve passes through (1, 3)
See Finding the constant of integration.
What does the integral sign actually say?
The sign is a stretched S, for sum, and means: add up thin slivers of height f(x) and width dx. The function f(x) is the integrand, and the numbers at the bottom and top are the limits of integration, where the adding starts and stops. The integral of 3 from x = 1 to x = 5 adds slivers of height 3 across a width of 4, since 5 − 1 = 4, so it totals 3 × 4 = 12, a rectangle's area. The notation records how the answer is built: height times width, summed, with the widths shrunk until the sum is exact. The dx names the variable being summed, which matters when other letters appear: integrating with dx holds any y constant. With no limits, the sign asks for an antiderivative plus a constant, not a number. The antiderivative 3x gives 15 − 3 = 12 as well. See Reading the integral sign.
the sign ∫ is an S for sum: each sliver is height f(x) × width Δx = 0.432, and the integral adds them across the interval
Narrow the sliver to dx = 0.01
dx has a meaning of its own. began as a rise over a run, and the pieces can be separated: if , then dy = 2x dx. Substitution depends on this. See Differentials.
Why does an integral measure area?
A definite integral is the limit of a sum of rectangles: slice the region into strips of width , treat each as a rectangle of height f(x), and add the areas . For y = x from 0 to 2, four strips of width with right-edge heights give , over the true area, 2. The fundamental theorem skips the strips: the area from a to b is F(b) − F(a) for any antiderivative F, because the area up to x grows at the rate f(x). A total area needs one more step, since regions below the axis count as negative: split at each crossing and add the sizes. For y = x − 1 from 0 to 2, the integral is 0, but the area is . The triangle under y = x has area , matching at 2. See The definite integral.
n = 4, so the error is 1.083
Increase n until the Riemann sum converges on the exact area
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 ; let n run to infinity and becomes and becomes dx. See Left, right and midpoint Riemann sums and The Riemann sum in sigma notation.
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. See 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.
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
How do you integrate a function inside another function?
Substitution is the chain rule read backwards: when an integral contains the derivative of an inside function as a factor, name the inside u, replace every x, and integrate in u. For the integral of , let , so and the integral becomes , which is . The factor is absorbed exactly by du, leaving a plain power. A definite integral changes one step: convert the limits to u and never return to x. From x = 0 to 1, u runs from 2 to 3, so the integral is , and 243 − 32 = 211, giving . The right u is usually the expression inside a bracket or under a root, and it leaves no x behind. Differentiating by the chain rule restores the factor . See Integration by substitution.
du = 2x dx: the u-line stretches the interval by 2x = 2.4, which is why ∫ 2x cos(x²) dx becomes ∫ cos u du with the 2x used up
Slide the interval to where du and dx have the same length
- Choose u, usually the expression inside the bracket or under the root.
- Find , and write dx in terms of du.
- Replace every x. If one is left over, u was the wrong choice.
- Integrate in u, then write the x expression back. For a definite integral, convert the limits instead.
: 2x is the derivative of , so let and du = 2x dx. The integral becomes .
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. . A curved inside has a derivative that changes with x, so the shortcut does not apply. See Integrating f(ax + b).
Now you
How do you integrate a product?
Integration by parts is the product rule read backwards: . Choose u as the factor that simplifies when differentiated. For , let u = x and dv = cos x dx, so du = dx and v = sin x, and the integral is , which is x sin x + cos x + C. The formula is the product rule for uv, integrated and rearranged. The new integral must be easier, which is why a polynomial against , sin x or cos x is u: differentiating lowers its power. A higher power needs more rounds, so takes two and gives . From 0 to the first answer gives (0 − 1) − (0 + 1) = −2, and differentiating x sin x + cos x returns x cos x. See Integration by parts.
the area under the curve is ∫v du and the area to its left is ∫u dv; together they are the box uv, which is ∫u dv = uv − ∫v du
Drag the corner and try to make the two areas fail to fill the box
: let u = x and , so du = dx and . Then . If the new integral is harder than the old one, swap the choice of u.
u = x³ leaves uv − ∫ v du with a harder integral than the original — the power went up or the awkward factor stayed — so swap u and dv
Choose the u that leaves a simpler integral
is done by parts with u = ln x and dv = 1 dx. returns to itself after two rounds; treat the original integral as an unknown and solve for it.
Now you
For , the best choice of u is
How do you integrate trigonometric functions?
Integration reverses differentiation, so cos x integrates to sin x + C, and sin x to −cos x + C, since cos x differentiates to −sin x. Reversing other standard results gives and . With the angle in radians, the area under cos x from 0 to is , which is 1 − 0 = 1. The minus sign on the cosine is the part most often lost. The results need radians because only there does sin x differentiate to exactly cos x; in degrees each would carry a factor of . Powers and products change the method. is not a standard derivative, so rewrite it with a double angle identity first, and sin x cos x becomes , which integrates to . Differentiating −cos x + C returns sin x, the integrand, with the C gone.
cos²x = ½ + ½ cos 2x: the ½ integrates to X/2 and the wave to sin 2X / 4 = −0.238, so the green and red pieces do not yet cancel
Drag the limit to where the wave cancels
is not the derivative of any standard function, so rewrite it with the double angle formula: , and . integrates the same way. The identities are in radians and trigonometric identities; see Integrating and .
tan x is sin x over cos x, and the numerator is minus the derivative of the denominator, so . See Integrating , sec x tan x and tan x.
How do you integrate exponentials, logarithms and fractions?
is its own derivative, so , and integrates to . Since ln x differentiates to , the integral of is ln|x| + C; the modulus keeps it defined for negative x. The logarithm fills the gap the power rule leaves, because raising the power −1 by one would mean dividing by 0. A fraction whose top is the derivative of its bottom integrates to the log of the bottom, since the chain rule makes the derivative of ln f(x). So integrates to . A bottom that factors is split into partial fractions first. Stretching explains why ln 4 − ln 2 = ln 2: the strip under from 2 to 4 is the strip from 1 to 2 made twice as wide and half as tall, and . See Integrating exponentials and logarithms.
the region from a to ab is the region from 1 to b stretched a times wider and squashed a times shorter — the same area — so area(1 → ab) = area(1 → a) + area(1 → b)
Set a and b so that ab = 6, and compare the three areas
Differentiating ln f(x) by the chain rule gives . Read backwards: when the numerator is the derivative of the denominator, the integral is ln of the denominator. , because 2x is the derivative of . Differentiate the denominator first and check whether the numerator matches. See Integrals of f' over f.
When the denominator factors instead, split into partial fractions. Write as , 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.
Now you
The pattern needs the numerator to be
Which integrals give inverse functions?
Two derivatives from the rules of differentiation, read in reverse, give inverse trigonometric answers. Since differentiates to , integrates to , and since differentiates to , integrates to . The area under from 0 to 1 is the angle whose tangent is 1, . With in place of the 1, the answers become and , so gives , as 9 = 3 × 3. Substituting explains it: becomes , which cancels . Without the root, needs partial fractions instead. Differentiating gives two factors of , and turns the result into ; see Integrals that give and .
x = a sin θ names the opposite side, so √(a² − x²) is the adjacent side a cos θ, here 3.54
Swing θ until the adjacent side is 3
When appears with no factor of x beside it, substitute . Then , the root becomes , and . A minus inside takes sine; a plus takes tangent. See Choosing a trigonometric substitution.
A plus under the root gives a hyperbolic answer: integrates to arsinh x, and to arcosh x. Both are logarithms, so either form is correct. See Integrals that give arsinh and arcosh.
How do you choose?
Read the shape of the integrand first and ask, in order: is it a standard result or a power? Is the top the derivative of the bottom, giving a logarithm? Is an inside function's derivative present, calling for substitution? Is it a product of unrelated families, such as x and , calling for parts? Is it a fraction whose bottom factors, calling for partial fractions? Is it or , calling for a double angle identity? So passes the second test up to a factor of 2 and integrates to . The early tests are quicker, and one integrand can pass several: looks like a product, but substitution finishes it in a line. Some, such as , pass none, and a numerical method takes over. Differentiating the log gives 2x over the bottom, and leaves .
ask in order: top = derivative of the bottom? inner derivative present? product of two families?
Drag each integral to the question it answers yes to
| What you see | What to try |
|---|---|
| Inner function with its derivative present | Substitution |
| Bracket or root with a linear inside | Linear substitution |
| Product of two unrelated functions | By parts |
| Numerator is the derivative of the denominator | Logarithm directly |
| Rational function, denominator factors | Partial fractions |
| or | Double angle identity |
| or in the denominator or under a root | Inverse trigonometric |
| Root of a squared difference or sum | Trigonometric or hyperbolic substitution |
The mistakes worth naming
differentiating the false answer leaves an extra −cos x = −0.54: x cannot be taken outside ∫ x sin x dx, because it varies across the slivers
Find the one place the false answer happens to agree
- Dropping the + C. An indefinite integral is a family of curves.
- Leaving an x behind after substituting. Every x must go, including the one in dx.
- Reporting a signed area as a total. Split at the crossings first.
- Choosing the wrong factor in parts. If the new integral is harder, swap.
- Forgetting the modulus in ln|x|. Without it the result fails for negative x.
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
Questions and answers
- Why do you add + C when integrating?
- Because differentiation destroys constants, so integration cannot recover them. The functions x squared, x squared plus 7 and x squared minus 100 all have the same derivative, 2x, so integrating 2x gives a whole family of curves differing only by a vertical shift. The + C stands for that unknown shift, and it is only fixed when the question supplies a point the curve passes through.
- What is integration by substitution?
- It is the chain rule run backwards. Choose an inner expression, call it u, and rewrite the whole integral in terms of u — including converting dx into du, which is the step that makes it work. The substitution succeeds when the derivative of your chosen u is already present as a factor in the integral, and it fails when it is not.
- When do you use integration by parts?
- When the integrand is a product of two unrelated functions, such as x times e to the x, or x times sin x. It is the product rule reversed, and it trades your integral for a different one, so the whole art is choosing which factor to differentiate. Pick the one that gets simpler when differentiated, since a polynomial eventually reduces to a constant and the new integral becomes easy.
- What does the fundamental theorem of calculus say?
- That differentiation and integration are inverse operations, and therefore that an area can be found by antidifferentiating. To get the area under a curve between two points, find any antiderivative, evaluate it at both ends and subtract. There is no obvious reason why reversing a gradient calculation should measure an area, and the theorem is the proof that it does.
- How do you integrate sin squared x?
- Use the double angle identity to remove the square first: sin squared x equals one half of one minus cos 2x. That converts a squared function, which has no direct integral, into a constant plus a plain cosine, which integrates immediately to give x over 2 minus sin 2x over 4. Squares of sine and cosine are always handled this way, and the same identity handles cos squared x.
- How do you know which integration technique to use?
- Read the shape of the integrand. A function inside another function with its derivative present suggests substitution; a product of unrelated functions suggests parts; a fraction whose top is the derivative of its bottom gives a logarithm; a rational function with a factorable denominator suggests partial fractions; and a root of a squared difference suggests a trigonometric substitution. Recognizing the shape is most of the work.