dx2d2y−2dxdy+2y=sin2x
Let us solve a characteristic equation:
k2−2k+2=0
(k−1)2+1=0
(k−1)2=−1
k1=1+i,k2=1−i
The general solution is of the following form:
y(x)=ex(C1cosx+C2sinx)+yp(x), where yp(x) is a particular solution, C1,C2 are arbitrary constants.
The particular solution has the following form:
yp(x)=Asin2x+Bcos2x, whrere A and B are constants.
dxdyp=2Acos2x−2Bsin2x
dx2d2yp=−4Asin2x−4Bcos2x
Put founded derivatives in the differential equation:
−4Asin2x−4Bcos2x−2(2Acos2x−2Bsin2x)+2(Asin2x+Bcos2x)=sin2x
(−4A+4B+2A)sin2x+(−4B−4A+2B)cos2x=sin2x
(−2A+4B)sin2x+(−4A−2B)cos2x=sin2x
Equating the corresponding coefficients, we obtain a system of equations:
{−2A+4B=1−4A−2B=0
{−2A+4B=1B=−2A
{−10A=1B=−2A
{A=−101B=51
Finally, the solution of the differential equation is the following:
y(x)=ex(C1cosx+C2sinx)−101sin2x+51cos2x.
Comments