I am reading the book: Inequalities by Hardy, Littlewood and Polya. There are two inequalities at the page number 32:
(1) $(a_1+a_2+\cdots+a_n)^r\le a_1^r+ a_2^r+\cdots+a_n^r$ where each $a_i>0$ and $0<r<1$.
(2) $(a_1+a_2+\cdots+a_n)^r\ge a_1^r+ a_2^r+\cdots+a_n^r$ where each $a_i>0$ and $r>1$.
How can we prove these inequalities. ? Many thanks for your help.