The GATE Grind

GATE 2025 CE (CE2) – Question 36

Engineering Mathematics · ODE: First order and higher order linear equations, Euler-Cauchy equations, initial and boundary value problems · 2 marks · Multiple choice

Pick the CORRECT solution for the following differential equation
$\frac{dy}{dx} = e^{x-y}$

  1. $y = \ln(e^x + Constant)$
  2. $\ln(y) = x + Constant$
  3. $\ln(y) = \ln(e^x) + Constant$
  4. $y = x + Constant$

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.

More ODE: First order and higher order linear equations, Euler-Cauchy equations, initial and boundary value problems questions

All ODE: First order and higher order linear equations, Euler-Cauchy equations, initial and boundary value problems questions →