§ CALCULUS · 24 MIN READ · Updated 2026-05-13
How to Solve Integrals: Step-by-Step Methods
The most-searched calculus question on the internet — answered with worked examples, not just techniques.
"What I cannot create, I do not understand."

An integral is, intuitively, an accumulation. The function tells you how much of something is happening at each point. The integral
tells you the total amount between and . If represents speed at time , the integral is total distance traveled. If represents the cross-sectional area of a solid at position , the integral is the volume. If represents the probability density of a random variable, the integral is the probability of falling in the interval .
This article covers what integration actually is, the fundamental theorem of calculus that makes integration computable, the basic integration rules, the substitution technique (the most-used method), integration by parts, trigonometric integrals and substitutions, partial fractions, improper integrals, numerical methods for non-integrable functions, common pitfalls, and a structured approach for choosing the right technique.
What integration actually is
Two different intuitions converge on the same operation.
Intuition 1 — Area under a curve.
Draw the graph of a positive function . The integral is the area of the region bounded above by the curve, below by the x-axis, and on the sides by the vertical lines and .
This is the geometric interpretation, and it is how integration was originally understood. Archimedes used a precursor of integration (the method of exhaustion) to compute areas of curved regions in the third century BCE.
Intuition 2 — Accumulation.
If describes a rate of change — speed, water flow, marginal cost — then is the total amount accumulated between and .
This is the physical interpretation, and it is the most useful for applications. A car going at constantly changing speed travels a distance equal to the integral of its speed.
The Riemann sum makes both intuitions precise. Divide the interval into small subintervals of width . In each subinterval, pick a point . The sum
approximates the area (or the accumulation). As (the subintervals get smaller), the sum approaches the exact integral:
This is the formal definition. In practice, you almost never compute integrals from the definition — you use the techniques described below.
The fundamental theorem of calculus
The fundamental theorem says: integration and differentiation are inverse operations.
Formally, if is any antiderivative of (meaning ), then
This is enormous. It says that to compute an integral, you do not need to compute Riemann sums. You just need to find an antiderivative of the integrand, and evaluate it at the endpoints.
Example 1: Compute .
The antiderivative of is (you can verify: ). So:
The whole integration boils down to finding an antiderivative. The techniques below are techniques for finding antiderivatives.
Basic integration rules
Memorize these. They are the building blocks.
Power rule (for integration):
The constant is the constant of integration: any constant differentiates to zero, so the antiderivative is determined only up to an added constant. (For definite integrals — those with limits like — the constants cancel when you evaluate at endpoints.)
For :
Exponential and logarithmic:
Trigonometric:
Linearity:
This means you can split sums and pull constants outside integrals.
Example 2: Compute .
Apply linearity, then the power rule:
Substitution (u-substitution): the most-used technique
When the integrand contains a function and (something close to) its derivative, substitution simplifies the integral.
The setup. If the integrand is of the form , then setting gives , and the integral becomes
The original integral, which might have been hard, becomes a simpler integral in .
Example 3: Compute .
Notice that . Set , so . The integral becomes:
Example 4: Compute .
Set , so . The integral becomes:
(We can drop the absolute value because always.)
Example 5 — substitution that requires adjustment: Compute .
Set , so , which means . The integral becomes:
The key recognition skill: looking at an integral and spotting "this is a function of something whose derivative appears." Practice this with many examples.
Integration by parts
When substitution does not work, integration by parts often does. It comes from the product rule for differentiation.
Formula:
To use it: identify part of the integrand to call , the rest to call . Differentiate to get ; integrate to get . Substitute.
The choice of and matters. A common mnemonic: LIATE — choose in this order of preference:
- Logarithmic functions
- Inverse trig functions
- Algebraic functions (polynomials)
- Trigonometric functions
- Exponential functions
Example 6: Compute .
Algebraic comes before exponential in LIATE, so set , . Then and . Apply the formula:
Example 7: Compute .
Set , . Then , . Apply:
Example 8 — integration by parts twice: Compute .
Set , . Then , . Apply:
We computed above. Substitute:
Trigonometric integrals and substitutions
A small library of techniques handles most integrals involving trigonometric functions.
Powers of sine and cosine. Use the identities and for even powers, or save one factor and convert the rest for odd powers.
Example 9: Compute .
Rewrite: . Substitute , :
Trigonometric substitution. When an integral contains , , or , substituting a trigonometric function for often simplifies it.
For : set . For : set . For : set .
Example 10: Compute .
Set , so and . The integral becomes:
Substitute back. Since , we have and .
Partial fractions
When the integrand is a rational function where the degree of is less than the degree of , factor and decompose the fraction into simpler pieces.
Example 11: Compute .
Factor: . Decompose:
Multiply both sides by : . Set : , so . Set : , so .
For repeated roots and quadratic factors, the decomposition is more elaborate, but the principle is the same.
Improper integrals
An improper integral is one where either the interval is infinite, or the integrand is unbounded somewhere in the interval.
Type 1 — infinite interval:
The integral converges to 1.
Type 2 — unbounded integrand:
Converges to 2.
Some improper integrals diverge — they fail to be finite. The integral diverges (the antiderivative grows without bound).
Numerical integration
Many integrals cannot be expressed in closed form. The integral (central to probability theory — it gives the area under the normal distribution up to ) has no antiderivative in terms of elementary functions.
When closed form fails, numerical methods compute approximate values:
Trapezoidal rule:
where and .
Simpson's rule is more accurate:
(requires to be even).
For software computation, libraries like SciPy's quad use adaptive methods that achieve high accuracy automatically.
Common pitfalls
Pitfall 1 — Forgetting the constant of integration. For indefinite integrals (without limits), always include the . Forgetting it is a standard exam mistake.
Pitfall 2 — Sign errors in integration by parts. The formula is . The minus sign in front of the second integral is missed regularly. Double-check.
Pitfall 3 — Forgetting to change limits when using substitution in definite integrals. When you set , the original limits and become and . If you forget this, your answer will be wrong.
Example 12: Compute .
Substitute , . When , ; when , . So:
(About 1.718.)
Pitfall 4 — Trying the wrong technique. Most integrals can be solved by one of substitution, parts, or partial fractions. If you have spent ten minutes on a problem and made no progress, the technique is wrong. Try another.
A structured approach to choosing the technique
When you encounter an unfamiliar integral, work through this checklist:
- Is it a basic form? Check the table of basic integrals first.
- Does substitution apply? Look for patterns. This is the most common technique.
- Is the integrand a product? Try integration by parts. LIATE for choice of .
- Does it involve or ? Try trigonometric substitution.
- Is it a rational function? Try partial fractions.
- Does the integrand have trig powers? Use trig identities or save-one-factor techniques.
- None of the above? It might be a non-elementary integral. Try numerical methods.
Most students can solve 90% of textbook integrals with substitution, by parts, and partial fractions. The remaining 10% require trigonometric substitution or numerical methods.
Frequently asked
- Why is integration harder than differentiation?
- Differentiation is mechanical: every function built from elementary operations has a derivative that is also built from elementary operations. Integration is not: many elementary-looking functions (like $e^{-x^2}$) have no elementary antiderivative. There is no general algorithm for integration that always succeeds. This is why integration is a craft — you build a library of recognized patterns and try each one.
- What does "the integral of $fquot; mean exactly?
- Ambiguous, depending on context. "The integral of $fquot; usually means an antiderivative — a function $F$ with $F'(x) = f(x)$. "The integral of $f$ from $a$ to $bquot; means the definite integral — a number equal to $F(b) - F(a)$.
- Why is there a constant of integration?
- Because constants differentiate to zero. If $F(x) = x^3$ is an antiderivative of $3x^2$, so is $G(x) = x^3 + 7$, $H(x) = x^3 - \pi$, and any other shift. The general antiderivative is $F(x) + C$, where $C$ is any real number.
- When do I use $u$-substitution vs integration by parts?
- Substitution works when you can spot a function and its derivative inside the integrand. Integration by parts works when the integrand is a product of two different types of functions (e.g., a polynomial and an exponential). If you cannot decide, try substitution first — it is faster when it works.
- What is the difference between definite and indefinite integrals?
- A *definite* integral $\int_a^b f(x) \, dx$ produces a number — the accumulated quantity over the interval. An *indefinite* integral $\int f(x) \, dx$ produces a function (with an arbitrary constant). The fundamental theorem connects them: definite integral = $F(b) - F(a)$, where $F$ is any indefinite integral.
- How do I compute integrals on a calculator or computer?
- For numerical evaluation: most graphing calculators have a built-in `fnInt` function. For software: Python's `scipy.integrate.quad`, MATLAB's `integral`, Mathematica's `Integrate`, or Wolfram Alpha for one-off queries. For symbolic antiderivatives: Mathematica or SymPy (Python).
- What are the most important applications of integration in real life?
- In physics: computing distances from speeds, work from forces, volumes of solids, fields from densities. In economics: total cost from marginal cost, consumer surplus. In probability: cumulative probabilities, expectations, variances. In machine learning: less direct, but the loss functions being optimized are integrals when working with continuous data.
— ACT —
Cited works & further reading
- ·Stewart, J. (2020). Calculus: Early Transcendentals, 9th edition. Cengage. — Chapters 5–7.
- ·Spivak, M. (2008). Calculus, 4th edition. Publish or Perish. — More rigorous treatment.
- ·Apostol, T. (1991). Calculus, Volume I. Wiley.
- ·3Blue1Brown. Essence of Calculus (YouTube series). — Visual intuition.
- ·Paul's Online Math Notes: Integration Techniques.
More from this cluster
20 MIN
Derivatives Explained: From Definition to Application
17 MIN
Limits and Continuity: The Foundation of Calculus
26 MIN
Linear Algebra Basics: Vectors, Matrices, Transformations
14 MIN
Eigenvalues and Eigenvectors, Intuitively
20 MIN
Probability Theory Basics for Engineers
14 MIN
Series and Sequences: Convergence Tests Explained
16 MIN
Differential Equations: First-Order Methods
About the author
Tim Sheludyakov writes the Stoa library.
By Tim Sheludyakov · Edited 2026-05-13
A letter from the portico
Once a week — a long-read, a quote, a practice. No promotions. Unsubscribe in one click.
By subscribing you agree to receive letters from Stoa.