For evaluating an integral with an integrand that has an absolute value, will it work if I split up the integral into sections where the integrand equals zero and then take the absolute value of each part? (a specific easy example below)
$\int_0^4|(x-1)(x-3)|dt=\left|\int_0^1(x-1)(x-3)dt \right|+\left|\int_1^3(x-1)(x-3)dt \right|+\left|\int_3^4(x-1)(x-3)dt \right|$
I know that it's normally done where one just takes the integral of the function when it's positive and then takes the negative of the function when it's negative (so that it turns out positive in the end). But I'm wondering if this way above is equivalent to that all the time?
I haven't been able to find an equality of it, apart from maybe the 6th one here: https://en.wikipedia.org/wiki/Integral#Inequalities
Yes, you can do that. The equality you wrote is fairly easy to prove: