Let $x$ be in the set of real numbers $\mathbb{R}$ and let $f(x)=|2x-1|-3|2x+4|+7$ be a function, write $f(x)$ without the absolute value.
I thought of it this way: $$f(x)=\begin{cases}2x-1-3(2x+4)+7 \,(\text{then I simplify)} & \text{if $x>0$}\\ -(2x-1-3(2x+4)+7)\,(\text{then I simplify)} & \text{if $x\le0$}\end{cases}$$
But is there some way without having to use the cases?
Edit: NEW work on this problem! I found three cases;
If $x\in ]-\infty,-2]$ then f(x)=$4x+20$
If $x\in]-2,1/2]$ then f(x)=$-8x-4$
If $x\in]1/2,+\infty[$ then f(x)=$-4x-6$
IS THIS TRUE?
Thank you very much!
Here is a start. You need to consider different cases.
Case 1: $2x-1\geq 0 \cap 2x+4 \geq 0 \implies x\geq \frac{1}{2} $. For this case, we have
Case 2: $2x-1 < 0 \cap 2x+4 < 0 \implies x<-2$ which gives
Now, I leave it for you to discover the other possible cases.