I understand the idea behind finding a slant asymptote: we asume, that at an infinite distance of argument, function should be equal to some line function, so to check that we take a line function expression that is $kx+b$, set it equal to inspecting function expression, and find a limit of it, where argument goes to infinity.
In sources I read, it is done in illegal way: inspecting function is set to be equal to just $kx$, from where $k$ is obtaining as $k=\lim_{x \to \infty} \dfrac{f(x)}{x}$, and after $k$ is obtained, it just passed to complete line expression $kx+b=f(x)$ as a constant, and now $b$ is obtaining in the same way: $b=\lim_{x \to \infty}f(x)-kx$.
Actually, I can't surely state why it is wrong, but, probably, because $k$ in $kx + b$ is just an another variable?
For example, we obviously can't solve $3x+y=1$, by just removing $y$ for a while, as $3x=1,\space x=\dfrac{1}{3}$ and then put it back, getting $\dfrac{3}{3}+y=1, \space y = 0$... And when I ended typing it understand, that $x=1/3$ and $y=0$ are solution for the equation above...
I am totally confused, can someone explain where my algebra knowledges are wrong?
The reason you can separate out the two parts is because of what the limit does to the constant $b$. Suppose that $\lim{x \rightarrow \infty} = kx+b$. Then,
$$\lim_{x \rightarrow \infty}\frac{kx+b}{x} = k+\lim_{x \rightarrow \infty}\frac{b}{x}.$$
The second limit is zero, so that only $k$ is left. Now, notice that $$\lim_{x \rightarrow \infty} (f(x)-kx) = \lim_{x \rightarrow \infty} ((kx+b)-kx) = b.$$