An antiderivative of f is a function F whose derivative is f. On an interval, every antiderivative of f has the form F(x)+C, written ∫f(x) dx=F(x)+C. Find one by running the power rule and the other derivative rules backward, then check it by differentiating.
A car’s speedometer reads 2tm/s at t seconds, so it starts from rest and speeds up steadily. Where is the car at t=3?
You need a position whose derivative is 2t. The power rule run forward gives the derivative of t2 as 2t, so t2 works. After 3 s the car has moved 32=9 m.
But t2+100 has derivative 2t as well, and so does t2−4. The speed tells you how the position changes, never where the car started. If it started at the 100 m marker, its position is t2+100, and at t=3 it is at the 109 m marker. Every function t2+C fits the speedometer, and one starting position picks out one of them.
dtd(t2+C)=2t
Three positions with the same speed 2t
t(s)
t2
t2+100
t2−4
Speed 2t(m/s)
0
0
100
−4
0
1
1
101
−3
2
2
4
104
0
4
3
9
109
5
6
The rule
Antiderivatives and the indefinite integral
A function F is an antiderivative of f on an interval if F′(x)=f(x) at every x in the interval. Once one antiderivative F is known, every antiderivative of f on that interval has the form F(x)+C for some constant C.
The indefinite integral names that whole family at once. In ∫f(x) dx=F(x)+C, the sign ∫ asks for an antiderivative, f(x) is the integrand, dx says that x is the variable, and C is the constant of integration.
∫f(x)dx=F(x)+C means F′(x)=f(x)
∫f(x)dx=F(x)+Cmeans F′(x)=f(x)
The power rule backward
The derivative of xn+1 is (n+1)xn. To undo it, raise the power by one and divide by the new power. The rule fails only for n=−1, where it would divide by zero. That case has its own answer, ∫(1/x) dx=ln∣x∣+C.
∫xndx=n+1xn+1+C,n=−1
∫xndx=n+1xn+1+Cn=−1
Basic antiderivatives
Each entry is a derivative rule read backward, and each can be confirmed by differentiating its right-hand side. Angles are in radians.
Basic antiderivatives
Function
Antiderivative
k, a constant
kx+C
xn,n=−1
xn+1/(n+1)+C
1/x
ln∣x∣+C
ex
ex+C
sinx
−cosx+C
cosx
sinx+C
sec2x
tanx+C
Sums and constant multiples
Antiderivatives work term by term, and a constant factor stays in front, because derivatives behave the same way. With these two facts and the table, any polynomial can be antidifferentiated.
∫(af+bg)dx=a∫fdx+b∫gdx
∫(af+bg)dx=a∫fdx+b∫gdx
Why it works
Why every antiderivative is F+C
Suppose F and G are both antiderivatives of f on an interval. Their difference D=G−F has derivative D′=f−f=0 at every point of the interval.
A function whose derivative is 0 everywhere on an interval is constant there. The Mean Value Theorem shows it. For any two points p and q, the chord slope (D(q)−D(p))/(q−p) equals D′ at some point between them, which is 0. That makes D(q)=D(p) for every pair of points, so G=F+C.
The power rule backward is right for a simpler reason. Differentiating xn+1/(n+1) brings down the n+1, which cancels the divisor and leaves xn. Any antiderivative can be confirmed this way.
dxd(n+1xn+1)=n+1(n+1)xn=xn
dxd(n+1xn+1)=n+1(n+1)xn=xn
The method
The method in five steps
The table works through ∫(x2+3)/xdx, an integrand that needs rewriting before the table applies.
∫xx2+3dx=∫(x+x3)dx=2x2+3ln∣x∣+C
∫xx2+3dx=∫(x+x3)dx=2x2+3ln∣x∣+C
The five steps on ∫(x2+3)/xdx
Step
What to do
For (x2+3)/x
1
Rewrite as a sum of powers and table entries
x+3/x
2
Antidifferentiate each term
x2/2 and 3ln∣x∣
3
Add one constant for the whole answer
x2/2+3ln∣x∣+C
4
Check by differentiating
x+3/x, the integrand
5
Use a starting value, if one is given, to find C
none given here
Rewrite first
The power rule needs the form xn. Write √x as x1/2,3/x2 as 3x−2, and 1/3√x as x−1/3. Expand a product, and split a fraction whose denominator is a single term. (x+2)2 becomes x2+4x+4, and (x2+3)/x becomes x+3/x.
∫x23dx=∫3x−2dx=−3x−1+C
∫x23dx=∫3x−2dx=−3x−1+C
A starting value fixes C
A condition such as f(1)=5 picks one function out of the family. Substitute the given input into F(x)+C, set the result equal to the given output, and solve for C. This is called an initial-value problem.
Motion problems work this way. Velocity is an antiderivative of acceleration, and position is an antiderivative of velocity. Each starting value fixes one constant.
Where it breaks
Where it breaks
Antiderivatives go term by term through sums, never through products or quotients. ∫x⋅exdx is not (x2/2)⋅ex+C. The product rule gives that guess the derivative xex+(x2/2)ex, not xex. In the same way, ∫1/(x2+1) dx is not ln(x2+1)+C, whose derivative is 2x/(x2+1).
The power rule backward needs the variable itself as the base. ∫(2x+1)2dx is not (2x+1)3/3+C, because differentiating that gives 2(2x+1)2, twice the integrand. Expand first, or divide by the inside’s rate 2 to get (2x+1)3/6+C.
The rule fails at n=−1, which gives ln∣x∣. Some functions have no antiderivative that can be written as a finite formula in powers, exponentials, logarithms and trigonometric functions. e−x2 is one of them, though it does have antiderivatives.
The family F+C needs an interval. 1/x is undefined at 0, so on x<0 and on x>0 the constants can differ.
Check your answer
Check your answer
An antiderivative is one of the easiest answers in calculus to check.
Differentiate it. If you get the integrand back exactly, the answer is right. If not, the difference usually points to the slip, such as a missing divisor or a sign.
Differentiate by numbers. The slope of F near a point should match f there. For F(x)=2x3−2x2+5x, the ratio (F(1.001)−F(1))/0.001 is about 7.004, and f(1)=6−4+5=7.
Check the constant. An indefinite integral needs +C, and a starting value has to hold for the function you report.
To have Chalk check the work, write the integral on the first row of a Math box and your antiderivative on the row below it. One row works as well, such as ∫(6x2−4x+5) dx=2x3−2x2+5x+C. The Checker differentiates your answer and marks it ✓ or ✗. It does not mark a missing +C, so that part is yours. An antiderivative that holds on one interval reads ✓ with the interval named, as lnx+C does under ∫1/xdx (“Equal for x > 0.”), and ln∣x∣+C covers both sides.
For a starting value, write the condition first, f(1)=5, then f′(x)=3x2+2, then the family as an integral, ∫(3x2+2) dx=x3+2x+C, and Chalk checks it. The row that puts in the starting value, 1+2+C=5, reads ✓ because f(1)=5 is on a row above, and a slip such as 1+2+C=6 reads ✗. With no condition above, that row reads “?”, and a “?” is not a ✗. C=2 on its own row reads ✓. Chalk takes the finished function as a definition, so end with the condition, f(1)=5, which is checked against it.
Can ln∣x∣+C and ln∣3x∣+C both be right for the antiderivatives of 1/x?
Yes. ln∣3x∣=ln3+ln∣x∣, so the two differ by the constant ln3, and differentiating either one gives 1/x. Every antiderivative on an interval is one of them plus a constant, and the +C absorbs the ln3. Two right answers can look different and still name the same family.
One constant per piece, and where antiderivatives lead
All antiderivatives differ by one constant only on an interval. On a domain made of two pieces, each piece gets its own constant. The function equal to ln∣x∣+1 for x>0 and ln∣x∣−4 for x<0 is also an antiderivative of 1/x, though it is not ln∣x∣ plus a single constant.
Every continuous function has an antiderivative, even when no formula exists. The Fundamental Theorem of Calculus builds one as an accumulated area, F(x)=∫axf(t) dt. That is how e−x2 gets its antiderivatives, which statistics knows through the error function.
The derivative rules run backward give the next methods of integration. The chain rule run backward is u-substitution, and the product rule run backward is integration by parts.
F(x)=∫axf(t)dt⟹F′(x)=f(x)
F(x)=∫axf(t)dt⟹ F′(x)=f(x)
Common mistakes
Leaving off +C.∫2xdx is x2+C, not x2 alone, because x2+7 and x2−3 have the same derivative. The indefinite integral is the whole family, and a later starting value needs the C to work with.
Using the power rule on 1/x. Raising the power of x−1 by one gives x0/0, a division by zero. The antiderivative of 1/x is ln∣x∣+C, read backward from the derivative of ln∣x∣.
Getting the sign of a trigonometric antiderivative wrong. ∫sinxdxis −cosx+C, not cosx+C, because the derivative of cosxis −sinx. Differentiating your answer catches this at once.
Integrating a product factor by factor. ∫x⋅exdx is not (x2/2)⋅ex+C, since the product rule gives that guess the derivative xex+(x2/2)ex. A product needs expanding, substitution or integration by parts.
Forgetting to divide by the new exponent. ∫x1/2dx is (2/3)x3/2+C, not x3/2+C. Differentiating x3/2 gives (3/2)x1/2, so the factor 2/3 is needed to cancel the 3/2.
Key terms
Antiderivative
A function whose derivative is the given function, such as x3 for 3x2. Any two antiderivatives on one interval differ by a constant, which is why answers carry +C.
Indefinite integral
∫f(x) dx, the whole family of antiderivatives of f, written with +C, such as ∫2xdx=x2+C. It has no limits of integration.
Constant of integration
The +C added to an antiderivative, because the derivative of any constant is 0. On a domain split into separate pieces, each piece can have its own constant.
Integrand
The function being integrated: the expression whose values contribute to the accumulation. In ∫f(x) dx,f(x) is the integrand and x is the integration variable.
Initial-value problem
A differential equation together with a condition that picks out one solution, such as f′(x)=3x2+2 with f(1)=5. For an antiderivative, the condition determines the constant C.
Work through an example
Find ∫(6x2−4x+5) dx and check the answer by differentiating.