The question is quite straight-forward, how does one find the minimum function (depending on $\lambda$) of
$\frac{x^2}{2}+x-\lambda x$ when $x \geq 1, \ \lambda \geq 0$?
I know the answer is $\frac{3}{2} - \lambda$ when $0 \leq \lambda \leq 2$ and $-\frac{(1-\lambda)^2}{2}$ when $\lambda \geq 2$, but how does one compute that?
Note that $$ x^2/2 +(1-\lambda)x = \frac{1}{2}\left((x+(1-\lambda))^2 - (1-\lambda)^2\right). $$ From here, I believe you can derive the answer you want.