Chapter 7 · Integrals

7.1 Antiderivatives and Integration by Substitution

An antiderivative undoes a derivative. Every function that has one has a whole family of them, $F(x)+C$; read the derivative table backwards for the standard integrals, and run the chain rule backwards to integrate by substitution.

A delivery drone in Bengaluru logs its vertical speed every second, but its altimeter has failed. The speed log says $v(t)=8-2t$ metres per second. Since speed is the rate of change of height, $h'(t)=8-2t$, and we want $h(t)$ itself. You can probably guess one answer: $h(t)=8t-t^2$ has exactly this derivative. But so does $8t-t^2+5$, and $8t-t^2-17$ — the speed log cannot tell whether the drone took off from the ground or from a 5-metre rooftop. One extra fact, such as the starting height, picks out the right function.

That is the whole of this section in miniature. Finding a function from its derivative is called integration; the answer is a family of functions differing by constants; and the family is pinned down by one known value. Because integration is differentiation read backwards, every derivative you learnt in Chapter 5 gives an integral for free. When the integrand is a chain-rule derivative in disguise, the method of substitution removes the disguise.

Integration as the Inverse of Differentiation

📘 Definition 7.1 — Antiderivative
Let $f$ be defined on an interval $I$. A function $F$ is an antiderivative (or primitive) of $f$ on $I$ if $F$ is differentiable on $I$ and $$F'(x)=f(x)\quad\text{for every }x\in I.$$

For example, $x^3$ is an antiderivative of $3x^2$ on $\mathbb R$, because $\dfrac{d}{dx}\left(x^3\right)=3x^2$. So are $x^3+5$, $x^3-\pi$ and $x^3+C$ for every real constant $C$, since the derivative of a constant is $0$. Are there any others? The next theorem says no — on an interval, adding constants is the only freedom.

📐 Theorem 7.1 — Antiderivatives differ by a constant
If $F$ and $G$ are both antiderivatives of $f$ on an interval $I$, then there is a constant $C$ such that $$G(x)=F(x)+C\quad\text{for every }x\in I.$$

Why. Put $H=G-F$. Then $H'(x)=G'(x)-F'(x)=f(x)-f(x)=0$ for every $x$ in $I$. A function whose derivative is zero at every point of an interval has a horizontal tangent everywhere, so its graph never rises or falls: $H$ is constant on $I$. (We accept this geometrically clear fact here; its formal proof belongs to a later course.) Hence $G-F=C$.

The word interval matters. The function $\dfrac1x$ is defined on two separate intervals, $x\lt0$ and $x\gt0$, and there an antiderivative may use one constant on the left and a different one on the right. In this course we always work on one interval at a time and write a single $C$.

📘 Definition 7.2 — Indefinite integral
If $F$ is an antiderivative of $f$ on an interval, the family of all antiderivatives of $f$ is called the indefinite integral of $f$ and is written $$\int f(x)\,dx=F(x)+C.$$ Here $\int$ is the integral sign, $f(x)$ is the integrand, $x$ is the variable of integration (the $dx$ names it), and $C$ is an arbitrary real number called the constant of integration. Finding $\int f(x)\,dx$ is called integrating $f$.

So $\displaystyle\int 3x^2\,dx=x^3+C$ and, for the drone, $\displaystyle\int(8-2t)\,dt=8t-t^2+C$. Geometrically the indefinite integral is a family of curves $y=F(x)+C$, each a vertical shift of the others; at every $x$ all of them have the same slope $f(x)$ (the chapter teaser shows this). A particular antiderivative is one member of the family, chosen by a condition such as “the curve passes through $(1,3)$”.

✏️ Example 1 — Antiderivatives by inspection
Find, by reading derivatives backwards, (a) $\displaystyle\int\cos3x\,dx$   (b) $\displaystyle\int e^{2x}\,dx$   (c) $\displaystyle\int\frac{1}{1+x^2}\,dx$. Check each answer by differentiation.
(a) $\dfrac{d}{dx}\sin3x=3\cos3x$ — three times too big. Divide by $3$: $\displaystyle\int\cos3x\,dx=\tfrac13\sin3x+C$. Check: $\dfrac{d}{dx}\left(\tfrac13\sin3x\right)=\tfrac13\cdot3\cos3x=\cos3x$ ✓.
(b) $\dfrac{d}{dx}e^{2x}=2e^{2x}$, so $\displaystyle\int e^{2x}\,dx=\tfrac12e^{2x}+C$. Check: $\tfrac12\cdot2e^{2x}=e^{2x}$ ✓.
(c) From Chapter 5, $\dfrac{d}{dx}\tan^{-1}x=\dfrac{1}{1+x^2}$, so $\displaystyle\int\frac{dx}{1+x^2}=\tan^{-1}x+C$ — valid on all of $\mathbb R$.
Lesson The check is always available and always quick: differentiate your answer and you must get the integrand back. Never skip it when you study alone.

Doing this systematically — taking each derivative formula you know and reading it from right to left — gives a list of integrals that you should know as well as your multiplication tables. We split it into three groups.

📐 Theorem 7.2 — Standard integrals (group 1: powers, exponentials, logarithm)
power rule$\displaystyle\int x^n\,dx=\frac{x^{n+1}}{n+1}+C$, for every real $n\ne-1$ (on an interval where $x^n$ is defined)
constant$\displaystyle\int dx=x+C$ (the case $n=0$)
reciprocal$\displaystyle\int\frac1x\,dx=\log|x|+C$, $\ x\ne0$
exponential$\displaystyle\int e^x\,dx=e^x+C$; $\ \displaystyle\int a^x\,dx=\frac{a^x}{\log a}+C$ for $a\gt0$, $a\ne1$

Why $\log|x|$? For $x\gt0$, $\dfrac{d}{dx}\log x=\dfrac1x$. For $x\lt0$, $\log(-x)$ is defined and, by the chain rule, $\dfrac{d}{dx}\log(-x)=\dfrac{1}{-x}\cdot(-1)=\dfrac1x$. Both cases are covered by $\log|x|$. Notice also that the power rule cannot give $\int x^{-1}\,dx$: it would divide by $n+1=0$. The logarithm fills exactly that gap. (Recall: $\log$ means $\log_e$ throughout.)

📐 Theorem 7.2 (continued) — group 2: trigonometric functions
sine and cosine$\displaystyle\int\cos x\,dx=\sin x+C$; $\ \displaystyle\int\sin x\,dx=-\cos x+C$
squares of sec and cosec$\displaystyle\int\sec^2x\,dx=\tan x+C$; $\ \displaystyle\int\operatorname{cosec}^2x\,dx=-\cot x+C$
products$\displaystyle\int\sec x\tan x\,dx=\sec x+C$; $\ \displaystyle\int\operatorname{cosec}x\cot x\,dx=-\operatorname{cosec}x+C$
Each holds on any interval where the integrand is defined.
📐 Theorem 7.2 (continued) — group 3: inverse trigonometric forms
root of 1 − x²$\displaystyle\int\frac{dx}{\sqrt{1-x^2}}=\sin^{-1}x+C$, $\ -1\lt x\lt1$
1 + x²$\displaystyle\int\frac{dx}{1+x^2}=\tan^{-1}x+C$, all real $x$
x times root$\displaystyle\int\frac{dx}{x\sqrt{x^2-1}}=\sec^{-1}x+C$, $\ x\gt1$

Because $\sin^{-1}x+\cos^{-1}x=\tfrac\pi2$, the answer $-\cos^{-1}x+C$ is the same family as $\sin^{-1}x+C$ — only the constant differs. Likewise $-\cot^{-1}x$ and $-\operatorname{cosec}^{-1}x$ can replace $\tan^{-1}x$ and $\sec^{-1}x$. Two correct answers to an integral may look different and still differ only by a constant.

Two rules let us integrate sums and multiples term by term; the first also says that differentiation and integration undo each other.

📐 Theorem 7.3 — Properties of indefinite integrals
Let $f$ and $g$ have antiderivatives on an interval $I$ and let $k$ be a real constant. Then on $I$:
  • (inverse processes) $\dfrac{d}{dx}\displaystyle\int f(x)\,dx=f(x)$, and $\displaystyle\int f'(x)\,dx=f(x)+C$ when $f$ is differentiable;
  • (sum and difference) $\displaystyle\int[f(x)\pm g(x)]\,dx$ $\displaystyle=\int f(x)\,dx\pm\int g(x)\,dx$;
  • (constant multiple) $\displaystyle\int k\,f(x)\,dx=k\int f(x)\,dx$, for $k\ne0$.

Why. Each is a derivative rule read backwards. If $F'=f$ and $G'=g$, then $(F\pm G)'=f\pm g$ and $(kF)'=kf$, so $F\pm G$ is an antiderivative of $f\pm g$ and $kF$ of $kf$. (The two arbitrary constants of $\int f$ and $\int g$ combine into one, which is why a single $+\,C$ is written at the end.) Together the sum and multiple rules say that integration is linear, exactly like differentiation.

✏️ Example 2 — Term by term, after simplifying
Find (a) $\displaystyle\int\left(4x^3-\frac6x+3e^x-2\sin x+\frac{5}{1+x^2}\right)dx$   (b) $\displaystyle\int\frac{(x+1)^2}{\sqrt x}\,dx$   (c) $\displaystyle\int\frac{\sin^2x}{1+\cos x}\,dx$   (d) $\displaystyle\int\tan^2x\,dx$.
(a) Integrate each term with Theorem 7.2 and add one constant: $$x^4-6\log|x|+3e^x+2\cos x+5\tan^{-1}x+C$$ Note the sign: $\int(-2\sin x)\,dx=-2(-\cos x)=+2\cos x$.
(b) There is no “quotient rule” for integrals, so first divide: $\dfrac{x^2+2x+1}{x^{1/2}}=x^{3/2}+2x^{1/2}+x^{-1/2}$. Then $$\int\frac{(x+1)^2}{\sqrt x}\,dx=\tfrac25x^{5/2}+\tfrac43x^{3/2}+2x^{1/2}+C$$
(c) $\sin^2x=1-\cos^2x=(1-\cos x)(1+\cos x)$, so the integrand is $1-\cos x$ (where $\cos x\ne-1$) and the integral is $x-\sin x+C$.
(d) $\tan^2x$ is not in the table, but $\tan^2x=\sec^2x-1$ is: $\displaystyle\int\tan^2x\,dx=\tan x-x+C$.
Check (d): $\dfrac{d}{dx}(\tan x-x)=\sec^2x-1=\tan^2x$ ✓. (b): the derivative is $\tfrac25\cdot\tfrac52x^{3/2}+\tfrac43\cdot\tfrac32x^{1/2}+2\cdot\tfrac12x^{-1/2}$, which is $x^{3/2}+2x^{1/2}+x^{-1/2}$ ✓.
✏️ Example 3 — Choosing one member of the family
(a) The slope of a curve at each point $(x,y)$ is $4x^3-2x$, and the curve passes through $(1,3)$. Find its equation.
(b) The drone of the opening paragraph has vertical speed $v(t)=8-2t$ m/s and starts from a rooftop $5$ m high. Find its height $h(t)$ and its height after $3$ s.
(a) family $\dfrac{dy}{dx}=4x^3-2x$ gives $y=\displaystyle\int(4x^3-2x)\,dx=x^4-x^2+C$.
(a) member At $x=1$, $y=3$: $1-1+C=3$, so $C=3$. The curve is $y=x^4-x^2+3$.
(b) $h(t)=\displaystyle\int(8-2t)\,dt=8t-t^2+C$, and $h(0)=5$ gives $C=5$. So $h(t)=5+8t-t^2$ metres and $h(3)=5+24-9=20$ m.
Check $h'(t)=8-2t=v(t)$ ✓ and $h(0)=5$ ✓. Try both parts in Interactive 1: drag the starting point and watch a different member of the family get chosen.
Interactive 1 — Slope Field: Follow the Arrows from a Starting Point

Each short grey dash has slope $f(x)$: the field shows the slope every antiderivative must have at that point. Because the slope depends only on $x$, every column of dashes is parallel. Click or drag on the graph to choose a starting point (or use the slider); the red curve is the one antiderivative that passes through it. Play sends a marker along it — the marker always moves in the direction of the dashes. The faint curves are other members of the same family.

starting point—
the curve through it—
marker: slope—
⚠️ Differentiation and integration compared

Alike. Both are linear: the derivative and the integral of $af+bg$ are $a$ times that of $f$ plus $b$ times that of $g$. Each undoes the other (Theorem 7.3).

Different. A differentiable function has one derivative; a function has a whole family of antiderivatives. Differentiation has rules for products, quotients and compositions that always work; integration does not — there is no product rule or quotient rule for integrals. Some innocent-looking functions, such as $e^{-x^2}$ or $\dfrac{\sin x}{x}$, have antiderivatives that cannot be written with the functions you know at all. That is why integration is a collection of methods, and why checking by differentiation is so valuable.

Integration by Substitution

Look at $\displaystyle\int2x\cos(x^2)\,dx$. It is not in the table. But the chain rule gives $\dfrac{d}{dx}\sin(x^2)=\cos(x^2)\cdot2x$ — exactly the integrand. So the answer is $\sin(x^2)+C$. The integrand was a chain-rule derivative in disguise: an outer function ($\cos$) evaluated at an inner function ($x^2$), multiplied by the derivative of the inner function ($2x$). Substitution is the systematic way to spot and remove such a disguise.

📐 Theorem 7.4 — Integration by substitution
Let $u=g(x)$ be differentiable on an interval $I$, let $f$ be continuous on an interval containing the values of $g$, and let $F$ be an antiderivative of $f$. Then on $I$ $$\int f(g(x))\,g'(x)\,dx=F(g(x))+C.$$ In the shorthand $u=g(x)$, $du=g'(x)\,dx$, this reads $\displaystyle\int f(g(x))\,g'(x)\,dx=\int f(u)\,du$, followed by putting $u=g(x)$ back.

Why. By the chain rule, $\dfrac{d}{dx}F(g(x))=F'(g(x))\,g'(x)=f(g(x))\,g'(x)$. So $F(g(x))$ is an antiderivative of the integrand, and Theorem 7.1 supplies the $+\,C$. The symbol $du=g'(x)\,dx$ is a bookkeeping device: it records that a small change $dx$ in $x$ produces a change $g'(x)\,dx$ in $u$.

A special case is used constantly. If $u=ax+b$ with $a\ne0$, then $du=a\,dx$, and $$\int f(ax+b)\,dx=\frac1a\,F(ax+b)+C.$$ For example $\displaystyle\int(3x-2)^5dx=\frac{(3x-2)^6}{18}+C$ and $\displaystyle\int\sec^2(4x)\,dx=\tfrac14\tan4x+C$.

🧭 Problem-solving strategy — Substitution
  1. Choose $u$: an inner function — inside a bracket, a root, an exponent or a trigonometric function — whose derivative also appears (up to a constant factor) in the integrand.
  2. Find $du$: write $du=g'(x)\,dx$ and solve for the piece of the integrand it replaces.
  3. Rewrite completely in $u$. If any $x$ is left over, either express it in terms of $u$ or try a different $u$.
  4. Integrate in $u$ with the table, then substitute back $u=g(x)$.
  5. Check by differentiating with the chain rule.
✏️ Example 4 — Four substitutions
Find (a) $\displaystyle\int x^2\left(x^3+2\right)^5dx$   (b) $\displaystyle\int\frac{e^{\tan^{-1}x}}{1+x^2}\,dx$   (c) $\displaystyle\int\frac{(\log x)^2}{x}\,dx$   (d) $\displaystyle\int x\sqrt{x+1}\,dx$.
(a) $u=x^3+2$, $du=3x^2\,dx$, so $x^2\,dx=\tfrac13du$: $$\int u^5\cdot\tfrac13\,du=\frac{u^6}{18}+C=\frac{\left(x^3+2\right)^6}{18}+C$$
(b) $u=\tan^{-1}x$, $du=\dfrac{dx}{1+x^2}$: $\displaystyle\int e^u\,du=e^u+C=e^{\tan^{-1}x}+C$.
(c) $u=\log x$ ($x\gt0$), $du=\dfrac{dx}{x}$: $\displaystyle\int u^2\,du=\frac{u^3}{3}+C=\frac{(\log x)^3}{3}+C$.
(d) Here the leftover $x$ must be expressed in $u$. Put $u=x+1$, so $x=u-1$ and $dx=du$: $$\int(u-1)u^{1/2}\,du=\int\left(u^{3/2}-u^{1/2}\right)du=\tfrac25u^{5/2}-\tfrac23u^{3/2}+C$$ that is, $\tfrac25(x+1)^{5/2}-\tfrac23(x+1)^{3/2}+C$.
Check (d): $\dfrac{d}{dx}$ gives $(x+1)^{3/2}-(x+1)^{1/2}$, which is $(x+1)^{1/2}\big((x+1)-1\big)=x\sqrt{x+1}$ ✓.
Interactive 2 — Substitution as a Change of Scale

Left: the integrand $f(g(x))\,g'(x)$ plotted against $x$. Right: the simpler $f(u)$ plotted against $u=g(x)$. Think of $f(g(x))\,g'(x)\,dx$ as the area of a thin strip. Substitution moves each strip from the left picture to the right one: its width is stretched from $dx$ to $du=g'(x)\,dx$, and its height shrinks from $f(g(x))\,g'(x)$ to $f(u)$ — by the same factor $g'(x)$, so the strip keeps its area. Play sweeps $x$; the two shaded regions grow together and always have equal areas, both equal to the change in $F(g(x))$. (Areas under curves are the subject of Section 7.4.)

in $x$: $f(g(x))\,g'(x)$
in $u$: $f(u)$
$x$ and $u=g(x)$—
stretch $du/dx=g'(x)$—
area left = area right—

One substitution is worth stating once and for all. If the numerator is the derivative of the denominator, put $u=f(x)$, $du=f'(x)\,dx$: then $\displaystyle\int\frac{f'(x)}{f(x)}\,dx=\int\frac{du}{u}=\log|u|+C$.

📐 Theorem 7.5 — Logarithmic integrals
On any interval where the denominator is differentiable and non-zero, $$\int\frac{f'(x)}{f(x)}\,dx=\log|f(x)|+C.$$ In particular, on intervals where the integrands are defined:
tangent and cotangent$\displaystyle\int\tan x\,dx=\log|\sec x|+C$; $\ \displaystyle\int\cot x\,dx=\log|\sin x|+C$
secant$\displaystyle\int\sec x\,dx=\log|\sec x+\tan x|+C$
cosecant$\displaystyle\int\operatorname{cosec}x\,dx=\log|\operatorname{cosec}x-\cot x|+C$

Why. $\tan x=\dfrac{\sin x}{\cos x}=-\dfrac{(\cos x)'}{\cos x}$, so $\displaystyle\int\tan x\,dx=-\log|\cos x|+C$, which is $\log|\sec x|+C$. For $\sec x$, multiply above and below by $\sec x+\tan x$: $$\sec x=\frac{\sec^2x+\sec x\tan x}{\sec x+\tan x}$$ and the numerator is exactly the derivative of the denominator. The cotangent and cosecant results are proved the same way (Exercise III).

✏️ Example 5 — Spotting f′/f
Find (a) $\displaystyle\int\frac{2x+3}{x^2+3x+5}\,dx$   (b) $\displaystyle\int\frac{dx}{x\log x}$   (c) $\displaystyle\int\frac{e^x-e^{-x}}{e^x+e^{-x}}\,dx$   (d) $\displaystyle\int\frac{\cos x-\sin x}{\cos x+\sin x}\,dx$.
(a) $(x^2+3x+5)'=2x+3$, the numerator. So the integral is $\log|x^2+3x+5|+C$, or simply $\log(x^2+3x+5)+C$; the modulus can be dropped because the discriminant $9-20\lt0$ makes $x^2+3x+5\gt0$ for all $x$.
(b) Write it as $\dfrac{1/x}{\log x}$: the numerator is the derivative of $\log x$. Answer: $\log|\log x|+C$ (on $x\gt1$ or on $0\lt x\lt1$).
(c) $(e^x+e^{-x})'=e^x-e^{-x}$. Answer: $\log\left(e^x+e^{-x}\right)+C$ (the bracket is always positive).
(d) $(\cos x+\sin x)'=-\sin x+\cos x$, the numerator. Answer: $\log|\cos x+\sin x|+C$.
Habit Before anything else, ask: is the numerator (a multiple of) the derivative of the denominator? If it is, the answer is a logarithm.

Integrals Using Trigonometric Identities

Many trigonometric integrands are not in the table but can be rewritten as sums of things that are. Three families of identities do almost all the work:

squares → double angles$\sin^2x=\tfrac12(1-\cos2x)$, $\ \cos^2x=\tfrac12(1+\cos2x)$
cubes → triple angles$\sin^3x=\tfrac14(3\sin x-\sin3x)$, $\ \cos^3x=\tfrac14(3\cos x+\cos3x)$
products → sums$2\sin A\cos B=\sin(A+B)+\sin(A-B)$; $2\cos A\cos B=\cos(A+B)+\cos(A-B)$; $2\sin A\sin B=\cos(A-B)-\cos(A+B)$

For an odd power of $\sin x$ or $\cos x$ there is a second route: split off one factor and use $\sin^2x+\cos^2x=1$ so that the rest is a function of the other one, then substitute.

✏️ Example 6 — Identities first, then integrate
Find (a) $\displaystyle\int\cos^2x\,dx$   (b) $\displaystyle\int\sin3x\cos2x\,dx$   (c) $\displaystyle\int\sin^3x\cos^2x\,dx$.
(a) $\displaystyle\int\tfrac12(1+\cos2x)\,dx=\frac x2+\frac{\sin2x}{4}+C$.
(b) $\sin3x\cos2x=\tfrac12(\sin5x+\sin x)$, so $$\int\sin3x\cos2x\,dx=-\frac{\cos5x}{10}-\frac{\cos x}{2}+C$$
(c) Odd power of sine: $\sin^3x\cos^2x=(1-\cos^2x)\cos^2x\cdot\sin x$. Put $u=\cos x$, $du=-\sin x\,dx$: $$-\int(1-u^2)u^2\,du=-\frac{u^3}{3}+\frac{u^5}{5}+C=\frac{\cos^5x}{5}-\frac{\cos^3x}{3}+C$$
Check (c): $\dfrac{d}{dx}\left(\tfrac15\cos^5x-\tfrac13\cos^3x\right)$ is $-\cos^4x\sin x+\cos^2x\sin x$, that is, $\cos^2x\sin x\,(1-\cos^2x)$ $=\sin^3x\cos^2x$ ✓.
⚠️ Common mistakes when studying alone

1. Forgetting $+\,C$. Every indefinite integral is a family. In a Board exam a missing $+\,C$ costs marks.

2. Integrating a product factor by factor. $\displaystyle\int x\cos x\,dx$ is not $\tfrac{x^2}2\sin x+C$ — differentiate that and see. There is no product rule for integrals (Section 7.3 gives the correct method).

3. Treating $x^{-1}$ like other powers. $\displaystyle\int\frac{dx}{x}=\log|x|+C$, not $\dfrac{x^0}{0}$. But $\displaystyle\int\frac{dx}{x^2}=-\frac1x+C$ is a power.

4. Half-finished substitutions. After choosing $u$, every $x$ — including the $dx$ — must be replaced. $\displaystyle\int\cos(x^2)\,dx$ cannot be done with $u=x^2$, because there is no $x\,dx$ to turn into $\tfrac12du$.

5. Losing the factor $\tfrac1a$. $\displaystyle\int e^{5x}dx=\tfrac15e^{5x}+C$, not $5e^{5x}+C$: integration divides by the inner derivative.

Exercises

I
Standard integrals and their properties. Find each integral (parts 1–9) and check by differentiating.
  • 1 $\displaystyle\int\left(x^4-3x^2+7\right)dx$
  • 2 $\displaystyle\int\left(\sqrt x+\frac{1}{\sqrt x}\right)dx$
  • 3 $\displaystyle\int\left(2e^x+\frac3x\right)dx$
  • 4 $\displaystyle\int\left(3\sin x-4\cos x+\sec^2x\right)dx$
  • 5 $\displaystyle\int2^x\,dx$
  • 6 $\displaystyle\int\frac{x^3-8}{x-2}\,dx$
  • 7 $\displaystyle\int\sec x\,(\sec x+\tan x)\,dx$
  • 8 $\displaystyle\int\frac{2-3\sin x}{\cos^2x}\,dx$
  • 9 $\displaystyle\int\cot^2x\,dx$
  • 10 Find $f(x)$ if $f'(x)=6x^2-\dfrac{2}{x^2}$ and $f(1)=5$.
1 $\dfrac{x^5}{5}-x^3+7x+C$
2 $x^{1/2}+x^{-1/2}$ integrates to $\tfrac23x^{3/2}+2x^{1/2}+C$.
3 $2e^x+3\log|x|+C$
4 $-3\cos x-4\sin x+\tan x+C$
5 $\dfrac{2^x}{\log2}+C$
6 $x^3-8=(x-2)(x^2+2x+4)$, so for $x\ne2$ the integrand is $x^2+2x+4$: $\dfrac{x^3}{3}+x^2+4x+C$.
7 $\sec^2x+\sec x\tan x$ integrates to $\tan x+\sec x+C$.
8 $\dfrac{2}{\cos^2x}-3\dfrac{\sin x}{\cos x}\cdot\dfrac{1}{\cos x}$ is $2\sec^2x-3\sec x\tan x$, so the answer is $2\tan x-3\sec x+C$.
9 $\cot^2x=\operatorname{cosec}^2x-1$: $\ -\cot x-x+C$.
10 $f(x)=2x^3+\dfrac2x+C$ (since $\int-2x^{-2}dx=2x^{-1}$). $f(1)=2+2+C=5$ gives $C=1$: $f(x)=2x^3+\dfrac2x+1$.
II
Substitution. Choose $u$, rewrite, integrate, substitute back. Check your answers with the lab below.
  • 1 $\displaystyle\int(2x+1)^7\,dx$
  • 2 $\displaystyle\int\frac{x}{x^2+4}\,dx$
  • 3 $\displaystyle\int x\sqrt{x^2+9}\,dx$
  • 4 $\displaystyle\int e^{3x-1}\,dx$
  • 5 $\displaystyle\int\frac{\sin(\log x)}{x}\,dx$
  • 6 $\displaystyle\int\frac{\left(\sin^{-1}x\right)^2}{\sqrt{1-x^2}}\,dx$
  • 7 $\displaystyle\int\frac{e^{\sqrt x}}{\sqrt x}\,dx$
  • 8 $\displaystyle\int\frac{\cos x}{(1+\sin x)^2}\,dx$
  • 9 $\displaystyle\int\frac{dx}{x\,(1+\log x)}$
  • 10 $\displaystyle\int\frac{x+1}{x^2+2x+3}\,dx$
Check: the derivative of the answer (right panel) must retrace the integrand
the answer $F$ with its tangent
$F'$ being traced — it must be the integrand
$x$—
$F(x)$—
$F'(x)$ = integrand—
$F$ is…—
1 $u=2x+1$, $dx=\tfrac12du$: $\dfrac{(2x+1)^8}{16}+C$.
2 $u=x^2+4$, $x\,dx=\tfrac12du$: $\tfrac12\log\left(x^2+4\right)+C$.
3 $u=x^2+9$: $\tfrac12\displaystyle\int u^{1/2}du=\tfrac13\left(x^2+9\right)^{3/2}+C$.
4 $\tfrac13e^{3x-1}+C$.
5 $u=\log x$, $du=\dfrac{dx}x$: $\displaystyle\int\sin u\,du=-\cos(\log x)+C$.
6 $u=\sin^{-1}x$, $du=\dfrac{dx}{\sqrt{1-x^2}}$: $\dfrac{\left(\sin^{-1}x\right)^3}{3}+C$.
7 $u=\sqrt x$, $du=\dfrac{dx}{2\sqrt x}$: $\displaystyle\int2e^u\,du=2e^{\sqrt x}+C$.
8 $u=1+\sin x$, $du=\cos x\,dx$: $\displaystyle\int u^{-2}du=-\frac{1}{1+\sin x}+C$.
9 $u=1+\log x$, $du=\dfrac{dx}x$: $\log|1+\log x|+C$.
10 The numerator is half the derivative of $x^2+2x+3$ (which is $2x+2$): $\tfrac12\log\left(x^2+2x+3\right)+C$; the quadratic is always positive since $(x+1)^2+2\gt0$.
III
Trigonometric integrands. Use an identity, an odd-power split, or Theorem 7.5.
  • 1 $\displaystyle\int\sin^2x\,dx$
  • 2 $\displaystyle\int\cos4x\cos x\,dx$
  • 3 $\displaystyle\int\sin2x\sin4x\,dx$
  • 4 $\displaystyle\int\cos^3x\,dx$
  • 5 $\displaystyle\int\tan3x\,dx$
  • 6 $\displaystyle\int\sec2x\,dx$
  • 7 $\displaystyle\int\frac{dx}{1+\cos x}$
  • 8 $\displaystyle\int\frac{dx}{\sin^2x\cos^2x}$
  • 9 Prove that $\displaystyle\int\cot x\,dx=\log|\sin x|+C$ and $\displaystyle\int\operatorname{cosec}x\,dx=\log|\operatorname{cosec}x-\cot x|+C$.
1 $\displaystyle\int\tfrac12(1-\cos2x)\,dx=\frac x2-\frac{\sin2x}{4}+C$.
2 $\cos4x\cos x=\tfrac12(\cos5x+\cos3x)$: $\ \dfrac{\sin5x}{10}+\dfrac{\sin3x}{6}+C$.
3 $\sin2x\sin4x=\tfrac12(\cos2x-\cos6x)$: $\ \dfrac{\sin2x}{4}-\dfrac{\sin6x}{12}+C$.
4 $\cos^3x=(1-\sin^2x)\cos x$; $u=\sin x$: $\ \sin x-\dfrac{\sin^3x}{3}+C$. (The identity route gives $\tfrac34\sin x+\tfrac1{12}\sin3x+C$ — the same function, since $\sin3x=3\sin x-4\sin^3x$.)
5 $\tfrac13\log|\sec3x|+C$.
6 $\tfrac12\log|\sec2x+\tan2x|+C$.
7 $1+\cos x=2\cos^2\tfrac x2$, so the integrand is $\tfrac12\sec^2\tfrac x2$: $\ \tan\dfrac x2+C$.
8 Write $1=\sin^2x+\cos^2x$: $\dfrac{\sin^2x+\cos^2x}{\sin^2x\cos^2x}=\sec^2x+\operatorname{cosec}^2x$, so the answer is $\tan x-\cot x+C$.
9 $\cot x=\dfrac{\cos x}{\sin x}=\dfrac{(\sin x)'}{\sin x}$, giving $\log|\sin x|+C$. For cosec, multiply above and below by $\operatorname{cosec}x-\cot x$: the numerator becomes $\operatorname{cosec}^2x-\operatorname{cosec}x\cot x$, which is exactly $\dfrac{d}{dx}(\operatorname{cosec}x-\cot x)$. Theorem 7.5 gives $\log|\operatorname{cosec}x-\cot x|+C$. ∎
IV
Modelling: from a rate to a quantity. Give units in every answer.
  • 1 Cyclist. A cyclist's speed is $v(t)=4+6t$ m/s for $0\le t\le5$. Find the distance $s(t)$ travelled after $t$ seconds (with $s(0)=0$) and the distance covered in the first $5$ s.
  • 2 Drug dosage. A drug enters a patient's bloodstream at the rate $r(t)=20e^{-0.5t}$ mg per hour, starting with none. Find the amount $A(t)$ received after $t$ hours, its value at $t=2$ (to 2 decimal places), and the amount it approaches in the long run.
  • 3 Factory costs. The marginal cost of producing $x$ units is $3x^2-10x+40$ rupees per unit and the fixed cost is ₹$500$. Find the total cost function and the cost of producing $10$ units.
  • 4 Water tank. Water flows into a tank at $50+10\sqrt t$ litres per minute. The tank holds $200$ L at $t=0$. How much does it hold after $9$ minutes?
  • 5 Curve. A curve passes through $(0,2)$ and its slope at $(x,y)$ is $\dfrac{2x}{x^2+1}$. Find its equation and the value of $y$ when $x=\sqrt{e-1}$.
1 $s(t)=4t+3t^2+C$ and $s(0)=0$ gives $C=0$. $s(5)=20+75=95$ m.
2 $A(t)=\displaystyle\int20e^{-0.5t}dt=-40e^{-0.5t}+C$; $A(0)=0$ gives $C=40$, so $A(t)=40\left(1-e^{-0.5t}\right)$ mg. $A(2)=40(1-e^{-1})\approx25.28$ mg. As $t$ grows, $e^{-0.5t}\to0$ and $A(t)\to40$ mg.
3 $C(x)=x^3-5x^2+40x+K$ with $C(0)=K=500$. So $C(x)=x^3-5x^2+40x+500$ and $C(10)=1000-500+400+500=1400$: ₹$1400$.
4 $V(t)=50t+\tfrac{20}{3}t^{3/2}+200$ litres. $V(9)=450+\tfrac{20}{3}\cdot27+200$ $=450+180+200=830$ L.
5 $y=\log\left(x^2+1\right)+C$ and $y(0)=0+C=2$: $y=\log\left(x^2+1\right)+2$. At $x=\sqrt{e-1}$, $x^2+1=e$, so $y=1+2=3$.
🎯 Exam corner Board · 1 markBoard · 2 marksBoard · 3 marksBoard · Case studyJEE MainJEE Advanced

How this is examined: the Board sets 1-mark MCQs that need one identity, 2- and 3-mark integrals by substitution or product-to-sum formulas, and case studies that rebuild a quantity from its rate. JEE hides a substitution behind algebra (dividing by a power of $x$ is a favourite) and asks for the value of a particular antiderivative.

E1. Board · 1 mark $\displaystyle\int\frac{\sin^2x-\cos^2x}{\sin^2x\cos^2x}\,dx$ is equal to  (A) $\tan x+\cot x+C$  (B) $\tan x+\operatorname{cosec}x+C$  (C) $-\tan x+\cot x+C$  (D) $\tan x+\sec x+C$

Idea Split the fraction: $\dfrac{\sin^2x}{\sin^2x\cos^2x}-\dfrac{\cos^2x}{\sin^2x\cos^2x}$ is $\sec^2x-\operatorname{cosec}^2x$. Integrate: $\tan x-(-\cot x)=\tan x+\cot x$.
Answer (A). Trap (C) forgets that $\int\operatorname{cosec}^2x\,dx=-\cot x$ already carries a minus sign, and gets the sign of both terms wrong.

E2. Board · 2 marks Find $\displaystyle\int\frac{3x^2}{1+x^6}\,dx$.

Substitute $x^6=\left(x^3\right)^2$, so put $u=x^3$, $du=3x^2\,dx$. (1 mark)
Answer $\displaystyle\int\frac{du}{1+u^2}=\tan^{-1}u+C=\tan^{-1}\left(x^3\right)+C$. (1 mark)

E3. Board · 3 marks Find $\displaystyle\int\sin x\sin2x\sin3x\,dx$.

Pair two factors $\sin x\sin3x=\tfrac12(\cos2x-\cos4x)$. So the integrand is $\tfrac12\left(\sin2x\cos2x-\sin2x\cos4x\right)$. (1 mark)
Again $\sin2x\cos2x=\tfrac12\sin4x$ and $\sin2x\cos4x=\tfrac12(\sin6x-\sin2x)$. The integrand becomes $\tfrac14\left(\sin2x+\sin4x-\sin6x\right)$. (1 mark)
Answer $\displaystyle-\frac{\cos2x}{8}-\frac{\cos4x}{16}+\frac{\cos6x}{24}+C$. (1 mark)

E4. Board · Case study A municipal water tank in Chennai holds $500$ L at 6 a.m. ($t=0$). From then on a pump fills it at the rate $\dfrac{dV}{dt}=40+12\sqrt t$ litres per minute. (i) Find $V(t)$. [2 marks] (ii) How much water is in the tank at $t=4$ minutes? [1 mark] (iii) At what time is the inflow rate $64$ L/min? [1 mark]

(i) $V(t)=\displaystyle\int\left(40+12t^{1/2}\right)dt=40t+8t^{3/2}+C$; $V(0)=500$ gives $C=500$. So $V(t)=500+40t+8t^{3/2}$ litres.
(ii) $V(4)=500+160+8\cdot8=724$ L.
(iii) $40+12\sqrt t=64$ gives $\sqrt t=2$, $t=4$ min, i.e. at 6:04 a.m. (This is a question about the rate, not the volume — read carefully.)

E5. JEE Main $\displaystyle\int\frac{dx}{x^2\left(x^4+1\right)^{3/4}}$ $(x\gt0)$ equals  (A) $\left(1+\dfrac1{x^4}\right)^{1/4}+C$  (B) $-\left(1+\dfrac1{x^4}\right)^{1/4}+C$  (C) $\tfrac14\left(1+\dfrac1{x^4}\right)^{1/4}+C$  (D) $-\left(1+\dfrac1{x^4}\right)^{-1/4}+C$

Rewrite Take $x^4$ out of the bracket: $\left(x^4+1\right)^{3/4}=x^3\left(1+x^{-4}\right)^{3/4}$, so the integrand is $x^{-5}\left(1+x^{-4}\right)^{-3/4}$.
Substitute $u=1+x^{-4}$, $du=-4x^{-5}dx$: $\displaystyle-\tfrac14\int u^{-3/4}du=-\tfrac14\cdot4u^{1/4}+C$, that is, $-u^{1/4}+C$.
Answer (B). (A) loses the minus sign from $du=-4x^{-5}dx$; (C) forgets that $\int u^{-3/4}du=4u^{1/4}$.
⏱ Fast route The integrand is positive, so the answer must be an increasing function. As $x$ grows, $1+x^{-4}$ falls, so (A), (C) and (D) all decrease on $x\gt0$; only (B) increases.

E6. JEE Advanced (Numerical answer.) Let $F$ be the antiderivative of $f(x)=\tan^3x+\tan x$ on $\left(-\tfrac\pi2,\tfrac\pi2\right)$ with $F(0)=0$. Find $F\!\left(\tfrac\pi3\right)$.

Factor $\tan^3x+\tan x=\tan x\left(\tan^2x+1\right)$ $=\tan x\sec^2x$ — a function of $\tan x$ times its derivative.
Integrate $u=\tan x$: $F(x)=\tfrac12\tan^2x+C$, and $F(0)=0$ gives $C=0$.
Answer $F\!\left(\tfrac\pi3\right)=\tfrac12\left(\sqrt3\right)^2=\tfrac32=1.50$.
🔬 Research–Teaching NexusMini project · about 60 minutes

Research question. Can you rebuild the distance of a journey from nothing but its speed readings — and how close does the rebuilt distance get to the true one?

Why it matters. Ships, submarines and aircraft without satellite signals navigate by dead reckoning: they integrate their measured speed. Fitness bands estimate the distance you walked from accelerometer data the same way, and ISRO tracks a rocket's climb by integrating its velocity telemetry. Small errors in the rate pile up in the total, so engineers need to know how fast they grow.

What to do.

  1. Record speed every $10$ s for about $3$ minutes: use a phone GPS app on a bus or car ride (as a passenger), or a cycle computer. If you cannot travel, use the model $v(t)=0.3t-0.001t^2$ m/s for $0\le t\le180$.
  2. In a spreadsheet, estimate the distance in each $10$-s interval as speed × $10$ and keep a running total. Plot running total against time.
  3. Fit a quadratic $v(t)=at^2+bt+c$ to your speeds (spreadsheet trendline). Integrate it by hand to get $s(t)=\tfrac a3t^3+\tfrac b2t^2+ct$ and plot it on the same axes.
  4. Compare both with the distance shown by the app's map. Which is closer? Where do they drift apart?

Tools: Phone GPS logger or cycle computer, spreadsheet with a trendline tool.

Hand in: Your speed table, the running-total graph with the integrated curve, the three distance estimates, and a short paragraph on why the running total and the antiderivative should agree better when readings are closer together.

Going further. Add a constant error of $+0.2$ m/s to every speed. How large is the distance error after $3$ minutes? After an hour? Explain with $\int0.2\,dt$.

Instructor note: for the model speed, $s(t)=0.15t^2-\tfrac{0.001}{3}t^3$, so $s(180)=4860-1944=2916$ m; the $10$-s running total with left endpoints gives $2805$ m, with right endpoints $3021$ m (their average, $2913$ m, is much closer). A constant bias of $0.2$ m/s adds $0.2t$ metres: $36$ m after $3$ minutes and $720$ m after an hour — the error grows linearly in time. This is a good lead-in to Section 7.4.

🧪 Self-check quiz

0/5 correct

Q1. $\displaystyle\int x^{-1}\,dx$ equals

Q2. Which function is an antiderivative of $\sin2x$?

Q3. $F'(x)=G'(x)$ for every $x$ in an interval $I$. Then on $I$

Q4. $\displaystyle\int\tan x\,dx$ equals

Q5. With $u=x^2+1$, the integral $\displaystyle\int\frac{x}{\left(x^2+1\right)^3}\,dx$ becomes