Exercises
Find the area between the two curves
-
Find the area between the curves, sin(x) and cos(x)
Use
fsolve
to find the specific points of intersection for which we are interested.
Find the area between these two curves.
In this case,
eq1
is a3rd
degree polynomial andeq2
is a second degree polynomial. A 3rd degree polynomial may intersect a line or 2nd degree polynomial in 0, 1, 2, or 3 points.Use the
solve
command (orfsolve
if necessary) to find the points of intersection.
Notice that computing the area in two steps or integrating the absolute value of the difference between the lower and upper limit both compute the same area between the two curves.
Use Commands not the right-click menus.