Skip to content
Family Table Math
Auto

Antiderivatives and Indefinite Integrals

An antiderivative of ff is a function whose derivative is ff. Finding one is differentiation run backwards: instead of asking “what is the slope of this function?”, you ask “what function has this slope?” Antiderivatives are what make the Fundamental Theorem of Calculus work, so you need these rules at your fingertips.

FF is an antiderivative of ff if F′(x)=f(x)F'(x) = f(x). For example, x2x^2 is an antiderivative of 2x2x. But so are x2+5x^2 + 5 and x2−3x^2 - 3, because the derivative of a constant is 00.

All antiderivatives of ff (on an interval) differ by a constant. The indefinite integral collects them all:

∫f(x) dx=F(x)+C,\int f(x)\,dx = F(x) + C,

where CC is any constant. The graphs of F(x)+CF(x) + C are vertical shifts of each other.

Several parabolas y = x squared + C, which are vertical shifts of each other, drawn dashed. The one through the point (1, 3), y = x squared + 2, is highlighted. (1, 3) y = x² + 2 −2 2 −4 −2 2 4 6
Every curve y=x2+Cy = x^2 + C has slope 2x2x. An initial condition, like passing through (1,3)(1, 3), picks out one of them.

Each rule comes from reading a derivative rule backwards. (Trig functions use radians.)

IntegralResult
∫k dx\displaystyle\int k\,dxkx+Ckx + C
∫xn dx\displaystyle\int x^n\,dx, for n≠−1n \ne -1xn+1n+1+C\dfrac{x^{n+1}}{n+1} + C
∫1x dx\displaystyle\int \frac{1}{x}\,dxln⁡∣x∣+C\ln\lvert x\rvert + C
∫ex dx\displaystyle\int e^x\,dxex+Ce^x + C
∫sin⁡x dx\displaystyle\int \sin x\,dx−cos⁡x+C-\cos x + C
∫cos⁡x dx\displaystyle\int \cos x\,dxsin⁡x+C\sin x + C
∫sec⁡2x dx\displaystyle\int \sec^2 x\,dxtan⁡x+C\tan x + C
∫sec⁡xtan⁡x dx\displaystyle\int \sec x \tan x\,dxsec⁡x+C\sec x + C
∫csc⁡2x dx\displaystyle\int \csc^2 x\,dx−cot⁡x+C-\cot x + C
∫csc⁡xcot⁡x dx\displaystyle\int \csc x \cot x\,dx−csc⁡x+C-\csc x + C
∫11−x2 dx\displaystyle\int \frac{1}{\sqrt{1 - x^2}}\,dxarcsin⁡x+C\arcsin x + C
∫11+x2 dx\displaystyle\int \frac{1}{1 + x^2}\,dxarctan⁡x+C\arctan x + C

Power rule in words: add 11 to the exponent, then divide by the new exponent. It fails for n=−1n = -1 (you’d divide by 00), which is why 1x\tfrac{1}{x} has its own rule. The absolute value in ln⁡∣x∣\ln|x| lets the answer work for negative xx too.

∫k f(x) dx=k∫f(x) dx,∫(f(x)±g(x)) dx=∫f(x) dx±∫g(x) dx\int k\,f(x)\,dx = k\int f(x)\,dx, \qquad \int \big(f(x) \pm g(x)\big)\,dx = \int f(x)\,dx \pm \int g(x)\,dx

There is no product or quotient rule for integrals. Rewrite first: expand products, split fractions over a single-term denominator, and write roots as powers.

You can always check an antiderivative: differentiate your answer and see if you get the integrand back.

An initial condition such as y(1)=3y(1) = 3 picks one curve from the family:

  1. Find the general antiderivative, with +C+ C.
  2. Substitute the initial condition and solve for CC.
  3. Write the particular solution.

If you’re given f′′f'', integrate twice, using one condition for each constant.

Find ∫(6x2−4x+5) dx\displaystyle\int (6x^2 - 4x + 5)\,dx.

Solution. Apply the power rule term by term:

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

Check: ddx(2x3−2x2+5x)=6x2−4x+5\dfrac{d}{dx}(2x^3 - 2x^2 + 5x) = 6x^2 - 4x + 5. ✓

Find (a) ∫(3x2+x−4x)dx\displaystyle\int \left(\frac{3}{x^2} + \sqrt{x} - \frac{4}{x}\right)dx and (b) ∫x2+1x dx\displaystyle\int \frac{x^2 + 1}{x}\,dx.

Solution.

(a) Write 3x−2+x1/2−4⋅1x3x^{-2} + x^{1/2} - 4 \cdot \tfrac{1}{x}:

3⋅x−1−1+x3/23/2−4ln⁡∣x∣+C=−3x+23x3/2−4ln⁡∣x∣+C3 \cdot \frac{x^{-1}}{-1} + \frac{x^{3/2}}{3/2} - 4\ln|x| + C = -\frac{3}{x} + \frac{2}{3}x^{3/2} - 4\ln|x| + C

(b) Split the fraction: x2+1x=x+1x\dfrac{x^2 + 1}{x} = x + \dfrac{1}{x}.

∫(x+1x)dx=x22+ln⁡∣x∣+C\int \left(x + \frac{1}{x}\right)dx = \frac{x^2}{2} + \ln|x| + C

Example 3: Trig, exponential, and inverse trig

Section titled “Example 3: Trig, exponential, and inverse trig”

Find (a) ∫(2cos⁡x−sec⁡2x+3ex) dx\displaystyle\int (2\cos x - \sec^2 x + 3e^x)\,dx and (b) ∫51+x2 dx\displaystyle\int \frac{5}{1 + x^2}\,dx.

Solution.

(a) 2sin⁡x−tan⁡x+3ex+C2\sin x - \tan x + 3e^x + C

(b) 5arctan⁡x+C5\arctan x + C

Check (a): ddx(2sin⁡x−tan⁡x+3ex)=2cos⁡x−sec⁡2x+3ex\dfrac{d}{dx}(2\sin x - \tan x + 3e^x) = 2\cos x - \sec^2 x + 3e^x. ✓

(a) Find yy if dydx=2x\dfrac{dy}{dx} = 2x and y(1)=3y(1) = 3.

(b) Find f(x)f(x) if f′′(x)=6x−2f''(x) = 6x - 2, f′(0)=1f'(0) = 1, and f(0)=4f(0) = 4.

Solution.

(a) y=x2+Cy = x^2 + C. Substitute x=1x = 1, y=3y = 3: 3=1+C3 = 1 + C, so C=2C = 2 and y=x2+2y = x^2 + 2. That’s the solid curve in the figure above.

(b) Integrate once:

f′(x)=3x2−2x+C1,f′(0)=C1=1f'(x) = 3x^2 - 2x + C_1, \qquad f'(0) = C_1 = 1

So f′(x)=3x2−2x+1f'(x) = 3x^2 - 2x + 1. Integrate again:

f(x)=x3−x2+x+C2,f(0)=C2=4f(x) = x^3 - x^2 + x + C_2, \qquad f(0) = C_2 = 4 f(x)=x3−x2+x+4f(x) = x^3 - x^2 + x + 4

Forgetting the + C. An indefinite integral is a whole family of functions. On a test (AP, IB, or your class), leaving off +C+ C can cost a mark.

Using the power rule on 1/x. ∫x−1 dx\int x^{-1}\,dx is not x00\tfrac{x^0}{0}. It’s ln⁡∣x∣+C\ln|x| + C.

Getting trig signs backwards. The derivative of cos⁡x\cos x is −sin⁡x-\sin x, so ∫sin⁡x dx=−cos⁡x+C\int \sin x\,dx = -\cos x + C, and ∫cos⁡x dx=+sin⁡x+C\int \cos x\,dx = +\sin x + C. If in doubt, differentiate your answer.

Integrating products or quotients piece by piece. ∫xx dx\int x\sqrt{x}\,dx is not x22⋅23x3/2\tfrac{x^2}{2} \cdot \tfrac{2}{3}x^{3/2}. Rewrite as ∫x3/2 dx=25x5/2+C\int x^{3/2}\,dx = \tfrac{2}{5}x^{5/2} + C first.

Solving for C too early or too late. Find CC right after integrating, before you integrate again. In Example 4(b), it’s easiest to find C1C_1 before the second integration.

Dividing by the old exponent. ∫x3 dx=x44+C\int x^3\,dx = \tfrac{x^4}{4} + C, not x43+C\tfrac{x^4}{3} + C. Divide by the new exponent.

1. (Warm-up) Find ∫x7 dx\displaystyle\int x^7\,dx.

Solutionx88+C\frac{x^8}{8} + C

2. (Warm-up) Find ∫(4x3−6) dx\displaystyle\int (4x^3 - 6)\,dx.

Solutionx4−6x+Cx^4 - 6x + C

3. (Warm-up) Find ∫(sin⁡x+ex) dx\displaystyle\int (\sin x + e^x)\,dx.

Solution−cos⁡x+ex+C-\cos x + e^x + C

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

Solution

Expand first: (2x+1)2=4x2+4x+1(2x + 1)^2 = 4x^2 + 4x + 1.

∫(4x2+4x+1) dx=4x33+2x2+x+C\int (4x^2 + 4x + 1)\,dx = \frac{4x^3}{3} + 2x^2 + x + C

5. (Core) Find ∫x3−2xx dx\displaystyle\int \frac{x^3 - 2\sqrt{x}}{x}\,dx.

Solution

Split the fraction: x3x−2x1/2x=x2−2x−1/2\dfrac{x^3}{x} - \dfrac{2x^{1/2}}{x} = x^2 - 2x^{-1/2}.

∫(x2−2x−1/2)dx=x33−2⋅x1/21/2+C=x33−4x+C\int \left(x^2 - 2x^{-1/2}\right)dx = \frac{x^3}{3} - 2 \cdot \frac{x^{1/2}}{1/2} + C = \frac{x^3}{3} - 4\sqrt{x} + C

6. (Core) Find ∫(3x+21+x2−11−x2)dx\displaystyle\int \left(\frac{3}{x} + \frac{2}{1 + x^2} - \frac{1}{\sqrt{1 - x^2}}\right)dx.

Solution3ln⁡∣x∣+2arctan⁡x−arcsin⁡x+C3\ln|x| + 2\arctan x - \arcsin x + C

7. (Core) Find f(x)f(x) if f′(x)=3x2+4sin⁡xf'(x) = 3x^2 + 4\sin x and f(0)=2f(0) = 2.

Solutionf(x)=x3−4cos⁡x+Cf(x) = x^3 - 4\cos x + C

f(0)=0−4cos⁡0+C=−4+C=2f(0) = 0 - 4\cos 0 + C = -4 + C = 2, so C=6C = 6.

f(x)=x3−4cos⁡x+6f(x) = x^3 - 4\cos x + 6

8. (Challenge) Find f(x)f(x) if f′′(x)=12x2+exf''(x) = 12x^2 + e^x, f′(0)=3f'(0) = 3, and f(0)=1f(0) = 1.

Solution

f′(x)=4x3+ex+C1f'(x) = 4x^3 + e^x + C_1. Then f′(0)=1+C1=3f'(0) = 1 + C_1 = 3, so C1=2C_1 = 2.

f(x)=x4+ex+2x+C2f(x) = x^4 + e^x + 2x + C_2. Then f(0)=1+C2=1f(0) = 1 + C_2 = 1, so C2=0C_2 = 0.

f(x)=x4+ex+2xf(x) = x^4 + e^x + 2x

9. (Challenge) A particle moves along a line with acceleration a(t)=6t−4a(t) = 6t - 4 m/s². Its initial velocity is v(0)=−2v(0) = -2 m/s and its initial position is x(0)=5x(0) = 5 m. Find its position at t=2t = 2 s.

Solution

Velocity is an antiderivative of acceleration:

v(t)=3t2−4t+C1,v(0)=C1=−2v(t) = 3t^2 - 4t + C_1, \qquad v(0) = C_1 = -2

Position is an antiderivative of velocity:

x(t)=t3−2t2−2t+C2,x(0)=C2=5x(t) = t^3 - 2t^2 - 2t + C_2, \qquad x(0) = C_2 = 5x(2)=8−8−4+5=1x(2) = 8 - 8 - 4 + 5 = 1

The particle is at x=1x = 1 m when t=2t = 2 s.