AP Calculus AB and BC

Basic Antiderivative Rules and the Constant of Integration

An antiderivative of f is a function F whose derivative is f. The indefinite integral of f is the whole family F(x) + C, where C is any constant. Find antiderivatives by reversing the derivative rules, one term at a time, and check the result by differentiating. An initial condition such as F(0) = 5 determines C.

Antiderivatives and the indefinite integral

A function FF is an antiderivative of ff if F′(x)=f(x)F'(x) = f(x). Finding one means running differentiation backward: you are given the derivative and asked for a function it came from. This is CED Topic 6.8, Finding Antiderivatives and Indefinite Integrals: Basic Rules and Notation.

Antiderivatives are never unique. Since the derivative of a constant is zero, x2x^2, x2+7x^2 + 7, and x2−100x^2 - 100 all have derivative 2x2x. On an interval, any two antiderivatives of the same function differ by a constant, so once you have one antiderivative FF, all of them have the form F(x)+CF(x) + C. The indefinite integral is the notation for that whole family:

∫f(x) dx=F(x)+Cwhere F′(x)=f(x)\int f(x)\,dx = F(x) + C \quad \text{where } F'(x) = f(x)

The function ff inside is the integrand, dxdx names the variable, and CC is the constant of integration. An indefinite integral is a family of functions. A definite integral, with limits on the integral sign, is a number.

The basic rules

Each antiderivative rule is a derivative rule read from right to left.

IntegrandIndefinite integralBecause
xnx^n, n≠−1n \neq -1xn+1n+1+C\frac{x^{n+1}}{n+1} + Cddx[xn+1n+1]=xn\frac{d}{dx}\left[\frac{x^{n+1}}{n+1}\right] = x^n
1x\frac{1}{x}ln⁡∣x∣+C\ln|x| + Cddx[ln⁡∣x∣]=1x\frac{d}{dx}[\ln|x|] = \frac{1}{x}
exe^xex+Ce^x + Cddx[ex]=ex\frac{d}{dx}[e^x] = e^x
cos⁡x\cos xsin⁡x+C\sin x + Cddx[sin⁡x]=cos⁡x\frac{d}{dx}[\sin x] = \cos x
sin⁡x\sin x−cos⁡x+C-\cos x + Cddx[−cos⁡x]=sin⁡x\frac{d}{dx}[-\cos x] = \sin x
sec⁡2x\sec^2 xtan⁡x+C\tan x + Cddx[tan⁡x]=sec⁡2x\frac{d}{dx}[\tan x] = \sec^2 x
sec⁡xtan⁡x\sec x \tan xsec⁡x+C\sec x + Cddx[sec⁡x]=sec⁡xtan⁡x\frac{d}{dx}[\sec x] = \sec x \tan x
11+x2\frac{1}{1 + x^2}arctan⁡x+C\arctan x + Cddx[arctan⁡x]=11+x2\frac{d}{dx}[\arctan x] = \frac{1}{1 + x^2}
11−x2\frac{1}{\sqrt{1 - x^2}}arcsin⁡x+C\arcsin x + Cddx[arcsin⁡x]=11−x2\frac{d}{dx}[\arcsin x] = \frac{1}{\sqrt{1 - x^2}}

The power rule for antiderivatives is the reverse of the power rule for derivatives: add one to the exponent, then divide by the new exponent. It fails for n=−1n = -1 because it would divide by zero, and that single case is covered by the logarithm. A constant kk is the case n=0n = 0: ∫k dx=kx+C\int k\,dx = kx + C.

Watch the sign on sine

The derivative of cos⁡x\cos x is −sin⁡x-\sin x, so the antiderivative of sin⁡x\sin x is −cos⁡x-\cos x. The antiderivative of cos⁡x\cos x is sin⁡x\sin x with no negative. Differentiating your answer catches a sign slip in a few seconds.

Sums, constant multiples, and rewriting first

Antiderivatives respect sums and constant multiples, so you can integrate term by term and pull constants out front:

∫[a f(x)+b g(x)] dx=a∫f(x) dx+b∫g(x) dx\int \left[a\,f(x) + b\,g(x)\right]\,dx = a\int f(x)\,dx + b\int g(x)\,dx

There is no product rule or quotient rule for antiderivatives. The integral of a product is not the product of the integrals. When the integrand is a product or quotient, the first move at this level is algebra: rewrite it as a sum of terms that match the table.

  • Rewrite roots and reciprocals as powers: x=x1/2\sqrt{x} = x^{1/2} and 1x3=x−3\frac{1}{x^3} = x^{-3}.
  • Expand products: (x+2)2=x2+4x+4(x + 2)^2 = x^2 + 4x + 4.
  • Split a fraction with a single-term denominator: x2+1x=x+1x\frac{x^2 + 1}{x} = x + \frac{1}{x}.

Integrands that do not reduce this way need a technique such as substitution, which comes next in the unit.

The constant of integration and initial conditions

The +C+ C is part of the answer to every indefinite integral. It records that the family contains infinitely many functions, each a vertical shift of the others. One CC at the end is enough even when the integrand has several terms, because a sum of arbitrary constants is one arbitrary constant.

An initial condition selects one member of the family. If you know f′(x)f'(x) and one value of the function, such as f(0)=5f(0) = 5, the steps are:

  1. Find the general antiderivative, including +C+ C.
  2. Substitute the known point into the general antiderivative.
  3. Solve for CC.
  4. Write the specific function with that value of CC.

The constant is whatever number makes the curve pass through the given point. It equals the given function value only in special cases, so always solve for it.

Where students lose points

  • Leaving off +C+ C on an indefinite integral.
  • Using the power rule on 1x\frac{1}{x}. The result is ln⁡∣x∣+C\ln|x| + C.
  • Dropping the absolute value in ln⁡∣x∣\ln|x|. The function 1x\frac{1}{x} is defined for negative xx, and ln⁡x\ln x is not.
  • Multiplying by the exponent instead of dividing by the new one. That is the derivative rule.
  • Integrating a product factor by factor. Expand or rewrite first.
  • Substituting the initial condition before integrating, or assuming CC equals the given value.
  • Skipping the check. Differentiate the answer; you should get the integrand back exactly.

Worked examples

Worked example

Term-by-term power rule

Find ∫(6x2−4x3+5x) dx\int \left(6x^2 - \frac{4}{x^3} + 5\sqrt{x}\right)\,dx.

  1. Rewrite every term as a power of xx: 6x2−4x−3+5x1/26x^2 - 4x^{-3} + 5x^{1/2}.
  2. Apply the power rule to each term. 6x26x^2 becomes 6⋅x33=2x36 \cdot \frac{x^3}{3} = 2x^3. −4x−3-4x^{-3} becomes −4⋅x−2−2=2x−2-4 \cdot \frac{x^{-2}}{-2} = 2x^{-2}. 5x1/25x^{1/2} becomes 5⋅x3/23/2=103x3/25 \cdot \frac{x^{3/2}}{3/2} = \frac{10}{3}x^{3/2}.
  3. Combine and add the constant: 2x3+2x−2+103x3/2+C2x^3 + 2x^{-2} + \frac{10}{3}x^{3/2} + C.
  4. Check by differentiating: 6x2−4x−3+103⋅32x1/2=6x2−4x3+5x6x^2 - 4x^{-3} + \frac{10}{3} \cdot \frac{3}{2}x^{1/2} = 6x^2 - \frac{4}{x^3} + 5\sqrt{x}, which matches the integrand.

2x3+2x2+103x3/2+C2x^3 + \frac{2}{x^2} + \frac{10}{3}x^{3/2} + C

Worked example

Rewrite a quotient before integrating

Find ∫(x2+3)2x dx\int \frac{(x^2 + 3)^2}{x}\,dx.

  1. Expand the numerator: (x2+3)2=x4+6x2+9(x^2 + 3)^2 = x^4 + 6x^2 + 9.
  2. Divide each term by xx: x4+6x2+9x=x3+6x+9x\frac{x^4 + 6x^2 + 9}{x} = x^3 + 6x + \frac{9}{x}.
  3. Integrate term by term: ∫x3 dx=x44\int x^3\,dx = \frac{x^4}{4}, ∫6x dx=3x2\int 6x\,dx = 3x^2, and ∫9x dx=9ln⁡∣x∣\int \frac{9}{x}\,dx = 9\ln|x|.
  4. Check by differentiating: x3+6x+9xx^3 + 6x + \frac{9}{x}, which equals the original integrand.

x44+3x2+9ln⁡∣x∣+C\frac{x^4}{4} + 3x^2 + 9\ln|x| + C

Worked example

Using an initial condition to find C

Find f(x)f(x) given that f′(x)=3cos⁡x+2exf'(x) = 3\cos x + 2e^x and f(0)=5f(0) = 5.

  1. Find the general antiderivative: f(x)=3sin⁡x+2ex+Cf(x) = 3\sin x + 2e^x + C.
  2. Substitute the initial condition f(0)=5f(0) = 5: 3sin⁡0+2e0+C=53\sin 0 + 2e^0 + C = 5, which is 0+2+C=50 + 2 + C = 5.
  3. Solve: C=3C = 3.
  4. Check: f(0)=0+2+3=5f(0) = 0 + 2 + 3 = 5 and f′(x)=3cos⁡x+2exf'(x) = 3\cos x + 2e^x.

f(x)=3sin⁡x+2ex+3f(x) = 3\sin x + 2e^x + 3

Frequently asked questions

Why do you add + C to an indefinite integral?

Because the derivative of any constant is zero, adding a constant to an antiderivative gives another antiderivative. The +C+ C stands for all of them at once. Without it, the answer names only one function out of an infinite family.

Why is the antiderivative of 1x\frac{1}{x} written with an absolute value?

1x\frac{1}{x} is defined for negative xx as well as positive xx, but ln⁡x\ln x is defined only for x>0x > 0. The function ln⁡∣x∣\ln|x| is defined for all x≠0x \neq 0 and has derivative 1x\frac{1}{x} on both sides, so it covers the whole domain of the integrand.

Do I need + C on a definite integral?

No. A definite integral ∫abf(x) dx\int_a^b f(x)\,dx is a number, computed as F(b)−F(a)F(b) - F(a). Any constant would appear in both F(b)F(b) and F(a)F(a) and cancel, so it is left out.