Question: Simplifying with absolute value

I'm working with some rather complicated sums involving absolute value, I'd like convert the sum into a piecewise defined function. For example

After using

I get down to

Now I can break it into cases when b +2a -1 >0 and <0, however I wish it were possible to automate this process when my sums get more complicated. Is there any hope of doing so?

Please Wait...