Question Details

The solution of dy/dx + y = e-x, y (0) = 0 is

Options

A

y = e⁻ˣ (x – 1)

B

y = xeˣ

C

y = xe⁻ˣ + 1

D

y = xe⁻ˣ

Correct Answer :

y = xe⁻ˣ

Solution :

The correct option is y = xe-x.

To find the solution to the given first-order linear differential equation, we follow these steps:

Step 1: Identify the type of differential equation
The given equation is:

d y d x + y = e x
This is a standard first-order linear differential equation of the form:

d y d x + P ( x ) y = Q ( x )
Comparing the two equations, we get:
P ( x ) = 1 and Q ( x ) = e x .

Step 2: Find the Integrating Factor (I.F.)
The integrating factor is calculated using the formula:

I.F. = e P ( x ) d x
Substituting P(x)=1:

I.F. = e 1 d x = e x

Step 3: Find the General Solution
The general solution of a first-order linear differential equation is given by:

y ( I.F. ) = Q ( x ) ( I.F. ) d x + C
Substitute the values of the Integrating Factor and Q(x):

y e x = e x e x d x + C
Since exex=e0=1, the equation simplifies to:

y e x = 1 d x + C
y e x = x + C

Step 4: Apply the initial condition
We are given the initial condition y(0)=0, which means y=0 when x=0.
Substituting these values into the general solution:

0 e 0 = 0 + C
0 = C
Thus, the constant of integration C=0.

Step 5: Write the final solution
Substitute C=0 back into the general equation:

y e x = x
Divide both sides by ex to express the solution explicitly in terms of y:

y = x e x = x e x
Therefore, the particular solution matching the initial condition is indeed y = xe-x.

Unlock Our Free Library

Access expert-curated educational resources and study materials—completely free.

Discover more resources

You may also like

Mock Tests

View All
  • JEE
  • intermediate
  • 3 hours
  • chemistry, mathematics, physics

  • JEE
  • intermediate
  • 3 hours
  • chemical engineering, mathematics, physics