Show that if the closed interval $[a,b]$ is covered by finitely many open intervals $(a_1,b_1), ...,(a_n,b_n)$, then $$b-a \le \sum^n_{i=1}(b_i-a_i)$$.
I know that $(a_1,b_1), ...,(a_n,b_n)$ form an open covering of $[a,b]$, and my thought is to show the inequality by mathematical induction, but not sure how to prove this. Could someone provide a complete proof please? Thanks a lot.
The base case is clear. Let $\{(a_i,b_i)\}_{i=1}^n$ be an open cover of $[a,b]$. Suppose the sets are not nested. Then there are two sets $(a_i,b_i)$ and $(a_j,b_j)$ with $a_i \leq a_j \leq b_i \leq b_j$. Without loss of generality we may assume $i=1, j=2$. Taking their union, i.e. forming $(a_1,b_2)$ we get a smaller open cover and the induction step tells us that $$ b - a \leq b_2 - a_1 + \sum_{i = 3}^n b_i - a_i. $$ However we have that $b_2 - a_1 \leq b_2 - a_2 + b_1 - a_1$. This proves the inequality. If the sets are all nested, a similar method will do it.