I guess, under the interpretation that sqrt(x^2) = x then this answer is
right.
integrate(sqrt(x^2-2*a*x+a^2)*sqrt(x^2-2*b*x+b^2),x);
-> (2*x^3+(-3*b-3*a)*x^2+6*a*b*x)/6
according to the interpretation that sqrt(x^2) = abs(x) then this answer is
right.
abs(x-a)*((x-b)*(2*x+b-3*a)*abs(x-b)+(b-a)^2*abs(b-a))/(6*(x-a))
That?s all I have to say about that.
Rich