Suppose that $(a_n)$ and $(b_n)$ are sequences of real numbers such that $a_n x + b_n \rightarrow ax+b$ for all $x\in\mathbb{R}$. Then my question is, is it necessarily true that $a_n\rightarrow a$? Or is it possible for $(a_n)$ to be a divergent sequence?
My question would be answered if a sequence of linear functions converges pointwise to a linear function if and only if it converges uniformly, but I’m not sure if that’s true. I’m guessing it is true.
I ask because this seems to be part of the intuition behind the idea that the slope of the tangent line is the limit of the slopes of the secant lines.