It is easy to check that for any value of c, the function y=ce2x+ex\displaystyle {y}={c}{e}^{{-{2}{x}}}+{e}^{{-{x}}}

is a solution of the equation

y+2y=ex.\displaystyle {y}'+{2}{y}={e}^{{-{x}}}.

Find the value of c\displaystyle {c} for which the solution satisfies the initial condition y(1)=1\displaystyle {y}{\left(-{1}\right)}={1}.

c=\displaystyle {c}=