The given differential equation is
dxdy+3y=e−2x
This is the standard form of a linear differential equation.
Comparing with
dxdy+Py=Q,
we have
P=3andQ=e−2x
Integrating Factor
∫Pdx=∫3dx=3∫1dx=3x
I.F.=e∫Pdx=e3x
Solution Formula
y(I.F.)=∫Q(I.F.)dx+c
⇒ye3x=∫e−2xe3xdx+c
⇒ye3x=∫e−2x+3xdx+c
⇒ye3x=∫exdx+c
⇒ye3x=ex+c
Final Solution
Dividing every term by e3x,
y=e3xex+e3xc
⇒y=e−2x+ce−3x
y=e−2x+ce−3x
which is the required general solution.