Condition of the problem

Calculate the limit of the function:

$\lim _{x \rightarrow 1}\left(\frac{x^{3}-1}{x-1}\right)^{\frac{1}{x^{2}}}$
$$
\begin{aligned}
& \lim _{x \rightarrow 1}\left(\frac{x^{3}-1}{x-1}\right)^{\frac{1}{x^{2}}}=\lim _{x \rightarrow 1}\left(\frac{(x-1)\left(x^{2}+x+1\right)}{x-1}\right)^{\frac{1}{x^{2}}}= \\
& =\lim _{x \rightarrow 1}\left(x^{2}+x+1\right)^{\frac{1}{x^{2}}}=\left(1^{2}+1+1\right)^{\frac{1}{1^{2}}}=3^{1}=3
\end{aligned}
$$

The solution is as follows:

$$
\begin{aligned}
& \lim _{x \rightarrow 1}\left(\frac{x^{3}-1}{x-1}\right)^{\frac{1}{x^{2}}}=\lim _{x \rightarrow 1}\left(\frac{(x-1)\left(x^{2}+x+1\right)}{x-1}\right)^{\frac{1}{x^{2}}}= \\
& =\lim _{x \rightarrow 1}\left(x^{2}+x+1\right)^{\frac{1}{x^{2}}}=\left(1^{2}+1+1\right)^{\frac{1}{1^{2}}}=3^{1}=3
\end{aligned}
$$