$$ f(x) = \frac{\frac{d^2}{dx^2}[e^y]}{\frac{d}{dx}[e^y]} $$
Given that $f(x) = cx$
$$ \frac{c}{2}x^2 + k_1 = \ln(e^y y') $$
$$ k_2\int e^{\frac{c}{2}x^2} dx = e^y $$
$$ y = \ln(k_2\int e^{\frac{c}{2}x^2} dx) $$
Therefore
$$ y'^2 - cxy' + y'' = 0 $$
$$ y' = \frac{c}{2}x \pm \sqrt{\frac{c^2}{4}- y''} $$
$$ \frac{e^{\frac{c}{2}x^2}}{\int e^{\frac{c}{2}x^2} dx} = \frac{c}{2}x \pm \sqrt{\frac{c^2}{4}x^2- y''} $$
Yet when $c=4$
$$ \frac{2\sqrt{\frac{2}{\pi}}e^{2x^2}}{\operatorname{erfi}(\sqrt{2}x)+c} = 2x \pm\sqrt{4x^2 + 8e^{2x^2}\frac{e^{2x^2}-\sqrt{2\pi}x\operatorname{erfi}(\sqrt{2}x)}{\pi \operatorname{erfi}(\sqrt{2}x)^2}} $$
Is not correct, what am i doing wrong?
$(e^{y(x)})'=k_2e^{\frac12Cx^2}$ implies $e^{y(x)}=k_2\int_a^xe^{\frac12Ct^2}dt+k_3$, where $k_3=e^{y(a)}$ and which for $C>0$ does not involve the error function.
Then,
$$y(x)=\ln\left(k_2\int_a^xe^{\frac12Ct^2}dt+k_3\right)$$