We have indeterminateness of type
oo/oo,
i.e. limit for the numerator is
$$\lim_{x \to \infty}\left(2 x + 1\right) = \infty$$
and limit for the denominator is
$$\lim_{x \to \infty}\left(\frac{x}{2} + \frac{1}{2}\right) = \infty$$
Let's take derivatives of the numerator and denominator until we eliminate indeterninateness.
$$\lim_{x \to \infty}\left(\frac{4 x + 2}{x + 1}\right)$$
=
Let's transform the function under the limit a few
$$\lim_{x \to \infty}\left(\frac{2 \left(2 x + 1\right)}{x + 1}\right)$$
=
$$\lim_{x \to \infty}\left(\frac{\frac{d}{d x} \left(2 x + 1\right)}{\frac{d}{d x} \left(\frac{x}{2} + \frac{1}{2}\right)}\right)$$
=
$$\lim_{x \to \infty} 4$$
=
$$\lim_{x \to \infty} 4$$
=
$$4$$
It can be seen that we have applied Lopital's rule (we have taken derivatives with respect to the numerator and denominator) 1 time(s)