Indefinite Integral Notes

Published on: September 29, 2026

These Indefinite Integral Notes explain how to find the antiderivative of a function, with the working shown line by line. The method first works out which rule of integration the function needs, since a power, a reciprocal, an exponential and a quotient are each undone differently, and only then does it apply that rule. The constant of integration is added at the end, because any constant vanishes when differentiated. Following the same pattern every time keeps the choice of rule visible.

Step-by-step method

  1. Set up the problem.
  2. Identify the integration rule that applies.
  3. Work through the steps of that rule.
  4. Simplify and add the constant of integration C.

Formula: Indefinite Integral

The indefinite integral F(x) + C stands for every function whose derivative is f(x). Pick the rule that fits and apply it.

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

Formula: Power Rule for Integration

Raise the power of x by one, then divide by the new power. This works for every power except -1.

\(\int x^{n}\, dx = \frac{x^{n+1}}{n+1} + C, \quad n \neq -1\)

Formula: Constant Rule for Integration

The integral of a number on its own is that number times x.

\(\int k\, dx = kx + C\)

Formula: Constant Multiple Rule for Integration

A number multiplying a function moves outside the integral, and only the function is integrated.

\(\int k \cdot f\left(x\right)\, dx = k\int f\left(x\right)\, dx\)

Formula: Sum Rule for Integration

The integral of a sum is the sum of the integrals, so each term is integrated on its own and the results are added.

\(\int \left(f\left(x\right) + g\left(x\right)\right)\, dx = \int f\left(x\right)\, dx + \int g\left(x\right)\, dx\)

Formula: Difference Rule for Integration

The integral of a difference is the difference of the integrals, so each term is integrated on its own and the results are subtracted.

\(\int \left(f\left(x\right) - g\left(x\right)\right)\, dx = \int f\left(x\right)\, dx - \int g\left(x\right)\, dx\)

Formula: Integral of 1/x

The integral of 1 over x is the natural log of the absolute value of x. It is the one power the power rule cannot do.

\(\int \frac{1}{x}\, dx = \ln\left|x\right| + C\)

Formula: Integral of e to the x

The function e to the x is its own integral.

\(\int e^{x}\, dx = e^{x} + C\)

Formula: Integral of a to the x

For any positive base a, the integral of a to the x is a to the x divided by the natural log of a.

\(\int a^{x}\, dx = \frac{a^{x}}{\ln\left(a\right)} + C\)

Formula: Integral of sin(x)

The integral of sin(x) is minus cos(x).

\(\int \sin{\left(x \right)}\, dx = -\cos\left(x\right) + C\)

Formula: Integral of cos(x)

The integral of cos(x) is sin(x).

\(\int \cos{\left(x \right)}\, dx = \sin\left(x\right) + C\)

Formula: Integral of sec squared of x

The integral of sec squared of x is tan(x).

\(\int \sec^{2}{\left(x \right)}\, dx = \tan\left(x\right) + C\)

Formula: Integral of csc squared of x

The integral of csc squared of x is minus cot(x).

\(\int \csc^{2}{\left(x \right)}\, dx = -\cot\left(x\right) + C\)

Formula: Integral of sec(x)tan(x)

The integral of sec(x) times tan(x) is sec(x).

\(\int \tan{\left(x \right)} \sec{\left(x \right)}\, dx = \sec\left(x\right) + C\)

Formula: Integral of csc(x)cot(x)

The integral of csc(x) times cot(x) is minus csc(x).

\(\int \cot{\left(x \right)} \csc{\left(x \right)}\, dx = -\csc\left(x\right) + C\)

Formula: Integral of tan(x)

The integral of tan(x) is the natural log of the absolute value of sec(x).

\(\int \tan{\left(x \right)}\, dx = \ln\left|\sec\left(x\right)\right| + C\)

Formula: Integral of 1/(1 + x squared)

The integral of 1 over 1 plus x squared is arctan(x).

\(\int \frac{1}{x^{2} + 1}\, dx = \arctan\left(x\right) + C\)

Formula: U Substitution

When the integral has a function inside another function, times the derivative of that inside, replace the inside with u.

\(\int f\left(g\left(x\right)\right) g'\left(x\right)\, dx = \int f\left(u\right) \, du, \quad u = g\left(x\right)\)

Formula: Integration by Parts

For a product of two functions, pick u to differentiate and dv to integrate, then use uv minus the integral of v du.

\(\int u \, dv = uv - \int v \, du\)

Formula: Partial Fractions

A fraction whose bottom factors into brackets splits into simpler fractions, one for each bracket.

\(\frac{P\left(x\right)}{Q\left(x\right)} = \frac{A}{x - a} + \frac{B}{x - b} + \cdots\)

Useful Tips to Remember

An indefinite integral is the reverse of differentiation, so always add \(+C\), because a constant disappears when you differentiate. Choose the right method for the function: basic rules, substitution, integration by parts or partial fractions. Differentiating your answer should give back the original function, which is the best way to check it.

Required knowledge

Where Are Indefinite Integrals Used?

An indefinite integral, or antiderivative, works backwards from a rate of change to find the original function, plus a constant \(C\). It is how physicists find position from velocity and velocity from acceleration, and how economists find total cost from marginal cost. Engineers use it to build formulas for the bending of beams and the charge in circuits, and it is the first step in solving many differential equations. A starting value, such as an initial position, then fixes the constant and gives the exact formula.

  • Finding position from velocity and velocity from acceleration
  • Working out total cost from marginal cost
  • Solving differential equations in science
  • Finding formulas for beam bending and electric charge
  • Recovering a function from its gradient

Indefinite Integral Practice Problems

Example 1 integrates the polynomial \(x^5 - 3x^2\), and Example 2 integrates \(\sin x\). Examples 3 and 4 give you two more of the same kind to try, \(\int x^{4} + 2 x\, dx\) and \(\int \cos{\left(x \right)}\, dx\). Try each one yourself, remembering \(+C\), before checking.

The worked examples below go through the same pattern from start to finish, so you can compare every step with your own working. Try each problem on paper first, then open the example and check your working one step at a time, so you can see exactly which step went wrong if your answer does not match. Use them to check your answers and to understand why each step works.

See Example 1 Hide Example 1

Problem

\(\int x^{5} - 3 x^{2}\, dx\)

Approach

Step-by-step method

  1. Set up the problem.
  2. Identify the integration rule that applies.
  3. Work through the steps of that rule.
  4. Simplify and add the constant of integration C.

Formula

Formula: Difference Rule for Integration

The integral of a difference is the difference of the integrals, so each term is integrated on its own and the results are subtracted.

\(\int \left(f\left(x\right) - g\left(x\right)\right)\, dx = \int f\left(x\right)\, dx - \int g\left(x\right)\, dx\)

Step 1

Step 1 - Set up the terms in the difference.

In this problem: We are integrating a difference. The separate terms are \(x^{5}\), \(3 x^{2}\).

\(\int x^{5} - 3 x^{2}\, dx\)

Step 2

Step 2 - Write the difference rule for integration.

In this problem: The integral of a difference is the difference of the integrals.

\(\int \left(f\left(x\right) - g\left(x\right)\right)\, dx = \int f\left(x\right)\, dx - \int g\left(x\right)\, dx\)

Step 3

Step 3 - Split the integral across the subtraction signs.

In this problem: Apply the integral to each separated term, keeping each sign.

\(\int \left(x^{5} - 3 x^{2}\right)\, dx = \int x^{5}\, dx - \int 3 x^{2}\, dx\)

Step 4a

Step 4a - Integrate the separated term \(x^{5}\).

In this problem: The separated term is \(x^{5}\).

\(\int x^{5}\, dx = \frac{x^{6}}{6}\)

Step 4b

Step 4b - Integrate the separated term \(3 x^{2}\).

In this problem: The separated term is \(3 x^{2}\).

\(\int 3 x^{2}\, dx = x^{3}\)

Step 5

Step 5 - Combine the results and add the constant of integration C.

In this problem: Put the integral of each term back together, keeping the signs, and add one constant C.

\(\int \left(x^{5} - 3 x^{2}\right)\, dx = \frac{x^{6}}{6} - x^{3} + C\)

Final Answer

\(\int x^{5} - 3 x^{2}\, dx = \frac{x^{6}}{6} - x^{3} + C\)
See Example 2 Hide Example 2

Problem

\(\int \sin{\left(x \right)}\, dx\)

Approach

Step-by-step method

  1. Set up the problem.
  2. Identify the integration rule that applies.
  3. Work through the steps of that rule.
  4. Simplify and add the constant of integration C.

Formula

Formula: Integral of sin(x)

The integral of sin(x) is minus cos(x).

\(\int \sin{\left(x \right)}\, dx = -\cos\left(x\right) + C\)

Step 1

Step 1 - Set up the problem.

In this problem: The trigonometric form is \(\sin{\left(x \right)}\).

\(\int \sin{\left(x \right)}\, dx\)

Step 2

Step 2 - Write the integration rule for that form.

In this problem: Each standard trigonometric form has a known antiderivative.

\(\int \sin{\left(x \right)}\, dx = -\cos\left(x\right) + C\)

Step 3

Step 3 - Apply the integration rule and add C.

In this problem: Put \(\sin{\left(x \right)}\) into the rule from Step 2.

\(F\left(x\right) = \int \sin{\left(x \right)}\, dx = -\cos\left(x\right) + C\)

Final Answer

\(\int \sin{\left(x \right)}\, dx = -\cos\left(x\right) + C\)
See Example 3 Hide Example 3

Problem

\(\int x^{4} + 2 x\, dx\)

Approach

Step-by-step method

  1. Set up the problem.
  2. Identify the integration rule that applies.
  3. Work through the steps of that rule.
  4. Simplify and add the constant of integration C.

Formula

Formula: Sum Rule for Integration

The integral of a sum is the sum of the integrals, so each term is integrated on its own and the results are added.

\(\int \left(f\left(x\right) + g\left(x\right)\right)\, dx = \int f\left(x\right)\, dx + \int g\left(x\right)\, dx\)

Step 1

Step 1 - Set up the terms in the sum.

In this problem: We are integrating a sum. The separate terms are \(x^{4}\), \(2 x\).

\(\int x^{4} + 2 x\, dx\)

Step 2

Step 2 - Write the sum rule for integration.

In this problem: The integral of a sum is the sum of the integrals.

\(\int \left(f\left(x\right) + g\left(x\right)\right)\, dx = \int f\left(x\right)\, dx + \int g\left(x\right)\, dx\)

Step 3

Step 3 - Split the integral across the addition signs.

In this problem: Apply the integral to each separated term, keeping each sign.

\(\int \left(x^{4} + 2 x\right)\, dx = \int x^{4}\, dx + \int 2 x\, dx\)

Step 4a

Step 4a - Integrate the separated term \(x^{4}\).

In this problem: The separated term is \(x^{4}\).

\(\int x^{4}\, dx = \frac{x^{5}}{5}\)

Step 4b

Step 4b - Integrate the separated term \(2 x\).

In this problem: The separated term is \(2 x\).

\(\int 2 x\, dx = x^{2}\)

Step 5

Step 5 - Combine the results and add the constant of integration C.

In this problem: Put the integral of each term back together, keeping the signs, and add one constant C.

\(\int \left(x^{4} + 2 x\right)\, dx = \frac{x^{5}}{5} + x^{2} + C\)

Final Answer

\(\int x^{4} + 2 x\, dx = \frac{x^{5}}{5} + x^{2} + C\)
See Example 4 Hide Example 4

Problem

\(\int \cos{\left(x \right)}\, dx\)

Approach

Step-by-step method

  1. Set up the problem.
  2. Identify the integration rule that applies.
  3. Work through the steps of that rule.
  4. Simplify and add the constant of integration C.

Formula

Formula: Integral of cos(x)

The integral of cos(x) is sin(x).

\(\int \cos{\left(x \right)}\, dx = \sin\left(x\right) + C\)

Step 1

Step 1 - Set up the problem.

In this problem: The trigonometric form is \(\cos{\left(x \right)}\).

\(\int \cos{\left(x \right)}\, dx\)

Step 2

Step 2 - Write the integration rule for that form.

In this problem: Each standard trigonometric form has a known antiderivative.

\(\int \cos{\left(x \right)}\, dx = \sin\left(x\right) + C\)

Step 3

Step 3 - Apply the integration rule and add C.

In this problem: Put \(\cos{\left(x \right)}\) into the rule from Step 2.

\(F\left(x\right) = \int \cos{\left(x \right)}\, dx = \sin\left(x\right) + C\)

Final Answer

\(\int \cos{\left(x \right)}\, dx = \sin\left(x\right) + C\)

Calculator and Practice Mode