I am trying to solve
$$\frac{1}{e^{x}}$$
I first tried using the quotient rule, and ended up with:
$$\frac{e^{x}}{(e^{x})^2}$$
That was not the right answer, so I took a look at wolfram, and wolfram rewrites
$$\frac{1}{e^{x}}$$ as
$$e^{-x}$$
And then apply the chain rule, but that is irrelevant to me right now. I am looking for someone to explain how
$$\frac{1}{e^{x}} = e^{-x}$$
Any help would be great, I want to solve this but I need to understand what just happened.
$$y = \dfrac 1{e^x} = \dfrac {e^0}{e^x} = e^{0-x} = e^{-x}$$ $$y'= (-1)e^{-x} = -\dfrac {1}{e^x}$$
This is by using the chain rule for the exponential function: $$\left(e^{f(x)}\right)' = f'(x)e^{f(x)}$$
In this case, for $y = e^{-x}$, we have $e^{f(x)}$, where $f(x) = -x$, and $f'(x) = -1$.