How to integrate:
$$\int_{x_1}^{x_2}\sqrt{1+(2at-a(x_1+x_2))^2}\,dt$$
I know I can use u-substitution by setting $u=1+(2at-a(x_1+x_2))^2$, or something along those lines, and then solving the simplified integral and then moving back to the "x world". I'm generally familiar with first year calculus, and maybe second year, I'm not really sure as I have offically only taken pre-calc so if you could simplify your answers a bit that would be appreciated!
Hint:
Note that we have: $$I =\int_{x_1}^{x_2} \sqrt{1+(2at-a(x_1+x_2))^2}\, dt$$ $$=\int_{x_1}^{x_2} \sqrt{1+a^2(2t-x_1-x_2)^2}\, dt$$
Substituting, $u=2t-x_1-x_2 \implies du = 2dt$, we have, $$I =\frac12 \int_{x_1-x_2}^{x_2-x_1} \sqrt{1+a^2u^2}\, du$$ Now, substituting $au= y\implies adu = dy$, we have, $$I = \frac{1}{2a} \int_{a(x_1-x_2)}^{a(x_2-x_1)} \sqrt{1+y^2}\, dy$$
Now, the integrand is in a standard form. Can you take it from here?