Actually I should kick myself for not having finished this off earlier:
a
2(p-q)(p-r)+b
2(q-r)(q-p)+c
2(r-p)(r-q)

m
2 [(p-q)(p-r)+(q-r)(q-p)+(r-p)(r-q)] where m = min(a,b,c)
Now (p-q)(p-r)+(q-r)(q-p) = (p-q)(p-r+r-q) = (p-q)2. Similarly
(q-r)(q-p) + (r-p)(r-q) = (q-r)2 and
(r-p)(r-q)+(p-q)(p-r) = (p-r)2
Adding these three, we get [(p-q)(p-r)+(q-r)(q-p)+(r-p)(r-q)] = 1/2 [(p-q)2+(q-r)2+(r-p)2]
Hence a
2(p-q)(p-r)+b
2(q-r)(q-p)+c
2(r-p)(r-q)

m
2 1/2 [(p-q)
2+(q-r)
2+(r-p)
2]

0
Only i have not used that they are sides of a triangle.