I have to find maximum and minimum of the function $x^n\ln^k x$ in the interval $\bigl[\frac{1}{e},e\bigr]$ with $k$ and $n \in N$
and I'm lost in the calculus.
$y'= x^{n-1} \ln^{k-1}x (n\ln x+k)$
$y'=0 \Leftrightarrow x=1 \lor x= e^{-\tfrac{k}{n}}$
While $1 \in\bigl[\frac{1}{e},e\bigr]$, for $e^{-\tfrac{k}{n}}$ it depends.
If $k<-n$ then $x=e^{-\tfrac{k}{n}}<e$
If $k>n$ then $x=e^{-\tfrac{k}{n}}<\dfrac{1}{e}$
If $-n<k<n$ then $\dfrac{1}{e}<x=e^{-\tfrac{k}{n}}<e$
From this moment I'm lost and I can't decide where $y'>0$ Can someone help me?