Skip to content
  • Open the math solver
  • Ask the AI tutor
  • Find an AP course
  • Create a quiz
  • Open the calculator
  • Graphing Calculator
  • Browse all calculators
  • Read math guides
↑ ↓Enter to open · Esc to close
Solve a problem

Calculus

Definite vs Indefinite Integrals

By MathSolver Pro Editorial Team · Published

An indefinite integral is a family of functions, the antiderivatives, written with a constant +C+ C. A definite integral has limits of integration and produces a single number, a signed area or accumulated total. The Fundamental Theorem of Calculus lets you compute the second from the first.

The difference at a glance

  • Notation: indefinite ∫f(x) dx\int f(x)\,dx; definite ∫abf(x) dx\int_a^b f(x)\,dx with a lower limit aa and an upper limit bb.
  • Result: indefinite gives a function plus a constant; definite gives a number.
  • Meaning: indefinite answers which functions have this derivative; definite answers how much accumulates between aa and bb.
  • Constant: indefinite needs +C+ C; in a definite integral the constant cancels.
  • Check: differentiate an indefinite answer to recover the integrand; estimate a definite answer from a graph or with rectangles.

If integrals are new to you, start with what is an integral, which builds both ideas from scratch.

Indefinite integrals: families of antiderivatives

The indefinite integral of ff is the set of all functions whose derivative is ff. Because adding a constant does not change a derivative, the answer is always a family of curves, each a vertical shift of the others:

∫cos⁡x dx=sin⁡x+C\int \cos x\,dx = \sin x + C

To pick one member of the family you need extra information, usually a known value. This is called an initial value problem.

Example 1: find ff given f′(x)=6x−4f'(x) = 6x - 4 and f(1)=5f(1) = 5

  1. Integrate: f(x)=3x2−4x+Cf(x) = 3x^2 - 4x + C.
  2. Use the condition: 3−4+C=53 - 4 + C = 5, so C=6C = 6.
  3. Answer: f(x)=3x2−4x+6f(x) = 3x^2 - 4x + 6. Check: f′(x)=6x−4f'(x) = 6x - 4 and f(1)=5f(1) = 5.

Physics uses this all the time. If acceleration is constant at −9.8-9.8 m/s², integrating once gives velocity v(t)=−9.8t+v0v(t) = -9.8t + v_0, and integrating again gives height h(t)=−4.9t2+v0t+h0h(t) = -4.9t^2 + v_0 t + h_0. The two constants are the initial velocity and initial height.

Definite integrals: numbers from limits of sums

A definite integral is defined as a limit of Riemann sums and represents the signed area between the graph and the x-axis from aa to bb. The Fundamental Theorem of Calculus provides the shortcut for evaluating it:

∫abf(x) dx=F(b)−F(a),where F′=f\int_a^b f(x)\,dx = F(b) - F(a), \quad \text{where } F' = f

Example 2: evaluating definite integrals

  1. ∫01ex dx=[ex]01=e−1≈1.71828\int_0^1 e^x\,dx = \left[e^x\right]_0^1 = e - 1 \approx 1.71828.
  2. ∫1e1x dx=[ln⁡x]1e=1−0=1\int_1^e \frac{1}{x}\,dx = \left[\ln x\right]_1^e = 1 - 0 = 1.
  3. ∫0πsin⁡x dx=[−cos⁡x]0π=1−(−1)=2\int_0^{\pi}\sin x\,dx = \left[-\cos x\right]_0^{\pi} = 1 - (-1) = 2.

Using F+CF + C instead of FF changes nothing, because (F(b)+C)−(F(a)+C)=F(b)−F(a)(F(b) + C) - (F(a) + C) = F(b) - F(a). That is why the constant is dropped.

Properties of definite integrals

∫aaf dx=0,∫baf dx=−∫abf dx,∫abf dx+∫bcf dx=∫acf dx\int_a^a f\,dx = 0, \qquad \int_b^a f\,dx = -\int_a^b f\,dx, \qquad \int_a^b f\,dx + \int_b^c f\,dx = \int_a^c f\,dx

Sums and constant multiples pass through the integral sign, just as with derivatives. Symmetry can save a lot of work: if ff is odd, meaning f(−x)=−f(x)f(-x) = -f(x), then ∫−aaf dx=0\int_{-a}^{a} f\,dx = 0. For example, ∫−22x3 dx=0\int_{-2}^{2} x^3\,dx = 0 because the negative and positive halves cancel. If ff is even, ∫−aaf dx=2∫0af dx\int_{-a}^{a} f\,dx = 2\int_0^a f\,dx, so ∫−11x2 dx=2⋅13=23\int_{-1}^{1} x^2\,dx = 2\cdot\frac{1}{3} = \frac{2}{3}.

The average value of ff on [a,b][a, b] is 1b−a∫abf dx\frac{1}{b - a}\int_a^b f\,dx. For x2x^2 on [0,3][0, 3] that is 13⋅9=3\frac{1}{3}\cdot 9 = 3: a rectangle of height 3 and width 3 has the same area as the region under the parabola.

Substitution works differently in each

With an indefinite integral, you substitute, integrate, and then substitute back to the original variable. With a definite integral, you can instead change the limits to match the new variable and never go back.

Example 3: ∫012x(x2+1)3 dx\int_0^1 2x(x^2 + 1)^3\,dx

  1. Let u=x2+1u = x^2 + 1, so du=2x dxdu = 2x\,dx.
  2. Change the limits: when x=0x = 0, u=1u = 1; when x=1x = 1, u=2u = 2.
  3. ∫12u3 du=[u44]12=16−14=154\int_1^2 u^3\,du = \left[\frac{u^4}{4}\right]_1^2 = \frac{16 - 1}{4} = \frac{15}{4}.
  4. The indefinite route gives (x2+1)44\frac{(x^2 + 1)^4}{4} evaluated from 0 to 1, which is the same 164−14\frac{16}{4} - \frac{1}{4}.

A common error is substituting uu but keeping the old xx limits. Either change the limits or convert back to xx before evaluating, never half of each.

Where the two meet: accumulation functions

A definite integral with a variable upper limit is a function: A(x)=∫axf(t) dtA(x) = \int_a^x f(t)\,dt. It is a particular antiderivative of ff, the one that equals 0 at x=ax = a. For example, ∫0xt2 dt=x33\int_0^x t^2\,dt = \frac{x^3}{3}.

The first part of the Fundamental Theorem says ddx∫axf(t) dt=f(x)\frac{d}{dx}\int_a^x f(t)\,dt = f(x). So ddx∫1xcos⁡(t2) dt=cos⁡(x2)\frac{d}{dx}\int_1^x \cos(t^2)\,dt = \cos(x^2), even though that integral has no elementary formula. If the upper limit is itself a function, the chain rule adds a factor: ddx∫0x2sin⁡t dt=2xsin⁡(x2)\frac{d}{dx}\int_0^{x^2}\sin t\,dt = 2x\sin(x^2). Rules for differentiating are summarised in derivative rules explained.

Improper integrals

A definite integral over an infinite interval, or of a function that blows up inside the interval, is called improper and is defined as a limit. For example:

∫1∞1x2 dx=lim⁡b→∞[−1x]1b=lim⁡b→∞(1−1b)=1\int_1^{\infty}\frac{1}{x^2}\,dx = \lim_{b \to \infty}\left[-\frac{1}{x}\right]_1^b = \lim_{b \to \infty}\left(1 - \frac{1}{b}\right) = 1

So an infinitely long region can have a finite area. By contrast, ∫1∞1x dx=lim⁡b→∞ln⁡b\int_1^{\infty}\frac{1}{x}\,dx = \lim_{b \to \infty}\ln b grows without bound, so it diverges. This comparison is the basis of the integral test in series convergence tests.

Which one does a question want?

Look for limits on the integral sign or words such as from, between, total, area or how much. Those signal a definite integral and a numerical answer. Words such as find a function, general solution or antiderivative signal an indefinite integral with +C+ C. A question that gives a starting value, such as f(0)=2f(0) = 2, wants an indefinite integral followed by solving for CC.

Use the integral calculator for indefinite integrals with steps, and the definite integral calculator to evaluate over an interval, including improper integrals.

A worked comparison with one function

Seeing both kinds of integral applied to the same function makes the contrast concrete. Take the function that gives the rate at which water flows into a tank, in litres per minute, and suppose it equals 4t+24t + 2 after tt minutes.

The indefinite integral, 2t2+2t+C2t^2 + 2t + C, describes the amount of water in the tank at any time, but only up to an unknown starting amount. If the tank held 10 litres at the start, then C=10C = 10 and the volume after tt minutes is 2t2+2t+102t^2 + 2t + 10 litres. That is a function you can evaluate at any moment.

The definite integral from t=0t = 0 to t=5t = 5 answers a different question: how much water flowed in during those five minutes? It equals (50+10)−0=60(50 + 10) - 0 = 60 litres, regardless of how much was in the tank to begin with. The first answer is a formula for a state; the second is a single number for a change. Most applied problems fall clearly into one of those two types once you ask whether the question wants a quantity at a time or a total over an interval.

Common mistakes with each type

With indefinite integrals, the most common error is leaving off the constant. It may seem harmless, but in an initial value problem it removes the very thing you are asked to find, and in differential equations it hides an entire family of solutions. A second error is forgetting to rewrite the answer in terms of the original variable after a substitution.

With definite integrals, typical mistakes are subtracting in the wrong order, mixing up old and new limits after a substitution, and reading a signed area as a total area. Another trap is integrating straight across a point where the function is undefined, such as 1x2\frac{1}{x^2} from −1-1 to 1. Blindly applying the formula there gives −2-2, which is impossible for a positive function; in fact the integral diverges, because the function blows up at 0. Always check that the integrand is continuous on the whole interval before using the Fundamental Theorem.

How the two ideas fit together

It helps to think of the indefinite integral as the tool and the definite integral as the job. Finding an antiderivative is the hard creative step; once you have one, every definite integral of that function on every interval follows by subtraction. That is why textbooks spend so long on techniques of indefinite integration, and why a single good antiderivative can answer a whole set of area, distance and accumulation questions at once.

Frequently asked questions

Why is there no + C in a definite integral?

The constant appears in both F(b)F(b) and F(a)F(a) and cancels when you subtract. Any antiderivative gives the same definite integral.

Can a definite integral equal zero when the function is not zero?

Yes. Area above the axis can exactly cancel area below it. ∫02πsin⁡x dx=0\int_0^{2\pi}\sin x\,dx = 0 and ∫−22x3 dx=0\int_{-2}^{2}x^3\,dx = 0 are both examples.

Is an indefinite integral the same as an antiderivative?

Almost. An antiderivative is one function whose derivative is ff; the indefinite integral is the whole family of them, written as one antiderivative plus CC.

What happens if I swap the limits of integration?

The sign flips: ∫baf dx=−∫abf dx\int_b^a f\,dx = -\int_a^b f\,dx. This follows from F(a)−F(b)=−(F(b)−F(a))F(a) - F(b) = -(F(b) - F(a)).

Do I need to know indefinite integrals to compute definite ones?

For exact answers, usually yes, because the Fundamental Theorem needs an antiderivative. When none can be written down, a definite integral can still be approximated numerically with methods such as the trapezoidal or Simpson's rule, which only need function values.

MathSolver Pro Editorial Team

Math content and review

Our editorial team writes every guide to explain the reasoning behind each method, not just the answer. Each worked example is checked against the site's own solver engines and automated tests before it is published, and articles are revised whenever a method or an exam format changes.