Unit 5, lesson 45

Introduction to Indefinite Integrals

What an antiderivative is, why all antiderivatives on an interval differ by a constant, how a starting value picks out one of them, and how to check an answer by differentiating.

  • Theory part 89
  • Practice part 90
  • Indefinite Integrals

Theory, part 89

Practice, part 90

So far you have started with a function and found its derivative. Often the situation is reversed. A speedometer gives you velocity and you want the distance covered, or a rate of growth is known and you want the size. Undoing differentiation is called antidifferentiation, and it opens the second half of calculus.

Key terms

Antiderivative

Definition Let ff be defined on an interval II. A function FF is an antiderivative of ff on II if FF is differentiable on II and

F′(x)=f(x)for every x in I.F'(x) = f(x) \quad \text{for every } x \text{ in } I.

At an endpoint of II that belongs to II, the derivative is the one-sided derivative.

In plain words An antiderivative of ff is a function whose derivative is ff.

Example On R\mathbb{R} the function

F(x)=x33F(x) = \frac{x^3}{3}

is an antiderivative of f(x)=x2f(x) = x^2, because F′(x)=x2F'(x) = x^2. So is x3/3+7x^3/3 + 7.

The theorems behind antiderivatives

Definition Both facts below follow from the mean value theorem.

  1. If F′(x)=0F'(x) = 0 for every xx in an interval II, then FF is constant on II.
  2. If F′(x)=G′(x)F'(x) = G'(x) for every xx in an interval II, then there is a constant CC with F(x)=G(x)+CF(x) = G(x) + C for every xx in II.

Also, if FF and GG are antiderivatives of ff and gg on II and cc is a constant, then F+GF + G is an antiderivative of f+gf + g and cFcF is an antiderivative of cfcf on II.

In plain words On an interval, two functions with the same derivative can differ only by a constant. Antiderivatives of sums and constant multiples are built piece by piece.

Example For the first fact, suppose F′(x)=0F'(x) = 0 on II and x1<x2x_1 < x_2 are in II. Since FF is differentiable on II, the mean value theorem gives some cc between them with

F(x2)−F(x1)=F′(c)(x2−x1)=0,F(x_2) - F(x_1) = F'(c)(x_2 - x_1) = 0,

so F(x1)=F(x2)F(x_1) = F(x_2). For the sum rule, x3/3x^3/3 and −cos⁡x-\cos x are antiderivatives of x2x^2 and sin⁡x\sin x, so

x33−cos⁡x\frac{x^3}{3} - \cos x

is an antiderivative of x2+sin⁡xx^2 + \sin x.

The family of antiderivatives

Definition If FF is an antiderivative of ff on an interval II, then the antiderivatives of ff on II are exactly the functions

F(x)+C,C a constant.F(x) + C, \qquad C \text{ a constant}.

This is the general antiderivative of ff on II.

In plain words Once you have found one antiderivative, you have found them all. The rest are the same graph shifted up or down.

Example The general antiderivative of cos⁡x\cos x on R\mathbb{R} is sin⁡x+C\sin x + C. The graphs of sin⁡x\sin x, sin⁡x+1\sin x + 1 and sin⁡x−2\sin x - 2 are vertical shifts of each other, and at every xx they have the same slope cos⁡x\cos x.

The indefinite integral

Definition The indefinite integral of ff on an interval II is the general antiderivative, written

∫f(x) dx=F(x)+C,meaning F′(x)=f(x) for every x in I.\int f(x)\,dx = F(x) + C, \qquad \text{meaning } F'(x) = f(x) \text{ for every } x \text{ in } I.

The function ff is the integrand, xx is the variable of integration, and CC is the constant of integration.

In plain words The integral sign with no limits asks for every function whose derivative is the integrand. The dxdx names the variable.

Example On R\mathbb{R}

∫(4x3+2) dx=x4+2x+C,\int (4x^3 + 2)\,dx = x^4 + 2x + C,

because the derivative of x4+2xx^4 + 2x is 4x3+24x^3 + 2.

The constant of integration lives on an interval

Definition The statement that all antiderivatives differ by one constant is true on an interval. If the domain of ff is a union of several disjoint intervals, the most general antiderivative may use a different constant on each interval.

In plain words A gap in the domain lets each piece shift independently.

Example The function f(x)=1/x2f(x) = 1/x^2 is defined for x≠0x \neq 0. Its most general antiderivative is

F(x)={−1x+C1,x>0,−1x+C2,x<0,F(x) = \begin{cases} -\dfrac{1}{x} + C_1, & x > 0, \\[1ex] -\dfrac{1}{x} + C_2, & x < 0, \end{cases}

with C1C_1 and C2C_2 chosen independently. For instance the function equal to −1/x+5-1/x + 5 for x>0x > 0 and to −1/x−3-1/x - 3 for x<0x < 0 has derivative 1/x21/x^2 everywhere on the domain, yet it is not −1/x-1/x plus a single constant.

Initial conditions

Definition An initial value problem asks for a function FF on an interval II with F′=fF' = f on II and F(x0)=y0F(x_0) = y_0 for a given x0x_0 in II. Since every antiderivative has the form G+CG + C, the condition G(x0)+C=y0G(x_0) + C = y_0 fixes CC, and the solution on II is unique.

In plain words One known value of the function picks one curve out of the whole family.

Example Find ff with f′(x)=6x2−4f'(x) = 6x^2 - 4 and f(1)=3f(1) = 3. The general antiderivative is f(x)=2x3−4x+Cf(x) = 2x^3 - 4x + C, and f(1)=2−4+C=3f(1) = 2 - 4 + C = 3 gives C=5C = 5. So f(x)=2x3−4x+5f(x) = 2x^3 - 4x + 5. For a ball thrown upward at 1515 meters per second from 22 meters with acceleration −9.8-9.8, the same steps give v(t)=−9.8t+15v(t) = -9.8t + 15 and then s(t)=−4.9t2+15t+2s(t) = -4.9t^2 + 15t + 2.

Checking by differentiation

Definition The equation ∫f(x) dx=F(x)+C\int f(x)\,dx = F(x) + C on II is correct exactly when F′(x)=f(x)F'(x) = f(x) for every xx in II. So any proposed antiderivative can be checked by differentiating it.

In plain words Integrals can be hard to find but are always easy to check. Differentiate your answer and compare with the integrand.

Example The claim ∫xcos⁡x dx=xsin⁡x+cos⁡x+C\int x\cos x\,dx = x\sin x + \cos x + C checks out, because

ddx(xsin⁡x+cos⁡x)=sin⁡x+xcos⁡x−sin⁡x=xcos⁡x.\frac{d}{dx}(x\sin x + \cos x) = \sin x + x\cos x - \sin x = x\cos x.

The guess 12x2sin⁡x\tfrac{1}{2}x^2\sin x fails, since its derivative

xsin⁡x+x22cos⁡xx\sin x + \frac{x^2}{2}\cos x

is not xcos⁡xx\cos x.

Check yourself

  1. Find ff with f′(x)=3x2+2xf'(x) = 3x^2 + 2x and f(0)=−1f(0) = -1.
Show the answer

Every antiderivative has the form f(x)=x3+x2+Cf(x) = x^3 + x^2 + C, and f(0)=C=−1f(0) = C = -1. So f(x)=x3+x2−1f(x) = x^3 + x^2 - 1.

  1. Check whether ∫2xex2 dx=ex2+C\int 2xe^{x^2}\,dx = e^{x^2} + C.
Show the answer

By the chain rule

ddxex2=ex2⋅2x,\frac{d}{dx}e^{x^2} = e^{x^2} \cdot 2x,

which is the integrand. The formula is correct on R\mathbb{R}.

  1. Find ff with f′′(x)=6xf''(x) = 6x, f′(0)=2f'(0) = 2 and f(0)=1f(0) = 1.
Show the answer

Integrating once gives f′(x)=3x2+C1f'(x) = 3x^2 + C_1, and f′(0)=2f'(0) = 2 gives C1=2C_1 = 2. Then f(x)=x3+2x+C2f(x) = x^3 + 2x + C_2 and f(0)=1f(0) = 1 gives C2=1C_2 = 1. So f(x)=x3+2x+1f(x) = x^3 + 2x + 1.

How this lesson connects

It also uses reverse differentiation.