Rewrite dy2/dx2−2dy/dx+2y=1 as D2y−2Dy+2y=1 where D2y & Dy denote dy2/dx2 & dy/dx.
For D2y−2Dy+2y=1 expressed as (D2−2D+2)y=1, solve the Characteristic Equation D2−2D+2=0
and obtain D=[-(-2)±√((-2)2-4(1)(2))]/2(1) which amounts to 1±i. For Complex Conjugates 1+i and 1-i,
it can be shown for the Linear Homogeneous Equation D2y−2Dy+2y=0 that the Homogeneous Solution
can follow the form yh= e(1)x(c1cos (1)x+c2sin (1)x); the ones in parentheses come from the Complex
Conjugates (1)±(1)i above.
Next assume a Particular Solution yp=A0. Since yh has no terms in common with yp, no modification of
yp is necessary. For the Constant A0, it follows that y'p and y''p are both 0.
Use of yp in (D2−2D+2)y=1 will then give (02−2(0)+2)A0=1 or A0=1/2.
Finally, write the General Solution as y=yh + yp or ex(c1cos x+c2sin x) + 1/2.