Scientific Converters Precise unit conversions for science & engineering.

    Loading…

    Numerical Integration Calculator

    Simpson’s rule fits parabolas through the ordinates: ∫₀¹ 1/(1 + x²) dx with 6 intervals gives 0.785397945234, against π/4 = 0.785398.

    Use x, ^ for powers, and sin, cos, tan, exp, ln, log, sqrt, abs, pi, e. 2x and xsin(x) are understood.

    Simpson’s 1/3 needs an even n; 3/8 needs a multiple of 3.

    Simpson’s 1/3 rule ≈

    0.785397945234011

    Full answer, then cut to fewer decimals (not rounded):

    • 0.785397945234011
    • 0.78539794523401
    • 0.7853979452340
    • 0.785397945234
    • 0.78539794523
    • 0.7853979452
    • 0.785397945
    • 0.78539794
    • 0.7853979
    • 0.785397
    • 0.78539
    • 0.7853
    • 0.785
    • 0.78
    • 0.7
    Trapezoidal rule
    0.7842407666
    Simpson’s 1/3 rule
    0.7853979452
    Simpson’s 3/8 rule
    0.7853958624
    Reference value (adaptive)
    0.7853981634
    Step h = (b − a)/n
    0.1666666667
    Ordinates
    ixᵢf(xᵢ)
    001
    10.166666670.972972973
    20.333333330.9
    30.50.8
    40.666666670.6923076923
    50.833333330.5901639344
    610.5
    Step-by-step solution
    1. h = (1 − 0) ÷ 6 = 0.1666666667
    2. Trapezoidal: h/2 [y₀ + 2(y₁ + … + yₙ₋₁) + yₙ] = 0.7842407666
    3. Simpson 1/3: h/3 [y₀ + 4(odd) + 2(even) + yₙ] = 0.7853979452

    Numerical Integration Formula

    Simpson: h/3 [y₀ + 4(y₁ + y₃ + …) + 2(y₂ + y₄ + …) + yₙ]

    trapezoidal: h/2 [y₀ + 2(y₁ + … + yₙ₋₁) + yₙ]

    Worked Example

    ∫₀¹ 1/(1 + x²) dx with n = 6:

    1. h = (1 − 0) ÷ 6 = 0.1666666667
    2. Trapezoidal: h/2 [y₀ + 2(y₁ + … + yₙ₋₁) + yₙ] = 0.7842407666
    3. Simpson 1/3: h/3 [y₀ + 4(odd) + 2(even) + yₙ] = 0.7853979452

    Simpson’s 1/3 rule: 0.7853979452 · Simpson’s 3/8 rule: 0.7853958624 · Reference value (adaptive): 0.7853981634 · Step h = (b − a)/n: 0.1666666667

    Ordinates
    ixᵢf(xᵢ)
    001
    10.166666670.972972973
    20.333333330.9
    30.50.8
    40.666666670.6923076923
    50.833333330.5901639344
    610.5

    GATE tip

    Check n before choosing a rule: Simpson 1/3 needs an even n and 3/8 a multiple of 3. With n = 6 both work and give a quick cross-check.

    More Numerical Methods Calculators

    All GATE Engineering Mathematics calculators →

    Frequently asked questions

    What is the error of the trapezoidal and Simpson rules?

    Trapezoidal error ∝ h² and is exact for straight lines; Simpson’s 1/3 error ∝ h⁴ and is exact for cubics.

    What if I only have a table of values?

    Use the Simpson’s rule calculator for tabulated ordinates; this page samples f(x) for you.

    Sources

    Last reviewed: . Factors are stored exactly and computed with 50-digit decimal arithmetic. See how we verify conversion factors.

    Cite this page

    APA

    Scientific Converters. (2026, October 15). Numerical Integration Calculator. Retrieved October 25, 2026, from https://scientificconverters.com/calculators/numerical-integration-calculator/

    IEEE

    Scientific Converters, "Numerical Integration Calculator," scientificconverters.com. Accessed: Oct. 25, 2026. [Online]. Available: https://scientificconverters.com/calculators/numerical-integration-calculator/

    Send feedback

    Found a wrong value, a missing unit or an idea? Tell us. We read every message.

    What is it about?

    We store your message, the page you were on and your email if given. See the privacy policy.