How do you find the integral of #abs(x) dx# on the interval [-2, 1]?
2 Answers
The easiest way to do this is to think about what this function looks like:
The integral is equal to the area shaded in blue
which is the sum of the areas of the two triangles
Tlhis method is useful and important to know for more complicated integrals, like:
But for this particular problem there is a straightforward geometric method.
Tlhe graph of
graph{abs x [-3.07, 1.796, -0.313, 2.12]}
From
On the right, from 0 to 1, is a triangle of area
(These are the values of the two integrals above.)