Indefinite integral calculator step-by-step — symbolic integration, substitution + integration by parts shown, plot f(x) and F(x).
- Runs locally
- Category Calculator
- Best for Getting a realistic range before a purchase, plan, workout, or schedule decision.
Use x as the variable. Operators: + − * / ^. Functions: sin cos tan asin acos atan sinh cosh exp ln sqrt abs. Constants: pi e. No implicit multiplication — write 2*x, not 2x.
- u-substitution#1
u-substitution: let u = x^2, du = 2 * x dx. Then ∫ 2 * x * cos(x^2) dx = ∫ cos(u_sub) du = sin(u_sub), back-substitute u → sin(x^2)
∫ 2 * x * cos(x^2) dx = sin(x^2)
What this tool does
A real symbolic integral calculator — antidifferentiation, not Simpson's rule. Type any single-variable expression in x — 2*x*cos(x^2), 1/(x^2+1), x*exp(x), sin(x)*cos(x), 1/(x^2-4) — and the page returns the antiderivative F(x) plus the rule that fired at every level (power rule, u-substitution, integration by parts via LIATE, partial fractions for 1/(x²−a²), linear u-sub for f(ax+b), inverse-trig table). The steps read the way a tutor explains them: "let u = x², du = 2x dx, the ∫ collapses to ∫ cos(u) du = sin(u), back-substitute". A definite-integral panel computes F(b) − F(a) with the limits you type. An SVG plot draws f(x) and F(x) on the same axes so you can see the area-under-the- curve relationship visually. The answer is verified by symbolic differentiation back to f(x); if it does not match numerically at sample points, the page warns instead of pretending. And — this is the honest part — when the integral has no closed form (the famous ∫ e^(−x²) dx, ∫ sin(x)/x dx, ∫ 1/ln(x) dx), the page says so. No fabricated answers. Parser, integrator, simplifier, and SVG renderer are all written from scratch in the browser tab; no math library, no server call, your expression never leaves the page.
Tool details
- Input
- Text + Numbers
- The page exposes text boxes, numeric controls, file pickers, or structured inputs depending on the tool.
- Output
- Live result + Copy + Preview
- The result area focuses on usable output, with copy, download, or preview actions when supported.
- Privacy
- Browser-side processing
- The main tool logic does not call an external API, so inputs normally stay in the current tab.
- Save / share
- No account required
- Open the page and use it; whether results survive refresh depends on the tool.
- Performance budget
- Initial JS <= 38 KB
- No WASM budget is declared, keeping the tool quick to open on mobile.
- Best fit
- Calculator · Student
- Category and role tags drive related tools, internal links, and quick fit checks.
How to use
-
1. Input
Paste or drop your content into the tool panel.
-
2. Process
Click the button. All processing is local in your browser.
-
3. Copy / Download
Copy the result or download to disk in one click.
How Integral Calculator (Step-by-Step) fits into your work
Use it for fast estimates, comparisons, and planning numbers before you make the final call.
Calculation jobs
- Getting a realistic range before a purchase, plan, workout, or schedule decision.
- Comparing scenarios by changing one input at a time.
- Turning rough assumptions into a number you can discuss.
Calculation checks
- Double-check units, dates, rates, and rounding assumptions.
- Treat health, finance, tax, and legal outputs as planning aids, not professional advice.
- Save the inputs that produced an important result so you can reproduce it later.
Good next steps
These links move the current task into a more complete workflow.
- 1 Scientific Calculator Scientific calculator — sin / cos / log / sqrt / power, with full keyboard input + history, deg/rad mode. Open
- 2 Derivative Calculator (Step-by-Step) Derivative calculator with step-by-step — symbolic differentiation, chain/product/quotient rule shown, plot f(x) and f'(x). Open
- 3 Matrix Calculator Matrix calculator — add/sub/multiply/inverse/determinant/transpose/rank/RREF/eigenvalues for n×m matrices, step-by-step. Open
Real-world use cases
Verify a u-substitution problem before turning it in
The textbook said ∫ 2x·cos(x²) dx = sin(x²) + C. You got there but cannot quite explain why you set u = x². Paste 2*x * cos(x^2) into the calculator. The step panel writes "let u = x², du = 2x dx, so the ∫ collapses to ∫ cos(u) du = sin(u), back-substitute u → sin(x²)". You see the mechanical reason: the 2x out front is literally what du looks like, so the substitution turns a hard integrand into a trivial one. Two minutes to internalize the trick that will save you on the next quiz problem.
Practice integration by parts on x·exp(x)
The classic by-parts exercise. Type x * exp(x). The step panel reads "LIATE: u = x (algebraic), dv = exp(x) dx, so du = dx, v = exp(x), then u·v − ∫v du = x·exp(x) − ∫exp(x) dx = x·exp(x) − exp(x)". You can copy each piece to your worksheet and tick it off. The verified badge below confirms d/dx of x·exp(x) − exp(x) really is x·exp(x), so your answer is consistent — not just the right shape.
Solve a partial-fractions integral the page recognizes
1/(x²−4) is the textbook intro to partial fractions. Type 1 / (x^2 - 4). The page detects the (x²−a²) form, writes out 1/((x−2)(x+2)) = (1/4)(1/(x−2) − 1/(x+2)), integrates each piece, and prints (1/4) · ln|(x−2)/(x+2)| + C. You see why a = 2 mattered, why the coefficient came out to 1/(2a), and how the two log terms combine into a single ratio inside the absolute value. The plot makes the asymptotes at x = ±2 obvious.
Get a definite integral value without doing the arithmetic
Once F(x) is computed, the definite-integral panel asks for a and b. Type 0 and pi, hit enter — the page evaluates F(pi) − F(0) numerically. For ∫₀^π sin(x) dx = 2 this lines up with the known answer; for trickier antiderivatives you can sanity-check against Wolfram or your CAS. No need to recopy F(x) into a separate calculator and risk a sign error in the transcription.
See an honest "no elementary form" message and learn why
Type exp(-x^2). The page returns an orange panel: "Could not integrate — some integrals truly have no elementary form (e.g. ∫ exp(−x²) dx). Try a different substitution by hand, or use a numerical method for definite integrals." This is not a calculator bug — it is Liouville's theorem. The Gaussian integrand has no antiderivative expressible in elementary functions; the function erf was invented to name its antiderivative. Seeing the failure framed correctly is how students learn the boundary of what symbolic integration can do.
Common pitfalls
Not every integral has an elementary antiderivative. ∫ e^(−x²) dx, ∫ sin(x)/x dx, ∫ 1/ln(x) dx, ∫ e^x/x dx, ∫ √(1+x³) dx — Liouville's theorem (1835) proves these cannot be written with elementary functions. The calculator will say so honestly rather than fabricate an answer; do not assume a failure means you typed it wrong.
Writing implicit multiplication. "2x" and "sin x" do not parse — use 2*x and sin(x). The error pinpoints the character position where the parser stopped so you do not have to hunt.
Forgetting the + C. The page prints "+ C" next to the answer as a reminder. An indefinite integral is a family of functions differing by a constant; leaving off + C costs marks even when the antiderivative is exactly right. Definite integrals don't need it because the constant cancels in F(b) − F(a).
Confusing the constant of integration with the constant inside the integrand. ∫ 5 dx = 5x + C (the 5 is a coefficient on x), not 5 + C. The calculator handles this correctly, but it is the most common error on the second day of class.
Privacy
The expression you type, the AST, the antiderivative, the symbolic-derivative verification, the definite-integral value, and every numeric sample on the plot are all computed inside your browser tab. Nothing is uploaded, logged, or stored — not even in localStorage. Disconnect the network after the page loads and the calculator still works on a phone in airplane mode or a classroom laptop with no internet. Refresh the tab and the page is back to a clean state with no record left.
FAQ
Tool combos
Folks in your role tend to reach for these alongside this tool.
- Chinese Acupoint Locator 200+ meridian acupoints / WHO 2008 standard locations / with contraindications, manipulation, and combinations.
- Affine Cipher Encoder & Decoder Encrypt and decrypt the ax+b affine cipher with live modular-inverse check, browser-only
- Anagram Solver Check if two words are anagrams, rearrange a set of letters into every ordering, and read the sorted letter fingerprint, all in your browser
- Angle Converter Degrees, radians, gradians, turns, arcminutes, arcseconds and NATO mils, all from one input, copyable, browser-only