[Home](https://learningfolio.de5.net/) / [Math](https://learningfolio.de5.net/math/) / [Math glossary](https://learningfolio.de5.net/math/glossary/) / Antiderivatives: Definition, Rules, and Worked Examples

[Math glossary](https://learningfolio.de5.net/math/glossary/)

# Antiderivatives: Definition, Rules, and Worked Examples

Reverse derivative rules to find antiderivatives. Learn the power rule, choose the constant, and use six worked examples to check your answers.

Written by **Learningfolio Team**

We’re subject-matter experts in math, science, parent support, and education, with 100 years of combined experience. We believe in learning, experimenting, and growing, and we review one another’s work.

## On this page

* [TL;DR](https://learningfolio.de5.net/math/antiderivatives/#tldr)
* [Key Points](https://learningfolio.de5.net/math/antiderivatives/#key-points)
* [What is an antiderivative?](https://learningfolio.de5.net/math/antiderivatives/#what-is-an-antiderivative)
* [What are the main rules for finding antiderivatives?](https://learningfolio.de5.net/math/antiderivatives/#what-are-the-main-rules-for-finding-antiderivatives)
* [How do you choose a strategy for an unfamiliar integrand?](https://learningfolio.de5.net/math/antiderivatives/#how-do-you-choose-a-strategy-for-an-unfamiliar-integrand)
* [How does an antiderivative relate to a definite integral?](https://learningfolio.de5.net/math/antiderivatives/#how-does-an-antiderivative-relate-to-a-definite-integral)
* [What does an initial condition do?](https://learningfolio.de5.net/math/antiderivatives/#what-does-an-initial-condition-do)
* [Six Worked Antiderivative Examples](https://learningfolio.de5.net/math/antiderivatives/#six-worked-antiderivative-examples)
* [Common Mistakes With Antiderivatives](https://learningfolio.de5.net/math/antiderivatives/#common-mistakes-with-antiderivatives)
* [Try It Yourself](https://learningfolio.de5.net/math/antiderivatives/#try-it-yourself)
* [Conclusion](https://learningfolio.de5.net/math/antiderivatives/#conclusion)
* [Read More](https://learningfolio.de5.net/math/antiderivatives/#read-more)
* [Research Behind This Article](https://learningfolio.de5.net/math/antiderivatives/#research-behind-this-article)

## TL;DR

**An antiderivative of $f$ is a function $F$ whose derivative is $f$.** Reverse familiar derivative rules, add $C$ to describe all antiderivatives on an interval, and differentiate your result to check it.

## Key Points

* An indefinite integral describes a family of antiderivatives on an interval.
* The power rule raises the exponent by one and then divides by the new exponent.
* For $1/x$, use $\ln|x|+C$ on an interval that avoids zero.
* An initial condition determines the constant when one particular function is required.
* A definite integral with limits gives a number when its bounds and integrand are fixed.

## What is an antiderivative?

If $F'(x)=f(x)$ on an interval, then $F$ is an **antiderivative** of $f$ on that interval. For example, $x^3$ is an antiderivative of $3x^2$ because differentiating $x^3$ returns $3x^2$. The function $x^3-8$ works as well since the derivative of a constant is zero.

The indefinite integral collects these functions:

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

Here $f$ is the **integrand**, $dx$ says the variable is $x$, and $C$ can be any real constant. OpenStax derives the general form from the mean value theorem. If two differentiable functions have the same derivative throughout an interval, their difference has derivative zero and must be constant throughout that interval. [OpenStax, Antiderivatives](https://openstax.org/books/calculus-volume-1/pages/4-10-antiderivatives)

![Three vertically shifted parabolas with equations x squared plus one, x squared, and x squared minus one have parallel tangent segments at x equals one](https://learningfolio.de5.net/assets/versioned/antiderivatives-parabolas-shifted-by-c.76acde130143.webp)


Changing the constant shifts the graph vertically. At the same input, each of these three curves has identical slope.

## What are the main rules for finding antiderivatives?

Start with linearity. Integrate the terms of a sum or difference separately. A constant multiplier can stay in front while you integrate. Because differentiating a sum or a constant multiple reverses those same steps, these rules can be verified term by term.

For a power $x^n$ with $n\ne-1$, use the following rule on an interval where the expression is defined and differentiable:

$$
\int x^n\,dx=\frac{x^{n+1}}{n+1}+C.
$$

When $n=-1$, the new exponent would be zero, so the rule would require division by zero. The derivative of $\ln|x|$ is $1/x$ wherever $x\ne0$. On the positive and negative intervals, the constants can be chosen independently because zero separates them.

| Integrand | One antiderivative | Condition |
| --- | --- | --- |
| $1/x$ | $\ln\lvert x\rvert$ | $x\ne0$ on the chosen interval |
| $e^x$ | $e^x$ | Any real $x$ |
| $a^x$ | $a^x/\ln a$ | $a>0$ and $a\ne1$ |
| $\sin x$ | $-\cos x$ | Angles in radians |
| $\cos x$ | $\sin x$ | Angles in radians |
| $\sec^2x$ | $\tan x$ | An interval where $\cos x\ne0$ |
| $\csc^2x$ | $-\cot x$ | An interval where $\sin x\ne0$ |
| $1/(1+x^2)$ | $\arctan x$ | Any real $x$ |
| $1/\sqrt{1-x^2}$ | $\arcsin x$ | $-1<x<1$ |

The last two integrands have **inverse-trigonometric antiderivatives**. Integrating an expression that already contains an inverse trig function, such as $\int\arctan x\,dx$, is a different task. Choose [integration by parts or another integration formula](https://learningfolio.de5.net/math/formula/integration-formulas/) when the basic table does not match. The [arctangent guide](https://learningfolio.de5.net/math/arctan/) explains the inverse function and its output interval.

## How do you choose a strategy for an unfamiliar integrand?

1. Simplify first. Expand manageable sums or rewrite fractional roots as powers if that exposes a basic rule.
2. Identify an inner function and look beside it for its derivative. When both appear, try substitution. For example, $e^{3x-2}$ can use $u=3x-2$, with $dx=du/3$.
3. Look for a product or an inverse trig function that simplifies when differentiated. Integration by parts may work if the other factor is easy to integrate.
4. Verify the proposed answer by differentiating. Your derivative should reproduce the integrand on the stated interval.

Some continuous functions have antiderivatives that cannot be written as a finite combination of familiar elementary functions. For example, $e^{-x^2}$ has the antiderivative defined by the integral from 0 to $x$ of $e^{-t^2}\,dt$. The fundamental theorem yields its derivative. A [numerical method such as the trapezoidal rule](https://learningfolio.de5.net/math/trapezoidal-rule/) can estimate the value of a definite integral when no elementary formula is available.

## How does an antiderivative relate to a definite integral?

The indefinite integral $\int f(x)\,dx$ describes functions. A definite integral $\int_a^b f(x)\,dx$ gives signed accumulation from $a$ to $b$. For continuous $f$ on $[a,b]$, you can take any antiderivative $F$ and compute

$$
\int_a^b f(x)\,dx=F(b)-F(a).
$$

Adding the same constant to both endpoint values changes neither their difference nor the result. If $f$ is a velocity, that difference gives change in position, and negative velocities contribute negative displacement. To calculate total distance, integrate the absolute value of velocity or split the interval wherever its sign changes. [OpenStax, Integration Formulas and the Net Change Theorem](https://openstax.org/books/calculus-volume-2/pages/1-4-integration-formulas-and-the-net-change-theorem)

## What does an initial condition do?

Knowing a derivative tells you how a quantity changes, but it leaves the starting level unknown. An **initial condition** supplies one input and its output, such as the amount of water in a tank at time zero. Find the family $F+C$, substitute the supplied pair, and solve for $C$. Then check both the derivative and the original condition.

## Six Worked Antiderivative Examples

### Example 1

Find $\int(12x^3-6x+5)\,dx$.

1. Integrate termwise to get $3x^4$, $-3x^2$, and $5x$.
2. The family is $3x^4-3x^2+5x+C$.
3. Differentiating restores $12x^3-6x+5$.

### Example 2

Find $\int (4/x-3/x^2)\,dx$ on the interval $x<0$.

1. The first term gives $4\ln(-x)$ because $-x$ is positive there.
2. Rewrite $-3/x^2$ as $-3x^{-2}$ and integrate to get $3/x$.
3. The answer is $4\ln(-x)+3/x+C$. Differentiating gives $4/x-3/x^2$.

### Example 3

Find $\int 4\cos(2x+1)\,dx$.

1. An antiderivative has a sine term with the same inner angle.
2. The inner derivative is 2, so divide the outside multiplier 4 by 2.
3. Differentiate $2\sin(2x+1)+C$ to recover $4\cos(2x+1)$.

### Example 4

Find $\int 3/(1+9x^2)\,dx$.

1. The denominator equals $1+(3x)^2$.
2. Set $u=3x$, so $du=3\,dx$. The integral becomes $\int du/(1+u^2)$.
3. The answer is $\arctan(3x)+C$. Its derivative has numerator 3 by the chain rule.

### Example 5

Water flows in at rate $q'(t)=6t+2$ litres per minute for $t\ge0$. The tank contains 18 litres initially. Find its level at four minutes.

1. Integrate to find $q(t)=3t^2+2t+C$.
2. Since $q(0)=18$, choose $C=18$.
3. At four minutes the tank contains $48+8+18=74$ litres. Its level increased by 56 litres.

### Example 6

Use integration by parts to find $\int\arctan x\,dx$.

1. Choose $u=\arctan x$ and $dv=dx$, which give $du=dx/(1+x^2)$ and $v=x$.
2. The remaining integral is $\int x/(1+x^2)\,dx$, which is $\tfrac12\ln(1+x^2)$.
3. The answer is $x\arctan x-\tfrac12\ln(1+x^2)+C$. Its derivative is $\arctan x$ because the extra $x/(1+x^2)$ terms cancel.

## Common Mistakes With Antiderivatives

### Mistake 1: Using the power rule for $x^{-1}$

The new exponent would be zero. Use the logarithm rule and check that your interval excludes zero.

### Mistake 2: Forgetting the inner multiplier

The derivative of $\sin(5x)$ is $5\cos(5x)$. If the integrand is $\cos(5x)$, include a factor of $1/5$ in the antiderivative.

### Mistake 3: Losing the starting value

An integral of a rate over a fixed time gives the **change**. If the question asks for the final amount, add that change to the initial amount.

## Try It Yourself

1. Find $\int (8x^3-2x)\,dx$.
2. Find $F(x)$ if $F'(x)=2e^{2x}$ and $F(0)=5$.
3. Evaluate $\int_1^3 4x\,dx$ using any antiderivative.

**Answers.** 1. $2x^4-x^2+C$. 2. $F(x)=e^{2x}+4$. 3. The antiderivative $2x^2$ gives $18-2=16$.

## Conclusion

* Try the common rules after simplifying the integrand.
* Differentiate the proposed antiderivative across the intended interval.
* Use an initial value for a particular function and endpoint subtraction for a definite integral.

## Read More

* [Check a trig antiderivative by differentiating](https://learningfolio.de5.net/math/differentiation-of-trigonometric-functions/)
* [Use the derivative of tangent to recognize a common trig integral](https://learningfolio.de5.net/math/derivative-of-tan-x/)
* [Work through the integral of secant](https://learningfolio.de5.net/math/integral-of-sec-x/)

## Research Behind This Article

1. OpenStax, *Calculus Volume 1: Antiderivatives*. [OpenStax](https://openstax.org/books/calculus-volume-1/pages/4-10-antiderivatives)
2. OpenStax, *Calculus Volume 2: Integration Formulas and the Net Change Theorem*. [OpenStax](https://openstax.org/books/calculus-volume-2/pages/1-4-integration-formulas-and-the-net-change-theorem)
3. New York City College of Technology, *MAT 1575: Lesson 1, Antiderivatives*. [City Tech, CUNY](https://openlab.citytech.cuny.edu/mat1575coursehub/lessons/lesson-1-antiderivatives/)
4. University of Connecticut, *Applied Calculus: Antiderivatives*. [University of Connecticut](https://www2.math.uconn.edu/ClassHomePages/Math1071/Textbook/sec_Ch4Sec10.html)
