Exercises
Find the area between the two curves
-
Find the area between the curves, sin(x) and cos(x)
Use
fsolveto find the specific points of intersection for which we are interested.
Find the area between these two curves.
In this case,
eq1is a3rddegree polynomial andeq2is 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
solvecommand (orfsolveif 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.