For which values of does
hold for every real ?
Reduce the question to a minimum. The inequality holds for all exactly when is no larger than the smallest value the left side ever takes. So define
and find . Everything else is bookkeeping.
Use the median shortcut to predict the answer. A sum of absolute deviations is minimised at any median of the points . Here the four points are ; with an even count, every in the middle interval is a median. So the minimum is attained on all of — not on , a claim that is easy to make and wrong.
Confirm by splitting into intervals. The breakpoints cut the line into five pieces, and on each one every absolute value opens with a fixed sign:
On the function is the decreasing line , running from down to — it is not constant there.
Read off the minimum. The two outer pieces increase away from the centre, the two middle-adjacent pieces slope down toward , and on the function is the constant
So , attained exactly on . Spot checks: ✓, ✓ (strictly above the minimum), ✓.
State the condition on . The inequality holds for every real if and only if
If the inequality fails on the whole open middle band, and its solution set is then for , obtained by inverting the two adjacent linear pieces.
Need to solve a different problem like this? Open the solver →