how do i evaluate the integral of the absolute value of x from -2 to 1? can someone show me? thanks.

1 answer

Try evaluating it as 2 integrals by defining |x| piecewise.

|x| = {x, x>=0; -x, x<0}