Integrals — Complete Guide with Solved Examples

Complete guide to integrals for Class 12. Solved examples, exam tips, PYQs.

CBSE JEE-MAIN JEE-ADVANCED 13 min read

What Is Integration, Really?

If differentiation asks “how fast is this changing?”, integration asks “how much has accumulated?” These two questions are mirror images of each other — and that relationship is the entire foundation of calculus.

Think of it this way: if you know a car’s velocity at every instant, integration tells you the total distance covered. If you know how quickly a tank fills, integration gives you total volume. The geometric picture is the area under a curve — but the deeper idea is accumulation.

We have two flavours to work with. A definite integral gives a number — the actual area between x=ax = a and x=bx = b. An indefinite integral gives a family of functions — all possible antiderivatives, differing by a constant.

f(x)dx=F(x)+Cwhere F(x)=f(x)\int f(x)\, dx = F(x) + C \quad \text{where } F'(x) = f(x)

That +C+ C is not optional. Every time you write an indefinite integral without it, you’re technically wrong — and board examiners notice.

The reason Class 12 students find integrals harder than derivatives is simple: differentiation has mechanical rules that always work. Integration is more like solving a puzzle — you have to recognise the pattern first, then choose the technique. The good news? JEE Main repeats patterns. Once you’ve seen enough of them, you’ll start recognising the puzzle pieces.


Key Terms and Definitions

Antiderivative (Primitive): A function F(x)F(x) such that F(x)=f(x)F'(x) = f(x). Integration finds antiderivatives.

Indefinite Integral: f(x)dx=F(x)+C\int f(x)\, dx = F(x) + C. No limits, gives a general function.

Definite Integral: abf(x)dx=F(b)F(a)\int_a^b f(x)\, dx = F(b) - F(a). Has limits aa (lower) and bb (upper), gives a number.

Integrand: The function being integrated — the f(x)f(x) part.

Variable of Integration: The dxdx part. It tells us with respect to what we’re integrating. Don’t treat it as decoration — it’s crucial in substitution.

Constant of Integration (CC): Added to all indefinite integrals because differentiating any constant gives zero. The general solution is a family of curves.

Area Under a Curve: Geometrically, abf(x)dx\int_a^b f(x)\, dx is the signed area between the curve y=f(x)y = f(x) and the x-axis from aa to bb. Area below the x-axis contributes negatively.


Core Methods

Standard Formulas (Non-Negotiable)

Memorise these cold. Every technique eventually reduces to one of these.

xndx=xn+1n+1+C,n1\int x^n\, dx = \frac{x^{n+1}}{n+1} + C, \quad n \neq -1 1xdx=lnx+C\int \frac{1}{x}\, dx = \ln|x| + C exdx=ex+C\int e^x\, dx = e^x + C axdx=axlna+C\int a^x\, dx = \frac{a^x}{\ln a} + C sinxdx=cosx+C\int \sin x\, dx = -\cos x + C cosxdx=sinx+C\int \cos x\, dx = \sin x + C sec2xdx=tanx+C\int \sec^2 x\, dx = \tan x + C cosec2xdx=cotx+C\int \cosec^2 x\, dx = -\cot x + C secxtanxdx=secx+C\int \sec x \tan x\, dx = \sec x + C cosecxcotxdx=cosecx+C\int \cosec x \cot x\, dx = -\cosec x + C 11x2dx=sin1x+C\int \frac{1}{\sqrt{1-x^2}}\, dx = \sin^{-1} x + C 11+x2dx=tan1x+C\int \frac{1}{1+x^2}\, dx = \tan^{-1} x + C 1xx21dx=sec1x+C\int \frac{1}{x\sqrt{x^2-1}}\, dx = \sec^{-1} x + C

Method 1: Substitution (U-Substitution)

The most important technique. The idea: if you see a function and its derivative inside the same integral, substitute.

When to use: When the integrand has a composite function like f(g(x))g(x)f(g(x)) \cdot g'(x).

Process:

  1. Identify a substitution u=g(x)u = g(x)
  2. Compute du=g(x)dxdu = g'(x)\, dx, so dx=dug(x)dx = \frac{du}{g'(x)}
  3. Rewrite everything in terms of uu
  4. Integrate, then substitute back

Worked Example: 2xex2dx\int 2x \cdot e^{x^2}\, dx

Let u=x2u = x^2, so du=2xdxdu = 2x\, dx.

eudu=eu+C=ex2+C\int e^u\, du = e^u + C = e^{x^2} + C

The “tell” for substitution: look for a function and something that looks like its derivative sitting together. In lnxxdx\int \frac{\ln x}{x}\, dx, you see lnx\ln x and 1x\frac{1}{x} (derivative of lnx\ln x) — classic substitution signal.


Method 2: Integration by Parts

Formula:

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

ILATE rule for choosing uu (pick whichever comes first in this order):

  • I — Inverse trig (sin1x\sin^{-1}x, tan1x\tan^{-1}x)
  • L — Logarithmic (lnx\ln x, logx\log x)
  • A — Algebraic (x2x^2, x3x^3, polynomials)
  • T — Trigonometric (sinx\sin x, cosx\cos x)
  • E — Exponential (exe^x, 2x2^x)

Worked Example: xcosxdx\int x \cos x\, dx

By ILATE: u=xu = x (Algebraic), dv=cosxdxdv = \cos x\, dx

du=dxdu = dx, v=sinxv = \sin x

xcosxdx=xsinxsinxdx=xsinx+cosx+C\int x \cos x\, dx = x \sin x - \int \sin x\, dx = x \sin x + \cos x + C

The formula ex[f(x)+f(x)]dx=exf(x)+C\int e^x[f(x) + f'(x)]\, dx = e^x f(x) + C appears almost every year in JEE Main. Recognise it on sight — don’t rederive it in the exam.


Method 3: Partial Fractions

Use when the integrand is a rational function (polynomial divided by polynomial) where the degree of numerator < degree of denominator.

Standard decompositions:

px+q(xa)(xb)=Axa+Bxb\frac{px + q}{(x-a)(x-b)} = \frac{A}{x-a} + \frac{B}{x-b} px+q(xa)2=Axa+B(xa)2\frac{px + q}{(x-a)^2} = \frac{A}{x-a} + \frac{B}{(x-a)^2} px2+qx+r(xa)(x2+bx+c)=Axa+Bx+Cx2+bx+c\frac{px^2 + qx + r}{(x-a)(x^2+bx+c)} = \frac{A}{x-a} + \frac{Bx+C}{x^2+bx+c}

Worked Example: 1x21dx\int \frac{1}{x^2 - 1}\, dx

1(x1)(x+1)=Ax1+Bx+1\frac{1}{(x-1)(x+1)} = \frac{A}{x-1} + \frac{B}{x+1}

Solving: A=12A = \frac{1}{2}, B=12B = -\frac{1}{2}

1x21dx=12lnx112lnx+1+C=12lnx1x+1+C\int \frac{1}{x^2-1}\, dx = \frac{1}{2}\ln|x-1| - \frac{1}{2}\ln|x+1| + C = \frac{1}{2}\ln\left|\frac{x-1}{x+1}\right| + C

Method 4: Definite Integral Properties

These are high-weightage in both CBSE and JEE. Knowing properties often reduces a 5-step problem to 2 steps.

abf(x)dx=abf(a+bx)dx(King Property)\int_a^b f(x)\, dx = \int_a^b f(a+b-x)\, dx \quad \text{(King Property)} 0af(x)dx=0af(ax)dx\int_0^a f(x)\, dx = \int_0^a f(a-x)\, dx aaf(x)dx={20af(x)dxif f is even0if f is odd\int_{-a}^{a} f(x)\, dx = \begin{cases} 2\int_0^a f(x)\, dx & \text{if } f \text{ is even} \\ 0 & \text{if } f \text{ is odd} \end{cases} 02af(x)dx={20af(x)dxif f(2ax)=f(x)0if f(2ax)=f(x)\int_0^{2a} f(x)\, dx = \begin{cases} 2\int_0^a f(x)\, dx & \text{if } f(2a-x) = f(x) \\ 0 & \text{if } f(2a-x) = -f(x) \end{cases}

The King Property is the most powerful. When you see 0π/2sinxsinx+cosxdx\int_0^{\pi/2} \frac{\sin x}{\sin x + \cos x}\, dx, don’t try to integrate directly — apply King.


Solved Examples

Example 1 — CBSE Level

Evaluate: x2+1x21dx\int \frac{x^2 + 1}{x^2 - 1}\, dx

Degree of numerator = degree of denominator, so first do polynomial division:

x2+1x21=1+2x21\frac{x^2+1}{x^2-1} = 1 + \frac{2}{x^2-1}

Now apply partial fractions to 2(x1)(x+1)=1x11x+1\frac{2}{(x-1)(x+1)} = \frac{1}{x-1} - \frac{1}{x+1}

(1+1x11x+1)dx=x+lnx1lnx+1+C\int \left(1 + \frac{1}{x-1} - \frac{1}{x+1}\right) dx = x + \ln|x-1| - \ln|x+1| + C

Example 2 — JEE Main Level

Evaluate: 0π/2sinxsinx+cosxdx\int_0^{\pi/2} \frac{\sin x}{\sin x + \cos x}\, dx

Let I=0π/2sinxsinx+cosxdxI = \int_0^{\pi/2} \frac{\sin x}{\sin x + \cos x}\, dx

By King Property (replace xx with π2x\frac{\pi}{2} - x):

I=0π/2cosxcosx+sinxdxI = \int_0^{\pi/2} \frac{\cos x}{\cos x + \sin x}\, dx

Adding both expressions:

2I=0π/2sinx+cosxsinx+cosxdx=0π/21dx=π22I = \int_0^{\pi/2} \frac{\sin x + \cos x}{\sin x + \cos x}\, dx = \int_0^{\pi/2} 1\, dx = \frac{\pi}{2} I=π4I = \frac{\pi}{4}

This exact question appeared in JEE Main 2023 Session 1. The trap is trying to simplify the integrand directly — always check if a property applies first.


Example 3 — JEE Advanced Level

Evaluate: tanxdx\int \sqrt{\tan x}\, dx

Let t=tanxt = \sqrt{\tan x}, so t2=tanxt^2 = \tan x, 2tdt=sec2xdx=(1+t4)dx2t\, dt = \sec^2 x\, dx = (1 + t^4)\, dx

tanxdx=2t21+t4dt\int \sqrt{\tan x}\, dx = \int \frac{2t^2}{1+t^4}\, dt

Split: 2t21+t4=(t2+1)+(t21)1+t4\frac{2t^2}{1+t^4} = \frac{(t^2+1) + (t^2-1)}{1+t^4}

Divide numerator and denominator by t2t^2:

1+1/t2t2+1/t2dt+11/t2t2+1/t2dt\int \frac{1 + 1/t^2}{t^2 + 1/t^2}\, dt + \int \frac{1 - 1/t^2}{t^2 + 1/t^2}\, dt

Each becomes a standard form by completing the square. This problem tests whether you can reduce to dtu2±k2\int \frac{dt}{u^2 \pm k^2} form.


Exam-Specific Tips

CBSE Class 12: Integration carries about 20 marks across the paper (integrals + applications). The 3-mark questions almost always test substitution or by-parts. The 5-mark question typically combines a method with evaluation of a definite integral. Writing intermediate steps matters — partial credit is real.

JEE Main: Expect 2-3 questions from integrals per session. High-frequency topics: definite integral using properties (King property especially), integrals of the form ex[f(x)+f(x)]dx\int e^x[f(x) + f'(x)]\, dx, and integrals reducible to tan1\tan^{-1} or ln\ln form. Time per question: roughly 2 minutes. If a question isn’t yielding in 90 seconds, skip and return.

JEE Advanced: Integration appears in longer, multi-part problems. Expect integration combined with differential equations, or definite integrals where you need to estimate bounds. The tanx\sqrt{\tan x} family, Walli’s formula applications, and bounded area problems are recurring themes. Walli’s formula (0π/2sinnxdx\int_0^{\pi/2} \sin^n x\, dx) saves significant time in Paper 2.


Common Mistakes to Avoid

Dropping the constant CC in indefinite integrals. In CBSE, this costs you marks on every single indefinite integral. Make it automatic.

Power rule on x1x^{-1}. Students write x1dx=x00+C\int x^{-1}\, dx = \frac{x^0}{0} + C. Division by zero. The correct answer is lnx+C\ln|x| + C — this is a separate formula to memorise, not a special case of the power rule.

Forgetting the modulus in lnx\ln|x|. When the argument of a logarithm comes from integration, it needs the modulus sign because ln\ln is only defined for positive numbers, but xx could be negative. Write lnx1\ln|x-1|, not ln(x1)\ln(x-1).

Wrong ILATE order. Students often pick the exponential as uu when there’s a polynomial present. By ILATE, Algebraic beats Exponential — so in x2exdx\int x^2 e^x\, dx, let u=x2u = x^2, not exe^x.

Signed area vs. actual area. 11x3dx=0\int_{-1}^{1} x^3\, dx = 0 because x3x^3 is odd. But the area enclosed between the curve and x-axis is not zero — it’s 2 times the area from 0 to 1. For “find the area” problems, integrate f(x)|f(x)|, not f(x)f(x) directly. Split the integral at zeros of ff.


Practice Questions

Q1. Evaluate 1x+xdx\int \frac{1}{\sqrt{x} + x}\, dx

Let x=t\sqrt{x} = t, so x=t2x = t^2, dx=2tdtdx = 2t\, dt.

2tdtt+t2=21+tdt=2ln1+x+C\int \frac{2t\, dt}{t + t^2} = \int \frac{2}{1+t}\, dt = 2\ln|1 + \sqrt{x}| + C

Q2. Evaluate 01x(1x)9dx\int_0^1 x(1-x)^9\, dx

By King Property, 01x(1x)9dx=01(1x)x9dx\int_0^1 x(1-x)^9\, dx = \int_0^1 (1-x)x^9\, dx

Adding: 2I=01x9(1x)+x(1x)9dx2I = \int_0^1 x^9(1-x) + x(1-x)^9\, dx

Easier to just expand directly:

I=01x(1x)9dx=B(2,10)=1!9!11!=1110I = \int_0^1 x(1-x)^9\, dx = B(2,10) = \frac{1! \cdot 9!}{11!} = \frac{1}{110}

Using Beta function: B(m,n)=(m1)!(n1)!(m+n1)!B(m,n) = \frac{(m-1)!(n-1)!}{(m+n-1)!}


Q3. Evaluate cosx(1+sinx)(2+sinx)dx\int \frac{\cos x}{(1 + \sin x)(2 + \sin x)}\, dx

Let t=sinxt = \sin x, dt=cosxdxdt = \cos x\, dx.

dt(1+t)(2+t)=(11+t12+t)dt=ln1+sinxln2+sinx+C\int \frac{dt}{(1+t)(2+t)} = \int \left(\frac{1}{1+t} - \frac{1}{2+t}\right) dt = \ln|1+\sin x| - \ln|2+\sin x| + C

Q4. Evaluate 0πxsinxdx\int_0^{\pi} x \sin x\, dx (CBSE PYQ type)

Integration by parts: u=xu = x, dv=sinxdxdv = \sin x\, dx

du=dxdu = dx, v=cosxv = -\cos x

[xcosx]0π+0πcosxdx=π+[sinx]0π=π+0=π[{-x\cos x}]_0^{\pi} + \int_0^{\pi} \cos x\, dx = \pi + [\sin x]_0^{\pi} = \pi + 0 = \pi

Q5. Evaluate dx1+tanx\int \frac{dx}{1 + \tan x}

cosxcosx+sinxdx\int \frac{\cos x}{\cos x + \sin x}\, dx

Now apply King on definite version, or use the identity trick:

Write cosx=12[(cosx+sinx)+(cosxsinx)]\cos x = \frac{1}{2}[(\cos x + \sin x) + (\cos x - \sin x)]

121dx+12cosxsinxcosx+sinxdx=x2+12lnsinx+cosx+C\frac{1}{2}\int 1\, dx + \frac{1}{2}\int \frac{\cos x - \sin x}{\cos x + \sin x}\, dx = \frac{x}{2} + \frac{1}{2}\ln|\sin x + \cos x| + C

Q6. If 0af(x)dx=0af(ax)dx\int_0^a f(x)\, dx = \int_0^a f(a-x)\, dx, evaluate 0π/4ln(1+tanx)dx\int_0^{\pi/4} \ln(1 + \tan x)\, dx

Let I=0π/4ln(1+tanx)dxI = \int_0^{\pi/4} \ln(1+\tan x)\, dx

By King: I=0π/4ln ⁣(1+tan ⁣(π4x))dx=0π/4ln ⁣(21+tanx)dxI = \int_0^{\pi/4} \ln\!\left(1 + \tan\!\left(\frac{\pi}{4} - x\right)\right) dx = \int_0^{\pi/4} \ln\!\left(\frac{2}{1+\tan x}\right) dx

I=0π/4ln2dxII = \int_0^{\pi/4} \ln 2\, dx - I

2I=π4ln22I = \frac{\pi}{4}\ln 2

I=π8ln2I = \frac{\pi}{8}\ln 2


Q7. Evaluate ex(x1x2)dx\int e^x \left(\frac{x-1}{x^2}\right) dx

Rewrite: x1x2=1x1x2\frac{x-1}{x^2} = \frac{1}{x} - \frac{1}{x^2}

This is exactly the form ex[f(x)+f(x)]dx\int e^x[f(x) + f'(x)]\, dx with f(x)=1xf(x) = \frac{1}{x}, f(x)=1x2f'(x) = -\frac{1}{x^2}.

Answer: exx+C\frac{e^x}{x} + C


Q8. Evaluate 02πsinxdx\int_0^{2\pi} |\sin x|\, dx

sinx0\sin x \geq 0 on [0,π][0, \pi] and sinx0\sin x \leq 0 on [π,2π][\pi, 2\pi].

0πsinxdx+π2π(sinx)dx=[cosx]0π+[cosx]π2π\int_0^{\pi} \sin x\, dx + \int_{\pi}^{2\pi} (-\sin x)\, dx = [-\cos x]_0^{\pi} + [\cos x]_{\pi}^{2\pi} =(1+1)+(1+1)=4= (1+1) + (1+1) = 4

FAQs

What is the difference between definite and indefinite integrals?

An indefinite integral gives a function (family of antiderivatives) with a +C+C. A definite integral evaluates between two limits and gives a specific number. The Fundamental Theorem of Calculus connects them: the definite integral is computed using the antiderivative evaluated at the limits.

Why do we add +C+C in indefinite integration?

Because differentiation destroys constants — ddx(x2+5)=2x\frac{d}{dx}(x^2 + 5) = 2x and ddx(x2+100)=2x\frac{d}{dx}(x^2 + 100) = 2x. So 2xdx\int 2x\, dx could be x2+5x^2 + 5 or x2+100x^2 + 100 or any constant. We write x2+Cx^2 + C to capture the entire family.

Which integration method should I try first?

Check in this order: (1) Is it a standard formula directly? (2) Can substitution simplify it — do I see a function and its derivative? (3) Is it a product that fits IBP/ILATE? (4) Is it a rational function needing partial fractions? (5) Does a trig identity simplify first?

How do I handle area problems when the curve goes below the x-axis?

Find where f(x)=0f(x) = 0 in the interval. Split the integral at those zeros. Take the absolute value (or negate) the portions where f(x) &lt; 0. Total area =f(x)dx= \int |f(x)|\, dx.

What is Walli’s Formula and do I need it for JEE?

For JEE Advanced, yes. 0π/2sinnxdx=0π/2cosnxdx\int_0^{\pi/2} \sin^n x\, dx = \int_0^{\pi/2} \cos^n x\, dx. For even nn: (n1)!!n!!π2\frac{(n-1)!!}{n!!} \cdot \frac{\pi}{2}. For odd nn: (n1)!!n!!\frac{(n-1)!!}{n!!}. It saves 3-4 minutes on problems with high powers of sin\sin or cos\cos.

Can the limits of a definite integral be swapped?

Yes — swapping limits changes the sign: abf(x)dx=baf(x)dx\int_a^b f(x)\, dx = -\int_b^a f(x)\, dx. Also, aaf(x)dx=0\int_a^a f(x)\, dx = 0 always.

How many marks does integration carry in CBSE Class 12?

Roughly 20-22 marks across the paper — including the integrals chapter directly (around 10 marks) plus applications of integrals (area, another 6 marks) and differential equations which use integration (another 5 marks). It’s the single highest-weightage topic in Class 12 Maths.

Practice Questions