Chalk−1

Math · Calculus I · Concept

Antiderivatives and indefinite integrals

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) d⁢x=F⁢(x)+C. Find one by running the power rule and the other derivative rules backward, then check it by differentiating.

Try one — Chalk checks each line

A concrete case

Working backward from a speed

A car’s speedometer reads 2⁢t m⁢/⁢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 2⁢t. The power rule run forward gives the derivative of t2 as 2⁢t, so t2 works. After 3 s the car has moved 32=9 m.

But t2+100 has derivative 2⁢t 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.

dd⁢t(t2+C)=2⁢t
Three positions with the same speed 2⁢t
t (s)t2t2+100t2−4Speed 2⁢t (m⁢/⁢s)
00100−40
11101−32
2410404
3910956

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) d⁢x=F⁢(x)+C, the sign ∫ asks for an antiderivative, f⁡(x) is the integrand, d⁢x says that x is the variable, and C is the constant of integration.

∫f⁡(x)d⁢x=F⁢(x)+C  means  F′(x)=f⁡(x)
∫f⁡(x)d⁢x=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) d⁢x=ln∣⁢x⁢∣+C.

∫xnd⁢x=xn+1n+1+C,n≠−1
∫xnd⁢x=xn+1n+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
FunctionAntiderivative
k, a constantk⁢x+C
xn, n≠−1xn+1/⁢(n+1)+C
1⁢/⁢xln∣⁢x⁢∣+C
exex+C
sinx−cosx+C
cosxsinx+C
sec2xtanx+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.

∫(a⁢f+b⁢g)d⁢x=a∫fd⁢x+b∫gd⁢x
∫(a⁢f+b⁢g)d⁢x=a∫fd⁢x+b∫gd⁢x

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.

dd⁢x(xn+1n+1)=(n+1)xnn+1=xn
dd⁢x(xn+1n+1)=(n+1)xnn+1=xn

The method

The method in five steps

The table works through ∫(x2+3)⁢/⁢x d⁢x, an integrand that needs rewriting before the table applies.

∫x2+3xd⁢x=∫(x+3x)d⁢x=x22+3ln∣⁢x⁢∣+C
∫x2+3xd⁢x=∫(x+3x)d⁢x=x22+3ln∣⁢x⁢∣+C
The five steps on ∫(x2+3)⁢/⁢x d⁢x
StepWhat to doFor (x2+3)⁢/⁢x
1Rewrite as a sum of powers and table entriesx+3⁢/⁢x
2Antidifferentiate each termx2/2 and 3ln∣⁢x⁢∣
3Add one constant for the whole answerx2/2+3ln∣⁢x⁢∣+C
4Check by differentiatingx+3⁢/⁢x, the integrand
5Use a starting value, if one is given, to find Cnone given here

Rewrite first

The power rule needs the form xn. Write x as x1⁢/2, 3⁢/x2 as 3x−2, and 1⁢/x3 as x−1⁢/3. Expand a product, and split a fraction whose denominator is a single term. (x+2)2 becomes x2+4⁢x+4, and (x2+3)⁢/⁢x becomes x+3⁢/⁢x.

∫3x2d⁢x=∫3x−2d⁢x=−3x−1+C
∫3x2d⁢x=∫3x−2d⁢x=−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⋅ex d⁢x is not (x2/2)⋅ex+C. The product rule gives that guess the derivative x ex+(x2/2)ex, not x ex. In the same way, ∫1⁢/⁢(x2+1) d⁢x is not ln(x2+1)+C, whose derivative is 2⁢x⁢/⁢(x2+1).

The power rule backward needs the variable itself as the base. ∫(2⁢x+1)2 d⁢x is not (2⁢x+1)3/3+C, because differentiating that gives 2⁢(2⁢x+1)2, twice the integrand. Expand first, or divide by the inside’s rate 2 to get (2⁢x+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+5⁢x, 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−4⁢x+5) d⁢x =2x3−2x2+5⁢x+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⁢/⁢x d⁢x (“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) d⁢x =x3+2⁢x+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∣3⁢x⁢∣+C both be right for the antiderivatives of 1⁢/⁢x?

Yes. ln∣3⁢x⁢∣=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)=∫ax f⁡(t) d⁢t. 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)d⁢t⟹F′(x)=f⁡(x)
F⁢(x)=∫axf⁡(t)d⁢t⟹ F′(x)=f⁡(x)

Common mistakes

  • Leaving off +C. ∫2⁢x d⁢x 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. ∫sinx d⁢x is −cosx+C, not cosx+C, because the derivative of cosx is −sinx. Differentiating your answer catches this at once.
  • Integrating a product factor by factor. ∫x⋅ex d⁢x is not (x2/2)⋅ex+C, since the product rule gives that guess the derivative x ex+(x2/2)ex. A product needs expanding, substitution or integration by parts.
  • Forgetting to divide by the new exponent. ∫x1⁢/2 d⁢x 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) d⁢x, the whole family of antiderivatives of f, written with +C, such as ∫2⁢x d⁢x=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) d⁢x, 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−4⁢x+5) d⁢x and check the answer by differentiating.

Find an indefinite integral term by term →

Solve an initial-value problem →

Sources and scope

Authored study material. Tool results depend on the stated inputs and model assumptions.

After reading

Try it, then study it

Open the example in its tool to check steps or change values, then review the key terms as flashcards.

Check it by differentiating in Math Check the antiderivative in Math Study the 5 key terms Open worked example on a board Antiderivative power rule in Math Reference

Your existing work stays on this device. Examples open as editable copies.