I've been programming algorithms for solving L1-regularized logistic regression with large datasets. As such, I've been delving into the computer science literature, and came across the following puzzling fact. (I will simplify the notation for convenience.)
Let $x$ be in the set of real-valued numbers, and given real-valued parameters $a,b,c$, let $f(x) = 1/2 a x^2 + b x + |c + x | - |c|$. Then it is "well-known" that
$argmin_x \; f(x) = \begin{cases} -\displaystyle\frac{(b+1)}{a} & \text{if } b+1 \leq ac \\ -\displaystyle\frac{(b-1)}{a} & \text{if } b-1 \geq ac \\ - c & \text{otherwise} \\\end{cases}$
I see the obvious parallel with finding the vertex of the parabola from precalculus, but honestly I am not sure how to get the solution to this one. How is this "well-known"? Can anybody either explain the solution or at least refer me to where I can find this kind of problem discussed? I am familiar with the statistics literature, but have never formally studied convex optimization.
There is nothing special here. You just try to solve the problem analytically removing $||$ and assuming that a)$c +x\ge $ and b) $c+x\le 0 $. You will get then 2 different parabols a)$1/ax^2+(b+1)x$ and b)$1/2ax^2+(b-1)x$. Their solutions are $-\frac{b\pm 1}{a}$ or edge $x=-c$ ofthe intervals $[-c,\infty) $(\infty,-c]$,$ if the corresponding inequality $c\le\ge x=-\frac{b\pm 1}{a}$ is not satisfied. Finally you get the above solution.
PS. You have a type in your conditions it should be $b\pm 1 \ge \le ac$