I've been trying to solve this first order ODE $y'=\lambda y-\lambda e^{\lambda t}$ but to no avail.
Here is what I've done.
$y'=\lambda( y- e^{\lambda t})$
$\implies \int\frac{1}{y-e^{\lambda t}}\frac{dy}{dt}dt=\int\lambda dt$
$\implies \int\frac{1}{y-e^{\lambda t}}dy=\int\lambda dt$
$\implies \ln \left( y-{{\rm e}^{\lambda\,t}} \right)=\lambda t+c$
$\implies y-{{\rm e}^{\lambda\,t}}=Ae^{\lambda t}$ where $A=e^c.$
$\implies y=(A+1)e^{\lambda t}$ but Maple is providing the solution as $y=(A-t\lambda)e^{\lambda t}$. Where I'm I missing it?
Hint: Your equation has the form $y'+p(t)y=q(t)$. This is a first order, non-homogeneous differential equation. This type of differential equation can be solved by applying variation of parameters. Rearranging your equation: $y'-\lambda y=-\lambda e^{\lambda t}$
In your case $p(t)=-\lambda$ and $q(t)=-\lambda e^{\lambda t}$.