by, Subhajit Gorai
Date: 20/07/2026

A Treatise on Integral and Vector Calculus

Preface

This treatise is written for the student who has already mastered the mechanics of elementary integration and now wishes to acquire the deeper structural understanding demanded by JEE Advanced, the Indian and international Mathematical Olympiads, and the entrance examinations of the Indian Statistical Institute and Chennai Mathematical Institute. Such examinations rarely reward the candidate who merely knows how to integrate; they reward the candidate who recognises, within seconds, which of a dozen possible manoeuvres will collapse an intractable-looking expression into a line or two of algebra.

Accordingly, this guide is organised not as a catalogue of formulas to be memorised in isolation, but as a progression of ideas. Each Part develops a family of related techniques, proves the central results in full wherever the proof illuminates the technique itself, and closes with a Challenge Problem substantial enough to reward careful study. The reader is assumed to be comfortable with differential calculus, elementary trigonometric identities, and the language of limits; nothing beyond this is presupposed.

A word on the proofs included here. Some — the Fundamental Theorem of Calculus, the reflection property of definite integrals, the Beta–Gamma bridge, Green's Theorem, the Legendre Duplication Formula — are given in full, because the argument is short and the insight gained is worth far more than the few lines it costs. One result, Euler's Reflection Formula for the Gamma function, is stated and used freely, with only the method of proof (contour integration) indicated; a complete derivation requires complex analysis lying outside the scope of a calculus treatise. The reader should regard this as an honest signpost rather than an evasion.


Contents

  • Part I. The Foundations of Integration
  • Part II. Symmetry in Definite Integration
  • Part III. Tactical Substitutions
  • Part IV. Feynman's Trick — Differentiation Under the Integral Sign
  • Part V. The Weierstrass Substitution
  • Part VI. The Gamma and Beta Functions
  • Part VII. Multiple Integrals — Double, Triple, and Beyond
  • Part VIII. Vector Calculus — Green, Stokes, and Gauss
  • Appendix A. Master Formula Sheet
  • Closing Remarks — A Problem-Solver's Philosophy

Conventions

Throughout, CC denotes an arbitrary constant of integration. All functions are assumed sufficiently well-behaved — continuous, differentiable, or integrable, as the manipulation demands — for the stated step to be legitimate; this is remarked upon explicitly only where the distinction is itself the point, as in Part IV. The symbol \blacksquare closes a proof.


Part I. The Foundations of Integration

1.1 The Fundamental Theorem of Calculus

Before any technique of integration can be justified, one must know why integration and differentiation are inverse operations at all. This is the content of the Fundamental Theorem of Calculus, in two parts.

Theorem (FTC, Part 1). Let ff be continuous on [a,b][a,b], and define F(x)=axf(t)dtF(x)=\int_a^xf(t)\,dt. Then FF is differentiable on (a,b)(a,b) and F(x)=f(x)F'(x)=f(x).

Proof. For h0h\neq0 small enough that x+h(a,b)x+h\in(a,b),
F(x+h)F(x)h=1hxx+hf(t)dt.\frac{F(x+h)-F(x)}{h}=\frac1h\int_x^{x+h}f(t)\,dt.
By the Mean Value Theorem for Integrals, there exists a point cc between xx and x+hx+h such that xx+hf(t)dt=f(c)h\int_x^{x+h}f(t)\,dt=f(c)\cdot h, so the difference quotient equals f(c)f(c) exactly. As h0h\to0, cxc\to x, and since ff is continuous, f(c)f(x)f(c)\to f(x). Hence F(x)=limh0f(c)=f(x)F'(x)=\lim_{h\to0}f(c)=f(x). \blacksquare

Theorem (FTC, Part 2 — Evaluation). If ff is continuous on [a,b][a,b] and GG is any antiderivative of ff, then
abf(x)dx=G(b)G(a).\int_a^bf(x)\,dx=G(b)-G(a).

Proof. Let F(x)=axf(t)dtF(x)=\int_a^xf(t)\,dt as above; by Part 1, F=f=GF'=f=G', so FGF-G has zero derivative and is therefore constant on [a,b][a,b]: F(x)=G(x)+kF(x)=G(x)+k. Since F(a)=0F(a)=0, k=G(a)k=-G(a). Setting x=bx=b gives F(b)=abf(t)dt=G(b)G(a)F(b)=\int_a^bf(t)\,dt=G(b)-G(a). \blacksquare

This second statement is used in every evaluation of a definite integral; the first is what justifies calling an antiderivative an antiderivative at all. Nearly every result in this treatise — from the reflection property of Part II to the Divergence Theorem of Part VIII — is, at bottom, some avatar of a single idea: the behaviour of a function on the interior of a region is captured entirely by what happens on its boundary.

1.2 The Table of Elementary Primitives

f(x)f(x)f(x)dx\displaystyle\int f(x)\,dx
xn (n1)x^n\ (n\neq-1)xn+1n+1+C\dfrac{x^{n+1}}{n+1}+C
x1x^{-1}lnx+C\ln\lvert x\rvert+C
exe^xex+Ce^x+C
axa^xaxlna+C\dfrac{a^x}{\ln a}+C
sinx\sin xcosx+C-\cos x+C
cosx\cos xsinx+C\sin x+C
sec2x\sec^2xtanx+C\tan x+C
tanx\tan xlnsecx+C\ln\lvert\sec x\rvert+C
secx\sec xlnsecx+tanx+C\ln\lvert\sec x+\tan x\rvert+C
1a2x2\dfrac1{\sqrt{a^2-x^2}}arcsin ⁣(xa)+C\arcsin\!\left(\dfrac xa\right)+C
1a2+x2\dfrac1{a^2+x^2}1aarctan ⁣(xa)+C\dfrac1a\arctan\!\left(\dfrac xa\right)+C
1xx2a2\dfrac1{x\sqrt{x^2-a^2}}1aarcsecxa+C\dfrac1a\,\operatorname{arcsec}\left\lvert\dfrac xa\right\rvert+C
1x2±a2\dfrac1{\sqrt{x^2\pm a^2}}lnx+x2±a2+C\ln\left\lvert x+\sqrt{x^2\pm a^2}\right\rvert+C

These entries, together with the two rules below, generate essentially every "routine" indefinite integral a student meets before specialised technique becomes necessary.

1.3 Integration by Substitution

Rule. If u=g(x)u=g(x) is differentiable and ff is continuous on the range of gg, then
f(g(x))g(x)dx=f(u)du.\int f(g(x))\,g'(x)\,dx=\int f(u)\,du.

Proof. Let FF be an antiderivative of ff. By the Chain Rule, ddx[F(g(x))]=F(g(x))g(x)=f(g(x))g(x)\dfrac{d}{dx}\big[F(g(x))\big]=F'(g(x))\,g'(x)=f(g(x))\,g'(x). Hence F(g(x))F(g(x)) is an antiderivative of f(g(x))g(x)f(g(x))g'(x), which is the assertion. \blacksquare

Substitution is nothing more than the Chain Rule read from right to left. Its entire difficulty in practice lies in seeing the pairing f(g(x))g(x)f(g(x))g'(x) inside a given integrand — exactly the skill Parts III and V are devoted to sharpening.

1.4 Integration by Parts

Rule. udv=uvvdu.\displaystyle\int u\,dv=uv-\int v\,du.

Proof. By the Product Rule, (uv)=uv+uv(uv)'=u'v+uv'. Integrating both sides, uv=uvdx+uvdxuv=\int u'v\,dx+\int uv'\,dx, and rearranging gives the rule. \blacksquare

The traditional mnemonic ILATE (Inverse trigonometric, Logarithmic, Algebraic, Trigonometric, Exponential, in decreasing priority) remains a reliable first guess for which factor to differentiate.

Example. xlnxdx\displaystyle\int x\ln x\,dx. Take u=lnx, dv=xdxu=\ln x,\ dv=x\,dx, so du=1xdx, v=x22du=\frac1x\,dx,\ v=\frac{x^2}2:
xlnxdx=x22lnxx221xdx=x22lnxx24+C.\int x\ln x\,dx=\frac{x^2}2\ln x-\int\frac{x^2}2\cdot\frac1x\,dx=\frac{x^2}2\ln x-\frac{x^2}4+C.

1.5 A Named Trick: The Exponential Derivative-Sum Rule

A pattern recurs often enough in JEE Advanced integrals to deserve its own statement.

Rule. ex[f(x)+f(x)]dx=exf(x)+C.\displaystyle\int e^x\big[f(x)+f'(x)\big]\,dx=e^xf(x)+C.

Proof. Immediate from the Product Rule: ddx[exf(x)]=exf(x)+exf(x)\dfrac{d}{dx}\big[e^xf(x)\big]=e^xf(x)+e^xf'(x). \blacksquare

The entire difficulty of applying this rule lies in massaging a given integrand into the form ex[f+f]e^x[f+f'] — precisely what makes the following problem a genuine test of algebraic fluency rather than of the rule itself.

Challenge Problem. Evaluate I=ex(1+sinx1+cosx)dx.\displaystyle I=\int e^x\left(\frac{1+\sin x}{1+\cos x}\right)dx.

Solution. Using the half-angle identities 1+cosx=2cos2x21+\cos x=2\cos^2\frac x2 and sinx=2sinx2cosx2\sin x=2\sin\frac x2\cos\frac x2,
1+sinx1+cosx=11+cosx+sinx1+cosx=12cos2x2+2sinx2cosx22cos2x2=12sec2x2+tanx2.\frac{1+\sin x}{1+\cos x}=\frac1{1+\cos x}+\frac{\sin x}{1+\cos x}=\frac1{2\cos^2\frac x2}+\frac{2\sin\frac x2\cos\frac x2}{2\cos^2\frac x2}=\frac12\sec^2\frac x2+\tan\frac x2.
Set f(x)=tanx2f(x)=\tan\frac x2; then f(x)=12sec2x2f'(x)=\frac12\sec^2\frac x2, so the bracketed expression is exactly f(x)+f(x)f(x)+f'(x). Therefore
I=extanx2+C.I=e^x\tan\frac x2+C.
The entire difficulty of this problem — routinely rated among the harder single-variable integrals set at this level — was hidden in recognising the disguised form f+ff+f' underneath a quotient of trigonometric functions; once seen, the calculus is a single line.


Part II. Symmetry in Definite Integration

Where Part I concerned finding an antiderivative, this Part concerns evaluating a definite integral without ever finding one, by exploiting the symmetry of the interval of integration. Problem for problem, this is probably the single most heavily tested idea in the definite-integral portion of JEE Advanced.

2.1 King's Rule (The Reflection Property)

Theorem. abf(x)dx=abf(a+bx)dx.\displaystyle\int_a^bf(x)\,dx=\int_a^bf(a+b-x)\,dx.

Proof. Substitute u=a+bxu=a+b-x, so du=dxdu=-dx; when x=ax=a, u=bu=b, and when x=bx=b, u=au=a. Then
abf(x)dx=baf(a+bu)(du)=abf(a+bu)du,\int_a^bf(x)\,dx=\int_b^af(a+b-u)(-du)=\int_a^bf(a+b-u)\,du,
and relabelling uxu\to x completes the proof. \blacksquare

The power of this innocuous identity is that it lets one add an integral to itself in a transformed guise, often producing a quantity that collapses completely.

Example. Evaluate I=0π/2sinxsinx+cosxdx\displaystyle I=\int_0^{\pi/2}\frac{\sin x}{\sin x+\cos x}\,dx.

Apply King's Rule with xπ2xx\to\frac\pi2-x:
I=0π/2sin(π2x)sin(π2x)+cos(π2x)dx=0π/2cosxcosx+sinxdx.I=\int_0^{\pi/2}\frac{\sin\left(\frac\pi2-x\right)}{\sin\left(\frac\pi2-x\right)+\cos\left(\frac\pi2-x\right)}\,dx=\int_0^{\pi/2}\frac{\cos x}{\cos x+\sin x}\,dx.
Adding this to the original expression for II:
2I=0π/2sinx+cosxsinx+cosxdx=0π/21dx=π2,so I=π4.2I=\int_0^{\pi/2}\frac{\sin x+\cos x}{\sin x+\cos x}\,dx=\int_0^{\pi/2}1\,dx=\frac\pi2,\qquad\text{so }I=\frac\pi4.

2.2 Odd and Even Functions; Periodicity

  • Odd integrand: if f(x)=f(x)f(-x)=-f(x), then aaf(x)dx=0\displaystyle\int_{-a}^af(x)\,dx=0.
  • Even integrand: if f(x)=f(x)f(-x)=f(x), then aaf(x)dx=20af(x)dx\displaystyle\int_{-a}^af(x)\,dx=2\int_0^af(x)\,dx.
  • Periodicity: if f(x+T)=f(x)f(x+T)=f(x) for all xx, then aa+Tf(x)dx\displaystyle\int_a^{a+T}f(x)\,dx is independent of aa, and 0nTf(x)dx=n0Tf(x)dx\displaystyle\int_0^{nT}f(x)\,dx=n\int_0^Tf(x)\,dx for every positive integer nn.

These follow from the same substitution technique as King's Rule and are left as routine exercises; their value lies entirely in recognising the relevant symmetry, since a full computation is then never necessary.

Challenge Problem. Evaluate I=0πxsinx1+cos2xdx\displaystyle I=\int_0^\pi\frac{x\sin x}{1+\cos^2x}\,dx.

Solution. Apply King's Rule with xπxx\to\pi-x. Since sin(πx)=sinx\sin(\pi-x)=\sin x and cos2(πx)=cos2x\cos^2(\pi-x)=\cos^2x,
I=0π(πx)sinx1+cos2xdx=π0πsinx1+cos2xdx  I,I=\int_0^\pi\frac{(\pi-x)\sin x}{1+\cos^2x}\,dx=\pi\int_0^\pi\frac{\sin x}{1+\cos^2x}\,dx\ -\ I,
so
2I=π0πsinx1+cos2xdx.2I=\pi\int_0^\pi\frac{\sin x}{1+\cos^2x}\,dx.
For the remaining integral, substitute u=cosx, du=sinxdxu=\cos x,\ du=-\sin x\,dx; as xx runs from 00 to π\pi, uu runs from 11 to 1-1:
0πsinx1+cos2xdx=11du1+u2=[arctanu]11=π4(π4)=π2.\int_0^\pi\frac{\sin x}{1+\cos^2x}\,dx=\int_{-1}^1\frac{du}{1+u^2}=\big[\arctan u\big]_{-1}^1=\frac\pi4-\left(-\frac\pi4\right)=\frac\pi2.
Therefore 2I=ππ2=π222I=\pi\cdot\frac\pi2=\frac{\pi^2}2, and
I=π24.I=\frac{\pi^2}4.
This problem is a good illustration of stacking two techniques — King's Rule to fold the integral onto itself, followed by an elementary substitution — and is a very frequently recurring.

Part III. Tactical Substitutions

The techniques of this Part share a common spirit: each is a specific, engineered substitution designed to defeat a specific algebraic shape that resists the general methods of Part I. Recognising the shape is nine-tenths of the battle.

3.1 Extracting the Highest Power

Target form. dxxm(a+bxn)p/q.\displaystyle\int\frac{dx}{x^m(a+bx^n)^{p/q}}.

Method. Factor the highest power of xx out of the bracketed term, converting the awkward sum a+bxna+bx^n into xn(axn+b)x^n(ax^{-n}+b); this manufactures a negative power of xx whose derivative is available in the rest of the integrand.

Example. Evaluate I=dxx2(x4+1)3/4\displaystyle I=\int\frac{dx}{x^2(x^4+1)^{3/4}}.

Write (x4+1)3/4=(x4(1+x4))3/4=x3(1+x4)3/4(x^4+1)^{3/4}=\big(x^4(1+x^{-4})\big)^{3/4}=x^3(1+x^{-4})^{3/4}, so
I=dxx5(1+x4)3/4=x5(1+x4)3/4dx.I=\int\frac{dx}{x^5(1+x^{-4})^{3/4}}=\int x^{-5}(1+x^{-4})^{-3/4}\,dx.
Let t=1+x4t=1+x^{-4}, so dt=4x5dxdt=-4x^{-5}\,dx:
I=14t3/4dt=t1/4+C=(1+x4)1/4+C.I=-\frac14\int t^{-3/4}\,dt=-t^{1/4}+C=-\big(1+x^{-4}\big)^{1/4}+C.

3.2 Algebraic Twins: the x±1xx\pm\dfrac1x Substitution

Target form. x2±1x4+kx2+1dx\displaystyle\int\frac{x^2\pm1}{x^4+kx^2+1}\,dx, a symmetric bi-quadratic denominator.

Method. Divide numerator and denominator by x2x^2.

  • If the numerator becomes 1+1x21+\frac1{x^2}, set t=x1xt=x-\frac1x (so dt=(1+1x2)dxdt=\left(1+\frac1{x^2}\right)dx, and t2=x2+1x22t^2=x^2+\frac1{x^2}-2).
  • If the numerator becomes 11x21-\frac1{x^2}, set t=x+1xt=x+\frac1x (so dt=(11x2)dxdt=\left(1-\frac1{x^2}\right)dx, and t2=x2+1x2+2t^2=x^2+\frac1{x^2}+2).

Example. Evaluate I=x2+1x4+1dx\displaystyle I=\int\frac{x^2+1}{x^4+1}\,dx.

Dividing by x2x^2: I=1+1/x2x2+1/x2dx=1+1/x2(x1/x)2+2dxI=\displaystyle\int\frac{1+1/x^2}{x^2+1/x^2}\,dx=\int\frac{1+1/x^2}{(x-1/x)^2+2}\,dx. With t=x1xt=x-\frac1x,
I=dtt2+(2)2=12arctan ⁣(t2)+C=12arctan ⁣(x1/x2)+C.I=\int\frac{dt}{t^2+(\sqrt2)^2}=\frac1{\sqrt2}\arctan\!\left(\frac t{\sqrt2}\right)+C=\frac1{\sqrt2}\arctan\!\left(\frac{x-1/x}{\sqrt2}\right)+C.

3.3 The Reciprocal Substitution x=1/tx=1/t

Effective whenever the leading and trailing powers of xx in an irrational integrand pair more naturally after inversion.

Example. Evaluate I=dxx2x2+1\displaystyle I=\int\frac{dx}{x^2\sqrt{x^2+1}} for x>0x>0.

Put x=1tx=\dfrac1t, so dx=dtt2dx=-\dfrac{dt}{t^2}, and x2+1=1+t2t2=1+t2t\sqrt{x^2+1}=\sqrt{\dfrac{1+t^2}{t^2}}=\dfrac{\sqrt{1+t^2}}t (for t>0t>0). Then
I=1(1/t2)1+t2t(dtt2)=tdt1+t2=1+t2+C=x2+1x+C.I=\int\frac1{(1/t^2)\cdot\frac{\sqrt{1+t^2}}t}\left(-\frac{dt}{t^2}\right)=-\int\frac{t\,dt}{\sqrt{1+t^2}}=-\sqrt{1+t^2}+C=-\frac{\sqrt{x^2+1}}x+C.
Observe how inversion converted an integral that "looked like" it needed a hyperbolic substitution into an elementary one.

3.4 Euler's Substitutions for R(x,ax2+bx+c)dx\int R\big(x,\sqrt{ax^2+bx+c}\big)\,dx

When the standard trigonometric substitution becomes unwieldy, Euler's three substitutions convert the entire integrand into a rational function of a new variable tt, after which partial fractions finish the job.

  • Case 1 (a>0a>0): put ax2+bx+c=±xa+t\sqrt{ax^2+bx+c}=\pm x\sqrt a+t.
  • Case 2 (c>0c>0): put ax2+bx+c=xt±c\sqrt{ax^2+bx+c}=xt\pm\sqrt c.
  • Case 3 (real roots r1,r2r_1,r_2): put a(xr1)(xr2)=t(xr1)\sqrt{a(x-r_1)(x-r_2)}=t(x-r_1).

Challenge Problem. Evaluate I=dxx+x2+x+1\displaystyle I=\int\frac{dx}{x+\sqrt{x^2+x+1}}.

Solution. Here a=1>0a=1>0, so Case 1 applies. Set
x2+x+1=tx(i.e. t=x+x2+x+1).\sqrt{x^2+x+1}=t-x\qquad\big(\text{i.e. } t=x+\sqrt{x^2+x+1}\big).
Squaring, x2+x+1=t22tx+x2x^2+x+1=t^2-2tx+x^2, so x+1=t22txx+1=t^2-2tx, giving
x=t212t+1.x=\frac{t^2-1}{2t+1}.
Note immediately that the entire denominator of the original integrand is, by construction, just tt itself — that is the point of the substitution. It remains only to express dxdx in terms of dtdt:
dx=2t(2t+1)2(t21)(2t+1)2dt=2(t2+t+1)(2t+1)2dt.dx=\frac{2t(2t+1)-2(t^2-1)}{(2t+1)^2}\,dt=\frac{2(t^2+t+1)}{(2t+1)^2}\,dt.
Hence
I=1t2(t2+t+1)(2t+1)2dt=2t2+t+1t(2t+1)2dt.I=\int\frac1t\cdot\frac{2(t^2+t+1)}{(2t+1)^2}\,dt=2\int\frac{t^2+t+1}{t(2t+1)^2}\,dt.
Partial fractions give t2+t+1t(2t+1)2=1t3/22t+13/2(2t+1)2\dfrac{t^2+t+1}{t(2t+1)^2}=\dfrac1t-\dfrac{3/2}{2t+1}-\dfrac{3/2}{(2t+1)^2} (the reader may verify this by clearing denominators), so
I=2lnt32ln2t+1+32(2t+1)+C,I=2\ln|t|-\frac32\ln|2t+1|+\frac3{2(2t+1)}+C,
where t=x+x2+x+1t=x+\sqrt{x^2+x+1}. This problem is representative of the genre: the substitution itself is a single line, but the partial-fraction reduction that follows is where marks are actually won or lost.


Part IV. Feynman's Trick — Differentiation Under the Integral Sign

4.1 The Leibniz Integral Rule

Rule (constant limits). If f(x,α)f(x,\alpha) and fα\dfrac{\partial f}{\partial\alpha} are continuous, then
ddαabf(x,α)dx=abfα(x,α)dx.\frac{d}{d\alpha}\int_a^bf(x,\alpha)\,dx=\int_a^b\frac{\partial f}{\partial\alpha}(x,\alpha)\,dx.

Rule (variable limits). More generally,
ddαp(α)q(α)f(x,α)dx=f(q(α),α)q(α)f(p(α),α)p(α)+p(α)q(α)fα(x,α)dx.\frac{d}{d\alpha}\int_{p(\alpha)}^{q(\alpha)}f(x,\alpha)\,dx=f\big(q(\alpha),\alpha\big)q'(\alpha)-f\big(p(\alpha),\alpha\big)p'(\alpha)+\int_{p(\alpha)}^{q(\alpha)}\frac{\partial f}{\partial\alpha}(x,\alpha)\,dx.

Remark on rigour. The interchange of ddα\dfrac d{d\alpha} and \displaystyle\int is not free: it requires, at minimum, that fα\dfrac{\partial f}{\partial\alpha} be continuous jointly in xx and α\alpha, and — when the interval of integration is infinite or the integrand unbounded — some form of uniform convergence (in a rigorous course, typically supplied by the Dominated Convergence Theorem). At JEE Advanced and Olympiad, one may apply the rule freely; a careful writer will simply note in passing that the interchange is justified.

Named strategy: Feynman's Trick. Introduce a parameter α\alpha into a difficult integral II — often multiplicatively, as an exponent, or as a limit of integration — so that (i) I(α)I(\alpha) is easy for some particular value of α\alpha, and (ii) I(α)I'(\alpha), obtained by differentiating under the integral sign, is elementary. Integrate I(α)I'(\alpha) back up and fix the constant using the easy value from (i).

Example. Evaluate I(α)=01xα1lnxdx\displaystyle I(\alpha)=\int_0^1\frac{x^\alpha-1}{\ln x}\,dx.

Differentiate under the integral sign:
I(α)=01α[xα1lnx]dx=01xαlnxlnxdx=01xαdx=1α+1.I'(\alpha)=\int_0^1\frac{\partial}{\partial\alpha}\left[\frac{x^\alpha-1}{\ln x}\right]dx=\int_0^1\frac{x^\alpha\ln x}{\ln x}\,dx=\int_0^1x^\alpha\,dx=\frac1{\alpha+1}.
Integrating, I(α)=ln(α+1)+CI(\alpha)=\ln(\alpha+1)+C. Since I(0)=01x01lnxdx=010dx=0I(0)=\int_0^1\frac{x^0-1}{\ln x}\,dx=\int_0^10\,dx=0, we get C=0C=0, so
I(α)=ln(α+1).I(\alpha)=\ln(\alpha+1).

4.2 A Useful Lemma

The Challenge Problem below requires the following standard result, worth recording separately.

Lemma. For p,q>0p,q>0 with pqp\neq q,
0du(u2+p2)(u2+q2)=π2pq(p+q).\int_0^\infty\frac{du}{(u^2+p^2)(u^2+q^2)}=\frac\pi{2pq(p+q)}.

Proof. Partial fractions in u2u^2 give 1(u2+p2)(u2+q2)=1q2p2[1u2+p21u2+q2]\dfrac1{(u^2+p^2)(u^2+q^2)}=\dfrac1{q^2-p^2}\left[\dfrac1{u^2+p^2}-\dfrac1{u^2+q^2}\right], and since 0duu2+p2=π2p\displaystyle\int_0^\infty\frac{du}{u^2+p^2}=\frac\pi{2p},
0du(u2+p2)(u2+q2)=1q2p2[π2pπ2q]=π(qp)2pq(q2p2)=π2pq(p+q). \int_0^\infty\frac{du}{(u^2+p^2)(u^2+q^2)}=\frac1{q^2-p^2}\left[\frac\pi{2p}-\frac\pi{2q}\right]=\frac{\pi(q-p)}{2pq(q^2-p^2)}=\frac\pi{2pq(p+q)}.\ \blacksquare

Challenge Problem. Evaluate I(a,b)=0π/2ln ⁣(a2cos2θ+b2sin2θ)dθ\displaystyle I(a,b)=\int_0^{\pi/2}\ln\!\big(a^2\cos^2\theta+b^2\sin^2\theta\big)\,d\theta for a,b>0a,b>0.

Solution. Differentiate with respect to aa, holding bb fixed:
Ia=0π/22acos2θa2cos2θ+b2sin2θdθ.\frac{\partial I}{\partial a}=\int_0^{\pi/2}\frac{2a\cos^2\theta}{a^2\cos^2\theta+b^2\sin^2\theta}\,d\theta.
Divide numerator and denominator by cos2θ\cos^2\theta and substitute u=tanθu=\tan\theta (so dθ=du1+u2d\theta=\frac{du}{1+u^2}, and θ:0π2\theta:0\to\frac\pi2 corresponds to u:0u:0\to\infty):
Ia=02aa2+b2u2du1+u2=2ab20du(u2+(ab)2)(u2+1).\frac{\partial I}{\partial a}=\int_0^\infty\frac{2a}{a^2+b^2u^2}\cdot\frac{du}{1+u^2}=\frac{2a}{b^2}\int_0^\infty\frac{du}{\left(u^2+\left(\frac ab\right)^2\right)(u^2+1)}.
Applying the Lemma with p=a/b, q=1p=a/b,\ q=1:
Ia=2ab2π2ab1(ab+1)=2ab2πb22a(a+b)=πa+b.\frac{\partial I}{\partial a}=\frac{2a}{b^2}\cdot\frac\pi{2\cdot\frac ab\cdot1\cdot\left(\frac ab+1\right)}=\frac{2a}{b^2}\cdot\frac{\pi b^2}{2a(a+b)}=\frac\pi{a+b}.
Integrating with respect to aa: I(a,b)=πln(a+b)+C(b)I(a,b)=\pi\ln(a+b)+C(b). To pin down C(b)C(b), evaluate the original integral at a=ba=b, where it is trivial:
I(b,b)=0π/2ln(b2)dθ=π22lnb=πlnb.I(b,b)=\int_0^{\pi/2}\ln(b^2)\,d\theta=\frac\pi2\cdot2\ln b=\pi\ln b.
Comparing with I(b,b)=πln(2b)+C(b)=πln2+πlnb+C(b)I(b,b)=\pi\ln(2b)+C(b)=\pi\ln2+\pi\ln b+C(b) forces C(b)=πln2C(b)=-\pi\ln2. Therefore
I(a,b)=πln(a+b)πln2=πln ⁣(a+b2).I(a,b)=\pi\ln(a+b)-\pi\ln2=\pi\ln\!\left(\frac{a+b}2\right).
This is a celebrated result: the integral of the logarithm of an ellipse-shaped weight, evaluated in closed form, is simply π\pi times the log of the arithmetic mean of the semi-axes. Direct computation — expanding the logarithm, or attempting a trigonometric substitution — offers no visible way in; the parameter aa exists only in our imagination, and yet introducing it is exactly what solves the problem.

Part V. The Weierstrass Substitution

5.1 Derivation

Substitution. Let t=tanx2t=\tan\dfrac x2.

Derivation of the conversion formulas. Since sinx=2sinx2cosx2\sin x=2\sin\frac x2\cos\frac x2, divide and multiply by cos2x2\cos^2\frac x2:
sinx=2sinx2cosx2sin2x2+cos2x2=2tanx21+tan2x2=2t1+t2.\sin x=\frac{2\sin\frac x2\cos\frac x2}{\sin^2\frac x2+\cos^2\frac x2}=\frac{2\tan\frac x2}{1+\tan^2\frac x2}=\frac{2t}{1+t^2}.
Similarly, cosx=cos2x2sin2x2\cos x=\cos^2\frac x2-\sin^2\frac x2, and dividing through by sin2x2+cos2x2=1\sin^2\frac x2+\cos^2\frac x2=1 in the same way,
cosx=1tan2x21+tan2x2=1t21+t2.\cos x=\frac{1-\tan^2\frac x2}{1+\tan^2\frac x2}=\frac{1-t^2}{1+t^2}.
Finally, from x=2arctantx=2\arctan t, dx=21+t2dtdx=\dfrac2{1+t^2}\,dt.

This substitution converts any rational function of sinx\sin x and cosx\cos x into a rational function of tt — after which the entire machinery of partial fractions becomes available.

Example. Evaluate I=dx1+sinx\displaystyle I=\int\frac{dx}{1+\sin x}.

With the substitutions above,
1+sinx=1+2t1+t2=(1+t)21+t2,1+\sin x=1+\frac{2t}{1+t^2}=\frac{(1+t)^2}{1+t^2},
so
I=1+t2(1+t)22dt1+t2=2dt(1+t)2=21+t+C=21+tanx2+C.I=\int\frac{1+t^2}{(1+t)^2}\cdot\frac{2\,dt}{1+t^2}=\int\frac{2\,dt}{(1+t)^2}=-\frac2{1+t}+C=-\frac2{1+\tan\frac x2}+C.

5.2 A Structural Remark: the Perfect-Square Phenomenon

Challenge Problem. Evaluate I=dx3sinx4cosx+5\displaystyle I=\int\frac{dx}{3\sin x-4\cos x+5}.

Solution. Substituting,
3sinx4cosx+5=6t4(1t2)+5(1+t2)1+t2=9t2+6t+11+t2=(3t+1)21+t2.3\sin x-4\cos x+5=\frac{6t-4(1-t^2)+5(1+t^2)}{1+t^2}=\frac{9t^2+6t+1}{1+t^2}=\frac{(3t+1)^2}{1+t^2}.
The quadratic in the numerator is a perfect square, so
I=1+t2(3t+1)22dt1+t2=2dt(3t+1)2=23(3t+1)+C=23 ⁣(3tanx2+1)+C.I=\int\frac{1+t^2}{(3t+1)^2}\cdot\frac{2\,dt}{1+t^2}=\int\frac{2\,dt}{(3t+1)^2}=-\frac2{3(3t+1)}+C=-\frac2{3\!\left(3\tan\frac x2+1\right)}+C.

Remark. The perfect square was no accident. For a general integral dxasinx+bcosx+c\displaystyle\int\frac{dx}{a\sin x+b\cos x+c}, the Weierstrass substitution produces a numerator quadratic in tt equal to (cb)t2+2at+(c+b)(c-b)t^2+2at+(c+b), whose discriminant is
4a24(cb)(c+b)=4(a2c2+b2).4a^2-4(c-b)(c+b)=4\big(a^2-c^2+b^2\big).
This vanishes — guaranteeing a perfect square, and hence an arctan-free antiderivative — precisely when a2+b2=c2a^2+b^2=c^2: that is, whenever (a,b,c)(a,b,c) is a Pythagorean triple. Here (3,4,5)(3,4,5) is the most famous triple of all, which is no coincidence of the problem-setter's choosing; recognising this pattern instantly tells the solver, before any algebra, that the answer will involve no inverse trigonometric function at all.


Part VI. The Gamma and Beta Functions

6.1 Definitions and the Bridge

Γ(n)=0xn1exdx  (n>0),B(m,n)=01xm1(1x)n1dx  (m,n>0).\Gamma(n)=\int_0^\infty x^{n-1}e^{-x}\,dx\ \ (n>0),\qquad B(m,n)=\int_0^1x^{m-1}(1-x)^{n-1}\,dx\ \ (m,n>0).

Integration by parts gives Γ(n+1)=nΓ(n)\Gamma(n+1)=n\Gamma(n), so Γ(n)=(n1)!\Gamma(n)=(n-1)! for positive integers nn, and Γ(1)=1\Gamma(1)=1.

6.2 Proof that Γ(1/2)=π\Gamma(1/2)=\sqrt\pi

Theorem. Γ ⁣(12)=π\Gamma\!\left(\frac12\right)=\sqrt\pi.

Proof. By definition, Γ ⁣(12)=0x1/2exdx\Gamma\!\left(\frac12\right)=\int_0^\infty x^{-1/2}e^{-x}\,dx. Substitute x=u2x=u^2 (dx=2ududx=2u\,du):
Γ ⁣(12)=0u1eu22udu=20eu2du.\Gamma\!\left(\frac12\right)=\int_0^\infty u^{-1}e^{-u^2}\cdot2u\,du=2\int_0^\infty e^{-u^2}\,du.
Let K=0eu2duK=\int_0^\infty e^{-u^2}\,du. Then
K2=0 ⁣ ⁣0e(u2+v2)dudv,K^2=\int_0^\infty\!\!\int_0^\infty e^{-(u^2+v^2)}\,du\,dv,
a double integral over the first quadrant. Converting to polar coordinates (u=rcosθ, v=rsinθ, dudv=rdrdθu=r\cos\theta,\ v=r\sin\theta,\ du\,dv=r\,dr\,d\theta; the first quadrant becomes r[0,), θ[0,π/2]r\in[0,\infty),\ \theta\in[0,\pi/2]):
K2=0π/2 ⁣ ⁣0er2rdrdθ=0π/2[12er2]0dθ=0π/212dθ=π4.K^2=\int_0^{\pi/2}\!\!\int_0^\infty e^{-r^2}r\,dr\,d\theta=\int_0^{\pi/2}\left[-\frac12e^{-r^2}\right]_0^\infty d\theta=\int_0^{\pi/2}\frac12\,d\theta=\frac\pi4.
Since K>0K>0, K=π2K=\dfrac{\sqrt\pi}2, so Γ ⁣(12)=2K=π\Gamma\!\left(\frac12\right)=2K=\sqrt\pi. \blacksquare

(This is the same polar-coordinate device developed formally in Part VII; here it appears in embryo.)

6.3 Proof of the Beta–Gamma Bridge

Theorem. B(m,n)=Γ(m)Γ(n)Γ(m+n)\displaystyle B(m,n)=\frac{\Gamma(m)\Gamma(n)}{\Gamma(m+n)}.

Proof. Write Γ(m)Γ(n)\Gamma(m)\Gamma(n) as a double integral over the first quadrant:
Γ(m)Γ(n)=0 ⁣ ⁣0xm1yn1e(x+y)dxdy.\Gamma(m)\Gamma(n)=\int_0^\infty\!\!\int_0^\infty x^{m-1}y^{n-1}e^{-(x+y)}\,dx\,dy.
Change variables to u=x+y(0,)u=x+y\in(0,\infty) and v=xx+y(0,1)v=\dfrac x{x+y}\in(0,1), i.e. x=uv, y=u(1v)x=uv,\ y=u(1-v). The Jacobian is
(x,y)(u,v)=det(vu1vu)=uvu(1v)=u,(x,y)(u,v)=u.\frac{\partial(x,y)}{\partial(u,v)}=\det\begin{pmatrix}v&u\\1-v&-u\end{pmatrix}=-uv-u(1-v)=-u,\qquad\left\lvert\frac{\partial(x,y)}{\partial(u,v)}\right\rvert=u.
Since xm1yn1=um+n2vm1(1v)n1x^{m-1}y^{n-1}=u^{m+n-2}v^{m-1}(1-v)^{n-1} and x+y=ux+y=u,
Γ(m)Γ(n)=0 ⁣ ⁣01um+n2vm1(1v)n1euudvdu=(0um+n1eudu) ⁣(01vm1(1v)n1dv),\Gamma(m)\Gamma(n)=\int_0^\infty\!\!\int_0^1u^{m+n-2}v^{m-1}(1-v)^{n-1}e^{-u}\cdot u\,dv\,du=\left(\int_0^\infty u^{m+n-1}e^{-u}\,du\right)\!\left(\int_0^1v^{m-1}(1-v)^{n-1}\,dv\right),
which is exactly Γ(m+n)B(m,n)\Gamma(m+n)\cdot B(m,n). Dividing through gives the theorem. \blacksquare

6.4 Three Disguises of the Beta Function

Tactic 1 (trigonometric form).
0π/2sinpxcosqxdx=12B ⁣(p+12,q+12)=Γ ⁣(p+12)Γ ⁣(q+12)2Γ ⁣(p+q+22).\int_0^{\pi/2}\sin^px\cos^qx\,dx=\frac12B\!\left(\frac{p+1}2,\frac{q+1}2\right)=\frac{\Gamma\!\left(\frac{p+1}2\right)\Gamma\!\left(\frac{q+1}2\right)}{2\,\Gamma\!\left(\frac{p+q+2}2\right)}.
(Obtained by substituting x=arcsinwx=\arcsin\sqrt w into B ⁣(p+12,q+12)=01w(p1)/2(1w)(q1)/2dwB\!\left(\frac{p+1}2,\frac{q+1}2\right)=\int_0^1w^{(p-1)/2}(1-w)^{(q-1)/2}\,dw; the reader is encouraged to verify this independently.)

Tactic 2 (infinite rational form).
0xm1(1+x)m+ndx=B(m,n).\int_0^\infty\frac{x^{m-1}}{(1+x)^{m+n}}\,dx=B(m,n).
Proof. Substitute x=t1tx=\dfrac t{1-t}, t(0,1)t\in(0,1), so 1+x=11t1+x=\dfrac1{1-t} and dx=dt(1t)2dx=\dfrac{dt}{(1-t)^2}:
0xm1(1+x)m+ndx=01tm1(1t)(m1)(1t)m+ndt(1t)2=01tm1(1t)n1dt=B(m,n). \int_0^\infty\frac{x^{m-1}}{(1+x)^{m+n}}\,dx=\int_0^1t^{m-1}(1-t)^{-(m-1)}\cdot(1-t)^{m+n}\cdot\frac{dt}{(1-t)^2}=\int_0^1t^{m-1}(1-t)^{n-1}\,dt=B(m,n).\ \blacksquare

A Common Pitfall. Students frequently misapply Tactic 2 to integrals such as 0dx1+x3\displaystyle\int_0^\infty\frac{dx}{1+x^3} by writing it directly as B(1/3,2/3)B(1/3,2/3) — but Tactic 2 requires the denominator to be a power of (1+x)(1+x) alone; here the denominator is 1+x31+x^3. The correct route substitutes u=x3u=x^3 first: with x=u1/3x=u^{1/3}, dx=13u1/31dudx=\frac13u^{1/3-1}\,du,
0dx1+x3=130u1/311+udu=13B ⁣(13,23)=13Γ ⁣(13)Γ ⁣(23).\int_0^\infty\frac{dx}{1+x^3}=\frac13\int_0^\infty\frac{u^{1/3-1}}{1+u}\,du=\frac13B\!\left(\frac13,\frac23\right)=\frac13\Gamma\!\left(\frac13\right)\Gamma\!\left(\frac23\right).
More generally, the substitution u=xnu=x^n shows that
0dx1+xn=1nΓ ⁣(1n)Γ ⁣(11n)=πnsin(π/n)(n>1),\int_0^\infty\frac{dx}{1+x^n}=\frac1n\,\Gamma\!\left(\frac1n\right)\Gamma\!\left(1-\frac1n\right)=\frac\pi{n\sin(\pi/n)}\qquad(n>1),
using the Reflection Formula of §6.5. For n=3n=3 this gives π3sin(π/3)=2π33\dfrac\pi{3\sin(\pi/3)}=\dfrac{2\pi}{3\sqrt3} — note the crucial factor of 13\frac13, which is exactly the Jacobian of the substitution u=x3u=x^3, and exactly what is lost if the Beta form is written down without performing that substitution first.

Tactic 3 (logarithmic–exponential bridge).
01xm(ln1x)ndx=Γ(n+1)(m+1)n+1.\int_0^1x^m\left(\ln\frac1x\right)^ndx=\frac{\Gamma(n+1)}{(m+1)^{n+1}}.
Proof. Substitute t=ln(1/x)t=\ln(1/x), i.e. x=etx=e^{-t}, dx=etdtdx=-e^{-t}\,dt; as x:01x:0\to1, t:0t:\infty\to0:
01xm(ln1x)ndx=0emttnetdt=0tne(m+1)tdt.\int_0^1x^m\left(\ln\frac1x\right)^ndx=\int_0^\infty e^{-mt}\,t^n\,e^{-t}\,dt=\int_0^\infty t^ne^{-(m+1)t}\,dt.
Substituting s=(m+1)ts=(m+1)t,
=1(m+1)n+10snesds=Γ(n+1)(m+1)n+1. =\frac1{(m+1)^{n+1}}\int_0^\infty s^ne^{-s}\,ds=\frac{\Gamma(n+1)}{(m+1)^{n+1}}.\ \blacksquare

6.5 The Reflection and Duplication Formulas

Euler's Reflection Formula. For 0<z<10<z<1,
Γ(z)Γ(1z)=πsin(πz).\Gamma(z)\Gamma(1-z)=\frac\pi{\sin(\pi z)}.
By Tactic 2 (with m=z, n=1zm=z,\ n=1-z), this is equivalent to 0uz11+udu=πsinπz\displaystyle\int_0^\infty\frac{u^{z-1}}{1+u}\,du=\frac\pi{\sin\pi z}, whose rigorous proof proceeds by contour integration around a keyhole contour avoiding the branch cut of uz1u^{z-1} — a technique from complex analysis lying outside our present scope. We record and use the result, as is standard practice at this level.

Legendre's Duplication Formula. For z>0z>0,
Γ(z)Γ ⁣(z+12)=212zπΓ(2z).\Gamma(z)\,\Gamma\!\left(z+\frac12\right)=2^{1-2z}\sqrt\pi\,\Gamma(2z).
Proof. Consider B(z,z)=01[t(1t)]z1dtB(z,z)=\int_0^1[t(1-t)]^{z-1}\,dt. Substitute t=1+s2t=\dfrac{1+s}2, so t(1t)=1s24t(1-t)=\dfrac{1-s^2}4 and dt=ds2dt=\dfrac{ds}2, with ss running over (1,1)(-1,1):
B(z,z)=124z111(1s2)z1ds=14z101(1s2)z1dsB(z,z)=\frac1{2\cdot4^{z-1}}\int_{-1}^1(1-s^2)^{z-1}\,ds=\frac1{4^{z-1}}\int_0^1(1-s^2)^{z-1}\,ds
(the integrand being even). Substitute w=s2w=s^2 (ds=12wdwds=\frac1{2\sqrt w}dw):
01(1s2)z1ds=1201w1/2(1w)z1dw=12B ⁣(12,z).\int_0^1(1-s^2)^{z-1}\,ds=\frac12\int_0^1w^{-1/2}(1-w)^{z-1}\,dw=\frac12B\!\left(\frac12,z\right).
So B(z,z)=124z1B ⁣(12,z)B(z,z)=\dfrac1{2\cdot4^{z-1}}B\!\left(\frac12,z\right). Writing both Beta functions in terms of Gamma functions,
Γ(z)2Γ(2z)=124z1Γ ⁣(12)Γ(z)Γ ⁣(z+12)=π24z1Γ(z)Γ ⁣(z+12).\frac{\Gamma(z)^2}{\Gamma(2z)}=\frac1{2\cdot4^{z-1}}\cdot\frac{\Gamma\!\left(\frac12\right)\Gamma(z)}{\Gamma\!\left(z+\frac12\right)}=\frac{\sqrt\pi}{2\cdot4^{z-1}}\cdot\frac{\Gamma(z)}{\Gamma\!\left(z+\frac12\right)}.
Cancelling one factor of Γ(z)\Gamma(z) and rearranging,
Γ(z)Γ ⁣(z+12)=2π4z1Γ(2z)=212zπΓ(2z). \Gamma(z)\,\Gamma\!\left(z+\frac12\right)=\frac{2\sqrt\pi}{4^{z-1}}\,\Gamma(2z)=2^{1-2z}\sqrt\pi\,\Gamma(2z).\ \blacksquare

Unlike the Reflection Formula, this proof uses nothing beyond the Beta function's own definition — a satisfying instance of a "deep-looking" identity yielding to entirely elementary means.

Challenge Problem. Evaluate I=0π/2tanxdx\displaystyle I=\int_0^{\pi/2}\sqrt{\tan x}\,dx.

Solution. Write tanx=sin1/2xcos1/2x\sqrt{\tan x}=\sin^{1/2}x\cos^{-1/2}x and apply Tactic 1 with p=12, q=12p=\frac12,\ q=-\frac12:
I=12B ⁣(12+12,12+12)=12B ⁣(34,14)=12Γ ⁣(34)Γ ⁣(14)Γ(1)=12Γ ⁣(14)Γ ⁣(34).I=\frac12B\!\left(\frac{\frac12+1}2,\frac{-\frac12+1}2\right)=\frac12B\!\left(\frac34,\frac14\right)=\frac12\cdot\frac{\Gamma\!\left(\frac34\right)\Gamma\!\left(\frac14\right)}{\Gamma(1)}=\frac12\,\Gamma\!\left(\frac14\right)\Gamma\!\left(\frac34\right).
By the Reflection Formula with z=14z=\frac14:
Γ ⁣(14)Γ ⁣(34)=πsinπ4=π22=π2.\Gamma\!\left(\frac14\right)\Gamma\!\left(\frac34\right)=\frac\pi{\sin\frac\pi4}=\frac\pi{\frac{\sqrt2}2}=\pi\sqrt2.
Therefore
I=12π2=π2.I=\frac12\cdot\pi\sqrt2=\frac\pi{\sqrt2}.
This is among the most celebrated "impossible-looking" integrals at this level: no elementary antiderivative of tanx\sqrt{\tan x} exists as a finite combination of familiar functions along the indefinite route, and yet the definite integral over a quarter-period falls out in two lines once its Beta-function disguise is recognised.

Part VII. Multiple Integrals — Double, Triple, and Beyond

7.1 Fubini's Theorem and the Order of Integration

Theorem (Fubini). If ff is continuous on a region DD, the double integral DfdA\iint_Df\,dA may be computed as an iterated integral in either order, the bounds being adjusted to describe DD correctly in each:
Df(x,y)dA=abg1(x)g2(x)f(x,y)dydx=cdh1(y)h2(y)f(x,y)dxdy.\iint_Df(x,y)\,dA=\int_a^b\int_{g_1(x)}^{g_2(x)}f(x,y)\,dy\,dx=\int_c^d\int_{h_1(y)}^{h_2(y)}f(x,y)\,dx\,dy.

Tactic. When the inner integral has no elementary antiderivative (classic offenders: ex2e^{-x^2}, sinxx\frac{\sin x}x, ex/xe^x/x), never attempt to force it. Sketch the two-dimensional region DD, re-describe it by slicing in the other direction, and swap the order — the previously impossible inner integral will typically resolve immediately once the order is reversed.

7.2 Change of Variables and the Jacobian

When DD is not naturally rectangular, map it to a simpler region via x=x(u,v), y=y(u,v)x=x(u,v),\ y=y(u,v):
Df(x,y)dxdy=Df(x(u,v),y(u,v))Jdudv,J=det(x/ux/vy/uy/v).\iint_Df(x,y)\,dx\,dy=\iint_{D'}f\big(x(u,v),y(u,v)\big)\,|J|\,du\,dv,\qquad J=\det\begin{pmatrix}\partial x/\partial u&\partial x/\partial v\\\partial y/\partial u&\partial y/\partial v\end{pmatrix}.

Illustration (polar coordinates). For x=rcosθ, y=rsinθx=r\cos\theta,\ y=r\sin\theta:
J=det(cosθrsinθsinθrcosθ)=rcos2θ+rsin2θ=r,J=\det\begin{pmatrix}\cos\theta&-r\sin\theta\\\sin\theta&r\cos\theta\end{pmatrix}=r\cos^2\theta+r\sin^2\theta=r,
recovering the familiar dA=rdrdθdA=r\,dr\,d\theta already used, in embryonic form, in the proof of Γ(1/2)=π\Gamma(1/2)=\sqrt\pi in Part VI.

SystemSubstitutionVolume/Area ElementTypical Use
Polar (2D)x=rcosθ, y=rsinθx=r\cos\theta,\ y=r\sin\thetardrdθr\,dr\,d\thetacircles, x2+y2x^2+y^2
Cylindrical (3D)x=rcosθ, y=rsinθ, z=zx=r\cos\theta,\ y=r\sin\theta,\ z=zrdrdθdzr\,dr\,d\theta\,dzaxial symmetry
Spherical (3D)x=ρsinϕcosθ, y=ρsinϕsinθ, z=ρcosϕx=\rho\sin\phi\cos\theta,\ y=\rho\sin\phi\sin\theta,\ z=\rho\cos\phiρ2sinϕdρdϕdθ\rho^2\sin\phi\,d\rho\,d\phi\,d\thetaspheres, distance from origin

7.3 Dirichlet's Integral

Theorem. If VV is the simplex x,y,z0, x+y+z1x,y,z\geq0,\ x+y+z\leq1, then for p,q,r>0p,q,r>0,
Vxp1yq1zr1dxdydz=Γ(p)Γ(q)Γ(r)Γ(p+q+r+1).\iiint_Vx^{p-1}y^{q-1}z^{r-1}\,dx\,dy\,dz=\frac{\Gamma(p)\Gamma(q)\Gamma(r)}{\Gamma(p+q+r+1)}.

Proof. Integrate first over zz, from 00 to 1xy1-x-y:
01xyzr1dz=(1xy)rr,\int_0^{1-x-y}z^{r-1}\,dz=\frac{(1-x-y)^r}r,
reducing the triple integral to 1rx,y0,x+y1xp1yq1(1xy)rdxdy\dfrac1r\displaystyle\iint_{x,y\geq0,\,x+y\leq1}x^{p-1}y^{q-1}(1-x-y)^r\,dx\,dy. Fix x[0,1]x\in[0,1] and substitute y=(1x)s, s[0,1]y=(1-x)s,\ s\in[0,1], in the inner integral over yy:
01xyq1(1xy)rdy=(1x)q+r01sq1(1s)rds=(1x)q+rB(q,r+1).\int_0^{1-x}y^{q-1}(1-x-y)^r\,dy=(1-x)^{q+r}\int_0^1s^{q-1}(1-s)^r\,ds=(1-x)^{q+r}B(q,r+1).
So the double integral becomes B(q,r+1)01xp1(1x)q+rdx=B(q,r+1)B(p,q+r+1)B(q,r+1)\displaystyle\int_0^1x^{p-1}(1-x)^{q+r}\,dx=B(q,r+1)\,B(p,q+r+1). Assembling,
Vxp1yq1zr1dV=1rB(q,r+1)B(p,q+r+1).\iiint_Vx^{p-1}y^{q-1}z^{r-1}\,dV=\frac1r\,B(q,r+1)\,B(p,q+r+1).
Writing these as Gamma functions and using Γ(r+1)=rΓ(r)\Gamma(r+1)=r\Gamma(r),
B(q,r+1)=Γ(q)rΓ(r)Γ(q+r+1),B(p,q+r+1)=Γ(p)Γ(q+r+1)Γ(p+q+r+1),B(q,r+1)=\frac{\Gamma(q)\cdot r\Gamma(r)}{\Gamma(q+r+1)},\qquad B(p,q+r+1)=\frac{\Gamma(p)\Gamma(q+r+1)}{\Gamma(p+q+r+1)},
and the product 1rB(q,r+1)B(p,q+r+1)\dfrac1r\cdot B(q,r+1)\cdot B(p,q+r+1) collapses — the factor of rr and the factor Γ(q+r+1)\Gamma(q+r+1) both cancel — to exactly Γ(p)Γ(q)Γ(r)Γ(p+q+r+1)\dfrac{\Gamma(p)\Gamma(q)\Gamma(r)}{\Gamma(p+q+r+1)}. \blacksquare

7.4 Liouville's Extension

For an ellipsoidal region (xa)α+(yb)β+(zc)γ1\left(\dfrac xa\right)^\alpha+\left(\dfrac yb\right)^\beta+\left(\dfrac zc\right)^\gamma\leq1 (with x,y,z0x,y,z\geq0), substituting X=(x/a)αX=(x/a)^\alpha (and similarly for Y,ZY,Z) reduces the region to Dirichlet's simplex. Carrying the Jacobian of this substitution through gives the general formula
xp1yq1zr1dV=apbqcrαβγΓ ⁣(pα)Γ ⁣(qβ)Γ ⁣(rγ)Γ ⁣(pα+qβ+rγ+1).\iiint x^{p-1}y^{q-1}z^{r-1}\,dV=\frac{a^pb^qc^r}{\alpha\beta\gamma}\cdot\frac{\Gamma\!\left(\frac p\alpha\right)\Gamma\!\left(\frac q\beta\right)\Gamma\!\left(\frac r\gamma\right)}{\Gamma\!\left(\frac p\alpha+\frac q\beta+\frac r\gamma+1\right)}.

7.5 Symmetry in Higher Dimensions

Exactly as in Part II: if the domain DD is symmetric under xxx\to-x and f(x,y,z)=f(x,y,z)f(-x,y,z)=-f(x,y,z), the integral vanishes identically — worth checking before any computation is attempted, since it frequently disposes of most terms in a polynomial integrand over a sphere or ball.

Challenge Problem. Evaluate VxyzdV\displaystyle\iiint_Vxyz\,dV, where VV is the portion of the unit ball x2+y2+z21x^2+y^2+z^2\leq1 lying in the positive octant (x,y,z0x,y,z\geq0).

Solution. The boundary is (x1)2+(y1)2+(z1)21\left(\frac x1\right)^2+\left(\frac y1\right)^2+\left(\frac z1\right)^2\leq1, so in the notation of §7.4, a=b=c=1a=b=c=1 and α=β=γ=2\alpha=\beta=\gamma=2. The integrand xyz=x21y21z21xyz=x^{2-1}y^{2-1}z^{2-1} gives p=q=r=2p=q=r=2. Substituting into Liouville's formula:
VxyzdV=1222Γ(1)Γ(1)Γ(1)Γ(1+1+1+1)=181Γ(4)=1816=148.\iiint_Vxyz\,dV=\frac1{2\cdot2\cdot2}\cdot\frac{\Gamma(1)\,\Gamma(1)\,\Gamma(1)}{\Gamma(1+1+1+1)}=\frac18\cdot\frac1{\Gamma(4)}=\frac18\cdot\frac16=\frac1{48}.
(This may be checked independently in spherical coordinates: the integral factors as 01ρ5dρ0π/2sin3ϕcosϕdϕ0π/2sinθcosθdθ=161412=148\int_0^1\rho^5\,d\rho\cdot\int_0^{\pi/2}\sin^3\phi\cos\phi\,d\phi\cdot\int_0^{\pi/2}\sin\theta\cos\theta\,d\theta=\frac16\cdot\frac14\cdot\frac12=\frac1{48}, in exact agreement.)

What would otherwise require setting up and evaluating an iterated triple integral in spherical coordinates was reduced, by recognising the Liouville pattern, to substituting three numbers into a formula.


Part VIII. Vector Calculus — Green, Stokes, and Gauss

8.1 A Unifying Theme

Every theorem in this final Part is a higher-dimensional descendant of the Fundamental Theorem of Calculus proved in §1.1. FTC relates the values of FF at the boundary of an interval ({a,b}\{a,b\}) to the interior behaviour of FF'; Green's, Stokes', and the Divergence Theorem relate the values of a vector field on the boundary of a region (a curve or a surface) to the interior behaviour of its derivatives (curl or divergence). It is this family resemblance, more than any surface similarity of formula, that is worth carrying into an examination hall: whenever a problem asks for a boundary integral, ask whether the interior is easier — and vice versa.

8.2 Green's Theorem

Theorem. Let CC be a positively oriented (counterclockwise), piecewise-smooth, simple closed curve bounding a region DD. If P,QP,Q have continuous partial derivatives on an open region containing DD,
C(Pdx+Qdy)=D(QxPy)dA.\oint_C(P\,dx+Q\,dy)=\iint_D\left(\frac{\partial Q}{\partial x}-\frac{\partial P}{\partial y}\right)dA.

Proof (for a region that is simultaneously "type I" and "type II"). Suppose D={(x,y):axb, g1(x)yg2(x)}D=\{(x,y):a\leq x\leq b,\ g_1(x)\leq y\leq g_2(x)\}. Then, by the Fundamental Theorem of Calculus applied to the inner integral,
DPydA=ab[P(x,g2(x))P(x,g1(x))]dx.\iint_D\frac{\partial P}{\partial y}\,dA=\int_a^b\Big[P(x,g_2(x))-P(x,g_1(x))\Big]\,dx.
On the other hand, CC consists of the lower boundary y=g1(x)y=g_1(x) traversed with increasing xx, and the upper boundary y=g2(x)y=g_2(x) traversed with decreasing xx (plus vertical segments, contributing nothing to Pdx\oint P\,dx since dx=0dx=0 there):
CPdx=abP(x,g1(x))dxabP(x,g2(x))dx=DPydA.\oint_CP\,dx=\int_a^bP(x,g_1(x))\,dx-\int_a^bP(x,g_2(x))\,dx=-\iint_D\frac{\partial P}{\partial y}\,dA.
An identical argument, describing DD as a type-II region, shows CQdy=DQxdA\displaystyle\oint_CQ\,dy=\iint_D\frac{\partial Q}{\partial x}\,dA. Adding the two establishes the theorem for such DD; general regions are handled by cutting into finitely many pieces of this type, on which shared internal boundaries cancel in pairs. \blacksquare

Tactic: the Area Cheat Code. Setting P=y, Q=xP=-y,\ Q=x gives QxPy=2\dfrac{\partial Q}{\partial x}-\dfrac{\partial P}{\partial y}=2, so
Area(D)=12C(xdyydx).\text{Area}(D)=\frac12\oint_C(x\,dy-y\,dx).

Example. Find the area enclosed by the astroid x=acos3t, y=asin3t, t[0,2π]x=a\cos^3t,\ y=a\sin^3t,\ t\in[0,2\pi].

Here dx=3acos2tsintdt, dy=3asin2tcostdtdx=-3a\cos^2t\sin t\,dt,\ dy=3a\sin^2t\cos t\,dt, so
xdyydx=3a2cos4tsin2tdt+3a2sin4tcos2tdt=3a2sin2tcos2tdt=3a24sin2(2t)dt.x\,dy-y\,dx=3a^2\cos^4t\sin^2t\,dt+3a^2\sin^4t\cos^2t\,dt=3a^2\sin^2t\cos^2t\,dt=\frac{3a^2}4\sin^2(2t)\,dt.
Hence
Area=1202π3a24sin2(2t)dt=3a2802πsin2(2t)dt=3a28π=3πa28,\text{Area}=\frac12\int_0^{2\pi}\frac{3a^2}4\sin^2(2t)\,dt=\frac{3a^2}8\int_0^{2\pi}\sin^2(2t)\,dt=\frac{3a^2}8\cdot\pi=\frac{3\pi a^2}8,
using 02πsin2(2t)dt=π\int_0^{2\pi}\sin^2(2t)\,dt=\pi (the mean value of sin2\sin^2 over a whole number of periods is 12\frac12).

8.3 Stokes' Theorem

Theorem. For a piecewise-smooth oriented surface SS with boundary curve CC (oriented consistently via the right-hand rule),
CFdr=S(×F)dS.\oint_C\mathbf F\cdot d\mathbf r=\iint_S(\nabla\times\mathbf F)\cdot d\mathbf S.

This is the three-dimensional generalisation of Green's Theorem — indeed, when SS is flat and lies in the xyxy-plane, Stokes' Theorem is Green's Theorem, since (×F)k=QxPy(\nabla\times\mathbf F)\cdot\mathbf k=\frac{\partial Q}{\partial x}-\frac{\partial P}{\partial y}. The proof for a general surface proceeds by parametrising SS, pulling the surface integral of the curl back to a planar double integral over the parameter domain, and invoking Green's Theorem there; we omit the notationally heavy details.

Tactic: Surface-Swapping. Since the right-hand side depends on SS only through its boundary CC, any two surfaces sharing the same boundary curve give the same value. If SS is awkward (a twisted, curved cap), replace it with the flattest possible surface sharing S=C\partial S=C — typically a plane — and integrate the curl over that instead. (Compare the "closing the lid" tactic below, which is the same idea applied to closed surfaces instead of open ones.)

8.4 The Divergence Theorem

Theorem. For a solid region VV with piecewise-smooth boundary surface S=VS=\partial V, oriented outward,
SFdS=V(F)dV.\iint_S\mathbf F\cdot d\mathbf S=\iiint_V(\nabla\cdot\mathbf F)\,dV.

Proof (for a "vertically simple" solid). Let V={(x,y,z):(x,y)D, z1(x,y)zz2(x,y)}V=\{(x,y,z):(x,y)\in D,\ z_1(x,y)\leq z\leq z_2(x,y)\}, with vertical side walls (so the outward normal on the sides is horizontal). Consider just the zz-component of the flux, taking F=(0,0,F3)\mathbf F=(0,0,F_3). By FTC,
VF3zdV=D[F3(x,y,z2(x,y))F3(x,y,z1(x,y))]dA.\iiint_V\frac{\partial F_3}{\partial z}\,dV=\iint_D\Big[F_3(x,y,z_2(x,y))-F_3(x,y,z_1(x,y))\Big]\,dA.
On the top surface z=z2(x,y)z=z_2(x,y) (outward normal pointing up), the standard formula for a graph gives kdS=dA\mathbf k\cdot d\mathbf S=dA, so its contribution to SF3kdS\iint_SF_3\,\mathbf k\cdot d\mathbf S is DF3(x,y,z2)dA\iint_DF_3(x,y,z_2)\,dA. On the bottom surface z=z1(x,y)z=z_1(x,y) (outward normal pointing down), the contribution is DF3(x,y,z1)dA-\iint_DF_3(x,y,z_1)\,dA. The vertical sides contribute nothing, since their outward normal is horizontal (kn=0\mathbf k\cdot\mathbf n=0 there). Summing exactly reproduces the volume integral above. The same argument, with x,y,zx,y,z permuted, handles the F1F_1 and F2F_2 components for a solid simple in all three directions; summing all three establishes the full theorem. \blacksquare

Tactic: "Closing the Lid." If a problem gives an open surface (a hemisphere without its base, say) and asks for a flux, the Divergence Theorem cannot be applied directly. Instead, close the surface with a simple "lid," apply the Divergence Theorem to the resulting closed solid, and subtract the (usually much easier) flux through the lid.

8.5 Conservative Fields and Path Independence

Before attempting ABFdr\int_A^B\mathbf F\cdot d\mathbf r along a complicated path, always check the curl. If ×F=0\nabla\times\mathbf F=\mathbf0 (equivalently Qx=Py\frac{\partial Q}{\partial x}=\frac{\partial P}{\partial y} in the plane) on a simply connected domain, F\mathbf F is conservative: the integral around any closed loop is zero, and for an open path, ABFdr=f(B)f(A)\int_A^B\mathbf F\cdot d\mathbf r=f(B)-f(A) for the scalar potential ff with f=F\nabla f=\mathbf F — utterly independent of the path taken.

Challenge Problem. Let SS be the open upper hemisphere x2+y2+z2=a2, z0x^2+y^2+z^2=a^2,\ z\geq0 (excluding the equatorial disk), oriented outward, and let
F=(x+eyz)i+(yexz)j+zk.\mathbf F=\big(x+e^{yz}\big)\,\mathbf i+\big(y-e^{xz}\big)\,\mathbf j+z\,\mathbf k.
Evaluate SFdS\displaystyle\iint_S\mathbf F\cdot d\mathbf S.

Solution. A direct computation is hopeless: parametrising the hemisphere and substituting leaves integrals of eyze^{yz} and exze^{xz} over a curved surface, admitting no elementary closed form. This is the signal to close the lid.

First, the divergence:
F=x(x+eyz)+y(yexz)+z(z)=1+1+1=3\nabla\cdot\mathbf F=\frac{\partial}{\partial x}\big(x+e^{yz}\big)+\frac{\partial}{\partial y}\big(y-e^{xz}\big)+\frac{\partial}{\partial z}(z)=1+1+1=3
— the exponential terms vanish under differentiation because each depends only on the other two variables, never the one being differentiated. (This is not an accident of this particular problem; it is exactly how such "decoy" terms are engineered by problem-setters.)

Let VV be the solid upper half-ball and close SS with the equatorial disk D: x2+y2a2, z=0D:\ x^2+y^2\leq a^2,\ z=0, whose outward normal (pointing out of VV) is k-\mathbf k. On DD,
F(k)=z=0,\mathbf F\cdot(-\mathbf k)=-z=0,
so the flux through the lid is exactly zero, regardless of the exponential terms — because those terms never even enter a computation that dots only with k-\mathbf k.

By the Divergence Theorem applied to the closed surface SD=VS\cup D=\partial V:
SFdS+DFdS=0=V3dV=3Vol(V)=323πa3=2πa3.\iint_S\mathbf F\cdot d\mathbf S+\underbrace{\iint_D\mathbf F\cdot d\mathbf S}_{=0}=\iiint_V3\,dV=3\cdot\text{Vol}(V)=3\cdot\frac23\pi a^3=2\pi a^3.
Therefore
SFdS=2πa3.\iint_S\mathbf F\cdot d\mathbf S=2\pi a^3.
Just as with Stokes' surface-swapping tactic above, the closed hemisphere's cap could equally well have been replaced by any surface sharing its boundary circle; the flat disk is simply the cheapest one available.


Appendix A. Master Formula Sheet

Part I — Foundations
abf(x)dx=G(b)G(a);udv=uvvdu;ex[f(x)+f(x)]dx=exf(x)+C.\int_a^bf(x)\,dx=G(b)-G(a);\qquad\int u\,dv=uv-\int v\,du;\qquad\int e^x[f(x)+f'(x)]\,dx=e^xf(x)+C.

Part II — Symmetry
abf(x)dx=abf(a+bx)dx;0nTf=n0Tf  if f has period T.\int_a^bf(x)\,dx=\int_a^bf(a+b-x)\,dx;\qquad\int_0^{nT}f=n\int_0^Tf\ \text{ if } f \text{ has period } T.

Part III — Tactical Substitutions
Extract xnx^n from (a+bxn)p/q(a+bx^n)^{p/q}; twins t=x±1xt=x\pm\frac1x for x2±1x4+kx2+1\frac{x^2\pm1}{x^4+kx^2+1}; invert with x=1tx=\frac1t; Euler's three substitutions for ax2+bx+c\sqrt{ax^2+bx+c}.

Part IV — Feynman's Trick
ddαabf(x,α)dx=abfαdx;0du(u2+p2)(u2+q2)=π2pq(p+q).\frac{d}{d\alpha}\int_a^bf(x,\alpha)\,dx=\int_a^b\frac{\partial f}{\partial\alpha}\,dx;\qquad\int_0^\infty\frac{du}{(u^2+p^2)(u^2+q^2)}=\frac\pi{2pq(p+q)}.

Part V — Weierstrass
t=tanx2:sinx=2t1+t2,  cosx=1t21+t2,  dx=2dt1+t2.t=\tan\frac x2:\quad\sin x=\frac{2t}{1+t^2},\ \ \cos x=\frac{1-t^2}{1+t^2},\ \ dx=\frac{2\,dt}{1+t^2}.
asinx+bcosx+ca\sin x+b\cos x+c Weierstrass-simplifies to a perfect square exactly when a2+b2=c2a^2+b^2=c^2.

Part VI — Gamma and Beta
Γ(n)=(n1)!;Γ ⁣(12)=π;B(m,n)=Γ(m)Γ(n)Γ(m+n);0π/2sinp ⁣xcosq ⁣xdx=12B ⁣(p+12,q+12);\Gamma(n)=(n-1)!;\quad\Gamma\!\left(\tfrac12\right)=\sqrt\pi;\quad B(m,n)=\frac{\Gamma(m)\Gamma(n)}{\Gamma(m+n)};\quad\int_0^{\pi/2}\sin^p\!x\cos^q\!x\,dx=\frac12B\!\left(\tfrac{p+1}2,\tfrac{q+1}2\right);
0xm1(1+x)m+ndx=B(m,n);01xm ⁣(ln1x)ndx=Γ(n+1)(m+1)n+1;\int_0^\infty\frac{x^{m-1}}{(1+x)^{m+n}}\,dx=B(m,n);\quad\int_0^1x^m\!\left(\ln\tfrac1x\right)^ndx=\frac{\Gamma(n+1)}{(m+1)^{n+1}};
Γ(z)Γ(1z)=πsinπz;Γ(z)Γ ⁣(z+12)=212zπΓ(2z);0dx1+xn=πnsin(π/n).\Gamma(z)\Gamma(1-z)=\frac\pi{\sin\pi z};\qquad\Gamma(z)\Gamma\!\left(z+\tfrac12\right)=2^{1-2z}\sqrt\pi\,\Gamma(2z);\qquad\int_0^\infty\frac{dx}{1+x^n}=\frac\pi{n\sin(\pi/n)}.

Part VII — Multiple Integrals
dApolar=rdrdθ;dVcyl=rdrdθdz;dVsph=ρ2sinϕdρdϕdθ;dA_{\text{polar}}=r\,dr\,d\theta;\quad dV_{\text{cyl}}=r\,dr\,d\theta\,dz;\quad dV_{\text{sph}}=\rho^2\sin\phi\,d\rho\,d\phi\,d\theta;
simplexxp1yq1zr1dV=Γ(p)Γ(q)Γ(r)Γ(p+q+r+1)(Dirichlet);\iiint_{\text{simplex}}x^{p-1}y^{q-1}z^{r-1}\,dV=\frac{\Gamma(p)\Gamma(q)\Gamma(r)}{\Gamma(p+q+r+1)}\quad\text{(Dirichlet)};
xp1yq1zr1dV=apbqcrαβγΓ(p/α)Γ(q/β)Γ(r/γ)Γ(p/α+q/β+r/γ+1)(Liouville, ellipsoid).\iiint x^{p-1}y^{q-1}z^{r-1}\,dV=\frac{a^pb^qc^r}{\alpha\beta\gamma}\cdot\frac{\Gamma(p/\alpha)\Gamma(q/\beta)\Gamma(r/\gamma)}{\Gamma(p/\alpha+q/\beta+r/\gamma+1)}\quad\text{(Liouville, ellipsoid).}

Part VIII — Vector Calculus
C(Pdx+Qdy)=D(QxPy)dA;Area=12C(xdyydx);\oint_C(P\,dx+Q\,dy)=\iint_D\left(\frac{\partial Q}{\partial x}-\frac{\partial P}{\partial y}\right)dA;\qquad\text{Area}=\frac12\oint_C(x\,dy-y\,dx);
CFdr=S(×F)dS(Stokes);SFdS=V(F)dV(Gauss);\oint_C\mathbf F\cdot d\mathbf r=\iint_S(\nabla\times\mathbf F)\cdot d\mathbf S\quad\text{(Stokes)};\qquad\iint_S\mathbf F\cdot d\mathbf S=\iiint_V(\nabla\cdot\mathbf F)\,dV\quad\text{(Gauss)};
×F=0\nabla\times\mathbf F=\mathbf 0 on a simply connected domain     \iff F\mathbf F conservative     \iff path-independent, value =f(B)f(A)=f(B)-f(A).


Closing Remarks — A Problem-Solver's Philosophy

Three habits separate the candidate who merely knows these results from the one who deploys them under time pressure.

First, look before you compute. Every technique in this treatise exists because someone recognised a pattern — a Pythagorean triple hiding in three coefficients, a factor of f+ff+f' disguised inside a quotient, a bi-quadratic denominator signalling x±1xx\pm\frac1x — before writing a single line of algebra. The recognition is the hard part; the calculus that follows is almost always mechanical.

Second, symmetry outranks brute force. An integral that surrenders in two lines to King's Rule, to a parity argument, or to the Dirichlet/Liouville formulas will resist an hour of direct computation along the "obvious" route. Whenever an interval, a domain, or an integrand looks even faintly symmetric, test the symmetry before doing anything else.

Third, the boundary is often easier than the interior, and vice versa. This single idea, present already in the Fundamental Theorem of Calculus of §1.1, is the entire content of Green's Theorem, Stokes' Theorem, and the Divergence Theorem. It is worth asking of every such problem — would the other side of this theorem be easier? — before committing to a method. The hemisphere-flux problem of Part VIII exists precisely to make the cost of ignoring this question vivid: computed directly, it is all but impossible; computed via its boundary's boundary, it is three lines.

The techniques collected here will not, by themselves, solve every hard integral a JEE Advanced paper or an Olympiad shortlist can produce — no finite list could. What they will do is furnish the first move for the overwhelming majority of problems these examinations actually set, which is very often the only move that matters.

+
+
+
+