This is the question: What is the derivative of this function? $$\frac{2^{x}}{e^{x}}$$
I have seen two answers for this question and I would like to know which one is correct and which one is not.
This is one:
$$\frac{d}{dx} \left( \left( \frac{2}{e} \right)^x \right) = \left( \frac{2}{e} \right)^x \log \left( \frac{2}{e} \right)$$
since the derivative of $(2/e)^x$ is $$\left( \frac{2}{e} \right)^x \log \left( \frac{2}{e} \right).$$
And the other one is where you re-write the function to be $2^{x}e^{-x}$ and use the product rule. Which one is it, I'm confused on how to approach this question.