Guide: Integral Calculator
Indefinite and definite integrals
∫f(x) dx = F(x) + C where F′ = f; C is an arbitrary constant. A definite integral ∫ₐᵇ f(x) dx is a number, F(b) − F(a) by the fundamental theorem of calculus: ∫₀³ x² dx = 9. It measures signed area, so parts below the x-axis count negatively.
Substitution and integration by parts
If the integrand has the form f(g(x))·g′(x), let u = g(x): ∫2x·cos(x²) dx = sin(x²) + C. For products use ∫u dv = u·v − ∫v du, choosing u in the order logarithmic, inverse trigonometric, algebraic, trigonometric, exponential: ∫x·eˣ dx = x·eˣ − eˣ + C.
Rational functions
When the numerator’s degree is at least the denominator’s, divide first. Then factor the denominator and split into partial fractions: 1/(x²−1) = (1/2)/(x−1) − (1/2)/(x+1). Linear factors give logarithms; irreducible quadratic factors are handled by completing the square, giving ln and arctan terms.
What it cannot do step by step
Integrals such as eˣ·sin x (where parts cycles back), √(1 − x²) (trigonometric substitution) or e^(−x²) (no elementary antiderivative) produce no steps. The page then says so and shows the symbolic engine’s result without steps, or a numerical (Simpson) value for definite integrals. Improper integrals over intervals containing singularities are not evaluated.
Worked examples
- Integration by parts: ∫ x·ex dx = x·ex − ex + C
- Substitution: ∫ 2x·cos(x2) dx = sin(x2) + C
- Partial fractions: ∫ 1x2 − 1 dx = ln|x − 1|2 − ln|x + 1|2 + C
- Trigonometric identity: ∫ sin2(x) dx = −sin(2x)4 + x2 + C
- Definite integral: ∫03 x2 dx = 9
- Integral of ln x: ∫ ln(x) dx = x·ln(x) − x + C
Frequently asked questions
Why is + C added?
Functions that differ by a constant have the same derivative, so an indefinite integral is a whole family F(x) + C. In a definite integral the constant cancels.
How can I check an antiderivative?
Differentiate it; you should get the integrand back. The calculator does this numerically for every result, and the derivative calculator shows the differentiation step by step.
Why is there no step-by-step answer for e^(x²)?
Some functions, including e^(x²), e^(−x²) and sin(x)/x, have no antiderivative made of elementary functions. Their definite integrals can still be computed numerically.
Why ln|x| and not ln x?
1/x is defined for negative x as well, and the derivative of ln|x| is 1/x on both sides of zero.
Related tools
Sources: OpenStax — Calculus Volume 1 · OpenStax — Calculus Volume 2