Change language

Learn to calculate by playing with Definite integral calculator

A short game to see where the result comes from. Pick a language and start; you can stop halfway and come back.

Loading the game…

← Back to Definite integral calculator

What you will practise

Compute the area under a curve between two limits using Simpson’s rule.

How it works

Composite Simpson's rule is applied, approximating the function with parabolas over each pair of subintervals. With 1000 subintervals the error is usually negligible for smooth functions.

Where the function dips below the X axis, that area subtracts.

Formula

∫ₐᵇ f(x) dx ≈ (h/3) · [f(a) + 4·Σf(odd) + 2·Σf(even) + f(b)]

with h = (b − a) / n and n even

Mean value: (1/(b−a)) · ∫ₐᵇ f(x) dx

Worked example

∫₀³ (x² + 1) dx

Antiderivative: x³/3 + x
Evaluated: (27/3 + 3) − 0 = 12

Simpson's rule returns 12.00000000

How to play

First pick your language. Then work through the challenges one by one: each sets out a case with real numbers and, if you get stuck, you can ask for a hint. When you answer, you see whether you got it right and why. Progress is saved only in your browser, so you can stop halfway and carry on another day.