∫ 3x² dx from 0 to 2
Integrate f(x) =: 3*x^2 · Lower limit a: 0 · Upper limit b: 2
∫ from 0 to 2 of 3*x^2 dx8
= 8; F(x) = x^3 + C.
The antiderivative of x²·sin(x) is 2·cos(x)+2·x·sin(x)-x^2·cos(x) + C (by integrating by parts twice). The definite integral from 0 to π is 5.8696044011, which equals π² − 4.
∫ from 0 to 3.1416 of x^2 * sin(x) dx
5.8696044011
Understand it
An integral calculator finds the antiderivative of a function — the F(x) whose derivative is f(x) — and the definite integral, the signed area under the curve between two limits.
This tool uses a computer-algebra engine for exact antiderivatives (polynomials, trig, exponentials, logs and many products) and adaptive Simpson’s rule for the definite integral, accurate to around 10 significant digits. When no closed form exists, such as e^(−x²), you still get the numeric answer.
Syntax: x^n, sqrt(x), exp(x), ln(x) for natural log, sin(x) in radians. Regions below the x-axis count as negative area.
Integrate f(x) =: 3*x^2 · Lower limit a: 0 · Upper limit b: 2
∫ from 0 to 2 of 3*x^2 dx8
= 8; F(x) = x^3 + C.
Integrate f(x) =: exp(-x^2) · Lower limit a: -3 · Upper limit b: 3
∫ from -3 to 3 of exp(-x^2) dx1.7724146965
≈ 1.7724146965, close to √π.
Integrate f(x) =: 1/x · Lower limit a: 1 · Upper limit b: 2.718
∫ from 1 to 2.7183 of 1/x dx0.9999999998
= 0.9999999998: ln(e) − ln(1).
Original analysis
Every chart below is generated from the same tested formula that powers the calculator above, so you can see the patterns behind a single result.
| Number of slices | Left Riemann | Trapezoid |
|---|---|---|
| 2 slices | 5.63 | 1.13 |
| 4 slices | 3.09 | 0.28 |
| 8 slices | 1.62 | 0.07 |
| 16 slices | 0.83 | 0.02 |
| 32 slices | 0.42 | 0 |
| 64 slices | 0.21 | 0 |
For ∫₀³ x² dx = 9, a left Riemann sum with 64 rectangles is still off by 0.2098. The trapezoid rule is off by 0.0011, and Simpson’s rule is exact for polynomials up to degree 3. Smarter rules beat brute force.
Yes. The “Antiderivative F(x)” line gives the indefinite integral; add any constant C.
Enter the function and the x-limits. The definite integral is the signed area; for total area where the curve dips below the axis, split the interval at the roots and add absolute values.
x³/3 + C. Over [0, 3] the definite integral is 9.
An indefinite integral is a family of functions F(x) + C. A definite integral is a number: F(b) − F(a).
Every continuous function has an antiderivative, but some, like e^(−x²), can’t be written with elementary functions. They are still computed numerically.
Adaptive Simpson’s rule typically gives 10+ correct digits for smooth functions on finite intervals.
Calculators for the next question people usually ask after this one.
byBhuvanesh S. Runs through our automated test suite on every build.
Results are estimates. Double-check anything important before relying on it.