By division law,
$$\displaystyle \lim_{x \to \infty} \dfrac{\sqrt[3]{x^2+8}}{x+2}$$
is equivalent to
$$\dfrac {\displaystyle \lim_{x \to \infty} {\sqrt[3]{x^2+8}}{}}{\displaystyle \lim_{x \to \infty} {x+2}}$$
However, the first expression evaluates to $0$ while the second expression evaluates to $\dfrac{\infty}{\infty}$ which is indeterminate. Which of them is correct or my understanding of the division law is wrong?