I've some doubt about the formal way to evaluate the following limit:
$$\lim_{n\to\ +\infty}{\left(1-\frac{1}{n}\right)^{n^2}}$$
I know that
$$\lim_{n\to\ +\infty}{\left(1-\frac{1}{n}\right)^{n}}=e^{-1}$$
my calculus teacher says that we can't evaluate the limit by pieces, so we can't (in general) say that
$$\lim_{n\to\ +\infty}{\left(1-\frac{1}{n}\right)^{n^2}}=\lim_{n\to\ +\infty}{\left(e^{-1}\right)^{n}}=0$$ even if in this case it is the right answer.
So I'm asking a formal way to solve this, my approach is:
Say that the limit of a product is the product of the limits, so I can say that
$$\lim_{n\to\ +\infty}{\left(1-\frac{1}{n}\right)^{n^2}}=\lim_{n\to\ +\infty}{e^{n^2\ln\left(1-\frac{1}{n}\right)}}=e^{\lim_{n\to\ +\infty}{n^2\ln\left(1-\frac{1}{n}\right)}}=e^{\lim_{n\to\ +\infty}{n^2}{\lim_{n\to\ +\infty}\ln\left(1-\frac{1}{n}\right)}}=e^{\lim_{n\to\ +\infty}{-n}}=0$$
Can I do this (I've used the continuity of the exponential function) or am I still doing the limit by pieces when I've substituted $ln\left(1-\frac{1}{n}\right)$ with $-\frac{1}{n}$?
Furthermore, can I use the theorem of the product even if there is the indeterminate form $0\cdot(+\infty$)?
Thanks for your time.