Evaluate
$$\lim_{x \to a}f(x)=(a-x)\tan\left(\frac{πx}{2a}\right)$$
I tried changing the tangent into cotangent by writing it in the form of $\cot\left(\dfrac{π}{2}-\dfrac{πx}{2a}\right)$. Then I factored out $\dfrac{π}{2}$. But this didn't lead me to anything rigid. If anyone in the community could help me out, I'd really appreciate it.
As an alternative: $$ \lim_{x \to a}f(x)=\lim_{x\to a}\left((a-x)\tan\left(\frac{πx}{2a}\right)\right) $$
Substitute $t = x - a \iff x = t + a$, so your limit becomes: $$ \lim_{t \to 0}f(t)=\lim_{t\to 0}\left((a-(t+a))\tan\left(\frac{π(t+a)}{2a}\right)\right) = \\ \lim_{t\to 0}\left((-t)\tan\left(\frac{\pi t + \pi a}{2a}\right)\right) = -\lim_{t\to 0}\left(t\tan\left(\frac{\pi t}{2a} + \frac{\pi}{2}\right)\right) = \\ = \lim_{t\to 0}\left(t\cot\left(\frac{\pi t}{2a}\right)\right) = \lim_{t\to0}\frac{t}{\tan\left(\frac{\pi t}{2a}\right)} $$
Now by Taylor of $\tan x$ as $x\to 0$: $$ \tan x \sim x \\ $$
We get: $$ \lim_{t\to 0}\frac{t}{\tan\left(\frac{\pi t}{2a}\right)} = \lim_{t\to 0}\frac{2ta}{\pi t} = \fbox{$\displaystyle \frac{2a}{\pi}$} $$