←
Mathematics — Grade 12, Part II
INTEGRALS · 1 / 7
⌕
Chapter 1 of 7

INTEGRALS

38 sections · 9,777 words

Chapter 7: Integrals

35 words · 1 min read

Chapter 7

Integrals

Big idea: integration does two jobs that look different but are the same. It undoes differentiation, and it adds up infinitely many tiny pieces to find a total, such as an area.

7.1 Introduction

334 words · 2 min read

A tank is filling with water. A sensor tells you the rate at each moment: after tt minutes, water flows in at 3t23t^2 litres per minute. The rate grows, so the tank fills faster and faster. How much water is in the tank after 44 minutes?

In Chapter 6 you went from a quantity to its rate by differentiating. Now you must go backwards: from the rate to the quantity. You need a function V(t)V(t) whose derivative is 3t23t^2. Since ddtt3=3t2\frac{d}{dt}t^3 = 3t^2, the volume is V(t)=t3V(t) = t^3, and after 44 minutes there are 43=644^3 = 64 litres.

A function that you differentiate to get ff is called an antiderivative of ff. Finding it is called integration.

There is a second way to look at the tank. Draw the rate y=3t2y = 3t^2 against time. A small strip of width Δt\Delta t under the curve has area about (rate) ×\times (time), which is the water that flows in during that short moment. Adding all the strips from t=0t = 0 to t=4t = 4 gives the total water, which is the area under the curve. The shaded area below is exactly 6464 square units, the same 6464.

The area under y = 3t² from t = 0 to t = 4 is 64. It equals the antiderivative t³ evaluated at 4.

This is the big discovery of the chapter: area under a curve and undoing a derivative are the same thing. In Sections 7.7 and 7.8 you will see why.

In this chapter you will learn: how to find antiderivatives (indefinite integrals) with substitution, trigonometric identities, partial fractions and integration by parts; and how to use them to calculate areas and totals (definite integrals) with the Fundamental Theorem of Calculus.

7.2 Integration as an Inverse Process of Differentiation

534 words · 2 min read

Differentiation takes a function FF and gives F′F'. Integration goes the other way: given ff, find a function FF with F′(x)=f(x)F'(x) = f(x). We write

∫f(x) dx=F(x)+CwhenF′(x)=f(x).\int f(x) \, dx = F(x) + C \quad \text{when} \quad F'(x) = f(x).

  • The sign ∫\int is the integral sign (a long "S" for "sum"). The function f(x)f(x) is the integrand. The dxdx says the variable is xx.
  • The function FF is an antiderivative of ff.
  • The number CC is the constant of integration. We will see in a moment why it must be there.

The derivative of x3x^3 is 3x23x^2. But the derivative of x3+5x^3 + 5 is also 3x23x^2, and so is the derivative of x3−2x^3 - 2. A constant disappears when you differentiate. So when you go backwards you cannot know which constant was there, and you write all the possibilities at once:

∫3x2 dx=x3+C.\int 3x^2 \, dx = x^3 + C.

Geometrically, each value of CC gives one curve, and the curves are copies of each other shifted up or down. They all have the same slope above any given value of xx.

The antiderivatives x² + C for C = −2, 0, 2. Above x = 1 each curve has slope 2.

A point decides the constant. If the curve must pass through a known point, you can find CC. Suppose a curve has slope 2x2x at every point and passes through (1,3)(1, 3). Then y=∫2x dx=x2+Cy = \int 2x \, dx = x^2 + C. Putting in the point: 3=1+C3 = 1 + C, so C=2C = 2, and the curve is y=x2+2y = x^2 + 2.

Every derivative you know gives an integral for free, by reading it backwards. Each row of this table was checked by differentiating the answer.

Integrand f(x)f(x)Antiderivative F(x)F(x) (add +C+C)
xn  (n≠−1)x^n \; (n \ne -1)xn+1n+1\dfrac{x^{n+1}}{n + 1}
1x\dfrac{1}{x}ln⁡∣x∣\ln|x|
exe^xexe^x
axa^xaxln⁡a\dfrac{a^x}{\ln a}
sin⁡x\sin x−cos⁡x-\cos x
cos⁡x\cos xsin⁡x\sin x
sec⁡2x\sec^2 xtan⁡x\tan x
csc⁡2x\csc^2 x−cot⁡x-\cot x
sec⁡xtan⁡x\sec x \tan xsec⁡x\sec x
csc⁡xcot⁡x\csc x \cot x−csc⁡x-\csc x
11−x2\dfrac{1}{\sqrt{1 - x^2}}sin⁡−1x\sin^{-1} x
11+x2\dfrac{1}{1 + x^2}tan⁡−1x\tan^{-1} x

In the first row, nn can be any number except −1-1 (for n=−1n = -1 use the second row). For axa^x, take a>0a > 0, a≠1a \ne 1.

Always check by differentiating. Your answer FF is right if F′(x)F'(x) gives back the integrand. This takes a few seconds and catches most mistakes.

A cyclist starts at position 00 and moves with speed v(t)=6t+2v(t) = 6t + 2 metres per second. Her position s(t)s(t) has derivative vv, so s(t)=∫(6t+2) dt=3t2+2t+Cs(t) = \int (6t + 2)\,dt = 3t^2 + 2t + C. At t=0t = 0 she is at 00, so C=0C = 0. After 55 seconds she has gone s(5)=3⋅25+10=85s(5) = 3 \cdot 25 + 10 = 85 metres.

7.2.1 Some properties of indefinite integral

465 words · 2 min read

These rules let you break a hard integral into easy pieces. They come directly from the matching rules for derivatives.

  • Differentiating an integral gives back the function: ddx∫f(x) dx=f(x)\dfrac{d}{dx}\int f(x)\,dx = f(x).
  • Integrating a derivative gives back the function (plus a constant): ∫F′(x) dx=F(x)+C\int F'(x)\,dx = F(x) + C.
  • Constant multiple: ∫k f(x) dx=k∫f(x) dx\int k\,f(x)\,dx = k\int f(x)\,dx.
  • Sum and difference: ∫(f(x)±g(x)) dx=∫f(x) dx±∫g(x) dx\int \big(f(x) \pm g(x)\big)\,dx = \int f(x)\,dx \pm \int g(x)\,dx.

Together, the last two say that integration is linear: ∫(af+bg) dx=a∫f dx+b∫g dx\int \big(a f + b g\big)\,dx = a\int f\,dx + b\int g\,dx. Because all the pieces together give only one unknown constant, you write a single +C+C at the end.

∫(4x3−6x2+5) dx=x4−2x3+5x+C\int (4x^3 - 6x^2 + 5)\,dx = x^4 - 2x^3 + 5x + C

Integrate each term with the power rule: raise the power by 11, divide by the new power.

∫(3sin⁡x+2ex−1x)dx=−3cos⁡x+2ex−ln⁡∣x∣+C\int \left(3\sin x + 2e^x - \frac{1}{x}\right) dx = -3\cos x + 2e^x - \ln|x| + C

Find ∫(x2+1)2x dx\int \dfrac{(x^2 + 1)^2}{x}\,dx. There is no rule for a bracket divided by xx. So expand, then divide each term: x4+2x2+1x=x3+2x+1x\dfrac{x^4 + 2x^2 + 1}{x} = x^3 + 2x + \dfrac{1}{x}. Then

∫(x3+2x+1x)dx=x44+x2+ln⁡∣x∣+C.\int \left(x^3 + 2x + \frac{1}{x}\right) dx = \frac{x^4}{4} + x^2 + \ln|x| + C.

Find ∫x (x+2) dx\int \sqrt{x}\,(x + 2)\,dx. Write x=x1/2\sqrt{x} = x^{1/2} and expand: x3/2+2x1/2x^{3/2} + 2x^{1/2}. Then

∫(x3/2+2x1/2)dx=25x5/2+43x3/2+C.\int \left(x^{3/2} + 2x^{1/2}\right) dx = \frac{2}{5}x^{5/2} + \frac{4}{3}x^{3/2} + C.

Find ∫tan⁡2x dx\int \tan^2 x\,dx. There is no rule for tan⁡2x\tan^2 x, but tan⁡2x=sec⁡2x−1\tan^2 x = \sec^2 x - 1. So ∫tan⁡2x dx=∫(sec⁡2x−1) dx=tan⁡x−x+C\int \tan^2 x\,dx = \int (\sec^2 x - 1)\,dx = \tan x - x + C.

Common mistake: the integral of a product is not the product of the integrals. Compare ∫x⋅x dx=x33+C\int x \cdot x\,dx = \frac{x^3}{3} + C with (∫x dx)(∫x dx)=x44\left(\int x\,dx\right)\left(\int x\,dx\right) = \frac{x^4}{4}. The derivative of x44\frac{x^4}{4} is x3x^3, which is not x2x^2: at x=2x = 2 these are 88 and 44.
Common mistake: forgetting +C+ C. Without it, you have named only one antiderivative, not all of them.

  1. Find ∫6x2−4x+1 dx\int 6x^2 - 4x + 1 \, dx.
  2. Find ∫ex+4cos⁡x dx\int e^x + 4\cos x \, dx.
  3. Find ∫x+2x dx\int \frac{x + 2}{x} \, dx.
  4. Find ∫(x+1)2 dx\int (x + 1)^2 \, dx.

Answers

  1. 2x3−2x2+x+C2 x^{3} - 2 x^{2} + x + C
  2. ex+4sin⁡x+Ce^{x} + 4 \sin x + C
  3. x+2ln⁡∣x∣+Cx + 2\ln|x| + C (split into 1+2x1 + \frac{2}{x} first).
  4. x33+x2+x+C\frac{x^3}{3} + x^2 + x + C (expand first).

EXERCISE 7.1

270 words · 1 min read
  1. Find ∫3x2+4x−5 dx\int 3x^2 + 4x - 5 \, dx.
  2. Find ∫5x3−2x dx\int \frac{5}{x^3} - 2\sqrt{x} \, dx.
  3. Find ∫ex+3cos⁡x dx\int e^x + 3\cos x \, dx.
  4. Find ∫(1+x)2 dx\int (1 + x)^2 \, dx by expanding the bracket.
  5. Find ∫x3+2x2 dx\int \frac{x^3 + 2}{x^2} \, dx. (Divide each term first.)
  6. Find ∫sin⁡2(x2) dx\int \sin^2\left(\frac{x}{2}\right) \, dx. (Use sin⁡2A=1−cos⁡2A2\sin^2 A = \frac{1 - \cos 2A}{2}.)
  7. Find ∫11+x2+21−x2 dx\int \frac{1}{1 + x^2} + \frac{2}{\sqrt{1 - x^2}} \, dx.
  8. Find ∫2x+1x dx\int 2^x + \frac{1}{x} \, dx.
  9. Find ∫tan⁡2x+1 dx\int \tan^2 x + 1 \, dx.
  10. A curve has slope 3x2−2x3x^2 - 2x at every point and passes through (0,1)(0, 1). Find its equation. Where is it at x=2x = 2?
  11. A runner's speed is v(t)=4t+3v(t) = 4t + 3 m/s, starting at position 00. How far has the runner gone after 44 seconds?

Answers

  1. x3+2x2−5x+Cx^{3} + 2 x^{2} - 5 x + C
  2. −52x2−43x3/2+C-\dfrac{5}{2x^2} - \dfrac{4}{3}x^{3/2} + C
  3. ex+3sin⁡x+Ce^{x} + 3 \sin x + C
  4. x+x2+x33+Cx + x^{2} + \frac{x^{3}}{3} + C
  5. x22−2x+C\frac{x^{2}}{2} - \frac{2}{x} + C
  6. x2−sin⁡x2+C\frac{x}{2} - \frac{\sin x}{2} + C
  7. tan⁡−1x+2sin⁡−1x+C\tan^{-1} x + 2 \sin^{-1} x + C
  8. 2xln⁡2+ln⁡∣x∣+C\dfrac{2^x}{\ln 2} + \ln|x| + C
  9. tan⁡2x+1=sec⁡2x\tan^2 x + 1 = \sec^2 x, so the integral is tan⁡x+C\tan x + C.
  10. y=x3−x2+Cy = x^3 - x^2 + C. At (0,1)(0, 1): C=1C = 1. So y=x3−x2+1y = x^3 - x^2 + 1, and at x=2x = 2, y=8−4+1=5y = 8 - 4 + 1 = 5.
  11. s(t)=2t2+3t+Cs(t) = 2t^2 + 3t + C with s(0)=0s(0) = 0, so C=0C = 0. Then s(4)=32+12=44s(4) = 32 + 12 = 44 metres.

7.3 Methods of Integration

184 words · 1 min read

The basic table covers only a few functions. Most integrals need a method that turns them into basic ones. This chapter has four main methods. Here is a guide to choosing between them:

If the integrand looks like ...Try ...Section
a function of an inner function, with the derivative of the inner function nearby, such as x (x2+3)4x\,(x^2+3)^4Substitution7.3.1
powers or products of sine and cosine, such as sin⁡2x\sin^2 x or sin⁡3xcos⁡x\sin 3x \cos xTrigonometric identities7.3.2
1ax2+bx+c\dfrac{1}{ax^2 + bx + c} or 1ax2+bx+c\dfrac{1}{\sqrt{ax^2 + bx + c}}Standard forms (complete the square)7.4
a fraction of two polynomials, such as 3x+1(x−1)(x+2)\dfrac{3x + 1}{(x-1)(x+2)}Partial fractions7.5
a product of two different kinds of function, such as x exx\,e^x or ln⁡x\ln xIntegration by parts7.6
In simple words: an integral is a puzzle. Each method is a way to rewrite the puzzle as something you already know how to solve. When one method does not work, try another.

7.3.1 Integration by substitution

516 words · 2 min read

Substitution undoes the chain rule. If an integrand contains an inner function g(x)g(x) and, nearby, its derivative g′(x)g'(x), give the inner function a new name uu. This turns a messy integral into a simple one.

The steps:

  1. Choose u=g(x)u = g(x) (usually the inside of a bracket, a root, a power, or the bottom of a fraction).
  2. Differentiate: du=g′(x) dxdu = g'(x)\,dx. Solve for what you need, such as x dx=du2x\,dx = \frac{du}{2}.
  3. Rewrite the whole integral using only uu and dudu. No xx may be left.
  4. Integrate with respect to uu.
  5. Put xx back: replace uu by g(x)g(x).

Find ∫2x (x2+3)4 dx\int 2x\,(x^2 + 3)^4\,dx. Let u=x2+3u = x^2 + 3. Then du=2x dxdu = 2x\,dx, which is exactly the rest of the integrand. So

∫u4 du=u55+C=(x2+3)55+C.\int u^4\,du = \frac{u^5}{5} + C = \frac{(x^2 + 3)^5}{5} + C.

Find ∫cos⁡(3x+1) dx\int \cos(3x + 1)\,dx. Let u=3x+1u = 3x + 1, so du=3 dxdu = 3\,dx and dx=du3dx = \frac{du}{3}. Then ∫cos⁡u⋅du3=sin⁡u3+C=sin⁡(3x+1)3+C\int \cos u \cdot \frac{du}{3} = \frac{\sin u}{3} + C = \frac{\sin(3x + 1)}{3} + C.

A shortcut for a linear inside. If ∫f(x) dx=F(x)+C\int f(x)\,dx = F(x) + C, then ∫f(ax+b) dx=1aF(ax+b)+C\int f(ax + b)\,dx = \frac{1}{a}F(ax + b) + C. Divide by the number multiplying xx.

Find ∫xx2+4 dx\int \dfrac{x}{x^2 + 4}\,dx. Let u=x2+4u = x^2 + 4, so x dx=du2x\,dx = \frac{du}{2}. Then 12∫duu=12ln⁡∣u∣+C\frac{1}{2}\int \frac{du}{u} = \frac{1}{2}\ln|u| + C. Since x2+4>0x^2 + 4 > 0, the answer is 12ln⁡(x2+4)+C\frac{1}{2}\ln(x^2 + 4) + C.

This pattern is so common that it is worth remembering:

∫f′(x)f(x) dx=ln⁡∣f(x)∣+C.\int \frac{f'(x)}{f(x)}\,dx = \ln|f(x)| + C.

Find ∫tan⁡x dx=∫sin⁡xcos⁡x dx\int \tan x\,dx = \int \dfrac{\sin x}{\cos x}\,dx. Let u=cos⁡xu = \cos x, so du=−sin⁡x dxdu = -\sin x\,dx. Then −∫duu=−ln⁡∣cos⁡x∣+C-\int \frac{du}{u} = -\ln|\cos x| + C. (This equals ln⁡∣sec⁡x∣+C\ln|\sec x| + C.)

Find ∫sin⁡xcos⁡2x dx\int \sin x \cos^2 x\,dx. Let u=cos⁡xu = \cos x, so du=−sin⁡x dxdu = -\sin x\,dx. Then −∫u2 du=−cos⁡3x3+C-\int u^2\,du = -\frac{\cos^3 x}{3} + C.

Find ∫sin⁡3x dx\int \sin^3 x\,dx. Split off one sine: sin⁡3x=sin⁡x (1−cos⁡2x)\sin^3 x = \sin x\,(1 - \cos^2 x). With u=cos⁡xu = \cos x, −∫(1−u2) du=−u+u33+C=−cos⁡x+cos⁡3x3+C-\int (1 - u^2)\,du = -u + \frac{u^3}{3} + C = -\cos x + \frac{\cos^3 x}{3} + C.

  • ∫exx dx\displaystyle\int \frac{e^{\sqrt{x}}}{\sqrt{x}}\,dx: let u=xu = \sqrt{x}, so du=dx2xdu = \frac{dx}{2\sqrt{x}} and the integral is 2∫eu du=2ex+C2\int e^u\,du = 2e^{\sqrt{x}} + C.
  • ∫dxxln⁡x\displaystyle\int \frac{dx}{x \ln x} for x>1x > 1: let u=ln⁡xu = \ln x, so du=dxxdu = \frac{dx}{x} and the integral is ∫duu=ln⁡∣ln⁡x∣+C\int \frac{du}{u} = \ln|\ln x| + C.
Common mistakes: (1) leaving some xx in an integral that should now be in uu; (2) forgetting the factor from dudu, such as the 13\frac{1}{3} in Example 2; (3) forgetting to replace uu by its xx-expression at the end.

All six answers above were checked by differentiating them. For instance, the derivative of (x2+3)55\frac{(x^2 + 3)^5}{5} is 2x(x2+3)42x(x^2 + 3)^4, as it should be.

EXERCISE 7.2

156 words · 1 min read
  1. Find ∫(3x+2)5 dx\int (3x + 2)^5 \, dx.
  2. Find ∫x1+x2 dx\int \frac{x}{1 + x^2} \, dx.
  3. Find ∫cos⁡xsin⁡4x dx\int \cos x \sin^4 x \, dx.
  4. Find ∫e2x+3 dx\int e^{2x + 3} \, dx.
  5. Find ∫sec⁡23x dx\int \sec^2 3x \, dx.
  6. Find ∫(ln⁡x)2x dx\int \frac{(\ln x)^2}{x} \, dx for x>0x > 0.
  7. Find ∫12x+5 dx\int \frac{1}{2x + 5} \, dx.
  8. Find ∫xx+1 dx\int x\sqrt{x + 1} \, dx. (Let u=x+1u = x + 1 and write x=u−1x = u - 1.)
  9. Find ∫cos⁡3x dx\int \cos^3 x \, dx. (Split off one cosine and use cos⁡2x=1−sin⁡2x\cos^2 x = 1 - \sin^2 x.)
  10. Find ∫ex1+ex dx\int \frac{e^x}{1 + e^x} \, dx.

Answers

  1. (3x+2)618+C\frac{\left(3 x + 2\right)^{6}}{18} + C
  2. ln⁡(1+x2)2+C\dfrac{\ln(1 + x^2)}{2} + C
  3. sin⁡5x5+C\frac{\sin^{5} x}{5} + C
  4. e2x+32+C\dfrac{e^{2x + 3}}{2} + C
  5. tan⁡3x3+C\dfrac{\tan 3x}{3} + C
  6. (ln⁡x)33+C\dfrac{(\ln x)^3}{3} + C
  7. ln⁡∣2x+5∣2+C\dfrac{\ln|2x + 5|}{2} + C
  8. 25(x+1)5/2−23(x+1)3/2+C\dfrac{2}{5}(x+1)^{5/2} - \dfrac{2}{3}(x+1)^{3/2} + C
  9. sin⁡x−sin⁡3x3+C\sin x - \dfrac{\sin^3 x}{3} + C
  10. ln⁡(1+ex)+C\ln(1 + e^x) + C

7.3.2 Integration using trigonometric identities

206 words · 1 min read

Products and powers of sine and cosine have no direct rule. But trigonometric identities turn them into sums of simple sines and cosines, which you can integrate term by term.

The identities you need (all verified numerically):

  • sin⁡2A=1−cos⁡2A2\sin^2 A = \dfrac{1 - \cos 2A}{2} and cos⁡2A=1+cos⁡2A2\cos^2 A = \dfrac{1 + \cos 2A}{2}.
  • sin⁡Acos⁡B=12[sin⁡(A+B)+sin⁡(A−B)]\sin A \cos B = \dfrac{1}{2}\big[\sin(A + B) + \sin(A - B)\big].
  • cos⁡Acos⁡B=12[cos⁡(A−B)+cos⁡(A+B)]\cos A \cos B = \dfrac{1}{2}\big[\cos(A - B) + \cos(A + B)\big].
  • sin⁡Asin⁡B=12[cos⁡(A−B)−cos⁡(A+B)]\sin A \sin B = \dfrac{1}{2}\big[\cos(A - B) - \cos(A + B)\big].

∫cos⁡2x dx=∫1+cos⁡2x2 dx=x2+sin⁡2x4+C.\int \cos^2 x\,dx = \int \frac{1 + \cos 2x}{2}\,dx = \frac{x}{2} + \frac{\sin 2x}{4} + C.

Find ∫sin⁡5xcos⁡2x dx\int \sin 5x \cos 2x\,dx. With A=5xA = 5x and B=2xB = 2x: sin⁡5xcos⁡2x=12(sin⁡7x+sin⁡3x)\sin 5x \cos 2x = \frac{1}{2}(\sin 7x + \sin 3x). Then

∫sin⁡5xcos⁡2x dx=−cos⁡7x14−cos⁡3x6+C.\int \sin 5x \cos 2x\,dx = -\frac{\cos 7x}{14} - \frac{\cos 3x}{6} + C.

cos⁡3xcos⁡x=12(cos⁡2x+cos⁡4x)\cos 3x \cos x = \frac{1}{2}(\cos 2x + \cos 4x), so ∫cos⁡3xcos⁡x dx=sin⁡2x4+sin⁡4x8+C\int \cos 3x \cos x\,dx = \frac{\sin 2x}{4} + \frac{\sin 4x}{8} + C.

Common mistake: sin⁡2x\sin^2 x does not integrate to sin⁡3x3\frac{\sin^3 x}{3}. That would be the integral of sin⁡2xcos⁡x\sin^2 x \cos x (by substitution). To integrate a plain sin⁡2x\sin^2 x you need the identity.

EXERCISE 7.3

150 words · 1 min read
  1. Find ∫sin⁡23x dx\int \sin^2 3x \, dx.
  2. Find ∫cos⁡22x dx\int \cos^2 2x \, dx.
  3. Find ∫sin⁡4xcos⁡x dx\int \sin 4x \cos x \, dx.
  4. Find ∫sin⁡xsin⁡3x dx\int \sin x \sin 3x \, dx.
  5. Find ∫1−cos⁡x1+cos⁡x dx\int \frac{1 - \cos x}{1 + \cos x} \, dx. (Show first that it equals tan⁡2x2\tan^2\frac{x}{2}.)
  6. Find ∫cos⁡2xcos⁡4x dx\int \cos 2x \cos 4x \, dx.

Answers

  1. x2−sin⁡6x12+C\dfrac{x}{2} - \dfrac{\sin 6x}{12} + C
  2. x2+sin⁡(4x)8+C\frac{x}{2} + \frac{\sin\left(4 x\right)}{8} + C
  3. sin⁡4xcos⁡x=12(sin⁡5x+sin⁡3x)\sin 4x \cos x = \frac{1}{2}(\sin 5x + \sin 3x), so the integral is −cos⁡(5x)10−cos⁡(3x)6+C\frac{-\cos\left(5 x\right)}{10} - \frac{\cos\left(3 x\right)}{6} + C
  4. sin⁡xsin⁡3x=12(cos⁡2x−cos⁡4x)\sin x \sin 3x = \frac{1}{2}(\cos 2x - \cos 4x), so the integral is sin⁡(2x)4−sin⁡(4x)8+C\frac{\sin\left(2 x\right)}{4} - \frac{\sin\left(4 x\right)}{8} + C
  5. 1−cos⁡x1+cos⁡x=tan⁡2x2=sec⁡2x2−1\dfrac{1 - \cos x}{1 + \cos x} = \tan^2\dfrac{x}{2} = \sec^2\dfrac{x}{2} - 1. So the integral is 2tan⁡x2−x+C2\tan\dfrac{x}{2} - x + C
  6. cos⁡2xcos⁡4x=12(cos⁡2x+cos⁡6x)\cos 2x \cos 4x = \frac{1}{2}(\cos 2x + \cos 6x), so the integral is sin⁡(2x)4+sin⁡(6x)12+C\frac{\sin\left(2 x\right)}{4} + \frac{\sin\left(6 x\right)}{12} + C

7.4 Integrals of Some Particular Functions

676 words · 3 min read

Six integrals come up so often that they are worth learning as formulas. Each one comes from a derivative you already know. In each row, aa is a positive constant.

IntegrandIntegral (add +C+C)
1x2−a2\dfrac{1}{x^2 - a^2}12aln⁡∣x−ax+a∣\dfrac{1}{2a}\ln\left|\dfrac{x - a}{x + a}\right|
1a2−x2\dfrac{1}{a^2 - x^2}12aln⁡∣a+xa−x∣\dfrac{1}{2a}\ln\left|\dfrac{a + x}{a - x}\right|
1x2+a2\dfrac{1}{x^2 + a^2}1atan⁡−1xa\dfrac{1}{a}\tan^{-1}\dfrac{x}{a}
1x2−a2\dfrac{1}{\sqrt{x^2 - a^2}}ln⁡∣x+x2−a2∣\ln\left|x + \sqrt{x^2 - a^2}\right|
1a2−x2\dfrac{1}{\sqrt{a^2 - x^2}}sin⁡−1xa\sin^{-1}\dfrac{x}{a}
1x2+a2\dfrac{1}{\sqrt{x^2 + a^2}}ln⁡(x+x2+a2)\ln\left(x + \sqrt{x^2 + a^2}\right)

Each formula was checked by differentiating it, using a=3a = 3, a=2a = 2 or a=3a = 3 in turn. The second row is valid for x≠±ax \ne \pm a, and the fourth for x>ax > a or x<−ax < -a.

How to tell which formula: look at the sign. x2−a2x^2 - a^2 with a minus gives a logarithm (when the fraction has no root). x2+a2x^2 + a^2 with a plus gives an inverse tangent. A root with a2−x2a^2 - x^2 gives an inverse sine.

Real problems rarely arrive as x2+a2x^2 + a^2. They arrive as x2+4x+13x^2 + 4x + 13. The fix is to complete the square, which rewrites a quadratic as (x+p)2±q2(x + p)^2 \pm q^2, and then use the substitution u=x+pu = x + p.

Example 1. Find ∫dxx2+4x+13\int \dfrac{dx}{x^2 + 4x + 13}. Complete the square: x2+4x+13=(x+2)2+9x^2 + 4x + 13 = (x + 2)^2 + 9. With u=x+2u = x + 2 and a=3a = 3:

∫dx(x+2)2+32=13tan⁡−1x+23+C.\int \frac{dx}{(x + 2)^2 + 3^2} = \frac{1}{3}\tan^{-1}\frac{x + 2}{3} + C.

Example 2. Find ∫dxx2−6x+5\int \dfrac{dx}{x^2 - 6x + 5}. Here x2−6x+5=(x−3)2−22x^2 - 6x + 5 = (x - 3)^2 - 2^2. With u=x−3u = x - 3 and a=2a = 2 (the "minus" formula):

14ln⁡∣x−5x−1∣+C.\frac{1}{4}\ln\left|\frac{x - 5}{x - 1}\right| + C.

Example 3. Find ∫dx5+4x−x2\int \dfrac{dx}{\sqrt{5 + 4x - x^2}}. Complete the square with a minus sign: 5+4x−x2=9−(x−2)25 + 4x - x^2 = 9 - (x - 2)^2. This is a2−u2a^2 - u^2 with a=3a = 3, so the answer is sin⁡−1x−23+C\sin^{-1}\dfrac{x - 2}{3} + C.

Example 4. ∫dxx2+2x+10\int \dfrac{dx}{\sqrt{x^2 + 2x + 10}}: since x2+2x+10=(x+1)2+9x^2 + 2x + 10 = (x + 1)^2 + 9, the answer is ln⁡(x+1+x2+2x+10)+C\ln\left(x + 1 + \sqrt{x^2 + 2x + 10}\right) + C.

When the numerator is px+qpx + q, write it as (a multiple of the derivative of the denominator) plus a constant. The first part gives a logarithm or a root. The second part is one of the forms above.

Example 5. Find ∫2x+5x2+4x+13 dx\int \dfrac{2x + 5}{x^2 + 4x + 13}\,dx. The derivative of the denominator is 2x+42x + 4, and 2x+5=(2x+4)+12x + 5 = (2x + 4) + 1. So

∫2x+4x2+4x+13 dx=ln⁡(x2+4x+13)\int \frac{2x + 4}{x^2 + 4x + 13}\,dx = \ln(x^2 + 4x + 13)

∫1x2+4x+13 dx=13tan⁡−1x+23\int \frac{1}{x^2 + 4x + 13}\,dx = \frac{1}{3}\tan^{-1}\frac{x + 2}{3}

Adding the two parts, the answer is ln⁡(x2+4x+13)+13tan⁡−1x+23+C\ln(x^2 + 4x + 13) + \dfrac{1}{3}\tan^{-1}\dfrac{x + 2}{3} + C.

Example 6. Find ∫3x+1x2+2x+5 dx\int \dfrac{3x + 1}{\sqrt{x^2 + 2x + 5}}\,dx. The derivative of x2+2x+5x^2 + 2x + 5 is 2x+22x + 2, and 3x+1=32(2x+2)−23x + 1 = \frac{3}{2}(2x + 2) - 2. The first part gives 3x2+2x+53\sqrt{x^2 + 2x + 5}, the second gives a logarithm:

3x2+2x+5−2ln⁡(x+1+x2+2x+5)+C.3\sqrt{x^2 + 2x + 5} - 2\ln\left(x + 1 + \sqrt{x^2 + 2x + 5}\right) + C.

Common mistake: using the tan⁡−1\tan^{-1} formula without the 1a\frac{1}{a}, or using ln⁡\ln for x2+a2x^2 + a^2. Differentiate your answer to be sure.

EXERCISE 7.4

154 words · 1 min read
  1. Find ∫1x2+16 dx\int \frac{1}{x^2 + 16} \, dx.
  2. Find ∫125−x2 dx\int \frac{1}{25 - x^2} \, dx.
  3. Find ∫116−9x2 dx\int \frac{1}{\sqrt{16 - 9x^2}} \, dx.
  4. Find ∫1x2+6x+13 dx\int \frac{1}{x^2 + 6x + 13} \, dx.
  5. Find ∫1x2−4x+3 dx\int \frac{1}{x^2 - 4x + 3} \, dx.
  6. Find ∫1x2+4x+8 dx\int \frac{1}{\sqrt{x^2 + 4x + 8}} \, dx.
  7. Find ∫3x+2x2+2x+5 dx\int \frac{3x + 2}{x^2 + 2x + 5} \, dx.
  8. Find ∫11−4x2 dx\int \frac{1}{\sqrt{1 - 4x^2}} \, dx.

Answers

  1. tan⁡−1(x4)4+C\frac{\tan^{-1}\left(\frac{x}{4}\right)}{4} + C
  2. 110ln⁡∣5+x5−x∣+C\dfrac{1}{10}\ln\left|\dfrac{5 + x}{5 - x}\right| + C
  3. 13sin⁡−13x4+C\dfrac{1}{3}\sin^{-1}\dfrac{3x}{4} + C
  4. 12tan⁡−1x+32+C\dfrac{1}{2}\tan^{-1}\dfrac{x + 3}{2} + C
  5. 12ln⁡∣x−3x−1∣+C\dfrac{1}{2}\ln\left|\dfrac{x - 3}{x - 1}\right| + C
  6. ln⁡(x+2+x2+4x+8)+C\ln\left(x + 2 + \sqrt{x^2 + 4x + 8}\right) + C
  7. 32ln⁡(x2+2x+5)−12tan⁡−1x+12+C\dfrac{3}{2}\ln(x^2 + 2x + 5) - \dfrac{1}{2}\tan^{-1}\dfrac{x + 1}{2} + C
  8. 12sin⁡−12x+C\dfrac{1}{2}\sin^{-1} 2x + C

7.5 Integration by Partial Fractions

761 words · 3 min read

A rational function is a fraction of two polynomials, such as 5x+1(x−1)(x+2)\dfrac{5x + 1}{(x - 1)(x + 2)}. Integrating a single fraction like this is hard. But you can split it into simpler fractions that are each easy to integrate. This is the reverse of adding fractions with a common denominator. The simpler pieces are called partial fractions.

The method works when the fraction is proper: the top has a smaller degree than the bottom. If it is not proper, divide first (long division) and integrate the polynomial part and the proper fraction separately.

Factor in the bottomMatching piece(s)
(x−a)(x - a)Ax−a\dfrac{A}{x - a}
(x−a)2(x - a)^2 (repeated)Ax−a+B(x−a)2\dfrac{A}{x - a} + \dfrac{B}{(x - a)^2}
(x2+bx+c)(x^2 + bx + c) that cannot be factorisedAx+Bx2+bx+c\dfrac{Ax + B}{x^2 + bx + c}

Write one piece for each factor, put unknown letters on top, multiply both sides by the common denominator, and find the letters. A fast way for a single factor (x−a)(x - a): cover up that factor on the left, then put x=ax = a in what is left. This is the "cover-up" trick.

Find ∫5x+1(x−1)(x+2) dx\int \dfrac{5x + 1}{(x - 1)(x + 2)}\,dx. Write 5x+1(x−1)(x+2)=Ax−1+Bx+2\dfrac{5x + 1}{(x - 1)(x + 2)} = \dfrac{A}{x - 1} + \dfrac{B}{x + 2}. Cover up (x−1)(x - 1) and put x=1x = 1: A=5+11+2=2A = \dfrac{5 + 1}{1 + 2} = 2. Cover up (x+2)(x + 2) and put x=−2x = -2: B=−10+1−2−1=3B = \dfrac{-10 + 1}{-2 - 1} = 3. So the integral of 2x−1+3x+2\frac{2}{x - 1} + \frac{3}{x + 2} is

2ln⁡∣x−1∣+3ln⁡∣x+2∣+C.2\ln|x - 1| + 3\ln|x + 2| + C.

Find ∫3x+1(x−2)2 dx\int \dfrac{3x + 1}{(x - 2)^2}\,dx. Write 3x+1=3(x−2)+73x + 1 = 3(x - 2) + 7, so 3x+1(x−2)2=3x−2+7(x−2)2\dfrac{3x + 1}{(x - 2)^2} = \dfrac{3}{x - 2} + \dfrac{7}{(x - 2)^2}. Then, integrating each piece,

3ln⁡∣x−2∣−7x−2+C.3\ln|x - 2| - \frac{7}{x - 2} + C.

Find ∫x2+5(x−1)(x−2)(x+1) dx\int \dfrac{x^2 + 5}{(x - 1)(x - 2)(x + 1)}\,dx. Cover-up gives A=1+5(1−2)(1+1)=−3A = \dfrac{1 + 5}{(1 - 2)(1 + 1)} = -3, B=4+5(2−1)(2+1)=3B = \dfrac{4 + 5}{(2 - 1)(2 + 1)} = 3, C=1+5(−1−1)(−1−2)=1C = \dfrac{1 + 5}{(-1 - 1)(-1 - 2)} = 1. So the integral is

−3ln⁡∣x−1∣+3ln⁡∣x−2∣+ln⁡∣x+1∣+C.-3\ln|x - 1| + 3\ln|x - 2| + \ln|x + 1| + C.

Find ∫x2+2(x−1)2(x+2) dx\int \dfrac{x^2 + 2}{(x - 1)^2(x + 2)}\,dx. Write it as Ax−1+B(x−1)2+Cx+2\dfrac{A}{x - 1} + \dfrac{B}{(x - 1)^2} + \dfrac{C}{x + 2}. Cover-up for the repeated factor at x=1x = 1 gives B=33=1B = \dfrac{3}{3} = 1. Cover-up at x=−2x = -2 gives C=69=23C = \dfrac{6}{9} = \dfrac{2}{3}. Comparing the x2x^2 terms on both sides gives A+C=1A + C = 1, so A=13A = \dfrac{1}{3}. Then

∫=13ln⁡∣x−1∣−1x−1+23ln⁡∣x+2∣+C.\int = \frac{1}{3}\ln|x - 1| - \frac{1}{x - 1} + \frac{2}{3}\ln|x + 2| + C.

Find ∫dx(x−1)(x2+1)\int \dfrac{dx}{(x - 1)(x^2 + 1)}. The quadratic x2+1x^2 + 1 cannot be factorised, so write Ax−1+Bx+Cx2+1\dfrac{A}{x - 1} + \dfrac{Bx + C}{x^2 + 1}. Multiply out: 1=A(x2+1)+(Bx+C)(x−1)1 = A(x^2 + 1) + (Bx + C)(x - 1). Putting x=1x = 1 gives A=12A = \dfrac{1}{2}. Comparing x2x^2: A+B=0A + B = 0, so B=−12B = -\dfrac{1}{2}. Comparing constants: A−C=1A - C = 1, so C=−12C = -\dfrac{1}{2}. The integral is

12ln⁡∣x−1∣−14ln⁡(x2+1)−12tan⁡−1x+C.\frac{1}{2}\ln|x - 1| - \frac{1}{4}\ln(x^2 + 1) - \frac{1}{2}\tan^{-1}x + C.

Find ∫x3+2xx2−1 dx\int \dfrac{x^3 + 2x}{x^2 - 1}\,dx. The top has the bigger degree, so divide first: x3+2x=x(x2−1)+3xx^3 + 2x = x(x^2 - 1) + 3x. So the fraction is x+3x(x−1)(x+1)=x+3/2x−1+3/2x+1x + \dfrac{3x}{(x - 1)(x + 1)} = x + \dfrac{3/2}{x - 1} + \dfrac{3/2}{x + 1}, and the integral is

x22+32ln⁡∣x2−1∣+C.\frac{x^2}{2} + \frac{3}{2}\ln|x^2 - 1| + C.

Every splitting above was checked by computer at several values of xx (both sides equal), and every answer was checked by differentiating it.

Common mistakes: (1) trying to split an improper fraction before dividing; (2) writing Ax−a\frac{A}{x - a} only, instead of both Ax−a\frac{A}{x - a} and B(x−a)2\frac{B}{(x - a)^2}, for a repeated factor; (3) forgetting the absolute value in the logarithms.

EXERCISE 7.5

181 words · 1 min read
  1. Find ∫1(x+1)(x+3) dx\int \frac{1}{(x + 1)(x + 3)} \, dx.
  2. Find ∫3x+1(x−1)(x+3) dx\int \frac{3x + 1}{(x - 1)(x + 3)} \, dx.
  3. Find ∫x(x−1)2 dx\int \frac{x}{(x - 1)^2} \, dx. (Write x=(x−1)+1x = (x - 1) + 1.)
  4. Find ∫x2+1x(x−1)(x+1) dx\int \frac{x^2 + 1}{x(x - 1)(x + 1)} \, dx.
  5. Find ∫1x2(x+1) dx\int \frac{1}{x^2(x + 1)} \, dx.
  6. Find ∫2x+1(x+1)(x2+4) dx\int \frac{2x + 1}{(x + 1)(x^2 + 4)} \, dx.
  7. Find ∫x3x2+1 dx\int \frac{x^3}{x^2 + 1} \, dx. (Divide first.)
  8. Find ∫1x2−5x+6 dx\int \frac{1}{x^2 - 5x + 6} \, dx. (Factorise the bottom.)

Answers

  1. 12ln⁡∣x+1x+3∣+C\dfrac{1}{2}\ln\left|\dfrac{x + 1}{x + 3}\right| + C
  2. ln⁡∣x−1∣+2ln⁡∣x+3∣+C\ln|x - 1| + 2\ln|x + 3| + C
  3. ln⁡∣x−1∣−1x−1+C\ln|x - 1| - \dfrac{1}{x - 1} + C
  4. ln⁡∣x2−1x∣+C\ln\left|\dfrac{x^2 - 1}{x}\right| + C
  5. −ln⁡∣x∣−1x+ln⁡∣x+1∣+C-\ln|x| - \dfrac{1}{x} + \ln|x + 1| + C
  6. −15ln⁡∣x+1∣+110ln⁡(x2+4)+910tan⁡−1x2+C-\dfrac{1}{5}\ln|x + 1| + \dfrac{1}{10}\ln(x^2 + 4) + \dfrac{9}{10}\tan^{-1}\dfrac{x}{2} + C
  7. x22−12ln⁡(x2+1)+C\dfrac{x^2}{2} - \dfrac{1}{2}\ln(x^2 + 1) + C
  8. ln⁡∣x−3x−2∣+C\ln\left|\dfrac{x - 3}{x - 2}\right| + C

7.6 Integration by Parts

559 words · 3 min read

Substitution undoes the chain rule. Integration by parts undoes the product rule. The product rule says ddx(uv)=u v′+u′ v\dfrac{d}{dx}(uv) = u\,v' + u'\,v. Integrating both sides and rearranging gives

∫u v′ dx=u v−∫u′ v dx.\int u\,v'\,dx = u\,v - \int u'\,v\,dx.

This turns an integral you cannot do into a different one that is (hopefully) easier. Use it for products of two different kinds of function, such as x exx\,e^x or xsin⁡xx \sin x, and for functions like ln⁡x\ln x and tan⁡−1x\tan^{-1}x that you cannot integrate directly.

Choose uu as the factor that becomes simpler when you differentiate it. A memory aid, in order of priority, is ILATE:

  • Inverse trigonometric (tan⁡−1x\tan^{-1}x, sin⁡−1x\sin^{-1}x)
  • Logarithmic (ln⁡x\ln x)
  • Algebraic (xx, x2x^2)
  • Trigonometric (sin⁡x\sin x, cos⁡x\cos x)
  • Exponential (exe^x)

The factor that comes first in the list is uu. The rest, with dxdx, is v′ dxv'\,dx.

Find ∫x ex dx\int x\,e^x\,dx. Take u=xu = x (algebraic comes before exponential) and v′=exv' = e^x, so u′=1u' = 1 and v=exv = e^x. Then

∫x ex dx=x ex−∫ex dx=(x−1)ex+C.\int x\,e^x\,dx = x\,e^x - \int e^x\,dx = (x - 1)e^x + C.

∫xsin⁡x dx\int x\sin x\,dx: u=xu = x, v′=sin⁡xv' = \sin x, v=−cos⁡xv = -\cos x. So −xcos⁡x+∫cos⁡x dx=−xcos⁡x+sin⁡x+C-x\cos x + \int \cos x\,dx = -x\cos x + \sin x + C.

∫ln⁡x dx\int \ln x\,dx looks like it has no product. Write it as 1⋅ln⁡x1 \cdot \ln x. Take u=ln⁡xu = \ln x and v′=1v' = 1, so u′=1xu' = \frac{1}{x} and v=xv = x. Then xln⁡x−∫x⋅1x dx=xln⁡x−x+Cx\ln x - \int x \cdot \frac{1}{x}\,dx = x\ln x - x + C.

∫x2ex dx\int x^2 e^x\,dx: first, u=x2u = x^2 gives x2ex−∫2x ex dxx^2 e^x - \int 2x\,e^x\,dx. The remaining integral is Example 1 (times 22). So the answer is x2ex−2(x−1)ex+C=ex(x2−2x+2)+Cx^2 e^x - 2(x - 1)e^x + C = e^x(x^2 - 2x + 2) + C.

Find I=∫exsin⁡x dxI = \int e^x \sin x\,dx. Take u=sin⁡xu = \sin x, v′=exv' = e^x: I=exsin⁡x−∫excos⁡x dxI = e^x\sin x - \int e^x \cos x\,dx. Apply parts again to the new integral, with u=cos⁡xu = \cos x: ∫excos⁡x dx=excos⁡x+∫exsin⁡x dx=excos⁡x+I\int e^x\cos x\,dx = e^x\cos x + \int e^x\sin x\,dx = e^x \cos x + I. Put this back:

I=exsin⁡x−excos⁡x−I⟹2I=ex(sin⁡x−cos⁡x).I = e^x \sin x - e^x \cos x - I \quad \Longrightarrow \quad 2I = e^x(\sin x - \cos x).

So ∫exsin⁡x dx=ex(sin⁡x−cos⁡x)2+C\int e^x\sin x\,dx = \dfrac{e^x(\sin x - \cos x)}{2} + C. The trick is that the original integral appears again, and you solve for it like an equation.

∫tan⁡−1x dx\int \tan^{-1}x\,dx: write it as 1⋅tan⁡−1x1 \cdot \tan^{-1}x, take u=tan⁡−1xu = \tan^{-1}x, v′=1v' = 1. Then xtan⁡−1x−∫x1+x2 dx=xtan⁡−1x−12ln⁡(1+x2)+Cx\tan^{-1}x - \int \dfrac{x}{1 + x^2}\,dx = x\tan^{-1}x - \dfrac{1}{2}\ln(1 + x^2) + C.

∫xln⁡x dx\int x\ln x\,dx: u=ln⁡xu = \ln x (L before A), v′=xv' = x, so v=x22v = \frac{x^2}{2}. Then x22ln⁡x−∫x2 dx=x22ln⁡x−x24+C\frac{x^2}{2}\ln x - \int \frac{x}{2}\,dx = \dfrac{x^2}{2}\ln x - \dfrac{x^2}{4} + C.

Common mistake: choosing uu the wrong way round. For ∫x ex dx\int x\,e^x\,dx, taking u=exu = e^x and v′=xv' = x makes the new integral ∫x22ex dx\int \frac{x^2}{2}e^x\,dx, which is harder, not easier. If the new integral looks worse, swap the roles.

EXERCISE 7.6

128 words · 1 min read
  1. Find ∫xcos⁡x dx\int x\cos x \, dx.
  2. Find ∫x e2x dx\int x\,e^{2x} \, dx.
  3. Find ∫x2ln⁡x dx\int x^2\ln x \, dx.
  4. Find ∫xsin⁡2x dx\int x\sin 2x \, dx.
  5. Find ∫sin⁡−1x dx\int \sin^{-1}x \, dx.
  6. Find ∫x2cos⁡x dx\int x^2\cos x \, dx.
  7. Find ∫excos⁡x dx\int e^x\cos x \, dx. (The integral comes back.)
  8. Find ∫(ln⁡x)2 dx\int (\ln x)^2 \, dx. (Write it as 1⋅(ln⁡x)21 \cdot (\ln x)^2 and use parts twice.)

Answers

  1. xsin⁡x+cos⁡x+Cx \sin x + \cos x + C
  2. e2x(2x−1)4+C\dfrac{e^{2x}(2x - 1)}{4} + C
  3. x33ln⁡x−x39+C\dfrac{x^3}{3}\ln x - \dfrac{x^3}{9} + C
  4. −xcos⁡2x2+sin⁡2x4+C-\dfrac{x\cos 2x}{2} + \dfrac{\sin 2x}{4} + C
  5. xsin⁡−1x+1−x2+Cx \sin^{-1} x + \sqrt{1 - x^{2}} + C
  6. x2sin⁡x+2xcos⁡x−2sin⁡x+Cx^{2} \sin x + 2 x \cos x - 2 \sin x + C
  7. ex(cos⁡x+sin⁡x)2+C\dfrac{e^x(\cos x + \sin x)}{2} + C
  8. x(ln⁡x)2−2xln⁡x+2x+Cx(\ln x)^2 - 2x\ln x + 2x + C

7.6.2 Integrals of some more types

385 words · 2 min read

Sometimes an integrand has the form ex[f(x)+f′(x)]e^x\big[f(x) + f'(x)\big]: a function plus its own derivative, multiplied by exe^x. The product rule shows what to expect: ddx(exf(x))=exf(x)+exf′(x)\dfrac{d}{dx}\big(e^x f(x)\big) = e^x f(x) + e^x f'(x). So

∫ex[f(x)+f′(x)] dx=exf(x)+C.\int e^x\big[f(x) + f'(x)\big]\,dx = e^x f(x) + C.

  • ∫ex(sin⁡x+cos⁡x) dx=exsin⁡x+C\int e^x(\sin x + \cos x)\,dx = e^x \sin x + C, because cos⁡x\cos x is the derivative of sin⁡x\sin x (here f=sin⁡xf = \sin x).
  • ∫ex(1x−1x2)dx=exx+C\int e^x\left(\dfrac{1}{x} - \dfrac{1}{x^2}\right)dx = \dfrac{e^x}{x} + C, because −1x2-\frac{1}{x^2} is the derivative of 1x\frac{1}{x} (here f=1xf = \frac{1}{x}).
  • ∫ex(1+x) dx=x ex+C\int e^x(1 + x)\,dx = x\,e^x + C (here f=xf = x, f′=1f' = 1).
How to spot it: the bracket has two parts, and one is the derivative of the other. If you can match them, the answer is exe^x times the original one.

Three integrals of square roots are worth knowing. They are found by integration by parts, taking 1⋅⋯1 \cdot \sqrt{\cdots} as the product. In each, a>0a > 0.

IntegrandIntegral (add +C+C)
a2−x2\sqrt{a^2 - x^2}x2a2−x2+a22sin⁡−1xa\dfrac{x}{2}\sqrt{a^2 - x^2} + \dfrac{a^2}{2}\sin^{-1}\dfrac{x}{a}
x2+a2\sqrt{x^2 + a^2}x2x2+a2+a22ln⁡(x+x2+a2)\dfrac{x}{2}\sqrt{x^2 + a^2} + \dfrac{a^2}{2}\ln\left(x + \sqrt{x^2 + a^2}\right)
x2−a2\sqrt{x^2 - a^2}x2x2−a2−a22ln⁡∣x+x2−a2∣\dfrac{x}{2}\sqrt{x^2 - a^2} - \dfrac{a^2}{2}\ln\left|x + \sqrt{x^2 - a^2}\right|

Each formula was checked by differentiating it for a specific value of aa (that is 33, 22, 22 in turn).

Example. Find ∫x2+2x+5 dx\int \sqrt{x^2 + 2x + 5}\,dx. Complete the square: x2+2x+5=(x+1)2+22x^2 + 2x + 5 = (x + 1)^2 + 2^2. With u=x+1u = x + 1 and a=2a = 2, use the second formula:

x+12x2+2x+5+2ln⁡(x+1+x2+2x+5)+C.\frac{x + 1}{2}\sqrt{x^2 + 2x + 5} + 2\ln\left(x + 1 + \sqrt{x^2 + 2x + 5}\right) + C.

Geometric meaning. ∫−aaa2−x2 dx\int_{-a}^{a}\sqrt{a^2 - x^2}\,dx is the area of a half-disc of radius aa. You will see this in Section 7.8, and the formula above gives πa22\frac{\pi a^2}{2}, as expected.

EXERCISE 7.7

124 words · 1 min read
  1. Find ∫ex(cos⁡x−sin⁡x) dx\int e^x(\cos x - \sin x) \, dx.
  2. Find ∫ex(x2+2x) dx\int e^x(x^2 + 2x) \, dx.
  3. Find ∫ex(1x+ln⁡x) dx\int e^x\left(\frac{1}{x} + \ln x\right) \, dx.
  4. Find ∫ex x−1x2 dx\int e^x\,\frac{x - 1}{x^2} \, dx.
  5. Find ∫16−x2 dx\int \sqrt{16 - x^2} \, dx.
  6. Find ∫x2+9 dx\int \sqrt{x^2 + 9} \, dx.
  7. Find ∫x2−9 dx\int \sqrt{x^2 - 9} \, dx.

Answers

  1. excos⁡x+Ce^{x} \cos x + C
  2. x2ex+Cx^{2} e^{x} + C
  3. exln⁡x+Ce^{x} \ln x + C
  4. exx+C\dfrac{e^x}{x} + C
  5. x216−x2+8sin⁡−1x4+C\dfrac{x}{2}\sqrt{16 - x^2} + 8\sin^{-1}\dfrac{x}{4} + C
  6. x2x2+9+92ln⁡(x+x2+9)+C\dfrac{x}{2}\sqrt{x^2 + 9} + \dfrac{9}{2}\ln\left(x + \sqrt{x^2 + 9}\right) + C
  7. x2x2−9−92ln⁡∣x+x2−9∣+C\dfrac{x}{2}\sqrt{x^2 - 9} - \dfrac{9}{2}\ln\left|x + \sqrt{x^2 - 9}\right| + C

7.7 Definite Integral

501 words · 2 min read

So far, an integral gave a function, with a +C+C. A definite integral gives a number. It is written ∫abf(x) dx\int_a^b f(x)\,dx and means the total amount of ff collected as xx moves from aa to bb. The numbers aa and bb are the limits of integration.

When f(x)≥0f(x) \ge 0, this total is the area between the graph of ff, the xx-axis, and the lines x=ax = a and x=bx = b. How can we calculate such an area when the top edge is curved? We trap it between rectangles.

Let us find the area under y=x2y = x^2 from x=0x = 0 to x=2x = 2. Cut [0,2][0, 2] into nn equal strips of width h=2nh = \frac{2}{n}. On each strip draw a rectangle whose height is the value of x2x^2 at the left end (a left sum), or at the right end (a right sum). The picture shows 88 strips with left-end heights.

Eight left-end rectangles under y = x². Their total area is smaller than the true area, because each one sits below the curve.

With more strips the rectangles fit the curve better. Here are the totals (computed by computer):

Strips nnLeft sumRight sumMiddle sum
441.751.753.753.752.6252.625
10102.282.283.083.082.662.66
1001002.62682.62682.70682.70682.66662.6666
100010002.66272.66272.67072.67072.66672.6667

The left sums rise and the right sums fall, and both squeeze towards the same number, 83≈2.6667\frac{8}{3} \approx 2.6667. That number is the exact area. In general, the definite integral is defined as this limit:

∫abf(x) dx=lim⁡n→∞∑i=1nf(xi) h,h=b−an.\int_a^b f(x)\,dx = \lim_{n \to \infty} \sum_{i=1}^{n} f(x_i)\,h, \qquad h = \frac{b - a}{n}.

The sum sign ∑\sum means "add up", and the integral sign ∫\int is a stretched "S" for "sum". So ∫02x2 dx=83\int_0^2 x^2\,dx = \frac{8}{3}.

If ff is negative, the rectangles have negative height, so that part counts as negative area. The picture shows y=sin⁡xy = \sin x from 00 to 2π2\pi. The hump above the axis has area 22. The hump below has "area" −2-2. They cancel, so ∫02πsin⁡x dx=0\int_0^{2\pi}\sin x\,dx = 0.

The teal hump counts as +2 and the orange hump as −2, so the integral over the full period is 0.
Common mistake: treating a definite integral as always "the area". It equals the area only when f≥0f \ge 0. To find the total (unsigned) area of a graph that crosses the axis, split the interval at each crossing and add the absolute values.

7.8 Fundamental Theorem of Calculus

51 words · 1 min read

Adding up thousands of strips is slow. Fortunately two theorems turn the whole job into one subtraction. They are so important that they are called fundamental. The first says that the accumulated area is an antiderivative. The second uses that fact to calculate any definite integral.

7.8.1 Area function

238 words · 1 min read

Fix a starting point aa and let the right-hand end move. The area collected from aa up to a variable point xx is a function of xx. It is called the area function:

A(x)=∫axf(t) dt.A(x) = \int_a^x f(t)\,dt.

(We use the letter tt inside, so that xx is free to be the upper limit.) As xx moves to the right, A(x)A(x) grows by the strip of area that is added.

Example. Let f(t)=2t+1f(t) = 2t + 1 and a=0a = 0. The region under this line from 00 to xx is a trapezoid, with area 12(1+(2x+1))x=x2+x\frac{1}{2}\big(1 + (2x + 1)\big)x = x^2 + x. So A(x)=x2+xA(x) = x^2 + x. The computer confirmed this by integrating numerically:

xx11223344
A(x)=x2+xA(x) = x^2 + x226612122020
A(2) is the shaded area under y = 2t + 1 from 0 to 2. It equals 2² + 2 = 6.

Now look at the derivative of the area function: A′(x)=2x+1A'(x) = 2x + 1. That is exactly f(x)f(x), the height of the line at xx. This is not an accident. It is the First Fundamental Theorem.

7.8.2 First fundamental theorem of integral calculus

248 words · 1 min read

Theorem. If ff is continuous on [a,b][a, b], then the area function A(x)=∫axf(t) dtA(x) = \int_a^x f(t)\,dt is differentiable, and

A′(x)=f(x).A'(x) = f(x).

In words: the rate at which the area grows is the height of the graph. If the graph is high at xx, the area grows fast there. If the graph is at height zero, the area does not grow.

Why it is true. Move the right end from xx to x+hx + h. The area added is a thin strip of width hh and height about f(x)f(x), so A(x+h)−A(x)≈f(x) hA(x + h) - A(x) \approx f(x)\,h. Divide by hh and let h→0h \to 0: A(x+h)−A(x)h→f(x)\dfrac{A(x + h) - A(x)}{h} \to f(x).

Consequence. Every continuous function ff has an antiderivative, namely its area function. This is the link between the two meanings of "integral".

  • ddx∫1xt2 dt=x2\dfrac{d}{dx}\displaystyle\int_1^x t^2\,dt = x^2. You do not need to integrate first. (If you do: the integral is x33−13\frac{x^3}{3} - \frac{1}{3}, whose derivative is x2x^2.)
  • If the upper limit is a function of xx, use the chain rule: ddx∫0x2cos⁡t dt=cos⁡(x2)⋅2x\dfrac{d}{dx}\displaystyle\int_0^{x^2}\cos t\,dt = \cos(x^2)\cdot 2x. As a check, ∫0x2cos⁡t dt=sin⁡(x2)\int_0^{x^2}\cos t\,dt = \sin(x^2), whose derivative is 2xcos⁡(x2)2x\cos(x^2). The computer confirmed ∫04cos⁡t dt=sin⁡4\int_0^4 \cos t\,dt = \sin 4.
Common mistake: forgetting the chain-rule factor when the limit is not just xx. Differentiating ∫0x2cos⁡t dt\int_0^{x^2} \cos t\,dt gives 2xcos⁡(x2)2x\cos(x^2), not cos⁡(x2)\cos(x^2).

7.8.3 Second fundamental theorem of integral calculus

401 words · 2 min read

Theorem. Let ff be continuous on [a,b][a, b], and let FF be any antiderivative of ff. Then

∫abf(x) dx=F(b)−F(a).\int_a^b f(x)\,dx = F(b) - F(a).

This turns the limit of sums into a subtraction. We write the subtraction as [F(x)]ab\Big[F(x)\Big]_a^b, which means "put in bb, put in aa, subtract".

Why it is true. The area function A(x)=∫axf(t) dtA(x) = \int_a^x f(t)\,dt is one antiderivative. Any other antiderivative FF differs from it by a constant: F(x)=A(x)+CF(x) = A(x) + C. Then F(b)−F(a)=(A(b)+C)−(A(a)+C)=A(b)−A(a)=A(b)−0F(b) - F(a) = \big(A(b) + C\big) - \big(A(a) + C\big) = A(b) - A(a) = A(b) - 0. The constant CC cancels. That is why you never need +C+C in a definite integral.

  1. Find an antiderivative FF (any one, take C=0C = 0).
  2. Calculate F(b)−F(a)F(b) - F(a).
  3. Write the answer as a number.

  • ∫13x2 dx=[x33]13=9−13=263\displaystyle\int_1^3 x^2\,dx = \left[\dfrac{x^3}{3}\right]_1^3 = 9 - \dfrac{1}{3} = \dfrac{26}{3}.
  • ∫0πsin⁡x dx=[−cos⁡x]0π=1−(−1)=2\displaystyle\int_0^{\pi}\sin x\,dx = \Big[-\cos x\Big]_0^{\pi} = 1 - (-1) = 2. This is the area of one hump of the sine wave.
  • ∫1edxx=[ln⁡x]1e=1−0=1\displaystyle\int_1^{e}\dfrac{dx}{x} = \Big[\ln x\Big]_1^{e} = 1 - 0 = 1.
  • ∫01dx1+x2=[tan⁡−1x]01=π4−0=π4\displaystyle\int_0^1\dfrac{dx}{1 + x^2} = \Big[\tan^{-1}x\Big]_0^1 = \dfrac{\pi}{4} - 0 = \dfrac{\pi}{4}.
  • ∫14x dx=[23x3/2]14=163−23=143\displaystyle\int_1^4\sqrt{x}\,dx = \left[\dfrac{2}{3}x^{3/2}\right]_1^4 = \dfrac{16}{3} - \dfrac{2}{3} = \dfrac{14}{3}.
  • A half-disc. By the formula from Section 7.6.2, ∫−339−x2 dx=[x29−x2+92sin⁡−1x3]−33=9π4−(−9π4)=9π2\displaystyle\int_{-3}^{3}\sqrt{9 - x^2}\,dx = \left[\dfrac{x}{2}\sqrt{9 - x^2} + \dfrac{9}{2}\sin^{-1}\dfrac{x}{3}\right]_{-3}^{3} = \dfrac{9\pi}{4} - \left(-\dfrac{9\pi}{4}\right) = \dfrac{9\pi}{2}. This is the area of a half-disc of radius 33.

Each of these six values was also checked by integrating numerically (adding thousands of thin strips), and they agree: 8.66678.6667, 22, 11, 0.78540.7854, 14.137214.1372, 4.66674.6667.

The theorem needs a continuous function. Try ∫−11dxx2\int_{-1}^{1}\frac{dx}{x^2} with F(x)=−1xF(x) = -\frac{1}{x}. Then F(1)−F(−1)=−1−1=−2F(1) - F(-1) = -1 - 1 = -2. But 1x2\frac{1}{x^2} is always positive (for example it equals 44 at x=0.5x = 0.5), so its integral cannot be negative. The mistake: 1x2\frac{1}{x^2} is not defined at x=0x = 0, so it is not continuous on [−1,1][-1, 1].
In simple words: to find the total change, you do not have to add up every tiny piece. You only need the antiderivative at the two end points.

EXERCISE 7.8

134 words · 1 min read
  1. Evaluate ∫023x2+1 dx\int_{0}^{2} 3 x^{2} + 1 \, dx.
  2. Evaluate ∫14x+1x dx\int_{1}^{4} x + \dfrac{1}{\sqrt{x}} \, dx.
  3. Evaluate ∫0π4sec⁡2x dx\int_{0}^{\frac{\pi}{4}} \sec^2 x \, dx.
  4. Evaluate ∫01e2x dx\int_{0}^{1} e^{2 x} \, dx.
  5. Evaluate ∫121x2 dx\int_{1}^{2} \frac{1}{x^{2}} \, dx.
  6. Evaluate ∫01211−x2 dx\int_{0}^{\frac{1}{2}} \frac{1}{\sqrt{1 - x^{2}}} \, dx.
  7. Evaluate ∫23xx2−1 dx\int_{2}^{3} \frac{x}{x^{2} - 1} \, dx. (Use u=x2−1u = x^2 - 1 or partial fractions.)
  8. Evaluate ∫039−x2 dx\int_{0}^{3} \sqrt{9 - x^2} \, dx. (A quarter-disc of radius 33. Use the formula from 7.6.2.)
  9. Evaluate ∫01x ex dx\int_{0}^{1} x\,e^x \, dx. (Integrate by parts.)
  10. Evaluate ∫1eln⁡x dx\int_{1}^{e} \ln x \, dx. (Integrate by parts.)

Answers

  1. 10≈1010 \approx 10
  2. 192≈9.5\dfrac{19}{2} \approx 9.5
  3. 1≈11 \approx 1
  4. e2−12≈3.1945\dfrac{e^2 - 1}{2} \approx 3.1945
  5. 12≈0.5\dfrac{1}{2} \approx 0.5
  6. π6≈0.5236\dfrac{\pi}{6} \approx 0.5236
  7. 12ln⁡83≈0.4904\dfrac{1}{2}\ln\dfrac{8}{3} \approx 0.4904
  8. 9π4≈7.0686\dfrac{9\pi}{4} \approx 7.0686
  9. 1≈11 \approx 1
  10. 1≈11 \approx 1

7.9 Evaluation of Definite Integrals by Substitution

348 words · 2 min read

Substitution works for definite integrals too, with one extra step that saves work: change the limits as you change the variable. Then you never have to go back to xx.

The steps:

  1. Choose u=g(x)u = g(x) and find dudu, as before.
  2. Change the limits: when x=ax = a, u=g(a)u = g(a). When x=bx = b, u=g(b)u = g(b).
  3. Rewrite the integral in terms of uu, with the new limits.
  4. Integrate and subtract: F(new upper)−F(new lower)F(\text{new upper}) - F(\text{new lower}).

Find ∫012x (x2+1)3 dx\displaystyle\int_0^1 2x\,(x^2 + 1)^3\,dx. Let u=x2+1u = x^2 + 1, so du=2x dxdu = 2x\,dx. When x=0x = 0, u=1u = 1. When x=1x = 1, u=2u = 2. So

∫12u3 du=[u44]12=164−14=154.\int_1^2 u^3\,du = \left[\frac{u^4}{4}\right]_1^2 = \frac{16}{4} - \frac{1}{4} = \frac{15}{4}.

Find ∫0π/2sin⁡xcos⁡3x dx\displaystyle\int_0^{\pi/2}\sin x\cos^3 x\,dx. Let u=cos⁡xu = \cos x, so du=−sin⁡x dxdu = -\sin x\,dx. At x=0x = 0, u=1u = 1. At x=π2x = \frac{\pi}{2}, u=0u = 0. The integral becomes −∫10u3 du=∫01u3 du=14-\int_1^0 u^3\,du = \int_0^1 u^3\,du = \dfrac{1}{4}. (Swapping the limits changes the sign, so the minus sign disappears.)

Find ∫01x1+x2 dx\displaystyle\int_0^1\dfrac{x}{1 + x^2}\,dx. Let u=1+x2u = 1 + x^2, so x dx=du2x\,dx = \frac{du}{2}. Limits: uu goes from 11 to 22. So 12∫12duu=12ln⁡2\frac{1}{2}\int_1^2\frac{du}{u} = \frac{1}{2}\ln 2.

Find ∫04dx1+x\displaystyle\int_0^4\dfrac{dx}{1 + \sqrt{x}}. Let u=xu = \sqrt{x}, so x=u2x = u^2 and dx=2u dudx = 2u\,du. Limits: uu goes from 00 to 22. Then ∫022u1+u du=2∫02(1−11+u)du=2[u−ln⁡(1+u)]02=4−2ln⁡3\int_0^2\dfrac{2u}{1 + u}\,du = 2\int_0^2\left(1 - \dfrac{1}{1 + u}\right)du = 2\Big[u - \ln(1 + u)\Big]_0^2 = 4 - 2\ln 3.

All four answers were checked numerically, both in the original form and in the new form with the new limits.

Common mistake: changing the variable but keeping the old limits. If you write ∫01u3 du\int_0^1 u^3\,du for Example 1, you get 14\frac{1}{4}, which is wrong. The limits must belong to the new variable.

EXERCISE 7.9

139 words · 1 min read
  1. Evaluate ∫01x(x2+4)3 dx\int_{0}^{1} x(x^2 + 4)^3 \, dx. (u=x2+4u = x^2 + 4)
  2. Evaluate ∫0π2cos⁡xsin⁡2x dx\int_{0}^{\frac{\pi}{2}} \cos x \sin^2 x \, dx. (u=sin⁡xu = \sin x)
  3. Evaluate ∫01ex1+ex dx\int_{0}^{1} \dfrac{e^x}{1 + e^x} \, dx. (u=1+exu = 1 + e^x)
  4. Evaluate ∫03xx+1 dx\int_{0}^{3} x\sqrt{x + 1} \, dx. (u=x+1u = x + 1)
  5. Evaluate ∫ee21xln⁡x dx\int_{e}^{e^2} \dfrac{1}{x\ln x} \, dx. (u=ln⁡xu = \ln x)
  6. Evaluate ∫0π2sin⁡2x1+cos⁡2x dx\int_{0}^{\frac{\pi}{2}} \dfrac{\sin 2x}{1 + \cos^2 x} \, dx. (u=1+cos⁡2xu = 1 + \cos^2 x; note sin⁡2x=2sin⁡xcos⁡x\sin 2x = 2\sin x\cos x)
  7. Evaluate ∫02x21+x3 dx\int_{0}^{2} x^2\sqrt{1 + x^3} \, dx. (u=1+x3u = 1 + x^3)
  8. Evaluate ∫0111+e−x dx\int_{0}^{1} \dfrac{1}{1 + e^{-x}} \, dx. (Multiply top and bottom by exe^x.)

Answers

  1. 3698≈46.125\dfrac{369}{8} \approx 46.125
  2. 13≈0.3333\dfrac{1}{3} \approx 0.3333
  3. ln⁡1+e2≈0.6201\ln\dfrac{1 + e}{2} \approx 0.6201
  4. 11615≈7.7333\dfrac{116}{15} \approx 7.7333
  5. ln⁡2≈0.6931\ln 2 \approx 0.6931
  6. ln⁡2≈0.6931\ln 2 \approx 0.6931
  7. 529≈5.7778\dfrac{52}{9} \approx 5.7778
  8. ln⁡1+e2≈0.6201\ln\dfrac{1 + e}{2} \approx 0.6201

7.10 Some Properties of Definite Integrals

499 words · 2 min read

These rules make many definite integrals easy, sometimes without finding an antiderivative at all. Each rule was checked on an example by computer.

  • The letter does not matter. ∫abf(x) dx=∫abf(t) dt\int_a^b f(x)\,dx = \int_a^b f(t)\,dt. The variable inside is a dummy.
  • Reversing the limits flips the sign. ∫abf(x) dx=−∫baf(x) dx\int_a^b f(x)\,dx = -\int_b^a f(x)\,dx. Example: ∫03x2 dx=9\int_0^3 x^2\,dx = 9, and ∫30x2 dx=−9\int_3^0 x^2\,dx = -9. Also ∫aaf(x) dx=0\int_a^a f(x)\,dx = 0.
  • Splitting. For any cc, ∫abf(x) dx=∫acf(x) dx+∫cbf(x) dx\int_a^b f(x)\,dx = \int_a^c f(x)\,dx + \int_c^b f(x)\,dx. Example: ∫03x2 dx=13+263=9\int_0^3 x^2\,dx = \frac{1}{3} + \frac{26}{3} = 9 (split at c=1c = 1). The point cc may even lie outside [a,b][a, b]. This is how you integrate a function defined in pieces.
  • Linearity. ∫ab(k f+m g) dx=k∫abf dx+m∫abg dx\int_a^b\big(k\,f + m\,g\big)\,dx = k\int_a^b f\,dx + m\int_a^b g\,dx.

Rule A. ∫abf(x) dx=∫abf(a+b−x) dx\displaystyle\int_a^b f(x)\,dx = \int_a^b f(a + b - x)\,dx. This reflects the graph left to right across the middle of [a,b][a, b]. The area does not change. Example: on [1,3][1, 3], f(x)=xf(x) = x becomes f(4−x)=4−xf(4 - x) = 4 - x. Both integrals equal 44.

Rule B. The special case a=0a = 0: ∫0af(x) dx=∫0af(a−x) dx\displaystyle\int_0^a f(x)\,dx = \int_0^a f(a - x)\,dx.

Find I=∫0π/2sin⁡xsin⁡x+cos⁡x dxI = \displaystyle\int_0^{\pi/2}\dfrac{\sin x}{\sin x + \cos x}\,dx. There is no easy antiderivative. Use Rule B with a=π2a = \frac{\pi}{2}: replacing xx by π2−x\frac{\pi}{2} - x swaps sine and cosine, so I=∫0π/2cos⁡xsin⁡x+cos⁡x dxI = \displaystyle\int_0^{\pi/2}\dfrac{\cos x}{\sin x + \cos x}\,dx. Add the two forms:

2I=∫0π/2sin⁡x+cos⁡xsin⁡x+cos⁡x dx=∫0π/21 dx=π2.2I = \int_0^{\pi/2}\frac{\sin x + \cos x}{\sin x + \cos x}\,dx = \int_0^{\pi/2}1\,dx = \frac{\pi}{2}.

So I=π4≈0.7854I = \dfrac{\pi}{4} \approx 0.7854. The computer confirms both ∫0π/2sin⁡xsin⁡x+cos⁡x dx\int_0^{\pi/2}\frac{\sin x}{\sin x + \cos x}\,dx and the cosine version give 0.78540.7854.

Rule C. For ∫02a\int_0^{2a}: ∫02af(x) dx=2∫0af(x) dx\displaystyle\int_0^{2a} f(x)\,dx = 2\int_0^{a} f(x)\,dx if f(2a−x)=f(x)f(2a - x) = f(x), and =0= 0 if f(2a−x)=−f(x)f(2a - x) = -f(x). Example with a=πa = \pi: sin⁡2(2π−x)=sin⁡2x\sin^2(2\pi - x) = \sin^2 x, so ∫02πsin⁡2x dx=2∫0πsin⁡2x dx=2⋅π2=3.1416\int_0^{2\pi}\sin^2 x\,dx = 2\int_0^{\pi}\sin^2 x\,dx = 2\cdot\frac{\pi}{2} = 3.1416. And sin⁡(2π−x)=−sin⁡x\sin(2\pi - x) = -\sin x, so ∫02πsin⁡x dx=0\int_0^{2\pi}\sin x\,dx = 0.

Rule D (even and odd). An even function has f(−x)=f(x)f(-x) = f(x) (its graph is symmetric about the vertical axis). An odd function has f(−x)=−f(x)f(-x) = -f(x). Then

  • even: ∫−aaf(x) dx=2∫0af(x) dx\displaystyle\int_{-a}^{a} f(x)\,dx = 2\int_0^{a} f(x)\,dx. Example: ∫−22x2 dx=163=2⋅83\int_{-2}^{2}x^2\,dx = \frac{16}{3} = 2 \cdot \frac{8}{3}.
  • odd: ∫−aaf(x) dx=0\displaystyle\int_{-a}^{a} f(x)\,dx = 0. The left half cancels the right half. Example: ∫−22x3 dx=0\int_{-2}^{2}x^3\,dx = 0.
How to use the symmetry rules: before you integrate over [−a,a][-a, a], ask "is it even or odd?" An odd function gives 00 at once, with no calculation.
Common mistake: using the even/odd rule when the limits are not symmetric (−a-a to aa), or when the function is neither even nor odd, such as x2+xx^2 + x.

EXERCISE 7.10

122 words · 1 min read
  1. Evaluate ∫−11x5cos⁡x dx\int_{-1}^{1} x^5\cos x \, dx. (Is it even or odd?)
  2. Evaluate ∫0π2cos⁡xsin⁡x+cos⁡x dx\int_{0}^{\frac{\pi}{2}} \dfrac{\cos x}{\sin x + \cos x} \, dx. (Use Rule B and add.)
  3. Evaluate ∫−π2π2sin⁡2x dx\int_{-\frac{\pi}{2}}^{\frac{\pi}{2}} \sin^2 x \, dx. (Even function.)
  4. Evaluate ∫01x(1−x)5 dx\int_{0}^{1} x(1 - x)^5 \, dx. (Use Rule B: replace xx by 1−x1 - x.)
  5. Evaluate ∫14xx+5−x dx\int_{1}^{4} \dfrac{\sqrt{x}}{\sqrt{x} + \sqrt{5 - x}} \, dx. (Use Rule A, then add the two forms.)
  6. Evaluate ∫−22∣x∣ dx\int_{-2}^{2} |x| \, dx. (Even function. Or split at 00.)
  7. Evaluate ∫02πcos⁡3x dx\int_{0}^{2\pi} \cos^3 x \, dx. (Compare cos⁡3(2π−x)\cos^3(2\pi - x) with cos⁡3x\cos^3 x.)
  8. Evaluate ∫−ππx2sin⁡x dx\int_{-\pi}^{\pi} x^2 \sin x \, dx. (Odd function.)

Answers

  1. 0≈00 \approx 0
  2. π4≈0.7854\dfrac{\pi}{4} \approx 0.7854
  3. π2≈1.5708\dfrac{\pi}{2} \approx 1.5708
  4. 142≈0.0238\dfrac{1}{42} \approx 0.0238
  5. 32≈1.5\dfrac{3}{2} \approx 1.5
  6. 4≈44 \approx 4
  7. 0≈00 \approx 0
  8. 0≈00 \approx 0

Miscellaneous Examples

316 words · 1 min read

Find ∫dxex+e−x\displaystyle\int\dfrac{dx}{e^x + e^{-x}}. Multiply top and bottom by exe^x to get exe2x+1\dfrac{e^x}{e^{2x} + 1}. Let u=exu = e^x, so du=ex dxdu = e^x\,dx. The integral becomes ∫duu2+1=tan⁡−1u+C=tan⁡−1(ex)+C\displaystyle\int\dfrac{du}{u^2 + 1} = \tan^{-1}u + C = \tan^{-1}(e^x) + C.

Find ∫sin⁡x1+cos⁡2x dx\displaystyle\int\dfrac{\sin x}{1 + \cos^2 x}\,dx. Let u=cos⁡xu = \cos x, so du=−sin⁡x dxdu = -\sin x\,dx. Then −∫du1+u2=−tan⁡−1(cos⁡x)+C-\displaystyle\int\dfrac{du}{1 + u^2} = -\tan^{-1}(\cos x) + C.

Find ∫dxx(x2+1)\displaystyle\int\dfrac{dx}{x(x^2 + 1)}. Split: 1x(x2+1)=1x−xx2+1\dfrac{1}{x(x^2 + 1)} = \dfrac{1}{x} - \dfrac{x}{x^2 + 1}. So the integral is ln⁡∣x∣−12ln⁡(x2+1)+C\ln|x| - \dfrac{1}{2}\ln(x^2 + 1) + C.

Find ∫0πxsin⁡x dx\displaystyle\int_0^{\pi} x\sin x\,dx. By parts, an antiderivative is −xcos⁡x+sin⁡x-x\cos x + \sin x. Then [−xcos⁡x+sin⁡x]0π=(π+0)−(0+0)=π\Big[-x\cos x + \sin x\Big]_0^{\pi} = (\pi + 0) - (0 + 0) = \pi.

A tank takes in water at the rate q(t)=12t−3t2q(t) = 12t - 3t^2 litres per minute for 0≤t≤40 \le t \le 4. How much water enters in these 44 minutes? The total is ∫04(12t−3t2) dt=[6t2−t3]04=96−64=32\displaystyle\int_0^4(12t - 3t^2)\,dt = \Big[6t^2 - t^3\Big]_0^4 = 96 - 64 = 32 litres.

Find ∫−11(x4+x3) dx\displaystyle\int_{-1}^{1}(x^4 + x^3)\,dx. The term x3x^3 is odd, so it contributes 00. The term x4x^4 is even, so it gives 2∫01x4 dx=2⋅15=252\displaystyle\int_0^1 x^4\,dx = 2 \cdot \dfrac{1}{5} = \dfrac{2}{5}.

Find ∫01tan⁡−1x dx\displaystyle\int_0^1\tan^{-1}x\,dx. From Example 6 of Section 7.6, an antiderivative is xtan⁡−1x−12ln⁡(1+x2)x\tan^{-1}x - \dfrac{1}{2}\ln(1 + x^2). Then the value is (π4−12ln⁡2)−0≈0.4388\left(\dfrac{\pi}{4} - \dfrac{1}{2}\ln 2\right) - 0 \approx 0.4388.

Miscellaneous Exercise on Chapter 7

157 words · 1 min read
  1. Find ∫xx4+1 dx\int \frac{x}{x^4 + 1} \, dx. (u=x2u = x^2)
  2. Find ∫ex 1+sin⁡x1+cos⁡x dx\int e^x\,\frac{1 + \sin x}{1 + \cos x} \, dx. (Show that the fraction equals tan⁡x2+12sec⁡2x2\tan\frac{x}{2} + \frac{1}{2}\sec^2\frac{x}{2}, then use ex[f+f′]e^x[f + f'].)
  3. Find ∫x2ex3 dx\int x^2 e^{x^3} \, dx. (u=x3u = x^3)
  4. Find ∫11+cos⁡x dx\int \frac{1}{1 + \cos x} \, dx. (1+cos⁡x=2cos⁡2x21 + \cos x = 2\cos^2\frac{x}{2})
  5. Find ∫xsin⁡xcos⁡x dx\int x\sin x\cos x \, dx. (Use sin⁡xcos⁡x=12sin⁡2x\sin x\cos x = \frac{1}{2}\sin 2x, then parts.)
  6. Evaluate ∫0π4tan⁡x dx\int_{0}^{\frac{\pi}{4}} \tan x \, dx.
  7. Evaluate ∫01x1−x2 dx\int_{0}^{1} x\sqrt{1 - x^2} \, dx. (u=1−x2u = 1 - x^2)
  8. Evaluate ∫02∣x−1∣ dx\int_{0}^{2} |x - 1| \, dx. (Split at x=1x = 1: the graph is a V.)

Answers

  1. 12tan⁡−1(x2)+C\dfrac{1}{2}\tan^{-1}(x^2) + C
  2. extan⁡x2+Ce^x\tan\dfrac{x}{2} + C
  3. ex33+C\dfrac{e^{x^3}}{3} + C
  4. tan⁡x2+C\tan\dfrac{x}{2} + C
  5. −xcos⁡2x4+sin⁡2x8+C-\dfrac{x\cos 2x}{4} + \dfrac{\sin 2x}{8} + C
  6. 12ln⁡2≈0.3466\dfrac{1}{2}\ln 2 \approx 0.3466
  7. 13≈0.3333\dfrac{1}{3} \approx 0.3333
  8. 1≈11 \approx 1

Summary

214 words · 1 min read
  • Antiderivative. FF is an antiderivative of ff if F′=fF' = f. The indefinite integral is ∫f(x) dx=F(x)+C\int f(x)\,dx = F(x) + C. Always check by differentiating.
  • Linearity. ∫(af+bg) dx=a∫f dx+b∫g dx\int(af + bg)\,dx = a\int f\,dx + b\int g\,dx. The integral of a product is not the product of integrals.
  • Substitution. Let u=g(x)u = g(x), du=g′(x) dxdu = g'(x)\,dx. For a definite integral, change the limits too. A shortcut: ∫f(ax+b) dx=1aF(ax+b)+C\int f(ax + b)\,dx = \frac{1}{a}F(ax + b) + C.
  • Trigonometric identities turn products and squares of sine and cosine into sums.
  • Partial fractions split a proper rational function into simple fractions. Divide first if it is not proper.
  • By parts: ∫u v′ dx=uv−∫u′v dx\int u\,v'\,dx = uv - \int u'v\,dx. Choose uu by ILATE. Also ∫ex[f+f′] dx=exf+C\int e^x[f + f']\,dx = e^x f + C.
  • Definite integral. ∫abf(x) dx\int_a^b f(x)\,dx is the limit of Riemann sums. It is a signed area.
  • First Fundamental Theorem. If A(x)=∫axf(t) dtA(x) = \int_a^x f(t)\,dt, then A′(x)=f(x)A'(x) = f(x).
  • Second Fundamental Theorem. ∫abf(x) dx=F(b)−F(a)\int_a^b f(x)\,dx = F(b) - F(a) for any antiderivative FF of a continuous ff.
  • Properties. Reverse limits flips the sign. Split at any point. ∫abf(x) dx=∫abf(a+b−x) dx\int_a^b f(x)\,dx = \int_a^b f(a + b - x)\,dx. For even ff: ∫−aaf=2∫0af\int_{-a}^a f = 2\int_0^a f. For odd ff: ∫−aaf=0\int_{-a}^a f = 0.

Summary: partial fractions

145 words · 1 min read

FractionSplit into
px+q(x−a)(x−b)\dfrac{px + q}{(x - a)(x - b)}Ax−a+Bx−b\dfrac{A}{x - a} + \dfrac{B}{x - b}
px+q(x−a)2\dfrac{px + q}{(x - a)^2}Ax−a+B(x−a)2\dfrac{A}{x - a} + \dfrac{B}{(x - a)^2}
px2+qx+r(x−a)(x−b)(x−c)\dfrac{px^2 + qx + r}{(x - a)(x - b)(x - c)}Ax−a+Bx−b+Cx−c\dfrac{A}{x - a} + \dfrac{B}{x - b} + \dfrac{C}{x - c}
px2+qx+r(x−a)2(x−b)\dfrac{px^2 + qx + r}{(x - a)^2(x - b)}Ax−a+B(x−a)2+Cx−b\dfrac{A}{x - a} + \dfrac{B}{(x - a)^2} + \dfrac{C}{x - b}
px2+qx+r(x−a)(x2+bx+c)\dfrac{px^2 + qx + r}{(x - a)(x^2 + bx + c)}Ax−a+Bx+Cx2+bx+c\dfrac{A}{x - a} + \dfrac{Bx + C}{x^2 + bx + c}
Remember: the top must have a smaller degree than the bottom. If not, divide first.

Summary: integration by substitution

70 words · 1 min read
If the integrand contains ...try $u = $
f(ax+b)f(ax + b)ax+bax + b
(expression)n(\text{expression})^n and the derivative of the expressionthe expression
f′(x)f(x)\dfrac{f'(x)}{f(x)}f(x)f(x) (answer: ln⁡∣f(x)∣\ln|f(x)|)
eg(x) g′(x)e^{g(x)}\,g'(x)g(x)g(x)
x\sqrt{x} or ax+bn\sqrt[n]{ax + b}the root

Rewrite with only uu and dudu, integrate, then replace uu. For definite integrals, change the limits instead.

Summary: integrals of some special functions

105 words · 1 min read
IntegrandIntegral (add +C+C)
1x2−a2\dfrac{1}{x^2 - a^2}12aln⁡∣x−ax+a∣\dfrac{1}{2a}\ln\left|\dfrac{x - a}{x + a}\right|
1a2−x2\dfrac{1}{a^2 - x^2}12aln⁡∣a+xa−x∣\dfrac{1}{2a}\ln\left|\dfrac{a + x}{a - x}\right|
1x2+a2\dfrac{1}{x^2 + a^2}1atan⁡−1xa\dfrac{1}{a}\tan^{-1}\dfrac{x}{a}
1x2−a2\dfrac{1}{\sqrt{x^2 - a^2}}ln⁡∣x+x2−a2∣\ln\left|x + \sqrt{x^2 - a^2}\right|
1a2−x2\dfrac{1}{\sqrt{a^2 - x^2}}sin⁡−1xa\sin^{-1}\dfrac{x}{a}
1x2+a2\dfrac{1}{\sqrt{x^2 + a^2}}ln⁡(x+x2+a2)\ln\left(x + \sqrt{x^2 + a^2}\right)

For a general quadratic, complete the square first.

Summary: integration by parts

51 words · 1 min read

∫u v′ dx=u v−∫u′ v dx\int u\,v'\,dx = u\,v - \int u'\,v\,dx

  • Choose uu in the order Inverse trigonometric, Logarithmic, Algebraic, Trigonometric, Exponential.
  • For ln⁡x\ln x or tan⁡−1x\tan^{-1}x alone, take v′=1v' = 1.
  • If the original integral comes back (as in ∫exsin⁡x dx\int e^x\sin x\,dx), solve for it like an equation.

Summary: some special types of integrals

124 words · 1 min read
  • ∫ex[f(x)+f′(x)] dx=exf(x)+C\int e^x[f(x) + f'(x)]\,dx = e^x f(x) + C.
  • ∫a2−x2 dx=x2a2−x2+a22sin⁡−1xa+C\int\sqrt{a^2 - x^2}\,dx = \frac{x}{2}\sqrt{a^2 - x^2} + \frac{a^2}{2}\sin^{-1}\frac{x}{a} + C.
  • ∫x2+a2 dx=x2x2+a2+a22ln⁡(x+x2+a2)+C\int\sqrt{x^2 + a^2}\,dx = \frac{x}{2}\sqrt{x^2 + a^2} + \frac{a^2}{2}\ln\left(x + \sqrt{x^2 + a^2}\right) + C.
  • ∫x2−a2 dx=x2x2−a2−a22ln⁡∣x+x2−a2∣+C\int\sqrt{x^2 - a^2}\,dx = \frac{x}{2}\sqrt{x^2 - a^2} - \frac{a^2}{2}\ln\left|x + \sqrt{x^2 - a^2}\right| + C.
  • For a linear top px+qpx + q over a quadratic or a square root of it: write px+qpx + q as a multiple of the derivative of the denominator, plus a constant.

Summary: first fundamental theorem of integral calculus

54 words · 1 min read

If ff is continuous and A(x)=∫axf(t) dtA(x) = \int_a^x f(t)\,dt, then A′(x)=f(x)A'(x) = f(x). The rate at which the area grows equals the height of the graph. With a function of xx as the upper limit, use the chain rule: ddx∫ag(x)f(t) dt=f(g(x)) g′(x)\frac{d}{dx}\int_a^{g(x)} f(t)\,dt = f(g(x))\,g'(x).

Summary: second fundamental theorem of integral calculus

42 words · 1 min read

If ff is continuous on [a,b][a, b] and F′=fF' = f, then ∫abf(x) dx=F(b)−F(a)=[F(x)]ab\int_a^b f(x)\,dx = F(b) - F(a) = \Big[F(x)\Big]_a^b. No +C+C is needed. The function must be continuous on the whole interval.

Up next
Continue to the next chapter