Back to homeMathematics · AP Calculus AB · Change subject
Start for free
AP Calc AB · Mathematics
Integrals · Antiderivatives

Indefinite Integrals and Basic Antiderivatives

Mateo's family is driving across Texas when the car's odometer glitches. His phone still logs the car's speed every second. Can he recover how far they have driven from the speed alone?

Until now you always went forward: from a function $f$ to its derivative $f'$. Here the problem runs backward. You are given the derivative and must recover the original function. That backward step is called antidifferentiation, and you will use it constantly in the rest of this chapter.

Running a derivative backward

Think of the car: if $s(t)$ is position and $v(t) = s'(t)$ is velocity, then recovering $s(t)$ from $v(t)$ is exactly this problem.

Differentiating takes F to f, and integrating takes f back to F F(x) f(x) = F′(x) differentiate integrate

The graph below shows $F(x) = x^2$ and $f(x) = 2x$. Notice that $f$ is the slope of $F$ at every point: where $F$ flattens out at $x = 0$, $f$ crosses zero.

The best way to check an antiderivative is to differentiate it. You do not need to integrate anything to verify an answer.

Practice★☆☆Not started
Determine whether the function $F(x) = x \cdot e^x$ is an antiderivative of the function $f(x) = (x+1)e^x$. To justify your answer, remember to use the fundamental…

Determine whether the function $F(x) = x \cdot e^x$ is an antiderivative of the function $f(x) = (x+1)e^x$. To justify your answer, remember to use the fundamental relationship between a function and its antiderivative through differentiation.

Solve

The constant of integration

Both $x^2$ and $x^2 + 5$ have derivative $2x$. So $2x$ has more than one antiderivative, in fact infinitely many.

Three antiderivative curves of the same function, each a vertical shift of the others by a constant F(x) F(x) + C₁ F(x) + C₂ Same shape, shifted up or down

Slide $C$ below. Every curve has the same slope at a given $x$, because each one is an antiderivative of $f(x) = x$.

To pick out one antiderivative from the family you need one extra piece of information, usually a point on its graph. This is called an initial condition, and the function you get is a particular antiderivative.

Practice★☆☆Not started
Find the antiderivative of the function $f(x) = 2x - 6$ whose graph passes through the point $P(3, 4)$. Note: First calculate the indefinite integral to obtain the…

Find the antiderivative of the function $f(x) = 2x - 6$ whose graph passes through the point $P(3, 4)$.

Note: First calculate the indefinite integral to obtain the family of functions with the constant $C$, and then use the point $P$ to find the specific value of this constant.

X Y 0 3 4 f(x) = 2x - 6 C = 17 C = 9 F(x) = x² - 6x + 13 P(3, 4) ∫(2x - 6)dx = x² - 6x + C
Solve

The standard antiderivative table

Every derivative rule you know gives an antiderivative rule when read backward. There is nothing new to memorize, just the derivative table in reverse.

The derivative rule for powers read left to right gives the antiderivative rule read right to left ( xⁿ⁺¹ / (n+1) )′ = xⁿ differentiate: left → right integrate: right → left ∫ xⁿ dx = xⁿ⁺¹ / (n+1) + C

The absolute value in $\ln|x|$ matters. For $x<0$, $\dfrac{d}{dx}\ln(-x) = \dfrac{1}{x}$ too, so $\ln|x|$ is an antiderivative of $\dfrac{1}{x}$ on both $(-\infty, 0)$ and $(0, \infty)$.

Radicals and fractions: before using the power rule, rewrite everything as a power of $x$: $\sqrt{x} = x^{1/2}$, $\sqrt[3]{x^2} = x^{2/3}$, $\dfrac{1}{x^4} = x^{-4}$, $\dfrac{1}{\sqrt{x}} = x^{-1/2}$.

Practice★☆☆Not started
A professional skater is analyzing the trajectory of his last jump on a ramp. The function describing the variation of his height with respect to time (vertical…

A professional skater is analyzing the trajectory of his last jump on a ramp. The function describing the variation of his height with respect to time (vertical velocity) is given by the expression $v(t) = 3t^2 - 4t + 5$. Find the family of functions $H(t)$ representing the skater's height by calculating the indefinite integral:

$$\int (3t^2 - 4t + 5) \, dt$$ t y H(t) = ∫v(t)dt = t³ - 2t² + 5t + C v(t) = 3t² - 4t + 5 C=0 C=3 C=6 +C +C Skater v(t)
Solve
Practice★☆☆Not started
In the study of the spread of news on a social network, it has been determined that the growth rate of "shares" follows a power law. To find the accumulated total, a…

In the study of the spread of news on a social network, it has been determined that the growth rate of "shares" follows a power law. To find the accumulated total, a programmer must solve the following integral of an irrational function. Calculate it by first converting the radical to a fractional exponent:

$$\int \left( \sqrt[3]{x^2} + \frac{1}{\sqrt{x}} \right) \, dx$$
Solve
Practice★☆☆Not started
In the design of a lens for a smartphone camera, it is necessary to know the curvature function. The derivative of this function is $g'(x) = \frac{7}{1 + x^2} - 2^x$.…

In the design of a lens for a smartphone camera, it is necessary to know the curvature function. The derivative of this function is $g'(x) = \frac{7}{1 + x^2} - 2^x$. Obtain the expression for the function $g(x)$ by calculating its indefinite integral:

$$\int \left( \frac{7}{1+x^2} - 2^x \right) \, dx$$
Solve

Linearity: sums and constant multiples

The graph shows $f(x) = 6x^2 - 5\cos x + 2$ and its antiderivative $F(x) = 2x^3 - 5\sin x + 2x$, which is the next example.

Splitting fractions. You may split a numerator over a single-term denominator, because $\dfrac{a+b}{c} = \dfrac{a}{c} + \dfrac{b}{c}$.

Practice★☆☆Not started
Calculate the indefinite integral of the following combination of trigonometric functions and constants, applying the properties of linearity (taking out constants and…

Calculate the indefinite integral of the following combination of trigonometric functions and constants, applying the properties of linearity (taking out constants and separating sums):

$$\int (4 \sin x - 5 \cos x + 3) \, dx$$ 0 x y f(x) = 4sin(x) - 5cos(x) + 3 ∫ f(x) dx
Solve
Practice★☆☆Not started
Find all the antiderivatives of the function $f(x) = \frac{x^4 - 2x^2 + 5}{x^2}$. Hint: To solve it immediately, decompose the fraction into three simple terms before…

Find all the antiderivatives of the function $f(x) = \frac{x^4 - 2x^2 + 5}{x^2}$.

Hint: To solve it immediately, decompose the fraction into three simple terms before integrating.

Solve
Practice★★☆Not started
Find the family of antiderivatives of the following function, simplifying the result by eliminating negative exponents and using radicals:…

Find the family of antiderivatives of the following function, simplifying the result by eliminating negative exponents and using radicals:

$f(x) = \dfrac{3}{x^4} - \dfrac{2}{\sqrt[3]{x^2}} + \dfrac{1}{5x}$

x y + C - C F(x) + C₁ F(x) + C₂ F(x) + C₃ ∫ f(x)dx = F(x) + C
Solve

A linear function inside: the $\tfrac{1}{a}$ rule

The table handles $e^x$, but what about $e^{2x}$? Try $e^{2x}$ itself as the answer. By the chain rule, $(e^{2x})' = 2e^{2x}$, which is twice too big. So divide by $2$.

For example, $\displaystyle\int \cos(5x)\,dx = \frac{\sin(5x)}{5} + C$, $\ \displaystyle\int e^{3x-1}dx = \frac{e^{3x-1}}{3} + C$, and $\ \displaystyle\int \frac{1}{2x+7}\,dx = \frac{1}{2}\ln|2x+7| + C$.

Watch the amplitude below: $\sin(kx)$ has antiderivative $-\dfrac{\cos(kx)}{k}$, so when $k$ grows the antiderivative gets flatter.

For a base other than $e$, first write $a^{bx} = (a^b)^x$ or just use the rule with a linear inside: $\displaystyle\int 5^{2x}dx = \frac{5^{2x}}{2\ln 5} + C$.

Practice★☆☆Not started
A hearing study for teenagers analyzes the intensity of a sound signal. The function describing the instantaneous acoustic pressure is $p(x) = \frac{3}{x} + e^{2x}$.…

A hearing study for teenagers analyzes the intensity of a sound signal. The function describing the instantaneous acoustic pressure is $p(x) = \frac{3}{x} + e^{2x}$. Find the general antiderivative of this function by performing the integration:

$$\int \left( \frac{3}{x} + e^{2x} \right) \, dx$$
Solve
Practice★★☆Not started
Find the antiderivative $F(x)$ of the function $f(x) = \dfrac{1}{\cos^2(3x)} + 5^{2x}$ given that $F(0) = 1$.

Find the antiderivative $F(x)$ of the function $f(x) = \dfrac{1}{\cos^2(3x)} + 5^{2x}$ given that $F(0) = 1$.

Solve
Practice★★☆Not started
A surveillance drone moves such that its horizontal speed (in ft/s) is given by the function $v(t) = 4e^{2t-1} + \sin(3t)$. Given that at the initial time $t=0$ the…

A surveillance drone moves such that its horizontal speed (in ft/s) is given by the function $v(t) = 4e^{2t-1} + \sin(3t)$. Given that at the initial time $t=0$ the drone is at position $s=0$, determine the expression for the position function $s(t)$.

s (ft) s₀ = 0 t = 0 s(t) = ? t > 0 v(t) s(t) = ∫ v(t) dt v(t) = 4e²ᵗ⁻¹ + sin(3t)
Solve

The reverse chain rule

What if the inside function is not linear? The chain rule says $\dfrac{d}{dx}F(g(x)) = f(g(x))\cdot g'(x)$. Read backward:

Here is the procedure:

  1. Look for an inside function $u = g(x)$ whose derivative (up to a constant factor) also appears in the integrand.

  2. Rewrite the integral in terms of $u$ and $du$, adjusting by a constant factor if needed.

  3. Integrate in $u$.

  4. Substitute $u = g(x)$ back.

  5. Check by differentiating.

The graph shows $f(x) = 2x\cos(x^2)$ and its antiderivative $F(x) = \sin(x^2)$. The next example uses the same pattern.

Typical patterns: $\displaystyle\int (\ln x)^n\,\frac{dx}{x}$ (with $u = \ln x$), $\displaystyle\int g'(x)\,e^{g(x)}dx$, and $\displaystyle\int g'(x)\,\big(g(x)\big)^n dx$.

Pay attention to the composite structure when functions are nested. In $\displaystyle\int \frac{\ln(\ln x)}{x\ln x}\,dx$, first let $u = \ln x$ (so $du = \dfrac{dx}{x}$), which turns it into $\displaystyle\int \frac{\ln u}{u}\,du$. Then a second substitution $w = \ln u$ finishes it.

Practice★★☆Not started
Determine the indefinite integral of the following composite function, identifying the derivative of the inner function:…

Determine the indefinite integral of the following composite function, identifying the derivative of the inner function:

$I = \displaystyle\int \dfrac{\ln^2(x) + 1}{x} \, dx$

Solve
Practice★★☆Not started
Given the function $f(x) = \dfrac{\sin(x)}{\sqrt{1 + \cos(x)}}$, calculate its general antiderivative. Check your result by differentiating the obtained function.

Given the function $f(x) = \dfrac{\sin(x)}{\sqrt{1 + \cos(x)}}$, calculate its general antiderivative. Check your result by differentiating the obtained function.

Solve
Practice★★★Not started
Calculate the indefinite integral of the function: $$f(x) = \frac{\ln(\ln x)}{x \cdot \ln x}$$ This exercise assesses the ability to recognize the structure…

Calculate the indefinite integral of the function:

$$f(x) = \frac{\ln(\ln x)}{x \cdot \ln x}$$

This exercise assesses the ability to recognize the structure $g(u(x)) \cdot u'(x)$ when there are multiple composite functions.

∫ ln(ln x) x · ln x dx u = ln(ln x) d/dx du = 1 x · ln x dx ∫ u du = u² 2 + C Simplified structure by substitution
Solve

The $\dfrac{u'}{u}$ pattern and logarithms

The most common form of the reverse chain rule is $f(u) = \dfrac{1}{u}$.

When the numerator is the derivative of the denominator, the integral is the natural log of the denominator 2x x² + 1 ln(x² + 1) + C numerator = derivative of denominator so the integral is ln of the denominator

If the numerator is a constant multiple of the denominator's derivative, adjust with that constant. For example, $\displaystyle\int\frac{x}{x^2+3}\,dx = \frac{1}{2}\ln(x^2+3) + C$, because $(x^2+3)' = 2x$ and $x = \tfrac{1}{2}\cdot 2x$. The same idea gives $\displaystyle\int\frac{4x-6}{x^2-3x+1}\,dx = 2\ln|x^2-3x+1| + C$, since $4x - 6 = 2(2x-3)$. Another classic is $\displaystyle\int \tan x\,dx = \int\frac{\sin x}{\cos x}\,dx = -\ln|\cos x| + C$.

When the numerator is almost the derivative, add and subtract to force it.

Practice★★☆Not started
Find the indefinite integral of the function $g(x)$, making the necessary constant adjustments to obtain a logarithmic structure:…

Find the indefinite integral of the function $g(x)$, making the necessary constant adjustments to obtain a logarithmic structure:

$I = \displaystyle\int \dfrac{3x - 1}{x^2 - \frac{2}{3}x + 5} \, dx$

Solve
Practice★★★Not started
A sound engineer is analyzing the signal of a new synthesizer. The rate of change of the wave intensity with respect to time, $t$, is given by the function…

A sound engineer is analyzing the signal of a new synthesizer. The rate of change of the wave intensity with respect to time, $t$, is given by the function $f'(t) = \dfrac{e^{2t} + 3e^t}{e^t + 1}$.

Knowing that for a time $t = 0$ the wave intensity is $10$ units, determine the analytical expression for the intensity $f(t)$ by carrying out the necessary algebraic manipulations to solve the integral.

Time (t) Intensity f'(0) = 2 f(0) = 10 f(t) = ? 1 2 3 4 5 10 20 30 40 f'(t) = e2t+ 3et et + 1
Solve

Rewrite first: division and identities

Many integrands that look hard become standard after some algebra or trigonometry. Before integrating, ask yourself:

  • Can I split the fraction? (single-term denominator)

  • Can I divide the polynomials? (degree of top $\ge$ degree of bottom)

  • Can I use a trig identity, such as $\sin^2 x + \cos^2 x = 1$ or $1 + \tan^2 x = \sec^2 x$?

Below, both curves are the same function written two ways: $\dfrac{x^2-3x+5}{x-1}$ and $x - 2 + \dfrac{3}{x-1}$. The curves overlap exactly, so the rewriting costs nothing.

Practice★★☆Not started
Find the antiderivative of the function $f(x) = \dfrac{x^2 - 4x + 1}{x-2}$ whose graph passes through the point $P(3, 5)$. Note: Perform polynomial division first.

Find the antiderivative of the function $f(x) = \dfrac{x^2 - 4x + 1}{x-2}$ whose graph passes through the point $P(3, 5)$.

Note: Perform polynomial division first.

Solve
Practice★★★Not started
Calculate the family of antiderivatives of the following trigonometric function using fundamental identities to transform the integrand into a sum of standard integrals:…

Calculate the family of antiderivatives of the following trigonometric function using fundamental identities to transform the integrand into a sum of standard integrals:

$$f(x) = \frac{\cos^3 x}{\sin^4 x}$$

Hint: Try to express the numerator in terms of sine using the fundamental trigonometric identity.

Solve

Arctangent and arcsine forms: completing the square

The table has $\dfrac{1}{1+x^2}$ and $\dfrac{1}{\sqrt{1-x^2}}$. With a constant $a > 0$ and a variable $u$, the general versions are:

If the denominator is $1 + (kx)^2$, use the linear inside rule from earlier: $\displaystyle\int\frac{3}{1+25x^2}\,dx = \frac{3}{5}\arctan(5x) + C$. If the denominator is a quadratic with an $x$-term, complete the square first.

Completing the square turns x squared plus 6x plus 13 into (x plus 3) squared plus 4 x² + 6x + 13 (x + 3)² + 4 half of 6 is 3, and 3² = 9 13 − 9 = 4 is left over now it looks like u² + a² with u = x + 3, a = 2

If the leading coefficient is not $1$, factor it out first. For instance $3x^2 + 6x + 12 = 3\big[(x+1)^2 + 3\big]$, and then $a = \sqrt{3}$.

When there is also an $x$ in the numerator of a radical, shift the variable and split into a power piece and an arcsine piece.

Practice★★☆Not started
Calculate the indefinite integral of the following function using linear decomposition and adjusting the derivative of the exponent:…

Calculate the indefinite integral of the following function using linear decomposition and adjusting the derivative of the exponent:

$I = \displaystyle\int \left( 2x \cdot e^{x^2+3} - \dfrac{5}{1+4x^2} \right) \, dx$

∫y₁dx ∫y₂dx f(x) = y₁ + y₂ y₂ = −5/(1+4x²) ↳ 4x² = (2x)² y₁ = 2x·eˣ²⁺³ ↳ 2x = (x²⁺³)'
Solve
Practice★★★Not started
Find the indefinite integral of the following rational function by completing the square in the denominator to identify an arctangent structure: $$f(x) = \frac{3}{2x^2 -…

Find the indefinite integral of the following rational function by completing the square in the denominator to identify an arctangent structure:

$$f(x) = \frac{3}{2x^2 - 4x + 10}$$
Solve
Practice★★★Not started
A logistics company is studying the wear of its fleet's tires. The rate of wear $V(x)$ (in inches per 1,000 miles) depends on the load $x$ (in tons) according to the…

A logistics company is studying the wear of its fleet's tires. The rate of wear $V(x)$ (in inches per 1,000 miles) depends on the load $x$ (in tons) according to the function:

$$V(x) = \frac{x + 1}{\sqrt{4 - (x - 3)^2}}$$

Find the accumulated wear function $D(x)$, knowing that for a zero load ($x=0$) the wear is zero.

Hint: Decompose the fraction to obtain an integral of root type (power) and another of arcsine type.

0 Load x (tons) Rate V(x) V(x) x D(x) Accumulated wear
Solve

Guess and check with the product rule

There is no product rule for integrals. But you can often guess the shape of an antiderivative of a product, differentiate the guess with the product rule, and adjust the unknown coefficients until it matches.

Guess and check loop: guess F, differentiate, compare with f, solve for the coefficients Guess F Differentiate Compare to f Solve for A,B If the equations contradict, enlarge the guess

Absolute values and piecewise integrands. If $f$ is piecewise, such as $|x - 1|$, integrate each piece separately. An antiderivative is differentiable, so it must be continuous, which forces the constants on different pieces to match at the break point.

Practice★★★Not started
Given the function $f(x) = |x - 2| \cdot e^x$, find the antiderivative $F(x)$ that satisfies $F(0) = 1$. Remember that for $F(x)$ to be an antiderivative over its entire…

Given the function $f(x) = |x - 2| \cdot e^x$, find the antiderivative $F(x)$ that satisfies $F(0) = 1$.

Remember that for $F(x)$ to be an antiderivative over its entire domain, it must be a continuous function, so you will have to adjust the constants of integration in the different pieces.

Solve
Practice★★★Not started
Determine the values of the parameters $A, B$ and $C$ so that the function $F(x) = (Ax^2 + Bx + C) \cdot \sin(2x)$ is an antiderivative of $f(x) = x^2 \cos(2x)$. Set up…

Determine the values of the parameters $A, B$ and $C$ so that the function $F(x) = (Ax^2 + Bx + C) \cdot \sin(2x)$ is an antiderivative of $f(x) = x^2 \cos(2x)$.

Set up the system of equations by differentiating $F(x)$ and equating coefficients.

Solve

Going back two derivatives

Sometimes you are given $f''$. Integrate once to get $f'$, then again to get $f$. Each integration brings its own constant, so you need two conditions.

Integrating f double prime gives f prime plus C1, and integrating again gives f plus C2 f″(x) f′(x) f(x) + C₁ + C₂ Two integrations, two constants, two conditions

Conditions about the graph translate into equations:

  • a point of inflection at $x = x_0$ means $f''(x_0) = 0$ (and $f''$ changes sign there);

  • a horizontal tangent at $x_0$ means $f'(x_0) = 0$;

  • a horizontal tangent line that passes through $(0, 5)$ is the line $y = 5$, so $f(x_0) = 5$ at the point of tangency.

If $f''$ is rational, think backward from the quotient rule: differentiating a quotient raises the power in the denominator by one, and you can confirm any guess for $f'$ by differentiating it.

Practice★★★Not started
Determine the function $f(x)$ whose second derivative is $f''(x) = \dfrac{12x^2 - 4}{(x^2 + 1)^3}$. It is known that the graph of $f(x)$ has a point of inflection where…

Determine the function $f(x)$ whose second derivative is $f''(x) = \dfrac{12x^2 - 4}{(x^2 + 1)^3}$.

It is known that the graph of $f(x)$ has a point of inflection where the tangent line is horizontal and passes through the point $(0, 5)$.

Note: This exercise requires expert use of the reverse chain rule for rational functions.

Solve

Back to the road trip. Say Mateo's phone logs a speed of $v(t) = 2t + 30$ ft/s. Antidifferentiating gives $s(t) = t^2 + 30t + C$. The speed record alone cannot tell him the distance, because $C$ is where the odometer started. One reading, such as the odometer value at $t = 0$, pins down $C$ and gives the exact position function.

Summary

See all the exercises in this section