Professor Turing

Study guides

Definite and indefinite integrals: what is the difference?

Last updated: 2026-11-26

An indefinite integral of f is a family of functions whose derivative is f, written ∫f(x) dx with a +C. A definite integral from a to b is one number: the signed area between the graph and the axis over that interval. The same word, two different objects, and the fundamental theorem of calculus is the bridge between them.

Start learning No account needed

1. Two objects, one word

Wikipedia's antiderivative article defines an antiderivative of f as a differentiable function F whose derivative equals f. Because the derivative of a constant is zero, antiderivatives come in families: x³/3, x³/3 + 1 and x³/3 − 2 all have derivative x², and the graphs are vertical translations of each other. For a function defined on an interval, any two of its antiderivatives differ by a constant. The indefinite integral ∫f(x) dx names that family, which is why the answer carries a +C.

The definite integral is a different kind of thing. The integral article describes it as the signed area of the region bounded by the graph between two points, with areas above the axis counted positive and areas below counted negative. It has bounds on the integral sign and answers with a number.

2. A worked example: x² from 0 to 2

Both integrals of the same function, side by side. The antiderivative of x² is x³/3 + C; the definite integral from 0 to 2 is one number, computed by the formula and then checked with narrower and narrower rectangles. The script is scripts/definite-vs-indefinite-integral-worked-example.py in the Professor Turing repository:

indefinite: integral of x^2 dx = x^3/3 + C
  C = 0: F(x) = x^3/3 + 0; numeric F'(1.5) = 2.2500, and 1.5^2 = 2.2500
  C = 5: F(x) = x^3/3 + 5; numeric F'(1.5) = 2.2500, and 1.5^2 = 2.2500
definite: F(2) - F(0) = 2.6667 with C = 0 and 2.6667 with C = 5 (= 8/3)
  right endpoints, n = 10: 3.0800
  right endpoints, n = 100: 2.7068
  right endpoints, n = 1000: 2.6707
  midpoints, n = 10: 2.6600
test: integral of 3x^2 from 0 to 1 = x^3 at 1 minus x^3 at 0 = 1.0000
integral of x from -1 to 1: left half -0.5000, right half 0.5000, total 0.0000
area without signs: 0.5000 + 0.5000 = 1.0000

The indefinite side is a family: with C = 0 and with C = 5, the numeric derivative at x = 1.5 is 2.2500, which equals 1.5². The definite side is the number 8/3 = 2.6667, from F(2) − F(0), and both choices of C give it. The rectangle checks move toward it: right-endpoint sums give 3.0800 with ten rectangles, 2.7068 with a hundred and 2.6707 with a thousand, and midpoints with ten give 2.6600. The Riemann integral is defined from sums like these, with no antiderivative involved.

3. Why the definite answer is a number when the indefinite answer is a family

The fundamental theorem of calculus connects the two: for a continuous f, the definite integral from a to b equals F(b) − F(a) for an antiderivative F, and the choice of antiderivative does not matter, because the constant cancels. With F(x) = x³/3 + 5 instead of x³/3, both F(2) and F(0) gain 5, which subtracts away, and the script prints 2.6667 both ways. The theorem's other part runs in the opposite direction: integrating a continuous f from a fixed point up to x produces an antiderivative of f.

4. A common misconception: "area" without the sign

Picture the area under a graph and you may forget that the definite integral counts regions below the horizontal axis as negative. The script runs y = x from −1 to 1: the left half contributes −0.5000, the right half 0.5000, and the total is 0.0000. The two signed regions cancel. For the plain geometric area, split the interval where the graph crosses the axis and add the sizes without their signs, which gives 1.0000 here.

5. Test yourself

Close this page and answer three questions: what is ∫3x² dx, and does it have a +C; what is the integral of 3x² from 0 to 1, and does it have a +C; and why does the C disappear in the second answer? Then reopen the page and compare: the first answer is x³ + C, and the script's test line computes 1.0000 for the second.

For the surrounding course, see how to study for calculus and, if the subject has a gap somewhere, why calculus feels hard. For how practice checks work, see how to test yourself.

What the sources found, and their limits

Wikipedia, "Antiderivative". It defines an antiderivative as a differentiable F with F′ = f, gives the x³/3 family for x² with the constant of integration, states that antiderivative graphs are vertical translations, and quotes the second fundamental theorem's F(b) − F(a). Source: Antiderivative, read on 2026-11-25.

Wikipedia, "Fundamental theorem of calculus". It states the two parts, the antiderivative obtained from a variable upper bound and the fixed-interval evaluation as a change in any antiderivative, and describes the two operations as inverses. Source: Fundamental theorem of calculus, read on 2026-11-25.

Wikipedia, "Integral". It describes the definite integral as signed area, above the axis positive and below negative, the indefinite sense of the word as the antiderivative, and the definition of the Riemann integral from sums. Source: Integral, read on 2026-11-25.

Limits: encyclopedia articles, not course texts. The Integral article works rectangle sums for the square root of x, and the theorem article computes an integral of x² between other bounds; the numbers, rectangle checks, test question and signed-area check on this page are ours.

How Professor Turing helps

Professor Turing is a tutor for adults learning any subject, in college or on their own. It asks you questions instead of giving the final answer, does not grade a bare guess, and remembers what you got wrong. No account is needed to start.

Bring an integral from your problem set and say which part you can do. Its first reply asks what you know before it teaches anything. If you drop the +C or add bounds without a plan, it asks how you decided instead of saying wrong, and when you stay stuck it makes the next step smaller, back to one antiderivative or one rectangle. Later in a session it can offer a short test without help, scored apart from the tutoring, so you can tell what you can do alone from what the tutor carried you through. You must be 18 or older, and guest conversations are deleted 7 days after the last activity.

FAQ

Why does an indefinite integral have a +C? Because the derivative of a constant is zero, a function with one antiderivative has infinitely many: x^3/3, x^3/3 + 5 and x^3/3 - 2 all have derivative x^2. Differentiating removes the constant, so working backwards cannot recover it, and the answer stays a family, one function for each C.

Is the definite integral an area? A signed area. Regions above the horizontal axis count positive and regions below count negative, so the integral of x from -1 to 1 is 0: the left half contributes -0.5 and the right half 0.5. A definite integral of a function that dips below the axis can be small even when large regions are involved.

Start with what you're working on

Tell the tutor which integral you are working on and let it ask you the questions.

Start learning No account needed

See also: how to study for calculus · what is a limit in calculus · what is a Riemann sum · the fundamental theorem of calculus · all study guides