Exercise · ZW-SEPARABLE-EQUATION-010 · ★★★ Advanced

Solve \(y'=e^{x+y}\), \(y(0)=0\).

Choose one option.

Show answer
  • C. \(y=-\ln(2-e^{x})\)

Explanation

Since \(e^{x+y}=e^{x}e^{y}\), the equation is separable: \(\int e^{-y}dy=\int e^{x}dx\) gives \(-e^{-y}=e^{x}+c\). With \(y(0)=0\), \(c=-2\), so \(e^{-y}=2-e^{x}\) and \(y=-\ln(2-e^{x})\).

Study Differential equations in ZWMath →

Review the concept: Separable equation

A separable equation is a first-order differential equation whose derivative is the product of a function \(g\) of \(x\) alone and a function \(h\) of \(y\) alone.

\[\frac{dy}{dx}=g(x)\,h(y)\;\Longrightarrow\;\int\frac{dy}{h(y)}=\int g(x)\,dx\]

More practice problems: separable equation

← ZW-SEPARABLE-EQUATION-009