we should find \( \lim _{x \to 0}(e^x-x-\frac{1}{x}) \).
\( \lim _{x \to 0}(e^x-x-\frac{1}{x})=\lim _{x \to 0}(e^x)-\lim _{x \to 0}(x)-\lim _{x \to 0}(\frac{1}{x}) \)
we know \( \lim _{x \to 0}(e^x)=e^0=1 \) and \( \lim _{x \to 0}(x)=0 \) and \( \lim _{x \to 0^+}(\frac{1}{x})=+ \infty \) and \( \lim _{x \to 0^-}(\frac{1}{x})=- \infty \). so:
\( \lim _{x \to 0}(e^x-x-\frac{1}{x})=1-0 \pm \infty=\pm \infty \)