I am new to modulus function, and I want to find number of solutions to:
$$ \vert x+1 \vert + \vert x+2 \vert + \vert x+3 \vert = a $$
$$ x = [-4,4] $$
Where $ a $ is a parameter.
I am new to modulus function, and I want to find number of solutions to:
$$ \vert x+1 \vert + \vert x+2 \vert + \vert x+3 \vert = a $$
$$ x = [-4,4] $$
Where $ a $ is a parameter.
Let $y=x+2$. Then define $f(y)$ by $$ |x+1|+|x+2|+|x+3| = |y-1|+|y|+|y+1| \equiv f(y) $$ $f(y) = |1-y|+|y|+|1+y|$ so $f(-y) = f(y)$.
Above $y=1$, $f(y) = 3y$ which is monotonic increasing. For $0\leq y \leq 1$, $$ f(y) = (1-y)+y+(1+y) = 2+y $$ which is also monotonic increasing and has a minimum at $f(0)=2$.
So $f(y)$ has a minimum value of $2$ at $y=0$, and is increasing for positive $y$ and decreasing for negative $y$. Therefore, $f(y)=a$ (and therefore your original equation) has: