MyGoalPrep LogoMyGoalPrep.com

Differential EquationsMedium JEE math MCQ

The solution of the differential equation $\frac{dy}{dx} + y = e^{-x}$, given $y(0) = 1$, is:
  1. A. $y = (x + 1)e^{-x}$
  2. B. $y = xe^{-x}$
  3. C. $y = (x - 1)e^{-x}$
  4. D. $y = (1 - x)e^{-x}$

Solution

This is a first-order linear ODE: $\frac{dy}{dx} + Py = Q$ where $P = 1$, $Q = e^{-x}$ Integrating factor: $IF = e^{\int P\,dx} = e^{\int 1\,dx} = e^x$ Multiplying both sides by IF: $$e^x\frac{dy}{dx} + e^x y = e^x \cdot e^{-x} = 1$$ $$\frac{d}{dx}(ye^x) = 1$$ Integrating both sides: $$ye^x = x + C$$ $$y = (x + C)e^{-x}$$ Using initial condition $y(0) = 1$: $$1 = (0 + C)e^0 = C$$ Therefore: $y = (x + 1)e^{-x}$

MATH

mediumPYQ Reworded
Question
Read carefully, then pick the best option.
The solution of the differential equation dydx+y=ex\frac{dy}{dx} + y = e^{-x}, given y(0)=1y(0) = 1, is:
AI hints
Ask for a nudge. Keep it specific.
Differential Equations — Medium JEE Mathematics MCQ | MyGoalPrep