Ten areas between curves: top minus bottom between the intersection points, regions that cross in the middle, a region integrated in y, a log and an integration by parts, a horizontal line that halves an area, and the area between two probability densities, with worked solutions and the mistakes that give a negative area or a total of zero.
Before you start
The area between two curves is the integral of the gap between them, and the same integral measures how far apart two functions are: the area between two probability densities is their L1 distance, and half of it is the total variation distance. The work goes wrong in a few places: the curves subtracted in the wrong order, an integral run straight across a point where the curves cross, limits taken from the picture instead of from the intersections, and a region that is one integral in y but two in .x. These ten problems cover each of them.
If f(x)≥g(x) for every x in ,[a,b], the area between the graphs of f and g from x=a to x=b is :∫ab(f(x)−g(x))dx: top minus bottom.
If the curves cross inside ,[a,b], which one is on top changes. The area is ,∫ab∣f(x)−g(x)∣dx, computed by splitting the interval at each crossing and taking top minus bottom on each piece. Without the split, the pieces where g is on top count as negative and cancel area, which is the net signed area, not the area.
The limits of a region enclosed by two curves are where they meet: solve .f(x)=g(x).
If a region is bounded by curves given as x in terms of ,y, or if its top or bottom changes formula partway across, integrate in y instead: area ,=∫cd(xright(y)−xleft(y))dy, right minus left.
An area is never negative. A negative result means the subtraction was the wrong way round.
Integrals used: ∫xndx=n+1xn+1 for ,n=−1,,∫x1dx=ln∣x∣,,∫exdx=ex,,∫sinxdx=−cosx,,∫cosxdx=sinx, and ∫lnxdx=xlnx−x (by parts).
Find the area of the region enclosed by y=x and .y=x2.
·
Find the area of the region enclosed by y=4−x2 and .y=x+2.
··
Find the total area of the regions enclosed by y=x3 and .y=x.
··
Find the area between y=sinx and y=cosx from x=0 to .x=2π.
··
Find the area of the region bounded by ,y=x,y=x−2 and the x-axis, first by integrating in ,y, then in .x.
··
Find the area of the region enclosed by y=x1 and .y=25−x.
···
The region between y=x2 and y=4 is cut by a horizontal line .y=c. Find c so that the two parts have equal area.
···
Two probability densities on [0,1] are p(x)=2x and .q(x)=1. Find the area between their graphs, and the total variation distance .21∫01∣p(x)−q(x)∣dx.
···
Find the area between y=lnx and the line through (1,0) and .(e,1).
···
Find the total area of the regions between y=sinx and y=sin2x on .[0,π].
Answers
61
29
21
22−2≈0.83
310
815−2ln2≈0.489
c=42/3=24/3≈2.52
Area ;21; total variation distance 41
1−2e−1=23−e≈0.141
25
Worked solutions
Problem 1
Find the area of the region enclosed by y=x and .y=x2.
x=x2 gives ,x(x−1)=0, so x=0 or .x=1.The region is enclosed by the two curves, so its limits are where they meet.
On ,(0,1),.x>x2.Test a point: at ,x=21,.21>41. The line is on top.
Area =∫01(x−x2)dx=[2x2−3x3]01Top minus bottom.
61.21−31=61.
Problem 2
Find the area of the region enclosed by y=4−x2 and .y=x+2.
4−x2=x+2 gives ,x2+x−2=(x+2)(x−1)=0, so x=−2 or .x=1.The intersections are the limits.
On ,(−2,1),.4−x2>x+2.At :x=0:.4>2. The parabola is on top.
Area =∫−21((4−x2)−(x+2))dx=∫−21(2−x−x2)dxTop minus bottom; the parentheses around x+2 make both of its terms subtracted.
[2x−2x2−3x3]−21=(2−21−31)−(−4−2+38)=67+310The antiderivative at the upper limit minus at the lower one.
29.67+620=627=29.
Problem 3
Find the total area of the regions enclosed by y=x3 and .y=x.
x3=x gives ,x(x−1)(x+1)=0, so .x=−1,0,1.Three intersections: two enclosed regions, [−1,0] and .[0,1].
On ,(−1,0),;x3>x; on ,(0,1),.x>x3.At :x=−21:.−81>−21. At :x=21:.21>81. The top curve changes at 0.
∫−10(x3−x)dx=[4x4−2x2]−10=0−(41−21)=41Top minus bottom on the left piece.
∫01(x−x3)dx=21−41=41Top minus bottom on the right piece. Both curves are odd functions, so the two pieces are mirror images and the areas match.
21.41+41. A single integral ∫−11(x−x3)dx gives 0, because its two halves cancel.
Problem 4
Find the area between y=sinx and y=cosx from x=0 to .x=2π.
sinx=cosx on [0,2π] at x=4π only.;tanx=1; the curves cross inside the interval, so it must be split there.
On ,(0,4π),;cosx>sinx; on ,(4π,2π),.sinx>cosx.At 0, ;cos0=1>0=sin0; at 2π the order is reversed.
∫0π/4(cosx−sinx)dx=[sinx+cosx]0π/4=2−1sin4π+cos4π=2 and .sin0+cos0=1.
∫π/4π/2(sinx−cosx)dx=[−cosx−sinx]π/4π/2=−1−(−2)=2−1Top minus bottom on the second piece. The picture is symmetric about ,x=4π, so the pieces are equal.
22−2≈0.83The sum of the two pieces. Integrating cosx−sinx over the whole interval gives (1+0)−(0+1)=0 instead (mistake 2).
Problem 5
Find the area of the region bounded by ,y=x,y=x−2 and the x-axis, first by integrating in ,y, then in .x.
In :y:x=y2 is the left boundary and x=y+2 the right one, for .0≤y≤2.Solve each curve for .x. They meet where ,y2=y+2, at y=2 (y=−1 is below the x-axis, outside the region), and the x-axis is .y=0.
Area =∫02((y+2)−y2)dy=[2y2+2y−3y3]02=2+4−38Right minus left, one integral.
In :x: the bottom is y=0 for 0≤x≤2 and y=x−2 for ;2≤x≤4; the top is x throughout.The line crosses the x-axis at x=2 and meets x at x=4 (where ),4=2=4−2), so the bottom changes formula at .x=2.
∫02xdx+∫24(x−x+2)dx=3223/2+[32x3/2−2x2+2x]24Two integrals, one for each bottom.
310Both routes: 6−38=310 and .316−2=310. In y it is one integral of a polynomial.
Problem 6
Find the area of the region enclosed by y=x1 and .y=25−x.
x1=25−x gives ,2=5x−2x2, so .2x2−5x+2=(2x−1)(x−2)=0.Multiply both sides by ,2x, which is not 0 at an intersection.
x=21 or ,x=2, and on (21,2) the line is on top.At :x=1:.25−1=23>1.
Area =∫1/22(25−x−x1)dx=[25x−2x2−lnx]1/22x>0 on the interval, so .ln∣x∣=lnx.
=(5−2−ln2)−(45−81−ln21)=(3−ln2)−(89+ln2),ln21=−ln2, so .−ln21=+ln2.
815−2ln2≈0.489,3−89=815, and the two ln2 terms add. Sanity check: the gap is at most 21 (at )x=1) over an interval of length ,23, so the area is below .43.
Problem 7
The region between y=x2 and y=4 is cut by a horizontal line .y=c. Find c so that the two parts have equal area.
Total area .=∫−22(4−x2)dx=16−316=332.The curves meet at ;x=±2; top minus bottom.
At height y the region runs from x=−y to ,x=y, a width of .2y.The cut is horizontal, so slice horizontally: integrate in .y.
Area below :y=c:.∫0c2ydy=34c3/2.Right minus left is ,2y, from the bottom of the region, ,y=0, up to the cut.
,34c3/2=316, so .c3/2=4.Half of .332. As a check, c=4 gives ,34⋅8=332, the whole region.
c=42/3=24/3≈2.52Raise both sides to the power .32. The cut is above the halfway height ,y=2, because the region is narrow at the bottom (mistake 4).
Problem 8
Two probability densities on [0,1] are p(x)=2x and .q(x)=1. Find the area between their graphs, and the total variation distance .21∫01∣p(x)−q(x)∣dx.
.∫01(p(x)−q(x))dx=1−1=0.Every density integrates to 1, so the signed integral of the difference of two densities is always 0. It says nothing about how different they are.
2x=1 at ;x=21;q is on top on (0,21) and p on .(21,1).The crossing splits the interval.
∫01/2(1−2x)dx=[x−x2]01/2=41 and ∫1/21(2x−1)dx=[x2−x]1/21=0−(−41)=41Top minus bottom on each piece. The two pieces are equal, as step 1 forces: their difference is the signed integral, 0.
Area ;21; total variation distance 41The area is ,41+41, and the distance is half of it. It is also the largest difference in probability the two densities give any event: P(x>21) is 43 under p and 21 under .q.
Problem 9
Find the area between y=lnx and the line through (1,0) and .(e,1).
The line is ,y=e−1x−1, and it meets lnx at x=1 and .x=e.Slope e−11−0 through .(1,0). Both points are on ,y=lnx, since ln1=0 and .lne=1.
On ,(1,e),lnx is above the line.lnx is concave, so it lies above every chord. At :x=2:.ln2≈0.693>e−11≈0.582.
∫1elnxdx=[xlnx−x]1e=(e−e)−(0−1)=1By parts, with u=lnx and .dv=dx.
∫1ee−1x−1dx=e−11⋅2(e−1)2=2e−1.∫1e(x−1)dx=[2(x−1)2]1e. Geometrically, a triangle with base e−1 and height 1.
1−2e−1=23−e≈0.141Top minus bottom: step 3 minus step 4.
Problem 10
Find the total area of the regions between y=sinx and y=sin2x on .[0,π].
sin2x=sinx gives .2sinxcosx−sinx=sinx(2cosx−1)=0.The double-angle formula, then factor. Dividing by sinx would lose the crossings at 0 and .π.
On :[0,π]:sinx=0 at ,x=0,π, and cosx=21 at .x=3π.So the curves cross inside the interval at .3π.
On ,(0,3π),;sin2x>sinx; on ,(3π,π),.sinx>sin2x.,sin2x−sinx=sinx(2cosx−1), and sinx>0 on ,(0,π), so the sign is that of :2cosx−1: positive before ,3π, negative after.
∫0π/3(sin2x−sinx)dx=[−2cos2x+cosx]0π/3=(41+21)−(−21+1)=41cos32π=−21 and .cos3π=21.
∫π/3π(sinx−sin2x)dx=[−cosx+2cos2x]π/3π=(1+21)−(−21−41)=49cosπ=−1 and .cos2π=1.
25.41+49. The single integral ∫0π(sinx−sin2x)dx is ,2−0=2, short by twice the first piece.
Where this goes wrong
1. Bottom minus top
The formula is remembered as "one curve minus the other", and the order is left to chance.
y=4−x2 and y=x+2 meet at x=−2 and x=1Right so far: Problem 2, step 1.
“Subtract the curves in the order they were given in the problem.”The habit that causes the mistake: not checking which curve is on top.
Area =∫−21((x+2)−(4−x2))dx=−29The line is below the parabola on ,(−2,1), so this integrates bottom minus top and every slice counts as negative. An area cannot be negative. Test one point between the limits to see which curve is on top, then subtract the bottom from it: the area is .29.
2. One integral across a crossing
When the limits are given, it is tempting to subtract once and integrate straight across them.
Area between sinx and cosx on [0,2π]Right so far: Problem 4.
“cosx starts on top, so integrate cosx−sinx from 0 to .2π.”The habit that causes the mistake: checking which curve is on top at one end only.
∫0π/2(cosx−sinx)dx=[sinx+cosx]0π/2=1−1=0The curves cross at ,4π, and after it cosx−sinx is negative, so the second region cancels the first. Zero area between two curves that are visibly apart is the giveaway. Split at the crossing: the area is .2(2−1)≈0.83.
3. Missing a boundary
A region with three boundaries gets treated as if it had two.
Region bounded by ,y=x,y=x−2 and the x-axisRight so far: Problem 5.
“x is on top and x−2 is on the bottom, and they meet at .x=4.”The habit that causes the mistake: looking only at the two named curves.
Area =∫04(x−(x−2))dx=316−8+8=316On [0,2] the line is below the x-axis, and the region stops at the axis, so this adds the triangle between the axis and the line, with base 2 and height 2, area 2. The correct area is .316−2=310. Sketch the region before choosing a top and a bottom.
4. Halving the height instead of the area
"Split the region in half" sounds like "cut it at half its height".
Region between y=x2 and ,y=4, area ,332, cut by y=cRight so far: Problem 7, step 1.
“The region runs from y=0 to ,y=4, so the cut is at the middle.”The habit that causes the mistake: treating the region as if it had the same width at every height.
c=2The area below y=2 is ,34⋅23/2=382≈3.77, less than half of ,332≈10.67, which is about 5.33. The region is narrow at the bottom, where its width 2y is small, so the cut must be higher: .c=24/3≈2.52.
5. Losing the sign of ln ½
The lower limit of a log integral is where signs get dropped.
[25x−2x2−lnx]1/22Right so far: Problem 6, step 3.
“At :x=21:.45−81−ln2.”The habit that causes the mistake: writing ln21 as ,ln2, as if the log of a fraction were the log of its denominator.
Area =(3−ln2)−(89−ln2)=815,ln21=−ln2, so the lower limit contributes 89+ln2 and the ln2 terms add instead of canceling. 815=1.875 cannot be right: the gap between the curves is at most 21 over a width of ,23, so the area is under .0.75. The area is .815−2ln2≈0.489.
Print this set: area-between-curves.pdf (problems, answers, and worked solutions on separate pages).