\(=\dfrac{a+x+1}{a+x}:\dfrac{a+x-1}{a+x}\cdot\left(\dfrac{2ax-1+a^2+x^2}{2ax}\right)\)
\(=\dfrac{a+x+1}{a+x-1}\cdot\dfrac{\left(a+x\right)^2-1}{2ax}\)
\(=\dfrac{a+x+1}{a+x-1}\cdot\dfrac{\left(a+x+1\right)\left(a+x-1\right)}{2ax}\)
\(=\dfrac{\left(a+x+1\right)^2}{2ax}\)