Here's an alternative, that I think is more elementary.
To start with: the constant terms are going to become increasingly irrelevant as the $x$ terms get really large. To prove this, you could explicitly write the differences from the version without constants, and show the differences disappear:
\begin{align}
\lim_{x\to+\infty} \frac{3x-1}{x^2+1}
&= \lim_{x\to+\infty}\frac{3x-1}{3x}\cdot\frac{3x}{x^2}\cdot\frac{x^2}{x^2+1} \\
&= \lim_{x\to+\infty}\frac{3x-1}{3x}\cdot\lim_{x\to+\infty}\frac{3x}{x^2}\cdot\lim_{x\to+\infty}\frac{x^2}{x^2+1} \\
&= \lim_{x\to+\infty}\left(1 - \frac{1}{3x}\right)\cdot\lim_{x\to+\infty}\frac{3x}{x^2}\cdot\lim_{x\to+\infty}\left(1 - \frac{1}{x^2+1}\right) \\
&= \lim_{x\to+\infty}\frac{3x}{x^2}
\end{align}
Now you've got rid of the constant terms, what's left is easy.
Of course, in a pedantic presentation of this result, the second equality is only correct if the three RHS limits exist, so you have to sort of attach that precondition until you successfully compute them, at which point you can say "so that was all right after all".
This works for all polynomials, and is an illustration of the general fact that to see what a polynomial does as its argument goes to infinity, you can safely throw away all but the leading term. With experience, you'll do this without any of the tedious intermediate steps I showed above: "the limit of $(3x-1)/(x^2+1)$ as $x \to \infty$ is zero because quadratic beats linear".