For $n$ a positive integer, let $(a_1 a_2 ,\ldots, a_n)$ and $(b_l, b_2 ,\ldots, b_n)$ be two (not necessarily distinct) permutations of $(1,2, ... ,n)$. Find sharp lower and upper bounds for $a_1b_1 + \ldots + a_nb_n$
My upper bound and lower bounds are (resp):
$$ \sqrt{\sum{a_i^2b_i}\sum {b_i}} $$
$$\dfrac{\bigg(\sum \sqrt{a_ib_i}\bigg)^2}{\sum \sqrt{a_i}} $$
I would love to know if we can improve on these bounds. Moreover, I was hoping that I can prove the rearrangement inequality from this but I don't think that's possible since Cauchy-Schwarz doesn't care about the order of the inner product terms.