When I try to compute $\lim_{n\rightarrow\infty}\frac{(\ln n)^2}{n}$ in my mathematical analysis homework, I may be supposed to use Stolz theorem to compute this limit of a sequence. However, I find it much more easier to compute this limit by treating it as a limit of function, say $\lim_{x\rightarrow\infty}\frac{(\ln x)^2}{x}$, using L'Hospital's Rule. And I got the right answer.
However, I'm still worrying about if I can replace $n$ by $x$ under any circumstances.
Here are my questions
- Can anyone tell me under what circumstances can I replace $n$ by $x$ safely when calculating the limit?
- What's the relationship between Stolz theorem and L'Hospital's Rule? (The former looks like a discrete version of the latter theorem)