Visual Tools
Calculators
Tables
Mathematical Keyboard
Converters
Other Tools


Evaluating Integrals






Putting It All Together


Evaluating integrals draws on everything: recognizing standard forms, selecting appropriate techniques, handling special cases, and verifying results. The process is part pattern recognition, part strategic choice, part careful execution.

Start simple. Direct antidifferentiation works more often than expected—many integrals match known formulas or yield to basic algebra. When direct methods fail, systematically consider substitution, parts, and other techniques.

For definite integrals, setup matters as much as computation. Identify the correct bounds, express the integrand properly, and watch for discontinuities that signal improper integrals. A well-posed integral is half solved.

Key Terms

Definite Integral— correct setup: bounds, integrand, variable
Indefinite Integral— always includes +C+ C
Antiderivative— differentiate to verify: F′(x)F'(x) should return f(x)f(x)
Integrand— simplify before reaching for techniques
Bounds of Integration— convert when substituting in definite integrals

See All Calculus Definitions →


Direct Antidifferentiation


Try the straightforward approach first. Does the integrand match a standard form?

Direct Antidifferentiation
∫(3x2+5ex−sec⁡2x) dx\int (3x^2 + 5e^x - \sec^2 x)\, dx

Apply linearity and known formulas:

Direct Antidifferentiation
=3⋅x33+5ex−tan⁡x+C=x3+5ex−tan⁡x+C= 3 \cdot \frac{x^3}{3} + 5e^x - \tan x + C = x^3 + 5e^x - \tan x + C

Algebraic simplification often reveals standard forms:

Direct Antidifferentiation
∫x3+1x dx=∫(x2+1x) dx=x33+ln⁡∣x∣+C\int \frac{x^3 + 1}{x}\, dx = \int \left(x^2 + \frac{1}{x}\right)\, dx = \frac{x^3}{3} + \ln|x| + C

Pitfall: Integrating the top and bottom separately
Integrating x3+1x^3 + 1 and xx on their own gives x4/4+xx2/2=x22+2x\frac{x^4/4 + x}{x^2/2} = \frac{x^2}{2} + \frac{2}{x}, whose derivative at x=1x = 1 is −1-1, while the integrand there is 22. Splitting the fraction first gives x33+ln⁡∣x∣+C\frac{x^3}{3} + \ln|x| + C.

Expand, simplify, and separate before reaching for techniques.

Here the denominator is a single term, so the fraction breaks into one fraction per term of the numerator: x3+1x=x3x+1x\frac{x^3 + 1}{x} = \frac{x^3}{x} + \frac{1}{x}. Each piece is then a power of xx, and the two standard forms ∫xn dx\int x^n\, dx and ∫1x dx\int \frac{1}{x}\, dx finish the job. Linearity does the rest, one term at a time.

Recognizing Standard Forms


Many integrals are disguised versions of basic formulas.

Completing the square transforms quadratics:

Recognizing Standard Forms
∫1x2+4x+8 dx=∫1(x+2)2+4 dx\int \frac{1}{x^2 + 4x + 8}\, dx = \int \frac{1}{(x+2)^2 + 4}\, dx

This matches ∫1u2+a2 du=1aarctan⁡ua+C\int \dfrac{1}{u^2 + a^2}\, du = \dfrac{1}{a}\arctan\dfrac{u}{a} + C with u=x+2u = x + 2 and a=2a = 2.

Pitfall: Forgetting the factor in front of arctan
Finishing with arctan⁡(x+2)+C\arctan(x + 2) + C uses the formula for a=1a = 1: its derivative is 1(x+2)2+1\frac{1}{(x + 2)^2 + 1}, not 1(x+2)2+4\frac{1}{(x + 2)^2 + 4}. With a=2a = 2 the answer is 12arctan⁡x+22+C\frac{1}{2}\arctan\frac{x + 2}{2} + C.

Completing the square is the move for a quadratic that does not factor. The discriminant of x2+4x+8x^2 + 4x + 8 is 16−32=−16<016 - 32 = -16 < 0, so there are no real roots to split the fraction with. Writing x2+4x+8=(x+2)2+4x^2 + 4x + 8 = (x + 2)^2 + 4 puts the variable part into u2u^2 and leaves the constant 4=224 = 2^2 as a2a^2.

Rewriting constants exposes patterns:

Recognizing Standard Forms
∫19−x2 dx=∫132−x2 dx=arcsin⁡x3+C\int \frac{1}{\sqrt{9 - x^2}}\, dx = \int \frac{1}{\sqrt{3^2 - x^2}}\, dx = \arcsin\frac{x}{3} + C

Setting Up Definite Integrals


For definite integrals, correct setup is essential.

Identify the variable: What quantity varies, and over what range?

Express the integrand: Write the quantity being accumulated in terms of the integration variable.

Determine bounds: Where does accumulation begin and end?

Example
Find the area under y=x2y = x^2 from x=0x = 0 to x=3x = 3.
Area=∫03x2 dx=x33∣03=273−0=9\text{Area} = \int_0^3 x^2\, dx = \frac{x^3}{3}\Big|_0^3 = \frac{27}{3} - 0 = 9
Check reasonableness: the area should be positive and between 0⋅3=00 \cdot 3 = 0 and 9⋅3=279 \cdot 3 = 27.

Handling Absolute Values


Absolute values require splitting the integral where the argument changes sign.

Handling Absolute Values
∫−23∣x∣ dx\int_{-2}^{3} |x|\, dx

Since ∣x∣=−x|x| = -x for x<0x < 0 and ∣x∣=x|x| = x for x≥0x \geq 0:

Handling Absolute Values
=∫−20(−x) dx+∫03x dx= \int_{-2}^{0} (-x)\, dx + \int_0^3 x\, dx

Handling Absolute Values
=[−x22]−20+[x22]03=(0−(−2))+(92−0)=2+92=132= \left[-\frac{x^2}{2}\right]_{-2}^{0} + \left[\frac{x^2}{2}\right]_0^3 = (0 - (-2)) + \left(\frac{9}{2} - 0\right) = 2 + \frac{9}{2} = \frac{13}{2}

Note: ∣∫f∣≠∫∣f∣\left|\int f\right| \neq \int |f| in general.
The integral of |x| from -2 to 3 is two triangles: area 2 on the left and 9/2 on the right, total 13/2xy−3−2−11234−11234y = |x|29/2split at 0: 2 + 9/2 = 13/2Split where |x| changes formula: −x on the left, x on the right
Splitting at the sign change

The section’s ∫ from −2 to 3 of |x| dx. Left of 0 the integrand is −x and the region is a triangle with base 2 and height 2, area 2 (amber). Right of 0 it is x and the triangle has base 3 and height 3, area 9/2 (blue). The integral is the sum of the two pieces, 13/2; a single antiderivative over the whole interval would miss the change of formula at 0.

Integrating x over the whole interval would give 5/2: the left triangle would count as negative.

Piecewise Functions


Split the integral at boundaries between pieces and apply additivity:

Piecewise Functions
∫acf(x) dx=∫abf(x) dx+∫bcf(x) dx\int_a^c f(x)\, dx = \int_a^b f(x)\, dx + \int_b^c f(x)\, dx

Example
For f(x)={x2x<12xx≥1f(x) = \begin{cases} x^2 & x < 1 \\ 2x & x \geq 1 \end{cases}, evaluate ∫02f(x) dx\int_0^2 f(x)\, dx.
=∫01x2 dx+∫122x dx=x33∣01+x2∣12= \int_0^1 x^2\, dx + \int_1^2 2x\, dx = \frac{x^3}{3}\Big|_0^1 + x^2\Big|_1^2
=13+(4−1)=13+3=103= \frac{1}{3} + (4 - 1) = \frac{1}{3} + 3 = \frac{10}{3}

Pitfall: Using one formula on the whole interval
Integrating x2x^2 over all of [0,2][0, 2] gives 83\frac{8}{3}, and using 2x2x throughout gives 44. Neither is the integral of ff, which is 13+3=103\frac{1}{3} + 3 = \frac{10}{3}.

The boundaries between the pieces are the only places where the integral has to be cut, and the number of pieces sets the number of integrals to add. The value of ff at the single point x=1x = 1 does not affect either integral, so it makes no difference which piece the boundary point belongs to. A function with three or more pieces is handled the same way, with one integral per piece.

Symmetry Shortcuts


Symmetric integrands over symmetric intervals simplify dramatically.

Even functions satisfy f(−x)=f(x)f(-x) = f(x):

Even Function Symmetry
∫−aaf(x) dx=2∫0af(x) dxwhen f(−x)=f(x)\int_{-a}^{a} f(x)\, dx = 2 \int_0^a f(x)\, dx \quad \text{when } f(-x) = f(x)
Learn more about this formula: Even Function Symmetry →

Odd functions satisfy f(−x)=−f(x)f(-x) = -f(x):

Odd Function Symmetry
∫−aaf(x) dx=0when f(−x)=−f(x)\int_{-a}^{a} f(x)\, dx = 0 \quad \text{when } f(-x) = -f(x)
Learn more about this formula: Odd Function Symmetry →


Example
∫−33x3 dx=0(odd function)\int_{-3}^{3} x^3\, dx = 0 \quad \text{(odd function)}
∫−22x4 dx=2∫02x4 dx=2⋅325=645(even function)\int_{-2}^{2} x^4\, dx = 2\int_0^2 x^4\, dx = 2 \cdot \frac{32}{5} = \frac{64}{5} \quad \text{(even function)}

Pitfall: Missing the even part of the integrand
Seeing x3x^3 in ∫−22(x3+1) dx\int_{-2}^{2} (x^3 + 1)\, dx and answering 00 ignores the even term 11. Only the x3x^3 part cancels, so the integral is 0+2⋅2=40 + 2 \cdot 2 = 4.

Both shortcuts rest on comparing f(−x)f(-x) with f(x)f(x). In the first example (−x)3=−x3(-x)^3 = -x^3, so the region on [−3,0][-3, 0] is the region on [0,3][0, 3] reflected below the axis. In the second (−x)4=x4(-x)^4 = x^4, and the two halves are equal. Replacing xx by −x-x takes one line and settles which shortcut, if any, applies.
x^3 on [-3, 3] is odd: the area below the axis on the left mirrors the area above on the right, so the integral is 0xy−4−3−2−11234−30−20−10102030y = x³+81/4−81/4odd: the halves cancel, total 0An odd integrand over [−a, a]: mirror-image areas of opposite sign
Odd symmetry cancels

The section’s ∫ from −3 to 3 of x³ dx. x³ is odd, so the region on [−3, 0] is the region on [0, 3] turned upside down: the same area, 81/4, but below the axis. The two signed areas cancel and the integral is 0 without any antiderivative. For an even function the two halves would match with the same sign, giving twice the right-hand half.

The shortcut needs a symmetric interval: over [−3, 2] the halves no longer match.
Structure in integrand Recognize when… Strategy
Absolute value |g(x)| appears in the integrand split the interval where g(x) = 0; use the sign of g on each piece to drop the bars
Piecewise function different formulas govern different subintervals split at the piece boundaries, integrate each subinterval, add via additivity
Even function on [−a, a] f(−x) = f(x), symmetric interval ∫−aa f(x) dx = 2 ∫0a f(x) dx — half the work
Odd function on [−a, a] f(−x) = −f(x), symmetric interval ∫−aa f(x) dx = 0 — answer is immediate

Common Pitfalls


Forgetting the constant of integration: Indefinite integrals always include +C+C.

Dropping absolute values: The antiderivative of 1/x1/x is ln⁡∣x∣+C\ln|x| + C, not ln⁡x+C\ln x + C.

Sign errors in substitution: When u=−xu = -x, then du=−dxdu = -dx, not dxdx.

Forgetting to convert limits: In definite integrals with substitution, either convert the limits to uu-values or substitute back to xx before evaluating.

Missing discontinuities: An integral like ∫−111x2 dx\int_{-1}^{1} \dfrac{1}{x^2}\, dx is improper—the integrand is unbounded at x=0x = 0.

Integrating the top and bottom separately

A fraction is integrated by finding an antiderivative of the numerator and one of the denominator and dividing the two, as if integration had a quotient rule that works that way.

Wrong working: ∫x3+1x dx=∫(x3+1) dx∫x dx=x4/4+xx2/2=x22+2x\int \dfrac{x^3 + 1}{x}\, dx = \dfrac{\int (x^3 + 1)\, dx}{\int x\, dx} = \dfrac{x^4/4 + x}{x^2/2} = \dfrac{x^2}{2} + \dfrac{2}{x}.

Right working: split the fraction first. x3+1x=x2+1x\dfrac{x^3 + 1}{x} = x^2 + \dfrac{1}{x}, so ∫x3+1x dx=x33+ln⁡∣x∣+C\int \dfrac{x^3 + 1}{x}\, dx = \dfrac{x^3}{3} + \ln|x| + C.

Why it happens: an integral does split over a sum, term by term, and the same splitting looks just as natural over a quotient. There is no such rule for quotients; even for derivatives, the quotient rule is not the quotient of the derivatives.

How to check: differentiate the answer. (x22+2x)′=x−2x2\left(\dfrac{x^2}{2} + \dfrac{2}{x}\right)' = x - \dfrac{2}{x^2}, which is −1-1 at x=1x = 1, while the integrand there is 1+11=2\dfrac{1 + 1}{1} = 2. (x33+ln⁡∣x∣)′=x2+1x\left(\dfrac{x^3}{3} + \ln|x|\right)' = x^2 + \dfrac{1}{x}, which is 22 at x=1x = 1.

Forgetting the factor in front of arctan

Completing the square brings the integral to the form ∫1u2+a2 du\int \dfrac{1}{u^2 + a^2}\, du, and it is finished as arctan⁡u+C\arctan u + C, which is the formula for a=1a = 1 only.

Wrong working: ∫1x2+4x+8 dx=∫1(x+2)2+4 dx=arctan⁡(x+2)+C\int \dfrac{1}{x^2 + 4x + 8}\, dx = \int \dfrac{1}{(x + 2)^2 + 4}\, dx = \arctan(x + 2) + C.

Right working: with u=x+2u = x + 2 and a=2a = 2, ∫1(x+2)2+4 dx=12arctan⁡x+22+C\int \dfrac{1}{(x + 2)^2 + 4}\, dx = \dfrac{1}{2}\arctan\dfrac{x + 2}{2} + C.

Why it happens: ∫11+u2 du=arctan⁡u+C\int \dfrac{1}{1 + u^2}\, du = \arctan u + C is the version learned first, and for a=1a = 1 both the factor 1a\dfrac{1}{a} and the division inside the arctan disappear.

How to check: differentiate. (arctan⁡(x+2))′=1(x+2)2+1=1x2+4x+5\left(\arctan(x + 2)\right)' = \dfrac{1}{(x + 2)^2 + 1} = \dfrac{1}{x^2 + 4x + 5}, the wrong constant. (12arctan⁡x+22)′=12⋅1/21+(x+2)24=1(x+2)2+4\left(\dfrac{1}{2}\arctan\dfrac{x + 2}{2}\right)' = \dfrac{1}{2} \cdot \dfrac{1/2}{1 + \frac{(x + 2)^2}{4}} = \dfrac{1}{(x + 2)^2 + 4}, the integrand.

Using one formula on the whole interval

A piecewise function is integrated with one of its formulas over the whole interval, usually the first one or the easier one, and the boundary between the pieces is ignored.

Wrong working: for f(x)=x2f(x) = x^2 when x<1x < 1 and f(x)=2xf(x) = 2x when x≥1x \geq 1, ∫02f(x) dx=∫02x2 dx=83\int_0^2 f(x)\, dx = \int_0^2 x^2\, dx = \dfrac{8}{3}. Using the other formula throughout gives ∫022x dx=4\int_0^2 2x\, dx = 4, just as wrong.

Right working: split at x=1x = 1. ∫01x2 dx+∫122x dx=13+3=103\int_0^1 x^2\, dx + \int_1^2 2x\, dx = \dfrac{1}{3} + 3 = \dfrac{10}{3}.

Why it happens: the integral is written with a single symbol ff, so ∫02f(x) dx\int_0^2 f(x)\, dx looks like one integral. The cases are read once at the start and then forgotten.

How to check: list the subintervals used and match each one to the case of ff that holds there. Integrating x2x^2 on [1,2][1, 2] uses the wrong formula: at x=1.5x = 1.5, for instance, f(1.5)=3f(1.5) = 3, not 1.52=2.251.5^2 = 2.25.

Missing the even part of the integrand

An integrand on a symmetric interval contains an odd term such as x3x^3, and the whole integral is set to 00, although another term is even.

Wrong working: x3x^3 is odd, so ∫−22(x3+1) dx=0\int_{-2}^{2} (x^3 + 1)\, dx = 0.

Right working: split by linearity. ∫−22x3 dx+∫−221 dx=0+2∫021 dx=0+4=4\int_{-2}^{2} x^3\, dx + \int_{-2}^{2} 1\, dx = 0 + 2\int_0^2 1\, dx = 0 + 4 = 4. Directly: [x44+x]−22=(4+2)−(4−2)=4\left[\dfrac{x^4}{4} + x\right]_{-2}^{2} = (4 + 2) - (4 - 2) = 4.

Why it happens: the odd rule gives the answer with no work, so it is tempting to use it as soon as an odd power appears, and the eye stops at the leading term.

How to check: test f(−x)=−f(x)f(-x) = -f(x) for the whole integrand at one point. For f(x)=x3+1f(x) = x^3 + 1, f(−1)=0f(-1) = 0 while −f(1)=−2-f(1) = -2, so ff is not odd.
1/x^2 is positive on [-1, 1] but unbounded at 0; the naive antiderivative calculation gives -2, which is wrongxy−11−3−2−1123456789101112y = 1/x²positive, unbounded at 0naive [−1/x]: −2a negative area: wrongAn unbounded integrand makes the integral improper; here it diverges
A positive integrand with a negative answer

The section’s ∫ from −1 to 1 of dx/x². The integrand is positive at every x ≠ 0, so any area it encloses must be positive. Plugging the endpoints into the antiderivative −1/x gives −1 − 1 = −2, which cannot be right. The fundamental theorem needs a continuous integrand, and 1/x² blows up at 0; treated as an improper integral, each half diverges.

Before evaluating, check that the integrand is continuous on the whole closed interval.
Pitfall Why it's wrong Correct form
Forgetting + C an indefinite integral represents a family of antiderivatives, not just one always finish indefinite results with + C
Dropping the absolute value in ln ∫ 1/x dx = ln x is invalid for x < 0 ∫ 1/x dx = ln|x| + C
Sign error in u-substitution if u = −x then du has its own sign du = −dx, not dx
Forgetting to convert limits x-limits are wrong once the integrand is in u convert the limits to u-values, or substitute back to x before evaluating
Missing a discontinuity integral looks proper but the integrand blows up on the interval recognize as improper and split at the singularity (e.g. ∫−11 1/x² dx at x = 0)

Checking Your Answer


Differentiate: The derivative of your antiderivative should return the integrand. This catches algebraic and sign errors.

Verify: For ∫sec⁡2x dx=tan⁡x+C\int \sec^2 x\, dx = \tan x + C, check: (tan⁡x)′=sec⁡2x(\tan x)' = \sec^2 x. Correct.

Estimate: For definite integrals, check that the answer is reasonable. A positive integrand on [a,b][a,b] with a<ba < b should yield a positive result. The value should lie between m(b−a)m(b-a) and M(b−a)M(b-a) where mm and MM bound the integrand.

Numerical check: When possible, compare to a calculator or numerical approximation.

Summary: The Evaluation Strategy Ladder


The sections above lay out a natural order of attack for any integral: start simple, escalate only as needed, and verify at the end. The table below collects this six-step ladder with a pointer to the right section or sibling page for each step. Used as a checklist, it prevents the most common failure mode of integration — reaching for heavy techniques before trying the lighter moves that would have worked.
Step What to do Why this step Where to look
1 Simplify the integrand — expand, split fractions, separate terms algebraic cleanup often reveals matches to known formulas section 1 above
2 Apply direct antidifferentiation — match the integrand to a standard form fastest path when it works special integrals
3 Look for disguised standard forms — complete the square, rewrite constants catches near-misses before reaching for heavier tools section 2 above
4 Check for special structure — absolute value, piecewise, symmetry dedicated shortcuts avoid heavy machinery (and the odd-function rule answers in one step) sections 4–6 above
5 Reach for a technique — substitution, parts, partial fractions, trig sub when none of the above moves close the gap techniques
6 Verify — differentiate the antiderivative; check sign and reasonableness for definite results catches algebra and sign errors before they propagate sections 7 & 8 above

Evaluating Integrals FAQ

How do you integrate a fraction like (x³ + 1)/x?

+
Divide term by term before integrating. (x³ + 1)/x becomes x² + 1/x, and each piece is a standard form, giving x³/3 + ln|x| + C. There is no quotient rule for integration, so a fraction usually has to be rewritten as a sum, expanded, or split before any formula applies.Read more →

When do you complete the square to evaluate an integral?

+
When the integrand holds an irreducible quadratic that almost matches an arctan or arcsin form. Rewriting x² + 4x + 8 as (x + 2)² + 4 turns ∫1/(x² + 4x + 8) dx into the arctan pattern with u = x + 2 and a = 2. The same move rewrites 9 − x² as 3² − x² to expose arcsin.Read more →

Is the absolute value of an integral the same as the integral of the absolute value?

+
No — |∫f| ≤ ∫|f|, and they are usually unequal. Integrating f lets positive and negative regions cancel before you take the absolute value; integrating |f| flips the negative parts up first, so nothing cancels. For f(x) = x on [−1, 1], the first is 0 and the second is 1.Read more →

Why is the integral of an odd function over a symmetric interval zero?

+
Because the two halves cancel exactly. An odd function satisfies f(−x) = −f(x), so whatever signed area accumulates on [0, a] is matched by the negative of it on [−a, 0], and the sum is 0 for every a. Even functions do the opposite: the halves match in sign, so the integral is twice the half.Read more →