Q24E

Question

Find a particular solution to the differential equation.

y''(x)+y(x)=4xcosx

Step-by-Step Solution

Verified
Answer

The particular solution is yp=xcosx+x2sinx.

1Step 1: Firstly, write the auxiliary equation of the above differential equation

The given differential equation is;

 

y''(x)+y(x)=4xcosx               (1)

 

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

 

y''(x)+y(x)=0

 

The auxiliary equation for the above equation,


 m2+1=0

2Step 2: Now find the roots of the auxiliary equation

Solve the auxiliary equation,

m2+1=0m=±i

 

The roots of the auxiliary equation are, 

m1=i,   &   m2=-i


The complementary solution of the given equation is:

 yc=c1cosx+c2sinx

 

3Step 3: Use the method of undetermined coefficients to find a particular solution to the differential equation.

According to the method of undetermined coefficients, assume, the particular solution of equation (1),

 

yp=Ax2cosx+Bxcosx+Cx2sinx+Dxsinxyp=(Ax2+Bx)cosx+(Cx2+Dx)sinx                                 ......(2)

 

Now find the derivative of the above equation,

yp'=-(Ax2+Bx)sinx+(2Ax+B)cosx+(Cx2+Dx)cosx+(2Cx+D)sinxyp'=(-Ax2-Bx+2Cx+D)sinx+(2Ax+B+Cx2+Dx)cosxyp''=(-Ax2-Bx+2Cx+D)cosx+(2Ax+B+Cx2+Dx)(-sinx)             +(-2Ax-B+2C)sinx+(2A+2Cx+D)cosxyp''=(-Ax2-Bx+2Cx+D+2A+2Cx+D)cosx+(-2Ax-B-Cx2-Dx-2Ax-B+2C)sinxyp''=(-Ax2-Bx+4Cx+2D+2A)cosx+(-4Ax-2B-Cx2-Dx+2C)sinx



From the equation (1), Substitute the value of  yp'' and yp in the equation (1),


yp''(x)+yp(x)=4xcosx(-Ax2-Bx+4Cx+2D+2A)cosx+(-4Ax-2B-Cx2-Dx+2C)sinx       +(Ax2+Bx)cosx+(Cx2+Dx)sinx=4xcosx(4Cx+2D+2A)cosx+(-4Ax-2B+2C)sinx=4xcosx(4Cx)cosx+(2D+2A)cosx-(4Ax)sinx+(-2B+2C)sinx=4xcosx

4Step 4: Final conclusion:

Comparing all coefficients of the above equation;

 4C=4  C=1-4A=0  A=02D+2A=0                        .......(3)2C-2B=0                        ........(4)


 

Substitute the value of C in the equation (4),

 2(1)-2B=0B=1


 

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

 

2D+2(0)=0D=0


 

Substitute the value of A, B, Cand Din the equation (2),

yp=(Ax2+Bx)cosx+(Cx2+Dx)sinxyp=((0)x2+(1)x)cosx+((1)x2+(0)x)sinxyp=xcosx+x2sinx


Therefore, the particular solution of equation (1),

 

yp=xcosx+x2sinx