Several (advanced) L'Hospital problems Problems : 
$$
\begin{align}
&\text{A}.\ \lim_{x\rightarrow1}(2-x)^{\tan\left(\frac{\pi x}{2}\right)}\\
&\text{B}.\ \lim_{x\rightarrow 0}\left(\cot x-\frac{1}{x}\right)\\
&\text{C}.\ \lim_{x\rightarrow0}\frac{\sin^{-1}x-x}{\tan^{-1}x-x}\\
&\text{D}.\ \lim_{x\rightarrow 1}(2-x)^{\tan\left(\frac{\pi x}{2}\right)}\\
&\text{E}.\ \lim_{x\rightarrow0}\left(a^x+b^x\right)^\frac{1}{x}
\end{align}
$$

Here are my solutions concerning A~E.
A. $$\ln y=\tan\left(\frac{\pi x}{2}\right)\ln(x-2)=\frac{\tan\left(\frac{\pi x}{2}\right)}{\frac{1}{\ln(2-x)}}$$
$$\lim_{x\rightarrow 1}\frac{\tan\left(\frac{\pi x}{2}\right)}{\frac{1}{\ln(2-x)}}=_H\lim_{x\rightarrow1}\frac{\frac{\pi}{2}\sec^2(\frac{\pi x}{2})}{x-2}=\infty$$so, $$A\rightarrow \infty$$
Is this conclusion right?
C.
$$=_H\lim_{x\rightarrow0}\frac{\frac{1}{\sqrt{1-x^2}}-1}{\frac{1}{1+x^2}-1}=_H\lim_{x\rightarrow0}\frac{\frac{-1}{2}\frac{1}{\sqrt{(1-x^2)^3}}(-2x)}{-\frac{2x}{(1+x^2)^2}}=\frac{1}{-2}=-\frac{1}{2}$$

For example A,D and E  


*

*put $y=\lim_{x\to a} f(x)$

*Apply ln as $\ln y=\ln\lim_{x\to a} f(x)=\lim_{x\to a} \ln f(x)$

*use L'Hopital rule

*$\ln y=l\implies y=e^l$
For A
$$y=\lim_{x\rightarrow1}(2-x)^{\tan\left(\frac{\pi x}{2}\right)}
\\ \ln y=\lim_{x\rightarrow1}\ln (2-x)^{\tan\left(\frac{\pi x}{2}\right)}
\\ \ln y=\lim_{x\rightarrow1}{\tan\left(\frac{\pi x}{2}\right)}\ln (2-x)
\\ \ln y=\lim_{x\rightarrow1}{}\frac{\ln (2-x)}{\cot\left(\frac{\pi x}{2}\right)}=\frac{0}{0}$$  Now apply L'Hopital rule
For E
$$y=\lim_{x\rightarrow0}\left(a^x+b^x\right)^\frac{1}{x}
\\ \ln y=\lim_{x\rightarrow0}\ln\left(a^x+b^x\right)^\frac{1}{x}
\\ \ln y=\lim_{x\rightarrow0}\frac{\ln\left(a^x+b^x\right)}{x}=\infty\implies y=\infty$$

