Search

Search papers and lessons

Antiderivative

Level 1 · 10 min read

An antiderivative runs a derivative backwards: given f, find a function F whose rate of change is f. It is only defined up to an added constant.

On this page

  • Colour = topic mix
  • Calculus
  • Sign in to see your progress

TL;DR

An antiderivative undoes a derivative. If the derivative of FF is ff, then FF is an antiderivative of ff. Going forward, you differentiate to find how fast something changes. Going backward, you start from the rate and recover the quantity that produced it.

There is always a whole family of answers, not one. Adding any constant to FF leaves its derivative unchanged, so every antiderivative comes with a free constant CC.

Where you'll see it: recovering position from velocity in physics, computing areas under curves via definite integrals, and finding the cumulative distribution from a probability density.

Intuition

Running the film backwards

Think of a car's speedometer. The derivative tells you the speed at each instant. Suppose someone gives you only the speed over a trip and asks where the car is. You need to run the process in reverse: find the distance travelled so far, whose rate of growth matched the speed you were given. That reversed step is an antiderivative.

The "plus C" comes from the same picture. If you know the speed but not the starting point, every possible starting point gives a distance function that differs by a fixed shift. The shape of the motion is pinned down, but its height is not, until someone tells you where the car started.

−3−2−101230510xF(x)
  • F(x) = x²
  • F(x) = x² + 1
  • F(x) = x² − 2
Three antiderivatives of f(x) = 2x. Each has slope 2 everywhere, so they are vertical shifts of one another.

The plot shows the key fact. Each curve has slope 2x2x at every point, so each is an antiderivative of 2x2x. The curves differ only by a constant shift, which is exactly the freedom that the constant CC represents.

Why it is a separate idea

Differentiation is mechanical: apply the rules and you get an answer. Antidifferentiation is a search. You have to guess a function whose derivative matches, and the guess can be wrong in ways you can check by differentiating your answer. Many functions that look simple, such as sin⁡x\sin x or 1/x1/x, need a specific reverse rule rather than the power rule, and some have no antiderivative you can write with ordinary functions at all.

The math

Definition

Definition: Antiderivative

A function FF is an antiderivative of ff on an interval if F′(x)=f(x)F'(x) = f(x) for every xx in that interval. Here F′F' denotes the derivative of FF, the rate at which FF changes, and ff is a given function.

The notation ∫f(x) dx\int f(x)\,dx means "the family of all antiderivatives of ff". We write

∫f(x) dx=F(x)+C,\int f(x)\,dx = F(x) + C,

where FF is any one antiderivative and CC is an arbitrary constant. The dxdx says which variable we are reversing with respect to. The symbol ∫\int is an elongated S, from the Latin summa, which hints at the summing interpretation you will meet in Definite Integral.

Why the constant is needed

If FF is an antiderivative of ff, then so is F+CF + C, because the derivative of a constant is zero:

ddx(F(x)+C)=F′(x)+0=f(x).\frac{d}{dx}\bigl(F(x) + C\bigr) = F'(x) + 0 = f(x).

Conversely, if two functions have the same derivative on an interval, they differ by a constant. So the family F(x)+CF(x) + C is the complete answer, and nothing else is hidden inside it. This converse is the reason the constant is not optional: dropping it means discarding real information.

The power rule in reverse

Differentiating xn+1x^{n+1} gives (n+1)xn(n+1)x^n. Dividing by n+1n+1 reverses it:

∫xn dx=xn+1n+1+Cfor n≠−1.\int x^n\,dx = \frac{x^{n+1}}{n+1} + C \qquad \text{for } n \neq -1.

The exception n=−1n = -1 is the reciprocal 1/x1/x. Its antiderivative is ln⁡∣x∣\ln|x|, which is a different function, not a power. You can check any formula like this by differentiating the answer and seeing whether you recover the integrand.

Linearity

Derivatives respect addition and scaling, so antiderivatives do too. For constants aa and bb:

∫(af(x)+bg(x)) dx=a∫f(x) dx+b∫g(x) dx.\int \bigl(a f(x) + b g(x)\bigr)\,dx = a\int f(x)\,dx + b\int g(x)\,dx.

Together with the power rule and a short table of known antiderivatives, this lets you handle any polynomial term by term.

A short table

f(x)f(x)an antiderivative F(x)F(x)
xnx^n (n≠−1n \neq -1)xn+1n+1\dfrac{x^{n+1}}{n+1}
1x\dfrac{1}{x}ln⁡∣x∣\ln\lvert x\rvert
exe^xexe^x
cos⁡x\cos xsin⁡x\sin x
sin⁡x\sin x−cos⁡x-\cos x

Every row is checked the same way: differentiate the right-hand column and confirm you get the left.

Relation to area

The fundamental theorem of calculus links antiderivatives to areas. If FF is an antiderivative of ff, then the area under ff from aa to bb equals F(b)−F(a)F(b) - F(a). The constant CC cancels in the subtraction, which is why it does not matter for areas. The details belong to Definite Integral; for now, notice that the antiderivative is the tool that makes area computable.

Worked examples

Example
Polynomial, term by term

Find ∫(4x3−2x+5) dx\int (4x^3 - 2x + 5)\,dx.

  1. Apply linearity and integrate each term. For 4x34x^3: 4⋅x44=x44 \cdot \dfrac{x^4}{4} = x^4.
  2. For −2x-2x: −2⋅x22=−x2-2 \cdot \dfrac{x^2}{2} = -x^2.
  3. For 55, which is 5x05x^0: 5⋅x11=5x5 \cdot \dfrac{x^1}{1} = 5x.
  4. Combine and add the constant: F(x)=x4−x2+5x+CF(x) = x^4 - x^2 + 5x + C.
  5. Check by differentiating: 4x3−2x+54x^3 - 2x + 5. The check matches the integrand, so the answer is right.
Example
Recovering position from velocity

A particle moves with velocity v(t)=2t+3v(t) = 2t + 3 metres per second. At time t=0t = 0 it is at position 11 metre. Find its position s(t)s(t) and its position at t=2t = 2.

  1. Position is an antiderivative of velocity, so s(t)=∫(2t+3) dt=t2+3t+Cs(t) = \int (2t + 3)\,dt = t^2 + 3t + C.
  2. Use the starting condition s(0)=1s(0) = 1. Substituting t=0t = 0 gives 0+0+C=10 + 0 + C = 1, so C=1C = 1.
  3. The full answer is s(t)=t2+3t+1s(t) = t^2 + 3t + 1.
  4. At t=2t = 2: s(2)=4+6+1=11s(2) = 4 + 6 + 1 = 11 metres.
  5. Interpretation: the constant CC is fixed by the starting position, which is information the velocity alone cannot supply. This is why problems of this kind always give an initial value.
Example
Checking a guess

Is F(x)=xsin⁡xF(x) = x\sin x an antiderivative of sin⁡x+xcos⁡x\sin x + x\cos x?

  1. Differentiate FF with the product rule: F′(x)=1⋅sin⁡x+xcos⁡xF'(x) = 1 \cdot \sin x + x \cos x.
  2. This equals sin⁡x+xcos⁡x\sin x + x\cos x, the integrand, so the answer is yes.
  3. Interpretation: FF is one antiderivative, so the full family is xsin⁡x+Cx\sin x + C. Differentiation is the reliable way to confirm a guess.

Tradeoffs and failure modes

Antiderivatives are powerful but easy to get wrong in predictable ways. The table lists the common traps.

SituationProblemBetter choice
Forgetting the +C+CYou lose every solution except one, and an initial-value problem comes out wrongAlways write +C+C, then fix it with a starting condition
Integrating a product term by term∫fg dx≠∫f dx⋅∫g dx\int f g\,dx \neq \int f\,dx \cdot \int g\,dx; the product rule has no such simple reverseUse Integration by Parts or a substitution
Using a power rule on 1/x1/xThe formula gives division by zeroUse ln⁡∣x∣\ln\lvert x\rvert
Expecting a closed form for everythinge−x2e^{-x^2} and sin⁡xx\dfrac{\sin x}{x} have no antiderivative in elementary functionsUse a series expansion or numerical integration

The last row matters in practice. Many integrals that arise in probability, such as the Gaussian density, have no elementary antiderivative, so numerical methods are the normal route. The question changes from "what is the formula" to "how accurately can I evaluate it".

History

The idea of reversing differentiation is as old as the problems that needed it, such as finding areas and volumes in ancient geometry, but the systematic link came in the late 1600s. Isaac Newton and Gottfried Wilhelm Leibniz each developed calculus, and each recognised that finding an area and finding an antiderivative are inverse operations. This connection is now called the fundamental theorem of calculus.

Leibniz introduced the integral sign ∫\int in the 1670s and 1680s, and his notation is still in use. The older term "primitive" for an antiderivative is still common in some languages and textbooks. The modern rigorous definitions came later, in the 1800s, when mathematicians such as Cauchy and Riemann made the integral precise.

The term "antiderivative" caught on because it names the operation directly. It made the relationship between the two halves of calculus visible to students and engineers, which is much of why it became a standard tool.

Check yourself

QuestionWhat is the family of antiderivatives of f(x)=6x2f(x) = 6x^2, and what is one member of it?Show answer

Using the power rule, ∫6x2 dx=2x3+C\int 6x^2\,dx = 2x^3 + C. A specific member, with C=0C = 0, is 2x32x^3. Differentiating 2x32x^3 gives 6x26x^2, which confirms it.

QuestionCompute ∫(3x2−4cos⁡x) dx\int (3x^2 - 4\cos x)\,dx.Show answer

Term by term: ∫3x2 dx=x3\int 3x^2\,dx = x^3 and ∫−4cos⁡x dx=−4sin⁡x\int -4\cos x\,dx = -4\sin x. So the answer is x3−4sin⁡x+Cx^3 - 4\sin x + C. Check: the derivative of x3−4sin⁡xx^3 - 4\sin x is 3x2−4cos⁡x3x^2 - 4\cos x, as required.

QuestionWhy can two different antiderivatives of the same function differ only by a constant, and why does this matter when a starting value is given?Show answer

If F1′=F2′=fF_1' = F_2' = f, then (F1−F2)′=0(F_1 - F_2)' = 0, so F1−F2F_1 - F_2 is constant. Every antiderivative is therefore the same shape shifted up or down. A starting value fixes the shift: you solve for CC so that the function passes through the given point, which is how initial-value problems pick out a single answer.

QuestionA physicist measures a rate of flow as r(t)=5r(t) = 5 litres per minute. The tank holds 12 litres at t=0t = 0. How much is in the tank at t=3t = 3 minutes?Show answer

The amount is an antiderivative of the rate: V(t)=5t+CV(t) = 5t + C. At t=0t = 0, V=12V = 12, so C=12C = 12. At t=3t = 3, V=15+12=27V = 15 + 12 = 27 litres. The tank holds 27 litres after three minutes.

Sources