Skip to main content
Definite Integration7 min read

Wallis' Formula: A Complete Guide for JEE Aspirants

Wallis' Formula, named after the English mathematician John Wallis (1616–1703), provides an efficient method for evaluating definite integrals of the form:

definite-integrationwallis-formulatrigonometrictechniques

Wallis' Formula: A Complete Guide for JEE Aspirants

1. Introduction

Wallis' Formula, named after the English mathematician John Wallis (1616–1703), provides an efficient method for evaluating definite integrals of the form: 0π/2sinnxdxor0π/2cosnxdx,\int_0^{\pi/2} \sin^n x \, dx \quad \text{or} \quad \int_0^{\pi/2} \cos^n x \, dx, where nn is a non‑negative integer.
For JEE aspirants, mastering this formula saves valuable time in competitive exams by avoiding lengthy integration by parts or reduction‑formula steps. It is frequently applied directly or after a suitable substitution in JEE Main and Advanced problems.


2. Basic Symmetry

For any integer n0n \ge 0, 0π/2sinnxdx=0π/2cosnxdx.\int_0^{\pi/2} \sin^n x \, dx = \int_0^{\pi/2} \cos^n x \, dx. This follows from the substitution xπ2xx \mapsto \frac{\pi}{2} - x.
Denote the common value by InI_n.


3. Wallis' Formula for 0π/2sinnxdx\int_0^{\pi/2} \sin^n x \, dx

Case A: nn is odd (n1n \ge 1)

In=(n1)(n3)(n5)42n(n2)(n4)53.I_n = \frac{(n-1)(n-3)(n-5) \cdots 4 \cdot 2}{\,n(n-2)(n-4) \cdots 5 \cdot 3\,}. Example: For n=7n = 7,
I7=642753=48105=1635.I_7 = \frac{6 \cdot 4 \cdot 2}{7 \cdot 5 \cdot 3} = \frac{48}{105} = \frac{16}{35}.

Case B: nn is even (n2n \ge 2)

In=(n1)(n3)(n5)31n(n2)(n4)42π2.I_n = \frac{(n-1)(n-3)(n-5) \cdots 3 \cdot 1}{\,n(n-2)(n-4) \cdots 4 \cdot 2\,} \cdot \frac{\pi}{2}. Example: For n=6n = 6,
I6=531642π2=1548π2=5π32.I_6 = \frac{5 \cdot 3 \cdot 1}{6 \cdot 4 \cdot 2} \cdot \frac{\pi}{2} = \frac{15}{48} \cdot \frac{\pi}{2} = \frac{5\pi}{32}.

Key points to remember:

  • For odd nn, the product in the numerator ends at 2, and the denominator ends at 3.
  • For even nn, the product in the numerator ends at 1, and the denominator ends at 2.
  • The factor π2\frac{\pi}{2} appears only when nn is even.

4. Generalization: 0π/2sinmxcosnxdx\int_0^{\pi/2} \sin^m x \cos^n x \, dx

Let J(m,n)=0π/2sinmxcosnxdx,m,n0.J(m,n) = \int_0^{\pi/2} \sin^m x \cos^n x \, dx, \quad m, n \ge 0. Then J(m,n)=[(m1)(m3)][(n1)(n3)](m+n)(m+n2)(m+n4) × α,J(m,n) = \frac{\big[(m-1)(m-3)\cdots\big] \, \big[(n-1)(n-3)\cdots\big]} {(m+n)(m+n-2)(m+n-4)\cdots} \ \times\ \alpha, where:

  • The products in the numerator run until a term 1\le 1 is reached.
  • The product in the denominator decreases by 2 each step until a term 2\le 2 is reached.
  • Factor α\alpha is:
    • α=π2\alpha = \dfrac{\pi}{2} if both mm and nn are even;
    • α=1\alpha = 1 otherwise.

Example 1: m=4m=4 (even), n=2n=2 (even)
J(4,2)=(31)(1)642π2=348π2=π32.J(4,2) = \frac{(3\cdot1)(1)}{6\cdot4\cdot2} \cdot \frac{\pi}{2} = \frac{3}{48} \cdot \frac{\pi}{2} = \frac{\pi}{32}.

Example 2: m=3m=3 (odd), n=4n=4 (even)
J(3,4)=(2)(31)7531=6105=235.J(3,4) = \frac{(2)(3\cdot1)}{7\cdot5\cdot3} \cdot 1 = \frac{6}{105} = \frac{2}{35}.


5. Derivation via Reduction Formula

The formulas follow from the reduction relation In=n1nIn2,n2,I_n = \frac{n-1}{n} I_{n-2}, \quad n \ge 2, with initial values I0=π2I_0 = \frac{\pi}{2} and I1=1I_1 = 1.
Repeated application gives the product formulas above.

For J(m,n)J(m,n), the reduction formula is J(m,n)=m1m+nJ(m2,n)=n1m+nJ(m,n2),J(m,n) = \frac{m-1}{m+n}\, J(m-2,n) = \frac{n-1}{m+n}\, J(m,n-2), used until the exponents become 0 or 1.


6. Quick Reference Table (Memorize for Speed)

nn0π/2sinnxdx=0π/2cosnxdx\displaystyle \int_0^{\pi/2} \sin^n x \, dx = \int_0^{\pi/2} \cos^n x \, dx
0π2\frac{\pi}{2}
11
2π4\frac{\pi}{4}
323\frac{2}{3}
43π16\frac{3\pi}{16}
5815\frac{8}{15}
65π32\frac{5\pi}{32}
71635\frac{16}{35}
835π256\frac{35\pi}{256}

7. Worked Examples (Step‑by‑Step)

Example 1

Evaluate 0π/2sin5xdx\displaystyle \int_0^{\pi/2} \sin^5 x \, dx.

Solution:
Here n=5n = 5 (odd).
I5=4253=815.I_5 = \frac{4 \cdot 2}{5 \cdot 3} = \frac{8}{15}.

Example 2

Evaluate 0π/2cos4xdx\displaystyle \int_0^{\pi/2} \cos^4 x \, dx.

Solution:
Here n=4n = 4 (even).
I4=3142π2=38π2=3π16.I_4 = \frac{3 \cdot 1}{4 \cdot 2} \cdot \frac{\pi}{2} = \frac{3}{8} \cdot \frac{\pi}{2} = \frac{3\pi}{16}.

Example 3

Evaluate 0π/2sin3xcos5xdx\displaystyle \int_0^{\pi/2} \sin^3 x \cos^5 x \, dx.

Solution:
Here m=3m = 3 (odd), n=5n = 5 (odd) → α=1\alpha = 1.
J(3,5)=(2)(42)86421=16384=124.J(3,5) = \frac{(2)(4\cdot2)}{8\cdot6\cdot4\cdot2} \cdot 1 = \frac{16}{384} = \frac{1}{24}.


8. Previous Year JEE Problems (Solved)

Problem 1 (JEE Main Pattern)

Find π/2π/2sin2x1+2xdx\displaystyle \int_{-\pi/2}^{\pi/2} \frac{\sin^2 x}{1+2^x} \, dx.

Solution:
Let I=π/2π/2sin2x1+2xdxI = \displaystyle \int_{-\pi/2}^{\pi/2} \frac{\sin^2 x}{1+2^x} \, dx.
Use the property aaf(x)dx=0a[f(x)+f(x)]dx\int_{-a}^{a} f(x) dx = \int_0^a [f(x) + f(-x)] dx.
Here f(x)=sin2x1+2xf(x) = \frac{\sin^2 x}{1+2^x}, so f(x)=sin2x1+2x=2xsin2x1+2x.f(-x) = \frac{\sin^2 x}{1+2^{-x}} = \frac{2^x \sin^2 x}{1+2^x}. Adding, f(x)+f(x)=sin2x.f(x) + f(-x) = \sin^2 x. Hence I=0π/2sin2xdx=π4(from table).I = \int_0^{\pi/2} \sin^2 x \, dx = \frac{\pi}{4} \quad (\text{from table}).

Answer: π4\dfrac{\pi}{4}.


Problem 2 (JEE Advanced Pattern)

If In=0π/2sinnxdxI_n = \int_0^{\pi/2} \sin^n x \, dx, find I4+I6I5+I7\dfrac{I_4 + I_6}{I_5 + I_7}.

Solution:
From the table: I4=3π16,I5=815,I6=5π32,I7=1635.I_4 = \frac{3\pi}{16}, \quad I_5 = \frac{8}{15}, \quad I_6 = \frac{5\pi}{32}, \quad I_7 = \frac{16}{35}. Thus I4+I6=3π16+5π32=6π+5π32=11π32,I_4 + I_6 = \frac{3\pi}{16} + \frac{5\pi}{32} = \frac{6\pi + 5\pi}{32} = \frac{11\pi}{32}, I5+I7=815+1635=56+48105=104105.I_5 + I_7 = \frac{8}{15} + \frac{16}{35} = \frac{56 + 48}{105} = \frac{104}{105}. Therefore I4+I6I5+I7=11π/32104/105=11π10532104=1155π3328.\frac{I_4 + I_6}{I_5 + I_7} = \frac{11\pi/32}{104/105} = \frac{11\pi \cdot 105}{32 \cdot 104} = \frac{1155\pi}{3328}.

Answer: 1155π3328\dfrac{1155\pi}{3328}.


Problem 3 (IIT‑JEE Style)

Evaluate 0π/2dxsin6x+cos6x\displaystyle \int_0^{\pi/2} \frac{dx}{\sin^6 x + \cos^6 x}.

Hints:

  1. Use sin6x+cos6x=134sin22x\sin^6 x + \cos^6 x = 1 - \frac{3}{4}\sin^2 2x.
  2. Substitute t=2xt = 2x and simplify to an integral involving csc2\csc^2 or use symmetry.
  3. The final answer is π2\frac{\pi}{2}.
    (Try solving it completely as an exercise.)

9. Connection to Gamma Function

For advanced readers, Wallis' integrals can be expressed using the Gamma function: 0π/2sinnxdx=π  Γ ⁣(n+12)2  Γ ⁣(n+22).\int_0^{\pi/2} \sin^n x \, dx = \frac{\sqrt{\pi}\; \Gamma\!\left(\frac{n+1}{2}\right)} {2\; \Gamma\!\left(\frac{n+2}{2}\right)}. This extends the formula to non‑integer nn.


10. Wallis' Infinite Product for π\pi

A famous corollary is Wallis' product: π2=n=14n24n21=221344356657.\frac{\pi}{2} = \prod_{n=1}^{\infty} \frac{4n^2}{4n^2-1} = \frac{2\cdot2}{1\cdot3} \cdot \frac{4\cdot4}{3\cdot5} \cdot \frac{6\cdot6}{5\cdot7} \cdots. It is historically important as an early infinite representation of π\pi.


11. Essential Tips for JEE

  1. Memorize the table up to n=8n = 8.
  2. Identify even/odd nature of the exponent quickly – the π2\frac{\pi}{2} factor appears only for even nn in the basic formula, and only when both exponents are even in the general J(m,n)J(m,n) formula.
  3. Use symmetry properties first:
    • 0af(x)dx=0af(ax)dx\int_0^a f(x) dx = \int_0^a f(a-x) dx
    • For even functions: aaf(x)dx=20af(x)dx\int_{-a}^a f(x) dx = 2\int_0^a f(x) dx
    • For integrals with 11+ex\frac{1}{1+e^x} or similar, combine f(x)f(x) and f(x)f(-x).
  4. Reduce to standard form via substitutions (e.g., x=π2tx = \frac{\pi}{2} - t, or using double‑angle formulas).
  5. Practice previous year problems to recognize when Wallis' formula is applicable, often after a simple manipulation.

12. Summary of Formulas

Integral TypeConditionResult
0π/2sinnxdx\int_0^{\pi/2} \sin^n x \, dxnn odd(n1)(n3)2n(n2)3\dfrac{(n-1)(n-3)\cdots 2}{n(n-2)\cdots 3}
0π/2sinnxdx\int_0^{\pi/2} \sin^n x \, dxnn even(n1)(n3)1n(n2)2π2\dfrac{(n-1)(n-3)\cdots 1}{n(n-2)\cdots 2} \cdot \dfrac{\pi}{2}
0π/2sinmxcosnxdx\int_0^{\pi/2} \sin^m x \cos^n x \, dxboth m,nm, n evenInclude factor π2\dfrac{\pi}{2}
0π/2sinmxcosnxdx\int_0^{\pi/2} \sin^m x \cos^n x \, dxotherwiseNo π2\dfrac{\pi}{2} factor

Master Wallis' formula through consistent practice. It is a powerful tool that, when combined with symmetry and substitution techniques, can solve many JEE definite‑integral problems in seconds.

Ready to Apply These Techniques?

Practice with real JEE Main questions and see these methods in action.

Practice Definite Integration PYQs