We know that the derivative of x2 is 2x. But what if we turn that around, and ask which functions have derivative 2x?x2 is one answer. The derivative of a constant is 0, so x2+3 and x2−1 are answers too.
dxd(x2)dxd(x2+3)dxd(x2−1)=2x=2x=2x
On the graph, adding 3 shifts the curve up, tangent line and all, so the slope at x=1 is still 2. But could a completely different function also have derivative 2x?
Find every function whose derivative is 2x
Text solution
Compare two answersIf F and G both have derivative 2x, their difference has derivative 0.
(F−G)′=2x−2x=0
They differ by a constantBy the Mean Value Theorem, a function with derivative 0 on an interval is constant. Since x2 is one answer, every function whose derivative is 2x is x2 plus a constant.
F(x)=x2+C
We call any function whose derivative is f an antiderivative of f. To write all of them at once, we use the integral sign, ∫. We write ∫2xdx to mean every antiderivative of 2x. The dx tells us the variable is x, and C is the constant of integration. Differentiating the answer always checks it.
∫2xdx=x2+C
dxd(x2+C)=2x
2
The power rule in reverse
Now let's find an antiderivative of x4, a function whose derivative is x4. Differentiating a power of x lowers the exponent by 1, so we'll run the power rule backwards and see what we need to fix.
Find ∫x4dx, and reverse the power rule for derivatives
∫x4dx=?
Text solution
Raise the power, then divide by itDifferentiating x5 gives 5x4, which is 5 times too large, so we divide by 5, the new exponent.
dxd(5x5)=55x4=x4
Negative and fractional powersWrite x31 as x−3 and x as x21 first. Adding 1 to −3 gives −2, not −4.
∫x−3dx=−2x−2+C=−2x21+C
∫x21dx=23x23+C=32x23+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.
∫(6x2−4x+3)dx=2x3−2x2+3x+C
Nothing here depended on the 4. We add 1 to the exponent and divide by the new exponent. The one power this can't handle is n=−1, where the new exponent is 0, and we can't divide by 0.
∫xndx=n+1xn+1+C(n=−1)
3
When the power is −1
That leaves x1, which is x−1. Adding 1 to the power gives 0x0, and dividing by 0 is undefined. So we need a different function whose derivative is x1, for negative x as well as positive.
Find ∫x1dx and ∫(x2+x5)dx
Text solution
lnx covers only x>0The derivative of lnx is x1, but lnx isn't defined for negative x, and x1 is.
dxdlnx=x1(x>0)
Reflect it: ln∣x∣For x<0, the graph of ln∣x∣ is lnx reflected across the y-axis, and the reflection changes the sign of every slope. The slope of lnx at a is a1, so the slope of ln∣x∣ at −a is
−a1=−a1
A constant in frontx5 is 5⋅x1, so the 5 stays in front.
∫(x2+x5)dx=3x3+5ln∣x∣+C
Here are both graphs at one scale. At x=2 and x=−2, the slopes of ln∣x∣ are 21 and −21, the same as the heights of x1 there.
dxdln∣x∣∫x1dx=x1(x=0)=ln∣x∣+C
The power rule gives n+1xn+1+C whenever n=−1. When n=−1, the antiderivative is ln∣x∣+C.
4
Reading the derivative table backwards
We know how to integrate powers of x, and x1. But what about functions like cosx,sinx,ex, or 1+x21? 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) is f(x), then ∫f(x)dx=F(x)+C.
dxdsinx=cosx
∫cosxdx=sinx+C
dxdcosx=−sinx
∫sinxdx=−cosx+C
dxdtanx=sec2x
∫sec2xdx=tanx+C
dxdsecx=secxtanx
∫secxtanxdx=secx+C
dxdcotx=−csc2x
∫csc2xdx=−cotx+C
dxdcscx=−cscxcotx
∫cscxcotxdx=−cscx+C
dxdex=ex
∫exdx=ex+C
dxd2x=2xln2
∫2xdx=ln22x+C
dxdarctanx=1+x21
∫1+x21dx=arctanx+C
dxdarcsinx=1−x21
∫1−x21dx=arcsinx+C
The parts to watch are the minus signs and the ln2, 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
∫cosxdx=?
∫sinxdx=?
∫2xdx=?
Text solution
Get the sign rightThe derivative of cosx is −sinx, so the antiderivative of sinx is −cosx. The same minus sign moves to the antiderivative for cotx and cscx.
dxd(−cosx)=−(−sinx)=sinx
Divide out ln2In 2x,x is in the exponent, so the power rule doesn't apply. Its derivative has an extra constant factor ln2, and we divide by it.
∫2xdx=ln22x+C
Put them in a sumThe −3 multiplies −cosx, and that gives +3cosx. Differentiating the answer gives back 4ex−3sinx.
∫(4ex−3sinx)dx=4ex+3cosx+C
5
Rewriting before integrating
Some integrands aren't a power of x or a row of the table yet, like ∫(x2+1)2dx. You might use the power rule backwards and guess 3(x2+1)3. Let's check its derivative with the chain rule.
dxd3(x2+1)3=(x2+1)2⋅(x2+1)′=(x2+1)2⋅2x
dxd3x3=x2⋅(x)′=x2⋅1
The chain rule brings in the derivative of the inside, 2x, and our integral has no 2x. With plain x inside, that factor is just 1, which is why the power rule backwards only works for powers of x. So we rewrite the integrand first.
Integrate (x2+1)2,xx+1, and tan2x
∫(x2+1)2dx=?
∫xx+1dx=?
∫tan2xdx=?
Text solution
Expand the squareOnce it's written as powers of x, we integrate term by term.
(x2+1)2=x4+2x2+1
∫(x2+1)2dx=5x5+32x3+x+C
Split the fractionThe denominator is a single term, x=x21, so we divide each term of the numerator by it.
xx+1=x21+x−21
∫xx+1dx=32x23+2x21+C
Use a trig identitytan2x isn't in the table, but sec2x is. Dividing sin2x+cos2x=1 by cos2x gives tan2x+1=sec2x. Guessing 3tan3x would fail like before, with an extra sec2x from the chain rule.
∫tan2xdx=∫(sec2x−1)dx=tanx−x+C
A product needs rewriting too. The product rule says (f⋅g)′=f′g+fg′, not f′⋅g′, so we can't integrate a product one factor at a time. We multiply it out first.
x(x−3)=x23−3x21
6
Finding the constant C
When we find an antiderivative, the +C gives a whole family of curves, one for each value of 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) when f′(x)=3x2−2 and f(1)=4
Text solution
IntegrateThe derivative of x3 is 3x2 and the derivative of −2x is −2.
f(x)=x3−2x+C
Use f(1)=4Plug x=1 into the whole antiderivative and solve for C.
f(1)=13−2(1)+C=−1+C=4
C=5,f(x)=x3−2x+5
C isn't the given valueWith C=4, the height at x=1 is 3, not 4.C equals the given value only when x3−2x is 0 at that x.
1−2+4=3
On the graph, C is how far we shift the curve y=x3−2x to reach the point (1,4): from the height −1 up to 4, a shift of 5.
Is the given function value always the constant C?
Choose the antiderivative
7
Finding f from its second derivative
Now we start from the second derivative, f′′(x), and we want to find f(x). Integrating once gets us back to f′(x), and integrating a second time gets us to f(x). Each integration adds its own constant, so we call the first one C1 and the second one C2.
Find f(x) from f′′(x)=6x+2 with f′(1)=4 and f(1)=2, then from f′′(x)=6x with f(0)=1 and f(2)=11
f′′(x)f′(1)f(x)=6x+2=4,f(1)=2=?
Text solution
Find C1 before integrating againf′(1)=4 is a fact about f′(x), so it gives C1 right away. Dropping C1 would make f′(1)=5, not 4.
f′(x)f′(1)C1=3x2+2x+C1=3+2+C1=4=−1
Integrate again, then find C2
f(x)f(1)f(x)=x3+x2−x+C2=1+1−1+C2=2=x3+x2−x+1
When both values are of fFor f′′(x)=6x with f(0)=1 and f(2)=11, we can't find C1 yet, so we keep it. It's a constant, so it integrates to C1x, and the two values of f give both constants.
An antiderivative of f(x) is any function whose derivative is f(x). Adding a constant shifts the graph up or down without changing its slope, and once you find one antiderivative, adding C gives every antiderivative. To check your answer, take its derivative. You should get back the function inside the integral.
The power rule and x1
∫xndx=n+1xn+1+C(n=−1)
∫xdx=32x23+C
∫x31dx=−2x21+C
∫x1dx=ln∣x∣+C
To integrate a power of x, add 1 to the exponent and divide by that new exponent. Write roots and reciprocals as powers of x before integrating, like x=x21 and x31=x−3.
When the exponent is −1, adding 1 would mean dividing by 0, so the power rule doesn't work. For x−1=x1, the antiderivative is ln∣x∣+C.
Reading derivative rules backwards
∫cosxdx=sinx+C
∫sinxdx=−cosx+C
∫sec2xdx=tanx+C
∫csc2xdx=−cotx+C
∫secxtanxdx=secx+C
∫cscxcotxdx=−cscx+C
∫exdx=ex+C
∫2xdx=ln22x+C
∫1+x21dx=arctanx+C
∫1−x21dx=arcsinx+C
Every derivative rule gives an integration rule when read backwards. The trig functions starting with "co", cosx,cotx, and cscx, have minus signs in their derivatives, so those minus signs appear on the antiderivatives −cosx,−cotx, and −cscx. If you're ever unsure about a sign, differentiate your answer to check.
Rewriting before integrating
(x2+1)2=x4+2x2+1
xx+1=x21+x−21
tan2x=sec2x−1
There's no product rule or quotient rule for integrals, and the power rule applies to powers of x, not powers of an expression like x2+1. Expand powers like (x2+1)2, split fractions with a single term in the denominator, or use trig identities to rewrite everything into powers of x and table entries before integrating.
Finding constants of integration
f(x)f(1)C=x3−2x+C=−1+C=4=5
∫C1dx=C1x
To find C, plug the given x into the whole antiderivative, set it equal to the given value, and solve for C.C only equals the given function value when the rest of the antiderivative is 0 at that x, as x3−2x is at x=0.
For a second derivative f′′, you integrate twice and get two constants, C1 and then C2. If you have a value for f′, solve for C1 before integrating a second time. If both conditions are on f, integrate C1 to C1x and use both values of f to solve for C1 and C2.
8
Practice
Remember to include +C for indefinite integrals.
1
Find ∫(4x3−6x+7)dx.
7 is 7x0. What is ∫7x0dx?
If you got x4−3x2+7+C Check the antiderivative of 7. The derivative of 7x is 7, but the derivative of 7 is 0.
Integrate term by term with the power rule, then add one constant C for the whole sum.
∫(4x3−6x+7)dx=x4−3x2+7x+C
Differentiating our answer gives back the function we started with.
dxd(x4−3x2+7x+C)=4x3−6x+7
2
Find ∫(x2−x23)dx.
Write x2 and x23 as powers of x.
For −3x−2, what is −2+1, and what do we divide by?
If you got 4x−x3+C Check the sign on the second term. Dividing −3 by the new exponent −1 gives +3.
Rewrite as powers of xWrite each term with a negative exponent. x2 becomes 2x−21, and x23 becomes 3x−2.
x2−x23=2x−21−3x−2
Integrate term by termAdd 1 to each exponent and divide by the new exponent. Dividing by −1 on the second term changes the minus sign to a plus.
A stone is thrown straight up at 48 ft/s from the top of a building 64 feet tall. Its acceleration is a(t)=−32 ft/s². How high above the ground does the stone get? (Challenge)
Integrate acceleration to find v(t), using v(0)=48 for C1. Then integrate v(t) to find s(t), using s(0)=64 for C2.
At the top of its flight, the stone stops rising for an instant. What is v(t) there?
If you got 1.51.5 seconds is the time when the stone reaches the top, not the height itself. Plug t=1.5 into s(t).If you got 36 Check the initial height. The stone starts from the top of the building at s(0)=64, not from the ground.
Find the velocity functionIntegrate acceleration, and use the initial velocity v(0)=48 to find C1.
v(t)v(0)v(t)=∫−32dt=−32t+C1=C1=48=−32t+48
Find the position functionIntegrate velocity, and use the starting height s(0)=64 to find C2.