Skip to content
NCERT Exemplar · Q74

Q.The solution of dydx+y=e−x\frac{dy}{dx}+y=e^{-x}, y(0)=0y(0)=0 is:
(A) y=ex(x−1)y=e^x(x-1)
(B) y=xe−xy=xe^{-x}
(C) y=xe−x+1y=xe^{-x}+1
(D) y=(x+1)e−xy=(x+1)e^{-x}

Rajasthan RbseMCQ· 1mImportance★★★★★
87% · 194/222 Questions
🔒 Locked · start free trial →

You're viewing a preview — the full solution, concept, methods & PYQ mapping are locked.

Start your 14-day free trial to unlock the full solution →

This is a first-order linear ODE solved using the integrating factor method. The solution satisfying y(0)=0y(0)=0 is y=xe−xy = x e^{-x}, which corresponds to option (B).

The key idea: when you see dydx+P(x)y=Q(x)\frac{dy}{dx} + P(x)y = Q(x), the standard tool is the integrating factor. It rewrites the left side as a perfect derivative, turning the problem into a direct integration.

Here, P(x)=1P(x) = 1 and Q(x)=e−xQ(x) = e^{-x}. The integrating factor is e∫1 dx=exe^{\int 1\,dx} = e^x. Multiply through, and the left side becomes ddx(yex)\frac{d}{dx}(y e^x). Then integrate both sides, apply the initial condition, and solve for yy.

Let’s walk through it step by step.

  1. Identify the form and find the integrating factor

    The equation is dydx+y=e−x\frac{dy}{dx} + y = e^{-x}. This is linear with P(x)=1P(x)=1.

    The integrating factor μ(x)=e∫P dx=e∫1 dx=ex\mu(x) = e^{\int P\,dx} = e^{\int 1\,dx} = e^x.

  2. Multiply the entire equation by μ(x)\mu(x)

exdydx+exy=ex⋅e−xe^x \frac{dy}{dx} + e^x y = e^x \cdot e^{-x}

The right side simplifies: ex⋅e−x=e0=1e^x \cdot e^{-x} = e^0 = 1.

So we have:

exdydx+exy=1e^x \frac{dy}{dx} + e^x y = 1

  1. Recognize the left side as a derivative Notice that ddx(yex)=exdydx+exy\frac{d}{dx}(y e^x) = e^x \frac{dy}{dx} + e^x y. So the equation becomes:

ddx(yex)=1\frac{d}{dx}(y e^x) = 1

  1. Integrate both sides

∫ddx(yex) dx=∫1 dx\int \frac{d}{dx}(y e^x)\,dx = \int 1\,dx

This gives:

yex=x+Cy e^x = x + C

where CC is the constant of integration.

  1. Apply the initial condition y(0)=0y(0)=0 …

Unlock everything free for 14 days

  • Full step-by-step solutions
  • Concept-first explanations
  • Methods, shortcuts & mistakes
  • PYQ mapping + timed mock tests

Full access for 14 days. No credit card required.