First we have to derivate the function
[tex]\begin{gathered} f(x)=xe^{\frac{1}{x}}\rightarrow \\ f^{\prime}(x)=e^{\frac{1}{x}}+x\cdot(e^{\frac{1}{x}}\cdot\frac{-1}{x^2})=e^{\frac{1}{x}}(1-\frac{1}{x}) \end{gathered}[/tex]We have to find when the derivate is 0
[tex]e^{\frac{1}{x}}(1-\frac{1}{x})=0\rightarrow1-\frac{1}{x}=0\rightarrow x=1[/tex]we have to consider x=0, because we can not divide by 0
so for a number lower than 0 we get that
[tex]f^{\prime}(x)>0[/tex]so it is increasing
for a number between 0 and 1 we get
[tex]f^{\prime}(x)<0[/tex]so it is decreasing
for a number greater than 1 we get
[tex]f^{\prime}(x)>0[/tex]it is increasing