That's not the derivative. To get the derivative you need to use the product (or quotient) rule:
(fg)' = fg' + gf'
This equals e^x/x - e^x/x^2 = (e^x/x)(1-1/x)
You need to set this equal to 0 and solve for x to find the critical points of f. To find all local minima, find all points for which the 2nd derivative is positive. To find the minimum, you need to compare all the values of the local minima and take the smallest one. You also need to look at boundary points, which in our case would be +infinity and -infinity.
This problem's solution is easy to see since there is only one critical point.