Antiderivatives and the + C
An antiderivative of \(f(x)\) is any function \(F(x)\) whose derivative is \(f(x)\). The indefinite integral \(\int f(x)\,dx\) is all of them at once.
If \(F'(x) = f(x)\), then \[\int f(x)\,dx = F(x) + C\]
\(C\) is an arbitrary constant. Any two antiderivatives of the same function differ by a constant.
Why the + C. Take \(\int 2x\,dx = x^2 + C\). Each value of \(C\) gives a parabola: \(y = x^2 - 1\), \(y = x^2 + 2\), \(y = x^2 + 5\) and so on. They are one curve shifted up or down, so at any given \(x\) they all have the same slope \(2x\). The integral hands you this whole family of curves. On its own it cannot say which one you want.
Finding C. To pick out one curve you need one more fact, usually a point on it. Say the slope of a curve is \(2x\) and the curve passes through \((1, 3)\). Then \(y = x^2 + C\). Put \(x = 1\), \(y = 3\): \(3 = 1 + C\), so \(C = 2\) and the curve is \(y = x^2 + 2\).
The rules you can use
\(k\) is a constant; \(f\) and \(g\) are functions of \(x\).
| 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\) |
| Differentiating undoes integrating | \(\dfrac{d}{dx}\int f(x)\,dx = f(x)\) |
| Integrating undoes differentiating | \(\int f'(x)\,dx = f(x) + C\) |
With these rules and the integration formulas you can integrate any sum of standard functions, one term at a time. The rules say nothing about products or quotients, and that is where the real work is. Very often the first move is to rewrite the integrand as a sum.
Simplify first
Divide out
If the top is a polynomial and the bottom is a single power of \(x\), divide each term: \(\dfrac{x^3 + 4x^2 - 3}{x^2} = x + 4 - \dfrac{3}{x^2}\). If the bottom has more than one term, like \(x + 1\), and the top's degree is at least as big, do long division first: \(\dfrac{x^2}{x + 1} = x - 1 + \dfrac{1}{x + 1}\).
Split the fraction
A sum on top splits into separate fractions. For example \(\dfrac{2 + 3\cos x}{\sin^2 x} = 2\operatorname{cosec}^2 x + 3\operatorname{cosec} x\cot x\). Both pieces are in the table, so the integral is \(-2\cot x - 3\operatorname{cosec} x + C\). A sum on the bottom does not split like this (see mistake 3).
Use a trig identity
Squares, cubes and products of sines and cosines are not in the table. These identities turn them into plain sines and cosines of multiple angles, which are:
| Expression | Rewrite as |
|---|---|
| \(\sin^2 x\) | \(\dfrac{1 - \cos 2x}{2}\) |
| \(\cos^2 x\) | \(\dfrac{1 + \cos 2x}{2}\) |
| \(\tan^2 x\) | \(\sec^2 x - 1\) |
| \(\sin^3 x\) | \(\dfrac{3\sin x - \sin 3x}{4}\) |
| \(\cos^3 x\) | \(\dfrac{3\cos x + \cos 3x}{4}\) |
| \(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)\) |
Quadratics: complete the square
Three forms come up again and again. In each one the quadratic \(ax^2 + bx + c\) does not factorise nicely, so you complete the square and land on one of the special integrals with \(a^2\). Below, \(X\) is the shifted variable and \(k > 0\) is the constant you end up with.
Form 1: \(\displaystyle\int \frac{dx}{ax^2 + bx + c}\)
- Take out the coefficient of \(x^2\), so the quadratic starts with \(x^2\).
- Complete the square: \(x^2 + px + q = \left(x + \dfrac{p}{2}\right)^2 + \left(q - \dfrac{p^2}{4}\right)\).
- You now have \(X^2 + k^2\), \(X^2 - k^2\) or \(k^2 - X^2\). Use the matching formula with \(X\) in place of \(x\).
Form 2: \(\displaystyle\int \frac{dx}{\sqrt{ax^2 + bx + c}}\)
Same steps. If you get \(k^2 - X^2\) under the root, the answer is \(\sin^{-1}\dfrac{X}{k} + C\). If you get \(X^2 + k^2\) or \(X^2 - k^2\), it is \(\log\left|X + \sqrt{X^2 \pm k^2}\right| + C\).
Form 3: \(\displaystyle\int \frac{px + q}{ax^2 + bx + c}\,dx\)
Make the derivative of the denominator appear on top. Write
\[px + q = A\,\frac{d}{dx}\left(ax^2 + bx + c\right) + B = A(2ax + b) + B\]
and find \(A\) and \(B\) by comparing the coefficients of \(x\) and the constant terms. The integral becomes \(A\log\left|ax^2 + bx + c\right|\) plus \(B\) times a Form 1 integral. With a square root in the denominator the same split gives \(2A\sqrt{ax^2 + bx + c}\) plus \(B\) times a Form 2 integral.
The three main methods
When simplifying is not enough, one of these usually is. Each has its own lesson.
| The integrand looks like | Try | Example |
|---|---|---|
| A function and its derivative together | Substitution | \(\int 2x\,e^{x^2}\,dx\) |
| A product of two different kinds of function | Integration by parts | \(\int x\,e^x\,dx\) |
| A polynomial over a polynomial that factorises | Partial fractions | \(\int \dfrac{dx}{(x - 1)(x + 2)}\) |
Plenty of questions need two of them: a substitution that leaves a fraction for partial fractions, or a round of parts that leaves a trig integral for an identity.
Solved examples
Example 1: Finding C from a point
EasyThe slope of a curve at any point is \(3x^2 - 4x + 1\), and the curve passes through \((2, 7)\). Find its equation.
- \(y = \int (3x^2 - 4x + 1)\,dx = x^3 - 2x^2 + x + C\).
- Put \(x = 2\), \(y = 7\): \(7 = 8 - 8 + 2 + C\), so \(C = 5\).
Answer\(y = x^3 - 2x^2 + x + 5\)
Example 2: Divide term by term
EasyEvaluate \(\int \dfrac{x^3 + 4x^2 - 3}{x^2}\,dx\).
- Divide each term by \(x^2\): \(x + 4 - 3x^{-2}\).
- Integrate: \(\dfrac{x^2}{2} + 4x - 3\cdot\dfrac{x^{-1}}{-1}\).
Answer\(\dfrac{x^2}{2} + 4x + \dfrac{3}{x} + C\)
Example 3: Long division first
MediumEvaluate \(\int \dfrac{x^2}{x + 1}\,dx\).
- The top has higher degree, so divide: \(x^2 = (x + 1)(x - 1) + 1\).
- So \(\dfrac{x^2}{x + 1} = x - 1 + \dfrac{1}{x + 1}\).
- Integrate each piece. The last one is \(\log|x + 1|\).
Answer\(\dfrac{x^2}{2} - x + \log|x + 1| + C\)
Example 4: An even power of sine
MediumEvaluate \(\int \sin^2 x\,dx\).
- Use \(\sin^2 x = \dfrac{1 - \cos 2x}{2}\).
- \(\int \left(\dfrac{1}{2} - \dfrac{1}{2}\cos 2x\right)dx = \dfrac{x}{2} - \dfrac{1}{2}\cdot\dfrac{\sin 2x}{2}\).
Answer\(\dfrac{x}{2} - \dfrac{\sin 2x}{4} + C\)
Example 5: An odd power of cosine
MediumEvaluate \(\int \cos^3 x\,dx\).
- Use \(\cos^3 x = \dfrac{3\cos x + \cos 3x}{4}\).
- \(\dfrac{1}{4}\left(3\sin x + \dfrac{\sin 3x}{3}\right) = \dfrac{3}{4}\sin x + \dfrac{1}{12}\sin 3x\).
- Substituting \(t = \sin x\) gives \(\sin x - \dfrac{\sin^3 x}{3}\) instead. It is the same function, because \(\sin 3x = 3\sin x - 4\sin^3 x\).
Answer\(\dfrac{3}{4}\sin x + \dfrac{1}{12}\sin 3x + C\)
Example 6: A product of sine and cosine
MediumEvaluate \(\int \sin 3x\cos 2x\,dx\).
- \(2\sin 3x\cos 2x = \sin 5x + \sin x\), so the integrand is \(\dfrac{1}{2}(\sin 5x + \sin x)\).
- \(\dfrac{1}{2}\left(-\dfrac{\cos 5x}{5} - \cos x\right)\).
Answer\(-\dfrac{\cos 5x}{10} - \dfrac{\cos x}{2} + C\)
Example 7: Completing the square under a root
Exam levelEvaluate \(\int \dfrac{dx}{\sqrt{8 + 2x - x^2}}\).
- Take the minus sign out: \(8 + 2x - x^2 = 8 - (x^2 - 2x)\).
- Complete the square: \(x^2 - 2x = (x - 1)^2 - 1\), so \(8 + 2x - x^2 = 9 - (x - 1)^2\).
- This is \(\dfrac{1}{\sqrt{k^2 - X^2}}\) with \(k = 3\) and \(X = x - 1\).
Answer\(\sin^{-1}\dfrac{x - 1}{3} + C\), for \(-2 < x < 4\)
Example 8: A linear term over a quadratic
Exam levelEvaluate \(\int \dfrac{2x + 3}{x^2 + 2x + 5}\,dx\).
- The derivative of the denominator is \(2x + 2\). So \(2x + 3 = 1\cdot(2x + 2) + 1\), giving \(A = 1\), \(B = 1\).
- First piece: \(\int \dfrac{2x + 2}{x^2 + 2x + 5}\,dx = \log\left(x^2 + 2x + 5\right)\). No modulus is needed, because \(x^2 + 2x + 5 = (x + 1)^2 + 4\) is always positive.
- Second piece: \(\int \dfrac{dx}{(x + 1)^2 + 2^2} = \dfrac{1}{2}\tan^{-1}\dfrac{x + 1}{2}\).
Answer\(\log\left(x^2 + 2x + 5\right) + \dfrac{1}{2}\tan^{-1}\dfrac{x + 1}{2} + C\)
With powers of \(\sin x\) or \(\cos x\), first check whether the power is odd or even. Even powers, like \(\sin^2 x\) or \(\cos^4 x\), need the double-angle identities. Odd powers can also be done by pulling out one factor and substituting, which you will meet in the next lesson. Both routes give the same function, as Example 5 shows, so pick whichever you are faster at.
Common mistakes
1. Leaving out C, then using the point
In Example 1, without \(C\) you get \(y = x^3 - 2x^2 + x\), which passes through \((2, 2)\), not \((2, 7)\). Write \(+ C\) at the moment you integrate, then use the point to find it.
2. Treating \(\sin^2 x\) like \(x^2\)
\(\int \sin^2 x\,dx\) is not \(\dfrac{\sin^3 x}{3}\). Differentiate that and you get \(\sin^2 x\cos x\). The power rule works for powers of \(x\) (or of \(ax + b\)), not for powers of \(\sin x\). Use the identity, as in Example 4.
3. Splitting over a sum in the denominator
\(\dfrac{1}{x^2 + x}\) is not \(\dfrac{1}{x^2} + \dfrac{1}{x}\). Try \(x = 1\): the left side is \(\dfrac{1}{2}\), the right side is \(2\). Factor instead: \(\dfrac{1}{x(x + 1)} = \dfrac{1}{x} - \dfrac{1}{x + 1}\), so the integral is \(\log\left|\dfrac{x}{x + 1}\right| + C\).
Practice questions
Try each one on paper before you open the answer.
Q1A curve has slope \(4x^3 + 6x\) and passes through \((1, 2)\). Find its equation.
\(y = x^4 + 3x^2 + C\). At \((1, 2)\): \(2 = 1 + 3 + C\), so \(C = -2\) and \(y = x^4 + 3x^2 - 2\).
Q2Evaluate \(\int \tan^2 x\,dx\).
\(\tan^2 x = \sec^2 x - 1\), so the answer is \(\tan x - x + C\).
Q3Evaluate \(\int \dfrac{x^4 + 1}{x^2 + 1}\,dx\).
Divide: \(x^4 + 1 = (x^2 + 1)(x^2 - 1) + 2\), so the integrand is \(x^2 - 1 + \dfrac{2}{x^2 + 1}\).
Answer: \(\dfrac{x^3}{3} - x + 2\tan^{-1}x + C\).
Q4Evaluate \(\int \cos 4x\cos 2x\,dx\).
\(2\cos 4x\cos 2x = \cos 6x + \cos 2x\). So the answer is \(\dfrac{\sin 6x}{12} + \dfrac{\sin 2x}{4} + C\).
Q5Evaluate \(\int \dfrac{dx}{x^2 + 4x + 13}\).
\(x^2 + 4x + 13 = (x + 2)^2 + 3^2\). Answer: \(\dfrac{1}{3}\tan^{-1}\dfrac{x + 2}{3} + C\).
Q6Evaluate \(\int \dfrac{dx}{\sqrt{x^2 + 6x + 13}}\).
\(x^2 + 6x + 13 = (x + 3)^2 + 2^2\). Form 2 with \(X = x + 3\):
\(\log\left|x + 3 + \sqrt{x^2 + 6x + 13}\right| + C\).
Bring it to a free demo class and work through it with Vipul Sir. Book on WhatsApp.
Frequently asked questions
What is indefinite integration?
Finding a function from its derivative. The answer is a family of functions \(F(x) + C\), not a single number, because there are no limits. For example \(\int \cos x\,dx = \sin x + C\).
What is the difference between definite and indefinite integrals?
An indefinite integral has no limits and gives a function plus \(C\). A definite integral has limits \(a\) and \(b\) and gives a number, \(F(b) - F(a)\). The \(C\) cancels in that subtraction, which is why definite integrals don't carry one.
Can two correct answers look different?
Yes. \(\int \sin x\cos x\,dx\) can come out as \(\dfrac{\sin^2 x}{2} + C\), \(-\dfrac{\cos^2 x}{2} + C\) or \(-\dfrac{\cos 2x}{4} + C\), depending on the method. They differ only by constants (\(\dfrac{1}{2}\) and \(\dfrac{1}{4}\)), so all three are right.
How do I check an indefinite integral?
Differentiate your answer. If you get the integrand back, it is correct. It takes a few seconds and works for every question on this page.