5. (10%) If $f(x) = \frac{g(x)}{1+x^2e^x}$, where $g(1) = g'(1) = e$, find $f'(1)$.