Skip to content
Calcipedia
Integral Calculator instructional illustration

Integral Calculator

Use an integral calculator with steps for polynomial-style expressions, definite bounds, average value, midpoint and trapezoid checks.

Last updated

Examples

Supported input scope

This integral calculator is for single-variable polynomial-style expressions built from constants and powers of x, including negative and fractional exponents such as x^-2, x^0.5, and the special 1/x logarithmic case.

It does not parse products like (x+1)(x-1), trig functions, exponentials, substitution problems, or integration by parts.

Integral result

x^3 + x^2 + x + C

Antiderivative of 3x^2 + 2x + 1 using the power rule term by term.

Integrand

3x^2 + 2x + 1

Antiderivative

x^3 + x^2 + x + C

Interval summary

Add both bounds to switch from an indefinite integral to a definite integral and see the signed accumulation plus average value over the interval.

Step-by-step rule application

Each term is integrated independently, then the antiderivative is combined before any bounds are evaluated.

Step 1: 3x^2 → x^3

Apply the power rule: increase the exponent by 1, then divide the coefficient by 3.

Step 2: 2x → x^2

Apply the power rule: increase the exponent by 1, then divide the coefficient by 2.

Step 3: 1 → x

Apply the power rule: increase the exponent by 1, then divide the coefficient by 1.

← All Calculus calculators

Calculus

Integral calculator guide: polynomial antiderivatives, definite integrals

An integral calculator is most useful when it does more than print an antiderivative. This page integrates polynomial-style expressions in x, handles the special 1/x logarithmic case, and shows how optional bounds turn an indefinite result into a definite integral and average value over an interval.

What this integral calculator is actually solving

This calculator is built for single-variable polynomial-style expressions made from constants and powers of x. That includes familiar classroom examples such as 3x^2 + 2x + 1, negative powers such as 5x^-2 - 7x + 1, fractional powers such as 4x^0.5 - 3x + 2, and the special reciprocal form 1/x.

That scope matters because many people search for an “integral calculator” expecting a full computer algebra system. This page is not trying to expand products, integrate trigonometric functions, perform substitution, or handle integration by parts. It is designed for the common power-rule workflow where each term can be integrated independently and the next question is usually whether the result is indefinite or should be evaluated over a specific interval.

For that narrower but very common use case, the cleaner scope is a feature. The page keeps the integrand, antiderivative, interval evaluation, and average value visible at the same time instead of hiding the core calculus idea behind symbolic algebra you may not need for the problem in front of you.

How the power rule and logarithmic exception work

For a term ax^n with n ≠ -1, the antiderivative is a/(n+1) · x^(n+1). You increase the exponent by 1, then divide the coefficient by that new exponent. Constants follow the same rule because a constant can be treated as ax^0, which integrates to ax.

The one exception in this calculator's supported scope is x^-1, or 1/x. The normal power-rule denominator would become zero, so the antiderivative switches to ln|x| instead. That is why reciprocal terms are valid in this tool but intervals that cross x = 0 are not: the logarithmic antiderivative is tied to a domain break there.

Indefinite integrals also include + C because differentiation removes constants. Any family of functions that differs only by a constant has the same derivative, so the constant of integration has to be written explicitly unless you are evaluating a definite integral where it cancels out.

∫ax^n dx = a/(n+1) · x^(n+1) + C

Power rule for polynomial-style terms when n ≠ -1.

∫(a/x) dx = a ln|x| + C

Special logarithmic rule for the reciprocal term x^-1.

∫[a,b] f(x) dx = F(b) - F(a)

Fundamental Theorem of Calculus for turning an antiderivative into a definite integral value.

Definite integrals, signed accumulation, and average value

When you enter both bounds, the calculator evaluates the antiderivative at the upper and lower endpoints and subtracts them. That gives the definite integral, which is best interpreted as signed accumulation over the interval rather than as “area” in every situation. Portions of the graph below the x-axis contribute negative value.

The average value output uses the standard formula integral divided by interval width. This is useful because many classroom and exam questions do not stop at ∫[a,b] f(x) dx; they ask for the average value of the function over the same interval. Showing both outputs together reduces the chance of doing the integral correctly and then missing the final interpretation step.

The interval logic also exposes a practical limit. If the expression includes 1/x and the interval crosses x = 0, the definite integral becomes improper. This calculator warns about that explicitly instead of pretending the logarithmic antiderivative can be applied across the discontinuity with no domain check.

Endpoint, midpoint, and trapezoid checks

Competitor integral calculators often show the symbolic answer but leave the area interpretation to the user. This page adds a small numerical check for definite integrals: the function value at each endpoint, the function value at the midpoint, a midpoint-rule estimate, and a trapezoid-rule estimate. The exact answer still comes from the antiderivative, but these checks help you catch scale, sign, and interval-order mistakes.

The midpoint estimate multiplies f((a+b)/2) by the interval width. The trapezoid estimate averages f(a) and f(b), then multiplies by the interval width. For a curved function, neither estimate has to match the exact value; the point is to give a quick reasonableness check beside the exact F(b) - F(a) result.

This is especially useful when the definite integral is negative, when the upper and lower bounds are reversed, or when the average value looks surprising. Seeing endpoint values and the midpoint sample makes the result easier to interpret as signed accumulation rather than a bare number.

Midpoint estimate = f((a+b)/2) · (b-a)

One-rectangle midpoint-rule check against the exact definite integral.

Trapezoid estimate = [f(a)+f(b)]/2 · (b-a)

One-trapezoid check using endpoint values.

Worked examples: indefinite and definite cases

For 3x^2 + 2x + 1, each term integrates independently: 3x^2 becomes x^3, 2x becomes x^2, and 1 becomes x. The final indefinite integral is x^3 + x^2 + x + C. This is the classic reverse-power-rule pattern most students expect when searching for a basic integral calculator.

For a definite example, integrate x^2 from 0 to 3. The antiderivative is x^3/3, so the calculator evaluates F(3) - F(0) = 9 - 0 = 9. Because the interval width is 3, the average value over that interval is 3. Those are exactly the kinds of side results that become easier to trust when the page keeps the endpoint evaluations visible rather than showing only the final number.

For the reciprocal example 1/x + 2x from 1 to 4, the antiderivative is ln|x| + x^2. Evaluating at the endpoints gives ln(4) + 16 minus ln(1) + 1, which simplifies to ln(4) + 15. This example is useful because it shows both the logarithmic exception and the fact that the + C disappears automatically in a definite integral.

What this integral calculator does not cover

This page does not parse products like (x+1)(x-1), quotients beyond the explicit reciprocal term a/x, trigonometric functions, exponentials, logarithmic compositions, substitution-based problems, or integration-by-parts workflows. If your problem needs algebraic expansion or a different integration technique before the antiderivative becomes term-by-term, the calculator is out of scope by design.

It also does not judge convergence of improper integrals beyond the explicit x = 0 warning for 1/x across an interval. Treat it as a focused power-rule and reciprocal-rule tool rather than a full symbolic integration engine. That narrower scope is what keeps the steps, domain warning, and average-value interpretation accurate for the problems it does claim to solve.

Further reading

Frequently asked questions

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

An indefinite integral gives a family of antiderivatives, so it is written with + C. A definite integral uses upper and lower bounds and returns a specific signed accumulation value over that interval. In practice, the calculator first finds the antiderivative and then, if bounds are present, evaluates F(b) - F(a).

Why is there a + C in indefinite integrals?

The constant of integration is there because differentiating a constant gives zero. That means many different antiderivatives can share the same derivative, differing only by a constant amount. The + C keeps that family of valid answers visible.

What happens when the exponent is -1?

The usual power rule would require dividing by n + 1, which becomes zero when n = -1. That is why the reciprocal term 1/x switches to the logarithmic rule instead: its antiderivative is ln|x| + C rather than x^0 / 0.

Can this integral calculator handle negative or fractional exponents?

Yes. Within its supported scope, the calculator handles powers such as x^-2 or x^0.5 in the same term-by-term way it handles x^3 or x. Negative and fractional exponents still follow the power rule as long as the exponent is not exactly -1, which is the separate logarithmic case.

Does a definite integral always represent area?

Not exactly. A definite integral represents signed accumulation. If the function is above the x-axis, that contribution is positive; if it is below the x-axis, that contribution is negative. So the result equals geometric area only when the function stays on one side of the axis over the interval.

What is the average value of a function on an interval?

It is the definite integral divided by the interval width, or (1 / (b - a)) ∫[a,b] f(x) dx. This calculator shows that quantity when you enter both bounds, which makes it useful for common follow-up questions in calculus classes and exam prep.

Why does this integral calculator show midpoint and trapezoid estimates?

The midpoint and trapezoid estimates are quick numerical checks for a definite integral. The calculator still uses the exact antiderivative for the final answer, but the estimates help you judge whether the signed accumulation is roughly the right size and sign.

Can I type 3*x^2 instead of 3x^2?

Yes. The calculator accepts an explicit multiplication mark between a number and x, such as 3*x^2. It still expects terms to be written as a sum of powers, so products like (x+1)(x-1) need to be expanded before use.

Why does the calculator reject an interval for 1/x that crosses zero?

Because 1/x is undefined at x = 0, and the logarithmic antiderivative cannot be applied across that discontinuity as if the function were continuous. The integral becomes improper there, so a simple endpoint substitution would be mathematically misleading.

Can this tool integrate sin(x), e^x, or ln(x)?

No. This page is intentionally narrower than a full symbolic integration engine. It is for polynomial-style expressions in x plus the explicit reciprocal case a/x. Trigonometric, exponential, logarithmic, product, quotient, and substitution-style integrals are outside scope.

Can I enter factored expressions like (x+1)(x-1)?

No. The calculator expects a sum of powers of x written term by term, such as x^2 - 1. If the expression is factored, expanded, or otherwise needs algebraic manipulation before the integration step becomes term-by-term, rewrite it first or use a broader algebra system.

What if I enter only one bound?

The calculator requires both bounds or neither. Entering only one endpoint does not define a complete definite integral, so the page warns you to provide both limits or leave the problem as an indefinite integral.

Is this the same as a full step-by-step CAS integral solver?

No. It is deliberately more limited and more transparent. That trade-off is useful for learning and checking power-rule work because every supported term is integrated explicitly, but it also means the page is not a substitute for a full symbolic algebra system when the method is something other than term-by-term integration.

Guides

Featured in articles

Step-by-step guides that use this calculator to solve real problems.

Also in Calculus

Related

More from nearby categories

These related calculators come from the same leaf category, nearby sibling categories, or the same top-level topic.