NUMERI
CAL
CULATOR
Home
Converting
Binary Converter
IEEE 754 Representation
Root Finding
Bisection Method
False-Position Method
Newton-Raphson Method
Secant Method
Derivative
Integral
Numerical Integral
◀
Function
Enter a function to find its integral
x^2-2
Lower bound of the interval
Upper bound of the interval
Number of subintervals: n
Formula to use
Midpoint Rule
Trapezoidal Rule
Simpson's 1/3 Rule
Simpson's 3/8 Rule
Find Integral
Summary
Function
x^2 - 2
Python Function
x**2 - 2
Symbolic Integral
\frac{x^{3}}{3} - 2 x
Integral Function
x**3/3 - 2*x
a
1.0
b
2.0
n
100
h
0.01
Formula
Midpoint
Symbolic Result
0.333333333333333
Numerical Result
0.3333250000000002
Error
8.33333333305486e-6
Numerical Result
\int_{a}^{b} f(x) dx = h \sum_{i=0}^{n-1} f(a + (i + \frac{1}{2})h) = 0.01 \sum_{i=0}^{n-1} f(1.0 + (i + \frac{1}{2}) \cdot 0.01) = 0.333325
Graph