We have
(D2 – 2D + 5)y = e2x
A.E. is m2 - 2m + 5 = 0
m = 1 \(\pm\) 2i
C.F. = ex (C1 cos 2x + C2 sin 2x)
Here \(\phi\)(x) = e2x and 2 is not a root of the A.E.
We assume for P.I. in the form yp = ae2x ...(1)
We have to find 'a' such that
y''p - 2y'p + 5yp = e2x ......(2)
From Eqn. (1),
y'p = 2a e2x
y''p = 4a e2x
Eqn. (2),
⇒ 4a e2x - 4a e2x + 5a e2x = e2x
⇒ 5a e2x = e2x
Equating the coefficients
5a = 1
a = \(\frac 15\)
Eqn. (1),
yp = \(\frac 15\) e2x
\(\therefore\) y = C.F. + P.I.
y = ex (C1 cos 2x + C2 sin 2x) + \(\frac 15\) e2x