Given that $y=0$ when $x=0$, solve the differential equation $$\frac{\mathrm{d}y}{\mathrm{d}x}=(2x+1)\mathrm{e}^{-y}$$ giving your answer in the form $y=\mathrm{f}(x)$. [5]
- Separates variables: $\displaystyle\int\mathrm{e}^{y}\,\mathrm{d}y=\int(2x+1)\,\mathrm{d}x$M1
- $\mathrm{e}^{y}=x^{2}+x\ (+c)$A1
- Uses $x=0,\ y=0$ to find $c$ (must have included a constant)M1
- $c=1$A1
- $y=\ln(x^{2}+x+1)$A1
- Answer: $y=\ln(x^{2}+x+1)$
- Examiner tip: Find $c$ before taking logs – writing $y=\ln(x^{2}+x)+c$ is a different (wrong) function.