Question

The solution of the differential equationd⁢yd⁢x=ex−yi⁢s

  1. ex+e−y+k=0
  2. e2⁢x=key
  3. ex−ey=k
  4. ex+y=k

Answer: ex−ey=k

Solution :-

We haved⁢yd⁢x=ex−y

Now, use separation of variable method, we get

d⁢yd⁢x=ex⋅e−y⟹ey⋅d⁢y=ex⋅d⁢x⋯⁢⋯⁢(1)

Integrating both sides of eq(1), we get

∫ey⋅d⁢y=∫ex⋅d⁢xey=ex+k1ex−ey=−k1ex−ey=k⋅(where,k=−k1)

So, correct answer is option-3, →ex−ey=k