Question:easy

Solve : \( \frac{dy}{dx}=e^{x+y} \).

Show Hint

Write \(e^{x+y}=e^x e^y\), separate the variables to get \(e^{-y}dy=e^x dx\), then integrate both sides.
Show Solution

Solution and Explanation

Step 1: Spot the type.
Since $e^{x+y} = e^x e^y$, the equation $\frac{dy}{dx} = e^{x+y}$ is of the form $\frac{dy}{dx} = g(x)\,h(y)$, which is a variables-separable equation. Here $g(x) = e^x$ and $h(y) = e^y$.

Step 2: Move the y terms to the left.
\[ \frac{1}{e^y}\,dy = e^x\,dx \quad\Longrightarrow\quad e^{-y}\,dy = e^x\,dx \]

Step 3: Integrate each side with its own constant.
Left side: put $u = -y$, so $du = -dy$. Then $\int e^{-y}\,dy = -\int e^{u}\,du = -e^{u} = -e^{-y}$.
Right side: $\int e^x\,dx = e^x$.
So $-e^{-y} = e^x + c$.

Step 4: Solve for y if needed.
Rearranging, $e^{-y} = -e^x - c$. Taking logarithms,
\[ -y = \ln(-e^x - c) \quad\Longrightarrow\quad y = -\ln(-c - e^x) \]
This form is valid where $-c - e^x > 0$. Writing $C = -c$, the same family is $e^x + e^{-y} = C$.

Final Answer:
The general solution is $e^x + e^{-y} = C$. \[ \boxed{e^{x} + e^{-y} = C} \]
Was this answer helpful?
0