When we write numbers at the bottom and top of the integral sign, like ∫abf(x)dx, we're finding the area between the curve y=f(x) and the x-axis, from x=a to x=b. The number a at the bottom is the lower bound, where the region starts, and b at the top is the upper bound, where it stops.
To see why this gives the area, take a thin vertical rectangle at x. Its height goes from the x-axis up to the curve, so it's f(x), and its width is a tiny change in x, which we call dx.
area=f(x)⋅dx=f(x)dx
The integral symbol is a stretched-out S, which stands for sum. So ∫abf(x)dx adds up these thin rectangles from x=a to x=b, and together they fill the region under the curve.
An indefinite integral like ∫x2dx gave us a whole family of functions, 3x3+C. But a definite integral like ∫13x2dx gives a single number, which is the area under y=x2 from x=1 to x=3.
A family of functions
∫x2dx=3x3+C
A single number
∫13x2dx
When the region is a shape we know, like a triangle or a rectangle, geometry gives us the integral right away.
∫032xdx=21⋅3⋅6=9
∫145dx=3⋅5=15
Sometimes the shape is hiding in the formula, like in the second integral here.
Find ∫032xdx and ∫−224−x2dx from their areas
Text solution
The triangle under y=2xThe base goes from 0 to 3, and at x=3 the height is 2⋅3=6, so the area is 21⋅3⋅6=9.
Find the curveSquaring both sides of y=4−x2 gives x2+y2=4, a circle centered at (0,0) with radius 2.
Take the top halfA square root is never negative, so y≥0 and the curve is only the top half. The bounds −2 and 2 cover all of it.
∫−224−x2dx=21⋅π⋅22=2π
So y=4−x2 is the top half of the circle x2+y2=4.
yy2x2+y2=4−x2=4−x2=4
For ∫13x2dx, though, the top edge is the parabola y=x2. That region isn't a triangle, a rectangle or a circle, so none of our geometry formulas give its area.
x
y
1
3
y=x2
2
When the graph is below the x-axis
An integral adds up thin strips of area f(x)dx. But what happens when the graph is below the x-axis? Take the line y=x−2, which is below the axis for x<2. At x=1, the width dx is still positive, but the height is f(1)=1−2=−1, so the strip's f(x)dx is negative.
x
y
dx
f(1)=−1
2
y=x−2
f(1)dx=−1⋅dx<0
So every strip below the axis adds a negative value to the integral, and every strip above it adds a positive one. The integral gives what we call the signed area.
Signed area
∫abf(x)dx=(area above the x-axis)−(area below the x-axis)
∫abf(x)dx=(area above the x-axis)−(area below the x-axis)
For the line from 0 to 5, the region is a triangle below the axis and a triangle above it.
x
y
0
2
5
2
3
y=x−2
Find ∫05(x−2)dx and ∫−22x3dx
x
y
y=x−2
0
2
5
Text solution
Each triangle with its signThe triangle on [0,2] has area 2, but it's below the axis. The one on [2,5] is above.
∫02(x−2)dx=−21⋅2⋅2=−2
∫25(x−2)dx=21⋅3⋅3=29
Add the signed areasThe shaded area is 2+29=213, but the integral counts the piece below as negative.
∫05(x−2)dx=−2+29=25
Signed areas can cancel even when there's plenty of shaded region. If we stop the line at x=4, the triangle above has area 2, the same as the one below, so the shaded area is 4 but the integral is 0.
∫04(x−2)dx=−2+2=0
Can the shaded region grow while the integral decreases?
Accumulate signed area
Odd functions
Remember, an odd function satisfies f(−x)=−f(x). For every point (x,y) on its graph, (−x,−y) is on the graph too.
Odd function
f(−x)=−f(x)
(−x)3=−x3
For x3 on [−2,2], turning the piece on [0,2] halfway around the origin gives the piece on [−2,0], below the axis. The two pieces have the same area, so they cancel, and the integral is 0 without working out either area.
x
y
(x,y)
(−x,−y)
−2
2
y=x3
∫−22x3dx=0
3
Why an antiderivative gives the area
We still can't find the area under y=x2 from x=1 to x=3. To see how, let's look first at a line, where we already know the area. Under y=2x, the region from 0 to x is a right triangle with area x2. Notice that the derivative of that area is 2x, the height of the line at x.
x
y
2x
0
x
y=2x
21⋅x⋅2x=x2
(x2)′=2x
That happens for any curve. Let A(x) be the area under y=f(x) from 0 to x. When we increase x by dx, the region gains one thin strip of width dx and height f(x), so the area grows at the rate f(x).
x
y
A(x)
dx
f(x)
0
x
y=x2
dA≈f(x)dx
dxdA=f(x)
That means the area function A(x) is an antiderivative of f(x). To get the area from 1 to 3, we take the area from 0 to 3 and remove the piece from 0 to 1.
x
y
A(1)
0
1
3
y=x2
Find ∫13x2dx using an antiderivative
x
y
y=x2
1
3
Text solution
Why the strip is enoughThe curved corner on top of the strip fits inside a rectangle of width dx and height df. Like in the product rule, dx⋅df goes to 0 much faster than dx, so the change in area is essentially f(x)dx.
Find the area functionThe antiderivatives of x2 are 3x3+C, and the area from 0 to 0 is 0.
A(x)=3x3+C
A(0)=0→C=0
Subtract the piece from 0 to 1The area from 1 to 3 is A(3)−A(1).
∫13x2dx=333−313=9−31=326
We don't need to solve for C every time. Any antiderivative F of f is A(x)+C for some constant C, and when we subtract, the C cancels.
(F(b)+C)−(F(a)+C)=F(b)−F(a)
This is the Fundamental Theorem of Calculus. To find the integral of f(x) from a to b, find any antiderivative F of f, plug in b, and subtract what we get at a. We write [F(x)]ab for F(b)−F(a).
∫abf(x)dx=[F(x)]ab=F(b)−F(a)
It works below the x-axis too. There f(x)dx is negative, so the area function decreases, and F(b)−F(a) gives the signed area. For ∫05(x−2)dx, it gives the same 25 we found from the two triangles.
∫05(x−2)dx=[2x2−2x]05=(225−10)−0=25
4
Working with minus signs in F(b)−F(a)
To evaluate ∫abf(x)dx, we find an antiderivative F(x) and compute F(b)−F(a). Here are the antiderivatives we'll use most.
xn→n+1xn+1
sinx→−cosx
cosx→sinx
sec2x→tanx
ex→ex
x1→ln∣x∣
The hard part is the minus signs. When F(a) is negative, we're subtracting a negative number, and it's easy to lose a sign along the way. Let's evaluate two integrals and keep every sign.
x
y
0
π
y=sinx
Evaluate ∫0πsinxdx and ∫−12(x2−2x)dx
∫0πsinxdx=?
∫−12(x2−2x)dx=?
Text solution
Keep the sign on −cos0The derivative of cosx is −sinx, so F(x)=−cosx. Writing cos0=1 in place of −cos0 would give 1−1=0, but sinx>0 on (0,π), so the answer has to be positive.
∫0πsinxdx=(−cosπ)−(−cos0)=1−(−1)=2
Plug in −1 carefullyWith F(x)=3x3−x2, the odd power keeps its minus sign, (−1)3=−1, and the even power loses it, (−1)2=1.
F(2)=38−4=−34
F(−1)=−31−1=−34
Subtract all of F(−1)Subtracting −34 adds 34.
∫−12(x2−2x)dx=−34−(−34)=0
That 0 doesn't mean there's no region. The curve crosses the x-axis at x=0, and F(0)=0, so splitting the integral there shows a piece above the axis and a piece below it.
x
y
−1
0
2
y=x2−2x
∫−10(x2−2x)dx=F(0)−F(−1)=0−(−34)=34
∫02(x2−2x)dx=F(2)−F(0)=−34−0=−34
The two signed areas are the same size, so they cancel, even though the total area between the curve and the x-axis is 34+34=38.
5
Finding the actual area
We found that ∫−12(x2−2x)dx=0, but the region between the curve and the x-axis is clearly there. An area is a size, so every piece has to count as positive. How do we get the area itself?
Find the area between y=x2−2x and the x-axis from x=−1 to x=2
x
y
y=x2−2x
−1
2
Text solution
Split where the curve crosses the x-axisThe root x=2 is the right endpoint, and x=0 is inside [−1,2], so we split at x=0.
x2−2x=x(x−2)=0→x=0,x=2
Count each piece as positiveThe piece on [−1,0] is above the axis. The piece on [0,2] is below it, so its integral is negative, but its area is positive.
∫−10(x2−2x)dx=34
∫02(x2−2x)dx=−34
area=34+34=38
Counting the piece below the axis as positive is the same as reflecting it so it lies above. That turns y=x2−2x into y=∣x2−2x∣, so the area is the integral of ∣x2−2x∣.
x
y
−1
0
34
34
2
y=∣x2−2x∣
area=∫−12x2−2xdx=38
6
Rules for combining integrals
We can often find a new integral from ones we already know, without evaluating it from scratch. Every rule comes from F(b)−F(a) or from the thin strips that make up the area.
Let's start with the bounds. When both bounds are the same number a, the interval has width 0, so there's no area. Integrating backwards from b to a just changes the sign.
Same bounds
∫aaf(x)dx=F(a)−F(a)=0
Reversed bounds
∫baf(x)dx=F(a)−F(b)=−(F(b)−F(a))=−∫abf(x)dx
If we break a region from a to c into two pieces at a point b, the whole area is the two pieces added together.
x
y
a
b
c
y=f(x)
∫acf(x)dx=∫abf(x)dx+∫bcf(x)dx
Multiplying f(x) by a constant k makes every thin strip k times as tall, so the area is multiplied by k. Adding two functions stacks a strip of height g(x) on top of a strip of height f(x), so the areas add.
Constant multiple
∫abkf(x)dx=k∫abf(x)dx
Sum of functions
∫ab(f(x)+g(x))dx=∫abf(x)dx+∫abg(x)dx
And integrating a constant k gives a single rectangle with height k and width b−a.
∫abkdx=k(b−a)
Let's put these rules to work where we don't even have a formula for f(x), and then on a function defined in pieces.
Find ∫35f(x)dx,∫532f(x)dx,∫15(f(x)+4)dx, and the integral of a piecewise function
x
y
y=f(x)
1
5
∫15f(x)dx=8
∫13f(x)dx=3
Text solution
Split at 3We're given ∫15f(x)dx=8 and ∫13f(x)dx=3. Taking the part from 1 to 3 away leaves the part from 3 to 5.
∫35f(x)dx=8−3=5
Pull out the 2 and reverse the boundsGoing from 5 to 3 changes the sign of that 5.
∫532f(x)dx=2∫53f(x)dx=2⋅(−5)=−10
Integrate the 4 over the intervalEvery strip is 4 taller, and the extra pieces make a rectangle of height 4 and width 5−1=4.
∫15(f(x)+4)dx=8+4(5−1)=8+16=24
Split the piecewise function at x=1The formula changes at x=1, so we integrate each formula on its own interval.
f(x)={3x2,4−x,x≤1x>1
∫03f(x)dx=∫013x2dx+∫13(4−x)dx=1+4=5
Don't just add 4 to the original 8. The 4 is added to the height of every strip from 1 to 5, so it adds a whole rectangle of area 16, and the answer is 24, not 12.
x
y
1
5
4
y=f(x)+4
y=f(x)
x
1
5
4
16
Summary
Signed area
x
y
0
2
5
−2
29
∫05(x−2)dx=−2+29=25
An integral counts area above the x-axis as positive and area below the x-axis as negative. On [0,5], the line y=x−2 makes a triangle of area 2 below the axis and a triangle of area 29 above it, so the integral is the difference, 25.
Semicircles from geometry
∫−rrr2−x2dx=21πr2
Squaring both sides of y=r2−x2 gives x2+y2=r2, a circle centered at the origin with radius r. Because the square root is never negative, y≥0, so the curve is the top half of the circle. Integrating from −r to r covers the entire semicircle, so the integral is half the area of the circle, 21πr2.
The Fundamental Theorem of Calculus
∫abf(x)dx=F(b)−F(a)
[−cosx]0π=(−cosπ)−(−cos0)=2
To evaluate ∫abf(x)dx, find any antiderivative F of f and compute F(b)−F(a). The constant +C cancels when we subtract. Put parentheses around all of F(a) so the minus sign applies to every term. When F(a) is negative, subtracting it adds a positive number, like −(−1)=+1.
Rules for combining integrals
∫baf(x)dx=−∫abf(x)dx
∫acf(x)dx=∫abf(x)dx+∫bcf(x)dx
∫abkdx=k(b−a)
Reversing the bounds changes the sign of the integral. We can also break an integral into two parts. Integrating from a to b and then from b to c gives the integral from a to c. Integrating a constant k gives the area of a rectangle of height k and width b−a, so adding k to f(x) adds k(b−a) to the integral, not k.
Odd functions
f(−x)=−f(x)
→∫−aaf(x)dx=0
A function is odd if f(−x)=−f(x). On an interval from −a to a, each piece on the left has a matching piece on the right with the opposite signed area, so the integral is 0.
Finding the actual area
∫−12(x2−2x)dx=0
area=34+34=38
An integral can be 0 even when a region has positive area, because the pieces above and below the x-axis cancel out. To find the actual area between a curve and the axis, set f(x)=0 to find where the curve crosses the axis. Split the integral at those points, take the absolute value of each piece's integral, and add them up.
7
Practice
Give exact answers, using fractions or π where needed, not decimals.
1
The graph of f on [0,8] is made of the line segment from (0,2) to (2,0), the lower half of the circle of radius 2 centered at (4,0), and the line segment from (6,0) to (8,2). Find (a) ∫08f(x)dx and (b) ∫62f(x)dx.
x
y
2
4
6
8
2
−2
An integral is a signed area. What sign does each region get, and what is the area of a half circle of radius 2?
If you got 4+2π Check the sign of the half circle. It lies below the x-axis, so its signed area is negative.
If you got −2π The bounds run backwards from 6 down to 2, so ∫62f(x)dx=−∫26f(x)dx.
Reversing the bounds changes the sign of an integral. What is −∫26f(x)dx?
Find the signed area of each pieceThe two triangles lie above the x-axis, and the half circle lies below it, so its signed area is negative.
x
y
2
4
6
8
2
−2
2
−2π
2
∫02f(x)dx=21⋅2⋅2=2
∫26f(x)dx=−21⋅π⋅22=−2π
∫68f(x)dx=21⋅2⋅2=2
Add the piecesAdd the signed areas to get the integral from 0 to 8.
∫08f(x)dx=2−2π+2=4−2π
Reverse the boundsReversing the bounds changes the sign of the integral.
∫62f(x)dx=−∫26f(x)dx=−(−2π)=2π
2
Given ∫06f(x)dx=10 and ∫02f(x)dx=4, find (a) ∫26f(x)dx and (b) ∫62(3f(x)+2)dx.
The integral from 0 to 6 splits into the integral from 0 to 2 plus the integral from 2 to 6.
If you got −20 Check the integral of the constant 2. Integrating 2 from 2 to 6 gives 2 times the width of the interval, not just 2.
If you got 26 The bounds run from 6 to 2, so the value is the negative of the integral from 2 to 6.
What is the width of the interval from 2 to 6? Use that to find ∫262dx, then reverse the bounds.
Split the integralThe integral from 0 to 6 is the sum of the integrals from 0 to 2 and from 2 to 6, so we subtract to find the missing piece.
∫26f(x)dx=∫06f(x)dx−∫02f(x)dx=10−4=6
Integrate from 2 to 6Integrate the two terms separately, pull out the constant 3, and multiply the constant 2 by the interval's width, 6−2=4.
∫26(3f(x)+2)dx=3∫26f(x)dx+∫262dx=3⋅6+2⋅4=26
Reverse the boundsReversing the bounds puts a minus sign in front.
∫62(3f(x)+2)dx=−26
3
Evaluate ∫14(2x−x1)dx.
Write x1 as a power of x, then use the power rule.
If you got 9 Put parentheses around F(1). Subtracting F(1)=1−2=−1 means subtracting a negative number, which adds 1.
Write x1 as x−21 so we can use the power rule to find an antiderivative F(x).
x1=x−21→21x21=2x
F(x)=x2−2x
Evaluate F at the upper bound 4 and at the lower bound 1.
F(4)=16−4=12
F(1)=1−2=−1
Subtract F(1) from F(4), keeping F(1) in parentheses because it's negative.
∫14(2x−x1)dx=F(4)−F(1)=12−(−1)=13
4
Find the area of the region between the graph of y=x2−4 and the x-axis for 0≤x≤3.
Where does the graph cross the x-axis between 0 and 3?
If you got −3 You evaluated the definite integral ∫03(x2−4)dx. Total area counts every piece as positive, so split the interval where the curve crosses the x-axis.If you got 3 Taking the absolute value of the whole integral still lets the negative and positive pieces cancel first. Split the interval and find the area of each piece separately.
Find where the curve crosses the x-axisSet x2−4=0 to find where the curve crosses the x-axis inside [0,3].
x2−4=0→x=2(x≥0)
Integrate each pieceThe curve is below the x-axis on [0,2] and above it on [2,3].
∫02(x2−4)dx=[3x3−4x]02=38−8=−316
∫23(x2−4)dx=(9−12)−(38−8)=−3+316=37
Add the positive areasThe region below the x-axis has area 316, and the region above has area 37.
area=316+37=323
5
Find the value of k>0 for which ∫0k(2x−3)dx=0.
The integral is 0 when the area above the x-axis equals the area below the x-axis.
If you got 23 Setting 2x−3=0 gives where the line crosses the x-axis, which is where the function is 0, not where the integral is 0.
Find an antiderivative of 2x−3 and evaluate it from 0 to k.
∫0k(2x−3)dx=[x2−3x]0k=k2−3k
Set the result equal to 0 and solve for k>0.
k2−3k=k(k−3)=0→k=3(k>0)
From 0 to 23, the triangle below the axis has area 49, and from 23 to 3, the triangle above has area 49, so the two signed areas cancel out.
∫023(2x−3)dx=−21⋅23⋅3=−49
∫233(2x−3)dx=21⋅23⋅3=49
6
Evaluate ∫−ππ(x3cosx+2)dx.
What happens when you replace x with −x in x3cosx?
If you got 2π Check the width of the interval [−π,π]. The width is π−(−π)=2π, not π.
Check for an odd functionReplacing x with −x gives the negative of the original function, so x3cosx is odd and its integral over [−π,π] is 0.
(−x)3cos(−x)=−x3cosx→∫−ππx3cosxdx=0
Integrate the constantMultiply the constant 2 by the interval's width, π−(−π)=2π, and add the two integrals.
∫−ππ2dx=2⋅(π−(−π))=4π
∫−ππ(x3cosx+2)dx=0+4π=4π
7
Evaluate ∫04πtan2xdx. (Challenge)
Use the identity tan2x+1=sec2x to rewrite tan2x in terms of a function whose antiderivative you know.
If you got 31 Differentiating 3tan3x gives tan2xsec2x, so the power rule doesn't work directly on tan2x. Replace tan2x with sec2x−1 first, then integrate.
Rewrite using a trig identityWe don't have a basic rule for tan2x, but we know the antiderivative of sec2x, so we rewrite tan2x using tan2x+1=sec2x.
tan2x=sec2x−1
Integrate and evaluateThe antiderivative of sec2x is tanx, and the antiderivative of 1 is x.