Given differential equation :
dydx+3y=e−2x
Given differential equation is of the form
dydx+Py=Q
By comparing both the equations, we get
P=3 and Q=e−2x
The general solution of the given differential equation is
y(I.F)=∫(Q×I.F.)dx+c ....(i)
Firstly, we need to find I.F.
I.F.=e∫pdx
I.F.=e∫3dx
I.F.=e3x
Substituting the value of I.F in (i), we get
y×23x=∫e−2x.e3xdx+c
ye3x=∫exdx+c
ye3x=ex+c
Hence, the required general solution is
y=e−2x+ce−3x