Chapter VI · Derivatives and integrals

Linearity, and integrals of polynomials

§132 20 min

The integral of a sum is the sum of the integrals, constants come outside, and so every polynomial can be integrated term by term; how to check any integral by differentiating it.

Why this matters

The rules of §114 let us differentiate any combination of functions whose derivatives we know. Integration has no rule for products or quotients that always works, but it does have the two simplest rules: sums and constant multiples. With them and the standard forms of §131, every polynomial, and every finite combination ∑Aνfν(x)\sum A_\nu f_\nu(x) of known integrals, can be integrated at once. This short section also sets the habit that the rest of the chapter depends on: an integral is found by cleverness but checked by differentiation.

The idea

Every statement about integrals is a statement about derivatives read backwards. “ϕ\phi is an integral of ψ\psi” means “ϕ′=ψ\phi' = \psi”. So to integrate f+Ff + F we only need a function whose derivative is f+Ff + F, and the sum rule for derivatives hands us one: if ϕ′=f\phi' = f and Φ′=F\Phi' = F, then (ϕ+Φ)′=f+F(\phi + \Phi)' = f + F. Similarly (kϕ)′=kf(k\phi)' = kf.

This makes integration of polynomials mechanical. Integrate each power separately, raising the exponent by one and dividing by the new exponent, and keep the coefficients:

∫(3x2−4x+5) dx=3⋅x33−4⋅x22+5x=x3−2x2+5x.\int (3x^2 - 4x + 5)\,dx = 3\cdot\frac{x^3}{3} - 4\cdot\frac{x^2}{2} + 5x = x^3 - 2x^2 + 5x .

The cheapest way to catch a mistake is to differentiate the answer. The widget does exactly that, numerically, for whatever answer you choose.

Explore Check an integral by differentiating it

Try this. For each integrand, pick the candidate you believe is an integral. The dashed curve is the derivative of your pick, computed from it. Then deliberately pick a wrong one and look at how the dashed curve fails. Use Next to move through the six questions.

Question 1 of 6: which is an integral of ψ(x)=3x2−4x+5\psi(x) = 3x^2 - 4x + 5?
xy
  • ψ, the integrand
  • F′, derivative of your choice
Pick a candidate F. The dashed curve will show its derivative F′, computed from F.
What to notice

A correct answer puts the dashed curve exactly on the thick one, everywhere. The wrong answers fail in typical ways: a factor out (the curves have the same shape but different heights), a sign flipped (mirror images), or the derivative computed instead of the integral. Questions 4 and 5 need the rule for ψ(ax+b)\psi(ax + b) given below.

Precise statements

Theorem Linearity of integration Hardy: §132 (1), (2)

If ff and FF have integrals on an interval, and kk is a constant, then

∫{f(x)+F(x)} dx=∫f(x) dx+∫F(x) dx,∫kf(x) dx=k∫f(x) dx.\int \{f(x) + F(x)\}\,dx = \int f(x)\,dx + \int F(x)\,dx, \qquad \int k f(x)\,dx = k\int f(x)\,dx .

How should an equation between indefinite integrals be read, when each side is only defined up to a constant? Hardy’s answer: the sum of any integral of ff and any integral of FF is an integral of f+Ff + F, and every integral of f+Ff + F arises in this way. In short, each side stands for a whole family {ϕ+C}\{\phi + C\}, and the two families are equal. (In the second formula take k≠0k \ne 0: for k=0k = 0 the left side is the family of all constants, the right side is just 00.)

Corollary Integral of a polynomial Hardy: §132
∫(a0xn+a1xn−1+⋯+an) dx=a0xn+1n+1+a1xnn+⋯+anx.\int (a_0x^n + a_1x^{n-1} + \dots + a_n)\,dx = \frac{a_0x^{n+1}}{n+1} + \frac{a_1x^n}{n} + \dots + a_nx .

More generally, if ∫fν=ϕν\int f_\nu = \phi_\nu for ν=1,…,N\nu = 1, \dots, N, then ∫∑Aνfν=∑Aνϕν\int \sum A_\nu f_\nu = \sum A_\nu \phi_\nu.

One more rule is used constantly. It is the chain rule read backwards, and Hardy states it in §133; we need its simplest case already.

Theorem A linear change of variable Hardy: §133 (4)

If ϕ\phi is an integral of ψ\psi, and a≠0a \ne 0, then

∫ψ(ax+b) dx=1a ϕ(ax+b).\int \psi(ax + b)\,dx = \frac1a\,\phi(ax + b) .

For example ∫cos⁡3x dx=13sin⁡3x\int \cos 3x\,dx = \tfrac13\sin 3x and ∫(2x+1)3 dx=18(2x+1)4\int (2x+1)^3\,dx = \tfrac18 (2x+1)^4.

Proofs

Proof Linearity of integration
Strategy

Translate each claim into a claim about derivatives, and use the sum and constant-multiple rules for derivatives (§114). For the “every integral arises” part, use the uniqueness theorem of §130.

A sum of integrals is an integral of the sum

Let ϕ′=f\phi' = f and Φ′=F\Phi' = F. By the sum rule, (ϕ+Φ)′=ϕ′+Φ′=f+F(\phi + \Phi)' = \phi' + \Phi' = f + F.

Every integral of the sum arises this way

Let χ\chi be any integral of f+Ff + F. Then χ\chi and ϕ+Φ\phi + \Phi have the same derivative on the interval, so χ=ϕ+Φ+C=(ϕ+C)+Φ\chi = \phi + \Phi + C = (\phi + C) + \Phi, and ϕ+C\phi + C is again an integral of ff.

Constant multiples

(kϕ)′=kϕ′=kf(k\phi)' = k\phi' = kf, so kϕk\phi is an integral of kfkf. If k≠0k \ne 0 and χ\chi is any integral of kfkf, then χ/k\chi/k is an integral of ff, so χ=k(χ/k)\chi = k(\chi/k) is of the stated form.

Proof A linear change of variable
Strategy

Differentiate the proposed answer with the chain rule.

Differentiate 1aϕ(ax+b)\frac1a\phi(ax+b)

By the chain rule, ddxϕ(ax+b)=ϕ′(ax+b)⋅a=a ψ(ax+b)\dfrac{d}{dx}\phi(ax+b) = \phi'(ax+b)\cdot a = a\,\psi(ax+b).

Divide by aa

So ddx{1aϕ(ax+b)}=ψ(ax+b)\dfrac{d}{dx}\left\{\tfrac1a\phi(ax+b)\right\} = \psi(ax+b), as claimed.

Worked examples and exercises

Exercise Expand, then integrate ●○○ Hardy: §132

Find ∫(x2+1)2 dx\displaystyle\int (x^2 + 1)^2\,dx.

Hint
No rule integrates a square directly. Expand it into a polynomial first.

Solution

(x2+1)2=x4+2x2+1(x^2+1)^2 = x^4 + 2x^2 + 1, so the integral is 15x5+23x3+x\tfrac15x^5 + \tfrac23x^3 + x. Check: the derivative is x4+2x2+1x^4 + 2x^2 + 1.

Note that 13(x2+1)3\tfrac13(x^2+1)^3 is wrong: its derivative is (x2+1)2⋅2x(x^2+1)^2\cdot 2x. The power rule in reverse only works when the inside is xx itself, or (by the last theorem) a linear function of xx.

Exercise Fractional powers ●○○ Hardy: §§131–132

Find ∫(1+x)2x dx\displaystyle\int \frac{(1 + \sqrt{x})^2}{x}\,dx for x>0x > 0.

Hint
Expand the numerator and divide each term by xx: you get a sum of powers of xx, one of which is x−1x^{-1}.

Solution

1+2x+xx=x−1+2x−1/2+1\dfrac{1 + 2\sqrt x + x}{x} = x^{-1} + 2x^{-1/2} + 1. Integrating term by term,

∫(1+x)2x dx=log⁡x+4x+x.\int \frac{(1+\sqrt x)^2}{x}\,dx = \log x + 4\sqrt{x} + x .

Check: the derivative is 1/x+4⋅12x−1/2+1=1/x+2/x+11/x + 4\cdot\tfrac12x^{-1/2} + 1 = 1/x + 2/\sqrt x + 1.

Exercise Two methods, two answers ●○○ Hardy: §§132–133

Integrate (2x+1)3(2x+1)^3 by expanding, and by the rule for ψ(ax+b)\psi(ax+b). Show that the two answers differ by a constant, and find it.

Hint
Expand (2x+1)3=8x3+12x2+6x+1(2x+1)^3 = 8x^3 + 12x^2 + 6x + 1, and also expand (2x+1)4(2x+1)^4.

Solution

Expanding: ∫(8x3+12x2+6x+1) dx=2x4+4x3+3x2+x\int (8x^3 + 12x^2 + 6x + 1)\,dx = 2x^4 + 4x^3 + 3x^2 + x.

By the rule: 18(2x+1)4=18(16x4+32x3+24x2+8x+1)=2x4+4x3+3x2+x+18\tfrac18(2x+1)^4 = \tfrac18(16x^4 + 32x^3 + 24x^2 + 8x + 1) = 2x^4 + 4x^3 + 3x^2 + x + \tfrac18.

They differ by the constant 18\tfrac18, as the uniqueness theorem says they must.

Exercise Integrals of trigonometric sums ●○○ Hardy: §132

Find ∫(cos⁡x−3sin⁡2x+4) dx\displaystyle\int (\cos x - 3\sin 2x + 4)\,dx, and the integral that vanishes at x=0x = 0.

Hint
Linearity, then the linear change of variable for sin⁡2x\sin 2x.

Solution

∫cos⁡x dx=sin⁡x\int \cos x\,dx = \sin x, ∫sin⁡2x dx=−12cos⁡2x\int \sin 2x\,dx = -\tfrac12\cos 2x, ∫4 dx=4x\int 4\,dx = 4x. So one integral is sin⁡x+32cos⁡2x+4x\sin x + \tfrac32\cos 2x + 4x. At x=0x = 0 its value is 32\tfrac32, so the integral vanishing at 00 is sin⁡x+32cos⁡2x+4x−32\sin x + \tfrac32\cos 2x + 4x - \tfrac32.

Exercise Reading “adjusted properly” ●●○ Hardy: §132

Let f(x)=xf(x) = x. Use linearity to write ∫{f(x)+(−f(x))} dx\int\{f(x) + (-f(x))\}\,dx in two ways, and explain why “12x2−12x2=C\tfrac12x^2 - \tfrac12x^2 = C” is a correct statement rather than a contradiction.

Hint
What is ∫0 dx\int 0\,dx? What does each indefinite integral on the right stand for?

Solution

On the one hand f+(−f)=0f + (-f) = 0, and the integrals of 00 on an interval are exactly the constants. On the other hand, linearity gives ∫x dx+∫(−x) dx\int x\,dx + \int(-x)\,dx, and these stand for 12x2+C1\tfrac12x^2 + C_1 and −12x2+C2-\tfrac12x^2 + C_2, whose sum is C1+C2C_1 + C_2: again any constant. Both sides are the family of constant functions. Writing particular integrals, 12x2\tfrac12x^2 and −12x2-\tfrac12x^2, gives the particular integral 00, which is one member of that family. This is what Hardy means by “the arbitrary constants are adjusted properly”.

Check yourself

Check yourself Choose one

Which is an integral of 4x3−6x+24x^3 - 6x + 2?

Why

Differentiate each: x4−3x2+2x−9x^4 - 3x^2 + 2x - 9 gives 4x3−6x+24x^3 - 6x + 2 (the −9-9 is harmless). The first option is the derivative, not an integral. The third forgot to halve 6x6x‘s coefficient; the fourth forgot to divide by the new exponents.

Check yourself True or false?

If ϕ\phi and Φ\Phi are integrals of ff and FF, then ϕΦ\phi\Phi is an integral of fFfF.

Why

False. (ϕΦ)′=ϕ′Φ+ϕΦ′=fΦ+ϕF(\phi\Phi)' = \phi'\Phi + \phi\Phi' = f\Phi + \phi F, not fFfF. For example, with f=F=1f = F = 1 we get ϕΦ=x2\phi\Phi = x^2, whose derivative is 2x2x, not 11. Integration has no product rule of this kind; the nearest thing is integration by parts (§141).

Check yourself Enter a number

∫(4x−1)−2 dx=k (4x−1)−1\int (4x - 1)^{-2}\,dx = k\,(4x-1)^{-1} for x>14x > \tfrac14. What is kk?

Why

An integral of u−2u^{-2} is −u−1-u^{-1}, so by the linear change of variable ∫(4x−1)−2 dx=14⋅{−(4x−1)−1}\int (4x-1)^{-2}\,dx = \tfrac14\cdot\{-(4x-1)^{-1}\}, and k=−14k = -\tfrac14. Check: the derivative of −14(4x−1)−1-\tfrac14(4x-1)^{-1} is −14⋅(−1)(4x−1)−2⋅4=(4x−1)−2-\tfrac14\cdot(-1)(4x-1)^{-2}\cdot 4 = (4x-1)^{-2}. The two common slips are dropping the minus sign of the power rule (k=14k = \tfrac14) and multiplying by 44 instead of dividing (k=−4k = -4).

Hardy’s language

Summary

Summary
  • Integration is linear: integrate sums term by term, and take constant factors outside.
  • Every polynomial integrates term by term: raise each exponent by one and divide by the new exponent.
  • ∫ψ(ax+b) dx=1aϕ(ax+b)\int \psi(ax + b)\,dx = \frac1a\phi(ax + b): a linear inside costs a factor 1/a1/a.
  • There is no product rule: ∫fF\int fF is not ∫f⋅∫F\int f \cdot \int F, and ∫(inside)n\int (\text{inside})^n is not (inside)n+1/(n+1)(\text{inside})^{n+1}/(n+1) unless the inside is linear.
  • Always check an integral by differentiating it.