Antiderivative Calculator
Find the indefinite integral of mathematical functions with step-by-step solutions, graph visualization, derivative verification, and detailed calculus explanations.
Function to integrate
Common integral formulas
Power & constant
Exponential & logarithmic
Trigonometric
Inverse-trig & hyperbolic
What Is An Antiderivative Calculator?
An antiderivative calculator finds the indefinite integral of a function — that is, a function F(x) whose derivative is the function f(x) you entered. Where a derivative tells you the instantaneous rate of change, an antiderivative runs the process in reverse: it reconstructs the original quantity from its rate. This tool parses your expression with a built-in symbolic engine, applies the correct integration rule, simplifies the result, verifies it by differentiating the answer back, plots both curves, and explains every step in plain English.
It handles polynomials, rational functions, exponentials, logarithms, all six trigonometric and inverse-trigonometric functions, hyperbolic functions, square roots, and many composite expressions through substitution and integration by parts. Every answer includes the mandatory constant of integration + C. It pairs naturally with the scientific calculator, the quadratic formula calculator, and the log calculator.
How Antiderivatives Work
Reverse of differentiation
F(x) is an antiderivative of f(x) if F′(x) = f(x). Integration undoes differentiation, so knowing the derivative rules backwards gives you the integration rules. That is why this calculator verifies its own answer by differentiating it.
A whole family of curves
Because the derivative of any constant is zero, if F(x) works then so does F(x) + 5, F(x) − 200, and F(x) + C for any constant C. The indefinite integral therefore represents an infinite family of parallel curves, all with the same slope at every x.
The +C is not optional
Leaving out the constant of integration is the single most common mistake. Without + C you have named one antiderivative instead of all of them, which matters the moment you apply an initial condition to pin down the specific curve.
Slope equals height
The defining geometric picture: at every point, the slope of the antiderivative F(x) equals the height of the original function f(x). Where f is positive, F rises; where f is zero, F is momentarily flat; where f is negative, F falls.
6 Ways To Use This Calculator
Check your homework
Integrate a function, then compare the answer and every step against your own working. The verification badge tells you instantly whether the result differentiates back to the original.
Learn the integration rules
The rule identifier names exactly which technique was used — power rule, u-substitution, integration by parts, partial fractions — and explains why it applies to your specific function.
Visualise f and F together
The interactive graph overlays your function and its antiderivative so you can see the slope-equals-height relationship. Drag to pan, zoom to inspect, toggle each curve on or off.
Export clean notation
Copy the answer as plain text, LaTeX for your report, or MathML for the web. The shareable link reopens the calculator with your exact function pre-loaded.
Explore what-if changes
Switch the integration variable, toggle simplification, or turn verification on and off — the result updates instantly so you can compare forms of the same answer.
Build calculus intuition
Try eˣ, sin x, and 1/x to memorise the special antiderivatives, then combine them into sums and products to watch linearity and integration by parts in action.
Best Practices For Integration
Simplify before you integrate, not after. Expanding a product, splitting a fraction into separate terms, or cancelling a common factor often converts an intimidating integral into a sum of textbook cases. This calculator simplifies internally, but on paper the habit saves you from reaching for substitution when the power rule would have done the job.
Choose your method by the shape of the integrand. A single power of the variable is the power rule; a composite function whose inner derivative also appears is a substitution; a product of two unlike functions is usually integration by parts (use the LIATE order — logarithmic, inverse-trig, algebraic, trigonometric, exponential — to pick the part to differentiate); a proper rational function calls for partial fractions.
Always verify by differentiating. Because integration and differentiation are inverses, taking the derivative of your answer should return the original integrand exactly. It is the fastest, most reliable check in all of calculus — and the reason this tool performs it automatically on every result.
Why Antiderivatives Matter
Physics and motion
Integrating acceleration gives velocity; integrating velocity gives position. Antiderivatives recover the whole history of a moving object from its rate of change, which is why they open every mechanics course.
Area and accumulation
The Fundamental Theorem of Calculus links the antiderivative to the area under a curve. Total distance, accumulated cost, delivered charge, and consumed fuel are all definite integrals evaluated from an antiderivative.
Probability and statistics
A probability density function integrates to a cumulative distribution function. Expected values, variances, and the normalising constants of continuous distributions all rely on finding antiderivatives.
Engineering and economics
Consumer and producer surplus, present value of a continuous income stream, work done by a variable force, and the response of an electrical circuit are computed by integrating a rate over an interval.
Where Integration Gets Tricky
The n = −1 exception
The power rule ∫xⁿ dx = xⁿ⁺¹/(n+1) breaks at n = −1 because you would divide by zero. That single case, ∫1/x dx, is the natural logarithm ln|x| — the reason logarithms appear throughout integration.
No elementary antiderivative
Some perfectly ordinary functions — eˣ², sin(x)/x, √(1 + x³) — have no antiderivative expressible in elementary functions. This calculator says so honestly and points you to a definite (numerical) integral instead of inventing a wrong answer.
Absolute values in logs
The antiderivative of 1/x is ln|x|, not ln(x). The absolute value keeps the answer valid for negative inputs. This calculator always writes the |·| where it belongs so your domain stays correct.
Constants hiding as variables
Only the variable you integrate against is treated as a variable; every other letter is a constant that comes along for the ride. Choosing the wrong variable of integration silently changes the whole answer, so the dropdown makes it explicit.
Core Integration Formulas
Constant rule
∫ k dx = kx + C
A constant integrates to itself times x.
Power rule
∫ xⁿ dx = xⁿ⁺¹/(n+1) + C
For any n ≠ −1.
Reciprocal
∫ 1/x dx = ln|x| + C
The n = −1 exception.
Natural exponential
∫ eˣ dx = eˣ + C
Its own antiderivative.
General exponential
∫ aˣ dx = aˣ / ln a + C
Base a > 0, a ≠ 1.
Natural log
∫ ln x dx = x ln x − x + C
By parts.
Sine
∫ sin x dx = −cos x + C
Mind the minus sign.
Cosine
∫ cos x dx = sin x + C
No sign change.
Secant squared
∫ sec²x dx = tan x + C
Derivative of tangent.
Arctangent form
∫ 1/(1+x²) dx = arctan x + C
Inverse-trig result.
Arcsine form
∫ 1/√(1−x²) dx = arcsin x + C
Inverse-trig result.
Linearity
∫ [a·f + b·g] dx = a∫f + b∫g
Integrate term by term.
The Main Integration Techniques
Substitution
Reverse the chain rule
When an integrand contains a composite function together with (a constant multiple of) the derivative of its inner part, let u be the inner function. Then du absorbs the extra factor and the integral collapses to a standard form. Example: ∫2x·cos(x²) dx with u = x² becomes ∫cos u du = sin(x²) + C.
Integration by parts
Reverse the product rule
For a product of unlike functions, use ∫u dv = u·v − ∫v du. Choose u by the LIATE priority so that differentiating it eventually simplifies. Example: ∫x·eˣ dx with u = x, dv = eˣ dx gives x·eˣ − ∫eˣ dx = x·eˣ − eˣ + C.
Partial fractions
Split a rational function
A proper rational function whose denominator factors into distinct linear terms can be rewritten as a sum of simpler fractions, each of which integrates to a logarithm. Example: ∫1/(x²−4) dx splits into ¼ln|x−2| − ¼ln|x+2| + C.
Linearity
Integrate term by term
The integral of a sum is the sum of the integrals, and constant factors pull straight out. This is why any polynomial integrates instantly: you apply the power rule to each term and add the results, then attach a single + C at the end.
Common Integration Mistakes
- 1
Forgetting the constant of integration
Every indefinite integral needs + C. Without it you have found one antiderivative, not the family of all of them — and you cannot apply an initial condition later.
- 2
Misapplying the power rule at n = −1
∫x⁻¹ dx is ln|x|, not x⁰/0. The power rule explicitly excludes n = −1 because it would divide by zero.
- 3
Dropping the absolute value in logs
∫1/x dx = ln|x| + C. Writing ln(x) silently restricts the domain to positive x and loses half the solution.
- 4
Integrating a product factor by factor
∫f·g dx is not ∫f dx · ∫g dx. Products require the product-in-reverse rule (integration by parts) or a substitution — never term-by-term multiplication.
- 5
Chain rule confusion in reverse
∫cos(2x) dx = ½sin(2x) + C, not sin(2x). The inner derivative 2 must be divided out — a linear substitution the calculator handles automatically.
- 6
Sign slip on sine and cosine
∫sin x dx = −cos x, while ∫cos x dx = +sin x. The minus sign lives with the sine integral; mixing them up is the classic trig-integral error.
Worked Examples
Power rule
∫ x² dx
Add one to the exponent and divide by the new exponent: x²⁺¹ / (2+1) = x³/3. Answer: x³/3 + C. Check: d/dx(x³/3) = 3x²/3 = x². ✓
Linearity
∫ (3x² + 2x + 1) dx
Integrate each term with the power rule: 3·x³/3 + 2·x²/2 + x = x³ + x² + x. Answer: x³ + x² + x + C. Check: differentiating returns 3x² + 2x + 1. ✓
Special forms
∫ sin x dx and ∫ eˣ dx
The sine integrates to −cos x + C (note the minus), and the natural exponential is its own antiderivative: ∫eˣ dx = eˣ + C. These two are worth memorising cold.
Reciprocal
∫ 1/x dx
This is the power rule's forbidden case n = −1, and it evaluates to the natural logarithm with an absolute value: ln|x| + C. Valid for both positive and negative x.
Methodology you can verify
Every integral is computed by a symbolic engine that parses your expression into an abstract syntax tree, applies the standard integration rules (power, exponential, logarithmic, trigonometric, substitution, integration by parts, and partial fractions), and then confirms the result by differentiating it and comparing against the original integrand at multiple sample points. When a function has no elementary antiderivative, the calculator states the limitation rather than returning a wrong answer. Read more on the methodology and editorial policy pages.
Frequently Asked Questions
Related Calculators
More calculus, algebra, and graphing tools to pair with the antiderivative calculator.
- Quadratic Formula CalculatorSolve ax² + bx + c = 0 with discriminant, vertex, factored form, parabola graph, and full working.
- Scientific CalculatorAdvanced trig, log, exponent, root, factorial, and memory functions.
- Log CalculatorSolve log_b(x) = y for any unknown — base, argument, or result — with change-of-base steps and graph.
- Exponent CalculatorSolve y = bˣ for any unknown with expanded multiplication, logarithm derivation, and property breakdown.
- Slope CalculatorSlope, angle, distance, midpoint, intercepts, and the line equation with an interactive coordinate-plane graph.
- Root CalculatorSquare root, cube root, and any nth root with step-by-step simplification.