Back to How to Solve

How to Solve Integrals

Think of an integral as a structured way to ask: “What function has this derivative?”. Once you know a small set of antiderivative patterns (power, exponential, trig), you can solve many integrals quickly—and for harder ones, you choose the right technique (like substitution or integration by parts).

∫ Calculus⏱️ ~22 min read🔴 Advanced

Want integral steps (not just the final answer)?

Try our ai math solver to see the technique choice (basic rule vs u-sub vs parts) and a clean final result.

Solve Now →

What Does “Solve an Integral” Mean?

In most homework and exams, “solve the integral” means: find an antiderivative. If you see an integral sign with no bounds, like ∫ f(x) dx, it is an indefinite integral. Your answer is a family of functions because many different functions have the same derivative.

∫ f(x) dx = F(x) + C  where F′(x) = f(x)

That + C is not decoration: it represents the fact that derivatives “lose” constants (the derivative of any constant is 0). If the problem gives an initial condition (like F(0) = 2), you can solve for C.

A Reliable Workflow for Integrals

  1. Step 1: Simplify first. Expand or factor if it makes patterns clearer, and pull constants outside the integral.
  2. Step 2: Scan for “instant” patterns (power rule, 1/x, exponentials, basic trig).
  3. Step 3: If it’s not instant, ask: is it an “inside function” pattern? If yes, try substitution.
  4. Step 4: If it is a product of two different types of functions (polynomial × exponential or trig), try integration by parts.
  5. Step 5: Add + C and check by differentiating.

As a reference for standard antiderivative rules and examples, many students like the concise explanations in OpenStax Calculus (antiderivatives and indefinite integration). You don’t need to memorize every trick—just learn to recognize the most common patterns.

The “Core” Antiderivative Patterns

A big chunk of integral practice is pattern recognition. Here are the most-used building blocks. (Assume n ≠ −1 in the power rule.)

∫ x^n dx = x^(n+1)/(n+1) + C
∫ 1/x dx = ln|x| + C
∫ e^x dx = e^x + C
∫ a^x dx = a^x/ln(a) + C
∫ cos(x) dx = sin(x) + C
∫ sin(x) dx = −cos(x) + C

Two quick reminders:
1) Constants can come out: ∫ 7f(x) dx = 7∫ f(x) dx.
2) “Divide by the new exponent” is the power-rule memory hook.

Example 1: A Basic Indefinite Integral

Problem: Compute ∫ (3x^2 − 4x + 6) dx.

Integrate term-by-term using the power rule:

∫ (3x^2 − 4x + 6) dx
= 3∫ x^2 dx − 4∫ x dx + 6∫ 1 dx
= 3·(x^3/3) − 4·(x^2/2) + 6x + C
= x^3 − 2x^2 + 6x + C

Check: Differentiate x^3 − 2x^2 + 6x and you get 3x^2 − 4x + 6, so it matches.

When to Use Substitution (u-Sub)

Substitution is the go-to move when you see a function and (up to a constant) its derivative sitting next to it. The pattern looks like:

∫ f(g(x)) · g′(x) dx  →  let u = g(x)

In words: if the integrand has an “inside” expression (like 3x − 1, x^2 + 4, sin(x), etc.), try setting that inside expression equal to u.

Example 2: Substitution

Problem: Compute ∫ 2x · (x^2 + 5)^7 dx.

The “inside” is x^2 + 5, and its derivative is 2x, which we already have. Let u = x^2 + 5, then du = 2x dx.

∫ 2x · (x^2 + 5)^7 dx
= ∫ u^7 du
= u^8/8 + C
= (x^2 + 5)^8/8 + C

Check idea: Differentiate (x^2+5)^8/8 using the chain rule; you’ll get2x(x^2+5)^7.

When to Use Integration by Parts

Integration by parts is built from the product rule. It’s most useful when you have a product where one factor becomes simpler when you differentiate it (like a polynomial) and the other is easy to integrate (like e^x or sin(x)).

∫ u dv = u·v − ∫ v du

A practical selection tip: choose u so that du is simpler than u. Common choices for u: polynomials (x, x^2, ...), logarithms, inverse trig.

Example 3: Integration by Parts

Problem: Compute ∫ x e^x dx.

Choose u = x (so du = dx) and dv = e^x dx(so v = e^x). Then apply the formula.

∫ x e^x dx
= u·v − ∫ v du
= x·e^x − ∫ e^x dx
= x e^x − e^x + C
= e^x(x − 1) + C

Check: Differentiate e^x(x − 1). Using product rule, you get xe^x, which matches.

Common Mistakes (and How to Avoid Them)

Forgetting + C

Indefinite integrals represent a family of functions. Always include + C unless the problem is definite (has bounds) or gives an initial condition that determines C.

Power rule at n = −1

The power rule does not work for 1/x. Remember: ∫ 1/x dx = ln|x| + C.

Not adjusting dx in u-sub

If you set u = x^2 + 5, you must replace 2x dx with du. If you can’t rewrite the integrand fully in terms of u and du, the substitution isn’t finished.

Not checking

Differentiation is the fastest correctness test. If you have time for one extra step, do the derivative check.

Practice Problems (Try These)

  1. ∫ (5x^4 − 3x + 2) dx
  2. ∫ (1/x − 4e^x) dx
  3. ∫ 3x(x^2 + 1)^5 dx
  4. ∫ x\sin(x) dx

For each one, write the technique you chose (basic / substitution / parts) and then do a quick derivative check. That habit is what turns “I hope it’s right” into “I know it’s right.”

Want the Technique Picked for You?

Paste an integral and get a clear plan (basic rule vs u-sub vs parts) plus steps.

Try AI Math Solver →
How to Solve Integrals | A Step-by-Step Guide (with Examples)