How to solve this ODE: $y'(x) e^x = y^2(x)$? I am trying to solve the differential equation
$$y'(x) e^x = y^2(x) \quad (DE) $$

This is a Bernoulli form DE i.e $y'(x) + a(x)y(x) = b(x)y^r(x)$, where $r = 2, a(x) = 0, b(x) = \frac1e $

*

*Let $u(x) = y^{1-r} = y^{-1} \iff u'(x) = -y^{-2}(x) y'(x)$

*Then for $y \neq 0$: $(DE) = \frac{y(x)'}{y^r(x)} = e^{-x} \iff -u'(x) = -e^x (2)$
But $(2)$ is a seperate variable form ODE therefore:
$$ u(x) = e^{-x} + C \iff \frac1y = e^{-x} + C \iff $$
$$ \bbox[15px,#ffd,border:1px solid green]{y(x) = \frac{1}{e^x + C} }$$
with $y(x) =0$, not being a solution of the DE.

It all seems right to me, but wolfram has another opinion i.e
$$ \bbox[15px,#ffd,border:1px solid blue]{y\left(x\right)\:=\:\frac{-e^x}{\left(Ce^x\:-\:x\:-\:1\right)}} $$
I never won an argument against Wolfie, so I am wondering what I did wrong in my solution.

As mentioned in the comments, Wolfram Alpha interprets $y^2(x)$ as $y^2\times x$. You can write $(y(x)^2)$ in Wolfram Alpha instead. The correct input in Wolfram Alpha produces:
$$y(x)=-\frac{e^x}{Ce^x-1}$$
In your solution, $b(x)=e^{-x}$. Setting $u(x) = y^{-1} \implies u'(x) = -y^{-2}(x) y'(x)$, so you should divide both sides of the original differential equation by $y^2$
$$y'(x) e^x = y^2(x)\implies \frac{y'(x)}{y^2(x)}=e^{-x}\implies -u'(x)=e^{-x}$$
Hence
$$-\frac{du(x)}{dx}=e^{-x}$$
$$-u(x)=-e^{-x}+C$$
$$-\frac{1}{y(x)}=-e^{-x}+C$$
$$y(x)=-\frac{1}{C-e^{-x}}$$
Therefore, multiplying the numerator and denominator by $e^x$ forms
$$y(x)=-\frac{e^{x}}{Ce^{x}-1}$$
Alternatively, we may write
$$ y(x) = \frac{1}{e^{-x}+C}$$
Note: $y(x)=0$ is not a solution.
