If $a,b,c$ are the sides of a triangle and $p,q,r$ are positive real numbers then prove that $a^2(p-q)(p-r)+b^2(q-p)(q-r)+c^2(r-p)(r-q)\ge 0$
After modification. I have to prove $(a^2 p^2+b^2 q^2 + c^2 r^2) \ge pr(a^2+c^2-b^2)+qr(b^2+c^2-a^2)+pq(a^2+b^2-c^2)$
We'll prove that your inequality is true for all reals $p$, $q$ and $r$
and $a$, $b$ and $c$ are lengths-sides of triangle.
Indeed, $$a^2(p-q)(p-r)+b^2(q-p)(q-r)+c^2(r-p)(r-q)=$$ $$=\frac{1}{2}\left((p-q)^2(a^2+b^2-c^2)+(p-r)^2(a^2+c^2-b^2)+(q-r)^2(b^2+c^2-a^2)\right)\geq0$$ because $\sum\limits_{cyc}(a^2+b^2-c^2)=a^2+b^2+c^2>0$ and $$\sum\limits_{cyc}(a^2+b^2-c^2)(a^2+c^2-b^2)=\sum\limits_{cyc}(2a^2b^2-a^4)=16S^2>0$$ Done!
We used the following lemma.
Indeed, since $x+y+z\geq0$ so $\sum\limits_{cyc}(x+y)\geq0$ and we can assume that $x+y\geq0$(if $x+y<0$,$x+z<0$ and $y+z<0$ so we obtain a contradiction).
Thus, we need to prove that $$x(b-c)^2+y(b-c+a-b)^2+z(a-b)^2\geq0$$ or $$(x+y)(b-c)^2+2y(b-c)(a-b)+(y+z)(a-b)^2\geq0.$$ Now, if $x+y=0$, so from $x+y+z\geq0$ we obtain $z\geq0$ and from $xy+xz+yz\geq0$ we obtain $xy+z(x+y)\geq0$ or $xy\geq0$, which gives $-x^2\geq0$ and $x=y=0$ and our inequality is true in this case.
Let $x+y>0$.
Thus, it's enough to prove that $$y^2-(x+y)(y+z)\leq0$$ or $$xy+xz+yz\geq0,$$ which ends the proof.