What a definite integral means
An indefinite integral gives you a family of functions. A definite integral gives you a single number.
\(\int_a^b f(x)\,dx\) is read "the integral of \(f(x)\) from \(a\) to \(b\)". Here \(a\) is the lower limit and \(b\) is the upper limit. When \(f(x) \ge 0\) on \([a, b]\), the number is the area between the curve \(y = f(x)\), the x-axis and the lines \(x = a\) and \(x = b\).
When the curve dips below the x-axis, that part counts as negative. So a definite integral is a signed area: area above the axis minus area below it. For \(\sin x\) from \(0\) to \(2\pi\) the hump above and the hump below cancel, and \(\int_0^{2\pi}\sin x\,dx = 0\), even though the region between the curve and the axis has a total area of 4 square units. Turning integrals into true areas is the job of the area under the curve lesson.
If \(f\) is continuous on \([a, b]\) and \(F'(x) = f(x)\), then
\[\int_a^b f(x)\,dx = \Big[F(x)\Big]_a^b = F(b) - F(a)\]
The fundamental theorem, and why C cancels
The boxed result is the second fundamental theorem of calculus. It says you never need to add up areas by hand. Find any antiderivative, put in the upper limit, put in the lower limit, subtract.
Why does it work? Let \(A(x)\) be the signed area under \(f\) from \(a\) up to \(x\). Push \(x\) a tiny step \(h\) to the right and you add a thin strip of height about \(f(x)\) and width \(h\). So \(A(x + h) - A(x) \approx f(x)\,h\), which means \(A'(x) = f(x)\). That is the first fundamental theorem. So \(A\) is an antiderivative of \(f\), and \(A(x) = F(x) + C\) for some constant. Since \(A(a) = 0\), \(C = -F(a)\), and the full area is \(A(b) = F(b) - F(a)\).
Now the constant. If you use \(F(x) + C\) instead of \(F(x)\):
\[\Big[F(x) + C\Big]_a^b = \big(F(b) + C\big) - \big(F(a) + C\big) = F(b) - F(a)\]
The \(C\) appears once with a plus and once with a minus, so it always cancels. That is why a definite integral has no \(+ C\), and why any antiderivative gives the same answer.
One condition matters: \(f\) must be continuous on the whole interval. \(\dfrac{1}{x^2}\) blows up at \(x = 0\), so \(\int_{-1}^{1}\dfrac{dx}{x^2}\) is not \(\Big[-\dfrac{1}{x}\Big]_{-1}^{1} = -2\). A positive function can't have a negative integral. Integrals like this are improper integrals and need limits.
How to evaluate a definite integral
- Check the integrand is continuous on \([a, b]\). If it breaks or has a \(|\;|\), split the interval first (section 06).
- Find an antiderivative \(F(x)\). Use the integration formulas, substitution, parts or partial fractions, exactly as for an indefinite integral. Leave out the \(+ C\).
- Write \(\Big[F(x)\Big]_a^b\). This bracket notation keeps the working tidy.
- Work out \(F(b)\) and \(F(a)\) separately, then subtract. Put \(F(a)\) in brackets so its signs flip correctly.
Step 4 is where most marks are lost. Students rush \(F(b) - F(a)\) in one line and drop a minus sign. Two short lines are faster than redoing the question.
Substitution with a change of limits
When you substitute \(t = g(x)\) in a definite integral, the limits are values of \(x\). Change them into values of \(t\) at the same time, and you never have to go back to \(x\):
\[\int_a^b f\big(g(x)\big)\,g'(x)\,dx = \int_{g(a)}^{g(b)} f(t)\,dt\]
For \(\int_0^1 2x\,(x^2 + 1)^3\,dx\), put \(t = x^2 + 1\), so \(dt = 2x\,dx\). When \(x = 0\), \(t = 1\). When \(x = 1\), \(t = 2\). The integral becomes \(\int_1^2 t^3\,dt = \Big[\dfrac{t^4}{4}\Big]_1^2 = \dfrac{15}{4}\).
Sometimes the new lower limit is bigger than the new upper limit. Leave it that way, or flip the limits and change the sign, since \(\int_b^a f = -\int_a^b f\). Example 4 does this. If you need a reminder of how to pick \(t\), see integration by substitution.
Integration by parts with limits
The parts formula carries the limits on both pieces:
\[\int_a^b u\,\frac{dv}{dx}\,dx = \Big[uv\Big]_a^b - \int_a^b v\,\frac{du}{dx}\,dx\]
Evaluate the \(\Big[uv\Big]_a^b\) part straight away. It often turns out to be zero, because \(u\) or \(v\) vanishes at a limit, and that shortens the rest. Choosing \(u\) and \(v\) works just as in integration by parts.
Integrals with |x| or a piecewise function
A function like \(|x - 1|\) has two formulas: \(1 - x\) when \(x \le 1\) and \(x - 1\) when \(x \ge 1\). No single antiderivative covers both, so split the interval at the break point and use \(\int_a^b f = \int_a^c f + \int_c^b f\).
- Find where the expression inside \(|\;|\) is zero. Those are the break points.
- Keep only the break points that lie inside \([a, b]\).
- On each piece, decide the sign of the inside and drop the modulus (multiply by \(-1\) where it is negative).
- Integrate each piece and add.
A function given in pieces is handled the same way. Take \(f(x) = 2x\) for \(0 \le x \le 1\) and \(f(x) = 3 - x\) for \(1 < x \le 3\). Then
\[\int_0^3 f(x)\,dx = \int_0^1 2x\,dx + \int_1^3 (3 - x)\,dx = 1 + 2 = 3\]
The definite integral as the limit of a sum
Before the fundamental theorem, the area was found by cutting it into thin rectangles. Split \([a, b]\) into \(n\) equal strips of width \(h = \dfrac{b - a}{n}\), take the height of each strip at its left edge, and let the strips get thinner:
\[\int_a^b f(x)\,dx = \lim_{h \to 0} h\Big[f(a) + f(a + h) + f(a + 2h) + \cdots + f\big(a + (n - 1)h\big)\Big]\]
If your textbook asks you to evaluate an integral "as the limit of a sum", this is the method. You will need the sums \(\sum r = \dfrac{n(n + 1)}{2}\) and \(\sum r^2 = \dfrac{n(n + 1)(2n + 1)}{6}\).
Worked example: \(\int_0^2 x^2\,dx\). Here \(a = 0\), \(h = \dfrac{2}{n}\) and \(f(rh) = r^2h^2\). The sum is
\[h\sum_{r=0}^{n-1} r^2h^2 = h^3\cdot\frac{(n - 1)n(2n - 1)}{6} = \frac{8}{n^3}\cdot\frac{(n - 1)n(2n - 1)}{6}\]
Divide each bracket by \(n\): this equals \(\dfrac{8}{6}\left(1 - \dfrac{1}{n}\right)\left(2 - \dfrac{1}{n}\right)\). As \(n \to \infty\) (so \(h \to 0\)) it tends to \(\dfrac{8}{6}\cdot 2 = \dfrac{8}{3}\). The quick way, \(\Big[\dfrac{x^3}{3}\Big]_0^2 = \dfrac{8}{3}\), agrees.
Solved examples
Example 1: A polynomial
EasyEvaluate \(\int_1^3 (2x + 1)\,dx\).
- Antiderivative: \(x^2 + x\).
- Upper limit: \(9 + 3 = 12\). Lower limit: \(1 + 1 = 2\).
- Subtract: \(12 - 2\).
Answer\(10\)
Example 2: Sine and cosine
EasyEvaluate \(\int_0^{\pi/2} (\sin x + \cos x)\,dx\).
- Antiderivative: \(-\cos x + \sin x\).
- At \(\dfrac{\pi}{2}\): \(-0 + 1 = 1\). At \(0\): \(-1 + 0 = -1\).
- Subtract: \(1 - (-1)\).
Answer\(2\)
Example 3: An inverse trig result
EasyEvaluate \(\int_0^{1/2} \dfrac{dx}{\sqrt{1 - x^2}}\).
- Antiderivative: \(\sin^{-1}x\).
- \(\sin^{-1}\dfrac{1}{2} - \sin^{-1}0 = \dfrac{\pi}{6} - 0\).
Answer\(\dfrac{\pi}{6}\)
Example 4: Substitution where the limits flip
MediumEvaluate \(\int_0^{\pi/2} \dfrac{\sin x}{1 + \cos^2 x}\,dx\).
- Put \(t = \cos x\), so \(dt = -\sin x\,dx\).
- Limits: \(x = 0\) gives \(t = 1\); \(x = \dfrac{\pi}{2}\) gives \(t = 0\).
- The integral becomes \(\int_1^0 \dfrac{-dt}{1 + t^2} = \int_0^1 \dfrac{dt}{1 + t^2}\). The minus sign was used to swap the limits.
- \(\Big[\tan^{-1}t\Big]_0^1 = \dfrac{\pi}{4} - 0\).
Answer\(\dfrac{\pi}{4}\)
Example 5: Substitution with a log
MediumEvaluate \(\int_1^e \dfrac{(\log x)^2}{x}\,dx\).
- Put \(t = \log x\), so \(dt = \dfrac{dx}{x}\).
- Limits: \(x = 1\) gives \(t = 0\); \(x = e\) gives \(t = 1\).
- \(\int_0^1 t^2\,dt = \Big[\dfrac{t^3}{3}\Big]_0^1\).
Answer\(\dfrac{1}{3}\)
Example 6: Parts with limits
MediumEvaluate \(\int_0^{\pi/2} x\sin x\,dx\).
- Take \(u = x\), \(\dfrac{dv}{dx} = \sin x\), so \(v = -\cos x\).
- \(\Big[-x\cos x\Big]_0^{\pi/2} = 0 - 0 = 0\), because \(\cos\dfrac{\pi}{2} = 0\).
- What is left: \(\int_0^{\pi/2} \cos x\,dx = \Big[\sin x\Big]_0^{\pi/2} = 1\).
Answer\(1\)
Example 7: A modulus with three pieces
Exam levelEvaluate \(\int_{-1}^{2} |x^3 - x|\,dx\).
- \(x^3 - x = x(x - 1)(x + 1)\) is zero at \(-1\), \(0\) and \(1\). It is positive on \((-1, 0)\), negative on \((0, 1)\) and positive on \((1, 2)\).
- With \(F(x) = \dfrac{x^4}{4} - \dfrac{x^2}{2}\): \(\int_{-1}^{0}(x^3 - x)\,dx = F(0) - F(-1) = \dfrac{1}{4}\).
- \(\int_0^1 (x - x^3)\,dx = \dfrac{1}{2} - \dfrac{1}{4} = \dfrac{1}{4}\).
- \(\int_1^2 (x^3 - x)\,dx = F(2) - F(1) = 2 - \left(-\dfrac{1}{4}\right) = \dfrac{9}{4}\).
- Add: \(\dfrac{1}{4} + \dfrac{1}{4} + \dfrac{9}{4}\).
Answer\(\dfrac{11}{4}\)
Example 8: Parts twice
Exam levelEvaluate \(\int_0^{\pi/2} e^x\sin x\,dx\).
- Parts twice (or the standard result) gives \(\int e^x\sin x\,dx = \dfrac{e^x(\sin x - \cos x)}{2} + C\).
- At \(\dfrac{\pi}{2}\): \(\dfrac{e^{\pi/2}(1 - 0)}{2} = \dfrac{e^{\pi/2}}{2}\).
- At \(0\): \(\dfrac{1\cdot(0 - 1)}{2} = -\dfrac{1}{2}\).
- Subtract: \(\dfrac{e^{\pi/2}}{2} - \left(-\dfrac{1}{2}\right)\).
Answer\(\dfrac{e^{\pi/2} + 1}{2}\)
After a definite integral, do a 10-second sense check. If the integrand is positive on the whole interval, the answer must be positive. If the interval has length 2 and the integrand never goes above 3, the answer can't be more than 6. This catches most sign slips before the examiner does.
Common mistakes
1. Changing the variable but keeping the old limits
In \(\int_0^1 2x\,(x^2 + 1)^3\,dx\) with \(t = x^2 + 1\), writing \(\int_0^1 t^3\,dt = \dfrac{1}{4}\) is wrong. The limits must become \(t = 1\) and \(t = 2\), giving \(\dfrac{15}{4}\).
2. Ignoring the modulus
\(\int_{-1}^{2} |x|\,dx \ne \Big[\dfrac{x^2}{2}\Big]_{-1}^{2} = \dfrac{3}{2}\). Split at 0: \(\int_{-1}^{0}(-x)\,dx + \int_0^2 x\,dx = \dfrac{1}{2} + 2 = \dfrac{5}{2}\).
3. Losing a sign at the lower limit
\(\int_0^{\pi} \sin x\,dx = \Big[-\cos x\Big]_0^{\pi}\). Writing \(-\cos\pi - \cos 0 = 1 - 1 = 0\) is wrong. Keep the bracket: \((-\cos\pi) - (-\cos 0) = 1 + 1 = 2\).
Practice questions
Try each one on paper before you open the answer.
Q1Evaluate \(\int_0^2 (3x^2 - 2x + 1)\,dx\).
\(\Big[x^3 - x^2 + x\Big]_0^2 = 8 - 4 + 2 = 6\).
Q2Evaluate \(\int_0^{\pi/4} \tan^2 x\,dx\).
\(\tan^2 x = \sec^2 x - 1\), so the integral is \(\Big[\tan x - x\Big]_0^{\pi/4} = 1 - \dfrac{\pi}{4}\).
Q3Evaluate \(\int_0^1 \dfrac{e^x}{1 + e^x}\,dx\).
Put \(t = 1 + e^x\); the limits become \(2\) and \(1 + e\).
\(\Big[\log t\Big]_2^{1 + e} = \log\dfrac{1 + e}{2}\).
Q4Evaluate \(\int_1^e \log x\,dx\).
Parts with \(u = \log x\), \(v = x\): \(\int \log x\,dx = x\log x - x + C\).
\(\Big[x\log x - x\Big]_1^e = (e - e) - (0 - 1) = 1\).
Q5Evaluate \(\int_0^4 |x - 1|\,dx\).
Split at 1: \(\int_0^1 (1 - x)\,dx + \int_1^4 (x - 1)\,dx = \dfrac{1}{2} + \dfrac{9}{2} = 5\).
Q6Evaluate \(\int_1^3 x^2\,dx\) as the limit of a sum.
\(h = \dfrac{2}{n}\), and the sum is \(h\sum_{r=0}^{n-1}(1 + rh)^2 = nh + h^2 n(n - 1) + h^3\dfrac{(n - 1)n(2n - 1)}{6}\).
With \(nh = 2\) the three terms tend to \(2\), \(4\) and \(\dfrac{8}{3}\) as \(n \to \infty\). Total \(\dfrac{26}{3}\), the same as \(\Big[\dfrac{x^3}{3}\Big]_1^3\).
Bring it to a free demo class and work through it with Vipul Sir. Book on WhatsApp.
Frequently asked questions
What is definite integration?
Finding the value of \(\int_a^b f(x)\,dx\), a number that measures the signed area under \(y = f(x)\) between \(x = a\) and \(x = b\). You find an antiderivative \(F\) and work out \(F(b) - F(a)\).
What is the difference between definite and indefinite integrals?
An indefinite integral has no limits and its answer is a function plus \(C\), like \(\int 2x\,dx = x^2 + C\). A definite integral has limits and its answer is a number, like \(\int_1^3 2x\,dx = 8\).
Why is there no + C in a definite integral?
Because it cancels. \(\big(F(b) + C\big) - \big(F(a) + C\big) = F(b) - F(a)\), whatever \(C\) is.
Can a definite integral be negative?
Yes. Area below the x-axis counts as negative, so \(\int_0^1 (x - 1)\,dx = -\dfrac{1}{2}\). An area is never negative, though. To get one you split at the roots and add the absolute values.