You can start considering ## \lim_{x\rightarrow 0^{+}} (\cos{x})^{\frac{1}{x}} ##, you have an indeterminate form of this kind ## (1^{-})^{+\infty}##. In general with ## \lim_{x\rightarrow 0^{+}} f(x)^{g(x)}## you can consider ## \lim_{x\rightarrow 0^{+}} e^{\log{ f(x)^{g(x)}}}## and nothing change. The exponential function is monotone and by the properties of ## \log## you have to solve the internal limit:
## e^{ \lim_{x\rightarrow 0^{+}}g(x)\log{(f(x))}} ##