GATE 2025 CE (CE2) – Question 36
Pick the CORRECT solution for the following differential equation
$\frac{dy}{dx} = e^{x-y}$
Practise this question in The GATE Grind →
Show answer and explanation
Correct answer: (A) $y = \ln(e^x + Constant)$
Explanation
**1. Separate the variables.** $dy/dx=e^{x-y}=e^xe^{-y}$. Multiplying by eʸ gives $e^y\,dy=e^x\,dx$.
**2. Integrate both sides.** $e^y=e^x+C$, where C is an arbitrary integration constant. Taking logarithms gives $y=\ln(e^x+C)$ on intervals where eˣ+C > 0.
**3. Check the result.** Differentiation gives $y^{\prime}=e^x/(e^x+C)=e^xe^{-y}$, as required. **Answer: A.** The separated integral is eʸ, not ln y.