Ugh...Algebra is harder than Calculus

Need help with some algebraic simplification. This is an example from my calculus book asking to find the vertical and horizontal asymptotes. They divided the numerator and denominator by $\displaystyle x$. I don't understand how they they got to the second step after dividing by x and simplifying. Can someone explain this? Radicals screw everything up for me.

$\displaystyle \lim_{x\to\infty}\frac{\sqrt{2x^2+1}}{3x-5} = $

$\displaystyle \lim_{x\to\infty}\frac{\sqrt{2+(1/x^2)}}{3-(5/x)}$