First differentiate using quotient rule.
=\frac{e^{x}n*x^{n-1}-x^{n}*e^{x}}{e^{2x}})
Take an e^x out
}{e^{x}})
Now let this equal zero to find maximum and minimums
}{e^{x}}=0)
so



Then show it is a maximum by subbing in terms to the left and right, i.e. n-1 and n+1, as n is postive, you can should that the left side will have a positive gradient and right side has a negative gradient, hence a maximum.
The gradient on the left at n-1 is
=(\frac{n}{n-1}-1)(n-1)^{n}e^{n-1})
As n is a postive interger, n-1 is also positive and n/n-1 is greater than 1 so the gradient on this side is positive
Now on the right at n+1 the gradient is
=(\frac{n}{n+1}-1)(n+1)^{n}e^{n+1})
As n+1 is greater than n, n/n+1 is a fraction smaller than one and greater than zero, so if you take the one away, you get a negative. The other terms are still positive so overalll it multiplies to a neagtive.
There is proabably a more mathematical way to write this out, so if anyone wants to add to it (and well do it the proper way) feel free to.
EDIT: added last bit of working.