f (x) = 5 - xe^x / x + e^x
f'(x) = - (x+e^x) (-xe^x) - (5-xe^x)(1 +e^x)
f'(x) = - (x+e^x)[-(xe^x + e^x * 1)] - (5+5e^x-xe^x-x^e^2x)
What I am confused about is how did (-xe^x) become [-(xe^x+e^x*1)].
Sorry bout the bad formatting, but not sure if this site uses html or w/e for math equations.
f'(x) = - (x+e^x) (-xe^x) - (5-xe^x)(1 +e^x)
-----------------------------------------
(x+e^x)^2
f'(x) = - (x+e^x)[-(xe^x + e^x * 1)] - (5+5e^x-xe^x-x^e^2x)
------------------------------------------------------
(x+e^x)^2
What I am confused about is how did (-xe^x) become [-(xe^x+e^x*1)].
Sorry bout the bad formatting, but not sure if this site uses html or w/e for math equations.