Integral Calculator

Enter a function f(x) and choose between indefinite or definite integration. For definite integrals, supply a lower bound and upper bound to get a numeric result. The Integral Calculator evaluates common functions — polynomials, exponentials, trig, logarithms — and returns the antiderivative or definite integral value instantly.

Enter a function of x. Use * for multiplication, ^ for powers, sin/cos/tan/exp/log.

Lower limit of integration (required for definite integrals).

Upper limit of integration (required for definite integrals).

Pick a common function or enter your own above.

Number of sub-intervals for numerical integration (Simpson's rule).

Results

Integral Result

--

Antiderivative (symbolic)

--

F(a) — Antiderivative at Lower Bound

--

F(b) — Antiderivative at Upper Bound

--

Sub-intervals Used

--

f(x) over Integration Interval

Results Table

Frequently Asked Questions

What is an integral?

An integral is a mathematical concept representing the area under a curve of a function over an interval. Indefinite integrals give a family of antiderivatives (functions whose derivative equals f(x)), while definite integrals produce a specific numeric value representing the net area between the function and the x-axis over [a, b].

What is the difference between a definite and an indefinite integral?

An indefinite integral ∫ f(x) dx returns the antiderivative F(x) + C, where C is the constant of integration. A definite integral ∫ₐᵇ f(x) dx evaluates the antiderivative at the upper and lower bounds using the Fundamental Theorem of Calculus: F(b) − F(a), yielding a single numeric value.

How does this integral calculator compute results numerically?

This calculator uses Simpson's Rule, a numerical integration method that approximates the area under a curve by fitting parabolic segments between sample points. The more sub-intervals you choose, the more accurate the result. For standard functions over finite intervals, 1,000 intervals typically gives results accurate to 5–6 decimal places.

What functions can I integrate with this calculator?

You can integrate polynomials (x^2, x^3+2*x), trigonometric functions (sin(x), cos(x), tan(x)), exponential functions (exp(x) or e^x), natural logarithms (log(x)), square roots (sqrt(x)), and combinations thereof. Use * for multiplication and ^ for exponentiation (e.g. 3*x^2 + sin(x)).

What is the Fundamental Theorem of Calculus?

The Fundamental Theorem of Calculus links differentiation and integration. It states that if F(x) is an antiderivative of f(x), then ∫ₐᵇ f(x) dx = F(b) − F(a). This means you can evaluate definite integrals by finding the antiderivative and plugging in the bounds, rather than computing infinite sums.

Why might my integral result be approximate?

This calculator uses numerical methods (Simpson's Rule) to evaluate integrals, which are inherently approximate. While very accurate for smooth functions with a high number of intervals, functions with singularities (like 1/x near x=0) or rapid oscillations may require care with the chosen bounds. For exact symbolic answers, a computer algebra system (CAS) is needed.

Can I calculate improper integrals with infinite bounds?

This calculator supports finite numeric bounds only. Improper integrals with infinite limits (e.g. ∫₀^∞) require symbolic computation or special numerical techniques. For such cases, choose a very large finite bound as an approximation when the integrand decays quickly, but be aware this is an estimate.

What does the constant of integration C mean for indefinite integrals?

For indefinite integrals, the antiderivative is not unique — any constant C can be added and the derivative is still f(x). The general antiderivative is written as F(x) + C. When evaluating definite integrals, C cancels out in F(b) − F(a), so it doesn't affect the final numeric result.

More Math Tools