Achievable logoAchievable logo
AP Calculus AB
Sign in
Sign up
Purchase
Textbook
Practice exams
Support
How it works
Exam catalog
Mountain with a flag at the peak
Textbook
Introduction
1. Limits
2. Derivative basics
3. Advanced differentiation
4. Contextual uses
5. Analytical uses
6. Integration
6.1 Accumulation of change
6.2 Riemann sums & area
6.3 Definite integrals
6.4 Accumulation functions
6.5 Behavior of accumulation functions
6.6 Fundamental theorem of calculus
6.7 Indefinite integrals
6.8 u-substitution
6.9 Long division & completing the square
7. Differential equations
8. Applications of integrals
9. Testing details tag
Wrapping up
Achievable logoAchievable logo
6.7 Indefinite integrals
Achievable AP Calculus AB
6. Integration
Our AP Calculus AB course is currently in development and is a work-in-progress.

Indefinite integrals

8 min read
Font
Discuss
Share
Feedback

What you’ll learn:

  • Difference between definite and indefinite integrals
  • Key integration rules

In earlier sections, you used antiderivatives to evaluate definite integrals. A definite integral gives the net area (accumulated change) under a curve over a specific interval.

If an integral has no bounds of integration (no upper and lower limits), it’s an indefinite integral.

  • A definite integral produces a single number.
  • An indefinite integral produces a whole family of antiderivatives.

Suppose there are 3 functions:

F(x)=x2−1

G(x)=x2+100

H(x)=x2+π

All three are the same basic function x2, just shifted vertically by different constants. When you differentiate, those constants become 0, so all three derivatives are the same:

F′(x)=G′(x)=H′(x)=2x

Now think about integrating 2x. You’re looking for an antiderivative - but which one is it: F(x), G(x), or H(x)?

This is why we add +C. Here, C is the constant of integration, and it represents any vertical shift. No matter what constant you add, the derivative of x2+C is still 2x.

So,

∫2xdx=x2+C

That answer represents the entire family of functions whose derivative is 2x.

Sidenote
Constant of integration

Your answer for an indefinite integral must include +C at the end unless given an initial condition.

On the previous page, the reverse power rule was given as a way to find the antiderivative of a function involving powers.

Reverse power rule

For n=−1,

∫xndx=n+1xn+1​+C

The special case n=−1

What happens when n=−1? If we try to integrate f(x)=x1​ using the reverse power rule, we run into a division-by-zero problem:

∫x1​dx=∫x−1dx=−1+1x−1+1​=0x0​

This is a problem because nothing can be divided by 0. Instead, use a derivative you already know:

  • The derivative of ln∣x∣ is x1​.

So,

∫x1​dx=ln∣x∣+C

By working backward from derivative rules, we get a set of core integration rules:

f(x) Indefinite integral
xn n+1xn+1​+C
x1​ ln∣x∣+C
ex ex+C
ax ln(a)ax​+C

Some trig integration rules:

f(x) Indefinite integral
sin(x) −cos(x)+C
cos(x) sin(x)+C
sec2(x) tan(x)+C
csc2(x) −cot(x)+C
sec(x)tan(x) sec(x)+C
csc(x)cot(x) −csc(x)+C

Some antiderivatives derived from inverse trig functions:

f(x) Indefinite integral
1−x2​1​ sin−1(x)+C
1−x2​−1​ cos−1(x)+C
1+x21​ tan−1(x)+C
1+x2−1​ cot−1(x)+C
∣x∣x2−1​1​ sec−1(x)+C
∣x∣x2−1​−1​ csc−1(x)+C

Although you’re expected to know these basic integration rules for the exam, most exam questions won’t stop at “find this antiderivative.” More often, you’ll be asked to set up a definite integral from a context (like a rate problem) and then evaluate it, with or without a calculator.

Examples

Water flows into a tank at a rate of R(t)=et+e3 liters per hour. How much water enters the tank from t=0 to t=10?

Solution

(spoiler)

We want the total amount of water added, so we integrate the rate over the time interval:

∫010​(et+e3)dt

Find an antiderivative term-by-term:

  • The antiderivative of et is et.
  • e3 is a constant, so its antiderivative with respect to t is e3⋅t.

Now evaluate the definite integral:

et+e3(t)​010​

=[e10+e3(10)]−[e0+e3(0)]

=e10+10e3−1−0

≈22,226.321 liters​

Sidenote
Definite integrals in Desmos

On calculator sections, you can use Desmos to compute definite integrals that might be tedious to integrate by hand. Type “int” and an integral symbol will appear.

Desmos requires you enter the bounds of integration - it won’t be able to show you the result of an indefinite integral.

Make sure to put parentheses around the integrand before the dx.

A factory releases a pollutant into a river at a rate of R(t)=1+e−0.2t500t​​ grams per hour, where time t is the number of hours since the start of the day. To the nearest gram, how much pollutant was released between 5≤t≤12?

Solution

(spoiler)

The rate function R(t) is in grams per hour. To get the total amount released (in grams) over a time interval, integrate the rate over that interval.

Set up this definite integral in Desmos:

∫512​1+e−0.2t500t​​dt

The value it gives is 8557​ grams.

The rate of change of the temperature in degrees Celsius per hour is given by

T′(t)=−t3+6t2−9t+4

where t is the number of hours since midnight and 0≤t≤6.

Write an integral expression that gives the change in temperature during the time when the temperature is decreasing.

Solution

(spoiler)

The question gives a rate of change and asks for the change in temperature, so we integrate the rate.

But we only integrate over the times when the temperature is decreasing. That happens when T′(t)<0.

If you graph T′ in Desmos (using x as the input variable), you’ll see the graph is below the x-axis for 4≤x≤∞. In this problem, time is limited to 0≤t≤6, so the relevant interval is 4≤t≤6.

So the change in temperature (in degrees Celsius) during the time it’s decreasing is

∫46​T′(t)dt

=∫46​(−t3+6t2−9t+4)dt​

Find a function that satisfies

dxdy​=2xln(2)−x2​

and

y(2)=5

Solution

(spoiler)

Because the derivative is given, integrate to recover y:

∫dxdy​dx=∫(2xln(2)−x2​)dx

Integrate term-by-term:

y=ln(2)∫2xdx−2∫x1​dx

=ln(2)⋅ln(2)2x​−2ln∣x∣

=2x−2ln∣x∣+C

Now use the initial condition y(2)=5 to find C:

5=22−2ln(2)+C

C=2.386

Therefore,

y=2x−2ln∣x∣+2.386​

Here is a problem combining both definite and indefinite integrals that’s similar to one from a past AP exam (1988 AB FRQ #6), with the numbers altered:

Let f be a differentiable function, defined for all real numbers x, with the following properties.

(i) f′(x)=ax2+bx
(ii)f′(2)=10 and f′′(2)=18
(iii)∫24​f(x)dx=60

Find f(x).

Solution

(spoiler)

From (i) and (ii), use f′(2)=10:

a(2)2+b(2)=10

4a+2b=10

Differentiate f′(x) to get f′′(x):

f′′(x)=2ax+b

Now use f′′(2)=18:

2a(2)+b=16

4a+b=18

Now solve the system for a and b:

4a+2b=104a+b=18​​

Subtracting equation (2) from (1) gives b=−6. Substituting back gives a=6. Therefore,

f′(x)=6x2−6x

To find f(x), integrate f′(x):

f(x)=∫f′(x)dx

=∫(6x2−6x)dx

=2x3−3x2+C

The +C is required because this is an indefinite integral.

Now use (iii). Let F(x) be an antiderivative of f(x):

F(x)=∫(6x3−3x2+C)dx

=46x4​−x3+Cx

=23​x4−x3+Cx

We don’t add another constant here because we’re about to evaluate a definite integral using FTC Part 2:

∫24​f(x)=F(4)−F(2)

Using (iii),

F(4)−F(2)=60

[23​(4)4−(4)3+C(4)]−[23​(2)4−(2)3+C(2)]=60

(384−64+4C)−(24−8+2C)=60

304+2C=60

C=−122

Therefore,

f(x)=2x3−3x2−122​

  • A definite integral always produces a value while an indefinite integral produces a family of functions (don’t forget +C).

Sign up for free to take 5 quiz questions on this topic

All rights reserved ©2016 - 2026 Achievable, Inc.

Indefinite integrals

What you’ll learn:

  • Difference between definite and indefinite integrals
  • Key integration rules

In earlier sections, you used antiderivatives to evaluate definite integrals. A definite integral gives the net area (accumulated change) under a curve over a specific interval.

If an integral has no bounds of integration (no upper and lower limits), it’s an indefinite integral.

  • A definite integral produces a single number.
  • An indefinite integral produces a whole family of antiderivatives.

Suppose there are 3 functions:

F(x)=x2−1

G(x)=x2+100

H(x)=x2+π

All three are the same basic function x2, just shifted vertically by different constants. When you differentiate, those constants become 0, so all three derivatives are the same:

F′(x)=G′(x)=H′(x)=2x

Now think about integrating 2x. You’re looking for an antiderivative - but which one is it: F(x), G(x), or H(x)?

This is why we add +C. Here, C is the constant of integration, and it represents any vertical shift. No matter what constant you add, the derivative of x2+C is still 2x.

So,

∫2xdx=x2+C

That answer represents the entire family of functions whose derivative is 2x.

Sidenote
Constant of integration

Your answer for an indefinite integral must include +C at the end unless given an initial condition.

On the previous page, the reverse power rule was given as a way to find the antiderivative of a function involving powers.

Reverse power rule

For n=−1,

∫xndx=n+1xn+1​+C

The special case n=−1

What happens when n=−1? If we try to integrate f(x)=x1​ using the reverse power rule, we run into a division-by-zero problem:

∫x1​dx=∫x−1dx=−1+1x−1+1​=0x0​

This is a problem because nothing can be divided by 0. Instead, use a derivative you already know:

  • The derivative of ln∣x∣ is x1​.

So,

∫x1​dx=ln∣x∣+C

By working backward from derivative rules, we get a set of core integration rules:

f(x) Indefinite integral
xn n+1xn+1​+C
x1​ ln∣x∣+C
ex ex+C
ax ln(a)ax​+C

Some trig integration rules:

f(x) Indefinite integral
sin(x) −cos(x)+C
cos(x) sin(x)+C
sec2(x) tan(x)+C
csc2(x) −cot(x)+C
sec(x)tan(x) sec(x)+C
csc(x)cot(x) −csc(x)+C

Some antiderivatives derived from inverse trig functions:

f(x) Indefinite integral
1−x2​1​ sin−1(x)+C
1−x2​−1​ cos−1(x)+C
1+x21​ tan−1(x)+C
1+x2−1​ cot−1(x)+C
∣x∣x2−1​1​ sec−1(x)+C
∣x∣x2−1​−1​ csc−1(x)+C

Although you’re expected to know these basic integration rules for the exam, most exam questions won’t stop at “find this antiderivative.” More often, you’ll be asked to set up a definite integral from a context (like a rate problem) and then evaluate it, with or without a calculator.

Examples

Water flows into a tank at a rate of R(t)=et+e3 liters per hour. How much water enters the tank from t=0 to t=10?

Solution

(spoiler)

We want the total amount of water added, so we integrate the rate over the time interval:

∫010​(et+e3)dt

Find an antiderivative term-by-term:

  • The antiderivative of et is et.
  • e3 is a constant, so its antiderivative with respect to t is e3⋅t.

Now evaluate the definite integral:

et+e3(t)​010​

=[e10+e3(10)]−[e0+e3(0)]

=e10+10e3−1−0

≈22,226.321 liters​

Sidenote
Definite integrals in Desmos

On calculator sections, you can use Desmos to compute definite integrals that might be tedious to integrate by hand. Type “int” and an integral symbol will appear.

Desmos requires you enter the bounds of integration - it won’t be able to show you the result of an indefinite integral.

Make sure to put parentheses around the integrand before the dx.

A factory releases a pollutant into a river at a rate of R(t)=1+e−0.2t500t​​ grams per hour, where time t is the number of hours since the start of the day. To the nearest gram, how much pollutant was released between 5≤t≤12?

Solution

(spoiler)

The rate function R(t) is in grams per hour. To get the total amount released (in grams) over a time interval, integrate the rate over that interval.

Set up this definite integral in Desmos:

∫512​1+e−0.2t500t​​dt

The value it gives is 8557​ grams.

The rate of change of the temperature in degrees Celsius per hour is given by

T′(t)=−t3+6t2−9t+4

where t is the number of hours since midnight and 0≤t≤6.

Write an integral expression that gives the change in temperature during the time when the temperature is decreasing.

Solution

(spoiler)

The question gives a rate of change and asks for the change in temperature, so we integrate the rate.

But we only integrate over the times when the temperature is decreasing. That happens when T′(t)<0.

If you graph T′ in Desmos (using x as the input variable), you’ll see the graph is below the x-axis for 4≤x≤∞. In this problem, time is limited to 0≤t≤6, so the relevant interval is 4≤t≤6.

So the change in temperature (in degrees Celsius) during the time it’s decreasing is

∫46​T′(t)dt

=∫46​(−t3+6t2−9t+4)dt​

Find a function that satisfies

dxdy​=2xln(2)−x2​

and

y(2)=5

Solution

(spoiler)

Because the derivative is given, integrate to recover y:

∫dxdy​dx=∫(2xln(2)−x2​)dx

Integrate term-by-term:

y=ln(2)∫2xdx−2∫x1​dx

=ln(2)⋅ln(2)2x​−2ln∣x∣

=2x−2ln∣x∣+C

Now use the initial condition y(2)=5 to find C:

5=22−2ln(2)+C

C=2.386

Therefore,

y=2x−2ln∣x∣+2.386​

Here is a problem combining both definite and indefinite integrals that’s similar to one from a past AP exam (1988 AB FRQ #6), with the numbers altered:

Let f be a differentiable function, defined for all real numbers x, with the following properties.

(i) f′(x)=ax2+bx
(ii)f′(2)=10 and f′′(2)=18
(iii)∫24​f(x)dx=60

Find f(x).

Solution

(spoiler)

From (i) and (ii), use f′(2)=10:

a(2)2+b(2)=10

4a+2b=10

Differentiate f′(x) to get f′′(x):

f′′(x)=2ax+b

Now use f′′(2)=18:

2a(2)+b=16

4a+b=18

Now solve the system for a and b:

4a+2b=104a+b=18​​

Subtracting equation (2) from (1) gives b=−6. Substituting back gives a=6. Therefore,

f′(x)=6x2−6x

To find f(x), integrate f′(x):

f(x)=∫f′(x)dx

=∫(6x2−6x)dx

=2x3−3x2+C

The +C is required because this is an indefinite integral.

Now use (iii). Let F(x) be an antiderivative of f(x):

F(x)=∫(6x3−3x2+C)dx

=46x4​−x3+Cx

=23​x4−x3+Cx

We don’t add another constant here because we’re about to evaluate a definite integral using FTC Part 2:

∫24​f(x)=F(4)−F(2)

Using (iii),

F(4)−F(2)=60

[23​(4)4−(4)3+C(4)]−[23​(2)4−(2)3+C(2)]=60

(384−64+4C)−(24−8+2C)=60

304+2C=60

C=−122

Therefore,

f(x)=2x3−3x2−122​

Key points
  • A definite integral always produces a value while an indefinite integral produces a family of functions (don’t forget +C).