y''+y=5xsinx,y(0)=0,y'(0)=1
The solutions to a nonhomogeneous equation are of the form
y(x)=yc(x)+yp(x) ,
where yc is the general solution to the associated homogeneous equation and yp is a particular solution.
The associated homogeneous equation:
y′′+y=0
The general solution of this equation is determined by the roots of the characteristic equation:
λ2+1=0
λ=±i , where i=−1 .
yc(x)=c1cosx+c2sinx .
The particular solution of the differential equation:
yp(x)=x((Ax+B)sinx+(Cx+D)cosx)
yp′=(2Ax+B−Cx2−Dx)sinx+(Ax2+Bx+2Cx+D)cosx
yp′′=(−Ax2+2A−Bx−4Cx−2D)sinx+(4Ax+2B−Cx2+2C−Dx)cosx
Now put these into the original differential equation to get:
(−Ax2+2A−Bx−4Cx−2D)sinx+(4Ax+2B−Cx2+2C−Dx)cosx+x((Ax+B)sinx+(Cx+D)cosx)=5xsinx
Equating coefficients, we get
A=0; D=0; C=−45; B=45.
yp(x)=45x(sinx−xcosx)
y=c1cosx+c2sinx+45x(sinx−xcosx)
y(0)=c1=0
y’(0)=c2=1
Answer:
y=sinx+45x(sinx−xcosx) .
Comments
Leave a comment