On [1, 4] the card prints 2 for 1/sqrt(x), and the arithmetic behind it is one line: the antiderivative is 2√x, so 2·2 − 2·1 = 2. Make the interval start at 0 instead, where the function is undefined and its value is infinite, and the card answers 3.99999999976 — that is 4, with the residue of a numerical method working against a singularity. The area is finite because 2√x at 0 is 0, not infinity: the curve shoots up, but it does so narrowly.
The threshold is worth remembering. ∫₀¹ x^p dx converges for p > −1 and diverges for p ≤ −1, so 1/√x (p = −1/2) is safe while 1/x (p = −1) is not — the logarithm at the same place is the famous divergence. This is the whole content of the p-test, and the reason a probability density on a bounded interval may be unbounded and still be legitimate while its tail must decay faster than 1/x.
Answer
2
How to read it
The integral card for 1/sqrt(x) on [1, 4], where 2√x gives 4 − 2. The second link is the same function on [0, 4], where the improper area comes out 3.99999999976; the third is 2·(√4 − 1), the antiderivative evaluated by hand.
Source
∫dx/√x = 2√x is the textbook example of an improper integral with an infinite integrand and a finite area; the general statement — ∫₀¹ x^p dx converges exactly when p > −1 — is standard in every treatment of the p-integral
Work it in the calculator
These links open the right calculator with this problem's numbers already typed in. The line above is what the screen should show — check it yourself.