Home→Math→Calculus→Integrals

Integral Rules and Formulas, With Examples

What an integral is, every basic integration rule and formula, the Fundamental Theorem of Calculus, u-substitution and integration by parts, with step-by-step examples and practice problems.

Practice Integrals Free
By LearnAppu Team · Last updated

What is an integral?

An integral adds up infinitely many tiny pieces to get a total. There are two kinds, and they are closely linked:

  • An indefinite integral, or antiderivative, reverses differentiation. Since the derivative of x² is 2x, an antiderivative of 2x is x². The answer is a family of functions, written with “+ C”:
  • A definite integral has limits a and b and gives a number: the net signed area between the curve and the x-axis from x = a to x = b. Area above the axis counts as positive and area below counts as negative.

The definite integral is defined as a limit: split [a, b] into thin rectangles, add their areas (a Riemann sum), and let the rectangles get infinitely thin. In the notation, ∫ is a stretched “S” for sum, f(x) is the height of each rectangle, and dx is its width.

The Fundamental Theorem of Calculus

The Fundamental Theorem connects the two kinds of integral and shows that integration and differentiation undo each other.

Part 1

The rate at which accumulated area grows is the height of the curve. With the chain rule: .

Part 2

To evaluate a definite integral, find any antiderivative, plug in the top limit, plug in the bottom limit and subtract. The + C cancels, so you can leave it out.

Integration rules

Every basic integration rule is a derivative rule read backward.

Power rule

Add 1 to the exponent, then divide by the new exponent. It is the power rule for derivatives run backward.

Constant multiple rule

Sum and difference rule

Constant rule

Integral formulas for common functions

Function f(x)

The 1/x rule fills the one gap in the power rule (n = −1). The absolute value is needed because ln only accepts positive inputs.

Properties of definite integrals

Integration techniques

u-substitution

The chain rule in reverse. Use it when the integrand contains a function and, up to a constant, that function's derivative:

  1. Let u be the “inside” function.
  2. Find du = u′(x) dx and solve for whatever is in the integral.
  3. Rewrite the whole integral in terms of u (no x left), and integrate.
  4. Substitute back to x. For a definite integral, change the limits to u-values instead.

Integration by parts

The product rule in reverse, for a product of two different kinds of functions:

Choose u with LIATE (Logarithmic, Inverse trig, Algebraic, Trigonometric, Exponential): whichever type comes first becomes u, because it gets simpler when differentiated. For ∫ ln x dx, take u = ln x and dv = dx to get x ln x − x + C.

Partial fractions and trig integrals

In Calculus 2 and AP Calculus BC you also split rational functions into simpler fractions, for example 1/(x(x + 1)) = 1/x − 1/(x + 1), whose integral is ln|x| − ln|x + 1| + C. You also use trig identities to integrate powers of sine and cosine.

Worked integral examples

Example 1: Power rule

Easy

∫ (3x² − 4x + 5) dx

Step 1: Integrate term by term
3·x³/3 − 4·x²/2 + 5x
Add 1 to each exponent and divide by the new exponent.
Step 2: Simplify and add C
x³ − 2x² + 5x + C
Check by differentiating: 3x² − 4x + 5 ✓
Final Answer:
x³ − 2x² + 5x + C

Example 2: Roots and 1/x

Easy

∫ (√x + 1/x) dx

Step 1: Rewrite the root
∫ (x^(1/2) + 1/x) dx
Step 2: Integrate each term
x^(3/2)/(3/2) + ln|x|
1/x is the exception to the power rule.
Step 3: Simplify
(2/3)x^(3/2) + ln|x| + C
Final Answer:
(2/3)x^(3/2) + ln|x| + C

Example 3: A definite integral

Easy

∫₁³ (2x + 1) dx

Step 1: Find an antiderivative
F(x) = x² + x
Step 2: Evaluate F(3) − F(1)
(9 + 3) − (1 + 1)
Fundamental Theorem, Part 2.
Step 3: Subtract
12 − 2 = 10
Final Answer:
10

Example 4: u-substitution

Medium

∫ 2x(x² + 1)⁴ dx

Step 1: Choose u
u = x² + 1, so du = 2x dx
The 2x dx is already in the integral.
Step 2: Rewrite in u
∫ u⁴ du
Step 3: Integrate
u⁵/5 + C
Step 4: Substitute back
(x² + 1)⁵/5 + C
Final Answer:
(x² + 1)⁵/5 + C

Example 5: u-substitution with limits

Medium

∫₀¹ x e^(x²) dx

Step 1: Choose u
u = x², du = 2x dx, so x dx = du/2
Step 2: Change the limits
x = 0 → u = 0; x = 1 → u = 1
Then you never have to substitute back.
Step 3: Integrate in u
(1/2)∫₀¹ eᵘ du = (1/2)[eᵘ]₀¹
Step 4: Evaluate
(1/2)(e − 1)
≈ 0.859
Final Answer:
(e − 1)/2

Example 6: Integration by parts

Hard

∫ x eˣ dx

Step 1: Choose u and dv (LIATE)
u = x, dv = eˣ dx
Algebraic comes before exponential.
Step 2: Find du and v
du = dx, v = eˣ
Step 3: Apply uv − ∫ v du
x eˣ − ∫ eˣ dx
Step 4: Finish
x eˣ − eˣ + C = (x − 1)eˣ + C
Check: the derivative of (x − 1)eˣ is eˣ + (x − 1)eˣ = x eˣ ✓
Final Answer:
(x − 1)eˣ + C

Example 7: Area between two curves

Medium

Find the area between y = x and y = x² from x = 0 to x = 1

Step 1: Decide which curve is on top
On [0, 1], x ≥ x²
At x = 0.5: 0.5 > 0.25.
Step 2: Integrate top minus bottom
∫₀¹ (x − x²) dx
Step 3: Evaluate
[x²/2 − x³/3]₀¹ = 1/2 − 1/3
Final Answer:
1/6 square units

What integrals are used for

  • Area. The area under y = x² from 0 to 2 is ∫₀² x² dx = 8/3.
  • Total change from a rate. Integrating velocity gives displacement; integrating a flow rate gives total volume.
  • Average value. The average of f on [a, b] is (1/(b − a)) ∫ f(x) dx over [a, b].
  • Volume. Rotating a region around an axis and integrating disc or washer areas gives the volume of a solid.
  • Accumulation in context. AP free-response questions often ask how much water is in a tank or how many people are in a park after some time, given a rate.

Common integration mistakes

  • Forgetting + C on indefinite integrals. It costs points on the AP exam.
  • Integrating a product factor by factor. ∫ x cos x dx is not (x²/2)(sin x). Use integration by parts.
  • Using the power rule on 1/x. It gives x⁰/0, which is undefined. The answer is ln|x| + C.
  • Leaving x in a u-substitution. Every x, including dx, must be replaced before you integrate.
  • Keeping x-limits after substituting. Either change the limits to u-values or substitute back first.
  • Sign errors with sine. ∫ sin x dx = −cos x + C. The minus sign is the opposite of the derivative rule.

Integrals practice problems (with answers)

Evaluate each integral. Try each one before opening the answer.

  1. ∫ x⁴ dx
    Show answer

    x⁵/5 + C

  2. ∫ (6x² + 2x) dx
    Show answer

    2x³ + x² + C

  3. ∫ 1/x³ dx
    Show answer

    −1/(2x²) + C (rewrite as x⁻³: x⁻²/(−2))

  4. ∫ 3/x dx
    Show answer

    3 ln|x| + C

  5. ∫ e^(3x) dx
    Show answer

    e^(3x)/3 + C (u = 3x)

  6. ∫ (sin x + cos x) dx
    Show answer

    −cos x + sin x + C

  7. ∫ x(x² + 3)² dx
    Show answer

    (x² + 3)³/6 + C (u = x² + 3, du = 2x dx)

  8. ∫ eˣ cos(eˣ) dx
    Show answer

    sin(eˣ) + C (u = eˣ)

  9. ∫₀² x³ dx
    Show answer

    4 (x⁴/4 from 0 to 2: 16/4 − 0)

  10. ∫₀^(π/2) cos x dx
    Show answer

    1 (sin(π/2) − sin 0)

Every rule on this page is also on the free AP Calculus formula sheet.

Learn integrals with LearnAppu

Integration is covered in Units 6 and 8 of LearnAppu's AP Calculus course. Each topic has a concept lesson on area and accumulation, worked examples for every technique, adaptive skill practice, and Doctor Mode, where an AI tutor finds the exact step where a substitution or a limit of integration went wrong. The first lesson is free.

Frequently asked questions

What is an integral in simple terms?

An integral adds up infinitely many tiny pieces to find a total. A definite integral gives a number: the net area between a curve and the x-axis, or the total change of a quantity, such as the distance traveled from a velocity. An indefinite integral (an antiderivative) gives a function whose derivative is the original function.

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

An indefinite integral, ∫ f(x) dx, has no limits and gives a family of functions plus a constant C. A definite integral, ∫ from a to b of f(x) dx, has limits and gives a single number. The Fundamental Theorem of Calculus connects them: evaluate an antiderivative at b and at a and subtract.

Why do you add + C to an integral?

Because the derivative of any constant is 0, functions like x² + 1, x² − 7 and x² all have the same derivative, 2x. So the antiderivative of 2x is x² + C, where C stands for any constant. Definite integrals do not need + C because it cancels when you subtract.

What are the basic integration rules?

The basic rules are the power rule (∫ xⁿ dx = xⁿ⁺¹/(n + 1) + C for n ≠ −1), the constant multiple and sum rules, ∫ 1/x dx = ln|x| + C, ∫ eˣ dx = eˣ + C, and the integrals of the trig functions, such as ∫ cos x dx = sin x + C and ∫ sin x dx = −cos x + C.

When should I use u-substitution?

Use u-substitution when the integrand contains a function and, up to a constant factor, that function's derivative, as in ∫ 2x(x² + 1)⁴ dx, where 2x is the derivative of x² + 1. Let u be the inside function, replace du, integrate in terms of u, then substitute back. It is the chain rule in reverse.

When should I use integration by parts?

Use integration by parts for a product of two different kinds of functions, such as x eˣ, x sin x or ln x. The formula is ∫ u dv = uv − ∫ v du. Choose u using LIATE (logarithmic, inverse trig, algebraic, trigonometric, exponential): pick whichever type comes first.

What is the Fundamental Theorem of Calculus?

It connects derivatives and integrals. Part 1 says that if F(x) is the integral of f from a fixed number to x, then F′(x) = f(x): integration and differentiation undo each other. Part 2 says ∫ from a to b of f(x) dx = F(b) − F(a) for any antiderivative F, which is how definite integrals are evaluated.

Make integration click.

Step-by-step lessons and an AI tutor that explains the step you missed. Start the first lesson free.

Start Your Free Calculus Lesson