Algebra & Calculus
Integral Calculator
Type a function of x for an antiderivative, or add lower and upper limits for a definite integral. Each step names the rule used, and definite results are checked against a numerical estimate.
- Check: differentiating the answer gives back the original function.
Step-by-step working 6 steps
- 1The indefinite integral
∫ (3x² + 2x − 5) dx
- 2Sum rule
∫ (3x² + 2x − 5) dx = ∫ 3x² dx + ∫ 2x dx + ∫ −5 dx
Integrate term by term.
- 3Power rule
∫ 3x² dx = x³
∫ xⁿ dx = xⁿ⁺¹/(n+1), for n ≠ −1.
- 4Power rule
∫ 2x dx = x²
∫ xⁿ dx = xⁿ⁺¹/(n+1).
- 5Constant rule
∫ −5 dx = −5x
∫ c dx = c·x.
- 6Antiderivative
F(x) = x³ + x² − 5x + C
C is the constant of integration: every antiderivative differs by a constant.
How to use the integral calculator
- Type the function of x.
- Leave the limits blank for an antiderivative, or enter both for a definite integral.
- Follow each rule to the antiderivative F(x).
- For limits, read F(b) − F(a) and the numerical check.
Integration rules used
∫ xⁿ dx = xⁿ⁺¹/(n+1) + C (n ≠ −1) ∫ 1/x dx = ln|x| + C ∫ eᵏˣ dx = eᵏˣ/k + C ∫ sin(kx) dx = −cos(kx)/k + C ∫ cos(kx) dx = sin(kx)/k + C ∫ₐᵇ f(x) dx = F(b) − F(a)
The solver handles sums of these forms with linear arguments. For anything else it says so, or gives a labelled numerical value if you enter limits.
Worked examples
Each example below is generated by the same calculator you used above, so the working always matches the answer.
∫ 3x² + 2x − 5 dx
- Check: differentiating the answer gives back the original function.
Step-by-step working 6 steps
- 1The indefinite integral
∫ (3x² + 2x − 5) dx
- 2Sum rule
∫ (3x² + 2x − 5) dx = ∫ 3x² dx + ∫ 2x dx + ∫ −5 dx
Integrate term by term.
- 3Power rule
∫ 3x² dx = x³
∫ xⁿ dx = xⁿ⁺¹/(n+1), for n ≠ −1.
- 4Power rule
∫ 2x dx = x²
∫ xⁿ dx = xⁿ⁺¹/(n+1).
- 5Constant rule
∫ −5 dx = −5x
∫ c dx = c·x.
- 6Antiderivative
F(x) = x³ + x² − 5x + C
C is the constant of integration: every antiderivative differs by a constant.
∫₀² (3x² + 2x − 5) dx
- Exact antiderivative: x³ + x² − 5x
Step-by-step working 8 steps
- 1The definite integral
∫ from 0 to 2 of (3x² + 2x − 5) dx
- 2Sum rule
∫ (3x² + 2x − 5) dx = ∫ 3x² dx + ∫ 2x dx + ∫ −5 dx
Integrate term by term.
- 3Power rule
∫ 3x² dx = x³
∫ xⁿ dx = xⁿ⁺¹/(n+1), for n ≠ −1.
- 4Power rule
∫ 2x dx = x²
∫ xⁿ dx = xⁿ⁺¹/(n+1).
- 5Constant rule
∫ −5 dx = −5x
∫ c dx = c·x.
- 6Antiderivative
F(x) = x³ + x² − 5x
- 7Fundamental theorem of calculus
∫ = F(2) − F(0) F(2) = 2 F(0) = 0 = 2
- 8Numerical check (Simpson’s rule)
≈ 2
An independent estimate that should agree with the exact result.
∫ sin(2x+1) dx
- Check: differentiating the answer gives back the original function.
Step-by-step working 3 steps
- 1The indefinite integral
∫ (sin(2x + 1)) dx
- 2Sine rule
∫ sin(2x + 1) dx = −cos(2x + 1)/2
∫ sin(kx+b) dx = −cos(kx+b)/k.
- 3Antiderivative
F(x) = −cos(2x + 1)/2 + C
C is the constant of integration: every antiderivative differs by a constant.
∫₁⁴ √x dx
- Exact antiderivative: 2x^(3/2)/3
Step-by-step working 5 steps
- 1The definite integral
∫ from 1 to 4 of (√(x)) dx
- 2Power rule
∫ √(x) dx = 2x^(3/2)/3
∫ xⁿ dx = xⁿ⁺¹/(n+1), for n ≠ −1.
- 3Antiderivative
F(x) = 2x^(3/2)/3
- 4Fundamental theorem of calculus
∫ = F(4) − F(1) F(4) = 5.33333333 F(1) = 0.66666667 = 4.66666667
- 5Numerical check (Simpson’s rule)
≈ 4.66666667
An independent estimate that should agree with the exact result.
∫ 1/(3x+2) dx
- Check: differentiating the answer gives back the original function.
Step-by-step working 3 steps
- 1The indefinite integral
∫ (1/(3x + 2)) dx
- 2Reciprocal of a linear expression
∫ 1/(3x + 2) dx = ln|3x + 2|/3
∫ 1/(kx+b) dx = ln|kx+b|/k.
- 3Antiderivative
F(x) = ln|3x + 2|/3 + C
C is the constant of integration: every antiderivative differs by a constant.
∫₀¹ eˣ dx
- Exact antiderivative: e^x
Step-by-step working 5 steps
- 1The definite integral
∫ from 0 to 1 of (e^x) dx
- 2Exponential rule
∫ e^x dx = e^x
∫ eᵏˣ⁺ᵇ dx = eᵏˣ⁺ᵇ/k.
- 3Antiderivative
F(x) = e^x
- 4Fundamental theorem of calculus
∫ = F(1) − F(0) F(1) = 2.71828183 F(0) = 1 = 1.71828183
- 5Numerical check (Simpson’s rule)
≈ 1.71828183
An independent estimate that should agree with the exact result.
Where you will use this
- Finding area under a curve in AP Calculus
- Checking antiderivative and definite-integral homework
- Accumulating a rate, such as distance from speed
Common mistakes to avoid
Forgetting + C
An indefinite integral is a family of functions that differ by a constant, so always write + C.
Applying the power rule to 1/x
n = −1 is the exception: ∫ 1/x dx = ln|x|, not x⁰/0.
Swapping the limits
∫ₐᵇ = F(b) − F(a). Swapping a and b flips the sign.
Frequently asked questions
What is the integral of x²?
x³/3 + C, by the power rule.
What is the integral of 1/x?
ln|x| + C.
What is the integral of sin(x)?
−cos(x) + C.
Can it do integration by parts or substitution?
Not in general. It handles linear substitutions inside the rules above and ln(x). For other integrals it says so, and with limits it can give a labelled numerical estimate.
Related calculators
Derivative Calculator
Differentiate with the rule named at every step.
Function Grapher
Plot y = f(x), find roots and read values.
Scientific Calculator
Brackets, powers, trig and logs — reduced one step at a time.
Exponent Calculator
Whole, negative and fractional exponents.
Logarithm Calculator
Any base, with change-of-base steps.
Area Calculator
Rectangle, triangle, parallelogram, trapezoid, ellipse.
Browse everything in Algebra & Calculus or the full calculator list.