Calculus3Introduction to Integration1 of 6
Introduction to Integration · 1

Antiderivatives and Indefinite Integrals

1

Going backwards from a derivative

We know that the derivative of x2\ta{x^2} is 2x\ta{2x}. But what if we turn that around, and ask which functions have derivative 2x\ta{2x}? x2\ta{x^2} is one answer. The derivative of a constant is 00, so x2+3\ta{x^2} + \cst{3} and x2−1\ta{x^2} - \cst{1} are answers too.

ddx(x2)=2xddx(x2+3)=2xddx(x2−1)=2x\displaystyle \begin{aligned}\frac{d}{dx}\big(\ta{x^2}\big) &= \ta{2x}\\[8pt] \frac{d}{dx}\big(\ta{x^2} + \cst{3}\big) &= \ta{2x}\\[8pt] \frac{d}{dx}\big(\ta{x^2} \mathbin{\cst{-}} \cst{1}\big) &= \ta{2x}\end{aligned}
xx
yy
3\htmlClass{lc-green}{3}
−1\htmlClass{lc-green}{-1}
slope 2\htmlClass{lc-violet}{\text{slope } 2}
slope 2\htmlClass{lc-violet}{\text{slope } 2}
slope 2\htmlClass{lc-violet}{\text{slope } 2}
y=x2+3\htmlClass{lc-blue}{y = x^2} + \htmlClass{lc-green}{3}
y=x2\htmlClass{lc-blue}{y = x^2}
y=x2−1\htmlClass{lc-blue}{y = x^2}\mathbin{\htmlClass{lc-green}{-}}\htmlClass{lc-green}{1}

On the graph, adding 3\cst{3} shifts the curve up, tangent line and all, so the slope at x=1x = 1 is still 2\slp{2}. But could a completely different function also have derivative 2x\ta{2x}?

Find every function whose derivative is 2x2x
xx
yy
y=x2\htmlClass{lc-blue}{y = x^2}
11
slope 2\htmlClass{lc-violet}{\text{slope } 2}
Text solution
Compare two answersIf FF and GG both have derivative 2x\ta{2x}, their difference has derivative 00.
(F−G)′\displaystyle (F - G)' =2x−2x\displaystyle = \ta{2x} - \ta{2x} =0\displaystyle = 0
They differ by a constantBy the Mean Value Theorem, a function with derivative 00 on an interval is constant. Since x2\ta{x^2} is one answer, every function whose derivative is 2x\ta{2x} is x2\ta{x^2} plus a constant.
F(x)\displaystyle F(x) =x2+C\displaystyle = \ta{x^2} + \cst{C}

We call any function whose derivative is ff an antiderivative of ff. To write all of them at once, we use the integral sign, ∫\int. We write ∫2x dx\int \ta{2x}\,dx to mean every antiderivative of 2x\ta{2x}. The dxdx tells us the variable is xx, and C\cst{C} is the constant of integration. Differentiating the answer always checks it.

∫2x dx\displaystyle \int \ta{2x}\,dx =x2+C\displaystyle = \ta{x^2} + \cst{C}
ddx(x2+C)\displaystyle \frac{d}{dx}\big(\ta{x^2} + \cst{C}\big) =2x\displaystyle = \ta{2x}
2

The power rule in reverse

Now let's find an antiderivative of x4\ta{x^4}, a function whose derivative is x4\ta{x^4}. Differentiating a power of xx lowers the exponent by 11, so we'll run the power rule backwards and see what we need to fix.

Find ∫x4 dx\int x^4\,dx, and reverse the power rule for derivatives
∫x4 dx\displaystyle \int \ta{x^4}\,dx =  ?\displaystyle = \;?
Text solution
Raise the power, then divide by itDifferentiating x5\ta{x^{\dn{5}}} gives 5x4\dn{5}\ta{x^4}, which is 5\dn{5} times too large, so we divide by 5\dn{5}, the new exponent.
ddx(x55)\displaystyle \frac{d}{dx}\Big(\ta{\frac{x^{\dn{5}}}{\dn{5}}}\Big) =5x45\displaystyle = \frac{\dn{5}\ta{x^4}}{\dn{5}} =x4\displaystyle = \ta{x^4}
Negative and fractional powersWrite 1x3\ta{\frac{1}{x^3}} as x−3\ta{x^{-3}} and x\ta{\sqrt{x}} as x12\ta{x^{\frac12}} first. Adding 11 to −3-3 gives −2\dn{-2}, not −4-4.
∫x−3 dx\displaystyle \int \ta{x^{-3}}\,dx =x−2−2+C\displaystyle = \ta{\frac{x^{\dn{-2}}}{\dn{-2}}} + \cst{C} =−12x2+C\displaystyle = \ta{-\frac{1}{2x^2}} + \cst{C}
∫x12 dx\displaystyle \int \ta{x^{\frac12}}\,dx =x3232+C\displaystyle = \ta{\frac{x^{\dn{\frac32}}}{\dn{\frac32}}} + \cst{C} =23 x32+C\displaystyle = \ta{\dn{\frac23}\,x^{\frac32}} + \cst{C}
A sum, term by termEach term integrates on its own, and its constant multiplier stays in front. The terms' constants add up to one C\cst{C}.
∫(6x2−4x+3) dx=2x3−2x2+3x+C\displaystyle \begin{aligned}&\int \big(\ta{6x^2} \tb{{}- 4x} + \tc{3}\big)\,dx\\ &\quad= \ta{2x^3} \tb{{}- 2x^2} + \tc{3x} + \cst{C}\end{aligned}

Nothing here depended on the 44. We add 11 to the exponent and divide by the new exponent. The one power this can't handle is n=−1n = -1, where the new exponent is 0\dn{0}, and we can't divide by 0\dn{0}.

∫xn dx\displaystyle \int \ta{x^n}\,dx =xn+1n+1+C(n≠−1)\displaystyle = \ta{\frac{x^{\dn{n+1}}}{\dn{n+1}}} + \cst{C} \qquad (n \neq -1)
3

When the power is −1-1

That leaves 1x\ta{\frac{1}{x}}, which is x−1\ta{x^{-1}}. Adding 11 to the power gives x00\ta{\frac{x^{\dn{0}}}{\dn{0}}}, and dividing by 0\dn{0} is undefined. So we need a different function whose derivative is 1x\ta{\frac{1}{x}}, for negative xx as well as positive.

Find ∫1x dx\int \frac{1}{x}\,dx and ∫(x2+5x) dx\int \big(x^2 + \frac{5}{x}\big)\,dx
xx
yy
y=ln⁡x\htmlClass{lc-blue}{y = \ln x}
xx
yy
y=1x\htmlClass{lc-blue}{y = \dfrac{1}{x}}
Text solution
ln⁡x\ta{\ln x} covers only x>0x > 0The derivative of ln⁡x\ta{\ln x} is 1x\ta{\frac{1}{x}}, but ln⁡x\ta{\ln x} isn't defined for negative xx, and 1x\ta{\frac{1}{x}} is.
ddx ln⁡x\displaystyle \frac{d}{dx}\,\ta{\ln x} =1x(x>0)\displaystyle = \ta{\frac{1}{x}} \qquad (x > 0)
Reflect it: ln⁡∣x∣\ta{\ln|x|}For x<0x < 0, the graph of ln⁡∣x∣\ta{\ln|x|} is ln⁡x\ta{\ln x} reflected across the y-axis, and the reflection changes the sign of every slope. The slope of ln⁡x\ta{\ln x} at aa is 1a\slp{\frac{1}{a}}, so the slope of ln⁡∣x∣\ta{\ln|x|} at −a-a is
−1a\displaystyle \slp{-\frac{1}{a}} =1−a\displaystyle = \slp{\frac{1}{-a}}
A constant in front5x\ta{\frac{5}{x}} is 5⋅1x\ta{5 \cdot \frac{1}{x}}, so the 55 stays in front.
∫(x2+5x) dx\displaystyle \int \Big(\tb{x^2} + \ta{\frac{5}{x}}\Big)\,dx =x33+5ln⁡∣x∣+C\displaystyle = \tb{\frac{x^3}{3}} + \ta{5\ln|x|} + \cst{C}

Here are both graphs at one scale. At x=2x = 2 and x=−2x = -2, the slopes of ln⁡∣x∣\ta{\ln|x|} are 12\slp{\frac12} and −12\slp{-\frac12}, the same as the heights of 1x\ta{\frac{1}{x}} there.

xx
yy
12\htmlClass{lc-violet}{\dfrac{1}{2}}
−12\htmlClass{lc-violet}{-\dfrac{1}{2}}
22
−2-2
y=ln⁡∣x∣\htmlClass{lc-blue}{y = \ln|x|}
xx
yy
12\htmlClass{lc-violet}{\dfrac{1}{2}}
−12\htmlClass{lc-violet}{-\dfrac{1}{2}}
22
−2-2
y=1x\htmlClass{lc-blue}{y = \dfrac{1}{x}}
ddx ln⁡∣x∣=1x(x≠0)∫1x dx=ln⁡∣x∣+C\displaystyle \begin{aligned}\frac{d}{dx}\,\ta{\ln|x|} &= \ta{\frac{1}{x}} \qquad (x \neq 0)\\[10pt] \int \ta{\frac{1}{x}}\,dx &= \ta{\ln|x|} + \cst{C}\end{aligned}

The power rule gives xn+1n+1+C\ta{\frac{x^{\dn{n+1}}}{\dn{n+1}}} + \cst{C} whenever n≠−1n \neq -1. When n=−1n = -1, the antiderivative is ln⁡∣x∣+C\ta{\ln|x|} + \cst{C}.

4

Reading the derivative table backwards

We know how to integrate powers of xx, and 1x\ta{\frac{1}{x}}. But what about functions like cos⁡x\cos x, sin⁡x\sin x, exe^x, or 11+x2\frac{1}{1+x^2}? Finding an antiderivative just means asking what function has this derivative, so every derivative rule we know turns into an antiderivative rule when we read it backwards. If the derivative of F(x)\ta{F(x)} is f(x)\ta{f(x)}, then ∫f(x) dx=F(x)+C\int \ta{f(x)}\,dx = \ta{F(x)} + \cst{C}.

ddxsin⁡x\displaystyle \frac{d}{dx}\sin x =cos⁡x\displaystyle = \cos x
∫cos⁡x dx\displaystyle \int \cos x\,dx =sin⁡x+C\displaystyle = \sin x + \cst{C}
ddxcos⁡x\displaystyle \frac{d}{dx}\cos x =−sin⁡x\displaystyle = \dn{-}\sin x
∫sin⁡x dx\displaystyle \int \sin x\,dx =−cos⁡x+C\displaystyle = \dn{-}\cos x + \cst{C}
ddxtan⁡x\displaystyle \frac{d}{dx}\tan x =sec⁡2x\displaystyle = \sec^2 x
∫sec⁡2x dx\displaystyle \int \sec^2 x\,dx =tan⁡x+C\displaystyle = \tan x + \cst{C}
ddxsec⁡x\displaystyle \frac{d}{dx}\sec x =sec⁡xtan⁡x\displaystyle = \sec x\tan x
∫sec⁡xtan⁡x dx\displaystyle \int \sec x\tan x\,dx =sec⁡x+C\displaystyle = \sec x + \cst{C}
ddxcot⁡x\displaystyle \frac{d}{dx}\cot x =−csc⁡2x\displaystyle = \dn{-}\csc^2 x
∫csc⁡2x dx\displaystyle \int \csc^2 x\,dx =−cot⁡x+C\displaystyle = \dn{-}\cot x + \cst{C}
ddxcsc⁡x\displaystyle \frac{d}{dx}\csc x =−csc⁡xcot⁡x\displaystyle = \dn{-}\csc x\cot x
∫csc⁡xcot⁡x dx\displaystyle \int \csc x\cot x\,dx =−csc⁡x+C\displaystyle = \dn{-}\csc x + \cst{C}
ddxex\displaystyle \frac{d}{dx}e^x =ex\displaystyle = e^x
∫ex dx\displaystyle \int e^x\,dx =ex+C\displaystyle = e^x + \cst{C}
ddx2x\displaystyle \frac{d}{dx}2^x =2x ln⁡2\displaystyle = 2^x\,\dn{\ln 2}
∫2x dx\displaystyle \int 2^x\,dx =2xln⁡2+C\displaystyle = \frac{2^x}{\dn{\ln 2}} + \cst{C}
ddxarctan⁡x\displaystyle \frac{d}{dx}\arctan x =11+x2\displaystyle = \frac{1}{1+x^2}
∫11+x2 dx\displaystyle \int \frac{1}{1+x^2}\,dx =arctan⁡x+C\displaystyle = \arctan x + \cst{C}
ddxarcsin⁡x\displaystyle \frac{d}{dx}\arcsin x =11−x2\displaystyle = \frac{1}{\sqrt{1-x^2}}
∫11−x2 dx\displaystyle \int \frac{1}{\sqrt{1-x^2}}\,dx =arcsin⁡x+C\displaystyle = \arcsin x + \cst{C}

The parts to watch are the minus signs and the ln⁡2\dn{\ln 2}, in orange. Let's see where they come from, and then use the table on a sum.

Find integrals of trig, exponential, and inverse trig functions
∫cos⁡x dx\displaystyle \int \cos x\,dx =  ?\displaystyle = \;?
∫sin⁡x dx\displaystyle \int \sin x\,dx =  ?\displaystyle = \;?
∫2x dx\displaystyle \int 2^x\,dx =  ?\displaystyle = \;?
Text solution
Get the sign rightThe derivative of cos⁡x\cos x is −sin⁡x\dn{-}\sin x, so the antiderivative of sin⁡x\sin x is −cos⁡x\dn{-}\cos x. The same minus sign moves to the antiderivative for cot⁡x\cot x and csc⁡x\csc x.
ddx(−cos⁡x)\displaystyle \frac{d}{dx}\big(\dn{-}\cos x\big) =−(−sin⁡x)\displaystyle = \dn{-}(\dn{-}\sin x) =sin⁡x\displaystyle = \sin x
Divide out ln⁡2\dn{\ln 2}In 2x\ta{2^x}, xx is in the exponent, so the power rule doesn't apply. Its derivative has an extra constant factor ln⁡2\dn{\ln 2}, and we divide by it.
∫2x dx\displaystyle \int \ta{2^x}\,dx =2xln⁡2+C\displaystyle = \ta{\frac{2^x}{\dn{\ln 2}}} + \cst{C}
Put them in a sumThe −3\tb{-3} multiplies −cos⁡x\tb{\dn{-}\cos x}, and that gives +3cos⁡x\tb{+3\cos x}. Differentiating the answer gives back 4ex−3sin⁡x\ta{4e^x} - \tb{3\sin x}.
∫(4ex−3sin⁡x) dx=4ex+3cos⁡x+C\displaystyle \begin{aligned}&\int \big(\ta{4e^x} \tb{{}- 3\sin x}\big)\,dx\\ &\quad= \ta{4e^x} \tb{{}+ 3\cos x} + \cst{C}\end{aligned}
5

Rewriting before integrating

Some integrands aren't a power of xx or a row of the table yet, like ∫(x2+1)2 dx\int (x^2 + 1)^2\,dx. You might use the power rule backwards and guess (x2+1)33\frac{(x^2 + 1)^3}{3}. Let's check its derivative with the chain rule.

ddx (x2+1)33=(x2+1)2⋅(x2+1)′=(x2+1)2⋅2x\displaystyle \begin{aligned}\frac{d}{dx}\,\frac{(x^2+1)^3}{3} &= (x^2+1)^2 \cdot (x^2+1)'\\ &= (x^2+1)^2 \cdot \dn{2x}\end{aligned}
ddx x33=x2⋅(x)′=x2⋅1\displaystyle \begin{aligned}\frac{d}{dx}\,\frac{x^3}{3} &= x^2 \cdot (x)'\\ &= x^2 \cdot \dn{1}\end{aligned}

The chain rule brings in the derivative of the inside, 2x\dn{2x}, and our integral has no 2x\dn{2x}. With plain xx inside, that factor is just 1\dn{1}, which is why the power rule backwards only works for powers of xx. So we rewrite the integrand first.

Integrate (x2+1)2(x^2 + 1)^2, x+1x\frac{x+1}{\sqrt{x}}, and tan⁡2x\tan^2 x
∫(x2+1)2 dx\displaystyle \int \big(x^2 + 1\big)^2\,dx =  ?\displaystyle = \;?
∫x+1x dx\displaystyle \int \frac{x+1}{\sqrt{x}}\,dx =  ?\displaystyle = \;?
∫tan⁡2x dx\displaystyle \int \tan^2 x\,dx =  ?\displaystyle = \;?
Text solution
Expand the squareOnce it's written as powers of xx, we integrate term by term.
(x2+1)2\displaystyle (x^2 + 1)^2 =x4+2x2+1\displaystyle = \ta{x^4} + \tb{2x^2} + \tc{1}
∫(x2+1)2 dx\displaystyle \int (x^2+1)^2\,dx =x55+2x33+x+C\displaystyle = \ta{\frac{x^5}{5}} + \tb{\frac{2x^3}{3}} + \tc{x} + \cst{C}
Split the fractionThe denominator is a single term, x=x12\sqrt{x} = x^{\frac12}, so we divide each term of the numerator by it.
x+1x\displaystyle \frac{\ta{x}+\tb{1}}{\sqrt{x}} =x12+x−12\displaystyle = \ta{x^{\frac12}} + \tb{x^{-\frac12}}
∫x+1x dx\displaystyle \int \frac{\ta{x}+\tb{1}}{\sqrt{x}}\,dx =23 x32+2x12+C\displaystyle = \ta{\frac23\,x^{\frac32}} + \tb{2x^{\frac12}} + \cst{C}
Use a trig identitytan⁡2x\tan^2 x isn't in the table, but sec⁡2x\ta{\sec^2 x} is. Dividing sin⁡2x+cos⁡2x=1\sin^2 x + \cos^2 x = 1 by cos⁡2x\cos^2 x gives tan⁡2x+1=sec⁡2x\tan^2 x + 1 = \ta{\sec^2 x}. Guessing tan⁡3x3\frac{\tan^3 x}{3} would fail like before, with an extra sec⁡2x\dn{\sec^2 x} from the chain rule.
∫tan⁡2x dx=∫(sec⁡2x−1) dx=tan⁡x−x+C\displaystyle \begin{aligned}\int \tan^2 x\,dx &= \int \big(\ta{\sec^2 x} \tb{{}- 1}\big)\,dx\\ &= \ta{\tan x} \tb{{}- x} + \cst{C}\end{aligned}

A product needs rewriting too. The product rule says (f⋅g)′=f′g+fg′(f \cdot g)' = f'g + fg', not f′⋅g′f' \cdot g', so we can't integrate a product one factor at a time. We multiply it out first.

x (x−3)\displaystyle \sqrt{x}\,(x - 3) =x32−3x12\displaystyle = \ta{x^{\frac32}} \tb{{}- 3x^{\frac12}}
6

Finding the constant CC

When we find an antiderivative, the +C+ \cst{C} gives a whole family of curves, one for each value of C\cst{C}. But if we're also given the value of the function at one point, only one curve in that family passes through that point.

Find f(x)f(x) when f′(x)=3x2−2f'(x) = 3x^2 - 2 and f(1)=4f(1) = 4
xx
yy
y=x3−2x\htmlClass{lc-blue}{y = x^3 - 2x}
(1, 4)\htmlClass{lc-pink}{(1,\,4)}
Text solution
IntegrateThe derivative of x3\ta{x^3} is 3x2\ta{3x^2} and the derivative of −2x\ta{-2x} is −2\ta{-2}.
f(x)\displaystyle f(x) =x3−2x+C\displaystyle = \ta{x^3 - 2x} + \cst{C}
Use f(1)=4f(1) = \giv{4}Plug x=1x = 1 into the whole antiderivative and solve for C\cst{C}.
f(1)\displaystyle f(1) =13−2(1)+C\displaystyle = \ta{1^3 - 2(1)} + \cst{C} =−1+C\displaystyle = \ta{-1} + \cst{C} =4\displaystyle = \giv{4}
C=5,f(x)\displaystyle \cst{C = 5}, \qquad f(x) =x3−2x+5\displaystyle = \ta{x^3 - 2x} + \cst{5}
C\cst{C} isn't the given valueWith C=4\cst{C} = \cst{4}, the height at x=1x = 1 is 33, not 4\giv{4}. C\cst{C} equals the given value only when x3−2x\ta{x^3 - 2x} is 0\ta{0} at that xx.
1−2+4\displaystyle \ta{1 - 2} + \cst{4} =3\displaystyle = 3

On the graph, C\cst{C} is how far we shift the curve y=x3−2xy = \ta{x^3 - 2x} to reach the point (1,4)\giv{(1, 4)}: from the height −1\ta{-1} up to 4\giv{4}, a shift of 5\cst{5}.

xx
yy
−1\htmlClass{lc-blue}{-1}
5\htmlClass{lc-green}{5}
(1, 4)\htmlClass{lc-pink}{(1,\,4)}
y=x3−2x+5\htmlClass{lc-blue}{y = x^3 - 2x} + \htmlClass{lc-green}{5}
y=x3−2x\htmlClass{lc-blue}{y = x^3 - 2x}

Is the given function value always the constant C?

Choose the antiderivative
7

Finding ff from its second derivative

Now we start from the second derivative, f′′(x)f''(x), and we want to find f(x)f(x). Integrating once gets us back to f′(x)f'(x), and integrating a second time gets us to f(x)f(x). Each integration adds its own constant, so we call the first one C1\cone{C_1} and the second one C2\cst{C_2}.

Find f(x)f(x) from f′′(x)=6x+2f''(x) = 6x + 2 with f′(1)=4f'(1) = 4 and f(1)=2f(1) = 2, then from f′′(x)=6xf''(x) = 6x with f(0)=1f(0) = 1 and f(2)=11f(2) = 11
f′′(x)=6x+2f′(1)=4,f(1)=2f(x)=  ?\displaystyle \begin{aligned}f''(x) &= 6x + 2\\ f'(1) &= \giv{4}, \quad f(1) = \giv{2}\\ f(x) &= \;?\end{aligned}
Text solution
Find C1\cone{C_1} before integrating againf′(1)=4f'(1) = \giv{4} is a fact about f′(x)f'(x), so it gives C1\cone{C_1} right away. Dropping C1\cone{C_1} would make f′(1)=5f'(1) = 5, not 4\giv{4}.
f′(x)=3x2+2x+C1f′(1)=3+2+C1=4C1=−1\displaystyle \begin{aligned}f'(x) &= 3x^2 + 2x + \cone{C_1}\\ f'(1) &= 3 + 2 + \cone{C_1} = \giv{4}\\ \cone{C_1} &= \cone{-1}\end{aligned}
Integrate again, then find C2\cst{C_2}
f(x)=x3+x2−x+C2f(1)=1+1−1+C2=2f(x)=x3+x2−x+1\displaystyle \begin{aligned}f(x) &= x^3 + x^2 \cone{{}- x} + \cst{C_2}\\ f(1) &= 1 + 1 \cone{{}- 1} + \cst{C_2} = \giv{2}\\ f(x) &= x^3 + x^2 \cone{{}- x} + \cst{1}\end{aligned}
When both values are of ffFor f′′(x)=6xf''(x) = 6x with f(0)=1f(0) = \giv{1} and f(2)=11f(2) = \giv{11}, we can't find C1\cone{C_1} yet, so we keep it. It's a constant, so it integrates to C1x\cone{C_1 x}, and the two values of ff give both constants.
f(x)=x3+C1x+C2f(0)=C2=1f(2)=8+2C1+1=11f(x)=x3+x+1\displaystyle \begin{aligned}f(x) &= x^3 + \cone{C_1 x} + \cst{C_2}\\ f(0) &= \cst{C_2} = \giv{1}\\ f(2) &= 8 + \cone{2C_1} + \cst{1} = \giv{11}\\ f(x) &= x^3 + \cone{x} + \cst{1}\end{aligned}

Summary

The meaning of an indefinite integral
∫f(x) dx=F(x)+CmeansF′(x)=f(x)\displaystyle \begin{aligned}\int \ta{f(x)}\,dx &= \ta{F(x)} + \cst{C}\\ \text{means}\quad \ta{F'(x)} &= \ta{f(x)}\end{aligned}
∫2x dx=x2+Cddx(x2+C)=2x\displaystyle \begin{aligned}\int \ta{2x}\,dx &= \ta{x^2} + \cst{C}\\ \frac{d}{dx}\big(\ta{x^2} + \cst{C}\big) &= \ta{2x}\end{aligned}

An antiderivative of f(x)\ta{f(x)} is any function whose derivative is f(x)\ta{f(x)}. Adding a constant shifts the graph up or down without changing its slope, and once you find one antiderivative, adding C\cst{C} gives every antiderivative. To check your answer, take its derivative. You should get back the function inside the integral.

The power rule and 1x\frac{1}{x}
∫xn dx=xn+1n+1+C(n≠−1)\displaystyle \begin{aligned}\int \ta{x^n}\,dx &= \ta{\frac{x^{\dn{n+1}}}{\dn{n+1}}} + \cst{C}\\ &\qquad (n \neq -1)\end{aligned}
∫x dx\displaystyle \int \ta{\sqrt{x}}\,dx =23 x32+C\displaystyle = \ta{\frac23\,x^{\frac32}} + \cst{C}
∫1x3 dx\displaystyle \int \ta{\frac{1}{x^3}}\,dx =−12x2+C\displaystyle = \ta{-\frac{1}{2x^2}} + \cst{C}
∫1x dx\displaystyle \int \ta{\frac{1}{x}}\,dx =ln⁡∣x∣+C\displaystyle = \ta{\ln|x|} + \cst{C}

To integrate a power of xx, add 11 to the exponent and divide by that new exponent. Write roots and reciprocals as powers of xx before integrating, like x=x12\sqrt{x} = x^{\frac12} and 1x3=x−3\frac{1}{x^3} = x^{-3}.

When the exponent is −1-1, adding 11 would mean dividing by 00, so the power rule doesn't work. For x−1=1x\ta{x^{-1}} = \ta{\frac{1}{x}}, the antiderivative is ln⁡∣x∣+C\ta{\ln|x|} + \cst{C}.

Reading derivative rules backwards
∫cos⁡x dx\displaystyle \int \cos x\,dx =sin⁡x+C\displaystyle = \sin x + \cst{C}
∫sin⁡x dx\displaystyle \int \sin x\,dx =−cos⁡x+C\displaystyle = \dn{-}\cos x + \cst{C}
∫sec⁡2x dx\displaystyle \int \sec^2 x\,dx =tan⁡x+C\displaystyle = \tan x + \cst{C}
∫csc⁡2x dx\displaystyle \int \csc^2 x\,dx =−cot⁡x+C\displaystyle = \dn{-}\cot x + \cst{C}
∫sec⁡xtan⁡x dx\displaystyle \int \sec x\tan x\,dx =sec⁡x+C\displaystyle = \sec x + \cst{C}
∫csc⁡xcot⁡x dx\displaystyle \int \csc x\cot x\,dx =−csc⁡x+C\displaystyle = \dn{-}\csc x + \cst{C}
∫ex dx\displaystyle \int e^x\,dx =ex+C\displaystyle = e^x + \cst{C}
∫2x dx\displaystyle \int 2^x\,dx =2xln⁡2+C\displaystyle = \frac{2^x}{\dn{\ln 2}} + \cst{C}
∫11+x2 dx\displaystyle \int \frac{1}{1+x^2}\,dx =arctan⁡x+C\displaystyle = \arctan x + \cst{C}
∫11−x2 dx\displaystyle \int \frac{1}{\sqrt{1-x^2}}\,dx =arcsin⁡x+C\displaystyle = \arcsin x + \cst{C}

Every derivative rule gives an integration rule when read backwards. The trig functions starting with "co", cos⁡x\cos x, cot⁡x\cot x, and csc⁡x\csc x, have minus signs in their derivatives, so those minus signs appear on the antiderivatives −cos⁡x\dn{-}\cos x, −cot⁡x\dn{-}\cot x, and −csc⁡x\dn{-}\csc x. If you're ever unsure about a sign, differentiate your answer to check.

Rewriting before integrating
(x2+1)2\displaystyle (x^2+1)^2 =x4+2x2+1\displaystyle = \ta{x^4} + \tb{2x^2} + \tc{1}
x+1x\displaystyle \frac{\ta{x}+\tb{1}}{\sqrt{x}} =x12+x−12\displaystyle = \ta{x^{\frac12}} + \tb{x^{-\frac12}}
tan⁡2x\displaystyle \tan^2 x =sec⁡2x−1\displaystyle = \ta{\sec^2 x} \tb{{}- 1}

There's no product rule or quotient rule for integrals, and the power rule applies to powers of xx, not powers of an expression like x2+1x^2 + 1. Expand powers like (x2+1)2(x^2 + 1)^2, split fractions with a single term in the denominator, or use trig identities to rewrite everything into powers of xx and table entries before integrating.

Finding constants of integration
f(x)=x3−2x+Cf(1)=−1+C=4C=5\displaystyle \begin{aligned}f(x) &= \ta{x^3 - 2x} + \cst{C}\\ f(1) &= \ta{-1} + \cst{C} = \giv{4}\\ \cst{C} &= \cst{5}\end{aligned}
∫C1 dx\displaystyle \int \cone{C_1}\,dx =C1x\displaystyle = \cone{C_1 x}

To find C\cst{C}, plug the given xx into the whole antiderivative, set it equal to the given value, and solve for C\cst{C}. C\cst{C} only equals the given function value when the rest of the antiderivative is 0\ta{0} at that xx, as x3−2x\ta{x^3 - 2x} is at x=0x = 0.

For a second derivative f′′f'', you integrate twice and get two constants, C1\cone{C_1} and then C2\cst{C_2}. If you have a value for f′f', solve for C1\cone{C_1} before integrating a second time. If both conditions are on ff, integrate C1\cone{C_1} to C1x\cone{C_1 x} and use both values of ff to solve for C1\cone{C_1} and C2\cst{C_2}.

8

Practice

Remember to include +C+ \cst{C} for indefinite integrals.

1
Find ∫(4x3−6x+7) dx\displaystyle\int \big(4x^3 - 6x + 7\big)\,dx.

7 is 7x07x^0. What is ∫7x0 dx\int 7x^0\,dx?

If you got x4−3x2+7+Cx^4 - 3x^2 + 7 + C Check the antiderivative of 7. The derivative of 7x7x is 77, but the derivative of 77 is 00.

Integrate term by term with the power rule, then add one constant C\cst{C} for the whole sum.
∫(4x3−6x+7) dx\displaystyle \int \big(\ta{4x^3} \tb{{}- 6x} + \tc{7}\big)\,dx =x4−3x2+7x+C\displaystyle = \ta{x^4} \tb{{}- 3x^2} + \tc{7x} + \cst{C}
Differentiating our answer gives back the function we started with.
ddx(x4−3x2+7x+C)\displaystyle \frac{d}{dx}\big(\ta{x^4} \tb{{}- 3x^2} + \tc{7x} + \cst{C}\big) =4x3−6x+7\displaystyle = \ta{4x^3} \tb{{}- 6x} + \tc{7}
2
Find ∫(2x−3x2) dx\displaystyle\int \Big(\frac{2}{\sqrt{x}} - \frac{3}{x^2}\Big)\,dx.

Write 2x\frac{2}{\sqrt{x}} and 3x2\frac{3}{x^2} as powers of xx.

For −3x−2-3x^{-2}, what is −2+1-2 + 1, and what do we divide by?

If you got 4x−3x+C4\sqrt{x} - \dfrac{3}{x} + C Check the sign on the second term. Dividing −3-3 by the new exponent −1-1 gives +3+3.

Rewrite as powers of xWrite each term with a negative exponent. 2x\frac{2}{\sqrt{x}} becomes 2x−12\ta{2x^{-\frac12}}, and 3x2\frac{3}{x^2} becomes 3x−2\tb{3x^{-2}}.
2x−3x2\displaystyle \frac{2}{\sqrt{x}} - \frac{3}{x^2} =2x−12−3x−2\displaystyle = \ta{2x^{-\frac12}} \tb{{}- 3x^{-2}}
Integrate term by termAdd 11 to each exponent and divide by the new exponent. Dividing by −1\dn{-1} on the second term changes the minus sign to a plus.
∫(2x−12−3x−2) dx=2⋅x1212−3⋅x−1−1+C=4x12+3x−1+C=4x+3x+C\displaystyle \begin{aligned}\int \big(\ta{2x^{-\frac12}} \tb{{}- 3x^{-2}}\big)\,dx &= \ta{2\cdot\frac{x^{\dn{\frac12}}}{\dn{\frac12}}} \tb{{}- 3\cdot\frac{x^{\dn{-1}}}{\dn{-1}}} + \cst{C}\\ &= \ta{4x^{\frac12}} \tb{{}+ 3x^{-1}} + \cst{C}\\ &= \ta{4\sqrt{x}} \tb{{}+ \frac{3}{x}} + \cst{C}\end{aligned}
3
Find ∫x3−2x+5x2 dx\displaystyle\int \frac{x^3 - 2x + 5}{x^2}\,dx.

Divide each term in the numerator by x2x^2. What does x3x2−2xx2+5x2\frac{x^3}{x^2} - \frac{2x}{x^2} + \frac{5}{x^2} simplify to?

The power rule doesn't work for 1x\frac{1}{x}. Which function has derivative 1x\frac{1}{x}?

If you got x22−2ln⁡x−5x+C\dfrac{x^2}{2} - 2\ln x - \dfrac{5}{x} + C Check the logarithm. 1x\frac{1}{x} is defined for negative xx too, so its antiderivative needs an absolute value.

Split the fractionThere's only a single term in the denominator, so split the fraction and simplify each term.
x3−2x+5x2=x3x2−2xx2+5x2=x−2x+5x−2\displaystyle \begin{aligned}\frac{x^3 - 2x + 5}{x^2} &= \ta{\frac{x^3}{x^2}} \tb{{}- \frac{2x}{x^2}} + \tc{\frac{5}{x^2}}\\ &= \ta{x} \tb{{}- \frac{2}{x}} + \tc{5x^{-2}}\end{aligned}
Integrate each termUse the power rule for x\ta{x} and 5x−2\tc{5x^{-2}}, and integrate −2x\tb{-\frac{2}{x}} to −2ln⁡∣x∣\tb{-2\ln|x|}.
∫(x−2x+5x−2) dx=x22−2ln⁡∣x∣+5⋅x−1−1+C=x22−2ln⁡∣x∣−5x+C\displaystyle \begin{aligned}\int \Big(\ta{x} \tb{{}- \frac{2}{x}} + \tc{5x^{-2}}\Big)\,dx &= \ta{\frac{x^{\dn{2}}}{\dn{2}}} \tb{{}- 2\ln|x|} + \tc{5\cdot\frac{x^{\dn{-1}}}{\dn{-1}}} + \cst{C}\\ &= \ta{\frac{x^2}{2}} \tb{{}- 2\ln|x|} \tc{{}- \frac{5}{x}} + \cst{C}\end{aligned}
4
Find ∫sin⁡xcos⁡2x dx\displaystyle\int \frac{\sin x}{\cos^2 x}\,dx.

Split cos⁡2x\cos^2 x into two factors. What is 1cos⁡x⋅sin⁡xcos⁡x\frac{1}{\cos x}\cdot\frac{\sin x}{\cos x}?

Which function has derivative sec⁡xtan⁡x\sec x\tan x?

If you got −sec⁡x+C-\sec x + C Check the sign. The derivative of sec⁡x\sec x is sec⁡xtan⁡x\sec x\tan x, with no minus sign. Differentiating −sec⁡x-\sec x gives −sec⁡xtan⁡x-\sec x\tan x.

Rewrite using trig definitionsSplit cos⁡2x\cos^2 x into two factors to match a known derivative.
sin⁡xcos⁡2x\displaystyle \frac{\sin x}{\cos^2 x} =1cos⁡x⋅sin⁡xcos⁡x\displaystyle = \frac{1}{\cos x}\cdot\frac{\sin x}{\cos x} =sec⁡xtan⁡x\displaystyle = \ta{\sec x\tan x}
Integratesec⁡xtan⁡x\ta{\sec x\tan x} is the derivative of sec⁡x\ta{\sec x}, with no minus sign.
∫sec⁡xtan⁡x dx\displaystyle \int \ta{\sec x\tan x}\,dx =sec⁡x+C\displaystyle = \ta{\sec x} + \cst{C}
ddxsec⁡x\displaystyle \frac{d}{dx}\ta{\sec x} =sec⁡xtan⁡x\displaystyle = \ta{\sec x\tan x}
5
Find ∫(2x+31−x2) dx\displaystyle\int \Big(2^x + \frac{3}{\sqrt{1-x^2}}\Big)\,dx.

2x2^x has xx in the exponent, so it isn't a power rule problem. What is the derivative of 2x2^x?

Which inverse trig function has derivative 11−x2\frac{1}{\sqrt{1-x^2}}?

If you got 2x+1x+1+3arcsin⁡x+C\dfrac{2^{x+1}}{x+1} + 3\arcsin x + C The power rule only works when xx is in the base. For 2x2^x, xx is in the exponent.

Integrate 2ˣThe derivative of 2x\ta{2^x} is 2xln⁡2\ta{2^x}\dn{\ln 2}, so we divide by the constant ln⁡2\dn{\ln 2} when integrating.
ddx2x\displaystyle \frac{d}{dx}2^x =2x ln⁡2  →  ∫2x dx\displaystyle = 2^x\,\dn{\ln 2} \;\to\; \int \ta{2^x}\,dx =2xln⁡2+C\displaystyle = \ta{\frac{2^x}{\dn{\ln 2}}} + \cst{C}
Integrate the remaining termThe derivative of arcsin⁡x\arcsin x is 11−x2\frac{1}{\sqrt{1-x^2}}, so the second term integrates to 3arcsin⁡x\tb{3\arcsin x}.
ddxarcsin⁡x\displaystyle \frac{d}{dx}\arcsin x =11−x2  →  ∫31−x2 dx\displaystyle = \frac{1}{\sqrt{1-x^2}} \;\to\; \int \tb{\frac{3}{\sqrt{1-x^2}}}\,dx =3arcsin⁡x+C\displaystyle = \tb{3\arcsin x} + \cst{C}
∫(2x+31−x2) dx\displaystyle \int \Big(\ta{2^x} + \tb{\frac{3}{\sqrt{1-x^2}}}\Big)\,dx =2xln⁡2+3arcsin⁡x+C\displaystyle = \ta{\frac{2^x}{\dn{\ln 2}}} + \tb{3\arcsin x} + \cst{C}
6
Which of these is an antiderivative of xcos⁡xx\cos x?

Differentiate each choice with the product rule to see which one gives xcos⁡xx \cos x.

If you got xsin⁡x−cos⁡xx\sin x - \cos x Differentiating −cos⁡x-\cos x gives +sin⁡x+\sin x, so the sine terms add to 2sin⁡x2\sin x instead of canceling.

If you got x22sin⁡x\dfrac{x^2}{2}\sin x Differentiating this product gives xsin⁡x+x22cos⁡xx\sin x + \frac{x^2}{2}\cos x.

If you got xsin⁡xx\sin x Differentiating xsin⁡xx \sin x gives sin⁡x+xcos⁡x\sin x + x \cos x, which leaves an extra sin⁡x\sin x term.

Check the correct choiceUse the product rule on xsin⁡x\ta{x\sin x} and differentiate cos⁡x\ta{\cos x}.
ddx(xsin⁡x+cos⁡x)\displaystyle \frac{d}{dx}\big(\ta{x\sin x + \cos x}\big) =sin⁡x+xcos⁡x−sin⁡x\displaystyle = \sin x + x\cos x \dn{-} \sin x =xcos⁡x\displaystyle = \ta{x\cos x}
Differentiating the other three choices does not give xcos⁡x\ta{x\cos x}.
ddx(xsin⁡x−cos⁡x)=2sin⁡x+xcos⁡xddx(x22sin⁡x)=xsin⁡x+x22cos⁡xddx(xsin⁡x)=sin⁡x+xcos⁡x\displaystyle \begin{aligned}\frac{d}{dx}\big(x\sin x - \cos x\big) &= 2\sin x + x\cos x\\ \frac{d}{dx}\Big(\frac{x^2}{2}\sin x\Big) &= x\sin x + \frac{x^2}{2}\cos x\\ \frac{d}{dx}\big(x\sin x\big) &= \sin x + x\cos x\end{aligned}
7
f′(x)=3xf'(x) = 3\sqrt{x} and f(4)=20f(4) = 20. Find f(x)f(x).

Write 3x3\sqrt{x} as 3x123x^{\frac12} and integrate. What is 3⋅x32323\cdot\frac{x^{\frac32}}{\frac32}?

Plug x=4x = 4 into f(x)f(x) and set it equal to 2020. Remember that 432=(4)34^{\frac32} = (\sqrt{4})^3.

If you got 2x32+202x^{\frac32} + 20 Plug 44 into the entire antiderivative to solve for CC. At x=4x = 4, 2x322x^{\frac32} is 1616, not 00.

Find the general antiderivativeIntegrate f′(x)f'(x) using the power rule to find f(x)f(x) with an unknown constant C\cst{C}.
f(x)\displaystyle f(x) =∫3x12 dx\displaystyle = \int \ta{3x^{\frac12}}\,dx =3⋅x3232+C\displaystyle = \ta{3\cdot\frac{x^{\dn{\frac32}}}{\dn{\frac32}}} + \cst{C} =2x32+C\displaystyle = \ta{2x^{\frac32}} + \cst{C}
Solve for CPlug in x=4x = 4 and set the result equal to 20 to find C\cst{C}.
f(4)=2⋅432+C=2⋅8+C=16+C=20C=4f(x)=2x32+4\displaystyle \begin{aligned}f(4) &= \ta{2\cdot 4^{\frac32}} + \cst{C} = \ta{2\cdot 8} + \cst{C} = \ta{16} + \cst{C} = \giv{20}\\ \cst{C} &= \cst{4}\\[6pt] f(x) &= \ta{2x^{\frac32}} + \cst{4}\end{aligned}
8
f′′(x)=sin⁡xf''(x) = \sin x, f′(0)=2f'(0) = 2 and f(0)=1f(0) = 1. Find f(x)f(x).

Integrate f′′(x)=sin⁡xf''(x) = \sin x to get f′(x)f'(x), then use f′(0)=2f'(0) = 2 to find C1C_1.

What is −cos⁡0-\cos 0?

If you got −sin⁡x+2x+1-\sin x + 2x + 1 Check how you found C1C_1. At x=0x = 0, −cos⁡0=−1-\cos 0 = -1, not 0.

If you got sin⁡x+x+1\sin x + x + 1 Check the sign when integrating sin⁡x\sin x. The derivative of cos⁡x\cos x is −sin⁡x-\sin x, so ∫sin⁡x dx=−cos⁡x+C\int \sin x\,dx = -\cos x + \cst{C}.

Find f′(x)Integrate sin⁡x\ta{\sin x} to get −cos⁡x+C1\ta{\dn{-}\cos x} + \cone{C_1}, then plug in x=0x = 0 to find C1\cone{C_1}.
f′(x)=−cos⁡x+C1f′(0)=−cos⁡0+C1=−1+C1=2C1=3\displaystyle \begin{aligned}f'(x) &= \ta{\dn{-}\cos x} + \cone{C_1}\\ f'(0) &= \ta{-\cos 0} + \cone{C_1} = \ta{-1} + \cone{C_1} = \giv{2}\\ \cone{C_1} &= \cone{3}\end{aligned}
Find f(x)Integrate f′(x)f'(x) to get f(x)f(x), then use f(0)=1f(0) = \giv{1} to find C2\cst{C_2}.
f(x)=∫(−cos⁡x+3) dx=−sin⁡x+3x+C2f(0)=−sin⁡0+0+C2=C2=1f(x)=−sin⁡x+3x+1\displaystyle \begin{aligned}f(x) &= \int \big(\ta{-\cos x} + \cone{3}\big)\,dx = \ta{-\sin x} + \cone{3x} + \cst{C_2}\\ f(0) &= \ta{-\sin 0} + 0 + \cst{C_2} = \cst{C_2} = \giv{1}\\[6pt] f(x) &= \ta{-\sin x} + \cone{3x} + \cst{1}\end{aligned}
9
A stone is thrown straight up at 48 ft/s from the top of a building 64 feet tall. Its acceleration is a(t)=−32a(t) = -32 ft/s². How high above the ground does the stone get? (Challenge)

Integrate acceleration to find v(t)v(t), using v(0)=48v(0) = 48 for C1C_1. Then integrate v(t)v(t) to find s(t)s(t), using s(0)=64s(0) = 64 for C2C_2.

At the top of its flight, the stone stops rising for an instant. What is v(t)v(t) there?

Find the velocity functionIntegrate acceleration, and use the initial velocity v(0)=48v(0) = \giv{48} to find C1\cone{C_1}.
v(t)=∫−32 dt=−32t+C1v(0)=C1=48v(t)=−32t+48\displaystyle \begin{aligned}v(t) &= \int -32\,dt = -32t + \cone{C_1}\\ v(0) &= \cone{C_1} = \giv{48}\\ v(t) &= -32t + \cone{48}\end{aligned}
Find the position functionIntegrate velocity, and use the starting height s(0)=64s(0) = \giv{64} to find C2\cst{C_2}.
s(t)=∫(−32t+48) dt=−16t2+48t+C2s(0)=C2=64s(t)=−16t2+48t+64\displaystyle \begin{aligned}s(t) &= \int (-32t + \cone{48})\,dt = -16t^2 + \cone{48t} + \cst{C_2}\\ s(0) &= \cst{C_2} = \giv{64}\\ s(t) &= -16t^2 + \cone{48t} + \cst{64}\end{aligned}
Find the maximum heightSet velocity equal to 00 to find when the stone stops rising, then plug that time into s(t)s(t).
v(t)\displaystyle v(t) =0  →  −32t+48\displaystyle = 0 \;\to\; -32t + 48 =0  →  t\displaystyle = 0 \;\to\; t =32\displaystyle = \frac32
s(32)\displaystyle s\Big(\frac32\Big) =−16⋅94+48⋅32+64\displaystyle = -16\cdot\frac94 + 48\cdot\frac32 + 64 =−36+72+64\displaystyle = -36 + 72 + 64 =100\displaystyle = 100