The solution of $\frac{dy}{dx} + y = e^{-x}, y(0) = 0$ is |
$y = e^x(x - 1)$ $y = x e^{-x}$ $y = x e^{-x} + 1$ $y = (x + 1) e^{-x}$ |
$y = x e^{-x}$ |
The correct answer is Option (2) → $y = x e^{-x}$ ## Given that, $\frac{dy}{dx} + y = e^{-x}$ On comparing it with $\frac{dy}{dx} + P \cdot y = Q$ we get $P = 1, Q = e^{-x}$ $\text{I.F} = e^{\int P \, dx} = e^{\int 1 \, dx} = e^x$ The general solution is $y \cdot \text{I.F} = \int Q \cdot \text{I.F} \, dx + C$ $y \cdot e^x = \int e^{-x} \cdot e^x \, dx + C$ $\Rightarrow y \cdot e^x = \int dx + C$ $\Rightarrow y \cdot e^x = x + C \dots(i)$ When $x = 0$ and $y = 0$, then $0 = 0 + C \Rightarrow C = 0$ Eq. (i) becomes $y \cdot e^x = x$ $\Rightarrow y = x e^{-x}$ |