Calculus · Grade 12 and undergraduate

Antiderivatives and Indefinite Integrals

Quick answer

An antiderivative of f is a function whose derivative is f, and the indefinite integral ∫ f(x) dx = F(x) + C names all of them at once: any two differ by a constant, because only constants have derivative 0. Each derivative rule, read backward, is an integration rule: ∫ xⁿ dx = xⁿ⁺¹/(n + 1) + C for n ≠ −1, ∫ 1/x dx = ln|x| + C, ∫ eˣ dx = eˣ + C. An initial condition picks out one member of the family, which is how position is recovered from velocity.

What you'll learn

  • Find antiderivatives with the basic rules, including the constant C
  • Explain why every antiderivative has the form F(x) + C
  • Solve initial value problems
  • Recover velocity and position from acceleration

Running derivatives backward

An antiderivative of ff is any function FF with F′(x)=f(x)F'(x) = f(x). Since ddxx3=3x2\tfrac{d}{dx}x^3 = 3x^2, the function x3x^3 is an antiderivative of 3x23x^2. So are x3+5x^3 + 5 and x3−πx^3 - \pi: a constant disappears when differentiated.

The indefinite integral collects all of them:

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

where CC is an arbitrary constant. By the Fundamental Theorem, antiderivatives are exactly what definite integrals need.

Why + C covers them all

Suppose FF and GG are both antiderivatives of ff on an interval. Then (G−F)′=f−f=0(G - F)' = f - f = 0 everywhere on it. The Mean Value Theorem showed that a function with zero derivative on an interval is constant. So G=F+CG = F + C.

Every antiderivative is one particular antiderivative plus a constant, and every constant is possible. The +C+ C is not decoration; leaving it out claims there is only one answer.

The basic rules

Each row is a derivative rule read from right to left:

IntegralAntiderivative
∫xn dx\int x^n\,dx, n≠−1n \ne -1xn+1n+1+C\tfrac{x^{n+1}}{n + 1} + C
∫1x dx\int \tfrac{1}{x}\,dxln⁡∣x∣+C\ln\lvert x \rvert + C
∫ex dx\int e^x\,dxex+Ce^x + C
∫ax dx\int a^x\,dxaxln⁡a+C\tfrac{a^x}{\ln a} + C
∫sin⁡x dx\int \sin x\,dx−cos⁡x+C-\cos x + C
∫cos⁡x dx\int \cos x\,dxsin⁡x+C\sin x + C
∫sec⁡2x dx\int \sec^2 x\,dxtan⁡x+C\tan x + C
∫11+x2 dx\int \tfrac{1}{1 + x^2}\,dxarctan⁡x+C\arctan x + C
∫11−x2 dx\int \tfrac{1}{\sqrt{1 - x^2}}\,dxarcsin⁡x+C\arcsin x + C

Integrals of sums split into sums, and constant factors come out, exactly as for derivatives. The absolute value in ln⁡∣x∣\ln\lvert x \rvert covers negative xx: there ddxln⁡(−x)=−1−x=1x\tfrac{d}{dx}\ln(-x) = \tfrac{-1}{-x} = \tfrac{1}{x}.

Initial value problems

An initial value problem gives a derivative and one value of the function. The value fixes CC, leaving a single answer.

This is how motion is recovered: velocity is an antiderivative of acceleration, and position an antiderivative of velocity. The initial velocity and position fix the two constants.

Worked examples

Common mistakes

Practice problems

  1. Find ∫(x4−3x+2) dx\int (x^4 - 3x + 2)\,dx.

    Answer

    x55−3x22+2x+C\tfrac{x^5}{5} - \tfrac{3x^2}{2} + 2x + C

    Full solution

    Term by term with the power rule.

  2. Find ∫4x dx\int \tfrac{4}{x}\,dx.

    Answer

    4ln⁡∣x∣+C4\ln\lvert x \rvert + C

    Full solution

    The constant comes out, and ∫1x dx=ln⁡∣x∣+C\int \tfrac{1}{x}\,dx = \ln\lvert x \rvert + C.

  3. Find ∫(2cos⁡x−3sin⁡x) dx\int (2\cos x - 3\sin x)\,dx.

    Answer

    2sin⁡x+3cos⁡x+C2\sin x + 3\cos x + C

    Full solution

    ∫cos⁡x=sin⁡x\int \cos x = \sin x and ∫sin⁡x=−cos⁡x\int \sin x = -\cos x, so −3∫sin⁡x=3cos⁡x-3\int \sin x = 3\cos x.

  4. Find ∫x3+1x2 dx\int \tfrac{x^3 + 1}{x^2}\,dx.

    Answer

    x22−1x+C\tfrac{x^2}{2} - \tfrac{1}{x} + C

    Full solution

    Divide first: x+x−2x + x^{-2}. Then x22−x−1+C\tfrac{x^2}{2} - x^{-1} + C.

  5. Find ∫5ex dx\int 5e^x\,dx and ∫2x dx\int 2^x\,dx.

    Answer

    5ex+C5e^x + C and 2xln⁡2+C\tfrac{2^x}{\ln 2} + C

    Full solution

    exe^x is its own antiderivative. For 2x2^x, the derivative of 2x2^x is 2xln⁡22^x\ln 2, so dividing by ln⁡2\ln 2 undoes it.

  6. Find ff with f′(x)=4x3f'(x) = 4x^3 and f(2)=10f(2) = 10.

    Answer

    f(x)=x4−6f(x) = x^4 - 6

    Full solution

    f(x)=x4+Cf(x) = x^4 + C, and 16+C=1016 + C = 10 gives C=−6C = -6.

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

    Answer

    f(x)=x3+x+2f(x) = x^3 + x + 2

    Full solution

    f′(x)=3x2+C1f'(x) = 3x^2 + C_1 with C1=1C_1 = 1. Then f(x)=x3+x+C2f(x) = x^3 + x + C_2 with C2=2C_2 = 2.

  8. A car accelerates at a(t)=4a(t) = 4 m/s² from rest at position 00. Find its position after 55 seconds.

    Answer

    5050 m

    Full solution

    v(t)=4tv(t) = 4t (starting from rest) and s(t)=2t2s(t) = 2t^2 (starting at 00). s(5)=50s(5) = 50.

  9. Find ∫31+x2 dx\int \tfrac{3}{1 + x^2}\,dx.

    Answer

    3arctan⁡x+C3\arctan x + C

    Full solution

    The derivative of arctan⁡x\arctan x is 11+x2\tfrac{1}{1 + x^2}.

  10. A student writes ∫x−1 dx=x00+C\int x^{-1}\,dx = \tfrac{x^0}{0} + C. What went wrong?

    Hint

    Which exponent does the power rule exclude?

    Answer

    The power rule excludes n=−1n = -1. The answer is ln⁡∣x∣+C\ln\lvert x \rvert + C.

    Full solution

    For n=−1n = -1 the formula would divide by n+1=0n + 1 = 0.

    The antiderivative of 1x\tfrac{1}{x} is ln⁡∣x∣+C\ln\lvert x \rvert + C, since the derivative of ln⁡∣x∣\ln\lvert x \rvert is 1x\tfrac{1}{x}.

Frequently asked questions

What is an antiderivative?

A function F whose derivative is f. For example, x³ is an antiderivative of 3x².

Why is there a + C?

Adding a constant does not change a derivative, so if F is an antiderivative, so is F + C for every C. And by the Mean Value Theorem, those are all of them.

What is the power rule for integrals?

∫ xⁿ dx = xⁿ⁺¹/(n + 1) + C, for every n except −1. For n = −1, ∫ 1/x dx = ln|x| + C.

What is an initial value problem?

Finding a function from its derivative plus one known value, such as f′(x) = 2x with f(0) = 5. The known value fixes C.

What is the difference between a definite and an indefinite integral?

A definite integral has limits and is a number. An indefinite integral has no limits and is a family of functions, F(x) + C.

What to learn next