$ \lim_{a\to\infty} {a\int_{0}^{\frac{\pi}{4}}e^x\space \tan^a{x}\space dx}$ $$Let \space I(a) = \int_{0}^{\frac{\pi}{4}} {e^{x} \tan^{a} x} \space . \space Find 
\space \lim_{a\to\infty}aI(a). $$
Well this is an integral that I'm curently dealing with and so far I've tried to solve it using different approaches. Still, I haven't solved it and what I find always is an undefined answer. Even when I used mathematica it returned an undefined answer. This solution in my opinion is most likely to be the one that works: $$\\$$ Our Integral is $$\int_{0}^{\frac{\pi}{4}}e^x\space \lim_{a\to\infty}[{a\tan^a{x}}]\space dx,$$
letting $$A=\lim_{a\to\infty}{a\tan^a{x}}$$
We know that $$x \in [0,\frac{\pi}{4}]\space \Rightarrow \space \tan{x} \in[0,1] \space \Rightarrow \space \lim_{a\to\infty}a\tan{^ax}=
\  \begin{cases} 
      0 & 0\leq x< \frac{\pi}{4} \\
      1 & x=\frac{\pi}{4}\\
   \end{cases}
  \
$$
Which tells us that
$$ A =
\  \begin{cases} 
      0 \times \infty & 0\leq x< \frac{\pi}{4} \\
      \infty & x=\frac{\pi}{4}\\
   \end{cases}
$$
Which are some undefined integrands... . Mathematica says the integral is undefined but the book, Advanced Calculus Explored, says it has an answer.
I think this is the right solution and I just need to work on the limit a little bit more, but this is something that I'm stuck in. I appreciate any kind of hints or helps.

Another approach (that works for this type of limits, with $a$ times an integral of an $a$-th power times something else) is to "absorb" the factor $a$ using integration by parts. Let $g_a(x)=\tan^a x$. Then $a\cdot e^x\tan^a x=f(x)g_a'(x)$, where $f(x)=e^x\tan x\cos^2 x\color{LightGray}{[{}=\ldots]}$. Hence $$aI(a)=\int_0^{\pi/4}f(x)g_a'(x)\,dx=\underbrace{f(\pi/4)g_a(\pi/4)}_{=(1/2)e^{\pi/4}}-\underbrace{f(0)g_a(0)}_{=0}-\int_0^{\pi/4}f'(x)g_a(x)\,dx.$$ The last integral tends to $0$ as $a\to\infty$ (by DCT as noted in comments if you know it, or by bounding the integrand from above: $f'(x)$ by a constant, and $g_a(x)$ by, say, $\tan x\leqslant 4x/\pi$).
