Chapter 8 · Integral Calculus

8.2 Definite Integrals and their Properties

The definite integral $\int_a^b f(x)\,dx$ adds up $f(x)\,dx$ across $[a,b]$. It is a limit of sums; the fundamental theorem of calculus evaluates it as $F(b)-F(a)$; and a handful of properties — King's rule $x\to a+b-x$, even and odd functions, periodicity — evaluate integrals whose antiderivatives are hopeless.

A water tank is filled by a pump whose flow rate changes during the morning: $r(t)$ litres per minute at time $t$. If the rate were constant, the volume pumped would be rate × time. It is not constant, so cut the morning into short intervals of length $\Delta t$; on each one the rate hardly changes, and the volume pumped is close to $r(t)\,\Delta t$. Add these up and let the intervals shrink: the sums settle down to an exact total. The same recipe gives the distance covered from a speed record, the charge passed from a current, the work done by a varying force — and the area under a curve, where $r(t)\,\Delta t$ is the area of a thin rectangle.

That limit of sums is the definite integral. The surprise — the fundamental theorem of calculus, discovered independently by Newton and Leibniz — is that it can be computed with an antiderivative from Section 8.1: $\int_a^b f(x)\,dx=F(b)-F(a)$. This section defines the definite integral, proves the fundamental theorem, and then develops the properties that make definite integrals the favourite calculus topic of JEE Main: limits of sums, the derivative of an integral with variable limits, King's rule, even, odd and periodic integrands, and integrands with $|x|$ and $[x]$. Expect two or three questions in every paper.

The Definite Integral as a Limit of Sums

📘 Definition 8.4 — Riemann sum and definite integral

Let $f$ be continuous on $[a,b]$. Divide $[a,b]$ into $n$ equal parts of width $h=\tfrac{b-a}{n}$ with division points $x_r=a+rh$ ($r=0,1,\dots,n$), and choose a point $x_r^*$ in each piece $[x_{r-1},x_r]$. The Riemann sum is

$$S_n=\sum_{r=1}^{n}f(x_r^*)\,h,$$

and the definite integral of $f$ from $a$ to $b$ is its limit:

$$\int_a^b f(x)\,dx=\lim_{n\to\infty}\sum_{r=1}^{n}f(x_r^*)\,h.$$

The numbers $a$ and $b$ are the lower and upper limits of integration. We also set $\int_a^a f(x)\,dx=0$ and, for $a\gt b$, $\int_a^b f(x)\,dx=-\int_b^a f(x)\,dx$.

For a continuous $f$ this limit always exists and does not depend on how the points $x_r^*$ are chosen — a fact from advanced analysis that we accept. Choosing right ends ($x_r^*=x_r$), left ends or midpoints gives the right, left and midpoint sums. If $f\ge0$, each term $f(x_r^*)h$ is the area of a thin rectangle, so the integral is the area under the curve; where $f\lt0$ the terms are negative, so in general the integral is a signed area — area above the axis minus area below it. That is why Leibniz's $\int$ is an S: $f(x)\,dx$ is one thin rectangle and $\int$ adds them up.

📐 Theorem 8.11 — Limit of a sum as an integral

If $f$ is continuous on $[0,p]$, where $p$ is a positive integer, then

$$\lim_{n\to\infty}\frac1n\sum_{r=1}^{pn}f\!\left(\frac rn\right)=\int_0^p f(x)\,dx.$$

The recipe: write the sum as $\tfrac1n\sum f\left(\tfrac rn\right)$; replace $\tfrac rn$ by $x$ and $\tfrac1n$ by $dx$; the limits are the values of $\tfrac rn$ at the first and last terms as $n\to\infty$.

Proof. On $[0,p]$ with $pn$ equal parts, $h=\tfrac{p}{pn}=\tfrac1n$ and the right ends are $x_r=\tfrac rn$. So the sum is exactly the right Riemann sum of Definition 8.4, and its limit is the integral. $\blacksquare$ Similarly, terms running from $r=n+1$ to $r=2n$ give $\int_1^2$, because $\tfrac rn$ runs from just above $1$ to $2$.

📐 Theorem 8.12 — Comparison and bounds

Let $f$, $g$ be continuous on $[a,b]$, $a\lt b$.

  1. If $f(x)\le g(x)$ on $[a,b]$, then $\int_a^b f(x)\,dx\le\int_a^b g(x)\,dx$. In particular $f\ge0$ gives $\int_a^b f\ge0$.
  2. If $m\le f(x)\le M$ on $[a,b]$, then $m(b-a)\le\int_a^b f(x)\,dx\le M(b-a)$.
  3. $\left|\int_a^b f(x)\,dx\right|\le\int_a^b|f(x)|\,dx$.

Proof. Each inequality holds term by term for the Riemann sums with the same points — for (2), $m\,h\le f(x_r^*)\,h\le M\,h$ summed over $r$ gives $m(b-a)\le S_n\le M(b-a)$ — and non-strict inequalities survive the limit. (3) follows from (1) applied to $-|f|\le f\le|f|$. $\blacksquare$

✏️ Example 1 — From sums to integrals
(a) Evaluate $\int_0^2x^2\,dx$ as the limit of right Riemann sums. Find (b) $\displaystyle\lim_{n\to\infty}\sum_{r=1}^{n}\frac{n}{n^2+r^2}$; (c) $\displaystyle\lim_{n\to\infty}\sum_{r=1}^{n}\frac{r^2}{n^3+r^3}$; (d) $\displaystyle\lim_{n\to\infty}\frac1n\sum_{r=1}^{2n}\frac{r}{\sqrt{n^2+r^2}}$.
(a) $h=\tfrac2n$, $x_r=\tfrac{2r}{n}$. $S_n=\sum_{r=1}^n\left(\tfrac{2r}{n}\right)^2\tfrac2n=\tfrac{8}{n^3}\sum r^2=\tfrac{8}{n^3}\cdot\tfrac{n(n+1)(2n+1)}{6}$ (Section 6.2).
$S_n=\tfrac43\left(1+\tfrac1n\right)\left(2+\tfrac1n\right)\to\tfrac43\cdot2=\tfrac83$. So $\int_0^2x^2\,dx=\tfrac83$ — the area under the parabola.
(b) Divide top and bottom by $n^2$: $\dfrac{n}{n^2+r^2}=\dfrac1n\cdot\dfrac{1}{1+(r/n)^2}$. Theorem 8.11 with $p=1$: $\int_0^1\dfrac{dx}{1+x^2}=\tan^{-1}1=\dfrac\pi4$.
(c) $\dfrac{r^2}{n^3+r^3}=\dfrac1n\cdot\dfrac{(r/n)^2}{1+(r/n)^3}$: $\ \int_0^1\dfrac{x^2}{1+x^3}\,dx=\Big[\tfrac13\ln(1+x^3)\Big]_0^1=\dfrac13\ln2$.
(d) $\dfrac{r}{\sqrt{n^2+r^2}}=\dfrac{r/n}{\sqrt{1+(r/n)^2}}$, and $r$ runs to $2n$, so $p=2$: $\ \int_0^2\dfrac{x}{\sqrt{1+x^2}}\,dx=\Big[\sqrt{1+x^2}\Big]_0^2=\sqrt5-1$.
Check (a) with $n=10$: $S_{10}=\tfrac43(1.1)(2.1)=3.08$, already near $2.667$ and above it, as right sums of an increasing function must be.

Use right-endpoint sums for $\int_0^2x^2\,dx=\tfrac83$. When $n$ is doubled from $10$ to $20$, the error $S_n-\tfrac83$ is

Choose $x^2$ on $[0,2]$ with right endpoints. At $n=10$ the readouts show $S_n=3.08$ and error $0.4133$; at $n=20$, $S_n=2.87$ and error $0.2033$ — about half. From Example 1(a), the error is exactly $\tfrac43\cdot\tfrac{3n+1}{n^2}=\tfrac4n+\tfrac4{3n^2}$, which behaves like $\tfrac4n$. Switch to midpoints and the error at $n=10$ is only $-0.0067$, and it falls to a quarter when $n$ doubles: midpoint sums are far more accurate.
Interactive 1 — Riemann Sums Closing In

The rectangles have width $h=\tfrac{b-a}{n}$ and height $f$ at the chosen point of each piece; their total signed area is the Riemann sum $S_n$ (blue above the axis counts $+$, red below counts $-$). Drag $n$ and compare $S_n$ with the exact integral. Press Play to double $n$ again and again and watch the error shrink.

10
$n$ · $h$—
Riemann sum $S_n$—
exact $\int_a^b f$—
error $S_n-\int_a^bf$—

$\displaystyle\lim_{n\to\infty}\frac1n\sum_{r=1}^{n}e^{r/n}$ equals

The Fundamental Theorem of Calculus

Let the upper limit move. For $f$ continuous on $[a,b]$, the accumulation function $A(x)=\int_a^x f(t)\,dt$ is the signed area from $a$ up to $x$. (The variable inside is renamed $t$ so that $x$ can be the moving end.) How fast does $A$ grow?

📐 Theorem 8.13 — Fundamental theorem of calculus, first form

If $f$ is continuous on $[a,b]$, then $A(x)=\int_a^x f(t)\,dt$ is differentiable on $[a,b]$ and

$$A'(x)=\frac{d}{dx}\int_a^x f(t)\,dt=f(x).$$

In particular every continuous function has an antiderivative.

Proof. For $h\gt0$, $A(x+h)-A(x)=\int_x^{x+h}f(t)\,dt$, the area of a thin strip (additivity, Theorem 8.17 below — it follows directly from the sums). Let $m_h$ and $M_h$ be the least and greatest values of $f$ on $[x,x+h]$. By Theorem 8.12(2),

$$m_h\,h\le A(x+h)-A(x)\le M_h\,h,\qquad\text{so}\qquad m_h\le\frac{A(x+h)-A(x)}{h}\le M_h.$$

As $h\to0^+$, both $m_h$ and $M_h$ tend to $f(x)$ because $f$ is continuous, so the quotient tends to $f(x)$ by the sandwich theorem (Section 7.1). The case $h\lt0$ is the same. $\blacksquare$ The rate at which area accumulates equals the height of the curve at the moving edge.

📐 Theorem 8.14 — Fundamental theorem of calculus, second form

If $f$ is continuous on $[a,b]$ and $F$ is any antiderivative of $f$ on $[a,b]$, then

$$\int_a^b f(x)\,dx=F(b)-F(a)=\Big[F(x)\Big]_a^b.$$

Proof. $A$ and $F$ are both antiderivatives of $f$ on $[a,b]$ (Theorem 8.13), so $A(x)=F(x)+C$ by Theorem 8.1. Putting $x=a$: $0=F(a)+C$. Putting $x=b$: $\int_a^bf=A(b)=F(b)+C=F(b)-F(a)$. $\blacksquare$ The constant cancels, so no $+C$ is written in a definite integral — and the answer is a number, not a function.

📐 Theorem 8.15 — Derivative of an integral with variable limits (Leibniz rule)

If $f$ is continuous and $g$, $h$ are differentiable, then

$$\frac{d}{dx}\int_{g(x)}^{h(x)}f(t)\,dt=f\big(h(x)\big)\,h'(x)-f\big(g(x)\big)\,g'(x).$$

Proof. With $F$ an antiderivative of $f$, the integral is $F\big(h(x)\big)-F\big(g(x)\big)$ by Theorem 8.14; differentiate with the chain rule. $\blacksquare$ ⏱ In words: integrand at the top × derivative of the top, minus integrand at the bottom × derivative of the bottom. The integrand itself is never integrated.

✏️ Example 2 — Using the fundamental theorem
(a) Evaluate $\int_1^4\left(3\sqrt x-\dfrac1{x^2}\right)dx$ and $\int_0^{\pi/2}\cos^2x\,dx$. (b) For $F(x)=\displaystyle\int_x^{x^2}\frac{dt}{1+t^4}$, find $F'(1)$. (c) Find the continuous function $f$ with $\displaystyle\int_0^x t\,f(t)\,dt=x^3+x^2$ for all $x$.
Find $F'(1)$ in (b) before you open the solution:
(a) $\Big[2x^{3/2}+\tfrac1x\Big]_1^4=\left(16+\tfrac14\right)-(2+1)=\tfrac{53}{4}$. And $\int_0^{\pi/2}\tfrac{1+\cos2x}{2}\,dx=\Big[\tfrac x2+\tfrac{\sin2x}{4}\Big]_0^{\pi/2}=\tfrac\pi4$.
(b) Theorem 8.15: $F'(x)=\dfrac{1}{1+x^8}\cdot2x-\dfrac{1}{1+x^4}\cdot1$. So $F'(1)=\tfrac22-\tfrac12=\tfrac12$.
(c) Differentiate both sides (Theorem 8.13): $x\,f(x)=3x^2+2x$, so $f(x)=3x+2$ for $x\ne0$, and by continuity also at $x=0$.
Check (c): $\int_0^x t(3t+2)\,dt=x^3+x^2$ ✓.

Substitution and integration by parts carry over to definite integrals, with one improvement: after a substitution, change the limits and never return to $x$.

📐 Theorem 8.16 — Substitution and parts with limits

(1) If $g'$ is continuous on $[a,b]$ and $f$ is continuous on the set of values of $g$, then $\displaystyle\int_a^b f\big(g(x)\big)g'(x)\,dx=\int_{g(a)}^{g(b)}f(u)\,du.$

(2) If $u'$, $v'$ are continuous on $[a,b]$, then $\displaystyle\int_a^b u\,v'\,dx=\Big[uv\Big]_a^b-\int_a^b u'\,v\,dx.$

Proof. Both sides of (1) equal $F\big(g(b)\big)-F\big(g(a)\big)$ by Theorems 8.4 and 8.14; (2) is Theorem 8.7 evaluated between the limits. $\blacksquare$

✏️ Example 3 — Substitution and parts with limits
Evaluate (a) $\int_0^1\dfrac{x}{1+x^2}\,dx$; (b) $\int_0^2x\sqrt{4-x^2}\,dx$; (c) $\int_1^e\ln x\,dx$; (d) $\int_0^1\tan^{-1}x\,dx$.
(a) $u=1+x^2$ runs from $1$ to $2$, $x\,dx=\tfrac12du$: $\ \tfrac12\int_1^2\tfrac{du}{u}=\tfrac12\ln2$.
(b) $u=4-x^2$ runs from $4$ down to $0$, $x\,dx=-\tfrac12du$: $\ -\tfrac12\int_4^0\sqrt u\,du=\tfrac12\int_0^4\sqrt u\,du=\tfrac12\cdot\tfrac23\cdot8=\tfrac83$.
(c) $\Big[x\ln x-x\Big]_1^e=(e-e)-(0-1)=1$.
(d) $\Big[x\tan^{-1}x-\tfrac12\ln(1+x^2)\Big]_0^1=\dfrac\pi4-\dfrac12\ln2\approx0.4388$.
Check (b) is positive, as it must be: the integrand is $\ge0$ on $[0,2]$ (Theorem 8.12). A negative answer would signal a mishandled limit swap.

$\dfrac{d}{dx}\displaystyle\int_0^{x^2}\cos t\,dt$ equals

Properties of Definite Integrals

Many definite integrals in JEE Main have no antiderivative you could write down, or one so long that finding it would eat the whole time limit. They are evaluated with properties instead — above all, by a substitution that reflects the interval.

📐 Theorem 8.17 — Properties of definite integrals

For $f$ continuous on the intervals involved:

P1 Dummy variable$\int_a^b f(x)\,dx=\int_a^b f(t)\,dt$
P2 Reversal$\int_a^b f=-\int_b^a f,\qquad\int_a^a f=0$
P3 Additivity$\int_a^b f=\int_a^c f+\int_c^b f$ for any $c$
P4 King's property$\int_a^b f(x)\,dx=\int_a^b f(a+b-x)\,dx$
in particular $\int_0^a f(x)\,dx=\int_0^a f(a-x)\,dx$
P5 Halving$\int_0^{2a}f(x)\,dx=\int_0^a\big[f(x)+f(2a-x)\big]dx$: $\ 2\int_0^af$ if $f(2a-x)=f(x)$, and $0$ if $f(2a-x)=-f(x)$
P6 Even and odd$\int_{-a}^{a}f(x)\,dx=2\int_0^af(x)\,dx$ if $f$ is even, and $0$ if $f$ is odd
P7 Periodicif $f(x+T)=f(x)$ for all $x$: $\ \int_a^{a+T}f=\int_0^Tf$ and $\int_0^{nT}f=n\int_0^Tf$ ($n\in\mathbb{N}$)

Proofs. P1–P3 follow from Theorem 8.14: e.g. $\big(F(c)-F(a)\big)+\big(F(b)-F(c)\big)=F(b)-F(a)$. P4: in $\int_a^bf(a+b-x)\,dx$ put $t=a+b-x$, $dx=-dt$; $x=a$ gives $t=b$ and $x=b$ gives $t=a$:

$$\int_a^bf(a+b-x)\,dx=-\int_b^af(t)\,dt=\int_a^bf(t)\,dt.$$

The substitution reflects the interval about its midpoint $\tfrac{a+b}{2}$, and reflecting a region does not change its area. P5: split at $a$ and put $x=2a-t$ in $\int_a^{2a}$. P6: split at $0$ and put $x=-t$ in $\int_{-a}^0f(x)\,dx$ to get $\int_0^af(-t)\,dt$, which is $+\int_0^af$ for even $f$ and $-\int_0^af$ for odd $f$. P7: $\int_a^{a+T}=\int_a^T+\int_T^{a+T}$, and $x=t+T$ turns the last into $\int_0^af(t)\,dt$; the two pieces add to $\int_0^T$. $\blacksquare$

🧭 Problem-solving strategy — when to use King's property

Write $I=\int_a^bf(x)\,dx$ and also $I=\int_a^bf(a+b-x)\,dx$, and add the two. This pays off when $f(x)+f(a+b-x)$ is simple — typically a constant — as with

  • $\dfrac{g(x)}{g(x)+g(a+b-x)}$: the sum is $1$, so $I=\dfrac{b-a}{2}$;
  • $x\,g(x)$ on $[0,\pi]$ with $g(\pi-x)=g(x)$, e.g. $g$ built from $\sin x$: adding gives $\pi\,g(x)$, so $I=\dfrac\pi2\int_0^\pi g(x)\,dx$ and the troublesome $x$ disappears;
  • $\ln$ of a trigonometric expression on $[0,\tfrac\pi2]$ or $[0,\tfrac\pi4]$, where $\sin\leftrightarrow\cos$ or $\tan\left(\tfrac\pi4-x\right)=\tfrac{1-\tan x}{1+\tan x}$.
✏️ Example 4 — King's property
Evaluate (a) $\displaystyle\int_0^{\pi/2}\frac{\sqrt{\sin x}}{\sqrt{\sin x}+\sqrt{\cos x}}\,dx$; (b) $\displaystyle\int_0^{\pi}\frac{x\sin x}{1+\cos^2x}\,dx$; (c) $\displaystyle\int_2^5\frac{\sqrt x}{\sqrt x+\sqrt{7-x}}\,dx$; (d) $\displaystyle\int_0^{\pi/4}\ln(1+\tan x)\,dx$.
Find (b) to 3 decimal places before you open the solution:
(a) With $x\to\tfrac\pi2-x$, $\sin\leftrightarrow\cos$: $I=\int_0^{\pi/2}\dfrac{\sqrt{\cos x}}{\sqrt{\cos x}+\sqrt{\sin x}}\,dx$. Adding, $2I=\int_0^{\pi/2}1\,dx=\tfrac\pi2$, so $I=\dfrac\pi4$.
(b) $x\to\pi-x$ leaves $\sin x$ and $\cos^2x$ unchanged: $I=\int_0^\pi\dfrac{(\pi-x)\sin x}{1+\cos^2x}\,dx$. Adding, $2I=\pi\int_0^\pi\dfrac{\sin x}{1+\cos^2x}\,dx$.
With $u=\cos x$ (from $1$ to $-1$): $\int_{-1}^{1}\dfrac{du}{1+u^2}=\dfrac\pi2$. So $2I=\dfrac{\pi^2}{2}$ and $I=\dfrac{\pi^2}{4}\approx2.467$.
(c) $a+b=7$: $I=\int_2^5\dfrac{\sqrt{7-x}}{\sqrt{7-x}+\sqrt x}\,dx$, and adding, $2I=\int_2^51\,dx=3$: $\ I=\dfrac32$.
(d) $1+\tan\left(\tfrac\pi4-x\right)=1+\tfrac{1-\tan x}{1+\tan x}=\tfrac{2}{1+\tan x}$. So $I=\int_0^{\pi/4}\big[\ln2-\ln(1+\tan x)\big]dx=\tfrac\pi4\ln2-I$, and $I=\dfrac\pi8\ln2$.
⏱ Shortcut For $\int_a^b\dfrac{g(x)}{g(x)+g(a+b-x)}\,dx$ write $\dfrac{b-a}{2}$ at once — (a) and (c) take five seconds each.

For $f(x)=\dfrac{\sqrt x}{\sqrt x+\sqrt{7-x}}$ on $[2,5]$, what is $f(x)+f(7-x)$, and hence $\int_2^5f(x)\,dx$?

Choose the second integrand and press show f(x) + f(a+b−x). The green graph is a flat line at height $1$, and the readouts show $\int_a^b[f+f(a+b-x)]=3$ and $I=1.5$. The red mirror image $f(7-x)$ has the same area as the blue $f(x)$ — reflection about $x=3.5$ — and the two areas together fill the rectangle of width $3$ and height $1$. Note the trap in the second option: $3$ is $2I$, not $I$.
Interactive 2 — King's Property: Reflect and Add

The blue area is $I=\int_a^bf(x)\,dx$. Drag the reflection slider: the red curve swings about the dashed midline $x=\tfrac{a+b}2$ and ends as the graph of $f(a+b-x)$ — with the same area. Then show the green sum $f(x)+f(a+b-x)$: when it is simple (often a constant), $2I$ is easy, and so is $I$. Play runs the whole argument.

1
$I=\int_a^bf(x)\,dx$—
$\int_a^bf(a+b-x)\,dx$—
$\int_a^b\big[f+f(a+b-x)\big]$—
so $I$ = half of it—
✏️ Example 5 — Even, odd and periodic integrands
Evaluate (a) $\displaystyle\int_{-\pi/2}^{\pi/2}\left(x^3+x\cos x+\sin^5x+1\right)dx$; (b) $\displaystyle\int_{-1}^{1}\ln\frac{2-x}{2+x}\,dx$; (c) $\displaystyle\int_0^{10\pi}|\sin x|\,dx$; (d) $\displaystyle\int_{-2}^{2}\big(x^2+x|x|\big)\,dx$.
(a) $x^3$, $x\cos x$ and $\sin^5x$ are odd, so their integrals over $[-\tfrac\pi2,\tfrac\pi2]$ vanish (P6). What is left: $\int_{-\pi/2}^{\pi/2}1\,dx=\pi$.
(b) $g(x)=\ln\tfrac{2-x}{2+x}$ has $g(-x)=\ln\tfrac{2+x}{2-x}=-g(x)$: odd, so the integral is $0$.
(c) $|\sin x|$ has period $\pi$ and $\int_0^\pi\sin x\,dx=2$. By P7, $\int_0^{10\pi}|\sin x|\,dx=10\times2=20$.
(d) $x^2$ is even, $x|x|$ is odd: $2\int_0^2x^2\,dx=\tfrac{16}{3}$.
⏱ Shortcut On a symmetric interval, first strike out every odd term — the rest is usually one line.

$\displaystyle\int_{-2}^{2}x^3e^{x^2}\,dx$ equals

Integrands with $|x|$ and $[x]$, and Hard Evaluations

An integrand built with a modulus or the greatest integer function $[x]$ is given by different formulas on different pieces. Use additivity (P3): split $[a,b]$ at every point where the formula changes, and integrate each piece separately.

✏️ Example 6 — Piecewise integrands
Evaluate (a) $\int_{-1}^{2}|x^2-x|\,dx$; (b) $\int_0^2[x^2]\,dx$; (c) $\int_0^{\pi}|\cos x|\,dx$.
(a) split $x^2-x=x(x-1)$ is negative only on $(0,1)$. So the integral is $\int_{-1}^0(x^2-x)\,dx+\int_0^1(x-x^2)\,dx+\int_1^2(x^2-x)\,dx$.
(a) add $\Big[\tfrac{x^3}3-\tfrac{x^2}2\Big]$ on each piece: $\tfrac56+\tfrac16+\tfrac56=\tfrac{11}{6}$.
(b) $[x^2]=0,1,2,3$ on $[0,1)$, $[1,\sqrt2)$, $[\sqrt2,\sqrt3)$, $[\sqrt3,2)$: $\ 0+(\sqrt2-1)+2(\sqrt3-\sqrt2)+3(2-\sqrt3)=5-\sqrt2-\sqrt3\approx1.854$.
(c) $\cos x\ge0$ on $[0,\tfrac\pi2]$ and $\le0$ on $[\tfrac\pi2,\pi]$: $\ \Big[\sin x\Big]_0^{\pi/2}-\Big[\sin x\Big]_{\pi/2}^{\pi}=1+1=2$. (Without the modulus, $\int_0^\pi\cos x\,dx=0$.)
Check (b) lies between $0\cdot2$ and $3\cdot2$, as Theorem 8.12 demands; a picture of the staircase confirms about $1.85$.
⚠️ JEE Main traps

1. Limits after substitution. Change the limits together with the variable ($u=g(a)$ to $u=g(b)$), or return to $x$ — never mix the two. When the new lower limit exceeds the upper, keep the order and let P2 handle the sign.

2. Signed area. $\int_0^{2\pi}\sin x\,dx=0$, but the area between $y=\sin x$ and the axis is $4$. A definite integral counts parts below the axis as negative.

3. The upper limit in a limit of a sum. In $\tfrac1n\sum_{r=1}^{2n}f\left(\tfrac rn\right)$ the upper limit is $2$, not $1$. Find it from the last term: $\tfrac rn=\tfrac{2n}{n}$.

4. Leibniz rule. Multiply by the derivative of each limit, and subtract the lower-limit term. $\tfrac{d}{dx}\int_{x}^{x^2}f(t)\,dt=2xf(x^2)-f(x)$ — not $f(x^2)-f(x)$.

5. Odd and even need a symmetric interval. P6 works on $[-a,a]$ only, and P4 must reflect the whole interval: for $\int_2^5$ use $7-x$, not $5-x$. And after "adding $I$ to itself", remember to halve.

✏️ Example 7 — Hard example: three classics
Evaluate (a) $\displaystyle\int_0^{\pi/2}\ln\sin x\,dx$; (b) $\displaystyle\int_0^{\pi}\frac{x}{1+\sin x}\,dx$; (c) $\displaystyle\lim_{n\to\infty}\left(\frac{n!}{n^n}\right)^{1/n}$.
Find (b) before you open the solution:
(a) set-up ($\ln\sin x\to-\infty$ as $x\to0$, but the integral still converges; we use the properties as for an ordinary integral.) By P4, $I=\int_0^{\pi/2}\ln\cos x\,dx$, so $2I=\int_0^{\pi/2}\ln(\sin x\cos x)\,dx=\int_0^{\pi/2}\ln\sin2x\,dx-\tfrac\pi2\ln2$.
(a) finish With $u=2x$: $\int_0^{\pi/2}\ln\sin2x\,dx=\tfrac12\int_0^{\pi}\ln\sin u\,du=\tfrac12\cdot2I=I$ (P5, as $\sin(\pi-u)=\sin u$). So $2I=I-\tfrac\pi2\ln2$ and $I=-\dfrac\pi2\ln2$.
(b) P4 with $x\to\pi-x$: $2I=\pi\int_0^\pi\dfrac{dx}{1+\sin x}=2\pi\int_0^{\pi/2}\dfrac{dx}{1+\sin x}$ (P5). Reflect again ($\sin\to\cos$): $\int_0^{\pi/2}\dfrac{dx}{1+\cos x}=\Big[\tan\tfrac x2\Big]_0^{\pi/2}=1$. So $2I=2\pi$ and $I=\pi$.
(c) Let $L$ be the limit. $\ln\left(\tfrac{n!}{n^n}\right)^{1/n}=\tfrac1n\sum_{r=1}^n\ln\tfrac rn\to\int_0^1\ln x\,dx=\Big[x\ln x-x\Big]_0^1=-1$ (as $x\ln x\to0$ when $x\to0^+$). So $L=e^{-1}=\dfrac1e$.
⏱ Shortcut For a product raised to the power $\tfrac1n$, take logarithms: the product becomes a sum, and the sum becomes an integral by Theorem 8.11.

$\displaystyle\int_0^{3}[x]\,dx$, where $[x]$ is the greatest integer $\le x$, equals

Exercises

Give exact answers where you can, and decimals to 4 significant figures in the answer boxes. $[x]$ is the greatest integer $\le x$.

I
Limits of sums and the fundamental theorem.
  • 1 $\int_0^3(x^2-2x+2)\,dx$
  • 2 $\int_1^2\left(\dfrac1x+e^x\right)dx$
  • 3 $\int_0^{\pi/3}\sec x\tan x\,dx$
  • 4 $\int_0^1\dfrac{dx}{\sqrt{4-x^2}}$
  • 5 Evaluate $\int_0^1(2x+3)\,dx$ as the limit of right Riemann sums, and check with Theorem 8.14.
  • 6 $\displaystyle\lim_{n\to\infty}\sum_{r=1}^{n}\frac{1}{n+r}$
  • 7 $\displaystyle\lim_{n\to\infty}\frac{1^4+2^4+\dots+n^4}{n^5}$
  • 8 $\displaystyle\lim_{n\to\infty}\sum_{r=1}^{n}\frac{r}{n^2+r^2}$
  • 9 $\displaystyle\lim_{n\to\infty}\frac1n\sum_{r=1}^{3n}\sqrt{\frac rn}$
1 $\Big[\tfrac{x^3}3-x^2+2x\Big]_0^3=9-9+6=6$.
2 $\Big[\ln x+e^x\Big]_1^2=\ln2+e^2-e\approx5.364$.
3 $\Big[\sec x\Big]_0^{\pi/3}=2-1=1$.
4 $\Big[\sin^{-1}\tfrac x2\Big]_0^1=\tfrac\pi6$.
5 $h=\tfrac1n$: $S_n=\sum_{r=1}^n\left(\tfrac{2r}{n}+3\right)\tfrac1n=\tfrac{2}{n^2}\cdot\tfrac{n(n+1)}{2}+3=1+\tfrac1n+3\to4$. Check: $\Big[x^2+3x\Big]_0^1=4$ ✓.
6 $\tfrac{1}{n+r}=\tfrac1n\cdot\tfrac{1}{1+r/n}$: $\ \int_0^1\tfrac{dx}{1+x}=\ln2$.
7 $\tfrac1n\sum\left(\tfrac rn\right)^4\to\int_0^1x^4\,dx=\tfrac15$.
8 $\tfrac1n\sum\tfrac{r/n}{1+(r/n)^2}\to\int_0^1\tfrac{x}{1+x^2}\,dx=\tfrac12\ln2$.
9 Upper limit $\tfrac{3n}{n}=3$: $\ \int_0^3\sqrt x\,dx=\tfrac23\cdot3^{3/2}=2\sqrt3\approx3.464$.
II
Leibniz rule, substitution and parts with limits.
  • 1 $\dfrac{d}{dx}\displaystyle\int_1^{x}\sqrt{1+t^2}\,dt$
  • 2 Show that $F(x)=\displaystyle\int_x^{2x}\frac{dt}{t}$ ($x\gt0$) is constant, using Theorem 8.15, and find the constant.
  • 3 $f$ is continuous and $\int_0^xf(t)\,dt=x\sin x$ for all $x$. Find $f(\pi)$.
  • 4 $G(x)=\int_0^x(t^2-4t+3)\,dt$. Find the point of local minimum of $G$.
  • 5 $\int_0^1x(1-x)^9\,dx$ (use P4 first)
  • 6 $\int_0^{\pi/2}\sin^3x\,dx$
  • 7 $\int_0^{\pi/2}x\cos x\,dx$
  • 8 $\int_1^ex\ln x\,dx$
  • 9 $\int_0^2x\sqrt{x^2+5}\,dx$
  • 10 $\int_0^2\sqrt{4-x^2}\,dx$ — by Theorem 8.9, and then by geometry.
1 Theorem 8.13: $\sqrt{1+x^2}$.
2 $F'(x)=\tfrac{1}{2x}\cdot2-\tfrac1x\cdot1=0$, so $F$ is constant; $F(1)=\int_1^2\tfrac{dt}t=\ln2$.
3 Differentiate: $f(x)=\sin x+x\cos x$, so $f(\pi)=0+\pi(-1)=-\pi$.
4 $G'(x)=x^2-4x+3=(x-1)(x-3)$ changes from $-$ to $+$ at $x=3$: local minimum at $x=3$ (and a local maximum at $x=1$).
5 P4: $\int_0^1(1-x)x^9\,dx=\tfrac1{10}-\tfrac1{11}=\tfrac1{110}$.
6 $\sin^3x=(1-\cos^2x)\sin x$, $u=\cos x$ from $1$ to $0$: $\int_0^1(1-u^2)\,du=\tfrac23$.
7 $\Big[x\sin x+\cos x\Big]_0^{\pi/2}=\tfrac\pi2-1\approx0.5708$.
8 $\Big[\tfrac{x^2}2\ln x-\tfrac{x^2}4\Big]_1^e=\tfrac{e^2}2-\tfrac{e^2}4+\tfrac14=\tfrac{e^2+1}{4}\approx2.097$.
9 $u=x^2+5$ from $5$ to $9$: $\tfrac12\int_5^9\sqrt u\,du=\tfrac13\Big[u^{3/2}\Big]_5^9=\tfrac{27-5\sqrt5}{3}\approx5.273$.
10 $\Big[\tfrac x2\sqrt{4-x^2}+2\sin^{-1}\tfrac x2\Big]_0^2=2\cdot\tfrac\pi2=\pi$ — a quarter of the disc of radius $2$, area $\tfrac14\pi\cdot2^2=\pi$ ✓.
III
Properties P1–P7.
  • 1 $\int_{-3}^{3}(x^5-4x^3+x)\,dx$
  • 2 $\int_{-2}^{2}(x^3\cos x+3x^2)\,dx$
  • 3 $\displaystyle\int_0^{\pi/2}\frac{\cos^5x}{\sin^5x+\cos^5x}\,dx$
  • 4 $\displaystyle\int_1^4\frac{\sqrt[3]{x}}{\sqrt[3]{x}+\sqrt[3]{5-x}}\,dx$
  • 5 $\int_0^{\pi}x\sin x\,dx$ — by King's property
  • 6 $\displaystyle\int_0^{\pi/2}\frac{\sin x-\cos x}{1+\sin x\cos x}\,dx$
  • 7 $\int_0^{\pi}\cos^3x\,dx$ (use P5)
  • 8 $\int_0^{4\pi}|\cos x|\,dx$
  • 9 $\int_0^{100}(x-[x])\,dx$
  • 10 $\int_0^{\pi/2}\ln\tan x\,dx$
1 Odd integrand on $[-3,3]$: $0$.
2 $x^3\cos x$ is odd; $2\int_0^23x^2\,dx=2\cdot8=16$.
3 $\tfrac{g(x)}{g(x)+g(\pi/2-x)}$ form: $\tfrac\pi4$.
4 $a+b=5$, same form: $\tfrac{4-1}{2}=\tfrac32$.
5 $2I=\pi\int_0^\pi\sin x\,dx=2\pi$, so $I=\pi$.
6 $x\to\tfrac\pi2-x$ turns the integrand into its negative, so $I=-I$ and $I=0$.
7 $\cos^3(\pi-x)=-\cos^3x$, so by P5 (with $2a=\pi$) the integral is $0$.
8 $|\cos x|$ has period $\pi$ and $\int_0^\pi|\cos x|\,dx=2$: $4\times2=8$.
9 $x-[x]$ has period $1$ and $\int_0^1x\,dx=\tfrac12$: $100\times\tfrac12=50$.
10 $x\to\tfrac\pi2-x$ gives $\ln\cot x=-\ln\tan x$, so $I=-I$ and $I=0$.
IV
Piecewise integrands, estimates and applications.
  • 1 $\int_0^3|x-1|\,dx$
  • 2 $\int_{-1}^{2}|x^3-x|\,dx$
  • 3 $\int_0^{1.5}[2x]\,dx$
  • 4 $\int_0^{\sqrt3}[x^2]\,dx$
  • 5 Show that $1\le\int_0^1e^{x^2}\,dx\le e$.
  • 6 Water enters a tank at $r(t)=40+10\sin\dfrac{\pi t}{12}$ litres per hour, $t$ in hours. How much enters in $24$ hours? In the first $12$ hours?
  • 7 A car's speed is $v(t)=|t-4|+2$ m/s. How far does it travel from $t=0$ to $t=6$ s?
  • 8 $\displaystyle\lim_{n\to\infty}\frac1n\big[(n+1)(n+2)\cdots(2n)\big]^{1/n}$
1 $\int_0^1(1-x)\,dx+\int_1^3(x-1)\,dx=\tfrac12+2=\tfrac52$.
2 $x^3-x=x(x-1)(x+1)$ is $\ge0$ on $[-1,0]$, $\le0$ on $[0,1]$, $\ge0$ on $[1,2]$: $\ \tfrac14+\tfrac14+\tfrac94=\tfrac{11}{4}$.
3 $[2x]=0,1,2$ on $[0,\tfrac12)$, $[\tfrac12,1)$, $[1,\tfrac32)$: $\ 0+\tfrac12+1=\tfrac32$.
4 $[x^2]=0,1,2$ on $[0,1)$, $[1,\sqrt2)$, $[\sqrt2,\sqrt3)$: $\ (\sqrt2-1)+2(\sqrt3-\sqrt2)=2\sqrt3-\sqrt2-1\approx1.050$.
5 On $[0,1]$, $0\le x^2\le1$, so $1\le e^{x^2}\le e$; Theorem 8.12(2) with $b-a=1$.
6 The sine term has period $24$ and integrates to $0$ over a period (P7 and P5): $40\times24=960$ L. First $12$ hours: $480+10\cdot\tfrac{12}{\pi}\Big[-\cos\tfrac{\pi t}{12}\Big]_0^{12}=480+\tfrac{240}{\pi}\approx556.4$ L.
7 $\int_0^4(4-t)\,dt+\int_4^6(t-4)\,dt+\int_0^62\,dt=8+2+12=22$ m.
8 The log is $\tfrac1n\sum_{r=1}^n\ln\left(1+\tfrac rn\right)\to\int_0^1\ln(1+x)\,dx=2\ln2-1$, so the limit is $e^{2\ln2-1}=\tfrac4e\approx1.4715$.
🎯 Exam corner JEE Main · MCQJEE Main · Numerical

E1. JEE Main · MCQ $\displaystyle\int_0^{\pi/2}\frac{dx}{1+\tan^3x}$ is equal to (A) $\dfrac\pi2$ (B) $\dfrac\pi4$ (C) $0$ (D) $1$

Rewrite $\dfrac{1}{1+\tan^3x}=\dfrac{\cos^3x}{\cos^3x+\sin^3x}$ — the $\tfrac{g(x)}{g(x)+g(\pi/2-x)}$ form.
King Adding $I$ and its reflection: $2I=\int_0^{\pi/2}1\,dx=\tfrac\pi2$.
Answer (B) $\tfrac\pi4$.
⏱ Shortcut Any power $n$ in $\int_0^{\pi/2}\tfrac{dx}{1+\tan^nx}$ gives $\tfrac\pi4$.

E2. JEE Main · Numerical Evaluate $\displaystyle\int_0^9\big[\sqrt x\big]\,dx$, where $[t]$ is the greatest integer $\le t$. Give the answer to the nearest integer.

Pieces $[\sqrt x]=0$ on $[0,1)$, $1$ on $[1,4)$, $2$ on $[4,9)$.
Add $0\cdot1+1\cdot3+2\cdot5$.
Answer $13$.

E3. JEE Main · MCQ Let $F(x)=\displaystyle\int_{x^2}^{x^3}\ln t\,dt$ for $x\gt0$. Then $F'(e)$ is equal to (A) $3e^2-2e$ (B) $9e^2+4e$ (C) $9e^2-4e$ (D) $5e^2$

Leibniz $F'(x)=\ln(x^3)\cdot3x^2-\ln(x^2)\cdot2x=9x^2\ln x-4x\ln x$.
At $x=e$ $\ln e=1$: $9e^2-4e$.
Answer (C).
⏱ Shortcut (A) forgets that $\ln(x^3)=3\ln x$; (B) adds the lower-limit term instead of subtracting it.

E4. JEE Main · Numerical Find $\displaystyle\lim_{n\to\infty}\sum_{r=1}^{2n}\frac{3r^2}{n^3}$. Give the answer to the nearest integer.

Form $\dfrac{3r^2}{n^3}=\dfrac1n\cdot3\left(\dfrac rn\right)^2$, with $\tfrac rn$ running up to $\tfrac{2n}{n}=2$.
Integral $\int_0^23x^2\,dx=\Big[x^3\Big]_0^2$.
Answer $8$.
⏱ Shortcut Taking the upper limit as $1$ gives $1$, the commonest wrong answer.

E5. JEE Main · MCQ $\displaystyle\int_0^{\pi/2}\ln(\tan x+\cot x)\,dx$ is equal to (A) $\pi\ln2$ (B) $\dfrac\pi2\ln2$ (C) $-\pi\ln2$ (D) $0$

Simplify $\tan x+\cot x=\dfrac{1}{\sin x\cos x}$, so the integrand is $-\ln\sin x-\ln\cos x$.
Example 7(a) $\int_0^{\pi/2}\ln\sin x\,dx=\int_0^{\pi/2}\ln\cos x\,dx=-\tfrac\pi2\ln2$, so the integral is $\tfrac\pi2\ln2+\tfrac\pi2\ln2$.
Answer (A) $\pi\ln2$.

E6. JEE Main · Numerical Evaluate $\displaystyle\frac{1}{\sqrt2}\int_0^{50\pi}\sqrt{1-\cos2x}\,dx$. Give the answer to the nearest integer.

Simplify $1-\cos2x=2\sin^2x$, so $\sqrt{1-\cos2x}=\sqrt2\,|\sin x|$ — the modulus is essential.
Periodic $\int_0^{50\pi}|\sin x|\,dx=50\times2=100$ (P7).
Answer $100$.
⏱ Shortcut Writing $\sqrt{\sin^2x}=\sin x$ gives $0$ — a classic trap.
🔬 Research–Teaching NexusResearch-tutored · optional, about 45 minutes

Research question. Medicine regulators compare a generic drug with the original by the area under the concentration–time curve (AUC), computed from a handful of blood samples. How accurate is that area, and how much does the choice of sampling times matter?

Why it matters. The AUC measures the total exposure of the body to a drug, and bioequivalence studies across the world accept a generic only if its AUC is close to the original's. The AUC is a definite integral, but the curve is known only at sampling times, so it is estimated by sums of trapezoids — Riemann-type sums with uneven widths.

What to do.

  1. Use the model concentration $C(t)=20\big(e^{-0.2t}-e^{-1.5t}\big)$ mg/L, $t$ in hours. Find the exact $\int_0^{24}C(t)\,dt$ with the fundamental theorem.
  2. Take the sampling times $0, 0.5, 1, 2, 4, 6, 8, 12, 24$ h. Compute $C$ at each and the trapezoid estimate $\sum\tfrac12\big(C_{k}+C_{k+1}\big)(t_{k+1}-t_{k})$. Find the percentage error.
  3. Repeat with only $0, 2, 6, 12, 24$ h. Which part of the curve causes most of the error — the fast rise or the slow decay? Explain using the shape of the graph.
  4. Find the exact AUC from $0$ to $\infty$ (the limit as the upper limit grows). How much of it is missed by stopping at $24$ h?

Tools: A spreadsheet (one row per sample) or a few lines of Python.

Hand in: Your exact values, both trapezoid estimates with their errors, and a recommendation — in three sentences — on where to put extra sampling times if a study can afford two more.

Going further. Is the trapezoid rule an over- or under-estimate where the curve is concave down? Where it is concave up? Relate your answer to the picture of the chords.

Instructor note: exact $\int_0^{24}C\,dt=20\left[\tfrac{1-e^{-4.8}}{0.2}-\tfrac{1-e^{-36}}{1.5}\right]\approx85.84$ mg·h/L and $\int_0^\infty=86.67$ (so about $1\%$ is missed after $24$ h). The nine-point trapezoid estimate is about $89.4$, roughly $4\%$ too high: almost all of the excess comes from the single chord from $12$ to $24$ h over the convex tail (trapezoid $11.9$ against an exact $8.25$). The five-point estimate is about $84.7$, only $1.4\%$ too low — but by luck: its chord from $0$ to $2$ h cuts far below the concave rise, and that under-estimate cancels most of the tail's over-estimate. A good discussion point: a smaller error is not evidence of a better sampling design. Chords lie below a concave-down arc and above a concave-up one; two extra samples inside the long $12$–$24$ h gap (say at $16$ and $20$ h) cut the nine-point error to under $0.5\%$.

🧪 Self-check quiz

0/5 correct

Q1. If $\int_0^2f(x)\,dx=5$ and $\int_0^5f(x)\,dx=3$, then $\int_2^5f(x)\,dx$ is

Q2. $\dfrac{d}{dx}\displaystyle\int_1^{x}\ln t\,dt$ ($x\gt0$) is

Q3. $\displaystyle\int_{-\pi}^{\pi}x^2\sin x\,dx$ equals

Q4. $\displaystyle\lim_{n\to\infty}\frac1n\sum_{r=1}^{n}\left(\frac rn\right)^2$ equals

Q5. $\displaystyle\int_0^{\pi/2}\frac{\sin x}{\sin x+\cos x}\,dx$ equals