Area Between Curves

> with(plots):

(page 434) If f and g are continuous and [Maple Math] for all x [Maple Math] [a,b] then the area A of the region bounded by y = f(x), y = g(x), x = a and x = b is [Maple Math] = the "integral of the 'top' function minus the 'bottom' function."

e.g. Find the region bounded by [Maple Math] and [Maple Math] .

> f:=x+1:g:=9-x^2:plot({f,g},x=-6..6,y=-10..10,colour=black);

[Maple Plot]

> limits:=solve(f=g);

[Maple Math]

> Area:=Int((g-f),x=limits[2]..limits[1]);

[Maple Math]

> value(%);

[Maple Math]

> evalf(%,3);

[Maple Math]

=> The bounded area is ~ 31.6 sq. units.

e.g Find the area bounded by [Maple Math] and [Maple Math] .

> eq1:=y=x-1;eq2:=y^2=2*x+6;

[Maple Math]

[Maple Math]

> implicitplot({eq1,eq2},x=-6..8,y=-4..6,colour=black,numpoints=1000);

[Maple Plot]

> solve({eq1,eq2});

[Maple Math]

There is a problem in that as you move from left to right the top and bottom functions change! From x = -3 to -1, [Maple Math] is the top function and [Maple Math] is the bottom function.From x = -1 to x = 5, [Maple Math] is the top function but [Maple Math] is the new bottom function and this must be taken into account when finding the area! See below.

> Top:=sqrt(2*x+6);Bottom1:=-Top;Bottom2:=x-1;

[Maple Math]

[Maple Math]

[Maple Math]

> Area:=Int(Top-Bottom1,x=-3..-1)+Int(Top-Bottom2,x=-1..5);

[Maple Math]

> value(Area)*`square units`;

[Maple Math]

Integration "along the y-axis"

The last e.g. was a lot of work because of the nature of the region. If you look at it with respect to the y-axis though it becomes much simpler. As you move along the y-axis from bottom to top there is a single (and simple) rightmost function of y (namely [Maple Math] ) and a single (and simple) leftmost function of y (namely [Maple Math] ). It follows that this would be a much smpler problem if we integrate with respect to y , moving from "down" to "up" (i.e. from the negative to positive y direction). See below, keeping in mind that we know from before the y coordinates of the intersection points.

> right:=y+1;left:=(y^2-6)/2;

[Maple Math]

[Maple Math]

> Area2:=Int(right-left,y=-2..4);

[Maple Math]

> value(Area2)*`square units`;

[Maple Math]

You can see we get the same answer and it's much less work!

In general : If [Maple Math] and [Maple Math] are continuous functions and [Maple Math] for all y [Maple Math] [c,d] then the area bounded by f and g between y = c and y = d is [Maple Math] .

More e.g.'s: Find the area of the region bounded by the given curves.

A) [Maple Math] and [Maple Math]

> f:=x^2:g:=x^3:plot({f,g},x=-2..2,y=-2..2,colour=black);

[Maple Plot]

> solve(f=g);

[Maple Math]

> A:=Int(f-g,x=0..1);value(A)*`sq units`;

[Maple Math]

[Maple Math]

B) [Maple Math] , [Maple Math] .

> eq1:=y^2=x;eq2:=x-2*y=3;implicitplot({eq1,eq2},x=-1..10,y=-4..4,colour=black);

[Maple Math]

[Maple Math]

[Maple Plot]

> solve({eq1,eq2});

[Maple Math]

> right:=3+2*y;left:=y^2;

[Maple Math]

[Maple Math]

> A:=Int(right-left,y=-1..3);value(A)*`sq units`;

[Maple Math]

[Maple Math]

# 47, pg 439: Find the values of c so that the region enclosed by [Maple Math] and [Maple Math] is 576.

> top:=c^2-x^2;bottom:=x^2-c^2;

[Maple Math]

[Maple Math]

> solve(top=bottom);

[Maple Math]

> area:=Int(top-bottom,x=-c..c);area:=value(area);

[Maple Math]

[Maple Math]

> solve(area=576,c);

[Maple Math]

=> c can be 6 or -6.