$$ \int_a^b \frac{x^2 - 2ax + a^2}{2x^2 - 2(a + b)x + a^2 + b^2} dx = \int_a^b \frac{x^2 - 2bx + b^2}{2x^2 - 2(a + b)x + a^2 + b^2} dx $$
I tried to solve this by Partial Fractions, and did $$ 2x^2 - 2(a+b)x + a^2+b^2 = 2x(x-(a+b)) + (a^2+b^2) $$ but I can't see something else to do with this. Could you give me any hint? I'm stuck.
Hint as requested: note that the left hand side integral is $$L=\int_a^b \frac{(x-a)^2}{(x-a)^2+(x-b)^2}\,dx$$ and then substitute $x=a+b-y$.