Exposition On An Integral Of An Absolute Value Function At the moment, I am trying to work on a simple integral, involving an absolute value function. However, I am not just trying to merely solve it; I am undertaking to write, in detail, of everything I am doing.

So, the function is $f(x) = |x^2 + 3x - 4|$. I know that this isn't an algebraic-like function, so we can't evaluate it as one; but, by using the definition of absolute value, we can rewrite it as one.
The function $f(x)$, without the absolute value signs, can take on both positive and negative values; so, in order to retain the strictly positive output that the absolute value function demands, we have to put a negative sign in front of the algebraic definiton of our absolute vaue function on the interval where the values yield a negative value, so we'll get a double negative -(-), resulting in the positve we want.

This is how far I've gotten so far. From what i've been taught, in order to find the intervals where the function is positive and where it is negative, you have to find the values that make the function zero, and create test intervals from those values. For instance, the zeros of the function above are $x = -4$ and $x = 1$; our test intervals are then $(- \infty, -4)$, $(-4, 1)$, and $(1, \infty)$ My question is, why does finding the zeros of the function guarantee that we will find those precise test intervals?

Since polynomials and absolute value of continuous functions are continuous , the zeros are 
the points for possible sign change.
Then you can write piecewisely your function and integrate..
