Solve for $x$ when $e^{2x}-3e^x=4$
This is what I've gotten so far: \begin{array} he^{2x}-3e^x&=&4\\ \ln(e^{2x}-3e^x)&=&\ln(4) \\ \dfrac{\ln(e^{2x})}{\ln(3e^x)}&=&\ln(4)\\ \dfrac{2x}{\ln(3) + \ln(e^x)}&=&\ln(4) \\ \dfrac{2x}{\ln(3) + x}&=&\ln(4) \\ x= \dfrac{\ln(3) \cdot \ln(4)}{2-\ln(4)} \end{array} I clearly made a mistake somewhere, does anyone know where?
$$\ln(e^{2x}-3e^x)\ne\dfrac{\ln e^{2x}}{\ln 3e^x}$$
Let $u=e^x$, this transforms the equation to a quadratic: $u^2-3u-4=0$ which can be used to obtain values for $u$ and eventually $x$.