MathLabs

Problem 1

Real numbers a1,a2,…,ana_1, a_2, \ldots, a_n are given. For each ii (1≤i≤n1 \le i \le n) define di=max⁡{aj:1≤j≤i}−min⁡{aj:i≤j≤n}d_i = \max\{a_j : 1 \le j \le i\} - \min\{a_j : i \le j \le n\} and let d=max⁡{di:1≤i≤n}d = \max\{d_i : 1 \le i \le n\}. (a) Prove that, for any real numbers x1≤x2≤⋯≤xnx_1 \le x_2 \le \cdots \le x_n, max⁡{∣xi−ai∣:1≤i≤n}≥d2\max\{|x_i - a_i| : 1 \le i \le n\} \ge \dfrac{d}{2}. (b) Show that there exist real numbers x1≤x2≤⋯≤xnx_1 \le x_2 \le \cdots \le x_n such that equality holds in the inequality above.
Step 5 of 5: Verify equality holds for the constructed sequence
In plain words

Every term stays within d2\dfrac{d}{2} of aia_i, and part (a) forces the maximum to be at least d2\dfrac{d}{2}, so equality holds.

−d2≤(Mi−ai)−d2≤d2  ⟹  max⁡1≤i≤n∣xi−ai∣=d2-\frac{d}{2} \le (M_i - a_i) - \frac{d}{2} \le \frac{d}{2} \implies \max_{1 \le i \le n} |x_i - a_i| = \frac{d}{2}
Detailed analysis

Subtracting d2\dfrac{d}{2} from 0≤Mi−ai≤d0 \le M_i - a_i \le d gives −d2≤xi−ai≤d2-\dfrac{d}{2} \le x_i - a_i \le \dfrac{d}{2}, i.e., ∣xi−ai∣≤d2|x_i - a_i| \le \dfrac{d}{2} for all ii. Combined with part (a)'s lower bound max⁡i∣xi−ai∣≥d2\max_i |x_i - a_i| \ge \dfrac{d}{2}, this gives max⁡{∣xi−ai∣:1≤i≤n}=d2\max\{|x_i - a_i| : 1 \le i \le n\} = \dfrac{d}{2}, proving part (b).