can someone solve this it's probably de L'Hospital :( I spent all day and can do nothing. $$\lim_{x\to \pi/2} (\tan x)^{1/(\pi/2-x)}$$
My work I try $\lim _{x\to \pi/2 }\left({\tan x}\right)^\frac{1}{\pi/2-x} =\lim _{x\to \pi/2 }\left(\frac{\sin x}{\cos x}\right)^\frac{1}{\pi/2-x} = \lim _{x\to\pi/2}$
$\displaystyle\lim _{x\to \pi/2 }(\sin x)^\frac{1}{\pi/2-x} = 1$
$\displaystyle\lim _{x\to \pi/2 }(\cos x)^\frac{1}{\pi/2-x} = \lim _{x\to \pi/2 }e^\frac{\ln\cos x}{\pi/2-x}$
Since $\tan(x)$, the base of the exponential, should be positive only the left limit is allowed. We have that $$\begin{align}\lim_{x\to \to (\pi/2)^-}{\left(\tan x\right)}^\frac{1}{\pi/2-x}&=\lim_{x\to \to (\pi/2)^-}\exp\left(\frac{\ln(\tan(x))}{\pi/2-x}\right)=+\infty \end{align}$$ because the argument of the exponential is not an indeterminate form (and we can not apply L'Hopital's rule) $$\frac{\ln(\tan(x))}{\pi/2-x}\to\frac{+\infty}{0^+}=+\infty.$$
P.S. Now are you able to find $\lim_{x\to (\pi/2)^-}(\cos x)^\frac{1}{\pi/2-x}$?