Quick Answer
The integral of x^2 from 0 to 1 is 1/3 (approximately 0.333333). The integral of sin(x) from 0 to pi is 2.
Use * for multiplication. Examples: x^2, sin(x), exp(x), log(x), sqrt(x), 1/x
Common Examples
| Input | Result |
|---|---|
| x^2 from 0 to 1 | 0.333333 (= 1/3) |
| sin(x) from 0 to pi | 2 |
| x from 0 to 10 | 50 |
| e^x from 0 to 1 | 1.718282 (= e - 1) |
| 1/x from 1 to e | 1 (= ln(e)) |
How It Works
Definition
The definite integral of f(x) from a to b represents the signed area between the function and the x-axis:
\[\int_a^b f(x)\, dx\]Simpson’s rule
This calculator uses composite Simpson’s rule for numerical approximation:
\[\int_a^b f(x)\, dx \approx \frac{h}{3}\left[f(x_0) + 4f(x_1) + 2f(x_2) + 4f(x_3) + \cdots + f(x_n)\right]\]Where \(h = (b - a)/n\) and n is the number of subdivisions (1,000 by default). Simpson’s rule is exact for polynomials up to degree 3 and provides very accurate results for smooth functions.
Common antiderivatives
| Function | Antiderivative | ||
|---|---|---|---|
| \(x^n\) | \(\frac{x^{n+1}}{n+1} + C\) | ||
| \(1/x\) | $$\ln | x | + C$$ |
| \(e^x\) | \(e^x + C\) | ||
| \(\sin(x)\) | \(-\cos(x) + C\) | ||
| \(\cos(x)\) | \(\sin(x) + C\) |
Worked example
For the integral of x^2 from 0 to 1: The antiderivative of x^2 is x^3/3. Evaluating at the bounds: (1^3/3) - (0^3/3) = 1/3 - 0 = 1/3 = 0.333333. Simpson’s rule with 1,000 subdivisions produces the same result to 6+ decimal places.
Related Calculators
Derivative Calculator
Find the derivative of a function symbolically and evaluate it at any point.
Limit Calculator
Calculate limits of functions numerically with convergence tables and one-sided analysis.
Area Calculator
Calculate the area of common shapes: rectangle, triangle, circle, trapezoid, and ellipse.
CalculateY