$$ \lim_{x\to a} \left(2- \frac{x}{a}\right)^{\left(\tan \frac{\pi x}{2a}\right)}.$$
I have simplified this limit to this extent : $$e^{ \lim_{x\to a} \left(\left(1- \frac{x}{a}\right){\left(\tan \frac{\pi x}{2a}\right)}\right)}$$ I don't know how to simplify the limit after that. please help.
From the given limit, using $t = x-a$, you can rewrite it as:
$$\lim_{t\to 0}\left(1-\frac{t}{a}\right)^{-\cot\left(\frac{\pi t}{2a}\right)}$$
This can be converted to the form $e^{\dots}$ using the definition of exponent function, by multiplying and dividing in the power by $-t/a$. Thus we have:
$$\lim_{t\to 0}\left(1-\frac{t}{a}\right)^{-\cot\left(\frac{\pi t}{2a}\right) \times \frac{-a}{t} \times \frac{-t}{a}} =\lim_{t \to 0} e^{\cot\left(\frac{\pi t}{2a}\right) \times \frac{t}{a}}$$
Then due continuity of $e^x$, we have:
$$\begin{align}\lim_{t \to 0} e^{\cot\left(\frac{\pi t}{2a}\right) \times \frac{t}{a}} &= e^{\lim_{t \to 0}\cot\left(\frac{\pi t}{2a}\right) \times \frac{t}{a}} \\ &= \exp\left(\lim_{t \to 0}\frac{\frac{t}{a} \times\frac{\pi}{2} \times \frac{2}{\pi}}{\tan\left(\frac{\pi t}{2a}\right)}\right) \\ &= \exp\left(\frac{2}{\pi}\right) \end{align}$$