Chapter 8 · Integral Calculus

8.1 Indefinite Integrals

Integration runs differentiation backwards. This section builds the indefinite integral as a whole family of antiderivatives, the table of fundamental integrals, and the four techniques JEE Main asks for — substitution, integration by parts, partial fractions and trigonometric identities — together with the standard integrals such as $\int\frac{dx}{x^2+a^2}$, $\int\frac{dx}{\sqrt{ax^2+bx+c}}$ and $\int\sqrt{a^2-x^2}\,dx$.

A delivery drone logs its speed but not its position. Its flight computer records that, $t$ seconds after take-off, the drone climbs at $v(t)=6t-3t^2$ metres per second. Where is it after $2$ seconds? Differentiation goes from position to speed; here we must go the other way — find a function whose derivative is $6t-3t^2$. The function $3t^2-t^3$ works, since $\tfrac{d}{dt}(3t^2-t^3)=6t-3t^2$. So does $3t^2-t^3+5$, and so does $3t^2-t^3+C$ for any constant $C$: knowing the speed fixes the shape of the position graph but not its height. One extra fact — the drone started on the ground, at height $0$ — picks out $C=0$, and the height after $2$ seconds is $3(4)-8=4$ metres.

Reversing a derivative is called integration, and it is the second half of calculus. It computes areas, volumes and work done (Sections 8.2 and 8.3), and it is the tool for solving differential equations (Chapter 9). Unlike differentiation, integration has no rule that always succeeds: it is a craft of recognising forms and changing variables. In this section we build the craft from the bottom up — the meaning of the indefinite integral, a table of fundamental integrals, then substitution, the standard forms with $x^2\pm a^2$, integration by parts, trigonometric identities and partial fractions. JEE Main tests these directly in one or two questions a paper and uses them inside almost every definite-integral and area question.

Antiderivatives and the Indefinite Integral

📘 Definition 8.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}$, and so are $x^3+7$ and $x^3-\sqrt2$. Adding a constant never changes a derivative. The important fact is the converse: on an interval, adding a constant is the only freedom there is.

📐 Theorem 8.1 — Two 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$ for all $x\in I$.

Proof. Let $H=G-F$. Then $H'(x)=f(x)-f(x)=0$ at every point of $I$. By the monotonicity test (Section 7.4), $H'\ge0$ on $I$ makes $H$ non-decreasing and $H'\le0$ makes it non-increasing; a function that is both on an interval is constant. So $H(x)=C$. $\blacksquare$ The word interval matters. On the set $x\ne0$ (two intervals) the function equal to $\ln x$ for $x\gt0$ and to $\ln(-x)+5$ for $x\lt0$ is also an antiderivative of $\tfrac1x$: each piece may carry its own constant.

📘 Definition 8.2 — Indefinite integral

The collection of all antiderivatives of $f$ on an interval is the indefinite integral of $f$, written

$$\int f(x)\,dx=F(x)+C,$$

where $F$ is any one antiderivative of $f$ and $C$ is an arbitrary real number, the constant of integration. The function $f(x)$ is the integrand, $x$ is the variable of integration, and $dx$ names that variable.

The symbol $\int$, an elongated S for "sum", is Leibniz's; Section 8.2 explains why a sum is involved. Geometrically, $\int f(x)\,dx$ is a family of curves $y=F(x)+C$: each is the graph of $F$ moved up or down. At any fixed $x$ all of them have the same slope $f(x)$, so their tangents there are parallel. Giving one point on the curve — an initial condition such as "the drone starts at height $0$" — selects a single member of the family.

📐 Theorem 8.2 — Properties of the indefinite integral

For functions with antiderivatives on an interval and a constant $k$:

  1. $\dfrac{d}{dx}\displaystyle\int f(x)\,dx=f(x)$ and $\displaystyle\int F'(x)\,dx=F(x)+C$ — differentiation and integration undo each other (up to the constant).
  2. $\displaystyle\int\big[f(x)\pm g(x)\big]\,dx=\int f(x)\,dx\pm\int g(x)\,dx$.
  3. $\displaystyle\int k\,f(x)\,dx=k\int f(x)\,dx$.

Each is proved by differentiating the right-hand side and using the sum and constant-multiple rules for derivatives (Section 7.3). Every formula in the next table is likewise a derivative from Section 7.3 read backwards — and the way to check any integral is to differentiate the answer.

📐 Theorem 8.3 — Fundamental integrals
$\int f(x)\,dx$$=$valid for
$\int x^n\,dx$$\dfrac{x^{n+1}}{n+1}+C$$n\ne-1$
$\int \dfrac{dx}{x}$$\ln|x|+C$$x\ne0$
$\int e^x\,dx$, $\ \int a^x\,dx$$e^x+C$, $\ \dfrac{a^x}{\ln a}+C$$a\gt0$, $a\ne1$
$\int\sin x\,dx$, $\ \int\cos x\,dx$$-\cos x+C$, $\ \sin x+C$all $x$
$\int\sec^2x\,dx$, $\ \int\operatorname{cosec}^2x\,dx$$\tan x+C$, $\ -\cot x+C$where defined
$\int\sec x\tan x\,dx$, $\ \int\operatorname{cosec}x\cot x\,dx$$\sec x+C$, $\ -\operatorname{cosec}x+C$where defined
$\int\tan x\,dx$, $\ \int\cot x\,dx$$\ln|\sec x|+C$, $\ \ln|\sin x|+C$where defined
$\int\sec x\,dx$$\ln|\sec x+\tan x|+C$where defined
$\int\operatorname{cosec}x\,dx$$\ln|\operatorname{cosec}x-\cot x|+C=\ln\left|\tan\tfrac x2\right|+C$where defined
$\int\dfrac{dx}{\sqrt{1-x^2}}$$\sin^{-1}x+C$$-1\lt x\lt1$
$\int\dfrac{dx}{1+x^2}$$\tan^{-1}x+C$all $x$
$\int\dfrac{dx}{|x|\sqrt{x^2-1}}$$\sec^{-1}x+C$$|x|\gt1$

Proofs of the less obvious lines. For $x\gt0$, $(\ln x)'=\tfrac1x$; for $x\lt0$, $\big(\ln(-x)\big)'=\tfrac{-1}{-x}=\tfrac1x$ — so $\ln|x|$ works on both sides of $0$. Next, $\big(\ln|\sec x|\big)'=\dfrac{\sec x\tan x}{\sec x}=\tan x$, and

$$\frac{d}{dx}\ln|\sec x+\tan x|=\frac{\sec x\tan x+\sec^2x}{\sec x+\tan x}=\frac{\sec x(\tan x+\sec x)}{\sec x+\tan x}=\sec x.$$

Two answers that look different can both be right: $\int\tfrac{dx}{\sqrt{1-x^2}}$ is also $-\cos^{-1}x+C$, because $\sin^{-1}x=\tfrac\pi2-\cos^{-1}x$ — the two differ by the constant $\tfrac\pi2$, exactly as Theorem 8.1 allows. $\blacksquare$

✏️ Example 1 — The table, linearity and an initial condition
Find (a) $\int\left(3x^2-\dfrac4x+2e^x-5\right)dx$; (b) $\int\dfrac{(x+1)^2}{\sqrt x}\,dx$; (c) $\int\tan^2x\,dx$; (d) $\int\dfrac{2^x+3^x}{6^x}\,dx$. (e) The slope of a curve at $(x,y)$ is $6x^2-4x+1$ and the curve passes through $(1,5)$. Find its equation and the value of $y$ at $x=2$.
(a) Term by term (Theorem 8.2): $x^3-4\ln|x|+2e^x-5x+C$. One constant is enough for the whole sum.
(b) Expand and divide first: $\dfrac{x^2+2x+1}{x^{1/2}}=x^{3/2}+2x^{1/2}+x^{-1/2}$, so the integral is $\tfrac25x^{5/2}+\tfrac43x^{3/2}+2x^{1/2}+C$.
(c) No line of the table has $\tan^2x$, but $\tan^2x=\sec^2x-1$: $\int(\sec^2x-1)\,dx=\tan x-x+C$.
(d) $\dfrac{2^x}{6^x}=3^{-x}=\left(\tfrac13\right)^x$ and $\dfrac{3^x}{6^x}=\left(\tfrac12\right)^x$. With $\int a^x\,dx=\tfrac{a^x}{\ln a}$: $\ \dfrac{(1/3)^x}{\ln(1/3)}+\dfrac{(1/2)^x}{\ln(1/2)}+C=-\dfrac{3^{-x}}{\ln3}-\dfrac{2^{-x}}{\ln2}+C$.
(e) $y=\int(6x^2-4x+1)\,dx=2x^3-2x^2+x+C$. At $(1,5)$: $5=2-2+1+C$, so $C=4$ and $y=2x^3-2x^2+x+4$. At $x=2$: $y=16-8+2+4=14$.
Check Differentiate (b): $\tfrac25\cdot\tfrac52x^{3/2}+\tfrac43\cdot\tfrac32x^{1/2}+2\cdot\tfrac12x^{-1/2}=x^{3/2}+2x^{1/2}+x^{-1/2}$ ✓.

Take $f(x)=3x^2-3$. Two members of the family $\int f(x)\,dx$ pass through $(0,0)$ and $(0,2)$. At $x=1.5$, how far apart are they, and how do their tangents compare?

Choose $f(x)=3x^2-3$ and set $x_0=1.5$. With $C=0$ the readouts give $F(x_0)+C=-1.125$; move $C$ to $2$ and they give $0.875$ — a gap of exactly $2$, the gap at $x=0$. The slope readout stays at $f(1.5)=3.75$ for every $C$, so the two tangents are parallel. Every member is $y=x^3-3x+C$: the curves are vertical copies of one another, which is why the slope-field segments in each column of the grid are all parallel.
Interactive 1 — Antiderivative Family and Slope Field

The short grey segments are a slope field: at each grid point they have slope $f(x)$, the slope every antiderivative must have there. The faint curves are members of the family $y=F(x)+C$; the red one is the member with your constant $C$ and the blue one is $C=0$. Both tangents at $x_0$ are drawn, with the vertical gap between the curves in green. Press Play to slide $C$ up and down and watch the curve follow the segments.

21
antiderivative $F(x)$—
$F(x_0)+C$—
slope $f(x_0)$ (all members)—
gap to the $C=0$ curve—

Which is a correct value of $\displaystyle\int\frac{dx}{2x}$?

Integration by Substitution and the Standard Forms

The chain rule says $\tfrac{d}{dx}F\big(g(x)\big)=F'\big(g(x)\big)\,g'(x)$. Read backwards, it integrates any product of the form "a function of $g(x)$, times $g'(x)$".

📐 Theorem 8.4 — Integration by substitution

Let $g$ be differentiable on an interval $I$ with $g'$ continuous, and let $f$ be continuous on an interval containing all the values $g(x)$, $x\in I$, with antiderivative $F$. Then

$$\int f\big(g(x)\big)\,g'(x)\,dx=F\big(g(x)\big)+C.$$

In practice: put $u=g(x)$, so $du=g'(x)\,dx$; the integral becomes $\int f(u)\,du=F(u)+C$; then replace $u$ by $g(x)$.

Proof. By the chain rule $\tfrac{d}{dx}F\big(g(x)\big)=F'\big(g(x)\big)g'(x)=f\big(g(x)\big)g'(x)$, so $F\big(g(x)\big)$ is an antiderivative of the integrand. $\blacksquare$ Four special cases are worth knowing by heart, because they let you write the answer down at once.

📐 Theorem 8.5 — Four instant substitutions

With $F$ an antiderivative of $f$, and on intervals where the expressions are defined:

Linear inside$\displaystyle\int f(ax+b)\,dx=\frac1a\,F(ax+b)+C,\ \ a\ne0$
Derivative over function$\displaystyle\int\frac{f'(x)}{f(x)}\,dx=\ln|f(x)|+C$
Power of a function$\displaystyle\int[f(x)]^n f'(x)\,dx=\frac{[f(x)]^{n+1}}{n+1}+C,\ \ n\ne-1$
Derivative over root$\displaystyle\int\frac{f'(x)}{\sqrt{f(x)}}\,dx=2\sqrt{f(x)}+C$
🧭 Problem-solving strategy — choosing the substitution
  1. Look for a function whose derivative (up to a constant factor) also multiplies the integrand: $x^2$ with $x$, $\sin x$ with $\cos x$, $\ln x$ with $\tfrac1x$, $\tan x$ with $\sec^2x$.
  2. Good candidates for $u$ are the "inside" of something: the base of a power or root, an exponent, the argument of $\ln$, $\sin$ or $\tan^{-1}$.
  3. Convert everything, $dx$ included: after the substitution no $x$ may remain. If one does, express it through $u$ (e.g. $x=u-1$) or choose another $u$.
  4. Integrate in $u$, return to $x$, and check by differentiating.
✏️ Example 2 — Substitution
Find (a) $\int x^2\cos(x^3)\,dx$; (b) $\int\dfrac{2x+3}{x^2+3x+5}\,dx$; (c) $\int e^{\tan x}\sec^2x\,dx$; (d) $\int\dfrac{dx}{x\ln x}$ ($x\gt1$); (e) $\int x\sqrt{x+1}\,dx$.
(a) $u=x^3$, $du=3x^2\,dx$, so $x^2\,dx=\tfrac13du$: $\ \tfrac13\int\cos u\,du=\tfrac13\sin(x^3)+C$.
(b) The numerator is exactly the derivative of the denominator: $\ln|x^2+3x+5|+C=\ln(x^2+3x+5)+C$ (the quadratic has discriminant $9-20\lt0$, so it is always positive).
(c) $u=\tan x$, $du=\sec^2x\,dx$: $\int e^u\,du=e^{\tan x}+C$.
(d) $u=\ln x$, $du=\tfrac{dx}{x}$: $\int\tfrac{du}{u}=\ln|\ln x|+C$ — the "derivative over function" form with $f=\ln x$.
(e) $u=x+1$, $du=dx$, and the leftover $x$ is $u-1$: $\int(u-1)u^{1/2}\,du=\int\big(u^{3/2}-u^{1/2}\big)du=\tfrac25(x+1)^{5/2}-\tfrac23(x+1)^{3/2}+C$.
Check (e): the derivative is $(x+1)^{3/2}-(x+1)^{1/2}=(x+1)^{1/2}\big[(x+1)-1\big]=x\sqrt{x+1}$ ✓.

Substituting $x=a\tan\theta$ or $x=a\sin\theta$ (and, for some forms, splitting into partial fractions, as later in this section) gives six standard integrals with $x^2\pm a^2$ that JEE Main lists by name.

📐 Theorem 8.6 — Standard integrals with $x^2\pm a^2$ (for $a\gt0$)
(1)$\displaystyle\int\frac{dx}{x^2+a^2}=\frac1a\tan^{-1}\frac xa+C$
(2)$\displaystyle\int\frac{dx}{x^2-a^2}=\frac1{2a}\ln\left|\frac{x-a}{x+a}\right|+C$
(3)$\displaystyle\int\frac{dx}{a^2-x^2}=\frac1{2a}\ln\left|\frac{a+x}{a-x}\right|+C$
(4)$\displaystyle\int\frac{dx}{\sqrt{a^2-x^2}}=\sin^{-1}\frac xa+C,\ \ |x|\lt a$
(5)$\displaystyle\int\frac{dx}{\sqrt{x^2+a^2}}=\ln\left|x+\sqrt{x^2+a^2}\right|+C$
(6)$\displaystyle\int\frac{dx}{\sqrt{x^2-a^2}}=\ln\left|x+\sqrt{x^2-a^2}\right|+C,\ \ |x|\gt a$

Proof. (1) Put $x=a\tan\theta$, $-\tfrac\pi2\lt\theta\lt\tfrac\pi2$: $dx=a\sec^2\theta\,d\theta$ and $x^2+a^2=a^2\sec^2\theta$, so the integral is $\int\tfrac{d\theta}{a}=\tfrac\theta a+C=\tfrac1a\tan^{-1}\tfrac xa+C$. (2) Split: $\dfrac{1}{x^2-a^2}=\dfrac1{2a}\left[\dfrac1{x-a}-\dfrac1{x+a}\right]$, and integrate each term to a logarithm; (3) is the same with the signs changed. (4) Put $x=a\sin\theta$: $dx=a\cos\theta\,d\theta$ and $\sqrt{a^2-x^2}=a\cos\theta$, leaving $\int d\theta=\theta$. (5) and (6) are checked by differentiating; for (5),

$$\frac{d}{dx}\ln\left(x+\sqrt{x^2+a^2}\right)=\frac{1+\dfrac{x}{\sqrt{x^2+a^2}}}{x+\sqrt{x^2+a^2}}=\frac{1}{\sqrt{x^2+a^2}}.\ \blacksquare$$
🧭 Problem-solving strategy — quadratics in the denominator

$\int\dfrac{dx}{ax^2+bx+c}$ and $\int\dfrac{dx}{\sqrt{ax^2+bx+c}}$: complete the square, $ax^2+bx+c=a\left[\left(x+\tfrac{b}{2a}\right)^2+\tfrac{4ac-b^2}{4a^2}\right]$, and use the matching form of Theorem 8.6 with $X=x+\tfrac b{2a}$ (Theorem 8.5, linear inside).

$\int\dfrac{px+q}{ax^2+bx+c}\,dx$ and $\int\dfrac{px+q}{\sqrt{ax^2+bx+c}}\,dx$: write the numerator as a multiple of the derivative of the quadratic plus a constant, $px+q=A(2ax+b)+B$ (compare coefficients of $x$ and the constants). The $A$-part is a "derivative over function" or "derivative over root" integral; the $B$-part is the previous type.

✏️ Example 3 — Completing the square
Find (a) $\int\dfrac{dx}{x^2+4x+13}$; (b) $\int\dfrac{dx}{\sqrt{5-4x-x^2}}$; (c) $\int\dfrac{3x+1}{x^2+2x+5}\,dx$; (d) $\int\dfrac{x+2}{\sqrt{x^2+2x+3}}\,dx$.
In (c) the answer has the form $k\ln(x^2+2x+5)+m\tan^{-1}\tfrac{x+1}{2}+C$. Find $k$ before you open the solution:
(a) $x^2+4x+13=(x+2)^2+3^2$. Form (1) with $X=x+2$, $a=3$: $\ \tfrac13\tan^{-1}\dfrac{x+2}{3}+C$.
(b) $5-4x-x^2=9-(x^2+4x+4)=3^2-(x+2)^2$. Form (4): $\ \sin^{-1}\dfrac{x+2}{3}+C$ (for $-5\lt x\lt1$).
(c) $3x+1=A(2x+2)+B$: $2A=3$, $2A+B=1$, so $A=\tfrac32$, $B=-2$. Then
$\displaystyle\int\frac{3x+1}{x^2+2x+5}\,dx=\frac32\ln(x^2+2x+5)-2\int\frac{dx}{(x+1)^2+2^2}$
$\displaystyle=\frac32\ln(x^2+2x+5)-\tan^{-1}\frac{x+1}{2}+C$. So $k=\tfrac32$, $m=-1$.
(d) $x+2=\tfrac12(2x+2)+1$. The first part is "derivative over root": $\tfrac12\cdot2\sqrt{x^2+2x+3}$. The second is form (5) with $X=x+1$, $a=\sqrt2$: $\ \sqrt{x^2+2x+3}+\ln\left|x+1+\sqrt{x^2+2x+3}\right|+C$.
Check (a) at $x=0$: the integrand is $\tfrac1{13}\approx0.0769$; the derivative of the answer is $\tfrac13\cdot\tfrac{1/3}{1+4/9}=\tfrac{1}{13}$ ✓.

A student writes $\displaystyle\int\frac{x}{1+x^2}\,dx=\ln(1+x^2)+C$. Differentiate the student's answer. Compared with the integrand, the result is

Choose $\int\tfrac{x}{1+x^2}\,dx$ and press Show the common slip. The red dots — the slope of $\ln(1+x^2)$ — sit at exactly twice the height of the integrand curve: at $x=1$ the curve is at $0.5$ and the dot at $1$, and the readout reports a largest gap of about $0.5$. The slip forgets that $du=2x\,dx$, so $x\,dx=\tfrac12du$. Step through the correct solution and the green dots land on the curve with gap $0$: the answer is $\tfrac12\ln(1+x^2)+C$.
Interactive 2 — Substitution Stepper with a Derivative Check

Choose an integral and press Next step (or Play) to walk through the substitution: choose $u$, convert $dx$, integrate in $u$, substitute back. When the answer appears, the graph checks it — the curve is the integrand, and the green dots are the slopes of the answer, measured numerically. They must lie on the curve. Show the common slip plots the slopes of a typical wrong answer in red.

step—
answer being checked—
largest gap $|F'(x)-f(x)|$—

$\displaystyle\int\frac{dx}{x^2+6x+13}$ equals

Integration by Parts and Trigonometric Identities

The product rule $(uv)'=u'v+uv'$, integrated, turns the integral of a product $uv'$ into the integral of a different product $u'v$ — useful when $u'v$ is simpler.

📐 Theorem 8.7 — Integration by parts

If $u$ and $v$ are differentiable on an interval with continuous derivatives, then

$$\int u(x)\,v'(x)\,dx=u(x)\,v(x)-\int u'(x)\,v(x)\,dx.$$

In words: first × integral of second − ∫ (derivative of first × integral of second).

Proof. $uv$ is an antiderivative of $u'v+uv'$, so $\int(u'v+uv')\,dx=uv+C$; rearrange using Theorem 8.2. $\blacksquare$ Choosing the first function $u$. Pick as $u$ the factor that becomes simpler when differentiated, and as $v'$ one you can integrate. A reliable order of preference for $u$ is ILATE: Inverse trigonometric, Logarithmic, Algebraic, Trigonometric, Exponential. To integrate $\ln x$ or $\tan^{-1}x$ alone, take $v'=1$.

📐 Theorem 8.8 — Two consequences of integration by parts

(1) If $f$ is differentiable with $f'$ continuous, then $\displaystyle\int e^x\big[f(x)+f'(x)\big]\,dx=e^xf(x)+C$.

(2) For real $a$, $b$ not both zero,

$$\int e^{ax}\sin bx\,dx=\frac{e^{ax}(a\sin bx-b\cos bx)}{a^2+b^2}+C,$$ $$\int e^{ax}\cos bx\,dx=\frac{e^{ax}(a\cos bx+b\sin bx)}{a^2+b^2}+C.$$

Proof. (1) $\big(e^xf(x)\big)'=e^xf(x)+e^xf'(x)$. (2) Differentiate the first right-hand side:

$$\frac{e^{ax}\big[a(a\sin bx-b\cos bx)+(ab\cos bx+b^2\sin bx)\big]}{a^2+b^2}=\frac{e^{ax}(a^2+b^2)\sin bx}{a^2+b^2}=e^{ax}\sin bx;$$

the second is similar. These answers can also be found by integrating by parts twice: the original integral reappears and is solved for, like an unknown in an equation. $\blacksquare$

📐 Theorem 8.9 — Integrals of $\sqrt{a^2-x^2}$, $\sqrt{x^2+a^2}$, $\sqrt{x^2-a^2}$ (for $a\gt0$)
$$\int\sqrt{a^2-x^2}\,dx=\frac x2\sqrt{a^2-x^2}+\frac{a^2}{2}\sin^{-1}\frac xa+C,\quad |x|\le a$$ $$\int\sqrt{x^2+a^2}\,dx=\frac x2\sqrt{x^2+a^2}+\frac{a^2}{2}\ln\left|x+\sqrt{x^2+a^2}\right|+C$$ $$\int\sqrt{x^2-a^2}\,dx=\frac x2\sqrt{x^2-a^2}-\frac{a^2}{2}\ln\left|x+\sqrt{x^2-a^2}\right|+C,\quad |x|\ge a$$

Proof of the first. Call it $I$ and integrate $\sqrt{a^2-x^2}\cdot1$ by parts ($u=\sqrt{a^2-x^2}$, $v=x$):

$$I=x\sqrt{a^2-x^2}+\int\frac{x^2}{\sqrt{a^2-x^2}}\,dx=x\sqrt{a^2-x^2}-\int\frac{(a^2-x^2)-a^2}{\sqrt{a^2-x^2}}\,dx=x\sqrt{a^2-x^2}-I+a^2\sin^{-1}\frac xa.$$

So $2I=x\sqrt{a^2-x^2}+a^2\sin^{-1}\tfrac xa$ (plus a constant). The other two are proved the same way, using forms (5) and (6). $\blacksquare$

✏️ Example 4 — Integration by parts
Find (a) $\int xe^{2x}\,dx$; (b) $\int\ln x\,dx$; (c) $\int x^2\sin x\,dx$; (d) $\int\tan^{-1}x\,dx$; (e) $\int e^x\left(\dfrac1x-\dfrac1{x^2}\right)dx$; (f) $\int e^x\sin2x\,dx$.
(a) $u=x$, $v'=e^{2x}$, $v=\tfrac12e^{2x}$: $\ \tfrac x2e^{2x}-\int\tfrac12e^{2x}\,dx=\tfrac x2e^{2x}-\tfrac14e^{2x}+C$.
(b) $u=\ln x$, $v'=1$: $\ x\ln x-\int x\cdot\tfrac1x\,dx=x\ln x-x+C$.
(c) Twice. $u=x^2$, $v=-\cos x$: $\ -x^2\cos x+\int2x\cos x\,dx$; then $u=2x$, $v=\sin x$: $\int2x\cos x\,dx=2x\sin x-\int2\sin x\,dx=2x\sin x+2\cos x$. Answer: $-x^2\cos x+2x\sin x+2\cos x+C$.
(d) $u=\tan^{-1}x$, $v'=1$: $\ x\tan^{-1}x-\int\dfrac{x}{1+x^2}\,dx=x\tan^{-1}x-\tfrac12\ln(1+x^2)+C$.
(e) With $f(x)=\tfrac1x$, $f'(x)=-\tfrac1{x^2}$: the integrand is $e^x(f+f')$, so by Theorem 8.8(1) the answer is $\dfrac{e^x}{x}+C$.
(f) Theorem 8.8(2) with $a=1$, $b=2$: $\ \dfrac{e^x(\sin2x-2\cos2x)}{5}+C$.
Check (a): $\tfrac{d}{dx}\left[e^{2x}\left(\tfrac x2-\tfrac14\right)\right]=2e^{2x}\left(\tfrac x2-\tfrac14\right)+\tfrac12e^{2x}=xe^{2x}$ ✓.

Trigonometric identities. Powers and products of sines and cosines are integrated by first rewriting them with identities (Chapter 14) into terms the table handles:

Squares$\sin^2x=\dfrac{1-\cos2x}{2},\quad\cos^2x=\dfrac{1+\cos2x}{2}$
Cubes$\sin^3x=\dfrac{3\sin x-\sin3x}{4},\quad\cos^3x=\dfrac{3\cos x+\cos3x}{4}$
Products to 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)$
Odd powers and $\sec$, $\tan$In $\sin^mx\cos^nx$ with $m$ or $n$ odd, keep one factor for $du$ and use $\sin^2+\cos^2=1$. Use $\tan^2x=\sec^2x-1$, $\ 1+\cos x=2\cos^2\tfrac x2$.
✏️ Example 5 — Trigonometric identities
Find (a) $\int\sin^2x\,dx$; (b) $\int\sin3x\cos2x\,dx$; (c) $\int\sin^3x\cos^2x\,dx$; (d) $\int\dfrac{dx}{1+\cos x}$; (e) $\int\sec^4x\,dx$.
(a) $\int\tfrac{1-\cos2x}{2}\,dx=\dfrac x2-\dfrac{\sin2x}{4}+C$.
(b) $\sin3x\cos2x=\tfrac12(\sin5x+\sin x)$: $\ -\dfrac{\cos5x}{10}-\dfrac{\cos x}{2}+C$.
(c) The power of $\sin$ is odd: keep one $\sin x$ for $du$. $\sin^3x\cos^2x=(1-\cos^2x)\cos^2x\sin x$; with $u=\cos x$, $du=-\sin x\,dx$: $\ -\int(u^2-u^4)\,du=-\dfrac{\cos^3x}{3}+\dfrac{\cos^5x}{5}+C$.
(d) $1+\cos x=2\cos^2\tfrac x2$: $\ \int\tfrac12\sec^2\tfrac x2\,dx=\tan\dfrac x2+C$.
(e) $\sec^4x=(1+\tan^2x)\sec^2x$; with $u=\tan x$: $\ \tan x+\dfrac{\tan^3x}{3}+C$.

$\displaystyle\int x\cos x\,dx$ equals

Partial Fractions

A rational function is a quotient of polynomials. Every rational function can be integrated: break it into simple pieces whose integrals are logarithms, powers and inverse tangents.

📘 Definition 8.3 — Proper rational function and partial fractions

A rational function $\dfrac{P(x)}{Q(x)}$ is proper if $\deg P\lt\deg Q$, and improper otherwise. An improper one is first divided out: $\dfrac PQ=(\text{quotient})+\dfrac{\text{remainder}}{Q}$, with a proper remainder term. Writing a proper rational function as a sum of simpler fractions with the factors of $Q$ as denominators is its partial fraction decomposition.

📐 Theorem 8.10 — Forms of the partial fractions

Let $\tfrac{P(x)}{Q(x)}$ be proper, with $Q$ factorised into real linear factors and quadratic factors $x^2+bx+c$ with $b^2\lt4c$. Then it can be written in exactly one way as a sum of terms of these forms:

factor of $Q(x)$contributes
$(x-a)$, not repeated$\dfrac{A}{x-a}$
$(x-a)^2$$\dfrac{A}{x-a}+\dfrac{B}{(x-a)^2}$
$x^2+bx+c$ (irreducible)$\dfrac{Bx+C}{x^2+bx+c}$

Cover-up rule: for a non-repeated factor $(x-a)$, $A$ is the value at $x=a$ of $\tfrac{P(x)}{Q(x)}$ with the factor $(x-a)$ covered up. The coefficient of the highest power $\tfrac{1}{(x-a)^k}$ of a repeated factor is found the same way; the rest by comparing coefficients.

The existence and uniqueness of the decomposition is a result of algebra that we use without proof. The cover-up rule follows at once: multiply both sides by $(x-a)$ and put $x=a$ — every other term vanishes. For example, in $\dfrac{x+5}{(x-1)(x+2)}=\dfrac{A}{x-1}+\dfrac{B}{x+2}$, covering $(x-1)$ and putting $x=1$ gives $A=\tfrac{6}{3}=2$, and covering $(x+2)$ and putting $x=-2$ gives $B=\tfrac{3}{-3}=-1$.

✏️ Example 6 — Partial fractions
Find (a) $\int\dfrac{x+5}{(x-1)(x+2)}\,dx$; (b) $\int\dfrac{3x+1}{(x-1)^2(x+3)}\,dx$; (c) $\int\dfrac{dx}{x(x^2+1)}$; (d) $\int\dfrac{x^3}{x^2-1}\,dx$.
In (b), $\dfrac{3x+1}{(x-1)^2(x+3)}=\dfrac{A}{x-1}+\dfrac{B}{(x-1)^2}+\dfrac{C}{x+3}$. Find $A$:
(a) From the text, $A=2$, $B=-1$: $\ 2\ln|x-1|-\ln|x+2|+C$.
(b) constants Cover-up: $B=\left.\dfrac{3x+1}{x+3}\right|_{x=1}=\dfrac44=1$, $\ C=\left.\dfrac{3x+1}{(x-1)^2}\right|_{x=-3}=\dfrac{-8}{16}=-\dfrac12$. Clearing denominators, $3x+1=A(x-1)(x+3)+B(x+3)+C(x-1)^2$; the coefficient of $x^2$ gives $0=A+C$, so $A=\tfrac12$.
(b) integrate $\ \dfrac12\ln|x-1|-\dfrac{1}{x-1}-\dfrac12\ln|x+3|+C$ (since $\int(x-1)^{-2}\,dx=-(x-1)^{-1}$).
(c) $\dfrac{1}{x(x^2+1)}=\dfrac Ax+\dfrac{Bx+C}{x^2+1}$. Cover-up: $A=1$. Then $1=(x^2+1)+(Bx+C)x$ forces $B=-1$, $C=0$. So the integral is $\ln|x|-\tfrac12\ln(x^2+1)+C$.
(d) Improper — divide first: $x^3=x(x^2-1)+x$, so $\dfrac{x^3}{x^2-1}=x+\dfrac{x}{x^2-1}$, and the integral is $\dfrac{x^2}{2}+\dfrac12\ln|x^2-1|+C$.
Check (b) at $x=0$: $\tfrac{A}{-1}+\tfrac{B}{1}+\tfrac C3=-\tfrac12+1-\tfrac16=\tfrac13$, and $\tfrac{3(0)+1}{(1)(3)}=\tfrac13$ ✓.
⚠️ JEE Main traps

1. The constant and the modulus. Every indefinite integral needs $+C$, and $\int\tfrac{dx}{x}=\ln|x|+C$ — the modulus keeps the formula valid for $x\lt0$. The power rule $\tfrac{x^{n+1}}{n+1}$ fails for $n=-1$.

2. No product or quotient rule. $\int f\,g\,dx\ne\int f\,dx\cdot\int g\,dx$ and $\int\tfrac fg\,dx\ne\tfrac{\int f}{\int g}$. Products need substitution or parts; quotients need substitution, partial fractions or a standard form.

3. Converting $dx$. After $u=g(x)$ you must replace $dx$ by $\tfrac{du}{g'(x)}$, and the factor $g'(x)$ must cancel. $\int\tfrac{dx}{3x+2}=\tfrac13\ln|3x+2|+C$, not $\ln|3x+2|+C$.

4. Partial fractions. Divide first if the fraction is improper; a repeated factor $(x-a)^2$ needs both $\tfrac{A}{x-a}$ and $\tfrac{B}{(x-a)^2}$; an irreducible quadratic needs a linear numerator $Bx+C$.

5. Different-looking answers. $\int\sin x\cos x\,dx$ is $\tfrac12\sin^2x+C$, or $-\tfrac12\cos^2x+C$, or $-\tfrac14\cos2x+C$ — all correct, differing by constants. In an MCQ, differentiate the options rather than comparing their looks.

✏️ Example 7 — Hard example: three JEE Main favourites
Find (a) $\int\dfrac{x^2+1}{x^4+1}\,dx$ on $x\gt0$; (b) $\int\dfrac{dx}{x(x^4+1)}$; (c) $\int\dfrac{dx}{\sin x+\sqrt3\cos x}$.
(b) has the form $k\ln\dfrac{x^4}{x^4+1}+C$. Find $k$:
(a) idea Divide the numerator and the denominator by $x^2$: $\dfrac{1+\frac1{x^2}}{x^2+\frac1{x^2}}=\dfrac{1+\frac1{x^2}}{\left(x-\frac1x\right)^2+2}$, and $1+\tfrac1{x^2}$ is the derivative of $x-\tfrac1x$.
(a) finish With $u=x-\tfrac1x$: $\int\dfrac{du}{u^2+(\sqrt2)^2}=\dfrac1{\sqrt2}\tan^{-1}\dfrac{u}{\sqrt2}=\dfrac1{\sqrt2}\tan^{-1}\dfrac{x^2-1}{\sqrt2\,x}+C$. (With $x^2-1$ in the numerator, $u=x+\tfrac1x$ and form (2) would do the same job.)
(b) $\displaystyle\int\frac{x^3\,dx}{x^4(x^4+1)}$; with $u=x^4$, $du=4x^3\,dx$: $\displaystyle\frac14\int\frac{du}{u(u+1)}=\frac14\int\left(\frac1u-\frac1{u+1}\right)du=\frac14\ln\frac{x^4}{x^4+1}+C$. So $k=\tfrac14$.
(c) $\sin x+\sqrt3\cos x=2\left(\tfrac12\sin x+\tfrac{\sqrt3}2\cos x\right)=2\sin\left(x+\tfrac\pi3\right)$. So the integral is $\tfrac12\int\operatorname{cosec}\left(x+\tfrac\pi3\right)dx=\dfrac12\ln\left|\tan\left(\dfrac x2+\dfrac\pi6\right)\right|+C$.
⏱ Shortcut $a\sin x+b\cos x=\sqrt{a^2+b^2}\,\sin(x+\alpha)$ turns $\int\tfrac{dx}{a\sin x+b\cos x}$ into a $\operatorname{cosec}$ integral in one line. In (a), always try "divide by $x^2$" when the numerator and denominator are symmetric in $x$ and $\tfrac1x$.

In $\dfrac{2x+3}{(x-1)(x+2)}=\dfrac{A}{x-1}+\dfrac{B}{x+2}$, the value of $A$ is

Exercises

Give every indefinite integral with its constant $+C$, and state where a logarithm needs a modulus. Where a part asks for a number, give it to 2 decimal places or as an exact fraction.

I
Antiderivatives and the table of fundamental integrals.
  • 1 $\int(4x^3-6x+7)\,dx$
  • 2 $\int\left(\sqrt x+\dfrac1{\sqrt x}\right)^2dx$
  • 3 $\int\dfrac{x^3-8}{x-2}\,dx$
  • 4 $\int\dfrac{\sin x}{\cos^2x}\,dx$
  • 5 $\int\dfrac{1-\cos2x}{1+\cos2x}\,dx$
  • 6 $\int\dfrac{e^{2x}-1}{e^x-1}\,dx$
  • 7 $\int\cot^2x\,dx$
  • 8 $f'(x)=12x^2-6x$ and $f(1)=3$. Find $f(2)$.
  • 9 A particle moving on a line has velocity $v(t)=3t^2-4t+2$ m/s and is at $s=1$ m when $t=0$. Find its position at $t=3$ s.
  • 10 The gradient of a curve at $(x,y)$, $x\gt0$, is $\tfrac1x+2x$, and the curve passes through $(1,3)$. Find $y$ when $x=e$.
1 $x^4-3x^2+7x+C$.
2 $\left(\sqrt x+\tfrac1{\sqrt x}\right)^2=x+2+\tfrac1x$: $\ \tfrac{x^2}{2}+2x+\ln x+C$ ($x\gt0$ here, so no modulus is needed).
3 $x^3-8=(x-2)(x^2+2x+4)$: $\ \tfrac{x^3}{3}+x^2+4x+C$ (for $x\ne2$).
4 $\tfrac{\sin x}{\cos^2x}=\sec x\tan x$: $\ \sec x+C$.
5 $\tfrac{2\sin^2x}{2\cos^2x}=\tan^2x=\sec^2x-1$: $\ \tan x-x+C$.
6 $e^{2x}-1=(e^x-1)(e^x+1)$: $\ \int(e^x+1)\,dx=e^x+x+C$ ($x\ne0$).
7 $\cot^2x=\operatorname{cosec}^2x-1$: $\ -\cot x-x+C$.
8 $f(x)=4x^3-3x^2+C$; $f(1)=1+C=3$ gives $C=2$; $f(2)=32-12+2=22$.
9 $s(t)=t^3-2t^2+2t+C$ with $s(0)=1$: $C=1$. $s(3)=27-18+6+1=16$ m.
10 $y=\ln x+x^2+C$; $3=0+1+C$ gives $C=2$; at $x=e$: $y=1+e^2+2=e^2+3\approx10.39$.
II
Substitution and the standard forms of Theorem 8.6.
  • 1 $\int(3x-2)^5\,dx$, in the form $k(3x-2)^6+C$.
  • 2 $\int xe^{-x^2}\,dx$
  • 3 $\int\dfrac{\cos x}{(1+\sin x)^2}\,dx$
  • 4 $\int\dfrac{\sec^2x}{3+\tan x}\,dx$
  • 5 $\int\dfrac{(\sin^{-1}x)^2}{\sqrt{1-x^2}}\,dx$
  • 6 $\int\dfrac{dx}{9x^2+4}$, in the form $k\tan^{-1}\tfrac{3x}{2}+C$.
  • 7 $\int\dfrac{dx}{x^2-6x+5}$, in the form $k\ln\left|\tfrac{x-5}{x-1}\right|+C$.
  • 8 $\int\dfrac{dx}{\sqrt{8+2x-x^2}}$
  • 9 $\int\dfrac{2x+5}{x^2+4x+8}\,dx$
  • 10 $\int\dfrac{dx}{\sqrt{x^2+4x+13}}$
1 Linear inside: $\tfrac13\cdot\tfrac{(3x-2)^6}{6}=\tfrac{(3x-2)^6}{18}+C$, so $k=\tfrac1{18}$.
2 $u=-x^2$, $du=-2x\,dx$: $\ -\tfrac12e^{-x^2}+C$.
3 $u=1+\sin x$: $\int u^{-2}\,du=-\dfrac{1}{1+\sin x}+C$.
4 Derivative over function: $\ln|3+\tan x|+C$.
5 $u=\sin^{-1}x$, $du=\tfrac{dx}{\sqrt{1-x^2}}$: $\ \tfrac13(\sin^{-1}x)^3+C$.
6 $\tfrac19\int\dfrac{dx}{x^2+(2/3)^2}=\tfrac19\cdot\tfrac32\tan^{-1}\tfrac{3x}{2}=\tfrac16\tan^{-1}\tfrac{3x}2+C$.
7 $(x-3)^2-2^2$; form (2) with $X=x-3$, $a=2$: $\ \tfrac14\ln\left|\tfrac{x-5}{x-1}\right|+C$.
8 $8+2x-x^2=9-(x-1)^2$: $\ \sin^{-1}\tfrac{x-1}{3}+C$.
9 $2x+5=(2x+4)+1$: $\ \ln(x^2+4x+8)+\int\dfrac{dx}{(x+2)^2+4}=\ln(x^2+4x+8)+\tfrac12\tan^{-1}\tfrac{x+2}{2}+C$.
10 $(x+2)^2+3^2$; form (5): $\ \ln\left|x+2+\sqrt{x^2+4x+13}\right|+C$.
III
Integration by parts and trigonometric identities.
  • 1 $\int xe^{3x}\,dx$, in the form $e^{3x}(Ax+B)+C$.
  • 2 $\int x\ln x\,dx$
  • 3 $\int x\sec^2x\,dx$
  • 4 $\int\sin^{-1}x\,dx$
  • 5 $\int e^x(\tan x+\sec^2x)\,dx$
  • 6 $\int e^{2x}\cos x\,dx$, in the form $e^{2x}(p\cos x+q\sin x)+C$.
  • 7 $\int\sqrt{4-x^2}\,dx$
  • 8 $\int\cos^23x\,dx$
  • 9 $\int\sin x\sin3x\,dx$
  • 10 $\int\cos^5x\,dx$, in the form $\sin x+a\sin^3x+b\sin^5x+C$.
1 $u=x$, $v=\tfrac13e^{3x}$: $\ \tfrac x3e^{3x}-\tfrac19e^{3x}+C$, so $A=\tfrac13$, $B=-\tfrac19$.
2 $u=\ln x$ (L before A), $v=\tfrac{x^2}2$: $\ \tfrac{x^2}{2}\ln x-\int\tfrac x2\,dx=\tfrac{x^2}{2}\ln x-\tfrac{x^2}{4}+C$.
3 $u=x$, $v=\tan x$: $\ x\tan x-\int\tan x\,dx=x\tan x-\ln|\sec x|+C$.
4 $u=\sin^{-1}x$, $v=x$: $\ x\sin^{-1}x-\int\tfrac{x}{\sqrt{1-x^2}}\,dx=x\sin^{-1}x+\sqrt{1-x^2}+C$.
5 $f=\tan x$, $f'=\sec^2x$; Theorem 8.8(1): $\ e^x\tan x+C$.
6 Theorem 8.8(2) with $a=2$, $b=1$: $\ \tfrac{e^{2x}(2\cos x+\sin x)}{5}+C$, so $p=\tfrac25$, $q=\tfrac15$.
7 Theorem 8.9 with $a=2$: $\ \tfrac x2\sqrt{4-x^2}+2\sin^{-1}\tfrac x2+C$.
8 $\cos^23x=\tfrac{1+\cos6x}{2}$: $\ \tfrac x2+\tfrac{\sin6x}{12}+C$.
9 $\sin x\sin3x=\tfrac12(\cos2x-\cos4x)$: $\ \tfrac{\sin2x}{4}-\tfrac{\sin4x}{8}+C$.
10 $\cos^5x=(1-\sin^2x)^2\cos x$; with $u=\sin x$: $\int(1-2u^2+u^4)\,du=\sin x-\tfrac23\sin^3x+\tfrac15\sin^5x+C$, so $a=-\tfrac23$, $b=\tfrac15$.
IV
Partial fractions and mixed problems.
  • 1 $\int\dfrac{dx}{(x+1)(x+3)}$
  • 2 $\int\dfrac{x^2+1}{(x-1)(x-2)(x-3)}\,dx$
  • 3 $\int\dfrac{x}{(x-1)^2(x+1)}\,dx$, in the form $k\ln\left|\tfrac{x-1}{x+1}\right|+\tfrac{m}{x-1}+C$.
  • 4 $\int\dfrac{x^2+x+1}{(x+1)(x^2+1)}\,dx$
  • 5 $\int\dfrac{x^2}{x^2+4}\,dx$
  • 6 $\int\dfrac{e^x}{(e^x+1)(e^x+2)}\,dx$
  • 7 $\int\dfrac{dx}{x(x^3+1)}$
  • 8 $\int\dfrac{dx}{e^x+1}$
  • 9 A reservoir that is empty at $t=0$ fills at the rate $\dfrac{dV}{dt}=\dfrac{200}{(t+1)(t+2)}$ thousand litres per day. Find $V(t)$ and the volume after $2$ days.
1 $\tfrac{1}{(x+1)(x+3)}=\tfrac12\left(\tfrac1{x+1}-\tfrac1{x+3}\right)$: $\ \tfrac12\ln\left|\tfrac{x+1}{x+3}\right|+C$.
2 Cover-up at $x=1,2,3$: $A=\tfrac{2}{(-1)(-2)}=1$, $B=\tfrac{5}{(1)(-1)}=-5$, $C=\tfrac{10}{(2)(1)}=5$: $\ \ln|x-1|-5\ln|x-2|+5\ln|x-3|+C$.
3 $\tfrac{A}{x-1}+\tfrac{B}{(x-1)^2}+\tfrac{C}{x+1}$: $B=\tfrac12$, $C=\tfrac{-1}{4}$, $A=-C=\tfrac14$. Integral: $\tfrac14\ln\left|\tfrac{x-1}{x+1}\right|-\tfrac{1}{2(x-1)}+C$, so $k=\tfrac14$, $m=-\tfrac12$.
4 $A=\tfrac{1-1+1}{2}=\tfrac12$ at $x=-1$; then $x^2+x+1-\tfrac12(x^2+1)=\tfrac12(x+1)^2$, so $Bx+C=\tfrac12(x+1)$. Integral: $\tfrac12\ln|x+1|+\tfrac14\ln(x^2+1)+\tfrac12\tan^{-1}x+C$.
5 $\tfrac{x^2}{x^2+4}=1-\tfrac{4}{x^2+4}$: $\ x-2\tan^{-1}\tfrac x2+C$.
6 $u=e^x$: $\int\tfrac{du}{(u+1)(u+2)}=\ln\tfrac{u+1}{u+2}$: $\ \ln\dfrac{e^x+1}{e^x+2}+C$.
7 Multiply by $\tfrac{x^2}{x^2}$, $u=x^3$: $\tfrac13\int\tfrac{du}{u(u+1)}=\tfrac13\ln\left|\dfrac{x^3}{x^3+1}\right|+C$.
8 $\tfrac{1}{e^x+1}=\tfrac{e^{-x}}{1+e^{-x}}$, a "derivative over function" with a minus sign: $\ -\ln(1+e^{-x})+C=x-\ln(1+e^x)+C$.
9 $\tfrac{200}{(t+1)(t+2)}=\tfrac{200}{t+1}-\tfrac{200}{t+2}$, so $V=200\ln\tfrac{t+1}{t+2}+C$; $V(0)=0$ gives $C=200\ln2$: $\ V(t)=200\ln\dfrac{2(t+1)}{t+2}$. $V(2)=200\ln1.5\approx81.09$ thousand litres. (As $t\to\infty$, $V\to200\ln2\approx138.6$: the inflow dies away.)
🎯 Exam corner JEE Main · MCQJEE Main · Numerical

E1. JEE Main · MCQ $\displaystyle\int e^x\,\frac{1+x\ln x}{x}\,dx$ ($x\gt0$) is equal to (A) $\dfrac{e^x}{x}+C$ (B) $e^x\ln x+C$ (C) $xe^x\ln x+C$ (D) $e^x\left(\ln x+\dfrac1x\right)+C$

Spot the form $\dfrac{1+x\ln x}{x}=\ln x+\dfrac1x=f(x)+f'(x)$ with $f(x)=\ln x$.
Theorem 8.8(1) $\int e^x(f+f')\,dx=e^xf(x)+C$.
Answer (B) $e^x\ln x+C$.
⏱ Shortcut (D) is the integrand's bracket, not the answer. Differentiating (B) takes ten seconds: $e^x\ln x+\tfrac{e^x}{x}$ ✓.

E2. JEE Main · Numerical If $\displaystyle\int\frac{dx}{x^2+2x+10}=A\tan^{-1}\frac{x+1}{B}+C$ with $B\gt0$, find $\dfrac1A+B$. Give the answer to the nearest integer.

Complete the square $x^2+2x+10=(x+1)^2+3^2$.
Form (1) $\tfrac13\tan^{-1}\tfrac{x+1}{3}+C$: $A=\tfrac13$, $B=3$.
Answer $\tfrac1A+B=3+3=6$.

E3. JEE Main · MCQ $\displaystyle\int\frac{\sin2x}{\sin^4x+\cos^4x}\,dx$ is equal to (A) $\tfrac12\tan^{-1}(\tan^2x)+C$ (B) $2\tan^{-1}(\tan^2x)+C$ (C) $\tfrac12\ln(\sin^4x+\cos^4x)+C$ (D) $\tan^{-1}(\tan^2x)+C$

Divide by $\cos^4x$ $\dfrac{2\sin x\cos x}{\sin^4x+\cos^4x}=\dfrac{2\tan x\sec^2x}{\tan^4x+1}$.
Substitute $u=\tan^2x$, $du=2\tan x\sec^2x\,dx$: $\int\dfrac{du}{1+u^2}=\tan^{-1}u$.
Answer (D) $\tan^{-1}(\tan^2x)+C$.
⏱ Shortcut In $\sin^m x\cos^n x$-type denominators of even total degree, dividing by $\cos^{m+n}x$ turns everything into $\tan x$ and $\sec^2x\,dx$.

E4. JEE Main · Numerical $\displaystyle\int\frac{5x+1}{(x+1)(x-2)}\,dx=A\ln|x+1|+B\ln|x-2|+C$. Find $3(B-A)$. Give the answer to the nearest integer.

Cover-up $A=\left.\tfrac{5x+1}{x-2}\right|_{x=-1}=\tfrac{-4}{-3}=\tfrac43$; $\ B=\left.\tfrac{5x+1}{x+1}\right|_{x=2}=\tfrac{11}{3}$.
Check $A+B=5$, the coefficient of $x$ in the numerator ✓.
Answer $3\left(\tfrac{11}3-\tfrac43\right)=7$.

E5. JEE Main · MCQ $\displaystyle\int\frac{\cos2x}{(\sin x+\cos x)^2}\,dx$ is equal to (A) $\ln|\sin x-\cos x|+C$ (B) $-\ln|\sin x+\cos x|+C$ (C) $\ln|\sin x+\cos x|+C$ (D) $\ln|\cos2x|+C$

Factorise $\cos2x=(\cos x-\sin x)(\cos x+\sin x)$, so the integrand is $\dfrac{\cos x-\sin x}{\sin x+\cos x}$.
Derivative over function $(\sin x+\cos x)'=\cos x-\sin x$ is the numerator.
Answer (C) $\ln|\sin x+\cos x|+C$.

E6. JEE Main · Numerical $\displaystyle\int e^x(x^3+3x^2+2x+2)\,dx=e^xg(x)+C$, where $g$ is a polynomial. Find $g(2)$. Give the answer to the nearest integer.

Theorem 8.8(1) We need $g+g'=x^3+3x^2+2x+2$. Try $g=x^3+ax^2+bx+c$: $g+g'=x^3+(a+3)x^2+(b+2a)x+(c+b)$.
Compare $a+3=3$, $b+2a=2$, $c+b=2$: $a=0$, $b=2$, $c=0$. So $g(x)=x^3+2x$.
Answer $g(2)=8+4=12$.
⏱ Shortcut Split the bracket as $(x^3+2x)+(3x^2+2)$ — a function plus its derivative — by eye.
🔬 Research–Teaching NexusResearch-tutored · optional, about 45 minutes

Research question. A phone, a fitness band or a drone measures acceleration, not position. Integrating twice should give position — so why do inertial navigation systems drift, and how fast does the error grow?

Why it matters. Inertial measurement units guide aircraft through cloud, trains through tunnels and phones indoors where satellite signals fail; sports scientists use them to track sprinters and bowlers. Each integration introduces a constant that must come from an initial condition, and any small constant error in the measured acceleration is integrated too.

What to do.

  1. Take the model acceleration $a(t)=2\cos t$ m/s² for a device starting at rest at position $0$. Integrate twice, using the initial conditions to fix both constants, and find $s(t)$.
  2. Suppose the sensor has a constant bias $b=0.05$ m/s², so it reports $2\cos t+b$. Integrate twice again with the same initial conditions. Show that the position error is $\tfrac12bt^2$.
  3. Tabulate the error at $t=10$, $60$ and $600$ s. After how long is it larger than $1$ m? Larger than $1$ km?
  4. Now suppose instead that the initial velocity is wrongly entered as $0.1$ m/s. How does that error grow? Compare the two growth laws.

Tools: Paper and a calculator, or a spreadsheet that integrates numerically (cumulative sums of $a\,\Delta t$) so that you can compare with your exact answers.

Hand in: Your exact $s(t)$ with and without the bias, the error table, and a short paragraph explaining why real systems "reset" their position from GPS or from a known landmark as often as they can.

Going further. Rotation sensors (gyroscopes) also drift. An angle error $\varepsilon$ makes the device think part of gravity, $g\sin\varepsilon$, is horizontal acceleration. With $\varepsilon=0.1^\circ$, what position error builds up in one minute?

Instructor note: the key point is that each integration adds one constant fixed by one initial condition, and that a constant error in the integrand grows linearly after one integration and quadratically after two (error in velocity $bt$, in position $\tfrac12bt^2$). With $b=0.05$ the error passes $1$ m near $t\approx6.3$ s and $1$ km near $t\approx200$ s. In the extension, $g\sin0.1^\circ\approx0.017$ m/s², giving about $31$ m in a minute.

🧪 Self-check quiz

0/5 correct

Q1. $F$ is an antiderivative of $f$ on an interval. Which of these is also an antiderivative of $f$ there?

Q2. $\displaystyle\int\frac{dx}{4+x^2}$ equals

Q3. $\displaystyle\int xe^x\,dx$ equals

Q4. The best first step for $\displaystyle\int\frac{x^2+1}{x^2-1}\,dx$ is to

Q5. Which of these is not a correct value of $\displaystyle\int2\sin x\cos x\,dx$?