How to Solve Integrals Step by Step
To solve an integral, find a function whose derivative is the integrand, then apply the limits if it is a definite integral. Most integrals fall to the power rule, a substitution, or a standard result — the steps below work through each one with numbers.
By Jacob Levy, Founder of FigureQuick.com · Last reviewed 2026-11-19
What an integral is
An integral measures accumulation: the area under a curve, the total distance from a speed, the total amount built up over an interval. The indefinite integral of a function f(x), written ∫f(x) dx, is the family of functions whose derivative is f(x). The definite integral from a to b, written ∫ₐₛ f(x) dx, is a single number: the signed area under the curve between those two limits. "Signed" matters — parts of the curve below the x-axis count as negative area, so a definite integral can be negative.
Integration is differentiation in reverse, which is why the first check on any answer is to differentiate it: if the derivative of your answer is the function you started with, the integral is right. That one check catches most mistakes, and it is worth doing every time.
Step 1: Identify the type
Before doing any algebra, decide what kind of integral it is. A polynomial or power of x calls for the power rule. A function inside another function — something like (3x + 1)⁴ or sin(x²) — calls for substitution. A product of two different kinds of function, such as x·eʸ or x·sin(x), calls for integration by parts. A trigonometric function or an exponential usually matches a standard result. Naming the type first stops the most common error, which is applying the power rule to something it does not fit.
Step 2: The power rule
The power rule is the workhorse: ∫xⁿ dx = xⁿ⁺¹ / (n + 1) + C, for any n except −1. Each term of a polynomial is integrated separately, and constants pass through unchanged. The + C is the constant of integration, and it is not optional: an indefinite integral is a family of functions, and every member differs by a constant. Leaving it out is the single most common mark lost on an integral.
Worked example: ∫(3x² + 2x) dx. Integrate term by term. The integral of 3x² is 3 × x³ / 3 = x³. The integral of 2x is 2 × x² / 2 = x². So ∫(3x² + 2x) dx = x³ + x² + C. Check by differentiating: the derivative of x³ + x² is 3x² + 2x, which is the function we started with, so the answer is right.
Step 3: Definite integrals — apply the limits
A definite integral uses the fundamental theorem of calculus: find an antiderivative F, then compute F(b) − F(a). The constant C cancels out, so it is not needed. Work the two ends separately and subtract carefully — a sign error here is the second most common mistake.
Worked example: ∫₀¹ x² dx. An antiderivative of x² is x³ / 3. At the upper limit, 1³ / 3 = 1/3. At the lower limit, 0³ / 3 = 0. The definite integral is 1/3 − 0 = 1/3, about 0.3333. The Integral Calculator reproduces this example — enter x^2 with limits 0 and 1 and it returns 0.3333.
Worked example: ∫₁³ (3x² + 2x) dx. From the example above, an antiderivative is x³ + x². At 3, that is 27 + 9 = 36. At 1, it is 1 + 1 = 2. The definite integral is 36 − 2 = 34. The Integral Calculator gives the same answer, 34, for the function 3*x^2+2*x between 1 and 3.
Step 4: Substitution
Substitution is the chain rule in reverse. When the integrand contains a function inside another function, set u equal to the inner function, rewrite dx in terms of du, and integrate in u. For ∫2x·(x² + 1)³ dx, set u = x² + 1, so du = 2x dx, and the integral becomes ∫u³ du = u⁴ / 4 + C = (x² + 1)⁴ / 4 + C. The giveaway is spotting the derivative of the inner function sitting next to it: here 2x is exactly the derivative of x² + 1. For a definite integral, either change the limits into u-values when you substitute, or substitute back to x before applying the original limits — mixing the two is a classic error.
Use this calculator with clients → White-label.
Step 5: Trigonometric and exponential integrals
A few standard results cover most of the rest. The integral of sin(x) is −cos(x) + C, and the integral of cos(x) is sin(x) + C. The integral of eʸ is eʸ + C, and the integral of 1/x is ln|x| + C — the one case the power rule does not cover, because n = −1 would divide by zero. Trigonometric integrals here use radians, which is the standard for calculus: sin(x) completes one full wave from 0 to about 6.28 (2π).
Worked example: ∫₀ʳ sin(x) dx. An antiderivative of sin(x) is −cos(x). At π, −cos(π) = −(−1) = 1. At 0, −cos(0) = −1. The definite integral is 1 − (−1) = 2. Geometrically, that is the area of one hump of the sine wave. The Integral Calculator returns 2 for sin(x) between 0 and π.
Step 6: Check by differentiating
Differentiate the answer and compare it with the integrand. If they match, the integral is right; if they do not, the mistake is in the step where the two diverge. A second check for definite integrals is a rough estimate: the area under x² between 0 and 1 must be less than 1 (the area of the unit square) and more than 0, and 1/3 passes that test. The Derivative Calculator differentiates any function, so the check can be run there, and the Integral Calculator confirms the final number.
Common mistakes
Four mistakes account for most wrong integrals. Forgetting the + C on an indefinite integral. Applying the power rule to 1/x, where it divides by zero — the answer is ln|x| + C. Substituting without changing the limits on a definite integral, or changing them and then substituting back as well. And working in degrees for a trigonometric integral, when calculus uses radians throughout. The differentiation check at the end catches the first three; the fourth is caught by remembering that a calculus sine wave runs from 0 to 2π, not 0 to 360.
More help with calculus
Integration and differentiation are a pair: every integral can be checked by differentiating, and every derivative can be checked by integrating. The Derivative Calculator handles the other half, and the Complete Guide to Everyday Math puts both in the wider picture of percentages, algebra, geometry, and statistics.
Frequently asked questions
What is an integral in simple terms?
An integral measures accumulation — the area under a curve, or the total built up over an interval. The indefinite integral is the family of functions whose derivative is the integrand; the definite integral between two limits is a single number, the signed area under the curve between them.
What is the difference between a definite and an indefinite integral?
An indefinite integral has no limits and its answer is a function plus a constant, C — for example, ∫x² dx = x³/3 + C. A definite integral has limits and its answer is a number: ∫₀¹ x² dx = 1/3. The constant cancels out of a definite integral.
When do I need substitution to solve an integral?
When the integrand is a function inside another function, such as (3x + 1)⁵ or sin(x²). Set u equal to the inner function and rewrite the rest in terms of u. The giveaway is spotting the derivative of the inner function sitting next to it in the integrand.
How do I check my answer to an integral?
Differentiate it: the derivative of your answer should be the function you started with. For a definite integral, also estimate the area roughly — for example, the area under x² between 0 and 1 must be between 0 and 1, and 1/3 passes that test.
