Integration is differentiation in reverse
Differentiation takes a function and gives you its rate of change. Integration runs the other way. You are handed the derivative and asked for the function it came from. That function is called an antiderivative.
Since \(\dfrac{d}{dx}(x^3) = 3x^2\), one antiderivative of \(3x^2\) is \(x^3\). But \(x^3 + 7\) and \(x^3 - 2\) have the same derivative, because a constant differentiates to zero. So we write the whole family at once, with a constant \(C\).
If \(\dfrac{d}{dx}F(x) = f(x)\), then \[\int f(x)\,dx = F(x) + C\]
Read it as "the integral of \(f(x)\) with respect to \(x\)". \(f(x)\) is the integrand and \(C\) is the constant of integration.
So every formula on this page is a derivative you already know, read backwards. If you forget one, differentiate the answer you think is right and see whether the integrand comes back. More on antiderivatives and how to find \(C\) from a given point is in indefinite integration.
The basic rules
Here \(f\) and \(g\) are functions of \(x\) and \(k\) is a constant.
| Rule | Formula |
|---|---|
| Constant multiple | \(\int k\,f(x)\,dx = k\int f(x)\,dx\) |
| Sum and difference | \(\int \big[f(x) \pm g(x)\big]\,dx = \int f(x)\,dx \pm \int g(x)\,dx\) |
| Derivative of an integral | \(\dfrac{d}{dx}\int f(x)\,dx = f(x)\) |
| Integral of a derivative | \(\int f'(x)\,dx = f(x) + C\) |
Notice what is missing. There is no product rule and no quotient rule. \(\int f(x)g(x)\,dx\) is not \(\int f(x)\,dx \cdot \int g(x)\,dx\). Products need substitution or integration by parts.
Standard integrals
Powers of x
| \(f(x)\) | \(\int f(x)\,dx\) | Valid for |
|---|---|---|
| \(x^n\) | \(\dfrac{x^{n+1}}{n+1} + C\) | \(n \ne -1\) |
| \(1\) | \(x + C\) | all \(x\) |
| \(\dfrac{1}{x}\) | \(\log|x| + C\) | \(x \ne 0\) |
| \(\sqrt{x}\) | \(\dfrac{2}{3}x^{3/2} + C\) | \(x \ge 0\) |
| \(\dfrac{1}{\sqrt{x}}\) | \(2\sqrt{x} + C\) | \(x > 0\) |
| \(\dfrac{1}{x^2}\) | \(-\dfrac{1}{x} + C\) | \(x \ne 0\) |
Exponentials
| \(f(x)\) | \(\int f(x)\,dx\) | Valid for |
|---|---|---|
| \(e^x\) | \(e^x + C\) | all \(x\) |
| \(a^x\) | \(\dfrac{a^x}{\log a} + C\) | \(a > 0,\ a \ne 1\) |
Trigonometric functions
| \(f(x)\) | \(\int f(x)\,dx\) |
|---|---|
| \(\sin x\) | \(-\cos x + C\) |
| \(\cos x\) | \(\sin x + C\) |
| \(\sec^2 x\) | \(\tan x + C\) |
| \(\operatorname{cosec}^2 x\) | \(-\cot x + C\) |
| \(\sec x\tan x\) | \(\sec x + C\) |
| \(\operatorname{cosec} x\cot x\) | \(-\operatorname{cosec} x + C\) |
| \(\tan x\) | \(\log|\sec x| + C\), or \(-\log|\cos x| + C\) |
| \(\cot x\) | \(\log|\sin x| + C\) |
| \(\sec x\) | \(\log|\sec x + \tan x| + C\) |
| \(\operatorname{cosec} x\) | \(\log|\operatorname{cosec} x - \cot x| + C\) |
Each trig result holds wherever the integrand is defined: \(\cos x \ne 0\) for \(\tan x\), \(\sec x\) and \(\sec^2 x\), and \(\sin x \ne 0\) for \(\cot x\), \(\operatorname{cosec} x\) and \(\operatorname{cosec}^2 x\). Some books write \(\int \operatorname{cosec} x\,dx = \log\left|\tan\dfrac{x}{2}\right| + C\). It is the same answer, since \(\operatorname{cosec} x - \cot x = \tan\dfrac{x}{2}\).
Inverse trigonometric forms
| \(f(x)\) | \(\int f(x)\,dx\) | Valid for |
|---|---|---|
| \(\dfrac{1}{\sqrt{1 - x^2}}\) | \(\sin^{-1}x + C\) | \(|x| < 1\) |
| \(\dfrac{1}{1 + x^2}\) | \(\tan^{-1}x + C\) | all \(x\) |
| \(\dfrac{1}{x\sqrt{x^2 - 1}}\) | \(\sec^{-1}x + C\) | \(x > 1\) |
You may see \(-\cos^{-1}x + C\) in place of \(\sin^{-1}x + C\). Both are right. \(\sin^{-1}x + \cos^{-1}x = \dfrac{\pi}{2}\), so the two answers differ by a constant, and \(C\) takes care of it. In the same way \(-\cot^{-1}x\) can replace \(\tan^{-1}x\), and \(-\operatorname{cosec}^{-1}x\) can replace \(\sec^{-1}x\).
The minus signs swap sides. \(\dfrac{d}{dx}\cos x\) has a minus, so \(\int \sin x\,dx\) has one. \(\dfrac{d}{dx}\cot x\) has a minus, so \(\int \operatorname{cosec}^2 x\,dx\) has one.
Special integrals with a²
These nine appear the moment you start completing the square. In every row \(a > 0\).
| \(f(x)\) | \(\int f(x)\,dx\) | Valid for |
|---|---|---|
| \(\dfrac{1}{x^2 + a^2}\) | \(\dfrac{1}{a}\tan^{-1}\dfrac{x}{a} + C\) | all \(x\) |
| \(\dfrac{1}{x^2 - a^2}\) | \(\dfrac{1}{2a}\log\left|\dfrac{x - a}{x + a}\right| + C\) | \(x \ne \pm a\) |
| \(\dfrac{1}{a^2 - x^2}\) | \(\dfrac{1}{2a}\log\left|\dfrac{a + x}{a - x}\right| + C\) | \(x \ne \pm a\) |
| \(\dfrac{1}{\sqrt{a^2 - x^2}}\) | \(\sin^{-1}\dfrac{x}{a} + C\) | \(|x| < a\) |
| \(\dfrac{1}{\sqrt{x^2 + a^2}}\) | \(\log\left|x + \sqrt{x^2 + a^2}\right| + C\) | all \(x\) |
| \(\dfrac{1}{\sqrt{x^2 - a^2}}\) | \(\log\left|x + \sqrt{x^2 - a^2}\right| + C\) | \(|x| > a\) |
| \(\sqrt{a^2 - x^2}\) | \(\dfrac{x}{2}\sqrt{a^2 - x^2} + \dfrac{a^2}{2}\sin^{-1}\dfrac{x}{a} + C\) | \(|x| \le a\) |
| \(\sqrt{x^2 + a^2}\) | \(\dfrac{x}{2}\sqrt{x^2 + a^2} + \dfrac{a^2}{2}\log\left|x + \sqrt{x^2 + a^2}\right| + C\) | all \(x\) |
| \(\sqrt{x^2 - a^2}\) | \(\dfrac{x}{2}\sqrt{x^2 - a^2} - \dfrac{a^2}{2}\log\left|x + \sqrt{x^2 - a^2}\right| + C\) | \(|x| \ge a\) |
Two ways to keep them apart. First, look for the square root: no root and a plus sign gives \(\tan^{-1}\); \(a^2 - x^2\) under a root gives \(\sin^{-1}\); the other root forms give \(\log\left|x + \sqrt{\ \cdot\ }\right|\). Second, in the two log fractions the letter that comes first in the denominator also comes first on top: \(x - a\) for \(x^2 - a^2\), and \(a + x\) for \(a^2 - x^2\).
Engineering and Diploma note. Some books write \(\log\left|x + \sqrt{x^2 + a^2}\right|\) as \(\sinh^{-1}\dfrac{x}{a}\). The two differ only by the constant \(\log a\), so either answer is correct. Similarly \(\int \sinh x\,dx = \cosh x + C\) and \(\int \cosh x\,dx = \sinh x + C\).
Formulas with (ax + b)
If \(\int f(x)\,dx = F(x) + C\), then for any constants \(a \ne 0\) and \(b\):
\[\int f(ax + b)\,dx = \frac{1}{a}F(ax + b) + C\]
The \(\dfrac{1}{a}\) cancels the factor \(a\) that the chain rule produces when you differentiate \(F(ax + b)\).
| \(f(x)\) | \(\int f(x)\,dx\) |
|---|---|
| \((ax + b)^n\), \(n \ne -1\) | \(\dfrac{(ax + b)^{n+1}}{a(n+1)} + C\) |
| \(\dfrac{1}{ax + b}\) | \(\dfrac{1}{a}\log|ax + b| + C\) |
| \(e^{ax + b}\) | \(\dfrac{1}{a}e^{ax + b} + C\) |
| \(\sin(ax + b)\) | \(-\dfrac{1}{a}\cos(ax + b) + C\) |
| \(\cos(ax + b)\) | \(\dfrac{1}{a}\sin(ax + b) + C\) |
| \(\sec^2(ax + b)\) | \(\dfrac{1}{a}\tan(ax + b) + C\) |
This works only when the inside is linear. Dividing \(-\cos(x^2)\) by \(2x\) does not give \(\int \sin(x^2)\,dx\). An integral like \(\int x\sin(x^2)\,dx\), where the extra \(x\) is sitting outside, is a job for substitution: it equals \(-\dfrac{1}{2}\cos(x^2) + C\).
The \(e^x\big[f(x) + f'(x)\big]\) rule
\[\int e^x\big[f(x) + f'(x)\big]\,dx = e^x f(x) + C\]
Why it works: by the product rule, \(\dfrac{d}{dx}\big[e^x f(x)\big] = e^x f(x) + e^x f'(x)\). So the integrand is already a derivative. The skill is seeing the pair inside the bracket. In \(\int e^x(\sin x + \cos x)\,dx\), the \(\cos x\) is the derivative of \(\sin x\), so the answer is \(e^x\sin x + C\).
The rule also falls out of integration by parts. Example 6 below hides the pair inside a fraction.
Which method do I use?
The tables only help once the integrand looks like one of their rows. Go through these in order:
- Can I simplify first? Expand brackets, divide each term by \(x\), or use an identity such as \(\sin^2 x = \dfrac{1 - \cos 2x}{2}\). See indefinite integration.
- Is it in the tables, maybe with \(ax + b\) inside? Write the answer straight down.
- Can I see a function and its derivative? For example \(2x\cos(x^2)\) or \(\dfrac{\log x}{x}\). Put \(t\) equal to the inside: integration by substitution.
- Is it a product of two different kinds of function, like \(x\,e^x\) or \(x\sin x\), or a lone \(\log x\) or \(\tan^{-1}x\)? Use integration by parts. That is where \(\int \log x\,dx = x\log x - x + C\) comes from.
- Is it one polynomial over another, with a denominator that factorises? Use partial fractions.
- Is there a quadratic \(ax^2 + bx + c\) in the denominator or under a root that won't factorise? Complete the square and use section 4.
- Is it \(e^x\) times a bracket? Check whether the bracket is \(f(x) + f'(x)\).
Solved examples
Example 1: Powers and 1/x
EasyEvaluate \(\int \left(x^3 - 2\sqrt{x} + \dfrac{5}{x}\right)dx\).
- Write \(\sqrt{x}\) as \(x^{1/2}\). Its integral is \(\dfrac{x^{3/2}}{3/2} = \dfrac{2}{3}x^{3/2}\).
- \(\dfrac{5}{x}\) is the one power the power rule cannot handle. It gives \(5\log|x|\).
- Term by term: \(\dfrac{x^4}{4} - 2\cdot\dfrac{2}{3}x^{3/2} + 5\log|x|\).
Answer\(\dfrac{x^4}{4} - \dfrac{4}{3}x^{3/2} + 5\log|x| + C\), for \(x > 0\)
Example 2: Trig and a^x
EasyEvaluate \(\int \left(3\sin x - 2\sec^2 x + 4^x\right)dx\).
- \(\int \sin x\,dx = -\cos x\), \(\int \sec^2 x\,dx = \tan x\) and \(\int 4^x\,dx = \dfrac{4^x}{\log 4}\).
- Multiply by the constants: \(-3\cos x - 2\tan x + \dfrac{4^x}{\log 4}\).
Answer\(-3\cos x - 2\tan x + \dfrac{4^x}{\log 4} + C\)
Example 3: Expand before you integrate
MediumEvaluate \(\int \dfrac{(x + 1)^2}{\sqrt{x}}\,dx\).
- Expand the top: \((x + 1)^2 = x^2 + 2x + 1\).
- Divide each term by \(x^{1/2}\): \(x^{3/2} + 2x^{1/2} + x^{-1/2}\).
- Integrate each power: \(\dfrac{2}{5}x^{5/2} + 2\cdot\dfrac{2}{3}x^{3/2} + 2x^{1/2}\).
Answer\(\dfrac{2}{5}x^{5/2} + \dfrac{4}{3}x^{3/2} + 2\sqrt{x} + C\), for \(x > 0\)
Example 4: Linear insides
MediumEvaluate \(\int \big[(2x - 1)^5 + \cos 3x\big]\,dx\).
- For \((2x - 1)^5\), \(a = 2\) and \(n = 5\): \(\dfrac{(2x - 1)^6}{2 \times 6} = \dfrac{(2x - 1)^6}{12}\).
- For \(\cos 3x\), \(a = 3\): \(\dfrac{1}{3}\sin 3x\).
- Check by differentiating: \(\dfrac{6(2x - 1)^5 \cdot 2}{12} = (2x - 1)^5\) and \(\dfrac{3\cos 3x}{3} = \cos 3x\). ✓
Answer\(\dfrac{(2x - 1)^6}{12} + \dfrac{1}{3}\sin 3x + C\)
Example 5: A special integral
MediumEvaluate \(\int \dfrac{dx}{4x^2 + 9}\).
- The formula needs \(x^2\) on its own, so take out the 4: \(\dfrac{1}{4}\int \dfrac{dx}{x^2 + \frac{9}{4}}\).
- Now it is \(\dfrac{1}{x^2 + a^2}\) with \(a = \dfrac{3}{2}\).
- \(\dfrac{1}{4}\cdot\dfrac{1}{3/2}\tan^{-1}\dfrac{x}{3/2} = \dfrac{1}{4}\cdot\dfrac{2}{3}\tan^{-1}\dfrac{2x}{3}\).
Answer\(\dfrac{1}{6}\tan^{-1}\dfrac{2x}{3} + C\)
Example 6: The e^x rule in disguise
Exam levelEvaluate \(\int e^x\,\dfrac{x + 1}{(x + 2)^2}\,dx\).
- Write the top as \((x + 2) - 1\). Then \(\dfrac{x + 1}{(x + 2)^2} = \dfrac{1}{x + 2} - \dfrac{1}{(x + 2)^2}\).
- Take \(f(x) = \dfrac{1}{x + 2}\). Then \(f'(x) = -\dfrac{1}{(x + 2)^2}\), which is exactly the second term.
- So the integral is \(\int e^x\big[f(x) + f'(x)\big]\,dx = e^x f(x) + C\).
Answer\(\dfrac{e^x}{x + 2} + C\), for \(x \ne -2\)
Differentiate your answer before you move on. If the integrand comes back, you are done. If it comes back with an extra 3 or a wrong sign, you have caught the mistake in ten seconds instead of losing the whole question. The \((ax + b)\) forms and the log forms are where students slip most.
To print this page or save it as a PDF, use your browser's Print option.
Common mistakes
1. Using the power rule when \(n = -1\)
\(\int x^{-1}\,dx\) would give \(\dfrac{x^0}{0}\), which means nothing. The power rule stops at \(n = -1\). Use \(\int \dfrac{1}{x}\,dx = \log|x| + C\) instead.
2. Forgetting to divide by \(a\)
\(\int \cos 3x\,dx\) is \(\dfrac{1}{3}\sin 3x + C\), not \(\sin 3x + C\). Differentiate \(\sin 3x\) and you get \(3\cos 3x\), three times too big.
3. Integrating a product factor by factor
\(\int x\cos x\,dx\) is not \(\dfrac{x^2}{2}\sin x\). Differentiating that gives \(x\sin x + \dfrac{x^2}{2}\cos x\), not \(x\cos x\). Integration by parts gives the right answer, \(x\sin x + \cos x + C\).
Practice questions
Try each one on paper before you open the answer.
Q1Evaluate \(\int \left(4x^3 + \dfrac{2}{x} - \dfrac{3}{x^2}\right)dx\).
Write \(\dfrac{3}{x^2}\) as \(3x^{-2}\), whose integral is \(-3x^{-1}\). So the answer is \(x^4 + 2\log|x| + \dfrac{3}{x} + C\).
Q2Evaluate \(\int \left(\operatorname{cosec} x\cot x + 2\operatorname{cosec}^2 x\right)dx\).
\(-\operatorname{cosec} x - 2\cot x + C\).
Q3Evaluate \(\int \left(e^{2x + 3} + \dfrac{1}{4x + 1}\right)dx\).
Divide by \(a\) in each term: \(\dfrac{1}{2}e^{2x + 3} + \dfrac{1}{4}\log|4x + 1| + C\).
Q4Evaluate \(\int \dfrac{dx}{\sqrt{25 - x^2}}\).
This is \(\dfrac{1}{\sqrt{a^2 - x^2}}\) with \(a = 5\): \(\sin^{-1}\dfrac{x}{5} + C\), for \(|x| < 5\).
Q5Evaluate \(\int \dfrac{dx}{x^2 - 9}\).
\(\dfrac{1}{x^2 - a^2}\) with \(a = 3\): \(\dfrac{1}{6}\log\left|\dfrac{x - 3}{x + 3}\right| + C\), for \(x \ne \pm 3\).
Q6Evaluate \(\int \sqrt{x^2 + 4}\,dx\).
\(\sqrt{x^2 + a^2}\) with \(a = 2\), so \(\dfrac{a^2}{2} = 2\):
\(\dfrac{x}{2}\sqrt{x^2 + 4} + 2\log\left|x + \sqrt{x^2 + 4}\right| + C\).
Bring it to a free demo class and work through it with Vipul Sir. Book on WhatsApp.
Frequently asked questions
What is the integration of 1/x?
\(\int \dfrac{1}{x}\,dx = \log|x| + C\), for \(x \ne 0\). The absolute value matters: for negative \(x\), \(\dfrac{d}{dx}\log(-x) = \dfrac{-1}{-x} = \dfrac{1}{x}\), so \(\log|x|\) covers both sides of zero.
What is the integral of tan x and sec x?
\(\int \tan x\,dx = \log|\sec x| + C\), which is the same as \(-\log|\cos x| + C\). \(\int \sec x\,dx = \log|\sec x + \tan x| + C\). Both hold wherever \(\cos x \ne 0\).
Why do we add C after integrating?
Because many functions share the same derivative. \(x^2\), \(x^2 + 5\) and \(x^2 - 1\) all have derivative \(2x\). Writing \(x^2 + C\) gives every one of them at once. Leave it out and the answer is incomplete.
Which integration formulas should I learn by heart for Class 12?
Learn the standard tables in section 3 and the nine special integrals in section 4. Almost every Class 12 integral ends in one of those rows after you simplify or substitute. The \((ax + b)\) versions and the \(e^x\) rule follow from them, so understand those instead of memorising them separately.