Q25E

Question

Find the solution to the initial value problem.

z''(x)+z(x)=2e-x,      z(0)=0,       z'(0)=0

Step-by-Step Solution

Verified
Answer

The solution to the initial value problem is:

z=sinx-cosx+e-x.

1Step 1: Write the auxiliary equation of the given differential equation.

The differential equation is,

 

z''(x)+z(x)=2e-x                     (1)

 

Write the homogeneous differential equation of the equation (1),

 

z''(x)+z(x)=0

 

The auxiliary equation for the above equation,

 

m2+1=0

2Step 2: Now find the complementary solution of the given equation.

The root of an auxiliary equation is, 


 m2+1=0m=±i


 

The complementary solution of the given equation is,

 

zc(x)=c1cosx+c2sinx

 

3Step 3: Now find the particular solution to find a general solution for the equation.

Assume, the particular solution of equation (1),

zp(x)=Ae-x                         .                  .....(2)


Now find the first and second derivatives of the above equation,

zp'(x)=-Ae-xzp''(x)=Ae-x


Substitute the value of and the equation (1),

 z''(x)+z(x)=2e-xAe-x+Ae-x=2e-x2Ae-x=2e-xA=1


Substitute the value of A in the equation (2),

zp(x)=e-x

4Step 4: Find the general solution and use the given initial condition.

Therefore, the general solution is,

z=zc(x)+zp(x)z=c1cosx+c2sinx+e-x                   .                         .....(3) 


 

Given the initial condition,

 z(0)=0,       z'(0)=0


 Substitute the value of z = 0 and x = 0 in the equation (3),

z=c1cosx+c2sinx+e-x0=c1cos(0)+c2sin(0)+e-0c1=-1


Now find the derivative of the equation (3),

z'=-c1sinx+c2cosx-e-x


Substitute the value of z’ = 0 and x = 0 in the above equation,

 z'=-c1sinx+c2cosx-e-x0=-c1sin(0)+c2cos(0)-e-0c2=1


 

Substitute the value of c1=-1 and c2=1 in the equation (3), we get:

z=c1cosx+c2sinx+e-xz=(-1)cosx+(1)sinx+e-xz=sinx-cosx+e-x


Thus, the solution of the initial problem is:

z=sinx-cosx+e-x