Let y = y(x) be the solution of the differential equation \(\displaystyle\frac{dy}{dx} = e^{x - y}\), given that \(y = \log 2\) when \(x = 0\). Then the value of y when \(x = \log 3\) is
Answer & explanation
Correct answer: option 4
The correct answer is Option (4) → \(\log 4\)
Since \(e^{x - y} = \frac{e^{x}}{e^{y}}\), the variables can be separated:
\(e^{y}\,dy = e^{x}\,dx\)
\(e^{y} = e^{x} + C\)
Using the initial condition \(y = \log 2\) at x = 0:
\(e^{\log 2} = e^{0} + C\)
\(2 = 1 + C\), so \(C = 1\)
\(e^{y} = e^{x} + 1\)
At \(x = \log 3\):
\(e^{y} = 3 + 1 = 4\), so \(y = \log 4\)
Why the other options are incorrect
Option (1) \(\log 3\) — Incorrect. This drops the constant and takes \(e^{y} = e^{x}\), which gives y = 0 at x = 0, not \(\log 2\).
Option (2) \(\log 5\) — Incorrect. This takes C = 2, the value of \(e^{y}\) at x = 0, forgetting to subtract \(e^{0} = 1\).
Option (3) \(\log 6\) — Incorrect. This writes the solution as \(e^{y} = 2e^{x}\), using the constant as a multiplier; here the constant of integration is added, not multiplied.