ToolJutsu
All tools
Math & Education Tools

Antiderivative Calculator

Find the antiderivative of a polynomial using the power rule, sum rule, and constant rule.

Scope: polynomial antiderivatives only

This calculator handles polynomials using the power rule, sum rule, and constant rule, plus the special case ∫ a/x dx = a·ln|x|. For trigonometric, exponential, or logarithmic integrals, use a full computer algebra system like SymPy or Wolfram.

Accepts ^ or unicode superscripts (x², x³). Supports fractional coefficients (e.g. 1/2x) and the reciprocal term 1/x.

Antiderivative F(x)

x³ + x² − 5x + C

The +C is the constant of integration

Number of terms

3

Plus the constant C

Step-by-step working

  1. ∫ 3x² dx = (3 / 3) · x³ =
  2. ∫ 2x dx = (2 / 2) · x² =
  3. ∫ −5 dx = (-5 / 1) · x¹ = −5x
  4. Sum the terms and append the constant of integration: x³ + x² − 5x + C

∫ (3x^2 + 2x - 5) dx = x³ + x² − 5x + C

Processed on your device. We never see your files.

How to use Antiderivative Calculator

What this calculator does

This calculator finds the antiderivative (also called the indefinite integral) of a polynomial function. You type an expression like 3x² + 2x − 5, and the tool returns the family of functions whose derivative equals what you typed, plus the constant of integration C. It also shows the work term by term, so you can copy the reasoning into homework, a tutorial, or notes — not just the final answer.

Scope: this tool is deliberately narrow

The calculator handles polynomial antiderivatives only: terms of the form a · xⁿ for any real coefficient a and integer power n. It applies three rules:

  • Power rule: ∫ xⁿ dx = xⁿ⁺¹ / (n + 1) + C for n ≠ −1.
  • Sum rule: the integral of a sum is the sum of the integrals.
  • Constant multiple rule: constants pull through unchanged.

Plus the single non-polynomial special case ∫ a/x dx = a · ln|x| + C, because it shows up so often alongside polynomial terms that excluding it would be hostile.

What it does not handle: sin, cos, tan, , general logarithms, partial fractions, chain-rule substitution, integration by parts, trigonometric substitution, or anything that needs a symbolic algebra system. For those, use SymPy or Wolfram Alpha. The honesty matters — pretending to handle every integral and then crashing on sin(x) is worse than saying “polynomials only” up front.

How to read the result

The output looks like x³ + x² − 5x + C. The + C is the constant of integration, and it represents the fact that every antiderivative of a given function is determined only up to an additive constant. If you differentiate x³ + C you get 3x² regardless of what C is — so when running the reverse process, we keep C as an unknown.

The calculator shows the work in steps. For each input term, it states the power-rule application: increase the exponent by one, then divide by the new exponent. So ∫ 3x² dx becomes (3 / 3) · x³ = x³, and ∫ −5 dx becomes −5x (a constant integrates to “constant times x”). The 1/x case prints as ln|x| with the absolute-value bars, because the natural log is only defined for positive arguments.

Worked examples

Example 1: ∫ (3x² + 2x − 5) dx

TermPower ruleResult
3x²3 / 3 · x³
2x2 / 2 · x²
−5−5x⁰⁺¹ / 1−5x

Sum: x³ + x² − 5x + C.

Example 2: ∫ (1/x + x⁴) dx

TermRuleResult
1/xspecial case: ln|x|ln|x|
x⁴x⁵ / 5x⁵/5

Sum: x⁵/5 + ln|x| + C.

Example 3: ∫ 6 dx A bare constant integrates to itself times x, so the answer is 6x + C. This catches people out because there’s no x in the input — the answer “appears” to gain a variable. The power rule view: 6 = 6x⁰, so ∫ 6x⁰ dx = 6 · x¹ / 1 = 6x.

Indefinite vs definite integrals

This tool computes indefinite integrals — functions, not numbers. A definite integral ∫ₐᵇ f(x) dx evaluates the antiderivative at two endpoints and subtracts: F(b) − F(a). The + C cancels in that subtraction (it’s added to both sides and then differenced away), which is why definite integrals don’t carry a constant.

To use this tool for a definite integral, compute the indefinite form, then evaluate it at your endpoints by hand. Example: ∫₀² 3x² dx = [x³]₀² = 8 − 0 = 8.

Common mistakes to avoid

Forgetting + C on indefinite integrals. Lose points on every exam this way. Definite integrals don’t carry it; indefinite ones always do.

Dividing by n instead of n + 1. The power rule for integration divides by the new power, not the old. ∫ x⁴ dx = x⁵ / 5, not x⁵ / 4.

Trying to integrate by substitution mentally. ∫ (2x + 1)² dx is not (2x + 1)³ / 3 + C — that would require accounting for the chain rule, which this tool does not. Expand the bracket first: (2x + 1)² = 4x² + 4x + 1, which the calculator integrates term by term.

Privacy

This calculator parses your input and runs arithmetic in JavaScript on your device. There are no fetch calls, no analytics on the expression you type, no server-side logging.

Frequently asked questions

Why is there a '+ C' at the end?
The + C is the constant of integration. When you differentiate a constant, you get zero — so any function and that same function plus a constant both have the same derivative. The reverse process (antidifferentiation) can't tell which constant was there originally, so we represent the entire family of antiderivatives by writing the polynomial part plus an arbitrary constant C. For example, , x² + 5, and x² − 100 all differentiate to 2x, so the antiderivative of 2x is written x² + C to acknowledge all three. If you have a boundary condition — like F(0) = 7 — you can pin C to a specific number, but the indefinite integral leaves it open.
How is this different from a definite integral?
An indefinite integral (what this calculator computes) is a function — the antiderivative family F(x) + C. A definite integral ∫ₐᵇ f(x) dx is a number — the signed area under the curve between x = a and x = b. To compute a definite integral from an indefinite one, evaluate the antiderivative at the upper limit and subtract its value at the lower limit: F(b) − F(a). The + C cancels in that subtraction, which is why definite integrals don't carry one. This tool gives you the indefinite form; plug in your endpoints by hand to get a numerical result.
What about ∫ sin(x) dx or ∫ eˣ dx?
Out of scope for this calculator. We deliberately handle polynomial antiderivatives only — the power rule, sum rule, constant rule, and the single special case ∫ a/x dx = a·ln|x| + C. Trigonometric (sin, cos, tan), exponential (, ), general logarithmic, and chain-rule integrals require a full computer algebra system. For those, use SymPy (from sympy import integrate, sin, symbols; integrate(sin(x), x)) or Wolfram Alpha (paste your integral and it returns symbolic steps). For polynomials, this calculator is fast and shows the working line by line — which a CAS often hides.
What is the power rule for integration?
The power rule for integration says: ∫ xⁿ dx = xⁿ⁺¹ / (n + 1) + C, valid for any real n ≠ −1. Increase the power by one, then divide by the new power. So ∫ x³ dx = x⁴ / 4 + C and ∫ x⁵ dx = x⁶ / 6 + C. For a polynomial with multiple terms, apply the rule to each term and add the results (this is the sum rule). Constants pull through unchanged (the constant multiple rule): ∫ 3x² dx = 3 · x³/3 + C = x³ + C. The exception n = −1 is the only non-polynomial case we handle: ∫ x⁻¹ dx = ∫ (1/x) dx = ln|x| + C.
Is my data uploaded anywhere?
No. The calculator parses your polynomial and runs the power rule term-by-term in JavaScript on your device. There are no fetch calls, no analytics on the expression you type, no server-side logging. You can verify in your device's Network panel — once the page has loaded, switching off your internet connection changes nothing about how the calculator behaves.

Related tools