I want to solve the following limit using algebraic techniques learnt in calculus class (including l'Hospital rule): $$\lim_{x\to0^+}e^{1/x}\bigl(1-\sec(x)\bigr)$$
I have tried simplifying the expression and putting over the same denomniator.
$$\lim_{x\to0^+}\frac{e^{1/x}(\cos(x)-1)}{\cos(x)}$$
Then I just need to solve this expression: $$\lim_{x\to0^+}e^{1/x}(\cos(x)-1)$$
I have tried expressing it as a fraction to apply l'Hospital's rule but it only seems to get worst. $$\lim_{x\to0^+}\frac{\cos(x)-1}{e^{-1/x}}=\lim_{x\to0^+}\frac{-x^2\sin(x)}{e^{-1/x}}$$
I have solved it, using $u\to\infty,\;\; u=\frac1x$ (I don't think the transformation is necessary). Then apply sandwich theorem with $-2e^u \leq e^{u}(\cos(1/u)-1) \leq0$.
Update: This solution does not quite work, see comments.