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
Wrapping up
Achievable logoAchievable logo
6.7 Indefinite integrals
Achievable AP Calculus AB
6. Integration
Our AP Calculus AB course is now in "early access" - get 50% off for a limited time.

Indefinite integrals

6 min read
Font
Discuss
Share
Feedback

What you’ll learn

  • Difference between definite and indefinite integrals
  • Key integration rules

Integration can be performed without or with boundaries.

  1. Definite integrals (∫ab​f(x)dx):

Bound by an interval [a,b], these calculate the net accumulated area under a curve and evaluate to a single number.

  1. Indefinite integrals (∫f(x)dx):

These have no limits of integration. They reverse differentiation to find the general antiderivative, resulting in a family of functions that differ only by a constant.

The constant of integration (+C)

When finding an indefinite integral, you are reversing differentiation to find the original function. However, functions that differ only by a vertical shift share the exact same derivative. For example, consider the three functions:

F(x)G(x)H(x)​=x2−1=x2+100=x2+π​

Because the derivative of any constant is 0, differentiating all three yields the same result:

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

When integrating 2x, we don’t know which specific vertical shift the original function had without additional information.

To account for this, indefinite integrals always include the constant of integration +C. The result of this indefinite integral

∫2xdx=x2+C

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 an initial condition (a specific point on the curve) is given to solve for C.

The reverse power rule handles the integration of most power functions:

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

for n=−1.

The special case of n=−1

If we attempt to integrate f(x)=x−1 using the reverse power rule, we run into a division-by-zero problem:

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

Instead, reverse a known derivative rule. Since

dxd​(lnx)=x1​

then

∫x1​dx=ln∣x∣+C

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

Power and exponential:

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

Trigonometric:

f(x) Indefinite integral
sinx −cosx+C
cosx sinx+C
sec2x tanx+C
csc2x −cotx+C
secxtanx secx+C
cscxcotx −cscx+C

Inverse trigonometric:

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

Note: The integrals for the co-functions (cos−1(x), cot−1(x), and csc−1(x)) are simply the negative counterparts of the rules above, as established in section 3.6.

Example 1: Applying foundational rules

Find the indefinite integral

∫(3ex+x4​−5cscxcotx)dx

Solution

(spoiler)

Integrate each term individually using the basic rules from the table. Remember to include the constant of integration (+C) at the very end:

​∫(3ex+x4​−5cscxcotx)dx=3ex+4ln∣x∣−(−5cscx)+C=3ex+4ln∣x∣+5cscx+C​​

Example 2: Rewriting before integrating

Find the indefinite integral

∫cos2x1−2sinx​dx

Solution

(spoiler)

First, use algebra to split the fraction and simplify the trig terms:

∫(cos2x1​−cos2x2sinx​)dx=sec2(x)−2secxtanx

Applying the rules of integration gives:

tanx−2secx+C​

Example 3: Finding f(x)

So far, our indefinite integrals have included +C to represent the entire family of curves, known as the general solution.

However, if the problem gives an initial condition, which is a specific point that the original function passes through, we can anchor the graph and solve for an exact value of C to one specific, or particular, solution to define the function.

If f′(x)=2x(x−2)2​ and f(1)=5, find the particular solution of f(x).

Solution

(spoiler)

We are given the derivative f′(x)=2x(x−2)2​, which means we can find the general solution of f(x) by taking the indefinite integral.

f(x)=∫x(x−2)2​dx

First, use algebra to expand the polynomial numerator and then simplify by splitting the fraction:

f(x)​=∫2xx2−4x+4​dx=∫(2xx2​−2x4x​+2x4​)dx=∫(21​x−2+x2​)dx​

Then, applying integration rules,

f(x)=41​x2−2x+2ln∣x∣+C

To find the particular solution, use the given condition f(1)=5. Substitute x=1 to find C:

55C​=41​(1)2−2(1)+2ln(1)+C=−47​+C=427​​

Therefore, the particular solution of f(x) that satisfies the initial condition (meaning passes through the point and has the derivative f′(x) that is given), is

f(x)=41​x2−2x+2ln∣x∣+427​

Example 4: Using your calculator

In the previous section, we used the integral tool in Desmos to simplify the arithmetic involved in applying the FTC.

Similarly, some complicated integrals on the calculator-permitted sections of the exam are not intended to be evaluated by hand. You’ll save valuable time by using your calculator to evaluate the definite integral directly.

Sidenote
Desmos: Definite integral tool

Desmos requires you enter the bounds of integration - it won’t be able to give you the antiderivative itself.

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)

To find the total amount released (in grams) over a time interval, integrate the rate function over the interval.

Set up this definite integral in Desmos exactly as shown:

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

which gives 8557 grams of pollutant as the amount released.

Definite vs. indefinite integrals

  • Definite integral ∫ab​f(x)dx: bound by interval [a,b], evaluates to a single number
  • Indefinite integral ∫f(x)dx: no bounds, returns a family of functions (general antiderivative)

Constant of integration (+C)

  • Functions differing only by a constant share the same derivative, so the original shift is unknown
  • All indefinite integrals must include +C unless an initial condition is given to solve for it

Reverse power rule

  • ∫xndx=n+1xn+1​+C, valid for n=−1
  • Special case: ∫x1​dx=ln∣x∣+C (division by zero occurs if power rule is applied)

Core integration rules

  • Exponential: ∫exdx=ex+C; ∫axdx=lnaax​+C
  • Trig: ∫sinxdx=−cosx+C; ∫cosxdx=sinx+C; ∫sec2xdx=tanx+C
  • Inverse trig: ∫1+x21​dx=tan−1(x)+C; ∫1−x2​1​dx=sin−1(x)+C

Integration strategies

  • Split fractions or expand polynomials algebraically before integrating when needed
  • Integrate term-by-term for sums/differences

Particular solutions (initial conditions)

  • General solution includes +C; a given point f(a)=b allows solving for exact C
  • Substituting the initial condition into the general solution yields the particular solution

Calculator use for definite integrals

  • Use Desmos for complex definite integrals on calculator-permitted sections
  • Desmos evaluates numerical results only (requires bounds; cannot return symbolic antiderivatives)

Sign up for free to take 4 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

Integration can be performed without or with boundaries.

  1. Definite integrals (∫ab​f(x)dx):

Bound by an interval [a,b], these calculate the net accumulated area under a curve and evaluate to a single number.

  1. Indefinite integrals (∫f(x)dx):

These have no limits of integration. They reverse differentiation to find the general antiderivative, resulting in a family of functions that differ only by a constant.

The constant of integration (+C)

When finding an indefinite integral, you are reversing differentiation to find the original function. However, functions that differ only by a vertical shift share the exact same derivative. For example, consider the three functions:

F(x)G(x)H(x)​=x2−1=x2+100=x2+π​

Because the derivative of any constant is 0, differentiating all three yields the same result:

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

When integrating 2x, we don’t know which specific vertical shift the original function had without additional information.

To account for this, indefinite integrals always include the constant of integration +C. The result of this indefinite integral

∫2xdx=x2+C

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 an initial condition (a specific point on the curve) is given to solve for C.

The reverse power rule handles the integration of most power functions:

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

for n=−1.

The special case of n=−1

If we attempt to integrate f(x)=x−1 using the reverse power rule, we run into a division-by-zero problem:

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

Instead, reverse a known derivative rule. Since

dxd​(lnx)=x1​

then

∫x1​dx=ln∣x∣+C

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

Power and exponential:

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

Trigonometric:

f(x) Indefinite integral
sinx −cosx+C
cosx sinx+C
sec2x tanx+C
csc2x −cotx+C
secxtanx secx+C
cscxcotx −cscx+C

Inverse trigonometric:

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

Note: The integrals for the co-functions (cos−1(x), cot−1(x), and csc−1(x)) are simply the negative counterparts of the rules above, as established in section 3.6.

Example 1: Applying foundational rules

Find the indefinite integral

∫(3ex+x4​−5cscxcotx)dx

Solution

(spoiler)

Integrate each term individually using the basic rules from the table. Remember to include the constant of integration (+C) at the very end:

​∫(3ex+x4​−5cscxcotx)dx=3ex+4ln∣x∣−(−5cscx)+C=3ex+4ln∣x∣+5cscx+C​​

Example 2: Rewriting before integrating

Find the indefinite integral

∫cos2x1−2sinx​dx

Solution

(spoiler)

First, use algebra to split the fraction and simplify the trig terms:

∫(cos2x1​−cos2x2sinx​)dx=sec2(x)−2secxtanx

Applying the rules of integration gives:

tanx−2secx+C​

Example 3: Finding f(x)

So far, our indefinite integrals have included +C to represent the entire family of curves, known as the general solution.

However, if the problem gives an initial condition, which is a specific point that the original function passes through, we can anchor the graph and solve for an exact value of C to one specific, or particular, solution to define the function.

If f′(x)=2x(x−2)2​ and f(1)=5, find the particular solution of f(x).

Solution

(spoiler)

We are given the derivative f′(x)=2x(x−2)2​, which means we can find the general solution of f(x) by taking the indefinite integral.

f(x)=∫x(x−2)2​dx

First, use algebra to expand the polynomial numerator and then simplify by splitting the fraction:

f(x)​=∫2xx2−4x+4​dx=∫(2xx2​−2x4x​+2x4​)dx=∫(21​x−2+x2​)dx​

Then, applying integration rules,

f(x)=41​x2−2x+2ln∣x∣+C

To find the particular solution, use the given condition f(1)=5. Substitute x=1 to find C:

55C​=41​(1)2−2(1)+2ln(1)+C=−47​+C=427​​

Therefore, the particular solution of f(x) that satisfies the initial condition (meaning passes through the point and has the derivative f′(x) that is given), is

f(x)=41​x2−2x+2ln∣x∣+427​

Example 4: Using your calculator

In the previous section, we used the integral tool in Desmos to simplify the arithmetic involved in applying the FTC.

Similarly, some complicated integrals on the calculator-permitted sections of the exam are not intended to be evaluated by hand. You’ll save valuable time by using your calculator to evaluate the definite integral directly.

Sidenote
Desmos: Definite integral tool

Desmos requires you enter the bounds of integration - it won’t be able to give you the antiderivative itself.

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)

To find the total amount released (in grams) over a time interval, integrate the rate function over the interval.

Set up this definite integral in Desmos exactly as shown:

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

which gives 8557 grams of pollutant as the amount released.

Key points

Definite vs. indefinite integrals

  • Definite integral ∫ab​f(x)dx: bound by interval [a,b], evaluates to a single number
  • Indefinite integral ∫f(x)dx: no bounds, returns a family of functions (general antiderivative)

Constant of integration (+C)

  • Functions differing only by a constant share the same derivative, so the original shift is unknown
  • All indefinite integrals must include +C unless an initial condition is given to solve for it

Reverse power rule

  • ∫xndx=n+1xn+1​+C, valid for n=−1
  • Special case: ∫x1​dx=ln∣x∣+C (division by zero occurs if power rule is applied)

Core integration rules

  • Exponential: ∫exdx=ex+C; ∫axdx=lnaax​+C
  • Trig: ∫sinxdx=−cosx+C; ∫cosxdx=sinx+C; ∫sec2xdx=tanx+C
  • Inverse trig: ∫1+x21​dx=tan−1(x)+C; ∫1−x2​1​dx=sin−1(x)+C

Integration strategies

  • Split fractions or expand polynomials algebraically before integrating when needed
  • Integrate term-by-term for sums/differences

Particular solutions (initial conditions)

  • General solution includes +C; a given point f(a)=b allows solving for exact C
  • Substituting the initial condition into the general solution yields the particular solution

Calculator use for definite integrals

  • Use Desmos for complex definite integrals on calculator-permitted sections
  • Desmos evaluates numerical results only (requires bounds; cannot return symbolic antiderivatives)

More from Integration

  • Accumulation of change
  • Riemann sums & area
  • Definite integrals
  • Accumulation functions
  • Behavior of accumulation functions