Does any one knows the correct version of the inequality: Let $a_1,\cdots,a_n\in \mathbb R$ and $b_1,\cdots,b_n\in \mathbb R$ with $\sum_{j=1}^n b_j=0$. Then $$ \left(\sum_{j=1}^n a_jb_j \right)^2\leq \left(\sum_{j=1}^n a_j^2-\left(\sum_{j=1}^n a_j\right)^2\right)\sum_{j=1}^n b_j^2\,, $$
proposed in https://link.springer.com/content/pdf/10.1007%2F978-1-4939-1926-0_2.pdf Exercise 2.51, page 23?
Indeed, the statement as such is incorrect. e.g. taking $n=2$ and $a_1=a_2=1$, the statement yields $$ 0\leq 2-2^2. $$